/*
 *             Copyright (c) 2003-2026, 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,ContextPlugin,Editor,PendingActions,Context as Context$1,ElementApiMixin}from'ckeditor5';import{uid,CKEditorError,ObservableMixin,global as _0x347e1e,isVisible,Rect,Collection,FocusTracker,KeystrokeHandler,first,logWarning,logError,toArray as toArray$1,EmitterMixin,scrollViewportToShowTarget,scrollAncestorsToShowTarget,ResizeObserver as _0x14bc1d,_isMotionReduced,getConstrainedViewportRect,DomEmitterMixin,diff as _0x5d39f4,priorities,getEnvKeystrokeText,toUnit,keyCodes,diffToChanges,collectStylesheets,createElement,env,version as _0x1dde74,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,BodyCollection,BalloonPanelView,clickOutsideHandler,addListToDropdown,UIModel,submitHandler,LabeledFieldView,createLabeledInputText,FormHeaderView,HighlightedTextView,ViewCollection,FileDialogButtonView,InputTextView,SearchTextView,ListItemButtonView,ButtonLabelWithHighlightView,DropdownMenuPanelPositioningFunctions,BalloonToolbar,FormRowView,TextareaView,EditorUIView,InlineEditableUIView,EditorUI,focusChildOnDropdownOpen,ContextualBalloon,Notification,addKeyboardHandlingForGrid,CollapsibleView,createLabeledInputNumber,SplitButtonView,MenuBarMenuListItemFileDialogButtonView,filterGroupAndItemNames,LabelWithHighlightView,InputNumberView,LabelView,CssTransitionDisablerMixin,ToolbarSeparatorView,normalizeToolbarConfig,BoxedEditorUIView,StickyPanelView,normalizeColorOptions,ListSeparatorView}from'ckeditor5';import{IconCopy,IconCheck,IconError,IconSubmit,IconAIHistory,IconMagicWand,IconRobotPencil,IconMaximize,IconMinimize,IconNotification,IconCancel,IconShowChangesOn,IconShowChangesOff,IconDocument,IconBoxWithCross,IconBoxWithCheck,IconBoxWithMarker,IconInfo,IconLoupe,IconStop,IconAIChat,IconPlus,IconPin,IconThreeHorizontalDots,IconChevronDown,IconChevronUp,IconOutdated,IconEye,IconEyeCrossedOut,IconChevronRight,IconAIReview as _0x479cd2,IconAITranslate as IconAITranslate$1,IconCaseChange,IconUndo,IconPencil,IconRemoveComment,IconThreeVerticalDots,IconAddComment,IconCommentsArchive,IconTableOfContents,IconExportPdf,IconExportWord,IconFootnote,IconListStyleDecimal,IconListStyleDecimalLeadingZero,IconListStyleLowerRoman,IconListStyleUpperRoman,IconListStyleLowerLatin,IconListStyleUpperLatin,IconPaintRoller,IconImportWord,IconLineHeight,IconMultiLevelList,IconWarning,IconInsertMergeField,IconPreviewMergeFields,IconArrowDown,IconArrowUp,IconHistory,IconUser,IconQuote,IconBulletedList,IconCodeBlock,IconBrowseFiles as _0x45313f,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{setHighlightHandling,toWidget,Widget,isWidget,toWidgetEditable,WidgetToolbarRepository,findOptimalInsertionRange,viewToModelPositionOutsideModelElement}from'ckeditor5';import{ViewDocumentDomEventData,ViewDataTransfer,ViewUpcastWriter,Matcher,InsertOperation,MoveOperation,ModelPosition,ModelRange,MarkerOperation,MergeOperation,SplitOperation,RenameOperation,AttributeOperation,ModelTreeWalker,ModelText,_DetachOperation,_insertIntoModelNodeList,_removeFromModelNodeList,transformOperationSets,ViewDowncastWriter,ModelDocumentFragment,disableViewPlaceholder,enableViewPlaceholder,MouseObserver,StylesMap,addMarginStylesRules,addPaddingStylesRules,PointerObserver,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{PasteFromOfficeMSWordNormalizer,parsePasteOfficeHtml}from'ckeditor5';import{MarkdownGfmMdToHtml}from'ckeditor5';import{IconWeb,IconClose,IconDocument as IconDocument$1,IconSelection,IconFileUpload,IconLink,IconBulb,IconAI,IconPreviousArrow,IconCheck as _0x2e9726,IconDocumentOutline,IconPaperClip,IconBrowseFiles,IconDropdownArrow,IconAIChat as IconAIChat$1,IconAIReview,IconAITranslate,IconAIAskAI,IconThumbUp,IconThumbDown,IconCopy as _0x53b43d,IconShowChangesOff as _0x3619a3,IconShowChangesOn as _0x125ff0,IconAIQuickActions,IconAIChatCommands,IconAIImproveWriting,IconAIContinueWriting,IconAIGrammarCheck,IconAIAdjustLength,IconAIChangeTone,IconAIOther,IconRefresh,IconNextArrow}from'ckeditor5';import{EmitterMixin as EmitterMixin$1,ObservableMixin as _0x2fc64e,priorities as priorities$1,global as _0x697abc,Collection as Collection$1}from'ckeditor5';import{FileRepository}from'ckeditor5';const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';function normalizeCommandsConfig(_0x4a037f,_0x3f97ea){const _0xd5dec=(0x0,_0x3f97ea['t'])('Other');return _0x4a037f['length']?'groupId'in _0x4a037f[0x0]?_0x4a037f:[{'groupId':UNGROUPED_COMMANDS_GROUP_ID,'groupLabel':_0xd5dec,'order':0x1/0x0,'commands':_0x4a037f}]:[{'groupId':UNGROUPED_COMMANDS_GROUP_ID,'groupLabel':_0xd5dec,'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:_0x9fe94e}=this,_0x1e3581=['ck-fake-ai-selection'];_0x9fe94e['config']['get']('ai.assistant.useTheme')&&_0x1e3581['push']('ck-ai-assistant-ui_theme'),_0x9fe94e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':VISUAL_SELECTION_MARKER_NAME,'view':{'classes':_0x1e3581,'priority':0xc}}),_0x9fe94e['conversion']['for']('editingDowncast')['markerToElement']({'model':VISUAL_SELECTION_MARKER_NAME,'view':(_0x365ff9,{writer:_0x36c793})=>{if(!_0x365ff9['markerRange']['isCollapsed'])return null;const _0x27db64=_0x36c793['createUIElement']('span');return _0x36c793['addClass'](['ck-fake-ai-selection','ck-fake-ai-selection_collapsed'],_0x27db64),_0x27db64;}});}['afterInit'](){checkLicense$j(this);}['showFakeVisualSelection'](){const _0x2e961e=this['editor']['model'];_0x2e961e['change'](_0x1eed78=>{const _0x3045d6=_0x2e961e['document']['selection']['getRanges']();let _0x4211b3=0x0;for(const _0x1e1e4f of _0x3045d6){const _0x153c23=VISUAL_SELECTION_MARKER_NAME+':'+_0x4211b3;if(_0x2e961e['markers']['has'](_0x153c23))_0x1eed78['updateMarker'](_0x153c23,{'range':_0x1e1e4f});else{if(_0x1e1e4f['start']['isAtEnd']){const _0x88b872=_0x1e1e4f['start']['getLastMatchingPosition'](({item:_0x1e8ebc})=>!_0x2e961e['schema']['isContent'](_0x1e8ebc),{'boundaries':_0x1e1e4f});_0x1eed78['addMarker'](_0x153c23,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1eed78['createRange'](_0x88b872,_0x1e1e4f['end'])});}else _0x1eed78['addMarker'](_0x153c23,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1e1e4f});}_0x4211b3++;}});}['hideFakeVisualSelection'](){const _0x456a4d=this['editor']['model'],_0x189aeb=Array['from'](this['editor']['model']['markers']['getMarkersGroup'](VISUAL_SELECTION_MARKER_NAME));_0x189aeb['length']&&_0x456a4d['change'](_0x1fac63=>{_0x189aeb['forEach'](_0x4dafd8=>{_0x1fac63['removeMarker'](_0x4dafd8);});});}['insertContent'](_0x37cb89,_0x3586df){const _0x2e5592=this['_getAISelection'](),_0x17d64a=_0x3586df||_0x2e5592['getFirstRange']();this['editor']['model']['canEditAt'](_0x17d64a)&&this['editor']['model']['change'](_0x4d0927=>{this['hideFakeVisualSelection'](),_0x3586df||this['_resetContentOfSelectedTableCells'](_0x4d0927,_0x2e5592),this['_pasteHTMLUsingClipboard']({'insertAt':_0x17d64a,'writer':_0x4d0927,'html':_0x37cb89});});}['insertContentBelow'](_0x4e861b){const {model:_0x589966}=this['editor'],_0x5af49a=this['_getAISelection']();_0x589966['change'](()=>{const _0x2816e1=this['_prepareTableInsertBelowPosition'](_0x4e861b,_0x5af49a)||this['_getDefaultInsertBelowPosition'](_0x5af49a);this['insertContent'](_0x4e861b,_0x2816e1);});}['_getAISelection'](){const _0x5e6575=this['editor']['model'],_0x43f799=Array['from'](_0x5e6575['markers']['getMarkersGroup'](VISUAL_SELECTION_MARKER_NAME))['map'](_0x2d9411=>_0x2d9411['getRange']());return _0x5e6575['createSelection'](_0x43f799);}['_pasteHTMLUsingClipboard']({writer:_0x243d9d,html:_0x44eb3d,insertAt:_0x44174d}){const {view:_0x5af131}=this['editor']['editing'],_0xb44a6b=this['editor']['plugins']['get'](ClipboardPipeline),_0x9f9b0=new DomDataTransfer$1();_0x9f9b0['setData']('text/html',_0x44eb3d);const _0x42e139=new ClipboardEvent('paste',{'clipboardData':_0x9f9b0}),_0xafa5e9=new ViewDocumentDomEventData(_0x5af131,_0x42e139,{'dataTransfer':new ViewDataTransfer(_0x9f9b0)});_0x243d9d['setSelection'](_0x44174d);const _0x216fc0=(_0x36b285,_0x338e15)=>{_0x338e15['resultRange']&&_0x243d9d['setSelection'](_0x338e15['resultRange']);};_0xb44a6b['once']('contentInsertion',_0x216fc0,{'priority':'lowest'}),_0x5af131['document']['fire']('paste',_0xafa5e9),_0xb44a6b['off']('contentInsertion',_0x216fc0);}['_getDefaultInsertBelowPosition'](_0x1df4a1){const {model:_0x13cc1c}=this['editor'],_0x56ac17=Array['from'](_0x1df4a1['getSelectedBlocks']());return _0x56ac17['length']?_0x13cc1c['createPositionAfter'](_0x56ac17['pop']()):_0x1df4a1['getLastPosition']();}['_prepareTableInsertBelowPosition'](_0x3d28f,_0x34d8ff){const {model:_0x47d731,plugins:_0x4101ac}=this['editor'];if(_0x4101ac['has']('TableUtils')){const _0x3e14f2=_0x4101ac['get']('TableUtils')['getSelectedTableCells'](_0x34d8ff);if(_0x3e14f2['length']){const _0x189a44=this['_getTableRowCountFromContent'](_0x3d28f),_0x270451=this['_createEmptyTableRows'](_0x3e14f2,_0x189a44);return _0x47d731['createPositionAt'](_0x270451,0x0);}}return null;}['_getTableRowCountFromContent'](_0xc3bf11){const _0x9280e1=this['editor']['plugins']['get']('TableUtils'),_0x390fc5=this['editor']['data']['parse'](_0xc3bf11),_0x455d87=Array['from'](_0x390fc5['getChildren']())['filter'](_0x55a36d=>_0x55a36d['is']('element','table'));let _0x268bb4=0x0;return _0x455d87['forEach'](_0x1c8b4e=>{_0x268bb4+=_0x9280e1['getRows'](_0x1c8b4e);}),_0x268bb4;}['_createEmptyTableRows'](_0x442ef7,_0x2dc8eb){const _0x43394d=this['editor']['plugins']['get']('TableUtils'),_0x1937ea=_0x43394d['getRowIndexes'](_0x442ef7),_0x23b6ee=_0x43394d['getColumnIndexes'](_0x442ef7),_0x8edc80=_0x1937ea['last']+0x1,_0x27c0a8=_0x23b6ee['first'],_0x33d883=_0x442ef7[0x0]['findAncestor']('table');for(let _0x50d58d=0x0;_0x50d58d<_0x2dc8eb;_0x50d58d++)_0x43394d['insertRows'](_0x33d883,{'at':_0x8edc80});return _0x33d883['getChild'](_0x8edc80)['getChild'](_0x27c0a8);}['_resetContentOfSelectedTableCells'](_0x555e7b,_0x58c56e){const {plugins:_0x21e331}=this['editor'],{model:_0x522be2}=_0x555e7b;if(!_0x21e331['has']('TableUtils'))return;_0x21e331['get']('TableUtils')['getSelectedTableCells'](_0x58c56e)['length']&&_0x522be2['deleteContent'](_0x58c56e);}}async function checkLicense$j(_0x4922d7){const _0x1ca090=_0x430b1f([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]),_0x1f09d7=window[_0x430b1f([0x44,0x61,0x74,0x65])][_0x430b1f([0x6e,0x6f,0x77])](),_0x45998f=_0x4922d7[_0x430b1f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53f42f=new window[(_0x430b1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x530a61=>{_0x45998f[_0x430b1f([0x6f,0x6e,0x63,0x65])](_0x430b1f([0x72,0x65,0x61,0x64,0x79]),_0x530a61);}),_0x5d1a5e={[_0x430b1f([0x6b,0x74,0x79])]:_0x430b1f([0x45,0x43]),[_0x430b1f([0x75,0x73,0x65])]:_0x430b1f([0x73,0x69,0x67]),[_0x430b1f([0x63,0x72,0x76])]:_0x430b1f([0x50,0x2d,0x32,0x35,0x36]),[_0x430b1f([0x78])]:_0x430b1f([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]),[_0x430b1f([0x79])]:_0x430b1f([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]),[_0x430b1f([0x61,0x6c,0x67])]:_0x430b1f([0x45,0x53,0x32,0x35,0x36])},_0x11fc1a=_0x45998f[_0x430b1f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x430b1f([0x67,0x65,0x74])](_0x430b1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x21b967=await(async function(){let _0x54192a,_0x56a9a4=null,_0x431517=null;try{if(_0x11fc1a==_0x430b1f([0x47,0x50,0x4c]))return _0x430b1f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x54192a=(function(){const _0x1e0cf7=_0x11fc1a[_0x430b1f([0x73,0x70,0x6c,0x69,0x74])](_0x430b1f([0x2e]));if(0x3!=_0x1e0cf7[_0x430b1f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x22f3bc=_0x1e0cf7[0x1];return _0xb8d7b3(_0x22f3bc);function _0xb8d7b3(_0x2645b5){const _0x1b7580=_0x20d90e(_0x2645b5);return _0x1b7580&&_0xda0308()?_0x1b7580:null;function _0xda0308(){const _0x361ad7=_0x1b7580[_0x430b1f([0x6a,0x74,0x69])],_0x4ba602=window[_0x430b1f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x361ad7[_0x430b1f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x361ad7[_0x430b1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x381aed={..._0x1b7580,[_0x430b1f([0x6a,0x74,0x69])]:_0x361ad7[_0x430b1f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x361ad7[_0x430b1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x381aed[_0x430b1f([0x76,0x63])],_0x2c3c8a(_0x381aed)==_0x4ba602;}}}()),!_0x54192a)return _0x430b1f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x54192a[_0x430b1f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x431517=function(_0x419aeb,_0x595dd2){return new window[(_0x430b1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x153051=>{if(_0x3e2b5b())return _0x153051(_0x430b1f([0x56,0x61,0x6c,0x69,0x64]));_0x43066c(),_0x45998f[_0x430b1f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x430b1f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f8dec=!0x1;const _0x19d203=uid();function _0x2d4a1f(_0x3cabd7){return!!_0x3cabd7&&(typeof _0x3cabd7===_0x430b1f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3cabd7===_0x430b1f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3cabd7[_0x430b1f([0x74,0x68,0x65,0x6e])]===_0x430b1f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3cabd7[_0x430b1f([0x63,0x61,0x74,0x63,0x68])]===_0x430b1f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x290df8(_0x3ea79f){_0x2483b7(_0x3ea79f)[_0x430b1f([0x74,0x68,0x65,0x6e])](_0x563873=>{if(!_0x563873||_0x563873[_0x430b1f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x430b1f([0x6f,0x6b]))return _0x430b1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5d84c8(_0x2c3c8a(_0x19d203+_0x595dd2))!=_0x563873[_0x430b1f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x430b1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x430b1f([0x56,0x61,0x6c,0x69,0x64]);})[_0x430b1f([0x74,0x68,0x65,0x6e])](_0x4c7397=>(_0xb73e2c(),_0x4c7397),()=>{const _0x3c6b4f=_0x524364();return null==_0x3c6b4f?(_0xb73e2c(),_0x430b1f([0x56,0x61,0x6c,0x69,0x64])):_0x430b1f(_0x1f09d7-_0x3c6b4f>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x430b1f([0x74,0x68,0x65,0x6e])](_0x153051)[_0x430b1f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x153051(_0x430b1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x156a1f=0x36ee80;function _0xb73e2c(){const _0x396930=_0x430b1f([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d84c8(_0x2c3c8a(_0x419aeb)),_0x21067f=_0x5551a7(_0x5d84c8(window[_0x430b1f([0x4d,0x61,0x74,0x68])][_0x430b1f([0x63,0x65,0x69,0x6c])](_0x1f09d7/_0x156a1f)));window[_0x430b1f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x430b1f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x396930,_0x21067f);}function _0x524364(){const _0x17969c=_0x430b1f([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d84c8(_0x2c3c8a(_0x419aeb)),_0x39ab77=window[_0x430b1f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x430b1f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17969c);return _0x39ab77?window[_0x430b1f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5551a7(_0x39ab77),0x10)*_0x156a1f:null;}function _0x2483b7(_0x33e32d){return new window[(_0x430b1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d7773,_0x5001b9)=>{_0x33e32d[_0x430b1f([0x74,0x68,0x65,0x6e])](_0x2d7773,_0x5001b9),window[_0x430b1f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5001b9,0x1d4c0);});}}_0x45998f[_0x430b1f([0x6f,0x6e])](_0x430b1f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x35620a,_0x1d9680)=>{if(_0x1d9680[0x0]!=_0x419aeb)return _0x153051(_0x430b1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1d9680[0x1]={..._0x1d9680[0x1],[_0x430b1f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x19d203};},{[_0x430b1f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x430b1f([0x68,0x69,0x67,0x68])}),_0x45998f[_0x430b1f([0x6f,0x6e])](_0x430b1f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x194b10=>{_0x2d4a1f(_0x194b10[_0x430b1f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f8dec=!0x0,_0x290df8(_0x194b10[_0x430b1f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x430b1f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x430b1f([0x6c,0x6f,0x77])}),_0x53f42f[_0x430b1f([0x74,0x68,0x65,0x6e])](()=>{_0x2f8dec||_0x153051(_0x430b1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e2b5b(){return _0x45998f[_0x430b1f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x430b1f([0x76,0x69,0x65,0x77])][_0x430b1f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x430b1f([0x61,0x75,0x74,0x6f]);}function _0x43066c(){_0x45998f[_0x430b1f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x430b1f([0x76,0x69,0x65,0x77])][_0x430b1f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x430b1f([0x61,0x75,0x74,0x6f]);}}(_0x54192a[_0x430b1f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x54192a[_0x430b1f([0x6a,0x74,0x69])]));const _0x3fdd54=await(async function(){let _0x13b41c=!0x0;try{const _0x328e97=_0x11fc1a[_0x430b1f([0x73,0x70,0x6c,0x69,0x74])](_0x430b1f([0x2e])),[_0x2a0ba8,_0x37eeb6,_0x3cf530]=_0x328e97;return _0x4aa272(_0x2a0ba8),await _0x149a1f(_0x2a0ba8,_0x37eeb6,_0x3cf530),_0x13b41c;}catch{return!0x1;}function _0x4aa272(_0x299797){const _0x17c085=_0x20d90e(_0x299797);_0x17c085&&_0x17c085[_0x430b1f([0x61,0x6c,0x67])]==_0x430b1f([0x45,0x53,0x32,0x35,0x36])||(_0x13b41c=!0x1);}async function _0x149a1f(_0x2c9a8e,_0xfd615a,_0x2fff43){const _0x2b32af=window[_0x430b1f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x430b1f([0x66,0x72,0x6f,0x6d])](_0x2dedf1(_0x2fff43),_0x32b7ad=>_0x32b7ad[_0x430b1f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x48fc8f=new window[(_0x430b1f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x430b1f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c9a8e+_0x430b1f([0x2e])+_0xfd615a),_0x5c556d=window[_0x430b1f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x430b1f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5c556d)return;const _0x538e67=await _0x5c556d[_0x430b1f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x430b1f([0x6a,0x77,0x6b]),_0x5d1a5e,{[_0x430b1f([0x6e,0x61,0x6d,0x65])]:_0x430b1f([0x45,0x43,0x44,0x53,0x41]),[_0x430b1f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x430b1f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x430b1f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5c556d[_0x430b1f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x430b1f([0x6e,0x61,0x6d,0x65])]:_0x430b1f([0x45,0x43,0x44,0x53,0x41]),[_0x430b1f([0x68,0x61,0x73,0x68])]:{[_0x430b1f([0x6e,0x61,0x6d,0x65])]:_0x430b1f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x538e67,_0x2b32af,_0x48fc8f)||(_0x13b41c=!0x1);}}());return _0x3fdd54?(function(){const _0x1cf8a1=_0x54192a[_0x430b1f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1cf8a1)return!0x1;if(_0x1cf8a1[_0x430b1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x430b1f([0x2a])))return!0x0;if(_0x1cf8a1[_0x430b1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x430b1f([0x41,0x49])))return!0x0;return!0x1;}())?(function(){const _0x34fd0c=[_0x430b1f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x430b1f([0x74,0x72,0x69,0x61,0x6c])][_0x430b1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54192a[_0x430b1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f09d7/0x3e8:0x69e96100;return _0x54192a[_0x430b1f([0x65,0x78,0x70])]<_0x34fd0c;}())?_0x430b1f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x4fc303=_0x54192a[_0x430b1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4fc303||0x0==_0x4fc303[_0x430b1f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e531f}=new URL(window[_0x430b1f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4fc303[_0x430b1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e531f))return!0x0;const _0xab8245=_0x5e531f[_0x430b1f([0x73,0x70,0x6c,0x69,0x74])](_0x430b1f([0x2e]));return _0x4fc303[_0x430b1f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x193275=>_0x193275[_0x430b1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x430b1f([0x2a])))[_0x430b1f([0x6d,0x61,0x70])](_0x2db6d5=>_0x2db6d5[_0x430b1f([0x73,0x70,0x6c,0x69,0x74])](_0x430b1f([0x2e])))[_0x430b1f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x581c59=>_0x581c59[_0x430b1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xab8245[_0x430b1f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x430b1f([0x6d,0x61,0x70])](_0x58e2aa=>Array(_0xab8245[_0x430b1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x58e2aa[_0x430b1f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x430b1f([0x66,0x69,0x6c,0x6c])](_0x58e2aa[0x0]===_0x430b1f([0x2a])?_0x430b1f([0x2a]):'')[_0x430b1f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x58e2aa))[_0x430b1f([0x73,0x6f,0x6d,0x65])](_0x22f978=>_0xab8245[_0x430b1f([0x65,0x76,0x65,0x72,0x79])]((_0x4d17f0,_0x3e80c4)=>_0x22f978[_0x3e80c4]===_0x4d17f0||_0x22f978[_0x3e80c4]===_0x430b1f([0x2a])));}())?(_0x54192a[_0x430b1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x430b1f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x56a9a4=function(_0x2c0f96){const _0x31fc31=new window[(_0x430b1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3874d0=>setTimeout(_0x3874d0,0x93ecc)),_0x5d9347=_0x53f42f[_0x430b1f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x430b1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c3a3f=>{let _0x321a63=0x0;_0x45998f[_0x430b1f([0x6d,0x6f,0x64,0x65,0x6c])][_0x430b1f([0x6f,0x6e])](_0x430b1f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2cba94,_0x13b717)=>{_0x13b717[0x0][_0x430b1f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x321a63++,0x5e8==_0x321a63&&(_0x5c3a3f(),_0x2cba94[_0x430b1f([0x6f,0x66,0x66])]());});})),_0x52bdf6=[_0x31fc31,_0x5d9347];return window[_0x430b1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x430b1f([0x72,0x61,0x63,0x65])](_0x52bdf6)[_0x430b1f([0x74,0x68,0x65,0x6e])](()=>_0x2c0f96);}(_0x430b1f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x56a9a4&&_0x431517)return new window[(_0x430b1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4abf57,_0xd41e70)=>{_0x56a9a4[_0x430b1f([0x74,0x68,0x65,0x6e])](_0x4abf57,_0xd41e70),_0x431517[_0x430b1f([0x74,0x68,0x65,0x6e])](_0x13864d=>{_0x13864d!=_0x430b1f([0x56,0x61,0x6c,0x69,0x64])&&_0x4abf57(_0x13864d);},_0xd41e70);});return _0x56a9a4||_0x431517||_0x430b1f([0x56,0x61,0x6c,0x69,0x64]);}())):_0x430b1f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x430b1f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x430b1f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x430b1f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x20d90e(_0x32b28e){return _0x32b28e[_0x430b1f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x430b1f([0x65,0x79]))?JSON[_0x430b1f([0x70,0x61,0x72,0x73,0x65])](_0x2dedf1(_0x32b28e)):null;}function _0x2dedf1(_0x4fa594){return window[_0x430b1f([0x61,0x74,0x6f,0x62])](_0x4fa594[_0x430b1f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x430b1f([0x2b]))[_0x430b1f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x430b1f([0x2f])));}function _0x2c3c8a(_0x5bac1e){let _0x3f177e=0x1505;function _0x4462c1(_0x5dfaa0){for(let _0xfbb01=0x0;_0xfbb01<_0x5dfaa0[_0x430b1f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xfbb01++){const _0x201cb3=_0x5dfaa0[_0x430b1f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xfbb01);_0x3f177e=(_0x3f177e<<0x5)+_0x3f177e+_0x201cb3,_0x3f177e&=_0x3f177e;}}return function _0x1547d1(_0x45b537){Array[_0x430b1f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x45b537)?_0x45b537[_0x430b1f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1547d1):_0x45b537&&typeof _0x45b537==_0x430b1f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x430b1f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x45b537)[_0x430b1f([0x73,0x6f,0x72,0x74])]()[_0x430b1f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x274264,_0x1be305])=>{_0x4462c1(_0x274264),_0x1547d1(_0x1be305);}):_0x4462c1(window[_0x430b1f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x45b537));}(_0x5bac1e),_0x3f177e>>>0x0;}function _0x5d84c8(_0x16c702){return _0x16c702[_0x430b1f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x430b1f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x430b1f([0x30]));}function _0x5551a7(_0x490bea){return _0x490bea[_0x430b1f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x430b1f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x430b1f([0x6a,0x6f,0x69,0x6e])]('');}function _0x5bc9ca(){}function _0x430b1f(_0x56f3f){return _0x56f3f['map'](_0x4997cc=>String['fromCharCode'](_0x4997cc))['join']('');}!function(_0x5dc4c3){const _0x15eacd=(function(){const _0x5643b7=window[_0x430b1f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x430b1f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x430b1f([0x6e,0x6f,0x77])]())[_0x430b1f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x430b1f([0x2e]),'');let _0x2bebe0=_0x430b1f([0x6e]);for(let _0x25d834=0x0;_0x25d834<_0x5643b7[_0x430b1f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25d834+=0x2){let _0x39979d=window[_0x430b1f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5643b7[_0x430b1f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25d834,_0x25d834+0x2));_0x39979d>=_0x1ca090[_0x430b1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x39979d-=_0x1ca090[_0x430b1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2bebe0+=_0x1ca090[_0x39979d];}return _0x2bebe0;}());_0x45998f[_0x15eacd]=_0x430b1f([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5dc4c3,_0x5dc4c3!=_0x430b1f([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x53f42f,_0x45998f[_0x430b1f([0x6d,0x6f,0x64,0x65,0x6c])][_0x430b1f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5bc9ca,_0x45998f[_0x430b1f([0x6d,0x6f,0x64,0x65,0x6c])][_0x430b1f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5bc9ca,_0x45998f[_0x430b1f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x430b1f([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x21b967);}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(_0x58fa2f){super(_0x58fa2f),this['name']='AIRequestError';}}function getTranslation$j(_0x3fdd53,_0x4b909f,_0x19a9a8){const t=_0x3fdd53['t'];switch(_0x4b909f){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',_0x19a9a8);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x19a9a8);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'},_0x19a9a8);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_AWS_NOT_SUPPORTED':return t({'id':'AI_ERROR_AWS_NOT_SUPPORTED','string':'The\x20AWS\x20integration\x20is\x20no\x20longer\x20supported.\x20Please\x20contact\x20the\x20support.'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x4b909f;}}class ShowAIAssistantCommand extends Command{['_commandDefinitions'];constructor(_0x5dd926,_0x423988){super(_0x5dd926),this['_commandDefinitions']=_0x423988,this['set']('enabledCommandsIds',[]),this['on']('change:_hasContext',(_0x3cb0a0,_0x55c467,_0x41861d)=>{this['isEnabled']&&(this['enabledCommandsIds']=_getEnabledCommands(this['_commandDefinitions'],_0x41861d));}),this['set']('_hasContext',!0x1),this['on']('change:isEnabled',(_0x421999,_0x1576df,_0x483917)=>{this['enabledCommandsIds']=_0x483917?_getEnabledCommands(this['_commandDefinitions'],this['_hasContext']):[];});}['refresh'](){const _0x1e0ae6=this['editor']['model'];this['_hasContext']=_isContextAvailable(_0x1e0ae6);const _0x252b0f=_0x1e0ae6['document']['selection'],_0x303bea=this['editor']['config']['get']('ai.assistant.disabledElements');for(const _0x1110e of _0x252b0f['getRanges']())for(const _0x2b9154 of _0x1110e['getItems']())if(_0x2b9154['is']('element')&&_0x303bea['includes'](_0x2b9154['name']))return void(this['isEnabled']=!0x1);this['isEnabled']=!0x0;}['execute'](_0xb431a8='',_0x2f26e0='',_0x50efbd='custom'){this['editor']['plugins']['get'](AIAssistantUI)['showUI'](_0xb431a8,_0x2f26e0,_0x50efbd);}}function _isContextAvailable(_0x39580f){const _0x218435=_0x39580f['document']['selection'];return _0x218435['isCollapsed']?0x0!==[..._0x218435['getSelectedBlocks']()]['length']&&![..._0x218435['getSelectedBlocks']()][0x0]['isEmpty']:!!_0x39580f['hasContent'](_0x218435['getFirstRange']());}function _getEnabledCommands(_0x246fe2,_0x244b24){const _0x203544=new Set();for(const _0x4e30d6 of _0x246fe2['values']())(_0x244b24||!0x1===_0x4e30d6['requiresContent'])&&_0x203544['add'](_0x4e30d6['id']);return Array['from'](_0x203544);}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(_0x34cb2e,_0x2034eb,_0x557efc){super(),this['editor']=_0x34cb2e,this['textAdapter']=_0x2034eb,this['_sanitizationContainer']=document['createElement']('div'),this['_domParser']=new DOMParser(),this['_xmlSerializer']=new XMLSerializer(),this['view']=_0x557efc,this['set']({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on']('set:currentContext',(_0x4889d6,_0x2b5c7b,_0x264970)=>{this['view']['value']=this['_sanitizeHTML'](_0x264970);}),this['listenTo'](this['view'],'submitPrompt',(_0x4e3244,_0x4141a3)=>{const _0x56e452=this['currentContext']||this['initialContext'];this['_handleQuery'](_0x4141a3,_0x56e452,'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:_0x3df022,query:_0x25756d,htmlContent:_0x5dca4f,label:_0x4a4250,mainActionLabel:_0x1fd239}){this['view']['prompt']=_0x4a4250,this['view']['mainAction']=_0x1fd239,this['initialContext']=_0x5dca4f,_0x25756d&&(this['view']['isRendered']?this['_handleQuery'](_0x25756d,_0x5dca4f,_0x3df022,_0x4a4250):this['view']['once']('render',()=>{this['_handleQuery'](_0x25756d,_0x5dca4f,_0x3df022,_0x4a4250);}));}['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'](_0xe03157,_0x4ced95,_0x485708,_0x1fe60b){return this['isProcessing']=!0x0,this['view']['startProcessing'](),this['previousContext']=_0x4ced95,this['previousQuery']=_0xe03157,this['previousLabel']=_0x1fe60b||_0xe03157,this['previousActionId']=_0x485708,new Promise(_0x18e89d=>{this['textAdapter']['makeRequest']({'query':_0xe03157,'context':_0x4ced95,'onData':_0xa99460=>{this['currentResponse']=_0xa99460,this['currentContext']=this['_parseAndNormalizeContent'](this['currentResponse']);},'actionId':_0x485708})['then'](()=>{!this['currentContext']&&this['currentResponse']&&(this['currentContext']=this['_parseAndNormalizeContent'](this['currentResponse'],!0x0));})['catch'](_0x29ae18=>{_0x29ae18 instanceof AIRequestError?this['view']['handleError'](_0x29ae18['message']):this['view']['handleError'](),_0x18e89d();})['finally'](()=>{this['stopProcessing'](),_0x18e89d();});});}['_parseAndNormalizeContent'](_0x3b55cf,_0x35d0aa=!0x1){const _0x2879e3=ALL_UNTIL_FIRST_HTML_REGEX['exec'](_0x3b55cf);_0x3b55cf=_0x2879e3?_0x3b55cf['substring'](_0x2879e3[0x1]['length']):_0x3b55cf['length']<MIN_RESPONSE_LENGTH_TO_FIRST_HTML&&!_0x35d0aa?'':this['_stripMarkdownSyntax'](_0x3b55cf);const _0x1fd1bd=this['_domParser']['parseFromString'](_0x3b55cf,'text/html');if(_0x2879e3){const _0x2ef0a2=Array['from'](_0x1fd1bd['body']['childNodes']);_0x2ef0a2['reverse']();for(const _0x830511 of _0x2ef0a2){if(_0x830511['nodeType']==Node['ELEMENT_NODE'])break;_0x830511['remove']();}}const _0x58ba5a=this['editor']['data']['processor']['toView'](this['_xmlSerializer']['serializeToString'](_0x1fd1bd['body']));this['_isH1TagSupportEnabled']()||this['_normalizeResponseHeadings'](_0x58ba5a);const _0x45c067=this['editor']['config']['get']('ai.assistant.preserveComments'),_0x189435=this['editor']['data']['toModel'](_0x58ba5a);return _0x45c067||_0x189435['markers']['clear'](),this['editor']['data']['stringify'](_0x189435);}['_normalizeResponseHeadings'](_0x52b304){const _0x5d7704=new ViewUpcastWriter(this['editor']['editing']['view']['document']),_0x2ed970=new Matcher({'name':/^h[1-5]$/}),_0x154523=[];let _0x226c1b=!0x1;for(const _0x19ca34 of _0x52b304)_0x19ca34['is']('element')&&_0x2ed970['match'](_0x19ca34)&&(_0x154523['push'](_0x19ca34),'h1'==_0x19ca34['name']&&(_0x226c1b=!0x0));if(_0x226c1b){for(const _0x471f4d of _0x154523)_0x5d7704['rename']('h'+(parseInt(_0x471f4d['name'][0x1])+0x1),_0x471f4d);}}['_isH1TagSupportEnabled'](){const {data:_0x49ac4a,editing:_0x4f1a71}=this['editor'],_0x2555e2=_0x49ac4a['htmlProcessor']['toView']('<h1></h1>'),_0x5ae8cb=_0x49ac4a['toView'](_0x49ac4a['toModel'](_0x2555e2));return!!_0x4f1a71['view']['domConverter']['viewToDom'](_0x5ae8cb)['querySelector']('h1');}['_sanitizeHTML'](_0x1ab253){return this['editor']['editing']['view']['domConverter']['setContentOf'](this['_sanitizationContainer'],_0x1ab253),this['_sanitizationContainer']['innerHTML'];}['_stripMarkdownSyntax'](_0x2930bf){const _0xaafe88=_0x2930bf['trim']();return _0xaafe88['startsWith']('```html')?_0xaafe88['endsWith']('```')?_0xaafe88['substring'](0x7,_0xaafe88['length']-0x3):_0xaafe88['substring'](0x7):_0x2930bf;}}const AIFormToolbarViewMainActionLabel={'REPLACE':'replace','INSERT':'insert'};class AIFormToolbarView extends ToolbarView{constructor(_0x1268a2){super(_0x1268a2),this['set']('isVisible',!0x1),this['set']('mainAction',AIFormToolbarViewMainActionLabel['REPLACE']),this['replaceButton']=this['_createButton']('','ck-button-action'),this['replaceButton']['bind']('label')['to'](this,'mainAction',_0x50fe54=>getTranslation$j(_0x1268a2,'AI_'+_0x50fe54['toUpperCase']()+'_CONTENT')),this['insertButton']=this['_createButton'](getTranslation$j(_0x1268a2,'Insert\x20below')),this['tryAgainButton']=this['_createButton'](getTranslation$j(_0x1268a2,'Try\x20again')),this['stopButton']=this['_createButton'](getTranslation$j(_0x1268a2,'Stop'));const _0x1f00dd=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-ai-form__toolbar',_0x1f00dd['if']('isVisible','ck-hidden',_0x343a30=>!_0x343a30)]}}),this['items']['addMany']([this['replaceButton'],this['insertButton'],this['tryAgainButton'],this['stopButton']]);}['_createButton'](_0x1628cf,_0x1c9a92){const _0x1cb8c1=new ButtonView(this['locale']);return _0x1cb8c1['set']({'label':_0x1628cf,'class':_0x1c9a92||'','isVisible':!0x0,'withText':!0x0}),_0x1cb8c1;}}class AIFormContentArea extends View{['contentFieldView'];['copyButtonView'];constructor(_0x3acd3f,_0x4abcb5=''){super(_0x3acd3f),this['set']({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x5ba73d=this['bindTemplate'];this['contentFieldView']=new ContentFieldView(_0x3acd3f,_0x4abcb5),this['copyButtonView']=this['_createCopyButton'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__content-area-wrapper',_0x5ba73d['if']('isVisible','ck-hidden',_0x4cff1e=>!_0x4cff1e)],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-form__content-area',_0x5ba73d['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 _0x2785f4=!0x1;this['on']('change:value',(_0x7508c7,_0x5861b3,_0x3faf2f)=>{const _0x12196f=!this['contentFieldView']['element']['querySelector']('.ck-ai-form__loader');this['contentFieldView']['setContent'](_0x3faf2f),this['isProcessing']&&_0x12196f&&!_0x2785f4&&this['element']['scrollTo']({'top':this['element']['scrollHeight'],'behavior':'smooth'});}),this['on']('change:isProcessing',(_0x30ac64,_0x22337a,_0x203216)=>{_0x2785f4=!0x1,_0x203216?(this['value']=null,this['contentFieldView']['appendLoader']()):this['value']||this['contentFieldView']['setContent']('');}),this['listenTo'](this['element'],'wheel',()=>{_0x2785f4=!0x0;}),this['listenTo'](this['element'],'mousedown',()=>{_0x2785f4=!0x0;});}['focus'](){this['element']['focus']();}['_createCopyButton'](){const _0x2cb80a=this['locale'],_0x246d06=new ButtonView(this['locale']),_0x4cce8d='ck-ai-form__copy-button';return _0x246d06['set']({'label':getTranslation$j(_0x2cb80a,'Copy'),'icon':IconCopy,'class':_0x4cce8d,'tooltip':!0x0}),_0x246d06['bind']('isVisible')['to'](this,'value',_0x3c8c0b=>!!_0x3c8c0b),_0x246d06['bind']('isEnabled')['to'](this,'isProcessing',_0x3f3524=>!_0x3f3524),_0x246d06['on']('execute',()=>{this['_copyHTMLToClipboard'](this['contentFieldView']['element']),_0x246d06['icon']=IconCheck,_0x246d06['class']=_0x4cce8d+'\x20ck-ai-form__copy-button--copied',this['focus'](),setTimeout(()=>{_0x246d06['icon']=IconCopy,_0x246d06['class']=_0x4cce8d;},0x3e8);}),_0x246d06;}['_copyHTMLToClipboard'](_0x2cf345){const {window:_0x237d30,document:_0x932096}=_0x347e1e;if(_0x237d30['ClipboardItem']){const {Blob:_0x304933,ClipboardItem:_0x4d4542}=_0x237d30,_0x3abe41=[new _0x4d4542({'text/html':new _0x304933([_0x2cf345['innerHTML']],{'type':'text/html'}),'text/plain':new _0x304933([_0x2cf345['textContent']||''],{'type':'text/plain'})})];navigator['clipboard']['write'](_0x3abe41);}else{const _0x3ec352=_0x932096['createElement']('div');_0x3ec352['style']['position']='absolute',_0x3ec352['style']['left']='-9999px',_0x3ec352['innerHTML']='<span>[</span>'+_0x2cf345['innerHTML']+'<span>]</span>',_0x932096['body']['appendChild'](_0x3ec352);const _0x585ee0=_0x932096['createRange']();_0x585ee0['setStartAfter'](_0x3ec352['firstElementChild']),_0x585ee0['setEndBefore'](_0x3ec352['lastElementChild']);const _0x2722fb=_0x237d30['getSelection']();_0x2722fb['removeAllRanges'](),_0x2722fb['addRange'](_0x585ee0),_0x932096['execCommand']('copy'),_0x3ec352['remove']();}}}class ContentFieldView extends View{constructor(_0x11cd44,_0x519571=''){super(_0x11cd44),this['loaderView']=this['_createLoader'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-content',_0x519571,'ck-reset_all-excluded','ck-ai-form__content-field']}});}['setContent'](_0x1523ce){this['element']['innerHTML']=_0x1523ce;}['appendLoader'](){this['element']['appendChild'](this['loaderView']['element']);}['_createLoader'](){const _0x5a690e=new View(),_0x21e6e4=this['locale'],_0x6ad18b=new SpinnerView();return _0x6ad18b['isVisible']=!0x0,_0x5a690e['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__loader']},'children':[_0x6ad18b,{'text':getTranslation$j(_0x21e6e4,'AI\x20is\x20writing...')}]}),_0x5a690e['render'](),_0x5a690e;}}class AIFormErrorView extends View{constructor(_0x44d10b,_0x563759=''){super(_0x44d10b);const _0x1e133c=new IconView(),_0x12b62a=this['bindTemplate'];this['set']('text',_0x563759),_0x1e133c['content']=IconError,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__error']},'children':[_0x1e133c,{'text':_0x12b62a['to']('text')}]});}}class AIFormPromptView extends AutocompleteView{['submitButtonView'];['showHistoryButtonView'];constructor(_0x1523f4,_0x440cb5){super(_0x1523f4,_0x440cb5),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',(_0xb371a3,_0x168674)=>{_0xb371a3['target']==this['queryView']['fieldView']['element']&&(this['submit'](),_0x168674());});}['_createSubmitButton'](){const _0x39ac74=new ButtonView(this['locale']),_0x1295f1=this['locale'];return _0x39ac74['set']({'icon':IconSubmit,'label':getTranslation$j(_0x1295f1,'Submit'),'isVisible':!0x0,'tooltip':!0x0,'class':'ck-ai-form__submit'}),_0x39ac74['on']('execute',()=>{this['submit']();}),_0x39ac74['bind']('isEnabled')['to'](this['queryView']['fieldView'],'isEmpty',this,'isEnabled',(_0x12b243,_0x3687fa)=>!_0x12b243&&_0x3687fa),_0x39ac74;}['_createShowHistoryButton'](){const _0x228601=new ButtonView(this['locale']),_0x156414=this['resultsView'],_0x102f6c=this['locale'];_0x228601['set']({'label':getTranslation$j(_0x102f6c,'History'),'withText':!0x1,'icon':IconAIHistory,'tooltip':!0x0,'tooltipPosition':'sw','class':'ck-ai-form__toggle-history'}),_0x228601['bind']('isOn')['to'](_0x156414,'isVisible'),_0x228601['bind']('isEnabled')['to'](this,'isEnabled'),_0x228601['on']('execute',()=>{_0x156414['isVisible']=!_0x156414['isVisible'],_0x156414['isVisible']?this['filteredView']['focus']():this['focus']();});const _0x37dbb5=()=>{_0x347e1e['window']['requestAnimationFrame'](()=>{if(isVisible(this['element'])){const _0x2bcbe6=new Rect(this['queryView']['fieldView']['element']),_0x1fcdf7=_0x2bcbe6['width'],_0x367a6a='rtl'===_0x102f6c['uiLanguageDirection']?'left':'right';_0x2bcbe6['excludeScrollbarsAndBorders'](),_0x228601['element']['style'][_0x367a6a]=_0x1fcdf7-_0x2bcbe6['width']+0x1+'px';}});};return this['queryView']['fieldView']['on']('update',_0x37dbb5),this['on']('render',_0x37dbb5),_0x228601;}['submit'](){const _0x43fc6e=this['queryView']['fieldView']['element']['value'];this['fire']('submit',_0x43fc6e);}['focus'](_0x2333a1){-0x1===_0x2333a1?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}}class AIHistoryListView extends ListView{['historyGroupView'];['clearHistoryButton'];constructor(_0x45116f){super(_0x45116f),this['clearHistoryButton']=this['_createClearHistoryButton'](),this['historyGroupView']=new ListItemGroupView(),this['historyGroupView']['children']['add'](this['clearHistoryButton'],0x1),this['historyGroupView']['label']=getTranslation$j(_0x45116f,'Prompt\x20history'),this['historyGroupView']['items']['delegate']('execute')['to'](this),this['items']['add'](this['historyGroupView']);}['filter'](){let _0x268b09=0x0;for(const _0x462c96 of this['items'])_0x268b09+=_0x462c96['items']['length'];return{'resultsCount':_0x268b09,'totalItemsCount':_0x268b09};}['_createClearHistoryButton'](){const _0x110445=this['locale'],_0x59a166=new ButtonView(this['locale']);return _0x59a166['set']({'label':'('+getTranslation$j(_0x110445,'Clear')+')','withText':!0x0}),_0x59a166['on']('execute',()=>this['fire']('clearHistory')),_0x59a166;}}function isUnsafeProperty(_0x527977){return'__proto__'===_0x527977;}function isDeepKey(_0x4c57f4){switch(typeof _0x4c57f4){case'number':case'symbol':return!0x1;case'string':return _0x4c57f4['includes']('.')||_0x4c57f4['includes']('[')||_0x4c57f4['includes'](']');}}function toKey(_0x4933ef){return'string'==typeof _0x4933ef||'symbol'==typeof _0x4933ef?_0x4933ef:Object['is'](_0x4933ef?.['valueOf']?.(),-0x0)?'-0':String(_0x4933ef);}function toPath(_0x47b8ab){const _0x50ec00=[],_0x4b3cb2=_0x47b8ab['length'];if(0x0===_0x4b3cb2)return _0x50ec00;let _0x260eba=0x0,_0x5cce02='',_0x270e23='',_0x3b207e=!0x1;for(0x2e===_0x47b8ab['charCodeAt'](0x0)&&(_0x50ec00['push'](''),_0x260eba++);_0x260eba<_0x4b3cb2;){const _0x10cdc0=_0x47b8ab[_0x260eba];_0x270e23?'\x5c'===_0x10cdc0&&_0x260eba+0x1<_0x4b3cb2?(_0x260eba++,_0x5cce02+=_0x47b8ab[_0x260eba]):_0x10cdc0===_0x270e23?_0x270e23='':_0x5cce02+=_0x10cdc0:_0x3b207e?'\x22'===_0x10cdc0||'\x27'===_0x10cdc0?_0x270e23=_0x10cdc0:']'===_0x10cdc0?(_0x3b207e=!0x1,_0x50ec00['push'](_0x5cce02),_0x5cce02=''):_0x5cce02+=_0x10cdc0:'['===_0x10cdc0?(_0x3b207e=!0x0,_0x5cce02&&(_0x50ec00['push'](_0x5cce02),_0x5cce02='')):'.'===_0x10cdc0?_0x5cce02&&(_0x50ec00['push'](_0x5cce02),_0x5cce02=''):_0x5cce02+=_0x10cdc0,_0x260eba++;}return _0x5cce02&&_0x50ec00['push'](_0x5cce02),_0x50ec00;}function get(_0x4e8488,_0xd05b1f,_0x59224e){if(null==_0x4e8488)return _0x59224e;switch(typeof _0xd05b1f){case'string':{if(isUnsafeProperty(_0xd05b1f))return _0x59224e;const _0x1011f6=_0x4e8488[_0xd05b1f];return void 0x0===_0x1011f6?isDeepKey(_0xd05b1f)?get(_0x4e8488,toPath(_0xd05b1f),_0x59224e):_0x59224e:_0x1011f6;}case'number':case'symbol':{'number'==typeof _0xd05b1f&&(_0xd05b1f=toKey(_0xd05b1f));const _0x39af0b=_0x4e8488[_0xd05b1f];return void 0x0===_0x39af0b?_0x59224e:_0x39af0b;}default:{if(Array['isArray'](_0xd05b1f))return getWithPath(_0x4e8488,_0xd05b1f,_0x59224e);if(isUnsafeProperty(_0xd05b1f=Object['is'](_0xd05b1f?.['valueOf'](),-0x0)?'-0':String(_0xd05b1f)))return _0x59224e;const _0x4df46f=_0x4e8488[_0xd05b1f];return void 0x0===_0x4df46f?_0x59224e:_0x4df46f;}}}function getWithPath(_0x1ae98f,_0x2f8dac,_0x3f976f){if(0x0===_0x2f8dac['length'])return _0x3f976f;let _0x46c67c=_0x1ae98f;for(let _0x142a0c=0x0;_0x142a0c<_0x2f8dac['length'];_0x142a0c++){if(null==_0x46c67c)return _0x3f976f;if(isUnsafeProperty(_0x2f8dac[_0x142a0c]))return _0x3f976f;_0x46c67c=_0x46c67c[_0x2f8dac[_0x142a0c]];}return void 0x0===_0x46c67c?_0x3f976f:_0x46c67c;}function isObject$3(_0x1a3b0c){return null!==_0x1a3b0c&&('object'==typeof _0x1a3b0c||'function'==typeof _0x1a3b0c);}function isPrimitive(_0x2407e5){return null==_0x2407e5||'object'!=typeof _0x2407e5&&'function'!=typeof _0x2407e5;}function eq(_0x96b8d1,_0x1da5fa){return _0x96b8d1===_0x1da5fa||Number['isNaN'](_0x96b8d1)&&Number['isNaN'](_0x1da5fa);}function getSymbols(_0x3a38e3){return Object['getOwnPropertySymbols'](_0x3a38e3)['filter'](_0xf65de4=>Object['prototype']['propertyIsEnumerable']['call'](_0x3a38e3,_0xf65de4));}function getTag(_0x35c475){return null==_0x35c475?void 0x0===_0x35c475?'[object\x20Undefined]':'[object\x20Null]':Object['prototype']['toString']['call'](_0x35c475);}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(_0x407c68){return ArrayBuffer['isView'](_0x407c68)&&!(_0x407c68 instanceof DataView);}function cloneDeepWith$1(_0x5b2be5,_0x52765e){return cloneDeepWithImpl(_0x5b2be5,void 0x0,_0x5b2be5,new Map(),_0x52765e);}function cloneDeepWithImpl(_0x5a8a52,_0x1a1b01,_0x29e955,_0x38c4d7=new Map(),_0x3e3743=void 0x0){const _0x165c15=_0x3e3743?.(_0x5a8a52,_0x1a1b01,_0x29e955,_0x38c4d7);if(null!=_0x165c15)return _0x165c15;if(isPrimitive(_0x5a8a52))return _0x5a8a52;if(_0x38c4d7['has'](_0x5a8a52))return _0x38c4d7['get'](_0x5a8a52);if(Array['isArray'](_0x5a8a52)){const _0x3c3adc=new Array(_0x5a8a52['length']);_0x38c4d7['set'](_0x5a8a52,_0x3c3adc);for(let _0x247db2=0x0;_0x247db2<_0x5a8a52['length'];_0x247db2++)_0x3c3adc[_0x247db2]=cloneDeepWithImpl(_0x5a8a52[_0x247db2],_0x247db2,_0x29e955,_0x38c4d7,_0x3e3743);return Object['hasOwn'](_0x5a8a52,'index')&&(_0x3c3adc['index']=_0x5a8a52['index']),Object['hasOwn'](_0x5a8a52,'input')&&(_0x3c3adc['input']=_0x5a8a52['input']),_0x3c3adc;}if(_0x5a8a52 instanceof Date)return new Date(_0x5a8a52['getTime']());if(_0x5a8a52 instanceof RegExp){const _0x352068=new RegExp(_0x5a8a52['source'],_0x5a8a52['flags']);return _0x352068['lastIndex']=_0x5a8a52['lastIndex'],_0x352068;}if(_0x5a8a52 instanceof Map){const _0x4017f4=new Map();_0x38c4d7['set'](_0x5a8a52,_0x4017f4);for(const [_0x35606f,_0x5b8a06]of _0x5a8a52)_0x4017f4['set'](_0x35606f,cloneDeepWithImpl(_0x5b8a06,_0x35606f,_0x29e955,_0x38c4d7,_0x3e3743));return _0x4017f4;}if(_0x5a8a52 instanceof Set){const _0x496c1d=new Set();_0x38c4d7['set'](_0x5a8a52,_0x496c1d);for(const _0x346f21 of _0x5a8a52)_0x496c1d['add'](cloneDeepWithImpl(_0x346f21,void 0x0,_0x29e955,_0x38c4d7,_0x3e3743));return _0x496c1d;}if('undefined'!=typeof Buffer&&Buffer['isBuffer'](_0x5a8a52))return _0x5a8a52['subarray']();if(isTypedArray(_0x5a8a52)){const _0x37d5b7=new(Object['getPrototypeOf'](_0x5a8a52))['constructor'](_0x5a8a52['length']);_0x38c4d7['set'](_0x5a8a52,_0x37d5b7);for(let _0x48f1c3=0x0;_0x48f1c3<_0x5a8a52['length'];_0x48f1c3++)_0x37d5b7[_0x48f1c3]=cloneDeepWithImpl(_0x5a8a52[_0x48f1c3],_0x48f1c3,_0x29e955,_0x38c4d7,_0x3e3743);return _0x37d5b7;}if(_0x5a8a52 instanceof ArrayBuffer||'undefined'!=typeof SharedArrayBuffer&&_0x5a8a52 instanceof SharedArrayBuffer)return _0x5a8a52['slice'](0x0);if(_0x5a8a52 instanceof DataView){const _0x4f322c=new DataView(_0x5a8a52['buffer']['slice'](0x0),_0x5a8a52['byteOffset'],_0x5a8a52['byteLength']);return _0x38c4d7['set'](_0x5a8a52,_0x4f322c),copyProperties(_0x4f322c,_0x5a8a52,_0x29e955,_0x38c4d7,_0x3e3743),_0x4f322c;}if('undefined'!=typeof File&&_0x5a8a52 instanceof File){const _0x4754d8=new File([_0x5a8a52],_0x5a8a52['name'],{'type':_0x5a8a52['type']});return _0x38c4d7['set'](_0x5a8a52,_0x4754d8),copyProperties(_0x4754d8,_0x5a8a52,_0x29e955,_0x38c4d7,_0x3e3743),_0x4754d8;}if(_0x5a8a52 instanceof Blob){const _0x4fdb6f=new Blob([_0x5a8a52],{'type':_0x5a8a52['type']});return _0x38c4d7['set'](_0x5a8a52,_0x4fdb6f),copyProperties(_0x4fdb6f,_0x5a8a52,_0x29e955,_0x38c4d7,_0x3e3743),_0x4fdb6f;}if(_0x5a8a52 instanceof Error){const _0x2d6409=new _0x5a8a52['constructor']();return _0x38c4d7['set'](_0x5a8a52,_0x2d6409),_0x2d6409['message']=_0x5a8a52['message'],_0x2d6409['name']=_0x5a8a52['name'],_0x2d6409['stack']=_0x5a8a52['stack'],_0x2d6409['cause']=_0x5a8a52['cause'],copyProperties(_0x2d6409,_0x5a8a52,_0x29e955,_0x38c4d7,_0x3e3743),_0x2d6409;}if('object'==typeof _0x5a8a52&&isCloneableObject(_0x5a8a52)){const _0x52a5a5=Object['create'](Object['getPrototypeOf'](_0x5a8a52));return _0x38c4d7['set'](_0x5a8a52,_0x52a5a5),copyProperties(_0x52a5a5,_0x5a8a52,_0x29e955,_0x38c4d7,_0x3e3743),_0x52a5a5;}return _0x5a8a52;}function copyProperties(_0x1e10b6,_0x2ef6f7,_0x41a16b=_0x1e10b6,_0x1bae79,_0xbea67b){const _0x229b6f=[...Object['keys'](_0x2ef6f7),...getSymbols(_0x2ef6f7)];for(let _0x447670=0x0;_0x447670<_0x229b6f['length'];_0x447670++){const _0x2fa7f5=_0x229b6f[_0x447670],_0x5bcf1a=Object['getOwnPropertyDescriptor'](_0x1e10b6,_0x2fa7f5);(null==_0x5bcf1a||_0x5bcf1a['writable'])&&(_0x1e10b6[_0x2fa7f5]=cloneDeepWithImpl(_0x2ef6f7[_0x2fa7f5],_0x2fa7f5,_0x41a16b,_0x1bae79,_0xbea67b));}}function isCloneableObject(_0x59ccf3){switch(getTag(_0x59ccf3)){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(_0x41195b){return cloneDeepWithImpl(_0x41195b,void 0x0,_0x41195b,new Map(),void 0x0);}function cloneDeepWith(_0x12f222,_0x56813e){return cloneDeepWith$1(_0x12f222,(_0x493e5f,_0x21c9ac,_0x4ec933,_0x10c9f6)=>{if('object'==typeof _0x12f222)switch(Object['prototype']['toString']['call'](_0x12f222)){case numberTag:case stringTag:case booleanTag:{const _0x14cb49=new _0x12f222['constructor'](_0x12f222?.['valueOf']());return copyProperties(_0x14cb49,_0x12f222),_0x14cb49;}case argumentsTag:{const _0x295322={};return copyProperties(_0x295322,_0x12f222),_0x295322['length']=_0x12f222['length'],_0x295322[Symbol['iterator']]=_0x12f222[Symbol['iterator']],_0x295322;}default:return;}});}function cloneDeep(_0x2013f4){return cloneDeepWith(_0x2013f4);}const IS_UNSIGNED_INTEGER=/^(?:0|[1-9]\d*)$/;function isIndex(_0x4dad1a,_0x24f836=Number['MAX_SAFE_INTEGER']){switch(typeof _0x4dad1a){case'number':return Number['isInteger'](_0x4dad1a)&&_0x4dad1a>=0x0&&_0x4dad1a<_0x24f836;case'symbol':return!0x1;case'string':return IS_UNSIGNED_INTEGER['test'](_0x4dad1a);}}function isObjectLike(_0x394a23){return'object'==typeof _0x394a23&&null!==_0x394a23;}function isSymbol(_0x1e9f51){return'symbol'==typeof _0x1e9f51||_0x1e9f51 instanceof Symbol;}const regexIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,regexIsPlainProp=/^\w*$/;function isKey(_0x57decf,_0x4bd56d){return!Array['isArray'](_0x57decf)&&(!('number'!=typeof _0x57decf&&'boolean'!=typeof _0x57decf&&null!=_0x57decf&&!isSymbol(_0x57decf))||('string'==typeof _0x57decf&&(regexIsPlainProp['test'](_0x57decf)||!regexIsDeepProp['test'](_0x57decf))||null!=_0x4bd56d&&Object['hasOwn'](_0x4bd56d,_0x57decf)));}function unset(_0x4dd9aa,_0x2228a7){if(null==_0x4dd9aa)return!0x0;switch(typeof _0x2228a7){case'symbol':case'number':case'object':if(Array['isArray'](_0x2228a7))return unsetWithPath(_0x4dd9aa,_0x2228a7);if('number'==typeof _0x2228a7?_0x2228a7=toKey(_0x2228a7):'object'==typeof _0x2228a7&&(_0x2228a7=Object['is'](_0x2228a7?.['valueOf'](),-0x0)?'-0':String(_0x2228a7)),isUnsafeProperty(_0x2228a7))return!0x1;if(void 0x0===_0x4dd9aa?.[_0x2228a7])return!0x0;try{return delete _0x4dd9aa[_0x2228a7],!0x0;}catch{return!0x1;}case'string':if(void 0x0===_0x4dd9aa?.[_0x2228a7]&&isDeepKey(_0x2228a7))return unsetWithPath(_0x4dd9aa,toPath(_0x2228a7));if(isUnsafeProperty(_0x2228a7))return!0x1;try{return delete _0x4dd9aa[_0x2228a7],!0x0;}catch{return!0x1;}}}function unsetWithPath(_0x597172,_0x1f11d7){const _0x4e13d0=get(_0x597172,_0x1f11d7['slice'](0x0,-0x1),_0x597172),_0x3d0a52=_0x1f11d7[_0x1f11d7['length']-0x1];if(void 0x0===_0x4e13d0?.[_0x3d0a52])return!0x0;if(isUnsafeProperty(_0x3d0a52))return!0x1;try{return delete _0x4e13d0[_0x3d0a52],!0x0;}catch{return!0x1;}}const assignValue=(_0x3373d7,_0x8520e6,_0x466a4b)=>{const _0x52193f=_0x3373d7[_0x8520e6];Object['hasOwn'](_0x3373d7,_0x8520e6)&&eq(_0x52193f,_0x466a4b)&&(void 0x0!==_0x466a4b||_0x8520e6 in _0x3373d7)||(_0x3373d7[_0x8520e6]=_0x466a4b);};function updateWith(_0x402701,_0x4445a8,_0x2413eb,_0x257a4c){if(null==_0x402701&&!isObject$3(_0x402701))return _0x402701;const _0x3c5aab=isKey(_0x4445a8,_0x402701)?[_0x4445a8]:Array['isArray'](_0x4445a8)?_0x4445a8:'string'==typeof _0x4445a8?toPath(_0x4445a8):[_0x4445a8];let _0x2e86c3=_0x402701;for(let _0x2a21c1=0x0;_0x2a21c1<_0x3c5aab['length']&&null!=_0x2e86c3;_0x2a21c1++){const _0x46d054=toKey(_0x3c5aab[_0x2a21c1]);if(isUnsafeProperty(_0x46d054))continue;let _0xf25baf;if(_0x2a21c1===_0x3c5aab['length']-0x1)_0xf25baf=_0x2413eb(_0x2e86c3[_0x46d054]);else{const _0x44f18c=_0x2e86c3[_0x46d054],_0x257c3f=_0x257a4c?.(_0x44f18c,_0x46d054,_0x402701);_0xf25baf=void 0x0!==_0x257c3f?_0x257c3f:isObject$3(_0x44f18c)?_0x44f18c:isIndex(_0x3c5aab[_0x2a21c1+0x1])?[]:{};}assignValue(_0x2e86c3,_0x46d054,_0xf25baf),_0x2e86c3=_0x2e86c3[_0x46d054];}return _0x402701;}function set(_0x2bd4e6,_0x206481,_0x237162){return updateWith(_0x2bd4e6,_0x206481,()=>_0x237162,()=>{});}function debounce$2(_0x346cf,_0xb93df5,{signal:_0x3fbcfb,edges:_0x27bf70}={}){let _0x3ac698,_0x16abaa=null;const _0xf26c16=null!=_0x27bf70&&_0x27bf70['includes']('leading'),_0x23679c=null==_0x27bf70||_0x27bf70['includes']('trailing'),_0x2964e0=()=>{null!==_0x16abaa&&(_0x346cf['apply'](_0x3ac698,_0x16abaa),_0x3ac698=void 0x0,_0x16abaa=null);};let _0x4121e3=null;const _0x3645a9=()=>{null!=_0x4121e3&&clearTimeout(_0x4121e3),_0x4121e3=setTimeout(()=>{_0x4121e3=null,_0x23679c&&_0x2964e0(),_0xf00d4c();},_0xb93df5);},_0x1cd82e=()=>{null!==_0x4121e3&&(clearTimeout(_0x4121e3),_0x4121e3=null);},_0xf00d4c=()=>{_0x1cd82e(),_0x3ac698=void 0x0,_0x16abaa=null;},_0x260ea2=function(..._0x18045c){if(_0x3fbcfb?.['aborted'])return;_0x3ac698=this,_0x16abaa=_0x18045c;const _0x476782=null==_0x4121e3;_0x3645a9(),_0xf26c16&&_0x476782&&_0x2964e0();};return _0x260ea2['schedule']=_0x3645a9,_0x260ea2['cancel']=_0xf00d4c,_0x260ea2['flush']=()=>{_0x1cd82e(),_0x2964e0();},_0x3fbcfb?.['addEventListener']('abort',_0xf00d4c,{'once':!0x0}),_0x260ea2;}function debounce$1(_0x3ebccc,_0x57dfe5=0x0,_0x7f7c49={}){'object'!=typeof _0x7f7c49&&(_0x7f7c49={});const {leading:_0xd9473b=!0x1,trailing:_0x2d494a=!0x0,maxWait:_0x34d17e}=_0x7f7c49,_0x25af81=Array(0x2);let _0x5d7ec3;_0xd9473b&&(_0x25af81[0x0]='leading'),_0x2d494a&&(_0x25af81[0x1]='trailing');let _0x51dc43=null;const _0x1bc7e8=debounce$2(function(..._0x20c0d4){_0x5d7ec3=_0x3ebccc['apply'](this,_0x20c0d4),_0x51dc43=null;},_0x57dfe5,{'edges':_0x25af81}),_0x4fdec7=function(..._0x56dde0){return null!=_0x34d17e&&(null===_0x51dc43&&(_0x51dc43=Date['now']()),Date['now']()-_0x51dc43>=_0x34d17e)?(_0x5d7ec3=_0x3ebccc['apply'](this,_0x56dde0),_0x51dc43=Date['now'](),_0x1bc7e8['cancel'](),_0x1bc7e8['schedule'](),_0x5d7ec3):(_0x1bc7e8['apply'](this,_0x56dde0),_0x5d7ec3);};return _0x4fdec7['cancel']=_0x1bc7e8['cancel'],_0x4fdec7['flush']=()=>(_0x1bc7e8['flush'](),_0x5d7ec3),_0x4fdec7;}function throttle$1(_0x30a00c,_0x5786b1=0x0,_0x1e48c2={}){'object'!=typeof _0x1e48c2&&(_0x1e48c2={});const {leading:_0x589cb5=!0x0,trailing:_0x37c2b0=!0x0}=_0x1e48c2;return debounce$1(_0x30a00c,_0x5786b1,{'leading':_0x589cb5,'trailing':_0x37c2b0,'maxWait':_0x5786b1});}function toString$2(_0x11b48b){if(null==_0x11b48b)return'';if('string'==typeof _0x11b48b)return _0x11b48b;if(Array['isArray'](_0x11b48b))return _0x11b48b['map'](toString$2)['join'](',');const _0x3c39bc=String(_0x11b48b);return'0'===_0x3c39bc&&Object['is'](Number(_0x11b48b),-0x0)?'-0':_0x3c39bc;}function isPlainObject$1(_0x1c0eb3){if(!_0x1c0eb3||'object'!=typeof _0x1c0eb3)return!0x1;const _0x14aca8=Object['getPrototypeOf'](_0x1c0eb3);return!(null!==_0x14aca8&&_0x14aca8!==Object['prototype']&&null!==Object['getPrototypeOf'](_0x14aca8))&&'[object\x20Object]'===Object['prototype']['toString']['call'](_0x1c0eb3);}function isEqualWith(_0x3ca200,_0x5a4964,_0x3bf229){return isEqualWithImpl(_0x3ca200,_0x5a4964,void 0x0,void 0x0,void 0x0,void 0x0,_0x3bf229);}function isEqualWithImpl(_0x465aac,_0x52bbae,_0x2fd922,_0x196371,_0x56d416,_0x3c6e96,_0x286b86){const _0x412663=_0x286b86(_0x465aac,_0x52bbae,_0x2fd922,_0x196371,_0x56d416,_0x3c6e96);if(void 0x0!==_0x412663)return _0x412663;if(typeof _0x465aac==typeof _0x52bbae)switch(typeof _0x465aac){case'bigint':case'string':case'boolean':case'symbol':case'undefined':case'function':return _0x465aac===_0x52bbae;case'number':return _0x465aac===_0x52bbae||Object['is'](_0x465aac,_0x52bbae);case'object':return areObjectsEqual(_0x465aac,_0x52bbae,_0x3c6e96,_0x286b86);}return areObjectsEqual(_0x465aac,_0x52bbae,_0x3c6e96,_0x286b86);}function areObjectsEqual(_0x29635a,_0x42b7ec,_0x1fbc09,_0x431aee){if(Object['is'](_0x29635a,_0x42b7ec))return!0x0;let _0x1ff44b=getTag(_0x29635a),_0x156b49=getTag(_0x42b7ec);if(_0x1ff44b===argumentsTag&&(_0x1ff44b=objectTag),_0x156b49===argumentsTag&&(_0x156b49=objectTag),_0x1ff44b!==_0x156b49)return!0x1;switch(_0x1ff44b){case stringTag:return _0x29635a['toString']()===_0x42b7ec['toString']();case numberTag:return eq(_0x29635a['valueOf'](),_0x42b7ec['valueOf']());case booleanTag:case dateTag:case symbolTag:return Object['is'](_0x29635a['valueOf'](),_0x42b7ec['valueOf']());case regexpTag:return _0x29635a['source']===_0x42b7ec['source']&&_0x29635a['flags']===_0x42b7ec['flags'];case functionTag:return _0x29635a===_0x42b7ec;}const _0xce17e9=(_0x1fbc09=_0x1fbc09??new Map())['get'](_0x29635a),_0x5bdcbd=_0x1fbc09['get'](_0x42b7ec);if(null!=_0xce17e9&&null!=_0x5bdcbd)return _0xce17e9===_0x42b7ec;_0x1fbc09['set'](_0x29635a,_0x42b7ec),_0x1fbc09['set'](_0x42b7ec,_0x29635a);try{switch(_0x1ff44b){case mapTag:if(_0x29635a['size']!==_0x42b7ec['size'])return!0x1;for(const [_0x4815a0,_0x3bc100]of _0x29635a['entries']())if(!_0x42b7ec['has'](_0x4815a0)||!isEqualWithImpl(_0x3bc100,_0x42b7ec['get'](_0x4815a0),_0x4815a0,_0x29635a,_0x42b7ec,_0x1fbc09,_0x431aee))return!0x1;return!0x0;case setTag:{if(_0x29635a['size']!==_0x42b7ec['size'])return!0x1;const _0x4ac06c=Array['from'](_0x29635a['values']()),_0x4e4343=Array['from'](_0x42b7ec['values']());for(let _0x3c2142=0x0;_0x3c2142<_0x4ac06c['length'];_0x3c2142++){const _0x56bbfd=_0x4ac06c[_0x3c2142],_0x516f1f=_0x4e4343['findIndex'](_0x33342a=>isEqualWithImpl(_0x56bbfd,_0x33342a,void 0x0,_0x29635a,_0x42b7ec,_0x1fbc09,_0x431aee));if(-0x1===_0x516f1f)return!0x1;_0x4e4343['splice'](_0x516f1f,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'](_0x29635a)!==Buffer['isBuffer'](_0x42b7ec))return!0x1;if(_0x29635a['length']!==_0x42b7ec['length'])return!0x1;for(let _0x33eb1f=0x0;_0x33eb1f<_0x29635a['length'];_0x33eb1f++)if(!isEqualWithImpl(_0x29635a[_0x33eb1f],_0x42b7ec[_0x33eb1f],_0x33eb1f,_0x29635a,_0x42b7ec,_0x1fbc09,_0x431aee))return!0x1;return!0x0;case arrayBufferTag:return _0x29635a['byteLength']===_0x42b7ec['byteLength']&&areObjectsEqual(new Uint8Array(_0x29635a),new Uint8Array(_0x42b7ec),_0x1fbc09,_0x431aee);case dataViewTag:return _0x29635a['byteLength']===_0x42b7ec['byteLength']&&_0x29635a['byteOffset']===_0x42b7ec['byteOffset']&&areObjectsEqual(new Uint8Array(_0x29635a),new Uint8Array(_0x42b7ec),_0x1fbc09,_0x431aee);case errorTag:return _0x29635a['name']===_0x42b7ec['name']&&_0x29635a['message']===_0x42b7ec['message'];case objectTag:{if(!(areObjectsEqual(_0x29635a['constructor'],_0x42b7ec['constructor'],_0x1fbc09,_0x431aee)||isPlainObject$1(_0x29635a)&&isPlainObject$1(_0x42b7ec)))return!0x1;const _0x52f6bc=[...Object['keys'](_0x29635a),...getSymbols(_0x29635a)],_0x9cfeb4=[...Object['keys'](_0x42b7ec),...getSymbols(_0x42b7ec)];if(_0x52f6bc['length']!==_0x9cfeb4['length'])return!0x1;for(let _0x10a6ae=0x0;_0x10a6ae<_0x52f6bc['length'];_0x10a6ae++){const _0x42db40=_0x52f6bc[_0x10a6ae],_0x365aa0=_0x29635a[_0x42db40];if(!Object['hasOwn'](_0x42b7ec,_0x42db40))return!0x1;if(!isEqualWithImpl(_0x365aa0,_0x42b7ec[_0x42db40],_0x42db40,_0x29635a,_0x42b7ec,_0x1fbc09,_0x431aee))return!0x1;}return!0x0;}default:return!0x1;}}finally{_0x1fbc09['delete'](_0x29635a),_0x1fbc09['delete'](_0x42b7ec);}}function noop$2(){}function isEqual(_0x516aeb,_0x5b0fee){return isEqualWith(_0x516aeb,_0x5b0fee,noop$2);}function isPlainObject(_0x47fed8){if('object'!=typeof _0x47fed8)return!0x1;if(null==_0x47fed8)return!0x1;if(null===Object['getPrototypeOf'](_0x47fed8))return!0x0;if('[object\x20Object]'!==Object['prototype']['toString']['call'](_0x47fed8)){const _0x16f6ac=_0x47fed8[Symbol['toStringTag']];if(null==_0x16f6ac)return!0x1;return!!Object['getOwnPropertyDescriptor'](_0x47fed8,Symbol['toStringTag'])?.['writable']&&_0x47fed8['toString']()==='[object\x20'+_0x16f6ac+']';}let _0x5e334b=_0x47fed8;for(;null!==Object['getPrototypeOf'](_0x5e334b);)_0x5e334b=Object['getPrototypeOf'](_0x5e334b);return Object['getPrototypeOf'](_0x47fed8)===_0x5e334b;}function omit(_0x1663fa,..._0x2bb05c){if(null==_0x1663fa)return{};const _0x5f3ead=cloneDeep$1(_0x1663fa);for(let _0x51c087=0x0;_0x51c087<_0x2bb05c['length'];_0x51c087++){let _0x52b540=_0x2bb05c[_0x51c087];switch(typeof _0x52b540){case'object':Array['isArray'](_0x52b540)||(_0x52b540=Array['from'](_0x52b540));for(let _0xb2670=0x0;_0xb2670<_0x52b540['length'];_0xb2670++){unset(_0x5f3ead,_0x52b540[_0xb2670]);}break;case'string':case'symbol':case'number':unset(_0x5f3ead,_0x52b540);}}return _0x5f3ead;}function isElement$2(_0x5c716b){return isObjectLike(_0x5c716b)&&0x1===_0x5c716b['nodeType']&&!isPlainObject(_0x5c716b);}const htmlEscapes={'&':'&amp;','<':'&lt;','>':'&gt;','\x22':'&quot;','\x27':'&#39;'};function escape$1(_0x2d37c1){return _0x2d37c1['replace'](/[&<>"']/g,_0x597b96=>htmlEscapes[_0x597b96]);}function escape(_0x115b5b){return escape$1(toString$2(_0x115b5b));}function escapeRegExp$2(_0x20bf63){return _0x20bf63['replace'](/[\\^$.*+?()[\]{}|]/g,'\x5c$&');}function escapeRegExp$1(_0x304592){return escapeRegExp$2(toString$2(_0x304592));}const htmlUnescapes={'&amp;':'&','&lt;':'<','&gt;':'>','&quot;':'\x22','&#39;':'\x27'};function unescape$2(_0x5977d6){return _0x5977d6['replace'](/&(?:amp|lt|gt|quot|#(0+)?39);/g,_0x42bba1=>htmlUnescapes[_0x42bba1]||'\x27');}function unescape$1(_0x387acb){return unescape$2(toString$2(_0x387acb));}class AIHistoryListItemView extends ListItemView{constructor(_0x4a5d0){super();const _0x48c9bb=new ButtonLabelView(),_0x2132a0=new ButtonView(this['locale'],_0x48c9bb);this['children']['add'](_0x2132a0),_0x2132a0['set']({'label':_0x4a5d0['prompt'],'withText':!0x0}),_0x2132a0['on']('execute',()=>{this['fire']('execute',{'value':unescape$1(_0x4a5d0['prompt'])});});}}const SESSION_STORAGE_KEY='CKEditor/AIFormView/PromptHistory',MAX_HISTORY_LENGTH=0x14;class PromptHistory extends Collection{constructor(){super(),this['_loadFromSessionStorage'](),this['on']('add',(_0x44d488,_0x1a7f4a)=>{const _0x15b3df=normalizePromptText(_0x1a7f4a['prompt']);for(const _0x2b69ab of this)if(_0x2b69ab!=_0x1a7f4a&&normalizePromptText(_0x2b69ab['prompt'])===_0x15b3df){this['remove'](_0x2b69ab);break;}this['length']>MAX_HISTORY_LENGTH&&this['remove'](this['last']),this['_saveToSessionStorage']();}),this['on']('remove',()=>{this['_saveToSessionStorage']();});}['_loadFromSessionStorage'](){const _0x572303=sessionStorage['getItem'](SESSION_STORAGE_KEY)||'[]';this['addMany'](JSON['parse'](_0x572303));}['_saveToSessionStorage'](){sessionStorage['setItem'](SESSION_STORAGE_KEY,JSON['stringify'](this['map'](_0x2d442c=>_0x2d442c)));}}function normalizePromptText(_0x20d5d1){return _0x20d5d1['toLowerCase']()['trim']();}class AIFormView extends View{['focusTracker'];['keystrokes'];['contentArea'];['toolbar'];['promptView'];['errorView'];['_focusables'];['focusCycler'];['_promptHistory'];constructor(_0x5c075a,_0x360f43,_0x54cb98=''){super(_0x5c075a),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(_0x5c075a),this['contentArea']=new AIFormContentArea(_0x5c075a,_0x54cb98),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 _0x2a63a6=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form',_0x360f43],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-form-content']},'children':[{'tag':'div','attributes':{'class':[_0x2a63a6['if']('isError','ck-hidden',_0x47f731=>!_0x47f731)]},'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'](_0x61f8e7=0x1){-0x1===_0x61f8e7?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 _0x829b79=this['locale'],_0x80cb=new AIFormPromptView(_0x829b79,{'queryView':{'label':getTranslation$j(_0x829b79,'Ask\x20AI\x20to\x20edit\x20or\x20generate'),'creator':createLabeledTextarea,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':getTranslation$j(_0x829b79,'Empty\x20history'),'secondary':getTranslation$j(_0x829b79,'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.')}}},'filteredView':this['_createHistoryView'](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x80cb['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',(_0x120612,_0x2b3fb8)=>_0x120612&&!_0x2b3fb8),this['listenTo'](_0x80cb,'submit',(_0x22da55,_0x3ec87b)=>{this['prompt']=_0x3ec87b;const _0x59f8b9=escape(_0x3ec87b);this['fire']('submitPrompt',_0x59f8b9),_0x3ec87b['trim']()&&this['_promptHistory']['add']({'prompt':_0x59f8b9},0x0);},{'priority':'high'}),_0x80cb;}['_createHistoryView'](){const _0x53e823=new AIHistoryListView(this['locale']);return _0x53e823['historyGroupView']['items']['bindTo'](this['_promptHistory'])['as'](AIHistoryListItemView),_0x53e823['on']('clearHistory',()=>{this['_promptHistory']['clear'](),this['promptView']['search'](''),this['promptView']['focus']();}),_0x53e823;}['_createToolbar'](){const _0x46c33a=new AIFormToolbarView(this['locale']);return _0x46c33a['replaceButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',this,'value',(_0x4f4d0c,_0xcd2ad3,_0x56d9e8)=>_0x4f4d0c&&!_0xcd2ad3&&!!_0x56d9e8),_0x46c33a['replaceButton']['delegate']('execute')['to'](this,'replaceContent'),_0x46c33a['insertButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',this,'value',(_0x5e92fb,_0x301443,_0x16ce85)=>_0x5e92fb&&!_0x301443&&!!_0x16ce85),_0x46c33a['insertButton']['delegate']('execute')['to'](this,'insertContentBelow'),_0x46c33a['tryAgainButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',(_0x42a40c,_0x210665)=>_0x42a40c&&!_0x210665),_0x46c33a['tryAgainButton']['delegate']('execute')['to'](this,'tryAgainEvent'),_0x46c33a['stopButton']['bind']('isEnabled')['to'](this,'isProcessing'),_0x46c33a['stopButton']['delegate']('execute')['to'](this,'stopProcessing'),_0x46c33a;}['startProcessing'](){this['value']='',this['isError']=!0x1,this['isProcessing']=!0x0,this['contentArea']['isVisible']=!0x0,this['toolbar']['isVisible']=!0x0,this['contentArea']['focus']();}['finishProcessing'](){const _0x388711=this['locale'];this['isProcessing']=!0x1,this['prompt']='',this['promptView']['reset'](),this['value']&&(this['promptView']['queryView']['label']=getTranslation$j(_0x388711,'Ask\x20AI\x20to\x20improve\x20generated\x20text'));}['handleError'](_0x8fdbb5){const _0x597f48=this['locale'];this['finishProcessing'](),this['isError']=!0x0,this['errorView']['text']=_0x8fdbb5||getTranslation$j(_0x597f48,'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(_0x5ee801){super(_0x5ee801),_0x5ee801['config']['define']('ai.assistant.disabledElements',['media','rawHtml','tableOfContents']),_0x5ee801['config']['define']('ai.assistant.contentAreaCssClass',''),_0x5ee801['config']['define']('ai.assistant.useTheme',!0x0),this['_uiCssClasses']='ck-ai-assistant-ui'+(_0x5ee801['config']['get']('ai.assistant.useTheme')?'\x20ck-ai-assistant-ui_theme':'');}['init'](){const {editor:_0x510b52}=this;this['_aiAdapter']=_0x510b52['plugins']['get'](AIAdapter),this['_dialog']=_0x510b52['plugins']['get'](Dialog),this['_formView']=null,this['_commandDefinitions']=this['_getResolvedCommandsDefinitions']();const _0x57b577=new ShowAIAssistantCommand(_0x510b52,Array['from'](this['_commandDefinitions']['values']()));_0x510b52['commands']['add']('showAIAssistant',_0x57b577),_0x510b52['ui']['componentFactory']['add']('aiCommands',_0x2fec2f=>{const _0x1f83b2=createDropdown(_0x2fec2f);return _0x1f83b2['set']({'class':'ck-ai-commands-dropdown\x20'+this['_uiCssClasses']}),_0x1f83b2['buttonView']['set']({'label':getTranslation$j(_0x2fec2f,'AI\x20Commands'),'icon':IconMagicWand,'tooltip':!0x0}),_0x1f83b2['on']('execute',_0xb4ea40=>this['_onExecute'](_0xb4ea40['source']['id'])),addMenuToDropdown(_0x1f83b2,_0x510b52['ui']['view']['body'],getMenuDropdownDefinition(_0x510b52),{'ariaLabel':getTranslation$j(_0x2fec2f,'AI\x20Commands')}),_0x1f83b2['menuView']['menuPanelClass']='ck-ai-commands-dropdown\x20'+this['_uiCssClasses'],_0x57b577['on']('change:enabledCommandsIds',_0x30135a),_0x1f83b2['menuView']['once']('render',_0x30135a),_0x1f83b2;function _0x30135a(){_0x1f83b2['isEnabled']=_0x57b577['enabledCommandsIds']['length']>0x0;for(const _0x4b9a27 of _0x1f83b2['menuView']['buttons'])_0x4b9a27['isEnabled']=_0x57b577['enabledCommandsIds']['includes'](_0x4b9a27['id']);}}),_0x510b52['ui']['componentFactory']['add']('menuBar:aiCommands',_0x4bde61=>{const _0x1cbf8d=new MenuBarMenuView(_0x4bde61);_0x1cbf8d['buttonView']['set']({'label':getTranslation$j(_0x4bde61,'AI\x20Commands'),'icon':IconMagicWand}),_0x1cbf8d['bind']('isEnabled')['to'](_0x57b577,'enabledCommandsIds',_0x34d2c3=>_0x34d2c3['length']>0x0);const _0x347d51=normalizeCommandsConfig(_0x510b52['config']['get']('ai.assistant.commands'),_0x4bde61);return this['_populateMenuBarMenu'](_0x57b577,_0x1cbf8d,_0x347d51,_0x536947=>this['_onExecute'](_0x536947)),_0x1cbf8d;}),_0x510b52['ui']['componentFactory']['add']('aiAssistant',()=>{const _0x294423=this['_createAIAssistantUIButton'](ButtonView);return _0x294423['set']({'tooltip':!0x0,'class':'ck-ai-assistant-button\x20'+this['_uiCssClasses']}),_0x294423;}),_0x510b52['ui']['componentFactory']['add']('menuBar:aiAssistant',()=>{const _0x2e558a=this['_createAIAssistantUIButton'](MenuBarMenuListItemButtonView);return _0x2e558a['set']({'role':'menuitemcheckbox'}),_0x2e558a;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1050de=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x55f0ed;for(const _0x25629d in _0x1050de){const _0x24db37=_0x25629d,_0x16f1e8=_0x1050de[_0x24db37];if('aiLicenseKeyValid'==_0x16f1e8||'aiLicenseKeyInvalid'==_0x16f1e8||'aiLicenseKeyExpired'==_0x16f1e8||'aiLicenseKeyDomainLimit'==_0x16f1e8||'aiLicenseKeyNotAllowed'==_0x16f1e8||'aiLicenseKeyEvaluationLimit'==_0x16f1e8||'aiLicenseKeyUsageLimit'==_0x16f1e8){delete _0x1050de[_0x24db37],_0x55f0ed=_0x16f1e8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'aiLicenseKeyInvalid'==_0x55f0ed&&_0x1050de['_showLicenseError']('invalid'),'aiLicenseKeyExpired'==_0x55f0ed&&_0x1050de['_showLicenseError']('expired'),'aiLicenseKeyDomainLimit'==_0x55f0ed&&_0x1050de['_showLicenseError']('domainLimit'),'aiLicenseKeyNotAllowed'==_0x55f0ed&&_0x1050de['_showLicenseError']('featureNotAllowed','AIAssistant'),'aiLicenseKeyEvaluationLimit'==_0x55f0ed&&_0x1050de['_showLicenseError']('evaluationLimit'),'aiLicenseKeyUsageLimit'==_0x55f0ed&&_0x1050de['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['showUI'](_0x31e1e4='',_0x515fc7='',_0x3d737f='custom'){const _0x47c375=this['editor'],_0x973f82=_0x47c375['editing']['view'],_0x357e24=_0x47c375['plugins']['get'](AIAssistantEditing),_0x4e6c6c=_0x47c375['plugins']['get'](ClipboardMarkersUtils);_0x357e24['showFakeVisualSelection']();const _0x10c72e=new DomDataTransfer(),_0x57a800=new ClipboardEvent('copy',{'clipboardData':_0x10c72e}),_0x2c9380=new ViewDataTransfer(_0x10c72e),_0x453a49=new ViewDocumentDomEventData(_0x973f82,_0x57a800,{'dataTransfer':_0x2c9380});_0x4e6c6c['_forceMarkersCopy']('comment',()=>{_0x973f82['document']['fire']('copy',_0x453a49);}),this['_formView']||(this['_initView'](),this['_aiAssistantController']=new AIAssistantController(_0x47c375,this['_aiAdapter']['textAdapter'],this['_formView']));let _0x4314d6=_0x2c9380['getData']('text/html');const _0x4563a2=_0x47c375['model']['document']['selection'],_0x5904c3=Array['from'](_0x4563a2['getRanges']());0x1===_0x5904c3['length']&&_0x5904c3[0x0]['isFlat']&&!_0x4563a2['getSelectedElement']()&&''!==_0x4314d6['replace'](/&nbsp;/g,'')['trim']()&&(_0x4314d6='<p>'+_0x4314d6+'</p>'),this['_aiAssistantController']['updateView']({'actionId':_0x3d737f,'query':_0x31e1e4,'htmlContent':_0x4314d6,'label':_0x515fc7,'mainActionLabel':AIFormToolbarViewMainActionLabel[_0x47c375['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'](),_0x357e24['hideFakeVisualSelection']();}}):this['_dialog']['view']['wasMoved']||this['_dialog']['view']['updatePosition']();}['hideUI'](){this['_dialog']['hide']();}['_getResolvedCommandsDefinitions'](){const _0xa9fb63=new Map(),_0x304401=normalizeCommandsConfig(this['editor']['config']['get']('ai.assistant.commands'),this['editor']['locale']);for(const _0x2935cf of _0x304401)for(const _0x1321d1 of _0x2935cf['commands'])_0xa9fb63['set'](_0x1321d1['id'],{..._0x1321d1,'groupId':_0x2935cf['groupId'],'groupLabel':_0x2935cf['groupLabel']||_0x2935cf['groupId']});return _0xa9fb63;}['_createAIAssistantUIButton'](_0x4fd894){const _0x53d113=this['editor'],_0x926616=_0x53d113['commands']['get']('showAIAssistant'),_0x5be7e7=new _0x4fd894(_0x53d113['locale']);return _0x5be7e7['set']({'label':getTranslation$j(_0x53d113['locale'],'AI\x20Assistant'),'icon':IconRobotPencil,'isToggleable':!0x0}),_0x5be7e7['bind']('isEnabled')['to'](_0x926616),_0x5be7e7['bind']('isOn')['to'](this['_dialog'],'id',_0x3a1cd8=>'aiAssistant'===_0x3a1cd8),this['listenTo'](_0x5be7e7,'execute',()=>{_0x5be7e7['isOn']?this['hideUI']():_0x926616['execute']();}),_0x5be7e7;}['_initView'](){const _0x1365b4=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',()=>{_0x1365b4['insertContent'](this['_aiAssistantController']['currentContext']),this['hideUI']();}),this['listenTo'](this['_formView'],'insertContentBelow',()=>{_0x1365b4['insertContentBelow'](this['_aiAssistantController']['currentContext']),this['hideUI']();}),this['_initAriaAiStatusChangeAnnouncements']();}['_initAriaAiStatusChangeAnnouncements'](){const {locale:_0x8f9b66,ui:{ariaLiveAnnouncer:_0xb07f23}}=this['editor'];this['_formView']['contentArea']['on']('change:isProcessing',(_0x1941c9,_0x1ec877,_0x5e6acc)=>{const _0x4851dd=this['_aiAssistantController']['currentContext'];_0x5e6acc?_0xb07f23['announce'](getTranslation$j(_0x8f9b66,'AI\x20is\x20writing')):_0x4851dd&&_0xb07f23['announce'](getTranslation$j(_0x8f9b66,'Generated\x20content:\x20%0',_0x4851dd),{'politeness':'polite','isUnsafeHTML':!0x0});}),this['_formView']['on']('change:isError',(_0xf23d61,_0x5313bd,_0x80b6b1)=>{if(_0x80b6b1){const _0x23c030=this['_formView']['errorView']['text'];_0xb07f23['announce'](getTranslation$j(_0x8f9b66,'Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x23c030));}});}['_onExecute'](_0x2c6f92){const _0xb51290=this['_commandDefinitions']['get'](_0x2c6f92),_0x1a0693=this['editor'],_0x1bf39c=_0x1a0693['model']['document']['selection'],_0x206f8f=_0x1a0693['commands']['get']('showAIAssistant'),_0x5903bd=_0x1a0693['plugins']['get'](AIAssistantEditing),_0x3e7145=''+(_0xb51290['groupId']!==UNGROUPED_COMMANDS_GROUP_ID?_0xb51290['groupLabel']+':\x20':'')+_0xb51290['label'];if(!0x1!==_0xb51290['requiresContent']&&_0x1bf39c['isCollapsed']){const _0x155a1a=first(_0x1bf39c['getSelectedBlocks']())||_0x1a0693['model']['schema']['getLimitElement'](_0x1bf39c);_0x1a0693['model']['change'](_0x23d679=>{_0x23d679['setSelection'](_0x155a1a,'in');});}_0x5903bd['showFakeVisualSelection'](),_0x206f8f['execute'](_0xb51290['prompt'],_0x3e7145,'command:'+_0x2c6f92);}['_populateMenuBarMenu'](_0x2e432c,_0x4348b4,_0x28764c,_0x447f82){const _0x33271d=this['editor'],_0x43a37a=_0x33271d['locale'],_0x525f19=new MenuBarMenuListView(_0x43a37a),_0x595837=sortDefinitionsByOrder(_0x33271d,_0x28764c)['filter'](_0x4c2fb5=>_0x4c2fb5['commands']['length']);0x1===_0x595837['length']?this['_getMenuBarGroupButtons']({'command':_0x2e432c,'commands':_0x595837[0x0]['commands'],'parentMenuView':_0x4348b4,'onExecute':_0x447f82})['forEach'](_0x325954=>_0x525f19['items']['add'](_0x325954)):_0x595837['forEach'](({groupId:_0x4c5bb4,groupLabel:_0x175164,commands:_0x317a25})=>{const _0x1a0ae9=new MenuBarMenuListItemView(_0x43a37a,_0x4348b4),_0x41c355=new MenuBarMenuView(_0x43a37a),_0x14af7e=new MenuBarMenuListView(_0x43a37a),_0x1342d8=this['_getMenuBarGroupButtons']({'command':_0x2e432c,'commands':_0x317a25,'parentMenuView':_0x41c355,'onExecute':_0x447f82});_0x41c355['buttonView']['set']({'label':_0x175164||_0x4c5bb4}),_0x41c355['delegate']('execute')['to'](_0x4348b4),_0x14af7e['items']['addMany'](_0x1342d8),_0x41c355['panelView']['children']['add'](_0x14af7e),_0x1a0ae9['children']['add'](_0x41c355),_0x525f19['items']['add'](_0x1a0ae9);}),_0x4348b4['panelView']['children']['add'](_0x525f19);}['_getMenuBarGroupButtons']({command:_0x265628,commands:_0x3c7aa5,parentMenuView:_0xff0c30,onExecute:_0x21c8ba}){const _0x49309e=this['editor'],_0x1dfa32=_0x49309e['locale'];return sortDefinitionsByOrder(_0x49309e,_0x3c7aa5)['map'](_0x1ee39c=>{const _0xd9251c=new MenuBarMenuListItemView(_0x1dfa32,_0xff0c30),_0x3cd1ac=new MenuBarMenuListItemButtonView(_0x1dfa32);return _0x3cd1ac['set']({'label':_0x1ee39c['label']}),_0x3cd1ac['delegate']('execute')['to'](_0xff0c30),_0x3cd1ac['on']('execute',()=>_0x21c8ba(_0x1ee39c['id'])),_0x3cd1ac['bind']('isEnabled')['to'](_0x265628,'enabledCommandsIds',_0x4de26b=>_0x4de26b['includes'](_0x1ee39c['id'])),_0xd9251c['children']['add'](_0x3cd1ac),_0xd9251c;});}}function getMenuDropdownDefinition(_0x5bb881){const _0x4f0e27=normalizeCommandsConfig(_0x5bb881['config']['get']('ai.assistant.commands'),_0x5bb881['locale']),_0x512dd1=sortDefinitionsByOrder(_0x5bb881,_0x4f0e27)['filter'](_0x27811f=>_0x27811f['commands']['length']);return 0x1===_0x512dd1['length']?sortDefinitionsByOrder(_0x5bb881,_0x512dd1[0x0]['commands'])['map'](_0x58bde0=>({'id':_0x58bde0['id'],'label':_0x58bde0['label']})):_0x512dd1['map'](_0x4bbba3=>{const {groupId:_0x29b7a7,groupLabel:_0x1a3f82,commands:_0x12fab3}=_0x4bbba3,_0x579d4d=sortDefinitionsByOrder(_0x5bb881,_0x12fab3)['map'](_0x489a53=>({'id':_0x489a53['id'],'label':_0x489a53['label']}));return{'id':_0x29b7a7,'menu':_0x1a3f82||_0x29b7a7,'children':_0x579d4d};});}function sortDefinitionsCallback(_0x54eea5,_0x278d5e){return void 0x0!==_0x54eea5['order']&&void 0x0===_0x278d5e['order']?0x1:void 0x0===_0x54eea5['order']&&void 0x0!==_0x278d5e['order']?-0x1:void 0x0!==_0x54eea5['order']&&void 0x0!==_0x278d5e['order']?_0x54eea5['order']-_0x278d5e['order']:0x0;}function sortDefinitionsByOrder(_0x5624e5,_0x56b3c1){_0x56b3c1['sort'](sortDefinitionsCallback);const _0x3da96a={},_0x365111=[];for(const _0x2c481d of _0x56b3c1)if(void 0x0!==_0x2c481d['order']){if(_0x2c481d['order']in _0x3da96a)throw new CKEditorError('ai-commands-config-order-collision',_0x5624e5,{'conflictingDefinitions':[_0x2c481d,_0x3da96a[_0x2c481d['order']]]});_0x3da96a[_0x2c481d['order']]=_0x2c481d,_0x365111['splice'](_0x2c481d['order'],0x0,_0x2c481d);}else _0x365111['push'](_0x2c481d);return _0x365111;}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(_0x13c2e0){super(_0x13c2e0);const _0x172498=_0x13c2e0['config'],_0x5bf236=_0x13c2e0['locale'];_0x172498['define']('ai.assistant.preserveComments',!0x0),_0x172498['define']('ai.assistant.commands',getDefaultAICommands(_0x5bf236)),_0x172498['define']('ai.assistant.extraCommandGroups',[]),_0x172498['define']('ai.assistant.removeCommands',[]);let _0x24e5be=normalizeCommandsConfig(_0x172498['get']('ai.assistant.commands'),_0x5bf236);const _0x3c038f=_0x172498['get']('ai.assistant.extraCommandGroups'),_0x4fe807=_0x172498['get']('ai.assistant.removeCommands');_0x3c038f['forEach'](_0x2d9eef=>{const _0x1408b6=_0x24e5be['find'](_0x447c1f=>_0x447c1f['groupId']===_0x2d9eef['groupId']);_0x1408b6?_0x1408b6['commands']=_0x1408b6['commands']['concat'](_0x2d9eef['commands']):_0x24e5be['push'](_0x2d9eef);}),_0x24e5be=_0x24e5be['filter'](_0x4e37c1=>!_0x4fe807['includes'](_0x4e37c1['groupId'])),_0x24e5be['forEach'](_0x4835e9=>{_0x4835e9['commands']=_0x4835e9['commands']['filter'](_0x432890=>!_0x4fe807['includes'](_0x432890['id']));}),_0x172498['set']('ai.assistant.commands',_0x24e5be);}}function getDefaultAICommands(_0x2710a5){return[{'groupId':'editOrReview','groupLabel':getTranslation$j(_0x2710a5,'Edit\x20or\x20review'),'commands':[{'id':'improveWriting','label':getTranslation$j(_0x2710a5,'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(_0x2710a5,'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(_0x2710a5,'Make\x20longer'),'prompt':'Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.'},{'id':'simplifyLanguage','label':getTranslation$j(_0x2710a5,'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(_0x2710a5,'Generate\x20from\x20selection'),'commands':[{'id':'summarize','label':getTranslation$j(_0x2710a5,'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(_0x2710a5,'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(_0x2710a5,'Change\x20tone'),'commands':[{'id':'professional','label':getTranslation$j(_0x2710a5,'Professional'),'prompt':'Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.'},{'id':'casual','label':getTranslation$j(_0x2710a5,'Casual'),'prompt':'Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.'},{'id':'direct','label':getTranslation$j(_0x2710a5,'Direct'),'prompt':'Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.'},{'id':'confident','label':getTranslation$j(_0x2710a5,'Confident'),'prompt':'Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.'},{'id':'friendly','label':getTranslation$j(_0x2710a5,'Friendly'),'prompt':'Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.'}]},{'groupId':'changeStyle','groupLabel':getTranslation$j(_0x2710a5,'Change\x20style'),'commands':[{'id':'business','label':getTranslation$j(_0x2710a5,'Business'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.'},{'id':'legal','label':getTranslation$j(_0x2710a5,'Legal'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.'},{'id':'journalism','label':getTranslation$j(_0x2710a5,'Journalism'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.'},{'id':'poetic','label':getTranslation$j(_0x2710a5,'Poetic'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.'}]},{'groupId':'translate','groupLabel':getTranslation$j(_0x2710a5,'Translate'),'commands':[{'id':'translateEnglish','label':getTranslation$j(_0x2710a5,'English'),'prompt':'Translate\x20the\x20content\x20to\x20English\x20language.'},{'id':'translateSpanish','label':getTranslation$j(_0x2710a5,'Spanish'),'prompt':'Translate\x20the\x20content\x20to\x20Spanish\x20language.'},{'id':'translatePortuguese','label':getTranslation$j(_0x2710a5,'Portuguese'),'prompt':'Translate\x20the\x20content\x20to\x20Portuguese\x20language.'},{'id':'translateGerman','label':getTranslation$j(_0x2710a5,'German'),'prompt':'Translate\x20the\x20content\x20to\x20German\x20language.'},{'id':'translateFrench','label':getTranslation$j(_0x2710a5,'French'),'prompt':'Translate\x20the\x20content\x20to\x20French\x20language.'},{'id':'translateChinese','label':getTranslation$j(_0x2710a5,'Simplified\x20Chinese'),'prompt':'Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.'},{'id':'translateHindi','label':getTranslation$j(_0x2710a5,'Hindi'),'prompt':'Translate\x20the\x20content\x20to\x20Hindi\x20language.'},{'id':'translateArabic','label':getTranslation$j(_0x2710a5,'Arabic'),'prompt':'Translate\x20the\x20content\x20to\x20Arabic\x20language.'}]}];}class AITextAdapter extends Plugin{['abortController'];static get['requires'](){return[AIAdapter];}constructor(_0x76aeca){super(_0x76aeca),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'](_0x3af036){return this['sendRequest'](_0x3af036)['catch'](_0x5d8fb5=>{if(_0x5d8fb5 instanceof AIRequestError)return Promise['reject'](_0x5d8fb5);if('AbortError'==_0x5d8fb5['name'])return Promise['resolve']();throw console['error'](_0x5d8fb5),new CKEditorError('aitextadapter-send-request-failed',null);});}async['_prepareRequestHeaders'](_0x582fd0,_0x4ad9fc){const _0xec3059=this['editor']['locale'],_0x394bdb={'Content-Type':'application/json'};if('object'==typeof _0x582fd0)Object['assign'](_0x394bdb,_0x582fd0);else{if(_0x582fd0)try{const _0x22395f=await _0x582fd0(_0x4ad9fc);Object['assign'](_0x394bdb,_0x22395f);}catch{return Promise['reject'](new AIRequestError(getTranslation$j(_0xec3059,'AI_ERROR_GET_HEADERS')));}}return _0x394bdb;}async['_prepareRequestParameters'](_0x549e27,_0x12bd06){const _0x2e7c30=this['editor']['locale'];if('object'==typeof _0x549e27)return _0x549e27;try{return await _0x549e27(_0x12bd06);}catch{return Promise['reject'](new AIRequestError(getTranslation$j(_0x2e7c30,'AI_ERROR_GET_PARAMETERS')));}}}class OpenAITextAdapter extends AITextAdapter{['_apiUrl'];['_requestHeaders'];['_requestParameters'];static get['pluginName'](){return'OpenAITextAdapter';}constructor(_0x517f2f){super(_0x517f2f),_0x517f2f['config']['define']('ai.assistant.adapter.openAI.apiUrl','https://api.openai.com/v1/chat/completions'),_0x517f2f['config']['get']('ai.assistant.adapter.openAI.requestParameters')||_0x517f2f['config']['define']('ai.assistant.adapter.openAI.requestParameters',{'model':'gpt-4o','temperature':0x1,'top_p':0x1,'stream':!0x0}),this['_apiUrl']=_0x517f2f['config']['get']('ai.assistant.adapter.openAI.apiUrl'),this['_requestHeaders']=_0x517f2f['config']['get']('ai.assistant.adapter.openAI.requestHeaders')||{},this['_requestParameters']=_0x517f2f['config']['get']('ai.assistant.adapter.openAI.requestParameters');}async['sendRequest']({query:_0x4f3213,context:_0x48fb5b,onData:_0x2fda66,actionId:_0x96f73e}){const _0x21f1fd=this['editor']['locale'],_0xc64726=await this['prepareMessages'](_0x4f3213,_0x48fb5b,_0x96f73e),_0x579241=await this['_prepareRequestHeaders'](this['_requestHeaders'],_0x96f73e),_0x4cf1a2=await this['_prepareRequestParameters'](this['_requestParameters'],_0x96f73e),_0x2bbece={'messages':_0xc64726,..._0x4cf1a2},_0x595054={'method':'POST','headers':_0x579241,'body':JSON['stringify'](_0x2bbece),'signal':this['abortController']['signal']},_0x1bc535=await fetch(this['_apiUrl'],_0x595054);if(_0x1bc535['ok'])return _0x4cf1a2['stream']?await this['_readStreamableResponse'](_0x1bc535,_0x2fda66):await this['_readStaticResponse'](_0x1bc535,_0x2fda66),Promise['resolve']();{const _0x4542c1=await _0x1bc535['text']();return _0x4542c1['includes']('context_length_exceeded')?Promise['reject'](new AIRequestError(getTranslation$j(_0x21f1fd,'AI_ERROR_CONTEXT_LENGTH'))):_0x4542c1['includes']('Moderation')?Promise['reject'](new AIRequestError(getTranslation$j(_0x21f1fd,'AI_ERROR_MODERATION'))):Promise['reject'](new Error(_0x4542c1));}}async['prepareMessages'](_0x450598,_0xdc2609,_0x3b6608){let _0x29a63d,_0x53a559;return _0xdc2609?(_0x29a63d='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.',_0x53a559='Instruction:\x0a'+_0x450598+'\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a'+_0xdc2609):(_0x29a63d='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.',_0x53a559=_0x450598),[{'role':'system','content':_0x29a63d},{'role':'user','content':_0x53a559}];}async['_readStreamableResponse'](_0xecfb19,_0x4f7492){const _0xf015a1=_0xecfb19['body']['getReader'](),_0x21b82e=new TextDecoder();let _0x3a19df='',_0x1031f4='',_0x59c0ef='',_0x133bb7=!0x1;for(;!_0x133bb7;){const {done:_0x5c8ce6,value:_0x4b2a3a}=await _0xf015a1['read'](),_0x591508=_0x3a19df+_0x21b82e['decode'](_0x4b2a3a);let _0x45a7d6='';_0x133bb7=_0x5c8ce6;try{_0x45a7d6=this['_cleanUpData'](_0x591508),_0x3a19df='';}catch{_0x3a19df=_0x591508;continue;}_0x1031f4+=_0x45a7d6,!_0x133bb7&&this['_isBufferIncomplete'](_0x1031f4)||_0x1031f4&&(_0x59c0ef+=_0x1031f4,_0x1031f4='',_0x4f7492(_0x59c0ef));}return Promise['resolve']();}async['_readStaticResponse'](_0x36f58c,_0x2d748f){return _0x2d748f((await _0x36f58c['json']())['choices'][0x0]['message']['content']),Promise['resolve']();}['_isBufferIncomplete'](_0x3b3f37){const _0x584c14=_0x3b3f37['split']('<')['length']!==_0x3b3f37['split']('>')['length'],_0x365476=_0x3b3f37['length']<0x1e;return _0x584c14&&_0x365476;}['_cleanUpData'](_0x371a28){return _0x371a28['split'](/\n(?![^{]*\})/g)['map'](_0x371898=>_0x371898['replace']('data:\x20',''))['filter'](_0x1338c9=>_0x1338c9&&_0x1338c9['length']>0x0&&'[DONE]'!==_0x1338c9)['map'](_0x15af79=>{const {choices:_0x2fe0b4}=JSON['parse'](_0x15af79);if(_0x2fe0b4[0x0]?.['delta']?.['content'])return _0x2fe0b4[0x0]['delta']['content'];})['filter'](_0x393262=>_0x393262)['join']('');}}class AWSTextAdapter extends AITextAdapter{static get['pluginName'](){return'AWSTextAdapter';}['init'](){super['init'](),logWarning('ai-aws-adapter-not-supported');}async['sendRequest'](_0x45ce2a){throw logError('ai-aws-adapter-not-supported'),new AIRequestError(getTranslation$j(this['editor']['locale'],'AI_ERROR_AWS_NOT_SUPPORTED'));}}class TabButtonView extends ButtonView{constructor(_0x16e234,_0x10d401={}){super(_0x16e234),this['isToggleable']=!0x0,this['set']('side',_0x10d401['side']||'top');const _0x16d09d=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-tab-button',...toArray$1(_0x10d401['class']||[]),_0x16d09d['to']('side',_0x1c8fe9=>'ck-tab-button_'+_0x1c8fe9),_0x16d09d['to']('class')]}});}['show'](){this['set']('isVisible',!0x0);}['hide'](){this['set']('isVisible',!0x1);}}class TabPanelView extends View{['children'];constructor(_0x4f7d84,_0x59e6e6={}){super(_0x4f7d84);const _0x15f473=this['bindTemplate'];this['set']('isVisible',!0x1),this['set']('class',''),this['children']=this['createCollection'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-tab-panel',...toArray$1(_0x59e6e6['class']||[]),_0x15f473['to']('class'),_0x15f473['if']('isVisible','ck-hidden',_0x1ac2e1=>!_0x1ac2e1)]},'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(_0x5a54a9,_0x46bf17={}){super(_0x5a54a9),this['set']('class',void 0x0),this['set']('activeTab',null),this['set']('side',_0x46bf17['side']||'top'),this['set']('isMaximized',!0x1);const _0x1f3c09=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-tabs',...toArray$1(_0x46bf17['class']||[]),_0x1f3c09['to']('side',_0x5baeb0=>'ck-tabs_'+_0x5baeb0),_0x1f3c09['to']('class'),_0x1f3c09['to']('isMaximized',_0x115f85=>_0x115f85?'ck-ai-tabs_maximized':'')],'tabindex':'0'},'children':[{'tag':'div','attributes':{'class':['ck','ck-tabs__buttons-container',_0x1f3c09['to']('side',_0x94bc68=>'ck-tabs__buttons-container_'+_0x94bc68)]},'children':this['buttonViews']},{'tag':'div','attributes':{'class':['ck','ck-tabs__panels-container',_0x1f3c09['to']('side',_0x5816cb=>'ck-tabs__panels-container_'+_0x5816cb)]},'children':this['panelViews']},...toArray$1(_0x46bf17['children']||[])]});}['getTabIds'](){return[...this['_tabs']['keys']()];}['getTab'](_0x493983){const _0x471e03=this['_tabs']['get'](_0x493983);return _0x471e03||null;}['addTab'](_0x1badab){const _0x10357b=this['_setupButton']({'id':_0x1badab['id'],'label':_0x1badab['buttonLabel'],'icon':_0x1badab['buttonIcon'],'order':_0x1badab['order']}),_0x2dae47=new TabPanelView(this['locale']);return _0x2dae47['render'](),_0x1badab['content']&&_0x2dae47['children']['add'](_0x1badab['content']),this['panelViews']['add'](_0x2dae47),this['_tabs']['set'](_0x1badab['id'],{'button':_0x10357b,'panel':_0x2dae47,'order':void 0x0!==_0x1badab['order']?_0x1badab['order']:null}),this['fire']('addTab:'+_0x1badab['id'],{'id':_0x1badab['id'],'button':_0x10357b,'panel':_0x2dae47}),null===this['activeTab']?this['activateTab'](_0x1badab['id']):this['_hidePanel'](_0x1badab['id']),{'button':_0x10357b,'panel':_0x2dae47};}['activateTab'](_0x33c699){if(null!==_0x33c699&&!this['getTab'](_0x33c699))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x33c699});this['activeTab']!==_0x33c699&&(this['activeTab']&&this['_hidePanel'](this['activeTab']),this['activeTab']=_0x33c699,_0x33c699&&this['_showPanel'](_0x33c699),this['fire']('activateTab:'+_0x33c699,_0x33c699));}['showTab'](_0x1c4fe1){if(!this['getTab'](_0x1c4fe1))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x1c4fe1});this['_showPanel'](_0x1c4fe1),this['_showButton'](_0x1c4fe1),this['fire']('show:'+_0x1c4fe1,_0x1c4fe1);}['hideTab'](_0x3a955d){if(!this['getTab'](_0x3a955d))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x3a955d});const _0x563ee1=this['activeTab'];this['_hidePanel'](_0x3a955d),this['_hideButton'](_0x3a955d);const _0x2fb533=this['getTabIds']();_0x563ee1===_0x3a955d&&_0x2fb533['length']>0x1&&this['activateTab'](_0x2fb533['find'](_0x4c13d0=>_0x4c13d0!==_0x3a955d)),this['fire']('hide:'+_0x3a955d,_0x3a955d);}['_getPanel'](_0x269470){const _0xe40046=this['_tabs']['get'](_0x269470);return _0xe40046?_0xe40046['panel']:null;}['_showPanel'](_0x3c9adf){null!==this['activeTab']&&this['activeTab']!==_0x3c9adf||this['_getPanel'](_0x3c9adf)['show']();}['_hidePanel'](_0x5ef216){const _0x9b2a0c=this['_getPanel'](_0x5ef216);_0x9b2a0c['isVisible']&&(this['activeTab']===_0x5ef216&&(this['activeTab']=null),_0x9b2a0c['hide']());}['_getButton'](_0xfeb75a){const _0x445162=this['_tabs']['get'](_0xfeb75a);return _0x445162?_0x445162['button']:null;}['_showButton'](_0x11ead3){this['_getButton'](_0x11ead3)['show']();}['_hideButton'](_0xd7e558){this['_getButton'](_0xd7e558)['hide']();}['_setupButton'](_0x1021e3){const _0x570a35=new TabButtonView(this['locale'],{'side':this['side']}),_0x5d60e1=this['buttonViews'];if(_0x570a35['set']({'label':_0x1021e3['label'],'icon':_0x1021e3['icon'],'tooltip':!0x0,'withText':!0x0}),_0x570a35['bind']('isOn')['to'](this,'activeTab',_0x2d32ac=>_0x2d32ac===_0x1021e3['id']),_0x570a35['bind']('side')['to'](this,'side'),_0x1021e3['order']){const _0x42034f=[...this['_tabs']]['reduce']((_0x271007,_0x612df4)=>{const _0x325162=_0x612df4[0x0],{order:_0x1192f8}=_0x612df4[0x1];return!_0x1192f8||_0x1192f8>_0x1021e3['order']?_0x271007:_0x1192f8>=_0x271007['order']?{'id':_0x325162,'order':_0x1192f8}:_0x271007;},{'id':'','order':0x0}),_0x5cfb60=_0x5d60e1['getIndex'](this['_getButton'](_0x42034f['id']));_0x5d60e1['add'](_0x570a35,_0x5cfb60+0x1);}else _0x5d60e1['add'](_0x570a35);return _0x570a35['on']('execute',()=>{this['activateTab'](_0x1021e3['id']);}),_0x570a35;}}const AI_TABS_VIEW_TYPES=['overlay','sidebar','custom'],AI_TABS_VIEW_SIDES=['left','right'];class AITabsMainView extends AITabsView{constructor(_0x2ea7e4,_0x7a6c32={}){super(_0x2ea7e4,_0x7a6c32),this['set']('type',_0x7a6c32['type']||'sidebar'),this['set']('side',_0x7a6c32['side']||'right'),this['set']('isVisible',_0x7a6c32['visibleByDefault']??!0x0);const _0x46fa46=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-ai-tabs',_0x46fa46['if']('type','ck-ai-tabs__overlay',_0x18a994=>'overlay'===_0x18a994),_0x46fa46['if']('type','ck-ai-tabs__sidebar',_0x4c5838=>'sidebar'===_0x4c5838),_0x46fa46['if']('isVisible','ck-hidden',_0x32971f=>!_0x32971f)]}}),this['buttonViews']['on']('add',(_0x215aa0,_0x50566e)=>{_0x50566e['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(_0x573ec9){super(_0x573ec9);const _0x440b13=this['context']['config']['get']('ai.container');if(this['set']('side','right'),!_0x440b13)throw new CKEditorError('ai-tabs-configuration-not-found');if(void 0x0!==_0x440b13['showResizeButton']&&(this['showResizeButton']=_0x440b13['showResizeButton']),'sidebar'!==_0x440b13['type']&&'overlay'!==_0x440b13['type']||_0x440b13['side']&&(this['side']=_0x440b13['side']),'sidebar'===_0x440b13['type']){if(this['container']=_0x440b13['element'],this['set']('type','sidebar'),!this['container'])throw new CKEditorError('ai-tabs-sidebar-container-element-not-found');}else'overlay'===_0x440b13['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===_0x440b13['visibleByDefault']||_0x440b13['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'](_0x401f17){if(_0x401f17&&this['type']!==_0x401f17){if(!AI_TABS_VIEW_TYPES['includes'](_0x401f17))throw new CKEditorError('ai-tabs-unsupported-ui-type');this['type']=_0x401f17;}}['switchSide'](_0xdbc270){if(_0xdbc270&&this['side']!==_0xdbc270){if(!AI_TABS_VIEW_SIDES['includes'](_0xdbc270))throw new CKEditorError('ai-tabs-unsupported-ui-side');this['side']=_0xdbc270;}}['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(_0x18ce5e,_0x55453e){super(_0x18ce5e),this['name']='ParseError',this['type']=_0x55453e['type'],this['field']=_0x55453e['field'],this['value']=_0x55453e['value'],this['line']=_0x55453e['line'];}}function noop$1(_0x593dc9){}function createParser(_0x6d015c){if('function'==typeof _0x6d015c)throw new TypeError('`callbacks`\x20must\x20be\x20an\x20object,\x20got\x20a\x20function\x20instead.\x20Did\x20you\x20mean\x20`{onEvent:\x20fn}`?');const {onEvent:_0xad0c50=noop$1,onError:_0x45aafa=noop$1,onRetry:_0x36c0c1=noop$1,onComment:_0x2aed24}=_0x6d015c;let _0x38bbd3,_0x40d150='',_0x527db1=!0x0,_0x264e6d='',_0x19ea17='';function _0x35a714(_0x1614d2){if(''===_0x1614d2)return _0x264e6d['length']>0x0&&_0xad0c50({'id':_0x38bbd3,'event':_0x19ea17||void 0x0,'data':_0x264e6d['endsWith']('\x0a')?_0x264e6d['slice'](0x0,-0x1):_0x264e6d}),_0x38bbd3=void 0x0,_0x264e6d='',void(_0x19ea17='');if(_0x1614d2['startsWith'](':'))return void(_0x2aed24&&_0x2aed24(_0x1614d2['slice'](_0x1614d2['startsWith'](':\x20')?0x2:0x1)));const _0x50bc1a=_0x1614d2['indexOf'](':');if(-0x1!==_0x50bc1a){const _0x10e5ba=_0x1614d2['slice'](0x0,_0x50bc1a),_0x642487='\x20'===_0x1614d2[_0x50bc1a+0x1]?0x2:0x1;return void _0x204446(_0x10e5ba,_0x1614d2['slice'](_0x50bc1a+_0x642487),_0x1614d2);}_0x204446(_0x1614d2,'',_0x1614d2);}function _0x204446(_0x41b172,_0x22073a,_0x12a1a9){switch(_0x41b172){case'event':_0x19ea17=_0x22073a;break;case'data':_0x264e6d=''+_0x264e6d+_0x22073a+'\x0a';break;case'id':_0x38bbd3=_0x22073a['includes']('\x00')?void 0x0:_0x22073a;break;case'retry':/^\d+$/['test'](_0x22073a)?_0x36c0c1(parseInt(_0x22073a,0xa)):_0x45aafa(new ParseError('Invalid\x20`retry`\x20value:\x20\x22'+_0x22073a+'\x22',{'type':'invalid-retry','value':_0x22073a,'line':_0x12a1a9}));break;default:_0x45aafa(new ParseError('Unknown\x20field\x20\x22'+(_0x41b172['length']>0x14?_0x41b172['slice'](0x0,0x14)+'…':_0x41b172)+'\x22',{'type':'unknown-field','field':_0x41b172,'value':_0x22073a,'line':_0x12a1a9}));}}return{'feed':function(_0x559414){const _0x39015a=_0x527db1?_0x559414['replace'](/^\xEF\xBB\xBF/,''):_0x559414,[_0x3539af,_0x23f20d]=splitLines(''+_0x40d150+_0x39015a);for(const _0xbc4d88 of _0x3539af)_0x35a714(_0xbc4d88);_0x40d150=_0x23f20d,_0x527db1=!0x1;},'reset':function(_0x462984={}){_0x40d150&&_0x462984['consume']&&_0x35a714(_0x40d150),_0x527db1=!0x0,_0x38bbd3=void 0x0,_0x264e6d='',_0x19ea17='',_0x40d150='';}};}function splitLines(_0x491c38){const _0x5085bc=[];let _0x522701='',_0x33090c=0x0;for(;_0x33090c<_0x491c38['length'];){const _0x449461=_0x491c38['indexOf']('\x0d',_0x33090c),_0x28a1b1=_0x491c38['indexOf']('\x0a',_0x33090c);let _0x462256=-0x1;if(-0x1!==_0x449461&&-0x1!==_0x28a1b1?_0x462256=Math['min'](_0x449461,_0x28a1b1):-0x1!==_0x449461?_0x462256=_0x449461:-0x1!==_0x28a1b1&&(_0x462256=_0x28a1b1),-0x1===_0x462256){_0x522701=_0x491c38['slice'](_0x33090c);break;}{const _0x3c29c3=_0x491c38['slice'](_0x33090c,_0x462256);_0x5085bc['push'](_0x3c29c3),_0x33090c=_0x462256+0x1,'\x0d'===_0x491c38[_0x33090c-0x1]&&'\x0a'===_0x491c38[_0x33090c]&&_0x33090c++;}}return[_0x5085bc,_0x522701];}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(_0x349a39){super(_0x349a39),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 _0x400385=this['context']['plugins']['get']('CloudServices');if(!_0x400385['token'])throw new CKEditorError('ai-missing-token',this);this['_token']=_0x400385['token'];}['startConversation'](_0x3165f6,_0x1625a6){const _0xe4159f=this['_sendApiRequest']('/conversations','POST',{'id':_0x3165f6,'group':_0x1625a6});return{'getConversation':async()=>(await _0xe4159f['request'])['json'](),'abortController':_0xe4159f['abortController']};}['queryAssistant']({message:_0xfc0104,conversationId:_0x1b2016,parts:_0x4906e7,capabilities:_0x9305cb,model:_0x4edfcc,attributes:_0x2286f6}){const _0x5d27de={'prompt':_0xfc0104,'content':_0x4906e7,'model':_0x4edfcc,..._0x9305cb&&{'capabilities':_0x9305cb},..._0x2286f6&&{'attributes':_0x2286f6}},_0x3a6262=this['_sendApiRequest']('/conversations/'+_0x1b2016+'/messages','POST',_0x5d27de);return{'getStream':async()=>{const _0x58c031=(await _0x3a6262['request'])['body'];return this['_getStreamReader'](_0x58c031);},'abortController':_0x3a6262['abortController']};}['executeCustomAction']({content:_0x15e973,message:_0x4af110,model:_0x71912c,outputFormat:_0x380969}){const _0x156979={'content':[{'type':'text','content':_0x15e973}],'prompt':_0x4af110,'model':_0x71912c,'outputFormat':_0x380969},_0xd1712e=this['_sendApiRequest']('/actions/custom/calls','POST',_0x156979);return{'getStream':async()=>{const _0x3c95ab=(await _0xd1712e['request'])['body'];return this['_getStreamReader'](_0x3c95ab);},'abortController':_0xd1712e['abortController']};}['executeAction']({actionName:_0x480a6d,content:_0x50e930,args:_0x30ce0b}){const _0x4d92dc={'content':[{'type':'text','content':_0x50e930}],'args':_0x30ce0b},_0x3efcf6=this['_sendApiRequest']('/actions/system/'+_0x480a6d+'/calls','POST',_0x4d92dc);return{'getStream':async()=>{const _0x443614=(await _0x3efcf6['request'])['body'];return this['_getStreamReader'](_0x443614);},'abortController':_0x3efcf6['abortController']};}['uploadFile'](_0x48bf5c,_0x4f4550,_0x4c6339){const _0x245bee=new FormData();_0x245bee['append']('file',_0x4f4550,_0x4f4550['name']),_0x4c6339&&_0x245bee['append']('attributes',JSON['stringify'](_0x4c6339));const _0x4e237a=this['_sendApiRequest']('/conversations/'+_0x48bf5c+'/files','POST',_0x245bee);return{'getId':async()=>(await _0x4e237a['request'])['json'](),'abortController':_0x4e237a['abortController']};}['fetchDocument'](_0x7da303,_0x214613){const _0xdf8fa7=this['_sendApiRequest']('/conversations/'+_0x7da303+'/documents/'+_0x214613,'GET');return{'getDocument':async()=>(await _0xdf8fa7['request'])['json'](),'abortController':_0xdf8fa7['abortController']};}['uploadDocument'](_0x30d24b,_0x1a23f2,_0x5a4ba8){const _0x1b77c1={'content':_0x1a23f2};_0x5a4ba8&&(_0x1b77c1['attributes']=_0x5a4ba8);const _0xab33bd=this['_sendApiRequest']('/conversations/'+_0x30d24b+'/documents','POST',_0x1b77c1);return{'getId':async()=>(await _0xab33bd['request'])['json'](),'abortController':_0xab33bd['abortController']};}['fetchConversations'](_0x5c3541,_0x1fdb23={}){const _0x5a5822=new URLSearchParams();_0x5a5822['append']('group',_0x5c3541),_0x5a5822['append']('excludeEmpty',!0x1!==_0x1fdb23['excludeEmpty']?'true':'false'),_0x5a5822['append']('limit',_0x1fdb23['limit']?_0x1fdb23['limit']['toString']():'100'),_0x5a5822['append']('sortBy',_0x1fdb23['sortBy']?_0x1fdb23['sortBy']:'createdAt'),_0x5a5822['append']('order',_0x1fdb23['order']?_0x1fdb23['order']:'desc');const _0x51e866=this['_sendApiRequest']('/conversations?'+_0x5a5822['toString'](),'GET');return{'getConversations':async()=>{const _0x310487=await _0x51e866['request'];return(await _0x310487['json']())['items'];},'abortController':_0x51e866['abortController']};}['deleteConversation'](_0x3ca794){const _0x4ad3c1=this['_sendApiRequest']('/conversations/'+_0x3ca794,'DELETE');return{'execute':async()=>{await _0x4ad3c1['request'];},'abortController':_0x4ad3c1['abortController']};}['updateConversation'](_0x2886e3,_0x20a252){const _0x5bff90=this['_sendApiRequest']('/conversations/'+_0x2886e3,'PATCH',_0x20a252);return{'getResult':async()=>(await _0x5bff90['request'],_0x20a252),'abortController':_0x5bff90['abortController']};}['fetchConversation'](_0x98af08){const _0x37ee96=this['_sendApiRequest']('/conversations/'+_0x98af08,'GET');return{'getConversation':async()=>(await _0x37ee96['request'])['json'](),'abortController':_0x37ee96['abortController']};}['fetchConversationMessages'](_0x47c311){const _0x159d01=this['_sendApiRequest']('/conversations/'+_0x47c311+'/messages','GET');return{'getMessages':async()=>{const _0x4a346a=await _0x159d01['request'];return(await _0x4a346a['json']())['items'];},'abortController':_0x159d01['abortController']};}['uploadUrl'](_0x42bb87,_0x3e245d,_0x24a49b){const _0x1f1118=this['_sendApiRequest']('/conversations/'+_0x42bb87+'/web-resources','POST',{'url':_0x3e245d,'attributes':_0x24a49b});return{'getId':async()=>(await _0x1f1118['request'])['json'](),'abortController':_0x1f1118['abortController']};}['getModels'](_0x1fc602='en'){const _0x16ef89=new URLSearchParams();_0x16ef89['append']('language',_0x1fc602);const _0x419f8f='/models/'+MODEL_COMPATIBILITY_VERSION+'?'+_0x16ef89['toString'](),_0x9ec687=this['_sendApiRequest'](_0x419f8f,'GET');return{'list':async()=>await(await _0x9ec687['request'])['json'](),'abortController':_0x9ec687['abortController']};}['deleteFile'](_0x517956,_0x169111){const _0xf2c42a=this['_sendApiRequest']('/conversations/'+_0x517956+'/files/'+_0x169111,'DELETE');return{'execute':async()=>{await _0xf2c42a['request'];},'abortController':_0xf2c42a['abortController']};}['deleteDocument'](_0x22a1b1,_0x59158b){const _0x26317d=this['_sendApiRequest']('/conversations/'+_0x22a1b1+'/documents/'+_0x59158b,'DELETE');return{'execute':async()=>{await _0x26317d['request'];},'abortController':_0x26317d['abortController']};}['deleteWebResource'](_0xfa8bdb,_0x3e742b){const _0x18930b=this['_sendApiRequest']('/conversations/'+_0xfa8bdb+'/web-resources/'+_0x3e742b,'DELETE');return{'execute':async()=>{await _0x18930b['request'];},'abortController':_0x18930b['abortController']};}['callSystemReview']({reviewName:_0x564fb9,content:_0x5b544a,args:_0x3286a3}){const _0x39ebba=this['_sendApiRequest']('/reviews/system/'+_0x564fb9+'/calls','POST',{'content':[{'type':'text','content':_0x5b544a}],'args':_0x3286a3});return{'getStream':async()=>{const _0xf4a6f4=(await _0x39ebba['request'])['body'];return this['_getStreamReader'](_0xf4a6f4);},'abortController':_0x39ebba['abortController']};}['callCustomReview']({content:_0x4f7af7,prompt:_0x5908c1,model:_0x185851}){const _0x243bdd=this['_sendApiRequest']('/reviews/custom/calls','POST',{'content':[{'type':'text','content':_0x4f7af7}],'prompt':_0x5908c1,'model':_0x185851});return{'getStream':async()=>{const _0x509a8e=(await _0x243bdd['request'])['body'];return this['_getStreamReader'](_0x509a8e);},'abortController':_0x243bdd['abortController']};}['upsertAIChatRating'](_0x274ed8,_0x1809ff,_0x5a24b1){const _0x9e3f18=this['_sendApiRequest']('/conversations/'+_0x274ed8+'/messages/'+_0x1809ff+'/ratings','PUT',{'positiveCount':_0x5a24b1['positiveCount'],'totalCount':_0x5a24b1['totalCount'],'modificationId':_0x5a24b1['modificationId']});return{'execute':async()=>{await _0x9e3f18['request'];},'abortController':_0x9e3f18['abortController']};}['upsertAIActionRating'](_0x276e00,_0x29a0d1,_0x11cee0){const _0x427092=this['_sendApiRequest']('/actions/system/'+_0x276e00+'/calls/'+_0x29a0d1+'/ratings','PUT',{'positiveCount':_0x11cee0['positiveCount'],'totalCount':_0x11cee0['totalCount']});return{'execute':async()=>{await _0x427092['request'];},'abortController':_0x427092['abortController']};}['upsertCustomAIActionRating'](_0x3dee79,_0x291ea8){const _0x60f0e7=this['_sendApiRequest']('/actions/custom/calls/'+_0x3dee79+'/ratings','PUT',{'positiveCount':_0x291ea8['positiveCount'],'totalCount':_0x291ea8['totalCount']});return{'execute':async()=>{await _0x60f0e7['request'];},'abortController':_0x60f0e7['abortController']};}['upsertAIReviewRating'](_0x4e2694,_0x44ed8d,_0x33c518,_0x3b5a5c){const _0x219f12=this['_sendApiRequest']('/reviews/system/'+_0x4e2694+'/calls/'+_0x44ed8d+'/ratings','PUT',{'positiveCount':_0x33c518['positiveCount'],'totalCount':_0x33c518['totalCount'],'dataId':_0x3b5a5c});return{'execute':async()=>{await _0x219f12['request'];},'abortController':_0x219f12['abortController']};}['upsertCustomAIReviewRating'](_0x5039d5,_0x43f1e0,_0x3afabe){const _0x43a711=this['_sendApiRequest']('/reviews/custom/calls/'+_0x5039d5+'/ratings','PUT',{'positiveCount':_0x43f1e0['positiveCount'],'totalCount':_0x43f1e0['totalCount'],'dataId':_0x3afabe});return{'execute':async()=>{await _0x43a711['request'];},'abortController':_0x43a711['abortController']};}['_sendApiRequest'](_0x2ef28a,_0x1670a0,_0x9e3709){const _0x55d773=new AbortController(),_0x424e5a=_0x9e3709 instanceof FormData,_0x1293a2={'Authorization':'Bearer\x20'+this['_token']?.['value']};_0x9e3709&&!_0x424e5a&&(_0x1293a2['Content-Type']='application/json');const _0x57987c={'method':_0x1670a0,'headers':_0x1293a2,'signal':_0x55d773['signal']};_0x9e3709&&(_0x57987c['body']=_0x424e5a?_0x9e3709:JSON['stringify'](_0x9e3709));const _0x22f07c=fetch(''+this['_apiUrl']+_0x2ef28a,_0x57987c)['catch'](_0x5bd7b2=>{this['_handleError'](_0x5bd7b2);})['then'](_0x3093ca=>_0x3093ca['ok']?_0x3093ca:_0x3093ca['json']()['then'](_0x182f9e=>{throw{'url':this['_apiUrl'],'path':_0x2ef28a,'method':_0x1670a0,'body':_0x9e3709,'status':(_0x3093ca||{})['status'],'statusText':(_0x3093ca||{})['statusText'],'code':_0x182f9e['code'],'message':_0x182f9e['message'],'traceId':_0x182f9e['traceId']};}));return{'request':_0x22f07c,'abortController':_0x55d773};}async*['_getStreamReader'](_0x3433a8){const _0x45b001=[],_0x4621d5=_0x3433a8['getReader'](),_0x4aa9ff=createParser({'onError':_0x4cac60=>{this['_handleError'](_0x4cac60);},'onEvent':_0x428340=>{_0x428340['data']=JSON['parse'](_0x428340['data']),_0x45b001['push'](_0x428340);}});try{let _0x4a1aa1=!0x1;for(;!_0x4a1aa1;){const {done:_0x438d64,value:_0x85a9dd}=await _0x4621d5['read']();_0x438d64&&(_0x4a1aa1=!0x0),_0x4aa9ff['feed'](this['_decoder']['decode'](_0x85a9dd,{'stream':!0x0})),yield*_0x45b001,_0x45b001['length']=0x0;}}catch(_0x33c3f6){this['_handleError'](_0x33c3f6);}finally{_0x4621d5['releaseLock'](),_0x4aa9ff['reset']();}}['_handleError'](_0x3162a4){if(_0x3162a4 instanceof CKEditorError)throw _0x3162a4;if(_0x3162a4 instanceof Error&&'AbortError'===_0x3162a4['name'])throw new CKEditorError('ai-request-aborted',this,{'originalError':_0x3162a4});throw new CKEditorError('ai-request-failed',this,{'originalError':_0x3162a4});}}function getTranslation$i(_0x5c19f4,_0x42ce72,_0x492392){const t=_0x5c19f4['t'];switch(_0x42ce72){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'},_0x492392);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_APPLY':return t({'id':'AI_SUGGESTION_CONTENT_PART_APPLY','string':'Apply\x20change'});case'AI_SUGGESTION_CONTENT_PART_ADD_SUGGESTION':return t({'id':'AI_SUGGESTION_CONTENT_PART_ADD_SUGGESTION','string':'Add\x20as\x20suggestion'});case'AI_SUGGESTION_CONTENT_PART_REJECT':return t({'id':'AI_SUGGESTION_CONTENT_PART_REJECT','string':'Reject\x20change'});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_SUGGESTION_CONTENT_PART_STATE_ACCEPTED':return t({'id':'AI_SUGGESTION_CONTENT_PART_STATE_ACCEPTED','string':'Approved'});case'AI_SUGGESTION_CONTENT_PART_STATE_REJECTED':return t({'id':'AI_SUGGESTION_CONTENT_PART_STATE_REJECTED','string':'Rejected'});case'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED':return t({'id':'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED','string':'Outdated'});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\x20can\x20help\x20you\x20draft,\x20rewrite,\x20and\x20improve\x20your\x20text,\x20explore\x20ideas,\x20research\x20topics,\x20and\x20solve\x20problems.\x20How\x20can\x20I\x20help\x20right\x20now?'});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_UNABLE_TO_LOAD_CONVERSATION':return t({'id':'AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','string':'Unable\x20to\x20load\x20chosen\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.'},_0x492392);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.'},_0x492392);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_CONTEXT_DOCUMENT_SELECTION_LABEL':return t({'id':'AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','string':'Selected\x20content'});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.'},_0x492392);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_INVALID_REQUEST':return t({'id':'AI_CHAT_INVALID_REQUEST','string':'Something\x20went\x20wrong\x20while\x20processing\x20your\x20request.\x20Please\x20try\x20again.'});case'AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE':return t({'id':'AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','string':'The\x20file\x20type\x20is\x20not\x20supported.\x20Please\x20upload\x20a\x20different\x20file.'});case'AI_CHAT_CONTEXT_FILE_TOO_LARGE':return t({'id':'AI_CHAT_CONTEXT_FILE_TOO_LARGE','string':'The\x20file\x20is\x20too\x20large.\x20Please\x20upload\x20a\x20smaller\x20file.'});case'AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES':return t({'id':'AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','string':'The\x20file\x20has\x20too\x20many\x20pages.\x20Please\x20upload\x20a\x20file\x20with\x20fewer\x20pages.'});case'AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED':return t({'id':'AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','string':'The\x20form\x20data\x20size\x20limits\x20are\x20exceeded.\x20Please\x20upload\x20a\x20smaller\x20file.'});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_SUGGEST_ALL':return t({'id':'AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL','string':'Suggest\x20all'},_0x492392);case'AI_CHAT_SUGGESTION_ACTION_SUGGEST':return t({'id':'AI_CHAT_SUGGESTION_ACTION_SUGGEST','string':'Suggest'},_0x492392);case'AI_CHAT_SUGGESTION_ACTION_APPLY_ALL':return t({'id':'AI_CHAT_SUGGESTION_ACTION_APPLY_ALL','string':'Apply\x20all'});case'AI_CHAT_SUGGESTION_ACTION_APPLY':return t({'id':'AI_CHAT_SUGGESTION_ACTION_APPLY','string':'Apply'});case'AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP':return t({'id':'AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','string':'More\x20options'},_0x492392);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.'},_0x492392);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.'},_0x492392);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.'},_0x492392);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.'},_0x492392);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'},_0x492392);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_LABEL':return t({'id':'AI_BALLOON_NEXT_LABEL','string':'Next'});case'AI_BALLOON_PREVIOUS_LABEL':return t({'id':'AI_BALLOON_PREVIOUS_LABEL','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_NAME_AUTO':return t({'id':'AI_MODEL_NAME_AUTO','string':'Auto'});case'AI_QUICK_ACTIONS_HEADING':return t({'id':'AI_QUICK_ACTIONS_HEADING','string':'AI\x20Quick\x20Actions'});case'AI_QUICK_ACTIONS_SEARCH':return t({'id':'AI_QUICK_ACTIONS_SEARCH','string':'Search\x20AI\x20commands'});case'AI_QUICK_ACTIONS_SEARCH_NOT_FOUND':return t({'id':'AI_QUICK_ACTIONS_SEARCH_NOT_FOUND','string':'No\x20AI\x20commands\x20found'});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.'},_0x492392);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_BALLOON_SELECTION_REMOVED_ERROR':return t({'id':'AI_BALLOON_SELECTION_REMOVED_ERROR','string':'Changes\x20cannot\x20be\x20applied.\x20The\x20original\x20content\x20no\x20longer\x20exists.'});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_INITIALIZATION_ERROR_MESSAGE':return t({'id':'AI_REVIEW_INITIALIZATION_ERROR_MESSAGE','string':'AI\x20Review\x20initialized\x20with\x20errors.\x20Some\x20features\x20may\x20not\x20be\x20available\x20or\x20work\x20properly.'});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_REVIEW_MODE_CHECK_STATUS_ACCEPTED':return t({'id':'AI_REVIEW_MODE_CHECK_STATUS_ACCEPTED','string':'Accepted'});case'AI_REVIEW_MODE_CHECK_STATUS_REJECTED':return t({'id':'AI_REVIEW_MODE_CHECK_STATUS_REJECTED','string':'Dismissed'});case'AI_REVIEW_MODE_CHECK_STATUS_OUTDATED':return t({'id':'AI_REVIEW_MODE_CHECK_STATUS_OUTDATED','string':'Outdated'});case'AI_TOGGLE_BUTTON_LABEL':return t({'id':'AI_TOGGLE_BUTTON_LABEL','string':'AI'});case'AI_TRANSLATE_ACCEPT_ALL':return t({'id':'AI_TRANSLATE_ACCEPT_ALL','string':'Accept\x20translation'});case'AI_TRANSLATE_FINISH_HEADER_TITLE':return t({'id':'AI_TRANSLATE_FINISH_HEADER_TITLE','string':'Translation\x20complete.\x20Finish\x20when\x20ready.'});case'AI_TRANSLATE_EMPTY_RESULTS_TEXT':return t({'id':'AI_TRANSLATE_EMPTY_RESULTS_TEXT','string':'There\x20are\x20no\x20translations\x20to\x20review.'});case'AI_TRANSLATE_FINISH_BUTTON_LABEL':return t({'id':'AI_TRANSLATE_FINISH_BUTTON_LABEL','string':'Finish\x20Translation'});case'AI_TRANSLATE_CHECK_LIST_HEADER_TITLE':return t({'id':'AI_TRANSLATE_CHECK_LIST_HEADER_TITLE','string':'Content\x20Translation'});case'AI_TRANSLATE_CHECK_LIST_HEADER_DESCRIPTION':return t({'id':'AI_TRANSLATE_CHECK_LIST_HEADER_DESCRIPTION','string':'A\x20dedicated\x20mode\x20for\x20translating\x20the\x20entire\x20text.'});case'AI_TRANSLATE_CHECK_RESULTS_LOADING_TITLE':return t({'id':'AI_TRANSLATE_CHECK_RESULTS_LOADING_TITLE','string':'Translating\x20to'});case'AI_TRANSLATE_CHECK_RESULTS_READY_TITLE':return t({'id':'AI_TRANSLATE_CHECK_RESULTS_READY_TITLE','string':'Translated\x20to'});case'AI_TRANSLATE_GENERAL_ERROR_MESSAGE':return t({'id':'AI_TRANSLATE_GENERAL_ERROR_MESSAGE','string':'Sorry,\x20we\x20couldn\x27t\x20generate\x20translations\x20properly.\x20Please\x20try\x20again\x20in\x20a\x20moment.'});case'AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE':return t({'id':'AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE','string':'This\x20conversation\x20is\x20loaded\x20from\x20chat\x20history\x20from\x20a\x20previous\x20session,\x20so\x20you\x20can’t\x20apply,\x20reject,\x20or\x20suggest\x20changes.'});case'AI_SUGGESTION_DISABLED_FEED_MESSAGE':return t({'id':'AI_SUGGESTION_DISABLED_FEED_MESSAGE','string':'Actions\x20aren’t\x20available\x20for\x20changes\x20from\x20a\x20previous\x20session.'});default:return _0x42ce72;}}function createResizeButton(_0x190071,_0xdbd708){const _0x24ed6e=new ButtonView(_0x190071),_0x415dff=getTranslation$i(_0x190071,'AI_TABS_LABEL_MINIMIZE'),_0x269cb1=getTranslation$i(_0x190071,'AI_TABS_LABEL_MAXIMIZE');return _0x24ed6e['set']({'withText':!0x1,'icon':IconMaximize,'tooltip':!0x0,'class':'ck-ai-tabs__resize\x20ck-ai-button-tertiary'}),_0x24ed6e['bind']('label')['to'](_0xdbd708,'isMaximized',_0x14557d=>_0x14557d?_0x415dff:_0x269cb1),_0x24ed6e['bind']('icon')['to'](_0xdbd708,'isMaximized',_0x5b0ec1=>_0x5b0ec1?IconMinimize:IconMaximize),_0x24ed6e['bind']('isOn')['to'](_0xdbd708,'isMaximized'),_0x24ed6e['on']('execute',()=>{_0xdbd708['fire']('resizeTabs');}),_0x24ed6e;}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'](_0x2a73e4=>_0x2a73e4['charCodeAt'](0x0))),xmlDecodeTree=new Uint16Array('Ȁaglq\x09\x15\x18\x1bɭ\x0f\x00\x00\x12p;䀦os;䀧t;䀾t;䀼uot;䀢'['split']('')['map'](_0x170f00=>_0x170f00['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(_0x12e61d){let _0x12874f='';return _0x12e61d>0xffff&&(_0x12e61d-=0x10000,_0x12874f+=String['fromCharCode'](_0x12e61d>>>0xa&0x3ff|0xd800),_0x12e61d=0xdc00|0x3ff&_0x12e61d),_0x12874f+=String['fromCharCode'](_0x12e61d),_0x12874f;};function replaceCodePoint(_0x4ea754){var _0x3caa5b;return _0x4ea754>=0xd800&&_0x4ea754<=0xdfff||_0x4ea754>0x10ffff?0xfffd:null!==(_0x3caa5b=decodeMap['get'](_0x4ea754))&&void 0x0!==_0x3caa5b?_0x3caa5b:_0x4ea754;}var CharCodes$1;!function(_0xa67ecd){_0xa67ecd[_0xa67ecd['NUM']=0x23]='NUM',_0xa67ecd[_0xa67ecd['SEMI']=0x3b]='SEMI',_0xa67ecd[_0xa67ecd['EQUALS']=0x3d]='EQUALS',_0xa67ecd[_0xa67ecd['ZERO']=0x30]='ZERO',_0xa67ecd[_0xa67ecd['NINE']=0x39]='NINE',_0xa67ecd[_0xa67ecd['LOWER_A']=0x61]='LOWER_A',_0xa67ecd[_0xa67ecd['LOWER_F']=0x66]='LOWER_F',_0xa67ecd[_0xa67ecd['LOWER_X']=0x78]='LOWER_X',_0xa67ecd[_0xa67ecd['LOWER_Z']=0x7a]='LOWER_Z',_0xa67ecd[_0xa67ecd['UPPER_A']=0x41]='UPPER_A',_0xa67ecd[_0xa67ecd['UPPER_F']=0x46]='UPPER_F',_0xa67ecd[_0xa67ecd['UPPER_Z']=0x5a]='UPPER_Z';}(CharCodes$1||(CharCodes$1={}));const TO_LOWER_BIT=0x20;var BinTrieFlags,EntityDecoderState,DecodingMode,CharCodes,State,QuoteType;function isNumber$1(_0x53f32e){return _0x53f32e>=CharCodes$1['ZERO']&&_0x53f32e<=CharCodes$1['NINE'];}function isHexadecimalCharacter(_0x52b21a){return _0x52b21a>=CharCodes$1['UPPER_A']&&_0x52b21a<=CharCodes$1['UPPER_F']||_0x52b21a>=CharCodes$1['LOWER_A']&&_0x52b21a<=CharCodes$1['LOWER_F'];}function isAsciiAlphaNumeric(_0x29eb63){return _0x29eb63>=CharCodes$1['UPPER_A']&&_0x29eb63<=CharCodes$1['UPPER_Z']||_0x29eb63>=CharCodes$1['LOWER_A']&&_0x29eb63<=CharCodes$1['LOWER_Z']||isNumber$1(_0x29eb63);}function isEntityInAttributeInvalidEnd(_0x16d671){return _0x16d671===CharCodes$1['EQUALS']||isAsciiAlphaNumeric(_0x16d671);}!function(_0x464f71){_0x464f71[_0x464f71['VALUE_LENGTH']=0xc000]='VALUE_LENGTH',_0x464f71[_0x464f71['BRANCH_LENGTH']=0x3f80]='BRANCH_LENGTH',_0x464f71[_0x464f71['JUMP_TABLE']=0x7f]='JUMP_TABLE';}(BinTrieFlags||(BinTrieFlags={})),function(_0x55a83b){_0x55a83b[_0x55a83b['EntityStart']=0x0]='EntityStart',_0x55a83b[_0x55a83b['NumericStart']=0x1]='NumericStart',_0x55a83b[_0x55a83b['NumericDecimal']=0x2]='NumericDecimal',_0x55a83b[_0x55a83b['NumericHex']=0x3]='NumericHex',_0x55a83b[_0x55a83b['NamedEntity']=0x4]='NamedEntity';}(EntityDecoderState||(EntityDecoderState={})),function(_0x215d8f){_0x215d8f[_0x215d8f['Legacy']=0x0]='Legacy',_0x215d8f[_0x215d8f['Strict']=0x1]='Strict',_0x215d8f[_0x215d8f['Attribute']=0x2]='Attribute';}(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(_0x10a950,_0x32c642,_0x4b22a6){this['decodeTree']=_0x10a950,this['emitCodePoint']=_0x32c642,this['errors']=_0x4b22a6,this['state']=EntityDecoderState['EntityStart'],this['consumed']=0x1,this['result']=0x0,this['treeIndex']=0x0,this['excess']=0x1,this['decodeMode']=DecodingMode['Strict'];}['startEntity'](_0x326aa5){this['decodeMode']=_0x326aa5,this['state']=EntityDecoderState['EntityStart'],this['result']=0x0,this['treeIndex']=0x0,this['excess']=0x1,this['consumed']=0x1;}['write'](_0x44e701,_0x11cf13){switch(this['state']){case EntityDecoderState['EntityStart']:return _0x44e701['charCodeAt'](_0x11cf13)===CharCodes$1['NUM']?(this['state']=EntityDecoderState['NumericStart'],this['consumed']+=0x1,this['stateNumericStart'](_0x44e701,_0x11cf13+0x1)):(this['state']=EntityDecoderState['NamedEntity'],this['stateNamedEntity'](_0x44e701,_0x11cf13));case EntityDecoderState['NumericStart']:return this['stateNumericStart'](_0x44e701,_0x11cf13);case EntityDecoderState['NumericDecimal']:return this['stateNumericDecimal'](_0x44e701,_0x11cf13);case EntityDecoderState['NumericHex']:return this['stateNumericHex'](_0x44e701,_0x11cf13);case EntityDecoderState['NamedEntity']:return this['stateNamedEntity'](_0x44e701,_0x11cf13);}}['stateNumericStart'](_0x57e5ba,_0x7be57d){return _0x7be57d>=_0x57e5ba['length']?-0x1:(_0x57e5ba['charCodeAt'](_0x7be57d)|TO_LOWER_BIT)===CharCodes$1['LOWER_X']?(this['state']=EntityDecoderState['NumericHex'],this['consumed']+=0x1,this['stateNumericHex'](_0x57e5ba,_0x7be57d+0x1)):(this['state']=EntityDecoderState['NumericDecimal'],this['stateNumericDecimal'](_0x57e5ba,_0x7be57d));}['addToNumericResult'](_0x414c64,_0x32f3a4,_0xd5244b,_0x560945){if(_0x32f3a4!==_0xd5244b){const _0x471c66=_0xd5244b-_0x32f3a4;this['result']=this['result']*Math['pow'](_0x560945,_0x471c66)+Number['parseInt'](_0x414c64['substr'](_0x32f3a4,_0x471c66),_0x560945),this['consumed']+=_0x471c66;}}['stateNumericHex'](_0x35f56b,_0x46969c){const _0x5dd22d=_0x46969c;for(;_0x46969c<_0x35f56b['length'];){const _0x24a23b=_0x35f56b['charCodeAt'](_0x46969c);if(!isNumber$1(_0x24a23b)&&!isHexadecimalCharacter(_0x24a23b))return this['addToNumericResult'](_0x35f56b,_0x5dd22d,_0x46969c,0x10),this['emitNumericEntity'](_0x24a23b,0x3);_0x46969c+=0x1;}return this['addToNumericResult'](_0x35f56b,_0x5dd22d,_0x46969c,0x10),-0x1;}['stateNumericDecimal'](_0x38c231,_0x44a678){const _0x40700e=_0x44a678;for(;_0x44a678<_0x38c231['length'];){const _0x2968f8=_0x38c231['charCodeAt'](_0x44a678);if(!isNumber$1(_0x2968f8))return this['addToNumericResult'](_0x38c231,_0x40700e,_0x44a678,0xa),this['emitNumericEntity'](_0x2968f8,0x2);_0x44a678+=0x1;}return this['addToNumericResult'](_0x38c231,_0x40700e,_0x44a678,0xa),-0x1;}['emitNumericEntity'](_0x3b4aa8,_0x4b8e16){var _0x480835;if(this['consumed']<=_0x4b8e16)return null===(_0x480835=this['errors'])||void 0x0===_0x480835||_0x480835['absenceOfDigitsInNumericCharacterReference'](this['consumed']),0x0;if(_0x3b4aa8===CharCodes$1['SEMI'])this['consumed']+=0x1;else{if(this['decodeMode']===DecodingMode['Strict'])return 0x0;}return this['emitCodePoint'](replaceCodePoint(this['result']),this['consumed']),this['errors']&&(_0x3b4aa8!==CharCodes$1['SEMI']&&this['errors']['missingSemicolonAfterCharacterReference'](),this['errors']['validateNumericCharacterReference'](this['result'])),this['consumed'];}['stateNamedEntity'](_0x2b2236,_0xf0861a){const {decodeTree:_0x1f5a9e}=this;let _0x636ee1=_0x1f5a9e[this['treeIndex']],_0x1c504d=(_0x636ee1&BinTrieFlags['VALUE_LENGTH'])>>0xe;for(;_0xf0861a<_0x2b2236['length'];_0xf0861a++,this['excess']++){const _0x566684=_0x2b2236['charCodeAt'](_0xf0861a);if(this['treeIndex']=determineBranch(_0x1f5a9e,_0x636ee1,this['treeIndex']+Math['max'](0x1,_0x1c504d),_0x566684),this['treeIndex']<0x0)return 0x0===this['result']||this['decodeMode']===DecodingMode['Attribute']&&(0x0===_0x1c504d||isEntityInAttributeInvalidEnd(_0x566684))?0x0:this['emitNotTerminatedNamedEntity']();if(_0x636ee1=_0x1f5a9e[this['treeIndex']],_0x1c504d=(_0x636ee1&BinTrieFlags['VALUE_LENGTH'])>>0xe,0x0!==_0x1c504d){if(_0x566684===CharCodes$1['SEMI'])return this['emitNamedEntityData'](this['treeIndex'],_0x1c504d,this['consumed']+this['excess']);this['decodeMode']!==DecodingMode['Strict']&&(this['result']=this['treeIndex'],this['consumed']+=this['excess'],this['excess']=0x0);}}return-0x1;}['emitNotTerminatedNamedEntity'](){var _0x41b633;const {result:_0x3ef271,decodeTree:_0x317e3e}=this,_0x1ff532=(_0x317e3e[_0x3ef271]&BinTrieFlags['VALUE_LENGTH'])>>0xe;return this['emitNamedEntityData'](_0x3ef271,_0x1ff532,this['consumed']),null===(_0x41b633=this['errors'])||void 0x0===_0x41b633||_0x41b633['missingSemicolonAfterCharacterReference'](),this['consumed'];}['emitNamedEntityData'](_0x10d756,_0x22c2f0,_0x3ac81f){const {decodeTree:_0x3f2dd2}=this;return this['emitCodePoint'](0x1===_0x22c2f0?_0x3f2dd2[_0x10d756]&~BinTrieFlags['VALUE_LENGTH']:_0x3f2dd2[_0x10d756+0x1],_0x3ac81f),0x3===_0x22c2f0&&this['emitCodePoint'](_0x3f2dd2[_0x10d756+0x2],_0x3ac81f),_0x3ac81f;}['end'](){var _0x25f9db;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===(_0x25f9db=this['errors'])||void 0x0===_0x25f9db||_0x25f9db['absenceOfDigitsInNumericCharacterReference'](this['consumed']),0x0;case EntityDecoderState['EntityStart']:return 0x0;}}}function determineBranch(_0xcb1e8d,_0xb01ce3,_0x3aa95a,_0x49713f){const _0x4f8195=(_0xb01ce3&BinTrieFlags['BRANCH_LENGTH'])>>0x7,_0x1e36b6=_0xb01ce3&BinTrieFlags['JUMP_TABLE'];if(0x0===_0x4f8195)return 0x0!==_0x1e36b6&&_0x49713f===_0x1e36b6?_0x3aa95a:-0x1;if(_0x1e36b6){const _0x2d2774=_0x49713f-_0x1e36b6;return _0x2d2774<0x0||_0x2d2774>=_0x4f8195?-0x1:_0xcb1e8d[_0x3aa95a+_0x2d2774]-0x1;}let _0x386397=_0x3aa95a,_0x336c8b=_0x386397+_0x4f8195-0x1;for(;_0x386397<=_0x336c8b;){const _0x58037e=_0x386397+_0x336c8b>>>0x1,_0x5120c5=_0xcb1e8d[_0x58037e];if(_0x5120c5<_0x49713f)_0x386397=_0x58037e+0x1;else{if(!(_0x5120c5>_0x49713f))return _0xcb1e8d[_0x58037e+_0x4f8195];_0x336c8b=_0x58037e-0x1;}}return-0x1;}function isWhitespace(_0x425fe3){return _0x425fe3===CharCodes['Space']||_0x425fe3===CharCodes['NewLine']||_0x425fe3===CharCodes['Tab']||_0x425fe3===CharCodes['FormFeed']||_0x425fe3===CharCodes['CarriageReturn'];}function isEndOfTagSection(_0x30525c){return _0x30525c===CharCodes['Slash']||_0x30525c===CharCodes['Gt']||isWhitespace(_0x30525c);}function isASCIIAlpha(_0x396a96){return _0x396a96>=CharCodes['LowerA']&&_0x396a96<=CharCodes['LowerZ']||_0x396a96>=CharCodes['UpperA']&&_0x396a96<=CharCodes['UpperZ'];}!function(_0x47699f){_0x47699f[_0x47699f['Tab']=0x9]='Tab',_0x47699f[_0x47699f['NewLine']=0xa]='NewLine',_0x47699f[_0x47699f['FormFeed']=0xc]='FormFeed',_0x47699f[_0x47699f['CarriageReturn']=0xd]='CarriageReturn',_0x47699f[_0x47699f['Space']=0x20]='Space',_0x47699f[_0x47699f['ExclamationMark']=0x21]='ExclamationMark',_0x47699f[_0x47699f['Number']=0x23]='Number',_0x47699f[_0x47699f['Amp']=0x26]='Amp',_0x47699f[_0x47699f['SingleQuote']=0x27]='SingleQuote',_0x47699f[_0x47699f['DoubleQuote']=0x22]='DoubleQuote',_0x47699f[_0x47699f['Dash']=0x2d]='Dash',_0x47699f[_0x47699f['Slash']=0x2f]='Slash',_0x47699f[_0x47699f['Zero']=0x30]='Zero',_0x47699f[_0x47699f['Nine']=0x39]='Nine',_0x47699f[_0x47699f['Semi']=0x3b]='Semi',_0x47699f[_0x47699f['Lt']=0x3c]='Lt',_0x47699f[_0x47699f['Eq']=0x3d]='Eq',_0x47699f[_0x47699f['Gt']=0x3e]='Gt',_0x47699f[_0x47699f['Questionmark']=0x3f]='Questionmark',_0x47699f[_0x47699f['UpperA']=0x41]='UpperA',_0x47699f[_0x47699f['LowerA']=0x61]='LowerA',_0x47699f[_0x47699f['UpperF']=0x46]='UpperF',_0x47699f[_0x47699f['LowerF']=0x66]='LowerF',_0x47699f[_0x47699f['UpperZ']=0x5a]='UpperZ',_0x47699f[_0x47699f['LowerZ']=0x7a]='LowerZ',_0x47699f[_0x47699f['LowerX']=0x78]='LowerX',_0x47699f[_0x47699f['OpeningSquareBracket']=0x5b]='OpeningSquareBracket';}(CharCodes||(CharCodes={})),function(_0x100516){_0x100516[_0x100516['Text']=0x1]='Text',_0x100516[_0x100516['BeforeTagName']=0x2]='BeforeTagName',_0x100516[_0x100516['InTagName']=0x3]='InTagName',_0x100516[_0x100516['InSelfClosingTag']=0x4]='InSelfClosingTag',_0x100516[_0x100516['BeforeClosingTagName']=0x5]='BeforeClosingTagName',_0x100516[_0x100516['InClosingTagName']=0x6]='InClosingTagName',_0x100516[_0x100516['AfterClosingTagName']=0x7]='AfterClosingTagName',_0x100516[_0x100516['BeforeAttributeName']=0x8]='BeforeAttributeName',_0x100516[_0x100516['InAttributeName']=0x9]='InAttributeName',_0x100516[_0x100516['AfterAttributeName']=0xa]='AfterAttributeName',_0x100516[_0x100516['BeforeAttributeValue']=0xb]='BeforeAttributeValue',_0x100516[_0x100516['InAttributeValueDq']=0xc]='InAttributeValueDq',_0x100516[_0x100516['InAttributeValueSq']=0xd]='InAttributeValueSq',_0x100516[_0x100516['InAttributeValueNq']=0xe]='InAttributeValueNq',_0x100516[_0x100516['BeforeDeclaration']=0xf]='BeforeDeclaration',_0x100516[_0x100516['InDeclaration']=0x10]='InDeclaration',_0x100516[_0x100516['InProcessingInstruction']=0x11]='InProcessingInstruction',_0x100516[_0x100516['BeforeComment']=0x12]='BeforeComment',_0x100516[_0x100516['CDATASequence']=0x13]='CDATASequence',_0x100516[_0x100516['InSpecialComment']=0x14]='InSpecialComment',_0x100516[_0x100516['InCommentLike']=0x15]='InCommentLike',_0x100516[_0x100516['BeforeSpecialS']=0x16]='BeforeSpecialS',_0x100516[_0x100516['BeforeSpecialT']=0x17]='BeforeSpecialT',_0x100516[_0x100516['SpecialStartSequence']=0x18]='SpecialStartSequence',_0x100516[_0x100516['InSpecialTag']=0x19]='InSpecialTag',_0x100516[_0x100516['InEntity']=0x1a]='InEntity';}(State||(State={})),function(_0x4858ff){_0x4858ff[_0x4858ff['NoValue']=0x0]='NoValue',_0x4858ff[_0x4858ff['Unquoted']=0x1]='Unquoted',_0x4858ff[_0x4858ff['Single']=0x2]='Single',_0x4858ff[_0x4858ff['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:_0x5cbe70=!0x1,decodeEntities:_0x5db726=!0x0},_0x11957c){this['cbs']=_0x11957c,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']=_0x5cbe70,this['decodeEntities']=_0x5db726,this['entityDecoder']=new EntityDecoder(_0x5cbe70?xmlDecodeTree:htmlDecodeTree,(_0x446f18,_0x50d1b6)=>this['emitCodePoint'](_0x446f18,_0x50d1b6));}['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'](_0x485350){this['offset']+=this['buffer']['length'],this['buffer']=_0x485350,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'](_0x3ea364){_0x3ea364===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']&&_0x3ea364===CharCodes['Amp']&&this['startEntity']();}['stateSpecialStartSequence'](_0x15f5a0){const _0x42dfac=this['sequenceIndex']===this['currentSequence']['length'];if(_0x42dfac?isEndOfTagSection(_0x15f5a0):(0x20|_0x15f5a0)===this['currentSequence'][this['sequenceIndex']]){if(!_0x42dfac)return void this['sequenceIndex']++;}else this['isSpecial']=!0x1;this['sequenceIndex']=0x0,this['state']=State['InTagName'],this['stateInTagName'](_0x15f5a0);}['stateInSpecialTag'](_0x5a5e28){if(this['sequenceIndex']===this['currentSequence']['length']){if(_0x5a5e28===CharCodes['Gt']||isWhitespace(_0x5a5e28)){const _0x5355fd=this['index']-this['currentSequence']['length'];if(this['sectionStart']<_0x5355fd){const _0x4ffc31=this['index'];this['index']=_0x5355fd,this['cbs']['ontext'](this['sectionStart'],_0x5355fd),this['index']=_0x4ffc31;}return this['isSpecial']=!0x1,this['sectionStart']=_0x5355fd+0x2,void this['stateInClosingTagName'](_0x5a5e28);}this['sequenceIndex']=0x0;}(0x20|_0x5a5e28)===this['currentSequence'][this['sequenceIndex']]?this['sequenceIndex']+=0x1:0x0===this['sequenceIndex']?this['currentSequence']===Sequences['TitleEnd']?this['decodeEntities']&&_0x5a5e28===CharCodes['Amp']&&this['startEntity']():this['fastForwardTo'](CharCodes['Lt'])&&(this['sequenceIndex']=0x1):this['sequenceIndex']=Number(_0x5a5e28===CharCodes['Lt']);}['stateCDATASequence'](_0x69b896){_0x69b896===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'](_0x69b896));}['fastForwardTo'](_0x2e2553){for(;++this['index']<this['buffer']['length']+this['offset'];)if(this['buffer']['charCodeAt'](this['index']-this['offset'])===_0x2e2553)return!0x0;return this['index']=this['buffer']['length']+this['offset']-0x1,!0x1;}['stateInCommentLike'](_0x37e8e6){_0x37e8e6===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):_0x37e8e6!==this['currentSequence'][this['sequenceIndex']-0x1]&&(this['sequenceIndex']=0x0);}['isTagStartChar'](_0x50dfba){return this['xmlMode']?!isEndOfTagSection(_0x50dfba):isASCIIAlpha(_0x50dfba);}['startSpecial'](_0x213d35,_0x233330){this['isSpecial']=!0x0,this['currentSequence']=_0x213d35,this['sequenceIndex']=_0x233330,this['state']=State['SpecialStartSequence'];}['stateBeforeTagName'](_0x5e82ff){if(_0x5e82ff===CharCodes['ExclamationMark'])this['state']=State['BeforeDeclaration'],this['sectionStart']=this['index']+0x1;else{if(_0x5e82ff===CharCodes['Questionmark'])this['state']=State['InProcessingInstruction'],this['sectionStart']=this['index']+0x1;else{if(this['isTagStartChar'](_0x5e82ff)){const _0x2b10a6=0x20|_0x5e82ff;this['sectionStart']=this['index'],this['xmlMode']?this['state']=State['InTagName']:_0x2b10a6===Sequences['ScriptEnd'][0x2]?this['state']=State['BeforeSpecialS']:_0x2b10a6===Sequences['TitleEnd'][0x2]||_0x2b10a6===Sequences['XmpEnd'][0x2]?this['state']=State['BeforeSpecialT']:this['state']=State['InTagName'];}else _0x5e82ff===CharCodes['Slash']?this['state']=State['BeforeClosingTagName']:(this['state']=State['Text'],this['stateText'](_0x5e82ff));}}}['stateInTagName'](_0xfd752d){isEndOfTagSection(_0xfd752d)&&(this['cbs']['onopentagname'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0xfd752d));}['stateBeforeClosingTagName'](_0x4aa82b){isWhitespace(_0x4aa82b)||(_0x4aa82b===CharCodes['Gt']?this['state']=State['Text']:(this['state']=this['isTagStartChar'](_0x4aa82b)?State['InClosingTagName']:State['InSpecialComment'],this['sectionStart']=this['index']));}['stateInClosingTagName'](_0xff6c8){(_0xff6c8===CharCodes['Gt']||isWhitespace(_0xff6c8))&&(this['cbs']['onclosetag'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['state']=State['AfterClosingTagName'],this['stateAfterClosingTagName'](_0xff6c8));}['stateAfterClosingTagName'](_0x268a24){(_0x268a24===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeAttributeName'](_0x14ee64){_0x14ee64===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):_0x14ee64===CharCodes['Slash']?this['state']=State['InSelfClosingTag']:isWhitespace(_0x14ee64)||(this['state']=State['InAttributeName'],this['sectionStart']=this['index']);}['stateInSelfClosingTag'](_0x15d3e1){_0x15d3e1===CharCodes['Gt']?(this['cbs']['onselfclosingtag'](this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1,this['isSpecial']=!0x1):isWhitespace(_0x15d3e1)||(this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x15d3e1));}['stateInAttributeName'](_0x4beef8){(_0x4beef8===CharCodes['Eq']||isEndOfTagSection(_0x4beef8))&&(this['cbs']['onattribname'](this['sectionStart'],this['index']),this['sectionStart']=this['index'],this['state']=State['AfterAttributeName'],this['stateAfterAttributeName'](_0x4beef8));}['stateAfterAttributeName'](_0x4a99d6){_0x4a99d6===CharCodes['Eq']?this['state']=State['BeforeAttributeValue']:_0x4a99d6===CharCodes['Slash']||_0x4a99d6===CharCodes['Gt']?(this['cbs']['onattribend'](QuoteType['NoValue'],this['sectionStart']),this['sectionStart']=-0x1,this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x4a99d6)):isWhitespace(_0x4a99d6)||(this['cbs']['onattribend'](QuoteType['NoValue'],this['sectionStart']),this['state']=State['InAttributeName'],this['sectionStart']=this['index']);}['stateBeforeAttributeValue'](_0x3959be){_0x3959be===CharCodes['DoubleQuote']?(this['state']=State['InAttributeValueDq'],this['sectionStart']=this['index']+0x1):_0x3959be===CharCodes['SingleQuote']?(this['state']=State['InAttributeValueSq'],this['sectionStart']=this['index']+0x1):isWhitespace(_0x3959be)||(this['sectionStart']=this['index'],this['state']=State['InAttributeValueNq'],this['stateInAttributeValueNoQuotes'](_0x3959be));}['handleInAttributeValue'](_0x3d407c,_0x3483d4){_0x3d407c===_0x3483d4||!this['decodeEntities']&&this['fastForwardTo'](_0x3483d4)?(this['cbs']['onattribdata'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['cbs']['onattribend'](_0x3483d4===CharCodes['DoubleQuote']?QuoteType['Double']:QuoteType['Single'],this['index']+0x1),this['state']=State['BeforeAttributeName']):this['decodeEntities']&&_0x3d407c===CharCodes['Amp']&&this['startEntity']();}['stateInAttributeValueDoubleQuotes'](_0x433c3e){this['handleInAttributeValue'](_0x433c3e,CharCodes['DoubleQuote']);}['stateInAttributeValueSingleQuotes'](_0x522528){this['handleInAttributeValue'](_0x522528,CharCodes['SingleQuote']);}['stateInAttributeValueNoQuotes'](_0x5c1677){isWhitespace(_0x5c1677)||_0x5c1677===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'](_0x5c1677)):this['decodeEntities']&&_0x5c1677===CharCodes['Amp']&&this['startEntity']();}['stateBeforeDeclaration'](_0x40e6a6){_0x40e6a6===CharCodes['OpeningSquareBracket']?(this['state']=State['CDATASequence'],this['sequenceIndex']=0x0):this['state']=_0x40e6a6===CharCodes['Dash']?State['BeforeComment']:State['InDeclaration'];}['stateInDeclaration'](_0x541f36){(_0x541f36===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['ondeclaration'](this['sectionStart'],this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateInProcessingInstruction'](_0x4942cc){(_0x4942cc===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['onprocessinginstruction'](this['sectionStart'],this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeComment'](_0x504c62){_0x504c62===CharCodes['Dash']?(this['state']=State['InCommentLike'],this['currentSequence']=Sequences['CommentEnd'],this['sequenceIndex']=0x2,this['sectionStart']=this['index']+0x1):this['state']=State['InDeclaration'];}['stateInSpecialComment'](_0x407116){(_0x407116===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['oncomment'](this['sectionStart'],this['index'],0x0),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeSpecialS'](_0x53fb17){const _0x30fbba=0x20|_0x53fb17;_0x30fbba===Sequences['ScriptEnd'][0x3]?this['startSpecial'](Sequences['ScriptEnd'],0x4):_0x30fbba===Sequences['StyleEnd'][0x3]?this['startSpecial'](Sequences['StyleEnd'],0x4):(this['state']=State['InTagName'],this['stateInTagName'](_0x53fb17));}['stateBeforeSpecialT'](_0x3a49bd){switch(0x20|_0x3a49bd){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'](_0x3a49bd);}}['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 _0x5960a2=this['entityDecoder']['write'](this['buffer'],this['index']-this['offset']);_0x5960a2>=0x0?(this['state']=this['baseState'],0x0===_0x5960a2&&(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 _0x2c3901=this['buffer']['charCodeAt'](this['index']-this['offset']);switch(this['state']){case State['Text']:this['stateText'](_0x2c3901);break;case State['SpecialStartSequence']:this['stateSpecialStartSequence'](_0x2c3901);break;case State['InSpecialTag']:this['stateInSpecialTag'](_0x2c3901);break;case State['CDATASequence']:this['stateCDATASequence'](_0x2c3901);break;case State['InAttributeValueDq']:this['stateInAttributeValueDoubleQuotes'](_0x2c3901);break;case State['InAttributeName']:this['stateInAttributeName'](_0x2c3901);break;case State['InCommentLike']:this['stateInCommentLike'](_0x2c3901);break;case State['InSpecialComment']:this['stateInSpecialComment'](_0x2c3901);break;case State['BeforeAttributeName']:this['stateBeforeAttributeName'](_0x2c3901);break;case State['InTagName']:this['stateInTagName'](_0x2c3901);break;case State['InClosingTagName']:this['stateInClosingTagName'](_0x2c3901);break;case State['BeforeTagName']:this['stateBeforeTagName'](_0x2c3901);break;case State['AfterAttributeName']:this['stateAfterAttributeName'](_0x2c3901);break;case State['InAttributeValueSq']:this['stateInAttributeValueSingleQuotes'](_0x2c3901);break;case State['BeforeAttributeValue']:this['stateBeforeAttributeValue'](_0x2c3901);break;case State['BeforeClosingTagName']:this['stateBeforeClosingTagName'](_0x2c3901);break;case State['AfterClosingTagName']:this['stateAfterClosingTagName'](_0x2c3901);break;case State['BeforeSpecialS']:this['stateBeforeSpecialS'](_0x2c3901);break;case State['BeforeSpecialT']:this['stateBeforeSpecialT'](_0x2c3901);break;case State['InAttributeValueNq']:this['stateInAttributeValueNoQuotes'](_0x2c3901);break;case State['InSelfClosingTag']:this['stateInSelfClosingTag'](_0x2c3901);break;case State['InDeclaration']:this['stateInDeclaration'](_0x2c3901);break;case State['BeforeDeclaration']:this['stateBeforeDeclaration'](_0x2c3901);break;case State['BeforeComment']:this['stateBeforeComment'](_0x2c3901);break;case State['InProcessingInstruction']:this['stateInProcessingInstruction'](_0x2c3901);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 _0x3794f3=this['buffer']['length']+this['offset'];this['sectionStart']>=_0x3794f3||(this['state']===State['InCommentLike']?this['currentSequence']===Sequences['CdataEnd']?this['cbs']['oncdata'](this['sectionStart'],_0x3794f3,0x0):this['cbs']['oncomment'](this['sectionStart'],_0x3794f3,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'],_0x3794f3));}['emitCodePoint'](_0x3a8c71,_0x463284){this['baseState']!==State['Text']&&this['baseState']!==State['InSpecialTag']?(this['sectionStart']<this['entityStart']&&this['cbs']['onattribdata'](this['sectionStart'],this['entityStart']),this['sectionStart']=this['entityStart']+_0x463284,this['index']=this['sectionStart']-0x1,this['cbs']['onattribentity'](_0x3a8c71)):(this['sectionStart']<this['entityStart']&&this['cbs']['ontext'](this['sectionStart'],this['entityStart']),this['sectionStart']=this['entityStart']+_0x463284,this['index']=this['sectionStart']-0x1,this['cbs']['ontextentity'](_0x3a8c71,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(_0x261561,_0x283cea={}){var _0x13f50f,_0x410d97,_0x3571e1,_0xaa72cd,_0x2e85f3,_0x3324dd;this['options']=_0x283cea,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!=_0x261561?_0x261561:{},this['htmlMode']=!this['options']['xmlMode'],this['lowerCaseTagNames']=null!==(_0x13f50f=_0x283cea['lowerCaseTags'])&&void 0x0!==_0x13f50f?_0x13f50f:this['htmlMode'],this['lowerCaseAttributeNames']=null!==(_0x410d97=_0x283cea['lowerCaseAttributeNames'])&&void 0x0!==_0x410d97?_0x410d97:this['htmlMode'],this['recognizeSelfClosing']=null!==(_0x3571e1=_0x283cea['recognizeSelfClosing'])&&void 0x0!==_0x3571e1?_0x3571e1:!this['htmlMode'],this['tokenizer']=new(null!==(_0xaa72cd=_0x283cea['Tokenizer'])&&void 0x0!==_0xaa72cd?_0xaa72cd:Tokenizer)(this['options'],this),this['foreignContext']=[!this['htmlMode']],null===(_0x3324dd=(_0x2e85f3=this['cbs'])['onparserinit'])||void 0x0===_0x3324dd||_0x3324dd['call'](_0x2e85f3,this);}['ontext'](_0x5a86bb,_0x1d66c5){var _0x2798d6,_0x50f26a;const _0x5b778e=this['getSlice'](_0x5a86bb,_0x1d66c5);this['endIndex']=_0x1d66c5-0x1,null===(_0x50f26a=(_0x2798d6=this['cbs'])['ontext'])||void 0x0===_0x50f26a||_0x50f26a['call'](_0x2798d6,_0x5b778e),this['startIndex']=_0x1d66c5;}['ontextentity'](_0xda2ff3,_0x42836b){var _0x421f99,_0x258ff4;this['endIndex']=_0x42836b-0x1,null===(_0x258ff4=(_0x421f99=this['cbs'])['ontext'])||void 0x0===_0x258ff4||_0x258ff4['call'](_0x421f99,fromCodePoint$1(_0xda2ff3)),this['startIndex']=_0x42836b;}['isVoidElement'](_0x1d9ee1){return this['htmlMode']&&voidElements['has'](_0x1d9ee1);}['onopentagname'](_0x1bb83f,_0x59d577){this['endIndex']=_0x59d577;let _0x3a3919=this['getSlice'](_0x1bb83f,_0x59d577);this['lowerCaseTagNames']&&(_0x3a3919=_0x3a3919['toLowerCase']()),this['emitOpenTag'](_0x3a3919);}['emitOpenTag'](_0x2b5b27){var _0x56c224,_0x676d78,_0x17f34e,_0x42df59;this['openTagStart']=this['startIndex'],this['tagname']=_0x2b5b27;const _0x2ed9fd=this['htmlMode']&&openImpliesClose['get'](_0x2b5b27);if(_0x2ed9fd)for(;this['stack']['length']>0x0&&_0x2ed9fd['has'](this['stack'][0x0]);){const _0x597597=this['stack']['shift']();null===(_0x676d78=(_0x56c224=this['cbs'])['onclosetag'])||void 0x0===_0x676d78||_0x676d78['call'](_0x56c224,_0x597597,!0x0);}this['isVoidElement'](_0x2b5b27)||(this['stack']['unshift'](_0x2b5b27),this['htmlMode']&&(foreignContextElements['has'](_0x2b5b27)?this['foreignContext']['unshift'](!0x0):htmlIntegrationElements['has'](_0x2b5b27)&&this['foreignContext']['unshift'](!0x1))),null===(_0x42df59=(_0x17f34e=this['cbs'])['onopentagname'])||void 0x0===_0x42df59||_0x42df59['call'](_0x17f34e,_0x2b5b27),this['cbs']['onopentag']&&(this['attribs']={});}['endOpenTag'](_0xde6038){var _0x19d0b1,_0xbae0a0;this['startIndex']=this['openTagStart'],this['attribs']&&(null===(_0xbae0a0=(_0x19d0b1=this['cbs'])['onopentag'])||void 0x0===_0xbae0a0||_0xbae0a0['call'](_0x19d0b1,this['tagname'],this['attribs'],_0xde6038),this['attribs']=null),this['cbs']['onclosetag']&&this['isVoidElement'](this['tagname'])&&this['cbs']['onclosetag'](this['tagname'],!0x0),this['tagname']='';}['onopentagend'](_0x2574b9){this['endIndex']=_0x2574b9,this['endOpenTag'](!0x1),this['startIndex']=_0x2574b9+0x1;}['onclosetag'](_0x2706ec,_0x18e8a4){var _0x1a94fc,_0x13d18f,_0xd704a,_0x463184,_0x52d6e6,_0x28d547,_0x3074d8,_0x5027d9;this['endIndex']=_0x18e8a4;let _0xefca8b=this['getSlice'](_0x2706ec,_0x18e8a4);if(this['lowerCaseTagNames']&&(_0xefca8b=_0xefca8b['toLowerCase']()),this['htmlMode']&&(foreignContextElements['has'](_0xefca8b)||htmlIntegrationElements['has'](_0xefca8b))&&this['foreignContext']['shift'](),this['isVoidElement'](_0xefca8b))this['htmlMode']&&'br'===_0xefca8b&&(null===(_0x463184=(_0xd704a=this['cbs'])['onopentagname'])||void 0x0===_0x463184||_0x463184['call'](_0xd704a,'br'),null===(_0x28d547=(_0x52d6e6=this['cbs'])['onopentag'])||void 0x0===_0x28d547||_0x28d547['call'](_0x52d6e6,'br',{},!0x0),null===(_0x5027d9=(_0x3074d8=this['cbs'])['onclosetag'])||void 0x0===_0x5027d9||_0x5027d9['call'](_0x3074d8,'br',!0x1));else{const _0x5c04a6=this['stack']['indexOf'](_0xefca8b);if(-0x1!==_0x5c04a6)for(let _0x3117e3=0x0;_0x3117e3<=_0x5c04a6;_0x3117e3++){const _0x579295=this['stack']['shift']();null===(_0x13d18f=(_0x1a94fc=this['cbs'])['onclosetag'])||void 0x0===_0x13d18f||_0x13d18f['call'](_0x1a94fc,_0x579295,_0x3117e3!==_0x5c04a6);}else this['htmlMode']&&'p'===_0xefca8b&&(this['emitOpenTag']('p'),this['closeCurrentTag'](!0x0));}this['startIndex']=_0x18e8a4+0x1;}['onselfclosingtag'](_0x240739){this['endIndex']=_0x240739,this['recognizeSelfClosing']||this['foreignContext'][0x0]?(this['closeCurrentTag'](!0x1),this['startIndex']=_0x240739+0x1):this['onopentagend'](_0x240739);}['closeCurrentTag'](_0x4f3988){var _0x586114,_0x51e7f3;const _0x18319d=this['tagname'];this['endOpenTag'](_0x4f3988),this['stack'][0x0]===_0x18319d&&(null===(_0x51e7f3=(_0x586114=this['cbs'])['onclosetag'])||void 0x0===_0x51e7f3||_0x51e7f3['call'](_0x586114,_0x18319d,!_0x4f3988),this['stack']['shift']());}['onattribname'](_0x18a222,_0x393d10){this['startIndex']=_0x18a222;const _0x5699f0=this['getSlice'](_0x18a222,_0x393d10);this['attribname']=this['lowerCaseAttributeNames']?_0x5699f0['toLowerCase']():_0x5699f0;}['onattribdata'](_0x400c5f,_0x43e766){this['attribvalue']+=this['getSlice'](_0x400c5f,_0x43e766);}['onattribentity'](_0x34d029){this['attribvalue']+=fromCodePoint$1(_0x34d029);}['onattribend'](_0x29e090,_0x1500f7){var _0x56c305,_0x19e764;this['endIndex']=_0x1500f7,null===(_0x19e764=(_0x56c305=this['cbs'])['onattribute'])||void 0x0===_0x19e764||_0x19e764['call'](_0x56c305,this['attribname'],this['attribvalue'],_0x29e090===QuoteType['Double']?'\x22':_0x29e090===QuoteType['Single']?'\x27':_0x29e090===QuoteType['NoValue']?void 0x0:null),this['attribs']&&!Object['prototype']['hasOwnProperty']['call'](this['attribs'],this['attribname'])&&(this['attribs'][this['attribname']]=this['attribvalue']),this['attribvalue']='';}['getInstructionName'](_0x231576){const _0x4538c6=_0x231576['search'](reNameEnd);let _0x295382=_0x4538c6<0x0?_0x231576:_0x231576['substr'](0x0,_0x4538c6);return this['lowerCaseTagNames']&&(_0x295382=_0x295382['toLowerCase']()),_0x295382;}['ondeclaration'](_0x4d91c2,_0x424f35){this['endIndex']=_0x424f35;const _0xb6c430=this['getSlice'](_0x4d91c2,_0x424f35);if(this['cbs']['onprocessinginstruction']){const _0x32af86=this['getInstructionName'](_0xb6c430);this['cbs']['onprocessinginstruction']('!'+_0x32af86,'!'+_0xb6c430);}this['startIndex']=_0x424f35+0x1;}['onprocessinginstruction'](_0x33458e,_0x28f892){this['endIndex']=_0x28f892;const _0x572e0d=this['getSlice'](_0x33458e,_0x28f892);if(this['cbs']['onprocessinginstruction']){const _0x44ee86=this['getInstructionName'](_0x572e0d);this['cbs']['onprocessinginstruction']('?'+_0x44ee86,'?'+_0x572e0d);}this['startIndex']=_0x28f892+0x1;}['oncomment'](_0x520731,_0x10dc19,_0x35656f){var _0x40179c,_0xb68436,_0x1146c7,_0x2ff91e;this['endIndex']=_0x10dc19,null===(_0xb68436=(_0x40179c=this['cbs'])['oncomment'])||void 0x0===_0xb68436||_0xb68436['call'](_0x40179c,this['getSlice'](_0x520731,_0x10dc19-_0x35656f)),null===(_0x2ff91e=(_0x1146c7=this['cbs'])['oncommentend'])||void 0x0===_0x2ff91e||_0x2ff91e['call'](_0x1146c7),this['startIndex']=_0x10dc19+0x1;}['oncdata'](_0x3243d4,_0x125c37,_0x16491b){var _0x1621b8,_0x32024c,_0x4d6ffe,_0x2ed9ef,_0x493e0a,_0x391cd5,_0x3cea91,_0x1f2d5c,_0x4b5bba,_0x2d7155;this['endIndex']=_0x125c37;const _0x1d4451=this['getSlice'](_0x3243d4,_0x125c37-_0x16491b);!this['htmlMode']||this['options']['recognizeCDATA']?(null===(_0x32024c=(_0x1621b8=this['cbs'])['oncdatastart'])||void 0x0===_0x32024c||_0x32024c['call'](_0x1621b8),null===(_0x2ed9ef=(_0x4d6ffe=this['cbs'])['ontext'])||void 0x0===_0x2ed9ef||_0x2ed9ef['call'](_0x4d6ffe,_0x1d4451),null===(_0x391cd5=(_0x493e0a=this['cbs'])['oncdataend'])||void 0x0===_0x391cd5||_0x391cd5['call'](_0x493e0a)):(null===(_0x1f2d5c=(_0x3cea91=this['cbs'])['oncomment'])||void 0x0===_0x1f2d5c||_0x1f2d5c['call'](_0x3cea91,'[CDATA['+_0x1d4451+']]'),null===(_0x2d7155=(_0x4b5bba=this['cbs'])['oncommentend'])||void 0x0===_0x2d7155||_0x2d7155['call'](_0x4b5bba)),this['startIndex']=_0x125c37+0x1;}['onend'](){var _0x3b6529,_0x273ba7;if(this['cbs']['onclosetag']){this['endIndex']=this['startIndex'];for(let _0x518793=0x0;_0x518793<this['stack']['length'];_0x518793++)this['cbs']['onclosetag'](this['stack'][_0x518793],!0x0);}null===(_0x273ba7=(_0x3b6529=this['cbs'])['onend'])||void 0x0===_0x273ba7||_0x273ba7['call'](_0x3b6529);}['reset'](){var _0x4bb8bd,_0x5a8a08,_0x1207fe,_0x47852b;null===(_0x5a8a08=(_0x4bb8bd=this['cbs'])['onreset'])||void 0x0===_0x5a8a08||_0x5a8a08['call'](_0x4bb8bd),this['tokenizer']['reset'](),this['tagname']='',this['attribname']='',this['attribs']=null,this['stack']['length']=0x0,this['startIndex']=0x0,this['endIndex']=0x0,null===(_0x47852b=(_0x1207fe=this['cbs'])['onparserinit'])||void 0x0===_0x47852b||_0x47852b['call'](_0x1207fe,this),this['buffers']['length']=0x0,this['foreignContext']['length']=0x0,this['foreignContext']['unshift'](!this['htmlMode']),this['bufferOffset']=0x0,this['writeIndex']=0x0,this['ended']=!0x1;}['parseComplete'](_0x156995){this['reset'](),this['end'](_0x156995);}['getSlice'](_0x1e473b,_0x5a93e9){for(;_0x1e473b-this['bufferOffset']>=this['buffers'][0x0]['length'];)this['shiftBuffer']();let _0x4a9297=this['buffers'][0x0]['slice'](_0x1e473b-this['bufferOffset'],_0x5a93e9-this['bufferOffset']);for(;_0x5a93e9-this['bufferOffset']>this['buffers'][0x0]['length'];)this['shiftBuffer'](),_0x4a9297+=this['buffers'][0x0]['slice'](0x0,_0x5a93e9-this['bufferOffset']);return _0x4a9297;}['shiftBuffer'](){this['bufferOffset']+=this['buffers'][0x0]['length'],this['writeIndex']--,this['buffers']['shift']();}['write'](_0x315478){var _0x4850ca,_0x4acb5a;this['ended']?null===(_0x4acb5a=(_0x4850ca=this['cbs'])['onerror'])||void 0x0===_0x4acb5a||_0x4acb5a['call'](_0x4850ca,new Error('.write()\x20after\x20done!')):(this['buffers']['push'](_0x315478),this['tokenizer']['running']&&(this['tokenizer']['write'](_0x315478),this['writeIndex']++));}['end'](_0x59a5f2){var _0x542a8c,_0x3ceba9;this['ended']?null===(_0x3ceba9=(_0x542a8c=this['cbs'])['onerror'])||void 0x0===_0x3ceba9||_0x3ceba9['call'](_0x542a8c,new Error('.end()\x20after\x20done!')):(_0x59a5f2&&this['write'](_0x59a5f2),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'](_0x4f5623){this['write'](_0x4f5623);}['done'](_0x520a75){this['end'](_0x520a75);}};var ElementType;function isTag$1(_0x1cf910){return _0x1cf910['type']===ElementType['Tag']||_0x1cf910['type']===ElementType['Script']||_0x1cf910['type']===ElementType['Style'];}!function(_0x2081fd){_0x2081fd['Root']='root',_0x2081fd['Text']='text',_0x2081fd['Directive']='directive',_0x2081fd['Comment']='comment',_0x2081fd['Script']='script',_0x2081fd['Style']='style',_0x2081fd['Tag']='tag',_0x2081fd['CDATA']='cdata',_0x2081fd['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'](_0x5d5f20){this['parent']=_0x5d5f20;}get['previousSibling'](){return this['prev'];}set['previousSibling'](_0xa520a1){this['prev']=_0xa520a1;}get['nextSibling'](){return this['next'];}set['nextSibling'](_0x3603ec){this['next']=_0x3603ec;}['cloneNode'](_0x579d56=!0x1){return cloneNode(this,_0x579d56);}};class DataNode extends Node$1{constructor(_0x3b66dd){super(),this['data']=_0x3b66dd;}get['nodeValue'](){return this['data'];}set['nodeValue'](_0x22b5ca){this['data']=_0x22b5ca;}}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(_0x1889e0,_0x312ef8){super(_0x312ef8),this['name']=_0x1889e0,this['type']=ElementType['Directive'];}get['nodeType'](){return 0x1;}}class NodeWithChildren extends Node$1{constructor(_0x4996ab){super(),this['children']=_0x4996ab;}get['firstChild'](){var _0x5edf79;return null!==(_0x5edf79=this['children'][0x0])&&void 0x0!==_0x5edf79?_0x5edf79:null;}get['lastChild'](){return this['children']['length']>0x0?this['children'][this['children']['length']-0x1]:null;}get['childNodes'](){return this['children'];}set['childNodes'](_0x2a41e0){this['children']=_0x2a41e0;}}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(_0x5ca0fe,_0x1f69a2,_0x48155d=[],_0x52142c='script'===_0x5ca0fe?ElementType['Script']:'style'===_0x5ca0fe?ElementType['Style']:ElementType['Tag']){super(_0x48155d),this['name']=_0x5ca0fe,this['attribs']=_0x1f69a2,this['type']=_0x52142c;}get['nodeType'](){return 0x1;}get['tagName'](){return this['name'];}set['tagName'](_0x1f432e){this['name']=_0x1f432e;}get['attributes'](){return Object['keys'](this['attribs'])['map'](_0x480fb8=>{var _0x448165,_0x227523;return{'name':_0x480fb8,'value':this['attribs'][_0x480fb8],'namespace':null===(_0x448165=this['x-attribsNamespace'])||void 0x0===_0x448165?void 0x0:_0x448165[_0x480fb8],'prefix':null===(_0x227523=this['x-attribsPrefix'])||void 0x0===_0x227523?void 0x0:_0x227523[_0x480fb8]};});}};function isTag(_0x2062db){return isTag$1(_0x2062db);}function isCDATA(_0x58b7c1){return _0x58b7c1['type']===ElementType['CDATA'];}function isText$1(_0x207c5b){return _0x207c5b['type']===ElementType['Text'];}function isComment(_0x5e3e45){return _0x5e3e45['type']===ElementType['Comment'];}function isDirective(_0x72a243){return _0x72a243['type']===ElementType['Directive'];}function isDocument(_0x48b8a3){return _0x48b8a3['type']===ElementType['Root'];}function hasChildren(_0x228fba){return Object['prototype']['hasOwnProperty']['call'](_0x228fba,'children');}function cloneNode(_0x1cf1da,_0x379693=!0x1){let _0x3f885b;if(isText$1(_0x1cf1da))_0x3f885b=new Text$1(_0x1cf1da['data']);else{if(isComment(_0x1cf1da))_0x3f885b=new Comment$1(_0x1cf1da['data']);else{if(isTag(_0x1cf1da)){const _0x11ffcd=_0x379693?cloneChildren(_0x1cf1da['children']):[],_0x380978=new Element$3(_0x1cf1da['name'],{..._0x1cf1da['attribs']},_0x11ffcd);_0x11ffcd['forEach'](_0x3ae9b6=>_0x3ae9b6['parent']=_0x380978),null!=_0x1cf1da['namespace']&&(_0x380978['namespace']=_0x1cf1da['namespace']),_0x1cf1da['x-attribsNamespace']&&(_0x380978['x-attribsNamespace']={..._0x1cf1da['x-attribsNamespace']}),_0x1cf1da['x-attribsPrefix']&&(_0x380978['x-attribsPrefix']={..._0x1cf1da['x-attribsPrefix']}),_0x3f885b=_0x380978;}else{if(isCDATA(_0x1cf1da)){const _0x5309bc=_0x379693?cloneChildren(_0x1cf1da['children']):[],_0x455e6d=new CDATA(_0x5309bc);_0x5309bc['forEach'](_0x2121e=>_0x2121e['parent']=_0x455e6d),_0x3f885b=_0x455e6d;}else{if(isDocument(_0x1cf1da)){const _0x26b092=_0x379693?cloneChildren(_0x1cf1da['children']):[],_0x944895=new Document(_0x26b092);_0x26b092['forEach'](_0x21a871=>_0x21a871['parent']=_0x944895),_0x1cf1da['x-mode']&&(_0x944895['x-mode']=_0x1cf1da['x-mode']),_0x3f885b=_0x944895;}else{if(!isDirective(_0x1cf1da))throw new Error('Not\x20implemented\x20yet:\x20'+_0x1cf1da['type']);{const _0x2b2466=new ProcessingInstruction(_0x1cf1da['name'],_0x1cf1da['data']);null!=_0x1cf1da['x-name']&&(_0x2b2466['x-name']=_0x1cf1da['x-name'],_0x2b2466['x-publicId']=_0x1cf1da['x-publicId'],_0x2b2466['x-systemId']=_0x1cf1da['x-systemId']),_0x3f885b=_0x2b2466;}}}}}}return _0x3f885b['startIndex']=_0x1cf1da['startIndex'],_0x3f885b['endIndex']=_0x1cf1da['endIndex'],null!=_0x1cf1da['sourceCodeLocation']&&(_0x3f885b['sourceCodeLocation']=_0x1cf1da['sourceCodeLocation']),_0x3f885b;}function cloneChildren(_0x2d5040){const _0x267752=_0x2d5040['map'](_0x54c6d9=>cloneNode(_0x54c6d9,!0x0));for(let _0x261c88=0x1;_0x261c88<_0x267752['length'];_0x261c88++)_0x267752[_0x261c88]['prev']=_0x267752[_0x261c88-0x1],_0x267752[_0x261c88-0x1]['next']=_0x267752[_0x261c88];return _0x267752;}const defaultOpts={'withStartIndices':!0x1,'withEndIndices':!0x1,'xmlMode':!0x1};class DomHandler{constructor(_0x11c86a,_0x3bffac,_0x27444f){this['dom']=[],this['root']=new Document(this['dom']),this['done']=!0x1,this['tagStack']=[this['root']],this['lastNode']=null,this['parser']=null,'function'==typeof _0x3bffac&&(_0x27444f=_0x3bffac,_0x3bffac=defaultOpts),'object'==typeof _0x11c86a&&(_0x3bffac=_0x11c86a,_0x11c86a=void 0x0),this['callback']=null!=_0x11c86a?_0x11c86a:null,this['options']=null!=_0x3bffac?_0x3bffac:defaultOpts,this['elementCB']=null!=_0x27444f?_0x27444f:null;}['onparserinit'](_0x2c38d8){this['parser']=_0x2c38d8;}['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'](_0x12e16f){this['handleCallback'](_0x12e16f);}['onclosetag'](){this['lastNode']=null;const _0x1c9197=this['tagStack']['pop']();this['options']['withEndIndices']&&(_0x1c9197['endIndex']=this['parser']['endIndex']),this['elementCB']&&this['elementCB'](_0x1c9197);}['onopentag'](_0x5a5ef9,_0x177a51){const _0x297548=this['options']['xmlMode']?ElementType['Tag']:void 0x0,_0x49b75b=new Element$3(_0x5a5ef9,_0x177a51,void 0x0,_0x297548);this['addNode'](_0x49b75b),this['tagStack']['push'](_0x49b75b);}['ontext'](_0x5575ed){const {lastNode:_0x1b35ae}=this;if(_0x1b35ae&&_0x1b35ae['type']===ElementType['Text'])_0x1b35ae['data']+=_0x5575ed,this['options']['withEndIndices']&&(_0x1b35ae['endIndex']=this['parser']['endIndex']);else{const _0x45f551=new Text$1(_0x5575ed);this['addNode'](_0x45f551),this['lastNode']=_0x45f551;}}['oncomment'](_0x31fa93){if(this['lastNode']&&this['lastNode']['type']===ElementType['Comment'])return void(this['lastNode']['data']+=_0x31fa93);const _0x124cff=new Comment$1(_0x31fa93);this['addNode'](_0x124cff),this['lastNode']=_0x124cff;}['oncommentend'](){this['lastNode']=null;}['oncdatastart'](){const _0x18e6dd=new Text$1(''),_0x4c63a2=new CDATA([_0x18e6dd]);this['addNode'](_0x4c63a2),_0x18e6dd['parent']=_0x4c63a2,this['lastNode']=_0x18e6dd;}['oncdataend'](){this['lastNode']=null;}['onprocessinginstruction'](_0x2e29d2,_0x35b5ad){const _0x5bebf6=new ProcessingInstruction(_0x2e29d2,_0x35b5ad);this['addNode'](_0x5bebf6);}['handleCallback'](_0x1c05d5){if('function'==typeof this['callback'])this['callback'](_0x1c05d5,this['dom']);else{if(_0x1c05d5)throw _0x1c05d5;}}['addNode'](_0x2acebe){const _0x1bb3f8=this['tagStack'][this['tagStack']['length']-0x1],_0x37de21=_0x1bb3f8['children'][_0x1bb3f8['children']['length']-0x1];this['options']['withStartIndices']&&(_0x2acebe['startIndex']=this['parser']['startIndex']),this['options']['withEndIndices']&&(_0x2acebe['endIndex']=this['parser']['endIndex']),_0x1bb3f8['children']['push'](_0x2acebe),_0x37de21&&(_0x2acebe['prev']=_0x37de21,_0x37de21['next']=_0x2acebe),_0x2acebe['parent']=_0x1bb3f8,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']?(_0x2c81e7,_0x5f5687)=>_0x2c81e7['codePointAt'](_0x5f5687):(_0x3449cc,_0x54f215)=>0xd800==(0xfc00&_0x3449cc['charCodeAt'](_0x54f215))?0x400*(_0x3449cc['charCodeAt'](_0x54f215)-0xd800)+_0x3449cc['charCodeAt'](_0x54f215+0x1)-0xdc00+0x10000:_0x3449cc['charCodeAt'](_0x54f215);function encodeXML(_0x370fda){let _0xa87e27,_0x18f2c0='',_0x13e34e=0x0;for(;null!==(_0xa87e27=xmlReplacer['exec'](_0x370fda));){const _0x27248a=_0xa87e27['index'],_0x42c891=_0x370fda['charCodeAt'](_0x27248a),_0xa110f7=xmlCodeMap['get'](_0x42c891);void 0x0!==_0xa110f7?(_0x18f2c0+=_0x370fda['substring'](_0x13e34e,_0x27248a)+_0xa110f7,_0x13e34e=_0x27248a+0x1):(_0x18f2c0+=_0x370fda['substring'](_0x13e34e,_0x27248a)+'&#x'+getCodePoint(_0x370fda,_0x27248a)['toString'](0x10)+';',_0x13e34e=xmlReplacer['lastIndex']+=Number(0xd800==(0xfc00&_0x42c891)));}return _0x18f2c0+_0x370fda['substr'](_0x13e34e);}function getEscaper(_0x1ffd7c,_0x113a76){return function(_0xa99a2e){let _0x587054,_0x27acda=0x0,_0x51cb6d='';for(;_0x587054=_0x1ffd7c['exec'](_0xa99a2e);)_0x27acda!==_0x587054['index']&&(_0x51cb6d+=_0xa99a2e['substring'](_0x27acda,_0x587054['index'])),_0x51cb6d+=_0x113a76['get'](_0x587054[0x0]['charCodeAt'](0x0)),_0x27acda=_0x587054['index']+0x1;return _0x51cb6d+_0xa99a2e['substring'](_0x27acda);};}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'](_0x55fe07=>[_0x55fe07['toLowerCase'](),_0x55fe07])),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'](_0x5b5459=>[_0x5b5459['toLowerCase'](),_0x5b5459])),unencodedElements=new Set(['style','script','xmp','iframe','noembed','noframes','plaintext','noscript']);function replaceQuotes(_0x4700db){return _0x4700db['replace'](/"/g,'&quot;');}function formatAttributes(_0x62b35d,_0x367966){var _0x19fc1d;if(!_0x62b35d)return;const _0x1fb85b=!0x1===(null!==(_0x19fc1d=_0x367966['encodeEntities'])&&void 0x0!==_0x19fc1d?_0x19fc1d:_0x367966['decodeEntities'])?replaceQuotes:_0x367966['xmlMode']||'utf8'!==_0x367966['encodeEntities']?encodeXML:escapeAttribute;return Object['keys'](_0x62b35d)['map'](_0x687334=>{var _0x3f4cd0,_0x12bfb3;const _0x41ead4=null!==(_0x3f4cd0=_0x62b35d[_0x687334])&&void 0x0!==_0x3f4cd0?_0x3f4cd0:'';return'foreign'===_0x367966['xmlMode']&&(_0x687334=null!==(_0x12bfb3=attributeNames['get'](_0x687334))&&void 0x0!==_0x12bfb3?_0x12bfb3:_0x687334),_0x367966['emptyAttrs']||_0x367966['xmlMode']||''!==_0x41ead4?_0x687334+'=\x22'+_0x1fb85b(_0x41ead4)+'\x22':_0x687334;})['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(_0x219de8,_0x200b11={}){const _0x1bb7cb='length'in _0x219de8?_0x219de8:[_0x219de8];let _0x4e66d9='';for(let _0x383cd8=0x0;_0x383cd8<_0x1bb7cb['length'];_0x383cd8++)_0x4e66d9+=renderNode(_0x1bb7cb[_0x383cd8],_0x200b11);return _0x4e66d9;}function renderNode(_0x3a5da,_0x210387){switch(_0x3a5da['type']){case Root:return render(_0x3a5da['children'],_0x210387);case Doctype:case Directive:return renderDirective(_0x3a5da);case Comment$2:return renderComment(_0x3a5da);case CDATA$1:return renderCdata(_0x3a5da);case Script:case Style:case Tag$1:return renderTag(_0x3a5da,_0x210387);case Text$2:return renderText(_0x3a5da,_0x210387);}}const foreignModeIntegrationPoints=new Set(['mi','mo','mn','ms','mtext','annotation-xml','foreignObject','desc','title']),foreignElements=new Set(['svg','math']);function renderTag(_0x5e44e5,_0x22a707){var _0x371ea2;'foreign'===_0x22a707['xmlMode']&&(_0x5e44e5['name']=null!==(_0x371ea2=elementNames['get'](_0x5e44e5['name']))&&void 0x0!==_0x371ea2?_0x371ea2:_0x5e44e5['name'],_0x5e44e5['parent']&&foreignModeIntegrationPoints['has'](_0x5e44e5['parent']['name'])&&(_0x22a707={..._0x22a707,'xmlMode':!0x1})),!_0x22a707['xmlMode']&&foreignElements['has'](_0x5e44e5['name'])&&(_0x22a707={..._0x22a707,'xmlMode':'foreign'});let _0x510b0c='<'+_0x5e44e5['name'];const _0x8b7944=formatAttributes(_0x5e44e5['attribs'],_0x22a707);return _0x8b7944&&(_0x510b0c+='\x20'+_0x8b7944),0x0===_0x5e44e5['children']['length']&&(_0x22a707['xmlMode']?!0x1!==_0x22a707['selfClosingTags']:_0x22a707['selfClosingTags']&&singleTag['has'](_0x5e44e5['name']))?(_0x22a707['xmlMode']||(_0x510b0c+='\x20'),_0x510b0c+='/>'):(_0x510b0c+='>',_0x5e44e5['children']['length']>0x0&&(_0x510b0c+=render(_0x5e44e5['children'],_0x22a707)),!_0x22a707['xmlMode']&&singleTag['has'](_0x5e44e5['name'])||(_0x510b0c+='</'+_0x5e44e5['name']+'>')),_0x510b0c;}function renderDirective(_0x4eebdf){return'<'+_0x4eebdf['data']+'>';}function renderText(_0x41c4fe,_0x40ce2c){var _0x14c870;let _0x51b6b6=_0x41c4fe['data']||'';return!0x1===(null!==(_0x14c870=_0x40ce2c['encodeEntities'])&&void 0x0!==_0x14c870?_0x14c870:_0x40ce2c['decodeEntities'])||!_0x40ce2c['xmlMode']&&_0x41c4fe['parent']&&unencodedElements['has'](_0x41c4fe['parent']['name'])||(_0x51b6b6=_0x40ce2c['xmlMode']||'utf8'!==_0x40ce2c['encodeEntities']?encodeXML(_0x51b6b6):escapeText(_0x51b6b6)),_0x51b6b6;}function renderCdata(_0x16b6de){return'<![CDATA['+_0x16b6de['children'][0x0]['data']+']]>';}function renderComment(_0xf55f59){return'<!--'+_0xf55f59['data']+'-->';}function textContent(_0x31f96){return Array['isArray'](_0x31f96)?_0x31f96['map'](textContent)['join'](''):hasChildren(_0x31f96)&&!isComment(_0x31f96)?textContent(_0x31f96['children']):isText$1(_0x31f96)?_0x31f96['data']:'';}function getChildren$1(_0x284e2b){return hasChildren(_0x284e2b)?_0x284e2b['children']:[];}function getParent(_0x57bedb){return _0x57bedb['parent']||null;}function removeElement(_0x5e0bb6){if(_0x5e0bb6['prev']&&(_0x5e0bb6['prev']['next']=_0x5e0bb6['next']),_0x5e0bb6['next']&&(_0x5e0bb6['next']['prev']=_0x5e0bb6['prev']),_0x5e0bb6['parent']){const _0x387935=_0x5e0bb6['parent']['children'],_0x139a03=_0x387935['lastIndexOf'](_0x5e0bb6);_0x139a03>=0x0&&_0x387935['splice'](_0x139a03,0x1);}_0x5e0bb6['next']=null,_0x5e0bb6['prev']=null,_0x5e0bb6['parent']=null;}function replaceElement(_0x48fc20,_0x52726d){const _0x46a97b=_0x52726d['prev']=_0x48fc20['prev'];_0x46a97b&&(_0x46a97b['next']=_0x52726d);const _0x5c13b6=_0x52726d['next']=_0x48fc20['next'];_0x5c13b6&&(_0x5c13b6['prev']=_0x52726d);const _0x2eb6ba=_0x52726d['parent']=_0x48fc20['parent'];if(_0x2eb6ba){const _0x1f92bb=_0x2eb6ba['children'];_0x1f92bb[_0x1f92bb['lastIndexOf'](_0x48fc20)]=_0x52726d,_0x48fc20['parent']=null;}}function appendChild(_0x4c684b,_0x216392){if(removeElement(_0x216392),_0x216392['next']=null,_0x216392['parent']=_0x4c684b,_0x4c684b['children']['push'](_0x216392)>0x1){const _0x2c5a23=_0x4c684b['children'][_0x4c684b['children']['length']-0x2];_0x2c5a23['next']=_0x216392,_0x216392['prev']=_0x2c5a23;}else _0x216392['prev']=null;}function append(_0x34a19a,_0xa3e814){removeElement(_0xa3e814);const {parent:_0x2b1c15}=_0x34a19a,_0x228ad2=_0x34a19a['next'];if(_0xa3e814['next']=_0x228ad2,_0xa3e814['prev']=_0x34a19a,_0x34a19a['next']=_0xa3e814,_0xa3e814['parent']=_0x2b1c15,_0x228ad2){if(_0x228ad2['prev']=_0xa3e814,_0x2b1c15){const _0x4a802f=_0x2b1c15['children'];_0x4a802f['splice'](_0x4a802f['lastIndexOf'](_0x228ad2),0x0,_0xa3e814);}}else _0x2b1c15&&_0x2b1c15['children']['push'](_0xa3e814);}function prependChild(_0x4653db,_0x4ee190){if(removeElement(_0x4ee190),_0x4ee190['parent']=_0x4653db,_0x4ee190['prev']=null,0x1!==_0x4653db['children']['unshift'](_0x4ee190)){const _0x156555=_0x4653db['children'][0x1];_0x156555['prev']=_0x4ee190,_0x4ee190['next']=_0x156555;}else _0x4ee190['next']=null;}function prepend(_0x21fffe,_0x3ce517){removeElement(_0x3ce517);const {parent:_0x22c10b}=_0x21fffe;if(_0x22c10b){const _0x35e1b4=_0x22c10b['children'];_0x35e1b4['splice'](_0x35e1b4['indexOf'](_0x21fffe),0x0,_0x3ce517);}_0x21fffe['prev']&&(_0x21fffe['prev']['next']=_0x3ce517),_0x3ce517['parent']=_0x22c10b,_0x3ce517['prev']=_0x21fffe['prev'],_0x3ce517['next']=_0x21fffe,_0x21fffe['prev']=_0x3ce517;}function find$1(_0xce3863,_0x3276f8,_0x153a04,_0x20cf2a){const _0x26b805=[],_0xc6fd92=[Array['isArray'](_0x3276f8)?_0x3276f8:[_0x3276f8]],_0x4efc0b=[0x0];for(;;){if(_0x4efc0b[0x0]>=_0xc6fd92[0x0]['length']){if(0x1===_0x4efc0b['length'])return _0x26b805;_0xc6fd92['shift'](),_0x4efc0b['shift']();continue;}const _0x565f7f=_0xc6fd92[0x0][_0x4efc0b[0x0]++];if(_0xce3863(_0x565f7f)&&(_0x26b805['push'](_0x565f7f),--_0x20cf2a<=0x0))return _0x26b805;hasChildren(_0x565f7f)&&_0x565f7f['children']['length']>0x0&&(_0x4efc0b['unshift'](0x0),_0xc6fd92['unshift'](_0x565f7f['children']));}}function findOne(_0x28b10c,_0x28de5f,_0x3361c9=!0x0){const _0x3864e5=Array['isArray'](_0x28de5f)?_0x28de5f:[_0x28de5f];for(let _0xf35b75=0x0;_0xf35b75<_0x3864e5['length'];_0xf35b75++){const _0xbc6288=_0x3864e5[_0xf35b75];if(isTag(_0xbc6288)&&_0x28b10c(_0xbc6288))return _0xbc6288;if(_0x3361c9&&hasChildren(_0xbc6288)&&_0xbc6288['children']['length']>0x0){const _0xb93b6c=findOne(_0x28b10c,_0xbc6288['children'],!0x0);if(_0xb93b6c)return _0xb93b6c;}}return null;}function findAll(_0x159832,_0x488327){const _0x44b03f=[],_0x13f2ba=[Array['isArray'](_0x488327)?_0x488327:[_0x488327]],_0x1bfab2=[0x0];for(;;){if(_0x1bfab2[0x0]>=_0x13f2ba[0x0]['length']){if(0x1===_0x13f2ba['length'])return _0x44b03f;_0x13f2ba['shift'](),_0x1bfab2['shift']();continue;}const _0x22a539=_0x13f2ba[0x0][_0x1bfab2[0x0]++];isTag(_0x22a539)&&_0x159832(_0x22a539)&&_0x44b03f['push'](_0x22a539),hasChildren(_0x22a539)&&_0x22a539['children']['length']>0x0&&(_0x1bfab2['unshift'](0x0),_0x13f2ba['unshift'](_0x22a539['children']));}}function parseDocument(_0x1b0a84,_0x3b6657){const _0x299f4c=new DomHandler(void 0x0,_0x3b6657);return new Parser$1(_0x299f4c,_0x3b6657)['end'](_0x1b0a84),_0x299f4c['root'];}function parse$2(_0x20e1a7){return parseDocument(_0x20e1a7);}function serialize(_0x27c7ff){return render(_0x27c7ff);}function findByAttribute(_0x5569d9,_0x10112b,_0x3f9090){const _0xc3c708=null!==_0x10112b?_0x123eee=>_0x123eee['attribs'][_0x5569d9]===_0x10112b:_0x1d064a=>Boolean(_0x1d064a['attribs'][_0x5569d9]);return findOne(_0x2368df=>isTag(_0x2368df)&&_0xc3c708(_0x2368df),_0x3f9090);}function findAllByAttribute(_0x205901,_0x24cbd1,_0x584174){const _0x471166=null!==_0x24cbd1?_0x2cc30d=>_0x2cc30d['attribs'][_0x205901]===_0x24cbd1:_0x45acc5=>Boolean(_0x45acc5['attribs'][_0x205901]);return findAll(_0x9f8410=>isTag(_0x9f8410)&&_0x471166(_0x9f8410),_0x584174);}function findAllComments(_0x498a27){return find$1(_0x59bf55=>isComment(_0x59bf55),_0x498a27,!0x0,0x1/0x0);}function getAttribute(_0x566264,_0x24631c){return _0x566264&&isTag(_0x566264)?_0x566264['attribs'][_0x24631c]:null;}function setAttribute(_0x33e2f4,_0x56fef7,_0x200afb){isTag(_0x33e2f4)&&(null===_0x200afb?delete _0x33e2f4['attribs'][_0x56fef7]:_0x33e2f4['attribs'][_0x56fef7]=_0x200afb);}function insertElement(_0x5600f1,_0x2119d7,_0x295f34){const _0x3fc4b7=_0x2119d7['cloneNode'](!0x0);'beforebegin'===_0x295f34?prepend(_0x5600f1,_0x3fc4b7):'afterbegin'===_0x295f34?prependChild(_0x5600f1,_0x3fc4b7):'beforeend'===_0x295f34?appendChild(_0x5600f1,_0x3fc4b7):'afterend'===_0x295f34&&append(_0x5600f1,_0x3fc4b7);}function moveElement(_0x6c874e,_0x4113a9){removeElement(_0x6c874e),replaceElement(_0x4113a9,_0x6c874e);}function clone$2(_0x2c6758){return _0x2c6758['cloneNode'](!0x0);}function getParents(_0x211bb3){const _0xf88bf0=[];let _0x5582ac=_0x211bb3;for(;_0x5582ac;)_0x5582ac=getParent(_0x5582ac),_0x5582ac&&_0xf88bf0['push'](_0x5582ac);return _0xf88bf0;}function normalizeHTML(_0x36eced){return _0x36eced['replace'](/^\s+/gm,'')['replace'](/\s+$/gm,'')['replace'](/\n*/g,'')['replace'](/\s+/g,'\x20')['replace'](/>\s*</g,'><');}function areNodesSame(_0x1d1ccd,_0x4a7380){return normalizeHTML(serialize(_0x1d1ccd))===normalizeHTML(serialize(_0x4a7380));}function getNodeNestingLevel(_0x291bf4){let _0x377857=0x0;for(;_0x291bf4['parentNode'];)_0x291bf4=_0x291bf4['parentNode'],_0x377857++;return _0x377857;}function removeElementsAfter(_0x5748a4){const _0x9e4ba2=[];let _0x1f3f1f=_0x5748a4['nextSibling'];for(;_0x1f3f1f;)_0x9e4ba2['push'](_0x1f3f1f),_0x1f3f1f=_0x1f3f1f['nextSibling'];_0x9e4ba2['forEach'](_0x5c77a0=>{removeElement(_0x5c77a0);});}class AIResponseParser extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_m2html'];constructor(){super(),this['_m2html']=new MarkdownGfmMdToHtml();}['convertMarkdownToHTML'](_0x75e3d3){const _0x5488aa=this['_m2html']['parse'](_0x75e3d3);return this['parseAndNormalizeHTML'](_0x5488aa);}['parseAndNormalizeHTML'](_0x26e89f){return this['_parseHTML'](_0x26e89f);}['_parseHTML'](_0x15f603){const _0x3f6baf=parse$2('<dummy>'+_0x15f603['replace'](/^\t+/gm,'\x20')['replace'](/\n*/g,'')['replace'](/\s+/g,'\x20')['replace'](/<[^>]*?$/g,'')+'</dummy>');return _0x3f6baf['children']=_0x3f6baf['children'][0x0]['children'],_0x3f6baf;}}class AIResponseApplier extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_generateUid'];['_touchedNodesState']={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};['_existingDataIds']=new Set();constructor(_0x50e88c){super(),this['_generateUid']=_0x50e88c||uid;}['merge'](_0x3c302a,_0x5c5cb4,_0x351881){const _0x55ca10=clone$2(_0x3c302a);if(0x0===_0x5c5cb4['childNodes']['length']){const _0x18bdb8=[];return findAllByAttribute('data-id','new-element',_0x55ca10)['forEach'](_0x142704=>{const _0x22232b=this['_generateUid']();setAttribute(_0x142704,'data-id',_0x22232b),_0x18bdb8['push'](_0x22232b);}),this['_removeSpecialComments'](_0x55ca10),{'parsedContent':_0x55ca10,'newNodeIds':_0x18bdb8,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x351881&&_0x351881['markUnstableElements']&&this['_markLastTagElementUnstable'](_0x55ca10),this['_touchedNodesState']['newIds']=[],this['_touchedNodesState']['modifiedIds']=[],this['_touchedNodesState']['removedIds']=[],this['_touchedNodesState']['invalidIds']=[],this['_touchedNodesState']['lastTouchedId']=null,this['_existingDataIds']=new Set(findAllByAttribute('data-id',null,_0x5c5cb4)['map'](_0x3aef16=>getAttribute(_0x3aef16,'data-id'))['filter'](_0x440ca9=>!!_0x440ca9));let _0x7de380=-0x1,_0x672530=!0x1;const _0x358592=_0x55ca10['childNodes'],_0x51a5c8=Array['from'](_0x358592)['filter'](_0x15aa2e=>!(0x3===_0x15aa2e['nodeType']&&''===serialize(_0x15aa2e)['trim']())),_0x586e4b=_0x51a5c8['length'];for(let _0x4e018e=0x0;_0x4e018e<_0x586e4b;_0x4e018e++){const _0x429fa1=_0x51a5c8[_0x4e018e],_0x464a24=_0x51a5c8[_0x4e018e+0x1];if(this['_isNewNode'](_0x429fa1)){if(-0x1===_0x7de380&&(_0x7de380=_0x4e018e),this['_markWrappedElements'](_0x429fa1),!this['_isNewNode'](_0x464a24)){const [_0x59ad26,_0x3b3e98]=this['_findReferenceNode'](_0x429fa1,_0x672530,_0x5c5cb4);if(_0x59ad26){const _0x4ac753=Array['from'](_0x51a5c8)['slice'](_0x7de380,_0x4e018e+0x1);this['_insertNodes'](_0x59ad26,_0x4ac753,_0x3b3e98),_0x7de380=-0x1;}}}else{if(this['_isExistingContentComment'](_0x429fa1))_0x672530=!0x0;else{if(this['_isExistingNode'](_0x429fa1)){const _0x35e8a8=getAttribute(_0x429fa1,'data-id');if(_0x35e8a8&&this['_existingDataIds']['has'](_0x35e8a8)){const _0x2e5517=findByAttribute('data-id',_0x35e8a8,_0x5c5cb4);this['_replaceNode'](_0x2e5517,_0x429fa1);}if(this['_touchedNodesState']['removedIds']['includes'](_0x35e8a8)){const _0x5e984c=this['_touchedNodesState']['removedIds']['indexOf'](_0x35e8a8);this['_touchedNodesState']['removedIds']['splice'](_0x5e984c,0x1);}}else{if(this['_isDelNode'](_0x429fa1)){const _0x132dd3=getAttribute(_0x429fa1,'data-id');this['_touchedNodesState']['modifiedIds']['includes'](_0x132dd3)||this['_storeDeletedElementIds'](_0x429fa1);}}}}}for(const _0x2fac7b of this['_touchedNodesState']['removedIds']){const _0x13ec44=findByAttribute('data-id',_0x2fac7b,_0x5c5cb4);if(_0x13ec44){if(_0x351881&&_0x351881['replaceRemovedWith']){this['_touchedNodesState']['lastTouchedId']=_0x2fac7b;const _0x38654a=_0x351881['replaceRemovedWith']['cloneNode'](!0x0);setAttribute(_0x38654a,'data-id',_0x2fac7b),setAttribute(_0x38654a,'data-removed','true'),replaceElement(_0x13ec44,_0x38654a);}else removeElement(_0x13ec44);}}if(findAllByAttribute('data-wrapped-id',null,_0x5c5cb4)['forEach'](_0x49fdd1=>{const _0xb3ef76=findByAttribute('data-id',getAttribute(_0x49fdd1,'data-wrapped-id'),_0x5c5cb4);_0xb3ef76&&moveElement(_0xb3ef76,_0x49fdd1);}),findAllByAttribute('data-id','new-element',_0x5c5cb4)['forEach'](_0x7b0674=>{const _0x115c46=this['_getUid'](_0x7b0674);setAttribute(_0x7b0674,'data-id',_0x115c46),this['_touchedNodesState']['newIds']['push'](_0x115c46);}),this['_removeSpecialComments'](_0x5c5cb4),_0x351881&&_0x351881['markUnstableElements']&&this['_markUnstableElements'](_0x5c5cb4,_0x351881['markUnstableElementsDepth']||0x0),_0x351881&&_0x351881['cutAfterLastChange']&&this['_touchedNodesState']['lastTouchedId']){let _0x59594e=findByAttribute('data-id',this['_touchedNodesState']['lastTouchedId'],_0x5c5cb4);for(;_0x59594e;)removeElementsAfter(_0x59594e),_0x59594e=_0x59594e['parentNode'];}return{'parsedContent':_0x5c5cb4,'newNodeIds':this['_touchedNodesState']['newIds'],'modifiedNodeIds':this['_touchedNodesState']['modifiedIds'],'removedNodeIds':this['_touchedNodesState']['removedIds']};}['_insertNodes'](_0x1c28e3,_0x10bc44,_0x2defa3){for(const _0x22b1d6 of _0x10bc44){const _0x5640e0=this['_getUid'](_0x22b1d6);setAttribute(_0x22b1d6,'data-id',_0x5640e0),this['_touchedNodesState']['newIds']['push'](_0x5640e0),this['_touchedNodesState']['lastTouchedId']=_0x5640e0;}const _0x28b18f='afterbegin'===_0x2defa3||'afterend'===_0x2defa3?_0x10bc44['reverse']():_0x10bc44;for(const _0x4ca5bc of _0x28b18f)insertElement(_0x1c28e3,_0x4ca5bc,_0x2defa3);}['_replaceNode'](_0x127e10,_0x1f6600){if(!_0x127e10)return;if(areNodesSame(_0x127e10,_0x1f6600))return;const _0x395578=this['_getUid'](_0x127e10);setAttribute(_0x1f6600,'data-id',_0x395578),this['_touchedNodesState']['modifiedIds']['push'](_0x395578),this['_touchedNodesState']['lastTouchedId']=_0x395578,replaceElement(_0x127e10,_0x1f6600['cloneNode'](!0x0));}['_findReferenceNode'](_0x5a4b05,_0x28bc00,_0x353a79){const _0x3eeb22=this['_findPrevElementWithDataId'](_0x5a4b05,!0x1);if(_0x3eeb22){const _0x247400=this['_getNodeDataId'](_0x3eeb22),_0x46a33e=findByAttribute('data-id',_0x247400,_0x353a79);if(_0x46a33e)return[_0x46a33e,'afterend'];this['_touchedNodesState']['invalidIds']['push'](_0x247400);}const _0x1cd0cf=this['_findNextElementWithDataId'](_0x5a4b05,!0x1);if(_0x1cd0cf){const _0x19bb7e=this['_getNodeDataId'](_0x1cd0cf),_0x363f28=findByAttribute('data-id',_0x19bb7e,_0x353a79);if(_0x363f28)return[_0x363f28,'beforebegin'];this['_touchedNodesState']['invalidIds']['push'](_0x19bb7e);}return _0x28bc00?_0x5a4b05['nextSibling']?this['_findFallbackReferenceNode'](_0x5a4b05,_0x353a79):[_0x353a79['childNodes'][_0x353a79['childNodes']['length']-0x1],'afterend']:[_0x353a79['childNodes'][0x0],'beforebegin'];}['_findFallbackReferenceNode'](_0x26b491,_0x2bd6a9){const _0x56df3b=[],_0x470612=this['_findPrevElementWithDataId'](_0x26b491,!0x0);if(_0x470612){const _0x664905=findByAttribute('data-id',this['_getNodeDataId'](_0x470612),_0x2bd6a9);_0x664905&&_0x56df3b['push']([_0x664905,'afterend']);}const _0x5080e9=this['_findNextElementWithDataId'](_0x26b491,!0x0);if(_0x5080e9){const _0x4e4c81=findByAttribute('data-id',this['_getNodeDataId'](_0x5080e9),_0x2bd6a9);_0x4e4c81&&_0x56df3b['push']([_0x4e4c81,'beforebegin']);}if(_0x56df3b['length']>0x1)return getNodeNestingLevel(_0x56df3b[0x0][0x0])<=getNodeNestingLevel(_0x56df3b[0x1][0x0])?_0x56df3b[0x0]:_0x56df3b[0x1];return 0x1===_0x56df3b['length']?_0x56df3b[0x0]:[_0x2bd6a9['lastChild'],'afterend'];}['_findNextElementWithDataId'](_0x1d2073,_0x504194){let _0x375716=_0x1d2073['nextSibling'],_0x3edd50=null,_0x2a911c=!0x1;for(;_0x375716;){if(isComment(_0x375716)){if(this['_isDelNode'](_0x375716)&&(_0x3edd50=_0x375716),this['_isExistingContentComment'](_0x375716)&&_0x504194&&!_0x2a911c){_0x2a911c=!0x0,_0x375716=_0x375716['nextSibling'];continue;}break;}const _0x5d7b7b=getAttribute(_0x375716,'data-id');if(_0x5d7b7b&&'new-element'!==_0x5d7b7b&&this['_existingDataIds']['has'](_0x5d7b7b)){_0x3edd50=_0x375716;break;}_0x375716=_0x375716['nextSibling'];}return _0x3edd50;}['_findPrevElementWithDataId'](_0x457036,_0x4de402){let _0x1a6fd3=_0x457036['previousSibling'],_0x468b7e=null,_0xf82613=!0x1;for(;_0x1a6fd3;){if(isComment(_0x1a6fd3)){if(this['_isDelNode'](_0x1a6fd3)&&(_0x468b7e=_0x1a6fd3),this['_isExistingContentComment'](_0x1a6fd3)&&_0x4de402&&!_0xf82613){_0xf82613=!0x0,_0x1a6fd3=_0x1a6fd3['previousSibling'];continue;}break;}const _0x45f5fc=getAttribute(_0x1a6fd3,'data-id');if(_0x45f5fc&&'new-element'!==_0x45f5fc&&this['_existingDataIds']['has'](_0x45f5fc)){_0x468b7e=_0x1a6fd3;break;}_0x1a6fd3=_0x1a6fd3['previousSibling'];}return _0x468b7e;}['_markWrappedElements'](_0xf1ac30){isTag(_0xf1ac30)&&findAllByAttribute('data-id',null,_0xf1ac30)['forEach'](_0xd001d4=>{this['_isExistingNode'](_0xd001d4)&&!this['_hasWrappedParent'](_0xd001d4)&&(setAttribute(_0xd001d4,'data-wrapped-id',getAttribute(_0xd001d4,'data-id')),setAttribute(_0xd001d4,'data-id',null));});}['_getNodeDataId'](_0x248622){if(!_0x248622)return null;if(isTag(_0x248622))return getAttribute(_0x248622,'data-id');if(isComment(_0x248622)){const _0x463acd=serialize(_0x248622)['match'](/removed[\s*-]data-id="([^"]+)"/);if(_0x463acd&&_0x463acd[0x1])return _0x463acd[0x1];}return null;}['_storeDeletedElementIds'](_0x402fc4){if(isComment(_0x402fc4)){const _0x5e8737=serialize(_0x402fc4)['match'](/removed[\s*-]data-id="([^"]+)"/);_0x5e8737&&_0x5e8737[0x1]&&this['_touchedNodesState']['removedIds']['push'](_0x5e8737[0x1]);}}['_getUid'](_0x433395){return this['_isExistingNode'](_0x433395)?getAttribute(_0x433395,'data-id'):this['_generateUid']();}['_removeSpecialComments'](_0xd52716){findAllComments(_0xd52716)['filter'](_0x39a262=>this['_isDelNode'](_0x39a262)||this['_isExistingContentComment'](_0x39a262))['forEach'](_0x29de5f=>{removeElement(_0x29de5f);});}['_markLastTagElementUnstable'](_0x4a946c){const _0x2144d1=_0x4a946c['childNodes'],_0x3937b0=_0x2144d1[_0x2144d1['length']-0x1];_0x3937b0&&isTag(_0x3937b0)&&setAttribute(_0x3937b0,'data-unstable','true');}['_markUnstableElements'](_0x5f00e4,_0x22f09e){const _0x3491f4=findByAttribute('data-unstable','true',_0x5f00e4);if(!_0x3491f4)return;const _0x32ec09=getParents(_0x3491f4)['slice'](0x0,-0x1),_0x81b0a9=_0x32ec09['length'];let _0xa98f26=_0x3491f4;if(_0x81b0a9>_0x22f09e){let _0x411b75=_0x81b0a9,_0x5cb4eb=null;for(;_0x411b75>_0x22f09e&&_0x411b75>=0x0;)_0x411b75--,_0x5cb4eb=_0x32ec09[_0x411b75];_0x5cb4eb&&(_0xa98f26=_0x5cb4eb,setAttribute(_0x3491f4,'data-unstable',null),setAttribute(_0x5cb4eb,'data-unstable','true'));}else{if(_0x81b0a9<_0x22f09e){let _0x26a8b4=_0x81b0a9,_0xc6ff29=_0x3491f4;for(;_0x26a8b4<_0x22f09e;){const _0x473073=_0xc6ff29['childNodes']['filter'](_0x57a0b3=>isTag(_0x57a0b3));if(0x0===_0x473073['length'])break;_0x26a8b4++,_0xc6ff29=_0x473073[_0x473073['length']-0x1];}_0xc6ff29&&(_0xa98f26=_0xc6ff29,setAttribute(_0x3491f4,'data-unstable',null),setAttribute(_0xc6ff29,'data-unstable','true'));}}let _0x49d909=_0xa98f26;for(;_0x49d909;){for(;_0x49d909['nextSibling'];)_0x49d909=_0x49d909['nextSibling'],isTag(_0x49d909)&&setAttribute(_0x49d909,'data-unstable','true');_0x49d909=_0x49d909['parentNode'];}}['_isNewNode'](_0x187c39){return Boolean('new-element'===getAttribute(_0x187c39,'data-id'));}['_isExistingNode'](_0x53964e){return Boolean((getAttribute(_0x53964e,'data-id')||'')['length']>0x0&&'new-element'!==getAttribute(_0x53964e,'data-id'));}['_isDelNode'](_0x31e055){return!!_0x31e055&&Boolean(isComment(_0x31e055)&&serialize(_0x31e055)['match'](/removed[\s*-]data-id="[^"]+"/));}['_hasWrappedParent'](_0x32b359){let _0x1c5e8c=_0x32b359['parentNode'];for(;_0x1c5e8c;){if(getAttribute(_0x1c5e8c,'data-wrapped-id'))return!0x0;_0x1c5e8c=_0x1c5e8c['parentNode'];}return!0x1;}['_isExistingContentComment'](_0xee6cee){return Boolean(isComment(_0xee6cee)&&serialize(_0xee6cee)['match'](/\s*existing[\s*-](content|document)\s*/g));}}class Permissions extends ContextPlugin{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x376e7d,_0xb94e91){let _0x22d686;if(_0xb94e91||(_0xb94e91=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0xb94e91?_0x22d686=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x22d686=this['context']['editors']['find'](_0x523306=>_0x523306['config']['get']('collaboration.channelId')==_0xb94e91)),!_0x22d686)throw new CKEditorError('permissions-set-permissions-invalid-channel-id',null);const _0x36447e=_0x22d686['plugins'],_0x2b9b59=_0x36447e['has']('CommentsRepository')?_0x36447e['get']('CommentsRepository'):void 0x0,_0x5509e3=_0x36447e['has']('CommentsOnly')&&_0x36447e['get']('CommentsOnly'),_0x33d796=_0x376e7d['includes']('document:write'),_0x269b8d=_0x376e7d['includes']('comment:modify_all'),_0x385831=_0x376e7d['includes']('comment:admin'),_0xdf6163=_0x376e7d['includes']('comment:write'),_0xb1e40e=_0xdf6163||_0x385831,_0x2bf3cf=_0xb1e40e||_0x269b8d,_0x407cf8=_0x33d796||_0xb1e40e;(_0x5509e3&&(_0x5509e3['isEnabled']=!_0x33d796&&_0x2bf3cf),_0x22d686 instanceof Editor)&&(!(_0x33d796||_0x2bf3cf&&_0x2b9b59)?_0x22d686['enableReadOnlyMode']('no-permissions'):_0x22d686['disableReadOnlyMode']('no-permissions'));if(_0x2b9b59){_0x2b9b59['setPermissions']({'admin':_0x385831,'modifyAll':_0x269b8d,'write':_0xdf6163,'resolve':_0x407cf8},_0xb94e91);const _0x263d86=_0x22d686 instanceof Editor&&_0x22d686['commands']['get']('addCommentThread');_0x263d86&&(_0xb1e40e?_0x263d86['clearForceDisabled']('noPermissions'):_0x263d86['forceDisabled']('noPermissions'));}}}function getTranslation$h(_0x2499dc,_0x1f3a8f){const t=_0x2499dc['t'];switch(_0x1f3a8f){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(_0x1a9c7f){super(_0x1a9c7f),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new Collection(),this['_locale']=_0x1a9c7f['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:_0x492731,name:_0x2df120,..._0x5f0e16}){if(!_0x492731||'string'!=typeof _0x492731)throw new CKEditorError('users-add-invalid-id');if(this['users']['has'](_0x492731))throw new CKEditorError('users-add-duplicated-id',null,{'id':_0x492731});const _0x19944b=this['context']['config']['get']('users.getInitialsCallback'),_0x2e0db5={..._0x5f0e16,'id':_0x492731,'name':normalizeName(this['_locale'],_0x2df120),'color':this['_getNextColor']()};_0x2e0db5['name']=normalizeName(this['_locale'],_0x2e0db5['name']);const _0x5392c1=new User$1(_0x2e0db5,_0x19944b);return this['users']['add'](_0x5392c1),_0x5392c1;}['getUser'](_0xdbe6f0){return this['users']['get'](_0xdbe6f0);}['useAnonymousUser'](){const _0x574ab0=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x574ab0);}['defineMe'](_0x4408a2){if(this['_myId'])throw new CKEditorError('users-me-already-defined',null);const _0xefd367=this['getUser'](_0x4408a2);if(!_0xefd367)throw new CKEditorError('users-me-missing-user',null);this['_myId']=_0x4408a2,_0xefd367['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x33389b=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x33389b&&(this['_lastColor']=0x0),new CollaborationUserColor(this['_lastColor']++);}['_addAnonymousUser'](){const _0x49f47b=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x49f47b,'name':getTranslation$h(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}let User$1=class{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x439191,_0xb0b1b6){this['id']=_0x439191['id'],this['color']=_0x439191['color'],this['name']=_0x439191['name'],this['initials']=_0xb0b1b6?_0xb0b1b6(this['name']):this['_computeInitials'](),this['avatar']=_0x439191['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x5a8864=this['name']['split']('\x20')['filter'](_0x2fb3d9=>/^[\p{Letter}]/u['test'](_0x2fb3d9));return 0x1===_0x5a8864['length']?this['_getInitial'](_0x5a8864[0x0]):0x0===_0x5a8864['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x5a8864[0x0])+this['_getInitial'](_0x5a8864[_0x5a8864['length']-0x1]);}['_getInitial'](_0xfbad8b){return String['fromCodePoint'](_0xfbad8b['codePointAt'](0x0))['toUpperCase']();}};function normalizeName(_0x21adb0,_0x12a8fa=''){return''==(_0x12a8fa=_0x12a8fa['trim']())?getTranslation$h(_0x21adb0,'Anonymous'):_0x12a8fa;}class CollaborationUserColor{['_id'];constructor(_0x3ae9e9){this['_id']=_0x3ae9e9;}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(_0x544ce3,_0x5bdd54,_0x2479a8){super(_0x544ce3),this['name']=_0x5bdd54['name'],this['notificationView']=null;const _0x2ef9a6=['ck','ck-user'],_0x2502b3=['ck','ck-user__img'];if(_0x5bdd54['isAnonymous']&&_0x2502b3['push']('ck-user__anonymous'),!_0x5bdd54['isAnonymous']&&_0x5bdd54['isMe']&&_0x2ef9a6['push']('ck-user_me'),_0x5bdd54['avatar']&&_0x2502b3['push']('ck-user__avatar'),_0x2479a8){const _0x43cf4a=new IconView();_0x43cf4a['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x43cf4a['content']=IconNotification,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x2479a8},'children':[_0x43cf4a]};}const _0xa445d7=[{'tag':'div','attributes':{'class':_0x2502b3,'style':{'background-image':_0x5bdd54['avatar']?'url(\x27'+_0x5bdd54['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x5bdd54['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x5bdd54['name']},'children':[{'text':_0x5bdd54['initials']}]}];this['notificationView']&&_0xa445d7['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x2ef9a6,'data-user-id':_0x5bdd54['id']},'children':_0xa445d7});}}class AriaDescriptionView extends View{['id'];constructor(_0x2fd608,_0x5354fd){super(_0x2fd608),this['id']='ck-aria-description-'+uid(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x5354fd}]});}}class LateFocusButtonView extends ButtonView{['render'](){super['render'](),delayFocusUntilMouseup(this);}}class LateFocusDropdownButtonView extends DropdownButtonView{['render'](){super['render'](),delayFocusUntilMouseup(this);}}function delayFocusUntilMouseup(_0x3a3907){_0x3a3907['listenTo'](_0x3a3907['element'],'mousedown',(_0x19244f,_0x5e1ece)=>{_0x5e1ece['stopPropagation'](),_0x5e1ece['preventDefault']();}),_0x3a3907['listenTo'](_0x3a3907['element'],'mouseup',()=>{_0x3a3907['element']['focus']();});}function splitSuggestionMarkerName(_0x465db8){const _0x44341c=_0x465db8['split'](':');return{'group':_0x44341c[0x0],'type':_0x44341c[0x1],'subType':_0x44341c['length']>=0x5?_0x44341c[0x2]:null,'id':_0x44341c['length']<0x5?_0x44341c[0x2]:_0x44341c[0x3],'authorId':_0x44341c['length']<0x5?_0x44341c[0x3]:_0x44341c[0x4],'markerCount':0x6==_0x44341c['length']?_0x44341c[0x5]:null};}function fixElementSuggestionRange(_0x5cb677,_0xbfb0a5){const _0x3977fe=_0x5cb677['end']['nodeBefore'];if(_0x3977fe&&_0x3977fe['is']('element')&&_0xbfb0a5['schema']['isBlock'](_0x3977fe)&&!_0xbfb0a5['schema']['isObject'](_0x3977fe)){const _0x2a667f=_0xbfb0a5['createPositionAt'](_0x3977fe,'end');return _0xbfb0a5['createRange'](_0x5cb677['start'],_0x2a667f);}return _0x5cb677;}class SuggestionsConversionAlignment extends Plugin{['afterInit'](){const _0x490a24=this['editor'];if(!_0x490a24['plugins']['has']('AlignmentEditing'))return;_0x490a24['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const basicStylesPlugins$1=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class SuggestionsConversionBasicStyles extends Plugin{['afterInit'](){const _0x519355=this['editor'],_0x1e2c15=_0x519355['plugins']['get']('SuggestionsConversion');for(const _0x285aa8 of basicStylesPlugins$1){if(!_0x519355['plugins']['has'](_0x285aa8))continue;const _0x2632e7=_0x285aa8['slice'](0x0,-0x7)['toLowerCase']();_0x1e2c15['registerInlineAttribute'](_0x2632e7);}}}class SuggestionsConversionBookmark extends Plugin{['afterInit'](){const _0x30ab14=this['editor'],_0x4fc20b=_0x30ab14['plugins']['get']('SuggestionsConversion');_0x30ab14['plugins']['has']('BookmarkEditing')&&_0x4fc20b['registerBlockAttribute']('bookmarkId');}}const fontPlugins$1=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class SuggestionsConversionFont extends Plugin{['afterInit'](){const _0x466002=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x29c8ce,commandName:_0x3dd411}of fontPlugins$1)this['editor']['plugins']['has'](_0x29c8ce)&&_0x466002['registerInlineAttribute'](_0x3dd411);}}class SuggestionsConversionFootnotes extends Plugin{['afterInit'](){const {editor:_0x58a0ed}=this;if(!_0x58a0ed['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x33eb88=_0x58a0ed['plugins']['get']('SuggestionsConversion');_0x33eb88['registerBlockAttribute']('footnotesListStyle'),_0x33eb88['registerBlockAttribute']('footnotesListStart');}}class SuggestionsConversionHighlight extends Plugin{['afterInit'](){const _0x50d324=this['editor'];if(!_0x50d324['plugins']['has']('HighlightEditing'))return;_0x50d324['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class SuggestionsConversionHtmlEmbed extends Plugin{['afterInit'](){const _0x2846c7=this['editor'];if(!_0x2846c7['plugins']['has']('HtmlEmbed'))return;_0x2846c7['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class SuggestionsConversionImage extends Plugin{['afterInit'](){const _0x508593=this['editor'];if(!_0x508593['plugins']['has']('ImageEditing'))return;const _0x4a4004=_0x508593['plugins']['get']('SuggestionsConversion');_0x4a4004['registerBlockAttribute']('src'),_0x508593['plugins']['has']('ImageResize')&&_0x4a4004['registerBlockAttribute']('resizedWidth'),_0x508593['plugins']['has']('ImageTextAlternativeEditing')&&_0x4a4004['registerBlockAttribute']('alt'),_0x508593['plugins']['has']('PictureEditing')&&_0x4a4004['registerBlockAttribute']('sources'),_0x508593['plugins']['has']('ImageSizeAttributes')&&(_0x4a4004['registerBlockAttribute']('width'),_0x4a4004['registerBlockAttribute']('height'));}}class SuggestionsConversionIndent extends Plugin{['afterInit'](){const _0x51105b=this['editor'],_0x3c5932=_0x51105b['plugins']['get']('SuggestionsConversion');_0x51105b['plugins']['has']('IndentBlock')&&(_0x3c5932['registerBlockAttribute']('blockIndent'),_0x51105b['plugins']['has']('ListEditing')&&(_0x3c5932['registerBlockAttribute']('blockIndentList'),_0x3c5932['registerBlockAttribute']('blockIndentListItem')));}}class SuggestionsConversionLineHeight extends Plugin{['afterInit'](){const _0x3308e9=this['editor'];if(!_0x3308e9['plugins']['has']('LineHeight'))return;_0x3308e9['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class SuggestionsConversionLink extends Plugin{['afterInit'](){const _0xd31615=this['editor'];if(!_0xd31615['plugins']['has']('LinkEditing'))return;const _0x5b1ea1=_0xd31615['plugins']['get']('SuggestionsConversion'),_0x39fc28=_0xd31615['commands']['get']('link');_0x5b1ea1['registerInlineAttribute']('linkHref');for(const _0x518714 of _0x39fc28['manualDecorators'])_0x5b1ea1['registerInlineAttribute'](_0x518714['id']);}}class SuggestionsConversionList extends Plugin{['afterInit'](){const _0x316020=this['editor'];if(!_0x316020['plugins']['has']('ListEditing'))return;const _0x518376=_0x316020['plugins']['get']('SuggestionsConversion'),_0x35a450=_0x316020['plugins']['has']('TodoListEditing');_0x518376['registerBlockAttribute']('listItemId'),_0x518376['registerBlockAttribute']('listType'),_0x518376['registerBlockAttribute']('listIndent'),_0x35a450&&_0x518376['registerBlockAttribute']('todoListChecked');}}class SuggestionsConversionListProperties extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5edbc9=this['editor']['config']['get']('list.properties'),_0x42e3cc=this['editor']['plugins']['get']('SuggestionsConversion');_0x5edbc9['styles']&&_0x42e3cc['registerBlockAttribute']('listStyle'),_0x5edbc9['reversed']&&_0x42e3cc['registerBlockAttribute']('listReversed'),_0x5edbc9['startIndex']&&_0x42e3cc['registerBlockAttribute']('listStart');}}class SuggestionsConversionMultiLevelList extends Plugin{['afterInit'](){const _0x1af931=this['editor'],_0x249e4f=_0x1af931['plugins']['get']('SuggestionsConversion');_0x1af931['plugins']['has']('MultiLevelList')&&_0x249e4f['registerBlockAttribute']('listMarkerStyle');}}class SuggestionsConversionStylesDropdown extends Plugin{['afterInit'](){const _0x569cab=this['editor'];if(!_0x569cab['plugins']['has']('Style')||!_0x569cab['plugins']['has']('DataSchema')||!_0x569cab['config']['get']('style.definitions'))return;const _0x5b5560=_0x569cab['plugins']['get']('SuggestionsConversion'),_0x5dd104=_0x569cab['config']['get']('style.definitions'),_0x4bdd23=_0x569cab['plugins']['get']('GeneralHtmlSupport'),_0x4673ec=_0x569cab['plugins']['get']('StyleUtils')['normalizeConfig'](_0x569cab['plugins']['get']('DataSchema'),_0x5dd104),_0x3a9c3d=new Set();for(const _0x5bebea of _0x4673ec['block']){const _0x35a10b=_0x4bdd23['getGhsAttributeNameForElement'](_0x5bebea['element']);_0x3a9c3d['add'](_0x35a10b);}const _0x29ab52=new Set();for(const _0x21188f of _0x4673ec['inline']){const _0x508e2a=_0x4bdd23['getGhsAttributeNameForElement'](_0x21188f['element']);_0x29ab52['add'](_0x508e2a);for(const _0x5c479c of _0x21188f['ghsAttributes'])_0x29ab52['add'](_0x5c479c);}for(const _0x5d3f73 of _0x3a9c3d)_0x5b5560['registerBlockAttribute'](_0x5d3f73);for(const _0x452047 of _0x29ab52)_0x5b5560['registerInlineAttribute'](_0x452047);}}class SuggestionsConversionTableHeadings extends Plugin{['afterInit'](){const _0x48be76=this['editor'];if(!_0x48be76['plugins']['has']('TableEditing'))return;const _0x45f5fb=_0x48be76['plugins']['get']('SuggestionsConversion');_0x45f5fb['registerBlockAttribute']('headingRows'),_0x45f5fb['registerBlockAttribute']('headingColumns');}}class SuggestionsConversionTableProperties extends Plugin{['afterInit'](){const {plugins:_0x5345a5}=this['editor'];if(!_0x5345a5['has']('TablePropertiesEditing'))return;const _0x4686a6=_0x5345a5['get']('SuggestionsConversion'),_0x4e0fcb=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x73521d of _0x4e0fcb)_0x4686a6['registerBlockAttribute'](_0x73521d);}}class SuggestionsConversionTableLayout extends Plugin{['afterInit'](){const _0x473092=this['editor'],_0x3fc83d=_0x473092['plugins']['get']('SuggestionsConversion');_0x473092['plugins']['has']('TableLayout')&&_0x3fc83d['registerBlockAttribute']('tableType');}}class SuggestionsConversionUploadcare extends Plugin{['afterInit'](){const _0x4627f6=this['editor'],_0x4a1cc1=this['editor']['plugins']['get']('SuggestionsConversion');_0x4627f6['plugins']['has']('Uploadcare')&&_0x4627f6['plugins']['has']('UploadcareImageEdit')&&_0x4a1cc1['registerBlockAttribute']('uploadcareImageId');}}class SuggestionsConversionShiftEnter extends Plugin{['afterInit'](){const _0x51d16a=this['editor'];if(!_0x51d16a['plugins']['has']('ShiftEnter'))return;const _0x54d717=_0x51d16a['plugins']['get']('SuggestionsConversion'),_0x4d6e46=(_0x56dee0,_0x469e7a,_0x5804e1,_0x32381a)=>{if(_0x32381a&&!_0x5804e1['options']['showSuggestionHighlights'])return;if(!_0x5804e1['consumable']['test'](_0x469e7a['markerRange'],_0x56dee0['name']))return;const _0x55d44b=_0x51d16a['model'];for(const _0x2e70c4 of _0x469e7a['markerRange']['getItems']()){if(!_0x2e70c4['is']('element','softBreak'))continue;const _0x405ae1='deletion'==_0x469e7a['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x278997,authorId:_0x4c042f}=splitSuggestionMarkerName(_0x469e7a['markerName']),_0x5c3120=_0x5804e1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x405ae1,'data-suggestion':_0x278997,'data-author-id':_0x4c042f}),_0x3826ef=_0x5804e1['mapper']['toViewPosition'](_0x55d44b['createPositionBefore'](_0x2e70c4));!_0x32381a&&_0x54d717['_activeMarkers']['includes'](_0x469e7a['markerName'])&&_0x5804e1['writer']['addClass']('ck-suggestion-marker--active',_0x5c3120),_0x5804e1['writer']['insert'](_0x3826ef,_0x5c3120),_0x5804e1['mapper']['bindElementToMarker'](_0x5c3120,_0x469e7a['markerName']);}};_0x51d16a['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0xb8c1d,_0x5e5f97,_0x2a66bd)=>{_0x4d6e46(_0xb8c1d,_0x5e5f97,_0x2a66bd,!0x1);},{'priority':'high'}),_0x51d16a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xa80b72,_0x40ff6f,_0x25d508)=>{_0x4d6e46(_0xa80b72,_0x40ff6f,_0x25d508,!0x0);},{'priority':'high'});}}class SuggestionsConversionMediaEmbed extends Plugin{['afterInit'](){const _0x5963db=this['editor'];_0x5963db['plugins']['has']('MediaEmbedEditing')&&(_0x5963db['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x42abab,{writer:_0x407f67,options:_0x10fc1e})=>{if(_0x10fc1e['showSuggestionHighlights'])return _0x407f67['createEmptyElement']('div');},'converterPriority':'high'}),_0x5963db['data']['downcastDispatcher']['on']('attribute:url:media',(_0x279a85,_0x7bfab3,_0x310244)=>{_0x310244['options']['showSuggestionHighlights']&&_0x279a85['stop']();},{'priority':'high'}));}}class SuggestionsConversionTable extends Plugin{['afterInit'](){const _0x32b38e=this['editor'];if(!_0x32b38e['plugins']['has']('Table'))return;_0x32b38e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x308053,_0x5ae23a,_0x38d0cc)=>{((_0x5e1b22,_0x32ed1c,_0x457473)=>{if(!_0x457473['options']['showSuggestionHighlights'])return;const _0x38b54c=_0x32ed1c['item'];if(!_0x38b54c||!_0x38b54c['is']('element','tableCell'))return;const _0x2dc5cd=_0x457473['mapper']['toViewElement'](_0x38b54c);if(_0x2dc5cd){const {id:_0x4862e2,authorId:_0x4ff162}=splitSuggestionMarkerName(_0x32ed1c['markerName']);setHighlightHandling(_0x2dc5cd,_0x457473['writer'],(_0x3fd87b,_0x1f035d,_0x1dddd8)=>{_0x1dddd8['addClass'](toArray$1(_0x1f035d['classes']),_0x3fd87b),_0x1dddd8['setAttribute']('data-suggestion-id',_0x4862e2,_0x3fd87b),_0x1dddd8['setAttribute']('data-author-id',_0x4ff162,_0x3fd87b);});}})(0x0,_0x5ae23a,_0x38d0cc);},{'priority':'highest'});}}class SuggestionsConversionHorizontalLine extends Plugin{['afterInit'](){const _0x3d063c=this['editor'];_0x3d063c['plugins']['has']('HorizontalLineEditing')&&_0x3d063c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3ec41e,{writer:_0x83529c,options:_0x261fe3})=>{if(!_0x261fe3['showSuggestionHighlights'])return null;const _0x4554a0=_0x83529c['createContainerElement']('div'),_0xf48a66=_0x83529c['createEmptyElement']('hr');return _0x83529c['addClass']('ck-horizontal-line',_0x4554a0),_0x83529c['insert'](_0x83529c['createPositionAt'](_0x4554a0,0x0),_0xf48a66),_0x4554a0;},'converterPriority':'high'});}}class SuggestionsConversionTableCellProperties extends Plugin{['afterInit'](){const {plugins:_0x2dbbd3,model:_0x1701fd}=this['editor'];if(!_0x2dbbd3['has']('TableCellPropertiesEditing'))return;const _0x4b0fc1=_0x2dbbd3['get']('SuggestionsConversion'),_0x3bc827=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x3461f3 of _0x3bc827)_0x4b0fc1['registerBlockAttribute'](_0x3461f3);_0x1701fd['schema']['checkAttribute']('tableCell','tableCellType')&&_0x4b0fc1['registerBlockAttribute']('tableCellType');}}class SuggestionsConversion extends Plugin{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[SuggestionsConversionAlignment,SuggestionsConversionBasicStyles,SuggestionsConversionBookmark,SuggestionsConversionFont,SuggestionsConversionFootnotes,SuggestionsConversionHighlight,SuggestionsConversionHorizontalLine,SuggestionsConversionHtmlEmbed,SuggestionsConversionImage,SuggestionsConversionIndent,SuggestionsConversionLineHeight,SuggestionsConversionLink,SuggestionsConversionList,SuggestionsConversionListProperties,SuggestionsConversionMediaEmbed,SuggestionsConversionMultiLevelList,SuggestionsConversionShiftEnter,SuggestionsConversionStylesDropdown,SuggestionsConversionTable,SuggestionsConversionTableHeadings,SuggestionsConversionTableLayout,SuggestionsConversionTableCellProperties,SuggestionsConversionTableProperties,SuggestionsConversionUploadcare];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x17ff83=this['editor'],_0x3bcd26=(_0xc2bf9c,_0x80d08a,_0x5b596b)=>{const {id:_0x29942d,authorId:_0x3a4d0b,type:_0x321429,subType:_0x473ed2}=splitSuggestionMarkerName(_0xc2bf9c['markerName']),_0x1c33b0=['ck-suggestion-marker',this['_getClassName'](_0x321429,_0x473ed2)];let _0x383aaf=0xbb8;return!_0x5b596b&&(this['_activeMarkers']['includes'](_0xc2bf9c['markerName'])&&(_0x1c33b0['push']('ck-suggestion-marker--active'),_0x383aaf=0xbc2)),('deletion'==_0x321429&&(_0x383aaf+=0x5),{'classes':_0x1c33b0,'attributes':{'data-suggestion':_0x29942d,'data-author-id':_0x3a4d0b},'priority':_0x383aaf});};_0x17ff83['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2ffccb,_0x10606a)=>_0x3bcd26(_0x2ffccb,0x0,!0x1)}),_0x17ff83['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4f3b12,_0x3116e6)=>_0x3bcd26(_0x4f3b12,0x0,!0x0)}),_0x17ff83['conversion']['for']('dataDowncast')['add'](_0x3a85f3=>{_0x3a85f3['on']('addMarker:suggestion',(_0x44e4fc,_0x14f62f,_0x4bf6ff)=>{if(!_0x4bf6ff['options']['showSuggestionHighlights'])return;const _0x2064f2=_0x14f62f['item'];if(!_0x2064f2)return;const _0x1aa758=_0x4bf6ff['mapper']['toViewElement'](_0x2064f2);_0x17ff83['model']['schema']['isObject'](_0x2064f2)&&_0x1aa758&&!_0x1aa758['getCustomProperty']('widget')&&_0x1aa758['is']('containerElement')&&toWidget(_0x1aa758,_0x4bf6ff['writer']);},{'priority':'high'});});const _0x2bbbfa=(_0x507d27,_0x3bb1af,_0x14975a,_0x5933a0,_0x53774c)=>{if(_0x5933a0&&!_0x14975a['options']['showSuggestionHighlights'])return;if(!_0x3bb1af['item'])return;const {id:_0x17d7a5,authorId:_0x5e2104,subType:_0x505ec0}=splitSuggestionMarkerName(_0x3bb1af['markerName']);if(_0x53774c){const _0x454ecf=_0x505ec0['split']('|')[0x0];if(!this['isBlockAttribute'](_0x454ecf))return;}if(_0x3bb1af['item']['is']('selection'))return void _0x14975a['consumable']['consume'](_0x3bb1af['item'],_0x507d27['name']);const _0x402055=_0x14975a['mapper']['toViewElement'](_0x3bb1af['item']);if(_0x3bb1af['item']['is']('element')&&_0x17ff83['model']['schema']['isBlock'](_0x3bb1af['item'])&&!_0x402055['getCustomProperty']('addHighlight')){_0x14975a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x402055),_0x14975a['writer']['setAttribute']('data-suggestion',_0x17d7a5,_0x402055),_0x14975a['writer']['setAttribute']('data-author-id',_0x5e2104,_0x402055),_0x14975a['mapper']['bindElementToMarker'](_0x402055,_0x3bb1af['markerName']),_0x5933a0||(this['_activeMarkers']['includes'](_0x3bb1af['markerName'])?_0x14975a['writer']['addClass']('ck-suggestion-marker--active',_0x402055):_0x14975a['writer']['removeClass']('ck-suggestion-marker--active',_0x402055));for(const _0x7df957 of _0x17ff83['model']['createRangeIn'](_0x3bb1af['item'])['getItems']())_0x14975a['consumable']['consume'](_0x7df957,_0x507d27['name']);_0x14975a['consumable']['consume'](_0x3bb1af['item'],_0x507d27['name']);}},_0x444762=(_0x1c5c70,_0x590325,_0x40603f,_0x1cb9cf)=>{const _0x108389=_0x40603f['mapper']['markerNameToElements'](_0x590325['markerName']);if(_0x108389){if(_0x1cb9cf){const {subType:_0x1500af}=splitSuggestionMarkerName(_0x590325['markerName']),_0x35efcf=_0x1500af['split']('|')[0x0];if(!this['isBlockAttribute'](_0x35efcf))return;}for(const _0x5e6102 of _0x108389)_0x5e6102['getCustomProperty']('addHighlight')||(_0x40603f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5e6102),_0x40603f['writer']['removeAttribute']('data-suggestion',_0x5e6102),_0x40603f['writer']['removeAttribute']('data-author-id',_0x5e6102),_0x40603f['mapper']['unbindElementFromMarkerName'](_0x5e6102,_0x590325['markerName']));}};_0x17ff83['conversion']['for']('editingDowncast')['add'](_0x2bdc31=>{_0x2bdc31['on']('addMarker:suggestion:formatBlock',(_0x24f8a1,_0x267576,_0x3a765d)=>{_0x2bbbfa(_0x24f8a1,_0x267576,_0x3a765d,!0x1,!0x1);},{'priority':'high'});}),_0x17ff83['conversion']['for']('editingDowncast')['add'](_0x1449d3=>{_0x1449d3['on']('addMarker:suggestion:attribute',(_0x203efc,_0xaad909,_0xb8831f)=>{_0x2bbbfa(_0x203efc,_0xaad909,_0xb8831f,!0x1,!0x0);},{'priority':'high'});}),_0x17ff83['conversion']['for']('editingDowncast')['add'](_0x2043bd=>{_0x2043bd['on']('removeMarker:suggestion:formatBlock',(_0x16f410,_0x11f129,_0x58ed12)=>{_0x444762(0x0,_0x11f129,_0x58ed12,!0x1);},{'priority':'high'});}),_0x17ff83['conversion']['for']('editingDowncast')['add'](_0x36d739=>{_0x36d739['on']('removeMarker:suggestion:attribute',(_0x5b353c,_0x56f659,_0x266296)=>{_0x444762(0x0,_0x56f659,_0x266296,!0x0);},{'priority':'high'});}),_0x17ff83['conversion']['for']('dataDowncast')['add'](_0x3a93fd=>{_0x3a93fd['on']('addMarker:suggestion:formatBlock',(_0x237dc3,_0x1c7960,_0x351a23)=>{_0x2bbbfa(_0x237dc3,_0x1c7960,_0x351a23,!0x0,!0x1);},{'priority':'highest'});}),_0x17ff83['conversion']['for']('dataDowncast')['add'](_0x2fda08=>{_0x2fda08['on']('addMarker:suggestion:attribute',(_0x3f049b,_0x27d577,_0x311f3d)=>{_0x2bbbfa(_0x3f049b,_0x27d577,_0x311f3d,!0x0,!0x0);},{'priority':'highest'});}),_0x17ff83['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x9da6ca,_0x396786)=>{if(_0x396786['options']['showSuggestionHighlights']){const {id:_0x4b7ba5,authorId:_0x37e152}=splitSuggestionMarkerName(_0x9da6ca);return _0x9da6ca['includes'](':split')||_0x9da6ca['includes'](':merge')?{'group':'suggestion','name':_0x9da6ca['substr'](0xb),'attributes':{'data-suggestion':_0x4b7ba5,'data-author-id':_0x37e152}}:null;}return{'group':'suggestion','name':_0x9da6ca['substr'](0xb)};}});const _0x558174=(_0x54e3e2,_0x2108a7,_0x43d7bc,_0x187921,_0x41eacb)=>{if(_0x187921&&!_0x43d7bc['options']['showSuggestionHighlights'])return;if(!_0x43d7bc['consumable']['test'](_0x2108a7['markerRange'],_0x54e3e2['name']))return;const _0x60cfc8=this['_activeMarkers'],_0xc90d19=_0x2108a7['markerRange']['getWalker'](),_0x1e234c=_0x2108a7['markerRange']['start'],_0x3db292=_0x17ff83['model']['schema'];let _0x3aeed6=null,_0x186aeb=null,_0x2554a6=!0x1,_0x2b0594=!0x1;for(const _0x5dd257 of _0xc90d19){const _0x3a1aa8=_0x5dd257['item'];_0x2554a6=_0x2554a6||_0x3db292['isContent'](_0x3a1aa8);const _0x7971aa=_0x43d7bc['mapper']['toViewElement'](_0x3a1aa8);if(_0x7971aa&&_0x7971aa['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5dd257['type']&&(_0x3db292['isBlock'](_0x3a1aa8)&&!_0x3db292['isLimit'](_0x3a1aa8)&&(_0x3a1aa8['nextSibling']||_0x1e234c['isAtEnd']?_0x3aeed6&&_0x3aeed6['parent']==_0x3a1aa8||(_0x3aeed6=_0x3a1aa8,_0x49fde2(_0x5dd257['previousPosition']),_0x2b0594=!0x0):_0x186aeb=_0x186aeb||_0x5dd257['previousPosition']));}function _0x49fde2(_0xd1ba16){const {id:_0x29f823,authorId:_0x4ee54e}=splitSuggestionMarkerName(_0x2108a7['markerName']),_0x4f925e=_0x43d7bc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x41eacb,'data-suggestion':_0x29f823,'data-author-id':_0x4ee54e}),_0x3472da=_0x43d7bc['mapper']['toViewPosition'](_0xd1ba16);!_0x187921&&_0x60cfc8['includes'](_0x2108a7['markerName'])&&_0x43d7bc['writer']['addClass']('ck-suggestion-marker--active',_0x4f925e),_0x43d7bc['writer']['insert'](_0x3472da,_0x4f925e),_0x43d7bc['mapper']['bindElementToMarker'](_0x4f925e,_0x2108a7['markerName']);}_0x2554a6||_0x2b0594||!_0x186aeb||_0x49fde2(_0x186aeb);};_0x17ff83['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x38ea48,_0x4c913d,_0x4ff086)=>{_0x558174(_0x38ea48,_0x4c913d,_0x4ff086,!0x1,'merge');},{'priority':'high'}),_0x17ff83['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x775d1,_0x94e8e,_0x5b8ba7)=>{_0x558174(_0x775d1,_0x94e8e,_0x5b8ba7,!0x0,'merge');},{'priority':'high'}),_0x17ff83['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x52488d,_0x54cb8e,_0x51b715)=>{_0x558174(_0x52488d,_0x54cb8e,_0x51b715,!0x1,'split');},{'priority':'high'}),_0x17ff83['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x265281,_0x3a483a,_0x491f6d)=>{_0x558174(_0x265281,_0x3a483a,_0x491f6d,!0x0,'split');},{'priority':'high'}),_0x17ff83['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2b5d78,_0x24bf60,_0x642037)=>{((_0x264775,_0x27da89,_0x1e3c38)=>{const _0x5548ef=_0x1e3c38['mapper']['markerNameToElements'](_0x27da89['markerName']);if(_0x5548ef){for(const _0x51d57e of _0x5548ef)(_0x51d57e['hasClass']('ck-suggestion-marker-split')||_0x51d57e['hasClass']('ck-suggestion-marker-merge'))&&(_0x1e3c38['mapper']['unbindElementFromMarkerName'](_0x51d57e,_0x27da89['markerName']),_0x1e3c38['writer']['remove'](_0x51d57e));}})(0x0,_0x24bf60,_0x642037);},{'priority':'high'});const _0x549dee=(_0x5d8e7d,_0x59ee48,_0x19897f,_0x570f02)=>{if(_0x570f02&&!_0x19897f['options']['showSuggestionHighlights'])return;const _0x64e286=_0x59ee48['markerRange']['start'],_0x5a6f47=_0x59ee48['markerRange']['end'],_0x219a1e=_0x17ff83['model']['schema'];if(!_0x64e286['isTouching'](_0x5a6f47)||!_0x64e286['nodeAfter'])return;const _0x4341aa=_0x64e286['nodeAfter'];if(_0x219a1e['isBlock'](_0x4341aa)&&!_0x219a1e['isLimit'](_0x4341aa)&&_0x219a1e['checkChild'](_0x4341aa,'$text')){if(!_0x19897f['consumable']['consume'](_0x59ee48['markerRange'],_0x5d8e7d['name']))return;const {id:_0x116190,authorId:_0x597ad7}=splitSuggestionMarkerName(_0x59ee48['markerName']),_0x5e94d0=_0x19897f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x116190,'data-author-id':_0x597ad7}),_0x35d4fa=_0x19897f['mapper']['toViewPosition'](_0x5a6f47);!_0x570f02&&this['_activeMarkers']['includes'](_0x59ee48['markerName'])&&_0x19897f['writer']['addClass']('ck-suggestion-marker--active',_0x5e94d0),_0x19897f['writer']['insert'](_0x35d4fa,_0x5e94d0),_0x19897f['mapper']['bindElementToMarker'](_0x5e94d0,_0x59ee48['markerName']);}};_0x17ff83['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x40f5d5,_0x55de60,_0x233d4b)=>{_0x549dee(_0x40f5d5,_0x55de60,_0x233d4b,!0x1);},{'priority':'high'}),_0x17ff83['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5b8abc,_0x1f4a3e,_0x598cac)=>{_0x549dee(_0x5b8abc,_0x1f4a3e,_0x598cac,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x1e9b08,_0x5e31e8,_0x5b38e1)=>{this['_activeMarkers']=_0x5b38e1['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x4ded88){this['_blockAttributeKeys']['add'](_0x4ded88);}['registerInlineAttribute'](_0x2de399){this['_inlineAttributeKeys']['add'](_0x2de399);}['isBlockAttribute'](_0x1aba37){return this['_blockAttributeKeys']['has'](_0x1aba37);}['isInlineAttribute'](_0x56111c){return this['_inlineAttributeKeys']['has'](_0x56111c);}['isRegisteredAttribute'](_0x1d851e){return this['isInlineAttribute'](_0x1d851e)||this['isBlockAttribute'](_0x1d851e);}['_getClassName'](_0x1c737f,_0x1be713){if('attribute'!=_0x1c737f)return'ck-suggestion-marker-'+_0x1c737f;const _0x4d6724=_0x1be713['split']('|')[0x0];return this['isBlockAttribute'](_0x4d6724)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(_0x2cf7b9){super('Invalid\x20DateTime:\x20'+_0x2cf7b9['toMessage']());}}class InvalidIntervalError extends LuxonError{constructor(_0x23b573){super('Invalid\x20Interval:\x20'+_0x23b573['toMessage']());}}class InvalidDurationError extends LuxonError{constructor(_0x3bd564){super('Invalid\x20Duration:\x20'+_0x3bd564['toMessage']());}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(_0x21819c){super('Invalid\x20unit\x20'+_0x21819c);}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super('Zone\x20is\x20an\x20abstract\x20class');}}const n='numeric',s$1='short',l$1='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$1,'day':n},DATE_HUGE={'year':n,'month':l$1,'day':n,'weekday':l$1},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$1},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$1},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$1,'day':n,'hour':n,'minute':n,'timeZoneName':s$1},DATETIME_FULL_WITH_SECONDS={'year':n,'month':l$1,'day':n,'hour':n,'minute':n,'second':n,'timeZoneName':s$1},DATETIME_HUGE={'year':n,'month':l$1,'day':n,'weekday':l$1,'hour':n,'minute':n,'timeZoneName':l$1},DATETIME_HUGE_WITH_SECONDS={'year':n,'month':l$1,'day':n,'weekday':l$1,'hour':n,'minute':n,'second':n,'timeZoneName':l$1};class Zone{get['type'](){throw new ZoneIsAbstractError();}get['name'](){throw new ZoneIsAbstractError();}get['ianaName'](){return this['name'];}get['isUniversal'](){throw new ZoneIsAbstractError();}['offsetName'](_0x251bcf,_0xcd12fe){throw new ZoneIsAbstractError();}['formatOffset'](_0x1a6b7b,_0x5d0d18){throw new ZoneIsAbstractError();}['offset'](_0x1011d4){throw new ZoneIsAbstractError();}['equals'](_0x2c4d10){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'](_0x45ef9b,{format:_0x58b936,locale:_0x3db5b1}){return parseZoneInfo(_0x45ef9b,_0x58b936,_0x3db5b1);}['formatOffset'](_0x4afb26,_0x168ffa){return formatOffset(this['offset'](_0x4afb26),_0x168ffa);}['offset'](_0x489098){return-new Date(_0x489098)['getTimezoneOffset']();}['equals'](_0x2f7b44){return'system'===_0x2f7b44['type'];}get['isValid'](){return!0x0;}}const dtfCache=new Map();function makeDTF(_0x87ae72){let _0x595822=dtfCache['get'](_0x87ae72);return void 0x0===_0x595822&&(_0x595822=new Intl['DateTimeFormat']('en-US',{'hour12':!0x1,'timeZone':_0x87ae72,'year':'numeric','month':'2-digit','day':'2-digit','hour':'2-digit','minute':'2-digit','second':'2-digit','era':'short'}),dtfCache['set'](_0x87ae72,_0x595822)),_0x595822;}const typeToPos={'year':0x0,'month':0x1,'day':0x2,'era':0x3,'hour':0x4,'minute':0x5,'second':0x6};function hackyOffset(_0x306d21,_0x5e8df){const _0x2bbad4=_0x306d21['format'](_0x5e8df)['replace'](/\u200E/g,''),_0x3c08d4=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/['exec'](_0x2bbad4),[,_0x28280c,_0x3e2964,_0x1c3b81,_0x58d67f,_0x43b340,_0x2e0c7e,_0x40ba82]=_0x3c08d4;return[_0x1c3b81,_0x28280c,_0x3e2964,_0x58d67f,_0x43b340,_0x2e0c7e,_0x40ba82];}function partsOffset(_0x2a9b92,_0xc19640){const _0x157664=_0x2a9b92['formatToParts'](_0xc19640),_0x145b81=[];for(let _0x5cfc3f=0x0;_0x5cfc3f<_0x157664['length'];_0x5cfc3f++){const {type:_0x3e84b3,value:_0xa5bdbd}=_0x157664[_0x5cfc3f],_0x42c1c4=typeToPos[_0x3e84b3];'era'===_0x3e84b3?_0x145b81[_0x42c1c4]=_0xa5bdbd:isUndefined(_0x42c1c4)||(_0x145b81[_0x42c1c4]=parseInt(_0xa5bdbd,0xa));}return _0x145b81;}const ianaZoneCache=new Map();class IANAZone extends Zone{static['create'](_0x3ddbf6){let _0x3c7aa7=ianaZoneCache['get'](_0x3ddbf6);return void 0x0===_0x3c7aa7&&ianaZoneCache['set'](_0x3ddbf6,_0x3c7aa7=new IANAZone(_0x3ddbf6)),_0x3c7aa7;}static['resetCache'](){ianaZoneCache['clear'](),dtfCache['clear']();}static['isValidSpecifier'](_0x561ed4){return this['isValidZone'](_0x561ed4);}static['isValidZone'](_0x4c65b1){if(!_0x4c65b1)return!0x1;try{return new Intl['DateTimeFormat']('en-US',{'timeZone':_0x4c65b1})['format'](),!0x0;}catch(_0x2ee92c){return!0x1;}}constructor(_0x521ef5){super(),this['zoneName']=_0x521ef5,this['valid']=IANAZone['isValidZone'](_0x521ef5);}get['type'](){return'iana';}get['name'](){return this['zoneName'];}get['isUniversal'](){return!0x1;}['offsetName'](_0x174f57,{format:_0x298c2d,locale:_0x1c0631}){return parseZoneInfo(_0x174f57,_0x298c2d,_0x1c0631,this['name']);}['formatOffset'](_0x1b1073,_0x46bb06){return formatOffset(this['offset'](_0x1b1073),_0x46bb06);}['offset'](_0x879eae){if(!this['valid'])return NaN;const _0x4af18e=new Date(_0x879eae);if(isNaN(_0x4af18e))return NaN;const _0x1b9b9f=makeDTF(this['name']);let [_0x7e5643,_0x274d7d,_0x38a642,_0x2162d1,_0x268a14,_0x5e8c9e,_0x1d182e]=_0x1b9b9f['formatToParts']?partsOffset(_0x1b9b9f,_0x4af18e):hackyOffset(_0x1b9b9f,_0x4af18e);'BC'===_0x2162d1&&(_0x7e5643=0x1-Math['abs'](_0x7e5643));let _0x541b17=+_0x4af18e;const _0xe68896=_0x541b17%0x3e8;return _0x541b17-=_0xe68896>=0x0?_0xe68896:0x3e8+_0xe68896,(objToLocalTS({'year':_0x7e5643,'month':_0x274d7d,'day':_0x38a642,'hour':0x18===_0x268a14?0x0:_0x268a14,'minute':_0x5e8c9e,'second':_0x1d182e,'millisecond':0x0})-_0x541b17)/0xea60;}['equals'](_0x4ff7fb){return'iana'===_0x4ff7fb['type']&&_0x4ff7fb['name']===this['name'];}get['isValid'](){return this['valid'];}}let intlLFCache={};function getCachedLF(_0x17340c,_0xc24b05={}){const _0x446858=JSON['stringify']([_0x17340c,_0xc24b05]);let _0x8eae=intlLFCache[_0x446858];return _0x8eae||(_0x8eae=new Intl['ListFormat'](_0x17340c,_0xc24b05),intlLFCache[_0x446858]=_0x8eae),_0x8eae;}const intlDTCache=new Map();function getCachedDTF(_0x40a3e5,_0x26e0af={}){const _0x1ab44e=JSON['stringify']([_0x40a3e5,_0x26e0af]);let _0xe65aaa=intlDTCache['get'](_0x1ab44e);return void 0x0===_0xe65aaa&&(_0xe65aaa=new Intl['DateTimeFormat'](_0x40a3e5,_0x26e0af),intlDTCache['set'](_0x1ab44e,_0xe65aaa)),_0xe65aaa;}const intlNumCache=new Map();function getCachedINF(_0x3c90ca,_0x3e9c98={}){const _0x2a5daa=JSON['stringify']([_0x3c90ca,_0x3e9c98]);let _0x2dc60f=intlNumCache['get'](_0x2a5daa);return void 0x0===_0x2dc60f&&(_0x2dc60f=new Intl['NumberFormat'](_0x3c90ca,_0x3e9c98),intlNumCache['set'](_0x2a5daa,_0x2dc60f)),_0x2dc60f;}const intlRelCache=new Map();function getCachedRTF(_0x103a3b,_0x26ccd2={}){const {base:_0x1b9231,..._0xe6b565}=_0x26ccd2,_0x2474f2=JSON['stringify']([_0x103a3b,_0xe6b565]);let _0x24f13a=intlRelCache['get'](_0x2474f2);return void 0x0===_0x24f13a&&(_0x24f13a=new Intl['RelativeTimeFormat'](_0x103a3b,_0x26ccd2),intlRelCache['set'](_0x2474f2,_0x24f13a)),_0x24f13a;}let sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=new Intl['DateTimeFormat']()['resolvedOptions']()['locale'],sysLocaleCache);}const intlResolvedOptionsCache=new Map();function getCachedIntResolvedOptions(_0x41fdd6){let _0x4a22a1=intlResolvedOptionsCache['get'](_0x41fdd6);return void 0x0===_0x4a22a1&&(_0x4a22a1=new Intl['DateTimeFormat'](_0x41fdd6)['resolvedOptions'](),intlResolvedOptionsCache['set'](_0x41fdd6,_0x4a22a1)),_0x4a22a1;}const weekInfoCache=new Map();function getCachedWeekInfo(_0x50f5e2){let _0x149043=weekInfoCache['get'](_0x50f5e2);if(!_0x149043){const _0x3399ad=new Intl['Locale'](_0x50f5e2);_0x149043='getWeekInfo'in _0x3399ad?_0x3399ad['getWeekInfo']():_0x3399ad['weekInfo'],'minimalDays'in _0x149043||(_0x149043={...fallbackWeekSettings,..._0x149043}),weekInfoCache['set'](_0x50f5e2,_0x149043);}return _0x149043;}function parseLocaleString(_0x4999cb){const _0x26923b=_0x4999cb['indexOf']('-x-');-0x1!==_0x26923b&&(_0x4999cb=_0x4999cb['substring'](0x0,_0x26923b));const _0x3e5499=_0x4999cb['indexOf']('-u-');if(-0x1===_0x3e5499)return[_0x4999cb];{let _0x53bf34,_0x35b7e5;try{_0x53bf34=getCachedDTF(_0x4999cb)['resolvedOptions'](),_0x35b7e5=_0x4999cb;}catch(_0x218805){const _0x4d6f26=_0x4999cb['substring'](0x0,_0x3e5499);_0x53bf34=getCachedDTF(_0x4d6f26)['resolvedOptions'](),_0x35b7e5=_0x4d6f26;}const {numberingSystem:_0x5e64c8,calendar:_0x189ec8}=_0x53bf34;return[_0x35b7e5,_0x5e64c8,_0x189ec8];}}function intlConfigString(_0xcbe800,_0x4b8850,_0x5d1253){return _0x5d1253||_0x4b8850?(_0xcbe800['includes']('-u-')||(_0xcbe800+='-u'),_0x5d1253&&(_0xcbe800+='-ca-'+_0x5d1253),_0x4b8850&&(_0xcbe800+='-nu-'+_0x4b8850),_0xcbe800):_0xcbe800;}function mapMonths(_0x13353f){const _0xa1fc83=[];for(let _0x58646e=0x1;_0x58646e<=0xc;_0x58646e++){const _0x45b2aa=DateTime['utc'](0x7d9,_0x58646e,0x1);_0xa1fc83['push'](_0x13353f(_0x45b2aa));}return _0xa1fc83;}function mapWeekdays(_0x418ac6){const _0x4c0c71=[];for(let _0xa2e07d=0x1;_0xa2e07d<=0x7;_0xa2e07d++){const _0x1fab1a=DateTime['utc'](0x7e0,0xb,0xd+_0xa2e07d);_0x4c0c71['push'](_0x418ac6(_0x1fab1a));}return _0x4c0c71;}function listStuff(_0x846b41,_0x29b1b2,_0xebf2e9,_0x1f812b){const _0x434437=_0x846b41['listingMode']();return'error'===_0x434437?null:'en'===_0x434437?_0xebf2e9(_0x29b1b2):_0x1f812b(_0x29b1b2);}function supportsFastNumbers(_0x4c7572){return(!_0x4c7572['numberingSystem']||'latn'===_0x4c7572['numberingSystem'])&&('latn'===_0x4c7572['numberingSystem']||!_0x4c7572['locale']||_0x4c7572['locale']['startsWith']('en')||'latn'===getCachedIntResolvedOptions(_0x4c7572['locale'])['numberingSystem']);}class PolyNumberFormatter{constructor(_0x1826a2,_0x423fc1,_0x51629b){this['padTo']=_0x51629b['padTo']||0x0,this['floor']=_0x51629b['floor']||!0x1;const {padTo:_0x5ba0bb,floor:_0x37e637,..._0x191a6c}=_0x51629b;if(!_0x423fc1||Object['keys'](_0x191a6c)['length']>0x0){const _0x3361fc={'useGrouping':!0x1,..._0x51629b};_0x51629b['padTo']>0x0&&(_0x3361fc['minimumIntegerDigits']=_0x51629b['padTo']),this['inf']=getCachedINF(_0x1826a2,_0x3361fc);}}['format'](_0x5e55f5){if(this['inf']){const _0x273c6a=this['floor']?Math['floor'](_0x5e55f5):_0x5e55f5;return this['inf']['format'](_0x273c6a);}return padStart(this['floor']?Math['floor'](_0x5e55f5):roundTo(_0x5e55f5,0x3),this['padTo']);}}class PolyDateFormatter{constructor(_0x7d785b,_0x37e016,_0x1d1e86){let _0x562bf1;if(this['opts']=_0x1d1e86,this['originalZone']=void 0x0,this['opts']['timeZone'])this['dt']=_0x7d785b;else{if('fixed'===_0x7d785b['zone']['type']){const _0x26ac00=_0x7d785b['offset']/0x3c*-0x1,_0x3578b9=_0x26ac00>=0x0?'Etc/GMT+'+_0x26ac00:'Etc/GMT'+_0x26ac00;0x0!==_0x7d785b['offset']&&IANAZone['create'](_0x3578b9)['valid']?(_0x562bf1=_0x3578b9,this['dt']=_0x7d785b):(_0x562bf1='UTC',this['dt']=0x0===_0x7d785b['offset']?_0x7d785b:_0x7d785b['setZone']('UTC')['plus']({'minutes':_0x7d785b['offset']}),this['originalZone']=_0x7d785b['zone']);}else'system'===_0x7d785b['zone']['type']?this['dt']=_0x7d785b:'iana'===_0x7d785b['zone']['type']?(this['dt']=_0x7d785b,_0x562bf1=_0x7d785b['zone']['name']):(_0x562bf1='UTC',this['dt']=_0x7d785b['setZone']('UTC')['plus']({'minutes':_0x7d785b['offset']}),this['originalZone']=_0x7d785b['zone']);}const _0x430490={...this['opts']};_0x430490['timeZone']=_0x430490['timeZone']||_0x562bf1,this['dtf']=getCachedDTF(_0x37e016,_0x430490);}['format'](){return this['originalZone']?this['formatToParts']()['map'](({value:_0x2347a1})=>_0x2347a1)['join'](''):this['dtf']['format'](this['dt']['toJSDate']());}['formatToParts'](){const _0x20112c=this['dtf']['formatToParts'](this['dt']['toJSDate']());return this['originalZone']?_0x20112c['map'](_0x23c77a=>{if('timeZoneName'===_0x23c77a['type']){const _0x3a92e8=this['originalZone']['offsetName'](this['dt']['ts'],{'locale':this['dt']['locale'],'format':this['opts']['timeZoneName']});return{..._0x23c77a,'value':_0x3a92e8};}return _0x23c77a;}):_0x20112c;}['resolvedOptions'](){return this['dtf']['resolvedOptions']();}}class PolyRelFormatter{constructor(_0x61586d,_0x29066a,_0x4b5e67){this['opts']={'style':'long',..._0x4b5e67},!_0x29066a&&hasRelative()&&(this['rtf']=getCachedRTF(_0x61586d,_0x4b5e67));}['format'](_0x35789b,_0x1164d4){return this['rtf']?this['rtf']['format'](_0x35789b,_0x1164d4):formatRelativeTime(_0x1164d4,_0x35789b,this['opts']['numeric'],'long'!==this['opts']['style']);}['formatToParts'](_0x3dd70f,_0x9a99dd){return this['rtf']?this['rtf']['formatToParts'](_0x3dd70f,_0x9a99dd):[];}}const fallbackWeekSettings={'firstDay':0x1,'minimalDays':0x4,'weekend':[0x6,0x7]};class Locale{static['fromOpts'](_0x5538e2){return Locale['create'](_0x5538e2['locale'],_0x5538e2['numberingSystem'],_0x5538e2['outputCalendar'],_0x5538e2['weekSettings'],_0x5538e2['defaultToEN']);}static['create'](_0x3d27a8,_0x23b9e8,_0x1bfecd,_0x1f763c,_0x4e58f1=!0x1){const _0x492853=_0x3d27a8||Settings['defaultLocale'],_0x233bcd=_0x492853||(_0x4e58f1?'en-US':systemLocale()),_0x230542=_0x23b9e8||Settings['defaultNumberingSystem'],_0x15e2ef=_0x1bfecd||Settings['defaultOutputCalendar'],_0x2bad07=validateWeekSettings(_0x1f763c)||Settings['defaultWeekSettings'];return new Locale(_0x233bcd,_0x230542,_0x15e2ef,_0x2bad07,_0x492853);}static['resetCache'](){sysLocaleCache=null,intlDTCache['clear'](),intlNumCache['clear'](),intlRelCache['clear'](),intlResolvedOptionsCache['clear'](),weekInfoCache['clear']();}static['fromObject']({locale:_0x290da6,numberingSystem:_0x4c3d64,outputCalendar:_0x4a34ea,weekSettings:_0x59acda}={}){return Locale['create'](_0x290da6,_0x4c3d64,_0x4a34ea,_0x59acda);}constructor(_0x31f9ba,_0x4e8734,_0x5775c3,_0xc8b8aa,_0x539fa6){const [_0x552e9b,_0x5ac070,_0x4e65f0]=parseLocaleString(_0x31f9ba);this['locale']=_0x552e9b,this['numberingSystem']=_0x4e8734||_0x5ac070||null,this['outputCalendar']=_0x5775c3||_0x4e65f0||null,this['weekSettings']=_0xc8b8aa,this['intl']=intlConfigString(this['locale'],this['numberingSystem'],this['outputCalendar']),this['weekdaysCache']={'format':{},'standalone':{}},this['monthsCache']={'format':{},'standalone':{}},this['meridiemCache']=null,this['eraCache']={},this['specifiedLocale']=_0x539fa6,this['fastNumbersCached']=null;}get['fastNumbers'](){return null==this['fastNumbersCached']&&(this['fastNumbersCached']=supportsFastNumbers(this)),this['fastNumbersCached'];}['listingMode'](){const _0x32abe1=this['isEnglish'](),_0x46a698=!(null!==this['numberingSystem']&&'latn'!==this['numberingSystem']||null!==this['outputCalendar']&&'gregory'!==this['outputCalendar']);return _0x32abe1&&_0x46a698?'en':'intl';}['clone'](_0x5effee){return _0x5effee&&0x0!==Object['getOwnPropertyNames'](_0x5effee)['length']?Locale['create'](_0x5effee['locale']||this['specifiedLocale'],_0x5effee['numberingSystem']||this['numberingSystem'],_0x5effee['outputCalendar']||this['outputCalendar'],validateWeekSettings(_0x5effee['weekSettings'])||this['weekSettings'],_0x5effee['defaultToEN']||!0x1):this;}['redefaultToEN'](_0x2f6954={}){return this['clone']({..._0x2f6954,'defaultToEN':!0x0});}['redefaultToSystem'](_0x5b0965={}){return this['clone']({..._0x5b0965,'defaultToEN':!0x1});}['months'](_0x1f51e5,_0x3d1848=!0x1){return listStuff(this,_0x1f51e5,months,()=>{const _0x18d1c0=_0x3d1848?{'month':_0x1f51e5,'day':'numeric'}:{'month':_0x1f51e5},_0x4bfbf0=_0x3d1848?'format':'standalone';return this['monthsCache'][_0x4bfbf0][_0x1f51e5]||(this['monthsCache'][_0x4bfbf0][_0x1f51e5]=mapMonths(_0x1d7453=>this['extract'](_0x1d7453,_0x18d1c0,'month'))),this['monthsCache'][_0x4bfbf0][_0x1f51e5];});}['weekdays'](_0x449377,_0x5d6f44=!0x1){return listStuff(this,_0x449377,weekdays,()=>{const _0x3924b0=_0x5d6f44?{'weekday':_0x449377,'year':'numeric','month':'long','day':'numeric'}:{'weekday':_0x449377},_0xd64a20=_0x5d6f44?'format':'standalone';return this['weekdaysCache'][_0xd64a20][_0x449377]||(this['weekdaysCache'][_0xd64a20][_0x449377]=mapWeekdays(_0x5c1167=>this['extract'](_0x5c1167,_0x3924b0,'weekday'))),this['weekdaysCache'][_0xd64a20][_0x449377];});}['meridiems'](){return listStuff(this,void 0x0,()=>meridiems,()=>{if(!this['meridiemCache']){const _0x53241c={'hour':'numeric','hourCycle':'h12'};this['meridiemCache']=[DateTime['utc'](0x7e0,0xb,0xd,0x9),DateTime['utc'](0x7e0,0xb,0xd,0x13)]['map'](_0x491a0d=>this['extract'](_0x491a0d,_0x53241c,'dayperiod'));}return this['meridiemCache'];});}['eras'](_0x51be63){return listStuff(this,_0x51be63,eras,()=>{const _0x4ef95b={'era':_0x51be63};return this['eraCache'][_0x51be63]||(this['eraCache'][_0x51be63]=[DateTime['utc'](-0x28,0x1,0x1),DateTime['utc'](0x7e1,0x1,0x1)]['map'](_0x3a4bd4=>this['extract'](_0x3a4bd4,_0x4ef95b,'era'))),this['eraCache'][_0x51be63];});}['extract'](_0x102392,_0x17f1d0,_0x383afa){const _0x43eb26=this['dtFormatter'](_0x102392,_0x17f1d0)['formatToParts']()['find'](_0x59e5d6=>_0x59e5d6['type']['toLowerCase']()===_0x383afa);return _0x43eb26?_0x43eb26['value']:null;}['numberFormatter'](_0x297e32={}){return new PolyNumberFormatter(this['intl'],_0x297e32['forceSimple']||this['fastNumbers'],_0x297e32);}['dtFormatter'](_0x7f5028,_0x5a913f={}){return new PolyDateFormatter(_0x7f5028,this['intl'],_0x5a913f);}['relFormatter'](_0x645212={}){return new PolyRelFormatter(this['intl'],this['isEnglish'](),_0x645212);}['listFormatter'](_0x827f94={}){return getCachedLF(this['intl'],_0x827f94);}['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'](_0x3c2f08){return this['locale']===_0x3c2f08['locale']&&this['numberingSystem']===_0x3c2f08['numberingSystem']&&this['outputCalendar']===_0x3c2f08['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'](_0x1a9fe0){return 0x0===_0x1a9fe0?FixedOffsetZone['utcInstance']:new FixedOffsetZone(_0x1a9fe0);}static['parseSpecifier'](_0x53c163){if(_0x53c163){const _0x498f3b=_0x53c163['match'](/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(_0x498f3b)return new FixedOffsetZone(signedOffset(_0x498f3b[0x1],_0x498f3b[0x2]));}return null;}constructor(_0x354ada){super(),this['fixed']=_0x354ada;}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'](_0x4d292b,_0x36ed07){return formatOffset(this['fixed'],_0x36ed07);}get['isUniversal'](){return!0x0;}['offset'](){return this['fixed'];}['equals'](_0x2cc10f){return'fixed'===_0x2cc10f['type']&&_0x2cc10f['fixed']===this['fixed'];}get['isValid'](){return!0x0;}}class InvalidZone extends Zone{constructor(_0x11696d){super(),this['zoneName']=_0x11696d;}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(_0x27c2d0,_0x51f70d){if(isUndefined(_0x27c2d0)||null===_0x27c2d0)return _0x51f70d;if(_0x27c2d0 instanceof Zone)return _0x27c2d0;if(isString(_0x27c2d0)){const _0x760736=_0x27c2d0['toLowerCase']();return'default'===_0x760736?_0x51f70d:'local'===_0x760736||'system'===_0x760736?SystemZone['instance']:'utc'===_0x760736||'gmt'===_0x760736?FixedOffsetZone['utcInstance']:FixedOffsetZone['parseSpecifier'](_0x760736)||IANAZone['create'](_0x27c2d0);}return isNumber(_0x27c2d0)?FixedOffsetZone['instance'](_0x27c2d0):'object'==typeof _0x27c2d0&&'offset'in _0x27c2d0&&'function'==typeof _0x27c2d0['offset']?_0x27c2d0:new InvalidZone(_0x27c2d0);}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(_0x123bb5){let _0x2e279a=parseInt(_0x123bb5,0xa);if(isNaN(_0x2e279a)){_0x2e279a='';for(let _0x3c9a33=0x0;_0x3c9a33<_0x123bb5['length'];_0x3c9a33++){const _0x2cb02f=_0x123bb5['charCodeAt'](_0x3c9a33);if(-0x1!==_0x123bb5[_0x3c9a33]['search'](numberingSystems['hanidec']))_0x2e279a+=hanidecChars['indexOf'](_0x123bb5[_0x3c9a33]);else for(const _0x18de9f in numberingSystemsUTF16){const [_0x4665fd,_0x20e44e]=numberingSystemsUTF16[_0x18de9f];_0x2cb02f>=_0x4665fd&&_0x2cb02f<=_0x20e44e&&(_0x2e279a+=_0x2cb02f-_0x4665fd);}}return parseInt(_0x2e279a,0xa);}return _0x2e279a;}const digitRegexCache=new Map();function resetDigitRegexCache(){digitRegexCache['clear']();}function digitRegex({numberingSystem:_0x1b62b7},_0x3f92ac=''){const _0xc84e3d=_0x1b62b7||'latn';let _0x20acc5=digitRegexCache['get'](_0xc84e3d);void 0x0===_0x20acc5&&(_0x20acc5=new Map(),digitRegexCache['set'](_0xc84e3d,_0x20acc5));let _0x374328=_0x20acc5['get'](_0x3f92ac);return void 0x0===_0x374328&&(_0x374328=new RegExp(''+numberingSystems[_0xc84e3d]+_0x3f92ac),_0x20acc5['set'](_0x3f92ac,_0x374328)),_0x374328;}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'](_0x11c995){now=_0x11c995;}static set['defaultZone'](_0x3e17ad){defaultZone=_0x3e17ad;}static get['defaultZone'](){return normalizeZone(defaultZone,SystemZone['instance']);}static get['defaultLocale'](){return defaultLocale;}static set['defaultLocale'](_0x50507f){defaultLocale=_0x50507f;}static get['defaultNumberingSystem'](){return defaultNumberingSystem;}static set['defaultNumberingSystem'](_0x3c6e4f){defaultNumberingSystem=_0x3c6e4f;}static get['defaultOutputCalendar'](){return defaultOutputCalendar;}static set['defaultOutputCalendar'](_0xbc086e){defaultOutputCalendar=_0xbc086e;}static get['defaultWeekSettings'](){return defaultWeekSettings;}static set['defaultWeekSettings'](_0x1aca7c){defaultWeekSettings=validateWeekSettings(_0x1aca7c);}static get['twoDigitCutoffYear'](){return twoDigitCutoffYear;}static set['twoDigitCutoffYear'](_0x1a5422){twoDigitCutoffYear=_0x1a5422%0x64;}static get['throwOnInvalid'](){return throwOnInvalid;}static set['throwOnInvalid'](t){throwOnInvalid=t;}static['resetCaches'](){Locale['resetCache'](),IANAZone['resetCache'](),DateTime['resetCache'](),resetDigitRegexCache();}}class Invalid{constructor(_0x12229d,_0x40744d){this['reason']=_0x12229d,this['explanation']=_0x40744d;}['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(_0x1da5e6,_0x50c7d4){return new Invalid('unit\x20out\x20of\x20range','you\x20specified\x20'+_0x50c7d4+'\x20(of\x20type\x20'+typeof _0x50c7d4+')\x20as\x20a\x20'+_0x1da5e6+',\x20which\x20is\x20invalid');}function dayOfWeek(_0x25300c,_0x3285ca,_0x76540a){const _0x4c3b30=new Date(Date['UTC'](_0x25300c,_0x3285ca-0x1,_0x76540a));_0x25300c<0x64&&_0x25300c>=0x0&&_0x4c3b30['setUTCFullYear'](_0x4c3b30['getUTCFullYear']()-0x76c);const _0x55a1a6=_0x4c3b30['getUTCDay']();return 0x0===_0x55a1a6?0x7:_0x55a1a6;}function computeOrdinal(_0x1c2e92,_0x12285c,_0x13b288){return _0x13b288+(isLeapYear(_0x1c2e92)?leapLadder:nonLeapLadder)[_0x12285c-0x1];}function uncomputeOrdinal(_0x577f40,_0x53e3af){const _0x87e6ab=isLeapYear(_0x577f40)?leapLadder:nonLeapLadder,_0x1fb074=_0x87e6ab['findIndex'](_0x5efc40=>_0x5efc40<_0x53e3af);return{'month':_0x1fb074+0x1,'day':_0x53e3af-_0x87e6ab[_0x1fb074]};}function isoWeekdayToLocal(_0x3f5a19,_0x2a19ec){return(_0x3f5a19-_0x2a19ec+0x7)%0x7+0x1;}function gregorianToWeek(_0x19ff8f,_0x307cb7=0x4,_0x1432e7=0x1){const {year:_0x35eab2,month:_0x58921f,day:_0x3e7e4e}=_0x19ff8f,_0x3980a7=computeOrdinal(_0x35eab2,_0x58921f,_0x3e7e4e),_0x419365=isoWeekdayToLocal(dayOfWeek(_0x35eab2,_0x58921f,_0x3e7e4e),_0x1432e7);let _0x462113,_0x2be6f7=Math['floor']((_0x3980a7-_0x419365+0xe-_0x307cb7)/0x7);return _0x2be6f7<0x1?(_0x462113=_0x35eab2-0x1,_0x2be6f7=weeksInWeekYear(_0x462113,_0x307cb7,_0x1432e7)):_0x2be6f7>weeksInWeekYear(_0x35eab2,_0x307cb7,_0x1432e7)?(_0x462113=_0x35eab2+0x1,_0x2be6f7=0x1):_0x462113=_0x35eab2,{'weekYear':_0x462113,'weekNumber':_0x2be6f7,'weekday':_0x419365,...timeObject(_0x19ff8f)};}function weekToGregorian(_0x355ed5,_0x5ab975=0x4,_0x29affc=0x1){const {weekYear:_0x4c901f,weekNumber:_0x384920,weekday:_0x2fc2ed}=_0x355ed5,_0x556c12=isoWeekdayToLocal(dayOfWeek(_0x4c901f,0x1,_0x5ab975),_0x29affc),_0x4455df=daysInYear(_0x4c901f);let _0x1f00ee,_0x22e8bd=0x7*_0x384920+_0x2fc2ed-_0x556c12-0x7+_0x5ab975;_0x22e8bd<0x1?(_0x1f00ee=_0x4c901f-0x1,_0x22e8bd+=daysInYear(_0x1f00ee)):_0x22e8bd>_0x4455df?(_0x1f00ee=_0x4c901f+0x1,_0x22e8bd-=daysInYear(_0x4c901f)):_0x1f00ee=_0x4c901f;const {month:_0x3135a8,day:_0x2c545a}=uncomputeOrdinal(_0x1f00ee,_0x22e8bd);return{'year':_0x1f00ee,'month':_0x3135a8,'day':_0x2c545a,...timeObject(_0x355ed5)};}function gregorianToOrdinal(_0x4a4724){const {year:_0x42a440,month:_0x44da86,day:_0x3f06a3}=_0x4a4724;return{'year':_0x42a440,'ordinal':computeOrdinal(_0x42a440,_0x44da86,_0x3f06a3),...timeObject(_0x4a4724)};}function ordinalToGregorian(_0x3a67d5){const {year:_0x378862,ordinal:_0x26efd3}=_0x3a67d5,{month:_0x15f565,day:_0x510538}=uncomputeOrdinal(_0x378862,_0x26efd3);return{'year':_0x378862,'month':_0x15f565,'day':_0x510538,...timeObject(_0x3a67d5)};}function usesLocalWeekValues(_0x46d5d4,_0x5b9169){if(!isUndefined(_0x46d5d4['localWeekday'])||!isUndefined(_0x46d5d4['localWeekNumber'])||!isUndefined(_0x46d5d4['localWeekYear'])){if(!isUndefined(_0x46d5d4['weekday'])||!isUndefined(_0x46d5d4['weekNumber'])||!isUndefined(_0x46d5d4['weekYear']))throw new ConflictingSpecificationError('Cannot\x20mix\x20locale-based\x20week\x20fields\x20with\x20ISO-based\x20week\x20fields');return isUndefined(_0x46d5d4['localWeekday'])||(_0x46d5d4['weekday']=_0x46d5d4['localWeekday']),isUndefined(_0x46d5d4['localWeekNumber'])||(_0x46d5d4['weekNumber']=_0x46d5d4['localWeekNumber']),isUndefined(_0x46d5d4['localWeekYear'])||(_0x46d5d4['weekYear']=_0x46d5d4['localWeekYear']),delete _0x46d5d4['localWeekday'],delete _0x46d5d4['localWeekNumber'],delete _0x46d5d4['localWeekYear'],{'minDaysInFirstWeek':_0x5b9169['getMinDaysInFirstWeek'](),'startOfWeek':_0x5b9169['getStartOfWeek']()};}return{'minDaysInFirstWeek':0x4,'startOfWeek':0x1};}function hasInvalidWeekData(_0x2a95bb,_0x515de1=0x4,_0x2e171d=0x1){const _0x5d5481=isInteger$1(_0x2a95bb['weekYear']),_0x3d1442=integerBetween(_0x2a95bb['weekNumber'],0x1,weeksInWeekYear(_0x2a95bb['weekYear'],_0x515de1,_0x2e171d)),_0x57a84b=integerBetween(_0x2a95bb['weekday'],0x1,0x7);return _0x5d5481?_0x3d1442?!_0x57a84b&&unitOutOfRange('weekday',_0x2a95bb['weekday']):unitOutOfRange('week',_0x2a95bb['weekNumber']):unitOutOfRange('weekYear',_0x2a95bb['weekYear']);}function hasInvalidOrdinalData(_0x68d62a){const _0x4248ae=isInteger$1(_0x68d62a['year']),_0x1c22b2=integerBetween(_0x68d62a['ordinal'],0x1,daysInYear(_0x68d62a['year']));return _0x4248ae?!_0x1c22b2&&unitOutOfRange('ordinal',_0x68d62a['ordinal']):unitOutOfRange('year',_0x68d62a['year']);}function hasInvalidGregorianData(_0x2cc609){const _0x567e6b=isInteger$1(_0x2cc609['year']),_0x98d49d=integerBetween(_0x2cc609['month'],0x1,0xc),_0x29e13b=integerBetween(_0x2cc609['day'],0x1,daysInMonth(_0x2cc609['year'],_0x2cc609['month']));return _0x567e6b?_0x98d49d?!_0x29e13b&&unitOutOfRange('day',_0x2cc609['day']):unitOutOfRange('month',_0x2cc609['month']):unitOutOfRange('year',_0x2cc609['year']);}function hasInvalidTimeData(_0x3ac696){const {hour:_0x3e5be7,minute:_0x1b5556,second:_0x403378,millisecond:_0x3edf6a}=_0x3ac696,_0xd0aaf7=integerBetween(_0x3e5be7,0x0,0x17)||0x18===_0x3e5be7&&0x0===_0x1b5556&&0x0===_0x403378&&0x0===_0x3edf6a,_0xa95ef=integerBetween(_0x1b5556,0x0,0x3b),_0x58e37e=integerBetween(_0x403378,0x0,0x3b),_0x97513=integerBetween(_0x3edf6a,0x0,0x3e7);return _0xd0aaf7?_0xa95ef?_0x58e37e?!_0x97513&&unitOutOfRange('millisecond',_0x3edf6a):unitOutOfRange('second',_0x403378):unitOutOfRange('minute',_0x1b5556):unitOutOfRange('hour',_0x3e5be7);}function isUndefined(_0x3f0398){return void 0x0===_0x3f0398;}function isNumber(_0x3aa5ca){return'number'==typeof _0x3aa5ca;}function isInteger$1(_0x45d010){return'number'==typeof _0x45d010&&_0x45d010%0x1==0x0;}function isString(_0x3a7b60){return'string'==typeof _0x3a7b60;}function isDate(_0x6a91b1){return'[object\x20Date]'===Object['prototype']['toString']['call'](_0x6a91b1);}function hasRelative(){try{return'undefined'!=typeof Intl&&!!Intl['RelativeTimeFormat'];}catch(_0x34fdd5){return!0x1;}}function hasLocaleWeekInfo(){try{return'undefined'!=typeof Intl&&!!Intl['Locale']&&('weekInfo'in Intl['Locale']['prototype']||'getWeekInfo'in Intl['Locale']['prototype']);}catch(_0x5b1389){return!0x1;}}function maybeArray(_0x1015fb){return Array['isArray'](_0x1015fb)?_0x1015fb:[_0x1015fb];}function bestBy(_0x4b5de7,_0x10c575,_0x10c024){if(0x0!==_0x4b5de7['length'])return _0x4b5de7['reduce']((_0xf29248,_0x58f609)=>{const _0x112fcd=[_0x10c575(_0x58f609),_0x58f609];return _0xf29248&&_0x10c024(_0xf29248[0x0],_0x112fcd[0x0])===_0xf29248[0x0]?_0xf29248:_0x112fcd;},null)[0x1];}function pick$2(_0x5c295a,_0x29a7a1){return _0x29a7a1['reduce']((_0x192009,_0x5e0663)=>(_0x192009[_0x5e0663]=_0x5c295a[_0x5e0663],_0x192009),{});}function hasOwnProperty(_0x250d1a,_0x3685d3){return Object['prototype']['hasOwnProperty']['call'](_0x250d1a,_0x3685d3);}function validateWeekSettings(_0x3f089e){if(null==_0x3f089e)return null;if('object'!=typeof _0x3f089e)throw new InvalidArgumentError('Week\x20settings\x20must\x20be\x20an\x20object');if(!integerBetween(_0x3f089e['firstDay'],0x1,0x7)||!integerBetween(_0x3f089e['minimalDays'],0x1,0x7)||!Array['isArray'](_0x3f089e['weekend'])||_0x3f089e['weekend']['some'](_0x18c41c=>!integerBetween(_0x18c41c,0x1,0x7)))throw new InvalidArgumentError('Invalid\x20week\x20settings');return{'firstDay':_0x3f089e['firstDay'],'minimalDays':_0x3f089e['minimalDays'],'weekend':Array['from'](_0x3f089e['weekend'])};}function integerBetween(_0x1f07a3,_0x4a4b9d,_0x214775){return isInteger$1(_0x1f07a3)&&_0x1f07a3>=_0x4a4b9d&&_0x1f07a3<=_0x214775;}function floorMod(_0x3b8bfc,_0x12028a){return _0x3b8bfc-_0x12028a*Math['floor'](_0x3b8bfc/_0x12028a);}function padStart(_0x4aadda,_0x4df55f=0x2){let _0x55e842;return _0x55e842=_0x4aadda<0x0?'-'+(''+-_0x4aadda)['padStart'](_0x4df55f,'0'):(''+_0x4aadda)['padStart'](_0x4df55f,'0'),_0x55e842;}function parseInteger(_0x4fda89){return isUndefined(_0x4fda89)||null===_0x4fda89||''===_0x4fda89?void 0x0:parseInt(_0x4fda89,0xa);}function parseFloating(_0x44d5e4){return isUndefined(_0x44d5e4)||null===_0x44d5e4||''===_0x44d5e4?void 0x0:parseFloat(_0x44d5e4);}function parseMillis(_0x3bbff2){if(!isUndefined(_0x3bbff2)&&null!==_0x3bbff2&&''!==_0x3bbff2){const _0x2f6f0d=0x3e8*parseFloat('0.'+_0x3bbff2);return Math['floor'](_0x2f6f0d);}}function roundTo(_0x480411,_0x138d32,_0xd51250=!0x1){const _0x5dee8c=0xa**_0x138d32;return(_0xd51250?Math['trunc']:Math['round'])(_0x480411*_0x5dee8c)/_0x5dee8c;}function isLeapYear(_0x4f7d2d){return _0x4f7d2d%0x4==0x0&&(_0x4f7d2d%0x64!=0x0||_0x4f7d2d%0x190==0x0);}function daysInYear(_0x475d14){return isLeapYear(_0x475d14)?0x16e:0x16d;}function daysInMonth(_0xea2c75,_0x4ba8df){const _0x3becd0=floorMod(_0x4ba8df-0x1,0xc)+0x1;return 0x2===_0x3becd0?isLeapYear(_0xea2c75+(_0x4ba8df-_0x3becd0)/0xc)?0x1d:0x1c:[0x1f,null,0x1f,0x1e,0x1f,0x1e,0x1f,0x1f,0x1e,0x1f,0x1e,0x1f][_0x3becd0-0x1];}function objToLocalTS(_0x2551c7){let _0x758259=Date['UTC'](_0x2551c7['year'],_0x2551c7['month']-0x1,_0x2551c7['day'],_0x2551c7['hour'],_0x2551c7['minute'],_0x2551c7['second'],_0x2551c7['millisecond']);return _0x2551c7['year']<0x64&&_0x2551c7['year']>=0x0&&(_0x758259=new Date(_0x758259),_0x758259['setUTCFullYear'](_0x2551c7['year'],_0x2551c7['month']-0x1,_0x2551c7['day'])),+_0x758259;}function firstWeekOffset(_0x5e0e6e,_0x1679a3,_0x29dbca){return-isoWeekdayToLocal(dayOfWeek(_0x5e0e6e,0x1,_0x1679a3),_0x29dbca)+_0x1679a3-0x1;}function weeksInWeekYear(_0x43a342,_0x238fb6=0x4,_0x20d92a=0x1){const _0x399a0a=firstWeekOffset(_0x43a342,_0x238fb6,_0x20d92a),_0x5aa35f=firstWeekOffset(_0x43a342+0x1,_0x238fb6,_0x20d92a);return(daysInYear(_0x43a342)-_0x399a0a+_0x5aa35f)/0x7;}function untruncateYear(_0x7e582c){return _0x7e582c>0x63?_0x7e582c:_0x7e582c>Settings['twoDigitCutoffYear']?0x76c+_0x7e582c:0x7d0+_0x7e582c;}function parseZoneInfo(_0xce7944,_0x1fb8c2,_0x2d8dc0,_0x9f6e23=null){const _0x1e1108=new Date(_0xce7944),_0x39294a={'hourCycle':'h23','year':'numeric','month':'2-digit','day':'2-digit','hour':'2-digit','minute':'2-digit'};_0x9f6e23&&(_0x39294a['timeZone']=_0x9f6e23);const _0x2d217e={'timeZoneName':_0x1fb8c2,..._0x39294a},_0x2d58d6=new Intl['DateTimeFormat'](_0x2d8dc0,_0x2d217e)['formatToParts'](_0x1e1108)['find'](_0x49c34d=>'timezonename'===_0x49c34d['type']['toLowerCase']());return _0x2d58d6?_0x2d58d6['value']:null;}function signedOffset(_0x38f49c,_0x1421cc){let _0x14603e=parseInt(_0x38f49c,0xa);Number['isNaN'](_0x14603e)&&(_0x14603e=0x0);const _0xdefe22=parseInt(_0x1421cc,0xa)||0x0;return 0x3c*_0x14603e+(_0x14603e<0x0||Object['is'](_0x14603e,-0x0)?-_0xdefe22:_0xdefe22);}function asNumber$1(_0x3028da){const _0x51a269=Number(_0x3028da);if('boolean'==typeof _0x3028da||''===_0x3028da||Number['isNaN'](_0x51a269))throw new InvalidArgumentError('Invalid\x20unit\x20value\x20'+_0x3028da);return _0x51a269;}function normalizeObject(_0x32d804,_0x12c52f){const _0x2c9b51={};for(const _0x198b2f in _0x32d804)if(hasOwnProperty(_0x32d804,_0x198b2f)){const _0x530b42=_0x32d804[_0x198b2f];if(null==_0x530b42)continue;_0x2c9b51[_0x12c52f(_0x198b2f)]=asNumber$1(_0x530b42);}return _0x2c9b51;}function formatOffset(_0x13a9b9,_0x57fed4){const _0x2794f0=Math['trunc'](Math['abs'](_0x13a9b9/0x3c)),_0x1c5cbb=Math['trunc'](Math['abs'](_0x13a9b9%0x3c)),_0x436cbc=_0x13a9b9>=0x0?'+':'-';switch(_0x57fed4){case'short':return''+_0x436cbc+padStart(_0x2794f0,0x2)+':'+padStart(_0x1c5cbb,0x2);case'narrow':return''+_0x436cbc+_0x2794f0+(_0x1c5cbb>0x0?':'+_0x1c5cbb:'');case'techie':return''+_0x436cbc+padStart(_0x2794f0,0x2)+padStart(_0x1c5cbb,0x2);default:throw new RangeError('Value\x20format\x20'+_0x57fed4+'\x20is\x20out\x20of\x20range\x20for\x20property\x20format');}}function timeObject(_0x173ede){return pick$2(_0x173ede,['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(_0x3c739e){switch(_0x3c739e){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(_0x32ec30){switch(_0x32ec30){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(_0x15f068){switch(_0x15f068){case'narrow':return[...erasNarrow];case'short':return[...erasShort];case'long':return[...erasLong];default:return null;}}function meridiemForDateTime(_0x1e8a5a){return meridiems[_0x1e8a5a['hour']<0xc?0x0:0x1];}function weekdayForDateTime(_0xb099cd,_0x26f57d){return weekdays(_0x26f57d)[_0xb099cd['weekday']-0x1];}function monthForDateTime(_0x3a87b8,_0x4da9a){return months(_0x4da9a)[_0x3a87b8['month']-0x1];}function eraForDateTime(_0x2ce68c,_0x476720){return eras(_0x476720)[_0x2ce68c['year']<0x0?0x0:0x1];}function formatRelativeTime(_0x2df944,_0x2d6a5e,_0x67480b='always',_0x114efe=!0x1){const _0x426246={'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.']},_0x36e9f3=-0x1===['hours','minutes','seconds']['indexOf'](_0x2df944);if('auto'===_0x67480b&&_0x36e9f3){const _0x469d9d='days'===_0x2df944;switch(_0x2d6a5e){case 0x1:return _0x469d9d?'tomorrow':'next\x20'+_0x426246[_0x2df944][0x0];case-0x1:return _0x469d9d?'yesterday':'last\x20'+_0x426246[_0x2df944][0x0];case 0x0:return _0x469d9d?'today':'this\x20'+_0x426246[_0x2df944][0x0];}}const _0x16aac3=Object['is'](_0x2d6a5e,-0x0)||_0x2d6a5e<0x0,_0x48208c=Math['abs'](_0x2d6a5e),_0x47a389=0x1===_0x48208c,_0x2c405b=_0x426246[_0x2df944],_0x445ae2=_0x114efe?_0x47a389?_0x2c405b[0x1]:_0x2c405b[0x2]||_0x2c405b[0x1]:_0x47a389?_0x426246[_0x2df944][0x0]:_0x2df944;return _0x16aac3?_0x48208c+'\x20'+_0x445ae2+'\x20ago':'in\x20'+_0x48208c+'\x20'+_0x445ae2;}function stringifyTokens(_0x5eed3e,_0xff753e){let _0x43c54a='';for(const _0x1126c4 of _0x5eed3e)_0x1126c4['literal']?_0x43c54a+=_0x1126c4['val']:_0x43c54a+=_0xff753e(_0x1126c4['val']);return _0x43c54a;}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'](_0x3fae47,_0x46d148={}){return new Formatter(_0x3fae47,_0x46d148);}static['parseFormat'](_0x5525fa){let _0x45668b=null,_0xe59602='',_0x3716a8=!0x1;const _0x1bf50c=[];for(let _0x5681a9=0x0;_0x5681a9<_0x5525fa['length'];_0x5681a9++){const _0x27106f=_0x5525fa['charAt'](_0x5681a9);'\x27'===_0x27106f?(_0xe59602['length']>0x0&&_0x1bf50c['push']({'literal':_0x3716a8||/^\s+$/['test'](_0xe59602),'val':_0xe59602}),_0x45668b=null,_0xe59602='',_0x3716a8=!_0x3716a8):_0x3716a8||_0x27106f===_0x45668b?_0xe59602+=_0x27106f:(_0xe59602['length']>0x0&&_0x1bf50c['push']({'literal':/^\s+$/['test'](_0xe59602),'val':_0xe59602}),_0xe59602=_0x27106f,_0x45668b=_0x27106f);}return _0xe59602['length']>0x0&&_0x1bf50c['push']({'literal':_0x3716a8||/^\s+$/['test'](_0xe59602),'val':_0xe59602}),_0x1bf50c;}static['macroTokenToFormatOpts'](_0x11bc09){return macroTokenToFormatOpts[_0x11bc09];}constructor(_0x28a23c,_0x26c988){this['opts']=_0x26c988,this['loc']=_0x28a23c,this['systemLoc']=null;}['formatWithSystemDefault'](_0x214840,_0x3541f7){return null===this['systemLoc']&&(this['systemLoc']=this['loc']['redefaultToSystem']()),this['systemLoc']['dtFormatter'](_0x214840,{...this['opts'],..._0x3541f7})['format']();}['dtFormatter'](_0x135c7f,_0x1ecf75={}){return this['loc']['dtFormatter'](_0x135c7f,{...this['opts'],..._0x1ecf75});}['formatDateTime'](_0x4c9fd7,_0x1dcedb){return this['dtFormatter'](_0x4c9fd7,_0x1dcedb)['format']();}['formatDateTimeParts'](_0x43e892,_0x52c171){return this['dtFormatter'](_0x43e892,_0x52c171)['formatToParts']();}['formatInterval'](_0x6cda1f,_0x44b64b){return this['dtFormatter'](_0x6cda1f['start'],_0x44b64b)['dtf']['formatRange'](_0x6cda1f['start']['toJSDate'](),_0x6cda1f['end']['toJSDate']());}['resolvedOptions'](_0x103362,_0x547017){return this['dtFormatter'](_0x103362,_0x547017)['resolvedOptions']();}['num'](_0x373afb,_0x3b302e=0x0){if(this['opts']['forceSimple'])return padStart(_0x373afb,_0x3b302e);const _0x59fb23={...this['opts']};return _0x3b302e>0x0&&(_0x59fb23['padTo']=_0x3b302e),this['loc']['numberFormatter'](_0x59fb23)['format'](_0x373afb);}['formatDateTimeFromString'](_0x4c11c7,_0x19609d){const _0x2b754f='en'===this['loc']['listingMode'](),_0xf473ca=this['loc']['outputCalendar']&&'gregory'!==this['loc']['outputCalendar'],_0x550f90=(_0x4849dd,_0x1c72f5)=>this['loc']['extract'](_0x4c11c7,_0x4849dd,_0x1c72f5),_0x3db134=_0x40539f=>_0x4c11c7['isOffsetFixed']&&0x0===_0x4c11c7['offset']&&_0x40539f['allowZ']?'Z':_0x4c11c7['isValid']?_0x4c11c7['zone']['formatOffset'](_0x4c11c7['ts'],_0x40539f['format']):'',_0x1cad4e=(_0x269c18,_0x554f1e)=>_0x2b754f?monthForDateTime(_0x4c11c7,_0x269c18):_0x550f90(_0x554f1e?{'month':_0x269c18}:{'month':_0x269c18,'day':'numeric'},'month'),_0x323151=(_0x576e73,_0x4bfadc)=>_0x2b754f?weekdayForDateTime(_0x4c11c7,_0x576e73):_0x550f90(_0x4bfadc?{'weekday':_0x576e73}:{'weekday':_0x576e73,'month':'long','day':'numeric'},'weekday'),_0x6fc19f=_0x4a30d0=>{const _0x408648=Formatter['macroTokenToFormatOpts'](_0x4a30d0);return _0x408648?this['formatWithSystemDefault'](_0x4c11c7,_0x408648):_0x4a30d0;},_0xac6607=_0xdd4c37=>_0x2b754f?eraForDateTime(_0x4c11c7,_0xdd4c37):_0x550f90({'era':_0xdd4c37},'era');return stringifyTokens(Formatter['parseFormat'](_0x19609d),_0x5d151c=>{switch(_0x5d151c){case'S':return this['num'](_0x4c11c7['millisecond']);case'u':case'SSS':return this['num'](_0x4c11c7['millisecond'],0x3);case's':return this['num'](_0x4c11c7['second']);case'ss':return this['num'](_0x4c11c7['second'],0x2);case'uu':return this['num'](Math['floor'](_0x4c11c7['millisecond']/0xa),0x2);case'uuu':return this['num'](Math['floor'](_0x4c11c7['millisecond']/0x64));case'm':return this['num'](_0x4c11c7['minute']);case'mm':return this['num'](_0x4c11c7['minute'],0x2);case'h':return this['num'](_0x4c11c7['hour']%0xc==0x0?0xc:_0x4c11c7['hour']%0xc);case'hh':return this['num'](_0x4c11c7['hour']%0xc==0x0?0xc:_0x4c11c7['hour']%0xc,0x2);case'H':return this['num'](_0x4c11c7['hour']);case'HH':return this['num'](_0x4c11c7['hour'],0x2);case'Z':return _0x3db134({'format':'narrow','allowZ':this['opts']['allowZ']});case'ZZ':return _0x3db134({'format':'short','allowZ':this['opts']['allowZ']});case'ZZZ':return _0x3db134({'format':'techie','allowZ':this['opts']['allowZ']});case'ZZZZ':return _0x4c11c7['zone']['offsetName'](_0x4c11c7['ts'],{'format':'short','locale':this['loc']['locale']});case'ZZZZZ':return _0x4c11c7['zone']['offsetName'](_0x4c11c7['ts'],{'format':'long','locale':this['loc']['locale']});case'z':return _0x4c11c7['zoneName'];case'a':return _0x2b754f?meridiemForDateTime(_0x4c11c7):_0x550f90({'hour':'numeric','hourCycle':'h12'},'dayperiod');case'd':return _0xf473ca?_0x550f90({'day':'numeric'},'day'):this['num'](_0x4c11c7['day']);case'dd':return _0xf473ca?_0x550f90({'day':'2-digit'},'day'):this['num'](_0x4c11c7['day'],0x2);case'c':case'E':return this['num'](_0x4c11c7['weekday']);case'ccc':return _0x323151('short',!0x0);case'cccc':return _0x323151('long',!0x0);case'ccccc':return _0x323151('narrow',!0x0);case'EEE':return _0x323151('short',!0x1);case'EEEE':return _0x323151('long',!0x1);case'EEEEE':return _0x323151('narrow',!0x1);case'L':return _0xf473ca?_0x550f90({'month':'numeric','day':'numeric'},'month'):this['num'](_0x4c11c7['month']);case'LL':return _0xf473ca?_0x550f90({'month':'2-digit','day':'numeric'},'month'):this['num'](_0x4c11c7['month'],0x2);case'LLL':return _0x1cad4e('short',!0x0);case'LLLL':return _0x1cad4e('long',!0x0);case'LLLLL':return _0x1cad4e('narrow',!0x0);case'M':return _0xf473ca?_0x550f90({'month':'numeric'},'month'):this['num'](_0x4c11c7['month']);case'MM':return _0xf473ca?_0x550f90({'month':'2-digit'},'month'):this['num'](_0x4c11c7['month'],0x2);case'MMM':return _0x1cad4e('short',!0x1);case'MMMM':return _0x1cad4e('long',!0x1);case'MMMMM':return _0x1cad4e('narrow',!0x1);case'y':return _0xf473ca?_0x550f90({'year':'numeric'},'year'):this['num'](_0x4c11c7['year']);case'yy':return _0xf473ca?_0x550f90({'year':'2-digit'},'year'):this['num'](_0x4c11c7['year']['toString']()['slice'](-0x2),0x2);case'yyyy':return _0xf473ca?_0x550f90({'year':'numeric'},'year'):this['num'](_0x4c11c7['year'],0x4);case'yyyyyy':return _0xf473ca?_0x550f90({'year':'numeric'},'year'):this['num'](_0x4c11c7['year'],0x6);case'G':return _0xac6607('short');case'GG':return _0xac6607('long');case'GGGGG':return _0xac6607('narrow');case'kk':return this['num'](_0x4c11c7['weekYear']['toString']()['slice'](-0x2),0x2);case'kkkk':return this['num'](_0x4c11c7['weekYear'],0x4);case'W':return this['num'](_0x4c11c7['weekNumber']);case'WW':return this['num'](_0x4c11c7['weekNumber'],0x2);case'n':return this['num'](_0x4c11c7['localWeekNumber']);case'nn':return this['num'](_0x4c11c7['localWeekNumber'],0x2);case'ii':return this['num'](_0x4c11c7['localWeekYear']['toString']()['slice'](-0x2),0x2);case'iiii':return this['num'](_0x4c11c7['localWeekYear'],0x4);case'o':return this['num'](_0x4c11c7['ordinal']);case'ooo':return this['num'](_0x4c11c7['ordinal'],0x3);case'q':return this['num'](_0x4c11c7['quarter']);case'qq':return this['num'](_0x4c11c7['quarter'],0x2);case'X':return this['num'](Math['floor'](_0x4c11c7['ts']/0x3e8));case'x':return this['num'](_0x4c11c7['ts']);default:return _0x6fc19f(_0x5d151c);}});}['formatDurationFromString'](_0x2dba39,_0x6c4fbc){const _0x226035=_0x526b7b=>{switch(_0x526b7b[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;}},_0x49e310=Formatter['parseFormat'](_0x6c4fbc),_0x4193ab=_0x49e310['reduce']((_0x9faaec,{literal:_0x36c2f3,val:_0x563c94})=>_0x36c2f3?_0x9faaec:_0x9faaec['concat'](_0x563c94),[]),_0x58b414=_0x2dba39['shiftTo'](..._0x4193ab['map'](_0x226035)['filter'](t=>t));return stringifyTokens(_0x49e310,(_0x5a8f0f=>_0x39aa8e=>{const _0x8a86c1=_0x226035(_0x39aa8e);return _0x8a86c1?this['num'](_0x5a8f0f['get'](_0x8a86c1),_0x39aa8e['length']):_0x39aa8e;})(_0x58b414));}}const ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(..._0x5803b9){const _0x571810=_0x5803b9['reduce']((_0x2e8f20,_0x567fe2)=>_0x2e8f20+_0x567fe2['source'],'');return RegExp('^'+_0x571810+'$');}function combineExtractors(..._0x26aeb9){return _0x4d781a=>_0x26aeb9['reduce'](([_0x41a410,_0x45b9fe,_0x45ede7],_0x2bbeae)=>{const [_0x5fd6bd,_0x5d5e48,_0x2ef1ff]=_0x2bbeae(_0x4d781a,_0x45ede7);return[{..._0x41a410,..._0x5fd6bd},_0x5d5e48||_0x45b9fe,_0x2ef1ff];},[{},null,0x1])['slice'](0x0,0x2);}function parse$1(_0x5c75e7,..._0x59881b){if(null==_0x5c75e7)return[null,null];for(const [_0x4a72cd,_0x1a73ef]of _0x59881b){const _0x275df5=_0x4a72cd['exec'](_0x5c75e7);if(_0x275df5)return _0x1a73ef(_0x275df5);}return[null,null];}function simpleParse(..._0x569cb6){return(_0x1e7d3c,_0x216d0c)=>{const _0x5d0dc3={};let _0x5d1ed0;for(_0x5d1ed0=0x0;_0x5d1ed0<_0x569cb6['length'];_0x5d1ed0++)_0x5d0dc3[_0x569cb6[_0x5d1ed0]]=parseInteger(_0x1e7d3c[_0x216d0c+_0x5d1ed0]);return[_0x5d0dc3,null,_0x216d0c+_0x5d1ed0];};}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(_0x3af550,_0x444f68,_0x40f4bd){const _0x3c9e1d=_0x3af550[_0x444f68];return isUndefined(_0x3c9e1d)?_0x40f4bd:parseInteger(_0x3c9e1d);}function extractISOYmd(_0x4a4e41,_0x3da18c){return[{'year':int(_0x4a4e41,_0x3da18c),'month':int(_0x4a4e41,_0x3da18c+0x1,0x1),'day':int(_0x4a4e41,_0x3da18c+0x2,0x1)},null,_0x3da18c+0x3];}function extractISOTime(_0x551fe9,_0xbc8331){return[{'hours':int(_0x551fe9,_0xbc8331,0x0),'minutes':int(_0x551fe9,_0xbc8331+0x1,0x0),'seconds':int(_0x551fe9,_0xbc8331+0x2,0x0),'milliseconds':parseMillis(_0x551fe9[_0xbc8331+0x3])},null,_0xbc8331+0x4];}function extractISOOffset(_0x4bf253,_0x43e4ee){const _0x150033=!_0x4bf253[_0x43e4ee]&&!_0x4bf253[_0x43e4ee+0x1],_0x3fe4f1=signedOffset(_0x4bf253[_0x43e4ee+0x1],_0x4bf253[_0x43e4ee+0x2]);return[{},_0x150033?null:FixedOffsetZone['instance'](_0x3fe4f1),_0x43e4ee+0x3];}function extractIANAZone(_0x569656,_0x3ab1fb){return[{},_0x569656[_0x3ab1fb]?IANAZone['create'](_0x569656[_0x3ab1fb]):null,_0x3ab1fb+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(_0x3add88){const [_0x11e6aa,_0x5d3756,_0x5832c7,_0xd03e37,_0x43bfc1,_0x56c773,_0x4dedd8,_0x525a95,_0x4a5255]=_0x3add88,_0x2c0848='-'===_0x11e6aa[0x0],_0x13a5bd=_0x525a95&&'-'===_0x525a95[0x0],_0x536c28=(_0x26cb5e,_0x67d0d3=!0x1)=>void 0x0!==_0x26cb5e&&(_0x67d0d3||_0x26cb5e&&_0x2c0848)?-_0x26cb5e:_0x26cb5e;return[{'years':_0x536c28(parseFloating(_0x5d3756)),'months':_0x536c28(parseFloating(_0x5832c7)),'weeks':_0x536c28(parseFloating(_0xd03e37)),'days':_0x536c28(parseFloating(_0x43bfc1)),'hours':_0x536c28(parseFloating(_0x56c773)),'minutes':_0x536c28(parseFloating(_0x4dedd8)),'seconds':_0x536c28(parseFloating(_0x525a95),'-0'===_0x525a95),'milliseconds':_0x536c28(parseMillis(_0x4a5255),_0x13a5bd)}];}const obsOffsets={'GMT':0x0,'EDT':-0xf0,'EST':-0x12c,'CDT':-0x12c,'CST':-0x168,'MDT':-0x168,'MST':-0x1a4,'PDT':-0x1a4,'PST':-0x1e0};function fromStrings(_0x1afa88,_0xcb73ce,_0x346e22,_0x2d9017,_0xabf822,_0x442701,_0x522aa4){const _0x39a7e0={'year':0x2===_0xcb73ce['length']?untruncateYear(parseInteger(_0xcb73ce)):parseInteger(_0xcb73ce),'month':monthsShort['indexOf'](_0x346e22)+0x1,'day':parseInteger(_0x2d9017),'hour':parseInteger(_0xabf822),'minute':parseInteger(_0x442701)};return _0x522aa4&&(_0x39a7e0['second']=parseInteger(_0x522aa4)),_0x1afa88&&(_0x39a7e0['weekday']=_0x1afa88['length']>0x3?weekdaysLong['indexOf'](_0x1afa88)+0x1:weekdaysShort['indexOf'](_0x1afa88)+0x1),_0x39a7e0;}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(_0x1c3a27){const [,_0x3829aa,_0x44d5b3,_0x42dd67,_0x5539da,_0x20f590,_0x598025,_0x3ac8c3,_0x4d2a6d,_0x520358,_0x571272,_0x517ef0]=_0x1c3a27,_0x15f591=fromStrings(_0x3829aa,_0x5539da,_0x42dd67,_0x44d5b3,_0x20f590,_0x598025,_0x3ac8c3);let _0x3b3370;return _0x3b3370=_0x4d2a6d?obsOffsets[_0x4d2a6d]:_0x520358?0x0:signedOffset(_0x571272,_0x517ef0),[_0x15f591,new FixedOffsetZone(_0x3b3370)];}function preprocessRFC2822(_0x12d966){return _0x12d966['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(_0x3fdb15){const [,_0x6f20b8,_0x436c79,_0x59167b,_0x6b07fe,_0xe6dd23,_0x1357a3,_0x3df621]=_0x3fdb15;return[fromStrings(_0x6f20b8,_0x6b07fe,_0x59167b,_0x436c79,_0xe6dd23,_0x1357a3,_0x3df621),FixedOffsetZone['utcInstance']];}function extractASCII(_0x533d80){const [,_0x3b8aab,_0x5791b4,_0x1ccc8f,_0x10cb99,_0x215a58,_0x2f3531,_0x2c0dbb]=_0x533d80;return[fromStrings(_0x3b8aab,_0x2c0dbb,_0x5791b4,_0x1ccc8f,_0x10cb99,_0x215a58,_0x2f3531),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(_0x1c22a5){return parse$1(_0x1c22a5,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset]);}function parseRFC2822Date(_0x2a0647){return parse$1(preprocessRFC2822(_0x2a0647),[rfc2822,extractRFC2822]);}function parseHTTPDate(_0x46695b){return parse$1(_0x46695b,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII]);}function parseISODuration(_0x733c08){return parse$1(_0x733c08,[isoDuration,extractISODuration]);}const extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(_0x1d37d1){return parse$1(_0x1d37d1,[isoTimeOnly,extractISOTimeOnly]);}const sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(_0x3b5529){return parse$1(_0x3b5529,[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(_0x5036e8,_0x77db26,_0x5c373f=!0x1){const _0xc113e4={'values':_0x5c373f?_0x77db26['values']:{..._0x5036e8['values'],..._0x77db26['values']||{}},'loc':_0x5036e8['loc']['clone'](_0x77db26['loc']),'conversionAccuracy':_0x77db26['conversionAccuracy']||_0x5036e8['conversionAccuracy'],'matrix':_0x77db26['matrix']||_0x5036e8['matrix']};return new Duration(_0xc113e4);}function durationToMillis(_0x315114,_0x5abb64){let _0x2c0327=_0x5abb64['milliseconds']??0x0;for(const _0x39ee17 of reverseUnits['slice'](0x1))_0x5abb64[_0x39ee17]&&(_0x2c0327+=_0x5abb64[_0x39ee17]*_0x315114[_0x39ee17]['milliseconds']);return _0x2c0327;}function normalizeValues(_0x2d0d50,_0x481924){const _0x384bd6=durationToMillis(_0x2d0d50,_0x481924)<0x0?-0x1:0x1;orderedUnits$1['reduceRight']((_0xdb743a,_0x36271c)=>{if(isUndefined(_0x481924[_0x36271c]))return _0xdb743a;if(_0xdb743a){const _0x2b4b38=_0x481924[_0xdb743a]*_0x384bd6,_0x3d5df8=_0x2d0d50[_0x36271c][_0xdb743a],_0x4da7dd=Math['floor'](_0x2b4b38/_0x3d5df8);_0x481924[_0x36271c]+=_0x4da7dd*_0x384bd6,_0x481924[_0xdb743a]-=_0x4da7dd*_0x3d5df8*_0x384bd6;}return _0x36271c;},null),orderedUnits$1['reduce']((_0x39e745,_0x18db99)=>{if(isUndefined(_0x481924[_0x18db99]))return _0x39e745;if(_0x39e745){const _0xb28e77=_0x481924[_0x39e745]%0x1;_0x481924[_0x39e745]-=_0xb28e77,_0x481924[_0x18db99]+=_0xb28e77*_0x2d0d50[_0x39e745][_0x18db99];}return _0x18db99;},null);}function removeZeroes(_0x5a5397){const _0x5dc158={};for(const [_0x6cc753,_0x30cbfa]of Object['entries'](_0x5a5397))0x0!==_0x30cbfa&&(_0x5dc158[_0x6cc753]=_0x30cbfa);return _0x5dc158;}class Duration{constructor(_0x170d39){const _0x35d2d9='longterm'===_0x170d39['conversionAccuracy']||!0x1;let _0x594ae1=_0x35d2d9?accurateMatrix:casualMatrix;_0x170d39['matrix']&&(_0x594ae1=_0x170d39['matrix']),this['values']=_0x170d39['values'],this['loc']=_0x170d39['loc']||Locale['create'](),this['conversionAccuracy']=_0x35d2d9?'longterm':'casual',this['invalid']=_0x170d39['invalid']||null,this['matrix']=_0x594ae1,this['isLuxonDuration']=!0x0;}static['fromMillis'](_0x11246f,_0x2acd64){return Duration['fromObject']({'milliseconds':_0x11246f},_0x2acd64);}static['fromObject'](_0x4110c3,_0x489c9a={}){if(null==_0x4110c3||'object'!=typeof _0x4110c3)throw new InvalidArgumentError('Duration.fromObject:\x20argument\x20expected\x20to\x20be\x20an\x20object,\x20got\x20'+(null===_0x4110c3?'null':typeof _0x4110c3));return new Duration({'values':normalizeObject(_0x4110c3,Duration['normalizeUnit']),'loc':Locale['fromObject'](_0x489c9a),'conversionAccuracy':_0x489c9a['conversionAccuracy'],'matrix':_0x489c9a['matrix']});}static['fromDurationLike'](_0x2d3571){if(isNumber(_0x2d3571))return Duration['fromMillis'](_0x2d3571);if(Duration['isDuration'](_0x2d3571))return _0x2d3571;if('object'==typeof _0x2d3571)return Duration['fromObject'](_0x2d3571);throw new InvalidArgumentError('Unknown\x20duration\x20argument\x20'+_0x2d3571+'\x20of\x20type\x20'+typeof _0x2d3571);}static['fromISO'](_0x16c65c,_0x57eacb){const [_0x26e743]=parseISODuration(_0x16c65c);return _0x26e743?Duration['fromObject'](_0x26e743,_0x57eacb):Duration['invalid']('unparsable','the\x20input\x20\x22'+_0x16c65c+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['fromISOTime'](_0x38e837,_0xb6be58){const [_0x374686]=parseISOTimeOnly(_0x38e837);return _0x374686?Duration['fromObject'](_0x374686,_0xb6be58):Duration['invalid']('unparsable','the\x20input\x20\x22'+_0x38e837+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['invalid'](_0xe3d414,_0xe4d9e1=null){if(!_0xe3d414)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20Duration\x20is\x20invalid');const _0x45f92f=_0xe3d414 instanceof Invalid?_0xe3d414:new Invalid(_0xe3d414,_0xe4d9e1);if(Settings['throwOnInvalid'])throw new InvalidDurationError(_0x45f92f);return new Duration({'invalid':_0x45f92f});}static['normalizeUnit'](_0xe3d2ec){const _0xa0f63d={'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'}[_0xe3d2ec?_0xe3d2ec['toLowerCase']():_0xe3d2ec];if(!_0xa0f63d)throw new InvalidUnitError(_0xe3d2ec);return _0xa0f63d;}static['isDuration'](_0x34c873){return _0x34c873&&_0x34c873['isLuxonDuration']||!0x1;}get['locale'](){return this['isValid']?this['loc']['locale']:null;}get['numberingSystem'](){return this['isValid']?this['loc']['numberingSystem']:null;}['toFormat'](_0xdd5e25,_0x26dacd={}){const _0x2eda83={..._0x26dacd,'floor':!0x1!==_0x26dacd['round']&&!0x1!==_0x26dacd['floor']};return this['isValid']?Formatter['create'](this['loc'],_0x2eda83)['formatDurationFromString'](this,_0xdd5e25):INVALID$2;}['toHuman'](_0x3bb7de={}){if(!this['isValid'])return INVALID$2;const _0x463c2c=orderedUnits$1['map'](_0x458a3d=>{const _0x10dde6=this['values'][_0x458a3d];return isUndefined(_0x10dde6)?null:this['loc']['numberFormatter']({'style':'unit','unitDisplay':'long',..._0x3bb7de,'unit':_0x458a3d['slice'](0x0,-0x1)})['format'](_0x10dde6);})['filter'](_0x207bd4=>_0x207bd4);return this['loc']['listFormatter']({'type':'conjunction','style':_0x3bb7de['listStyle']||'narrow',..._0x3bb7de})['format'](_0x463c2c);}['toObject'](){return this['isValid']?{...this['values']}:{};}['toISO'](){if(!this['isValid'])return null;let _0x2354b3='P';return 0x0!==this['years']&&(_0x2354b3+=this['years']+'Y'),0x0===this['months']&&0x0===this['quarters']||(_0x2354b3+=this['months']+0x3*this['quarters']+'M'),0x0!==this['weeks']&&(_0x2354b3+=this['weeks']+'W'),0x0!==this['days']&&(_0x2354b3+=this['days']+'D'),0x0===this['hours']&&0x0===this['minutes']&&0x0===this['seconds']&&0x0===this['milliseconds']||(_0x2354b3+='T'),0x0!==this['hours']&&(_0x2354b3+=this['hours']+'H'),0x0!==this['minutes']&&(_0x2354b3+=this['minutes']+'M'),0x0===this['seconds']&&0x0===this['milliseconds']||(_0x2354b3+=roundTo(this['seconds']+this['milliseconds']/0x3e8,0x3)+'S'),'P'===_0x2354b3&&(_0x2354b3+='T0S'),_0x2354b3;}['toISOTime'](_0x6b8a78={}){if(!this['isValid'])return null;const _0x4d7529=this['toMillis']();if(_0x4d7529<0x0||_0x4d7529>=0x5265c00)return null;return _0x6b8a78={'suppressMilliseconds':!0x1,'suppressSeconds':!0x1,'includePrefix':!0x1,'format':'extended',..._0x6b8a78,'includeOffset':!0x1},DateTime['fromMillis'](_0x4d7529,{'zone':'UTC'})['toISOTime'](_0x6b8a78);}['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'](_0x16bccc){if(!this['isValid'])return this;const _0x33649e=Duration['fromDurationLike'](_0x16bccc),_0x14d740={};for(const _0x26c6b6 of orderedUnits$1)(hasOwnProperty(_0x33649e['values'],_0x26c6b6)||hasOwnProperty(this['values'],_0x26c6b6))&&(_0x14d740[_0x26c6b6]=_0x33649e['get'](_0x26c6b6)+this['get'](_0x26c6b6));return clone$1(this,{'values':_0x14d740},!0x0);}['minus'](_0x308aa9){if(!this['isValid'])return this;const _0x57e83f=Duration['fromDurationLike'](_0x308aa9);return this['plus'](_0x57e83f['negate']());}['mapUnits'](_0x461807){if(!this['isValid'])return this;const _0x421772={};for(const _0x58130d of Object['keys'](this['values']))_0x421772[_0x58130d]=asNumber$1(_0x461807(this['values'][_0x58130d],_0x58130d));return clone$1(this,{'values':_0x421772},!0x0);}['get'](_0x56c8cc){return this[Duration['normalizeUnit'](_0x56c8cc)];}['set'](_0x42450f){if(!this['isValid'])return this;return clone$1(this,{'values':{...this['values'],...normalizeObject(_0x42450f,Duration['normalizeUnit'])}});}['reconfigure']({locale:_0x5c3906,numberingSystem:_0x3a4f9d,conversionAccuracy:_0x355bc7,matrix:_0x32c8fe}={}){return clone$1(this,{'loc':this['loc']['clone']({'locale':_0x5c3906,'numberingSystem':_0x3a4f9d}),'matrix':_0x32c8fe,'conversionAccuracy':_0x355bc7});}['as'](_0x4edb77){return this['isValid']?this['shiftTo'](_0x4edb77)['get'](_0x4edb77):NaN;}['normalize'](){if(!this['isValid'])return this;const _0x5cdf09=this['toObject']();return normalizeValues(this['matrix'],_0x5cdf09),clone$1(this,{'values':_0x5cdf09},!0x0);}['rescale'](){if(!this['isValid'])return this;return clone$1(this,{'values':removeZeroes(this['normalize']()['shiftToAll']()['toObject']())},!0x0);}['shiftTo'](..._0x3c6602){if(!this['isValid'])return this;if(0x0===_0x3c6602['length'])return this;_0x3c6602=_0x3c6602['map'](_0x7c0ba6=>Duration['normalizeUnit'](_0x7c0ba6));const _0x507419={},_0x26acf8={},_0x261553=this['toObject']();let _0x3176da;for(const _0x290fee of orderedUnits$1)if(_0x3c6602['indexOf'](_0x290fee)>=0x0){_0x3176da=_0x290fee;let _0x5928b4=0x0;for(const _0x486ecc in _0x26acf8)_0x5928b4+=this['matrix'][_0x486ecc][_0x290fee]*_0x26acf8[_0x486ecc],_0x26acf8[_0x486ecc]=0x0;isNumber(_0x261553[_0x290fee])&&(_0x5928b4+=_0x261553[_0x290fee]);const _0x57c72f=Math['trunc'](_0x5928b4);_0x507419[_0x290fee]=_0x57c72f,_0x26acf8[_0x290fee]=(0x3e8*_0x5928b4-0x3e8*_0x57c72f)/0x3e8;}else isNumber(_0x261553[_0x290fee])&&(_0x26acf8[_0x290fee]=_0x261553[_0x290fee]);for(const _0x463597 in _0x26acf8)0x0!==_0x26acf8[_0x463597]&&(_0x507419[_0x3176da]+=_0x463597===_0x3176da?_0x26acf8[_0x463597]:_0x26acf8[_0x463597]/this['matrix'][_0x3176da][_0x463597]);return normalizeValues(this['matrix'],_0x507419),clone$1(this,{'values':_0x507419},!0x0);}['shiftToAll'](){return this['isValid']?this['shiftTo']('years','months','weeks','days','hours','minutes','seconds','milliseconds'):this;}['negate'](){if(!this['isValid'])return this;const _0x4b7216={};for(const _0x1b253c of Object['keys'](this['values']))_0x4b7216[_0x1b253c]=0x0===this['values'][_0x1b253c]?0x0:-this['values'][_0x1b253c];return clone$1(this,{'values':_0x4b7216},!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'](_0x40a02d){if(!this['isValid']||!_0x40a02d['isValid'])return!0x1;if(!this['loc']['equals'](_0x40a02d['loc']))return!0x1;function _0x235530(_0x5e0b3c,_0x1a9f3e){return void 0x0===_0x5e0b3c||0x0===_0x5e0b3c?void 0x0===_0x1a9f3e||0x0===_0x1a9f3e:_0x5e0b3c===_0x1a9f3e;}for(const _0x2ab29e of orderedUnits$1)if(!_0x235530(this['values'][_0x2ab29e],_0x40a02d['values'][_0x2ab29e]))return!0x1;return!0x0;}}const INVALID$1='Invalid\x20Interval';function validateStartEnd(_0xfe4119,_0xc3ac59){return _0xfe4119&&_0xfe4119['isValid']?_0xc3ac59&&_0xc3ac59['isValid']?_0xc3ac59<_0xfe4119?Interval['invalid']('end\x20before\x20start','The\x20end\x20of\x20an\x20interval\x20must\x20be\x20after\x20its\x20start,\x20but\x20you\x20had\x20start='+_0xfe4119['toISO']()+'\x20and\x20end='+_0xc3ac59['toISO']()):null:Interval['invalid']('missing\x20or\x20invalid\x20end'):Interval['invalid']('missing\x20or\x20invalid\x20start');}class Interval{constructor(_0x39212b){this['s']=_0x39212b['start'],this['e']=_0x39212b['end'],this['invalid']=_0x39212b['invalid']||null,this['isLuxonInterval']=!0x0;}static['invalid'](_0x52b7ad,_0x226323=null){if(!_0x52b7ad)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20Interval\x20is\x20invalid');const _0x5d7c34=_0x52b7ad instanceof Invalid?_0x52b7ad:new Invalid(_0x52b7ad,_0x226323);if(Settings['throwOnInvalid'])throw new InvalidIntervalError(_0x5d7c34);return new Interval({'invalid':_0x5d7c34});}static['fromDateTimes'](_0x2d5173,_0x404253){const _0x47b3fd=friendlyDateTime(_0x2d5173),_0x26b370=friendlyDateTime(_0x404253),_0x55f25d=validateStartEnd(_0x47b3fd,_0x26b370);return null==_0x55f25d?new Interval({'start':_0x47b3fd,'end':_0x26b370}):_0x55f25d;}static['after'](_0x324b7c,_0x5a2533){const _0x53e260=Duration['fromDurationLike'](_0x5a2533),_0x2030eb=friendlyDateTime(_0x324b7c);return Interval['fromDateTimes'](_0x2030eb,_0x2030eb['plus'](_0x53e260));}static['before'](_0x47919b,_0x4f756e){const _0x273d09=Duration['fromDurationLike'](_0x4f756e),_0x124f8e=friendlyDateTime(_0x47919b);return Interval['fromDateTimes'](_0x124f8e['minus'](_0x273d09),_0x124f8e);}static['fromISO'](_0x1c04c1,_0x39d4e4){const [_0x262fe8,_0x2612c0]=(_0x1c04c1||'')['split']('/',0x2);if(_0x262fe8&&_0x2612c0){let _0x5ca173,_0x59a2c2,_0x18c1a5,_0x4ee056;try{_0x5ca173=DateTime['fromISO'](_0x262fe8,_0x39d4e4),_0x59a2c2=_0x5ca173['isValid'];}catch(_0x5361f8){_0x59a2c2=!0x1;}try{_0x18c1a5=DateTime['fromISO'](_0x2612c0,_0x39d4e4),_0x4ee056=_0x18c1a5['isValid'];}catch(_0x307af4){_0x4ee056=!0x1;}if(_0x59a2c2&&_0x4ee056)return Interval['fromDateTimes'](_0x5ca173,_0x18c1a5);if(_0x59a2c2){const _0x4973dd=Duration['fromISO'](_0x2612c0,_0x39d4e4);if(_0x4973dd['isValid'])return Interval['after'](_0x5ca173,_0x4973dd);}else{if(_0x4ee056){const _0x160644=Duration['fromISO'](_0x262fe8,_0x39d4e4);if(_0x160644['isValid'])return Interval['before'](_0x18c1a5,_0x160644);}}}return Interval['invalid']('unparsable','the\x20input\x20\x22'+_0x1c04c1+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['isInterval'](_0x2ef04c){return _0x2ef04c&&_0x2ef04c['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'](_0x2e6369='milliseconds'){return this['isValid']?this['toDuration'](_0x2e6369)['get'](_0x2e6369):NaN;}['count'](_0xc9ba62='milliseconds',_0x5c9347){if(!this['isValid'])return NaN;const _0x1dceb6=this['start']['startOf'](_0xc9ba62,_0x5c9347);let _0x117c88;return _0x117c88=_0x5c9347?.['useLocaleWeeks']?this['end']['reconfigure']({'locale':_0x1dceb6['locale']}):this['end'],_0x117c88=_0x117c88['startOf'](_0xc9ba62,_0x5c9347),Math['floor'](_0x117c88['diff'](_0x1dceb6,_0xc9ba62)['get'](_0xc9ba62))+(_0x117c88['valueOf']()!==this['end']['valueOf']());}['hasSame'](_0x30f914){return!!this['isValid']&&(this['isEmpty']()||this['e']['minus'](0x1)['hasSame'](this['s'],_0x30f914));}['isEmpty'](){return this['s']['valueOf']()===this['e']['valueOf']();}['isAfter'](_0x5211cc){return!!this['isValid']&&this['s']>_0x5211cc;}['isBefore'](_0x54a830){return!!this['isValid']&&this['e']<=_0x54a830;}['contains'](_0x249f61){return!!this['isValid']&&(this['s']<=_0x249f61&&this['e']>_0x249f61);}['set']({start:_0x495c40,end:_0x3018ae}={}){return this['isValid']?Interval['fromDateTimes'](_0x495c40||this['s'],_0x3018ae||this['e']):this;}['splitAt'](..._0x4ff3b9){if(!this['isValid'])return[];const _0x248bf0=_0x4ff3b9['map'](friendlyDateTime)['filter'](_0x5997e8=>this['contains'](_0x5997e8))['sort']((_0x4921f2,_0x4fcfc9)=>_0x4921f2['toMillis']()-_0x4fcfc9['toMillis']()),_0x49c167=[];let {s:_0x1e0c90}=this,_0x331ef8=0x0;for(;_0x1e0c90<this['e'];){const _0x1ed5ea=_0x248bf0[_0x331ef8]||this['e'],_0x450df9=+_0x1ed5ea>+this['e']?this['e']:_0x1ed5ea;_0x49c167['push'](Interval['fromDateTimes'](_0x1e0c90,_0x450df9)),_0x1e0c90=_0x450df9,_0x331ef8+=0x1;}return _0x49c167;}['splitBy'](_0x56837a){const _0x3ad48e=Duration['fromDurationLike'](_0x56837a);if(!this['isValid']||!_0x3ad48e['isValid']||0x0===_0x3ad48e['as']('milliseconds'))return[];let _0x55de51,{s:_0x590262}=this,_0x142b6d=0x1;const _0x4e1f89=[];for(;_0x590262<this['e'];){const _0x249055=this['start']['plus'](_0x3ad48e['mapUnits'](_0x529851=>_0x529851*_0x142b6d));_0x55de51=+_0x249055>+this['e']?this['e']:_0x249055,_0x4e1f89['push'](Interval['fromDateTimes'](_0x590262,_0x55de51)),_0x590262=_0x55de51,_0x142b6d+=0x1;}return _0x4e1f89;}['divideEqually'](_0x54ce22){return this['isValid']?this['splitBy'](this['length']()/_0x54ce22)['slice'](0x0,_0x54ce22):[];}['overlaps'](_0x447970){return this['e']>_0x447970['s']&&this['s']<_0x447970['e'];}['abutsStart'](_0x5cc14a){return!!this['isValid']&&+this['e']===+_0x5cc14a['s'];}['abutsEnd'](_0x353e5c){return!!this['isValid']&&+_0x353e5c['e']===+this['s'];}['engulfs'](_0x1f371c){return!!this['isValid']&&(this['s']<=_0x1f371c['s']&&this['e']>=_0x1f371c['e']);}['equals'](_0x1c0ce1){return!(!this['isValid']||!_0x1c0ce1['isValid'])&&(this['s']['equals'](_0x1c0ce1['s'])&&this['e']['equals'](_0x1c0ce1['e']));}['intersection'](_0x47c2c5){if(!this['isValid'])return this;const _0x4e89a5=this['s']>_0x47c2c5['s']?this['s']:_0x47c2c5['s'],_0x22261b=this['e']<_0x47c2c5['e']?this['e']:_0x47c2c5['e'];return _0x4e89a5>=_0x22261b?null:Interval['fromDateTimes'](_0x4e89a5,_0x22261b);}['union'](_0xc898cd){if(!this['isValid'])return this;const _0x3bdd82=this['s']<_0xc898cd['s']?this['s']:_0xc898cd['s'],_0x1f7987=this['e']>_0xc898cd['e']?this['e']:_0xc898cd['e'];return Interval['fromDateTimes'](_0x3bdd82,_0x1f7987);}static['merge'](_0x4d89bc){const [_0x4d4852,_0xe29236]=_0x4d89bc['sort']((_0x3b8f34,_0x107164)=>_0x3b8f34['s']-_0x107164['s'])['reduce'](([_0x219423,_0x3f5dac],_0x393d7f)=>_0x3f5dac?_0x3f5dac['overlaps'](_0x393d7f)||_0x3f5dac['abutsStart'](_0x393d7f)?[_0x219423,_0x3f5dac['union'](_0x393d7f)]:[_0x219423['concat']([_0x3f5dac]),_0x393d7f]:[_0x219423,_0x393d7f],[[],null]);return _0xe29236&&_0x4d4852['push'](_0xe29236),_0x4d4852;}static['xor'](_0x1570a8){let _0x447211=null,_0x1b51c6=0x0;const _0x3cd124=[],_0x4c664a=_0x1570a8['map'](_0x1d01d4=>[{'time':_0x1d01d4['s'],'type':'s'},{'time':_0x1d01d4['e'],'type':'e'}]),_0x41531f=Array['prototype']['concat'](..._0x4c664a)['sort']((_0x2d8a38,_0x12344e)=>_0x2d8a38['time']-_0x12344e['time']);for(const _0x5bbc13 of _0x41531f)_0x1b51c6+='s'===_0x5bbc13['type']?0x1:-0x1,0x1===_0x1b51c6?_0x447211=_0x5bbc13['time']:(_0x447211&&+_0x447211!==+_0x5bbc13['time']&&_0x3cd124['push'](Interval['fromDateTimes'](_0x447211,_0x5bbc13['time'])),_0x447211=null);return Interval['merge'](_0x3cd124);}['difference'](..._0x2819e9){return Interval['xor']([this]['concat'](_0x2819e9))['map'](_0x3c23a3=>this['intersection'](_0x3c23a3))['filter'](_0x869525=>_0x869525&&!_0x869525['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'](_0x2cfd65=DATE_SHORT,_0x3f8c03={}){return this['isValid']?Formatter['create'](this['s']['loc']['clone'](_0x3f8c03),_0x2cfd65)['formatInterval'](this):INVALID$1;}['toISO'](_0x2d9b31){return this['isValid']?this['s']['toISO'](_0x2d9b31)+'/'+this['e']['toISO'](_0x2d9b31):INVALID$1;}['toISODate'](){return this['isValid']?this['s']['toISODate']()+'/'+this['e']['toISODate']():INVALID$1;}['toISOTime'](_0x5792a0){return this['isValid']?this['s']['toISOTime'](_0x5792a0)+'/'+this['e']['toISOTime'](_0x5792a0):INVALID$1;}['toFormat'](_0x10ba3a,{separator:_0x3f89d7='\x20–\x20'}={}){return this['isValid']?''+this['s']['toFormat'](_0x10ba3a)+_0x3f89d7+this['e']['toFormat'](_0x10ba3a):INVALID$1;}['toDuration'](_0x5cd6da,_0x5a628b){return this['isValid']?this['e']['diff'](this['s'],_0x5cd6da,_0x5a628b):Duration['invalid'](this['invalidReason']);}['mapEndpoints'](_0x237d8b){return Interval['fromDateTimes'](_0x237d8b(this['s']),_0x237d8b(this['e']));}}class Info{static['hasDST'](_0x398ce6=Settings['defaultZone']){const _0x44e945=DateTime['now']()['setZone'](_0x398ce6)['set']({'month':0xc});return!_0x398ce6['isUniversal']&&_0x44e945['offset']!==_0x44e945['set']({'month':0x6})['offset'];}static['isValidIANAZone'](_0x2f81a9){return IANAZone['isValidZone'](_0x2f81a9);}static['normalizeZone'](_0xbb62bc){return normalizeZone(_0xbb62bc,Settings['defaultZone']);}static['getStartOfWeek']({locale:_0x571492=null,locObj:_0x1c0c0c=null}={}){return(_0x1c0c0c||Locale['create'](_0x571492))['getStartOfWeek']();}static['getMinimumDaysInFirstWeek']({locale:_0x386883=null,locObj:_0x5dabaf=null}={}){return(_0x5dabaf||Locale['create'](_0x386883))['getMinDaysInFirstWeek']();}static['getWeekendWeekdays']({locale:_0x2f516b=null,locObj:_0x370635=null}={}){return(_0x370635||Locale['create'](_0x2f516b))['getWeekendDays']()['slice']();}static['months'](_0x29283d='long',{locale:_0x16419e=null,numberingSystem:_0x1001e7=null,locObj:_0x2b7554=null,outputCalendar:_0x230faf='gregory'}={}){return(_0x2b7554||Locale['create'](_0x16419e,_0x1001e7,_0x230faf))['months'](_0x29283d);}static['monthsFormat'](_0x352b83='long',{locale:_0x31650c=null,numberingSystem:_0x3064de=null,locObj:_0x57ef7c=null,outputCalendar:_0x33f055='gregory'}={}){return(_0x57ef7c||Locale['create'](_0x31650c,_0x3064de,_0x33f055))['months'](_0x352b83,!0x0);}static['weekdays'](_0x2f76ff='long',{locale:_0x51e0bd=null,numberingSystem:_0x3f89f6=null,locObj:_0x5a5a18=null}={}){return(_0x5a5a18||Locale['create'](_0x51e0bd,_0x3f89f6,null))['weekdays'](_0x2f76ff);}static['weekdaysFormat'](_0x535366='long',{locale:_0x2d8db5=null,numberingSystem:_0x201c2b=null,locObj:_0x2f15df=null}={}){return(_0x2f15df||Locale['create'](_0x2d8db5,_0x201c2b,null))['weekdays'](_0x535366,!0x0);}static['meridiems']({locale:_0x43d25a=null}={}){return Locale['create'](_0x43d25a)['meridiems']();}static['eras'](_0x149cf4='short',{locale:_0x4de3c1=null}={}){return Locale['create'](_0x4de3c1,null,'gregory')['eras'](_0x149cf4);}static['features'](){return{'relative':hasRelative(),'localeWeek':hasLocaleWeekInfo()};}}function dayDiff(_0x193b2d,_0x249002){const _0x3f9412=_0x51bb08=>_0x51bb08['toUTC'](0x0,{'keepLocalTime':!0x0})['startOf']('day')['valueOf'](),_0x2c8e6c=_0x3f9412(_0x249002)-_0x3f9412(_0x193b2d);return Math['floor'](Duration['fromMillis'](_0x2c8e6c)['as']('days'));}function highOrderDiffs(_0x293f60,_0x50a80b,_0x1db902){const _0x1d3638=[['years',(_0x204597,_0x49e2f1)=>_0x49e2f1['year']-_0x204597['year']],['quarters',(_0x38062a,_0x7bc2f7)=>_0x7bc2f7['quarter']-_0x38062a['quarter']+0x4*(_0x7bc2f7['year']-_0x38062a['year'])],['months',(_0x5f4312,_0x7f4da0)=>_0x7f4da0['month']-_0x5f4312['month']+0xc*(_0x7f4da0['year']-_0x5f4312['year'])],['weeks',(_0x386cbd,_0x2e5a31)=>{const _0x4b8153=dayDiff(_0x386cbd,_0x2e5a31);return(_0x4b8153-_0x4b8153%0x7)/0x7;}],['days',dayDiff]],_0x191c3e={},_0x5a78ed=_0x293f60;let _0x4aae82,_0x578a82;for(const [_0x3209e6,_0x5c8a7f]of _0x1d3638)_0x1db902['indexOf'](_0x3209e6)>=0x0&&(_0x4aae82=_0x3209e6,_0x191c3e[_0x3209e6]=_0x5c8a7f(_0x293f60,_0x50a80b),_0x578a82=_0x5a78ed['plus'](_0x191c3e),_0x578a82>_0x50a80b?(_0x191c3e[_0x3209e6]--,(_0x293f60=_0x5a78ed['plus'](_0x191c3e))>_0x50a80b&&(_0x578a82=_0x293f60,_0x191c3e[_0x3209e6]--,_0x293f60=_0x5a78ed['plus'](_0x191c3e))):_0x293f60=_0x578a82);return[_0x293f60,_0x191c3e,_0x578a82,_0x4aae82];}function diff(_0x54b1b3,_0x499c09,_0x518df1,_0xa03d4a){let [_0x5a35c2,_0x3ef533,_0x270ae6,_0x12e62a]=highOrderDiffs(_0x54b1b3,_0x499c09,_0x518df1);const _0x457d01=_0x499c09-_0x5a35c2,_0x3e4ff8=_0x518df1['filter'](_0x518723=>['hours','minutes','seconds','milliseconds']['indexOf'](_0x518723)>=0x0);0x0===_0x3e4ff8['length']&&(_0x270ae6<_0x499c09&&(_0x270ae6=_0x5a35c2['plus']({[_0x12e62a]:0x1})),_0x270ae6!==_0x5a35c2&&(_0x3ef533[_0x12e62a]=(_0x3ef533[_0x12e62a]||0x0)+_0x457d01/(_0x270ae6-_0x5a35c2)));const _0x1fe1dd=Duration['fromObject'](_0x3ef533,_0xa03d4a);return _0x3e4ff8['length']>0x0?Duration['fromMillis'](_0x457d01,_0xa03d4a)['shiftTo'](..._0x3e4ff8)['plus'](_0x1fe1dd):_0x1fe1dd;}const MISSING_FTP='missing\x20Intl.DateTimeFormat.formatToParts\x20support';function intUnit(_0x526d60,_0x35a6a3=_0x1d3388=>_0x1d3388){return{'regex':_0x526d60,'deser':([_0x167f7e])=>_0x35a6a3(parseDigits(_0x167f7e))};}const NBSP=String['fromCharCode'](0xa0),spaceOrNBSP='[\x20'+NBSP+']',spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,'g');function fixListRegex(_0x2f2177){return _0x2f2177['replace'](/\./g,'\x5c.?')['replace'](spaceOrNBSPRegExp,spaceOrNBSP);}function stripInsensitivities(_0x160481){return _0x160481['replace'](/\./g,'')['replace'](spaceOrNBSPRegExp,'\x20')['toLowerCase']();}function oneOf(_0x1917f0,_0x5af45b){return null===_0x1917f0?null:{'regex':RegExp(_0x1917f0['map'](fixListRegex)['join']('|')),'deser':([_0xdb97f8])=>_0x1917f0['findIndex'](_0x50cdd6=>stripInsensitivities(_0xdb97f8)===stripInsensitivities(_0x50cdd6))+_0x5af45b};}function offset(_0x15798f,_0x206b86){return{'regex':_0x15798f,'deser':([,_0x4ef900,_0x53ab3d])=>signedOffset(_0x4ef900,_0x53ab3d),'groups':_0x206b86};}function simple(_0x494e75){return{'regex':_0x494e75,'deser':([_0x38f4c2])=>_0x38f4c2};}function escapeToken(_0x421fe4){return _0x421fe4['replace'](/[\-\[\]{}()*+?.,\\\^$|#\s]/g,'\x5c$&');}function unitForToken(_0x3058b5,_0x461b7c){const _0x1c8986=digitRegex(_0x461b7c),_0x56aa94=digitRegex(_0x461b7c,'{2}'),_0x30b9f9=digitRegex(_0x461b7c,'{3}'),_0x128559=digitRegex(_0x461b7c,'{4}'),_0x594f7a=digitRegex(_0x461b7c,'{6}'),_0x3a3c8a=digitRegex(_0x461b7c,'{1,2}'),_0x7667ce=digitRegex(_0x461b7c,'{1,3}'),_0x1441e6=digitRegex(_0x461b7c,'{1,6}'),_0x2575c6=digitRegex(_0x461b7c,'{1,9}'),_0x12093d=digitRegex(_0x461b7c,'{2,4}'),_0x21a981=digitRegex(_0x461b7c,'{4,6}'),_0x1b792f=t=>({'regex':RegExp(escapeToken(t['val'])),'deser':([_0x39c564])=>_0x39c564,'literal':!0x0}),_0xf4fbac=(t=>{if(_0x3058b5['literal'])return _0x1b792f(t);switch(t['val']){case'G':return oneOf(_0x461b7c['eras']('short'),0x0);case'GG':return oneOf(_0x461b7c['eras']('long'),0x0);case'y':return intUnit(_0x1441e6);case'yy':case'kk':return intUnit(_0x12093d,untruncateYear);case'yyyy':case'kkkk':return intUnit(_0x128559);case'yyyyy':return intUnit(_0x21a981);case'yyyyyy':return intUnit(_0x594f7a);case'M':case'L':case'd':case'H':case'h':case'm':case'q':case's':case'W':return intUnit(_0x3a3c8a);case'MM':case'LL':case'dd':case'HH':case'hh':case'mm':case'qq':case'ss':case'WW':return intUnit(_0x56aa94);case'MMM':return oneOf(_0x461b7c['months']('short',!0x0),0x1);case'MMMM':return oneOf(_0x461b7c['months']('long',!0x0),0x1);case'LLL':return oneOf(_0x461b7c['months']('short',!0x1),0x1);case'LLLL':return oneOf(_0x461b7c['months']('long',!0x1),0x1);case'o':case'S':return intUnit(_0x7667ce);case'ooo':case'SSS':return intUnit(_0x30b9f9);case'u':return simple(_0x2575c6);case'uu':return simple(_0x3a3c8a);case'uuu':case'E':case'c':return intUnit(_0x1c8986);case'a':return oneOf(_0x461b7c['meridiems'](),0x0);case'EEE':return oneOf(_0x461b7c['weekdays']('short',!0x1),0x1);case'EEEE':return oneOf(_0x461b7c['weekdays']('long',!0x1),0x1);case'ccc':return oneOf(_0x461b7c['weekdays']('short',!0x0),0x1);case'cccc':return oneOf(_0x461b7c['weekdays']('long',!0x0),0x1);case'Z':case'ZZ':return offset(new RegExp('([+-]'+_0x3a3c8a['source']+')(?::('+_0x56aa94['source']+'))?'),0x2);case'ZZZ':return offset(new RegExp('([+-]'+_0x3a3c8a['source']+')('+_0x56aa94['source']+')?'),0x2);case'z':return simple(/[a-z_+-/]{1,256}?/i);case'\x20':return simple(/[^\S\n\r]/);default:return _0x1b792f(t);}})(_0x3058b5)||{'invalidReason':MISSING_FTP};return _0xf4fbac['token']=_0x3058b5,_0xf4fbac;}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(_0x37e242,_0x4fce05,_0x57c9cb){const {type:_0x266349,value:_0x4f32ed}=_0x37e242;if('literal'===_0x266349){const _0x460551=/^\s+$/['test'](_0x4f32ed);return{'literal':!_0x460551,'val':_0x460551?'\x20':_0x4f32ed};}const _0x49380a=_0x4fce05[_0x266349];let _0x1f824a=_0x266349;'hour'===_0x266349&&(_0x1f824a=null!=_0x4fce05['hour12']?_0x4fce05['hour12']?'hour12':'hour24':null!=_0x4fce05['hourCycle']?'h11'===_0x4fce05['hourCycle']||'h12'===_0x4fce05['hourCycle']?'hour12':'hour24':_0x57c9cb['hour12']?'hour12':'hour24');let _0x2b6953=partTypeStyleToTokenVal[_0x1f824a];if('object'==typeof _0x2b6953&&(_0x2b6953=_0x2b6953[_0x49380a]),_0x2b6953)return{'literal':!0x1,'val':_0x2b6953};}function buildRegex(_0x2c586c){const _0x5c8d43=_0x2c586c['map'](_0x396f25=>_0x396f25['regex'])['reduce']((_0x344ad4,_0x25824c)=>_0x344ad4+'('+_0x25824c['source']+')','');return['^'+_0x5c8d43+'$',_0x2c586c];}function match(_0x15ffbf,_0x46b87c,_0x3d13dd){const _0x150464=_0x15ffbf['match'](_0x46b87c);if(_0x150464){const _0x50cf37={};let _0x3ac179=0x1;for(const _0x5330ba in _0x3d13dd)if(hasOwnProperty(_0x3d13dd,_0x5330ba)){const _0x7e7c72=_0x3d13dd[_0x5330ba],_0xdc3521=_0x7e7c72['groups']?_0x7e7c72['groups']+0x1:0x1;!_0x7e7c72['literal']&&_0x7e7c72['token']&&(_0x50cf37[_0x7e7c72['token']['val'][0x0]]=_0x7e7c72['deser'](_0x150464['slice'](_0x3ac179,_0x3ac179+_0xdc3521))),_0x3ac179+=_0xdc3521;}return[_0x150464,_0x50cf37];}return[_0x150464,{}];}function dateTimeFromMatches(_0x5e7619){let _0x1435f6,_0x26b63e=null;isUndefined(_0x5e7619['z'])||(_0x26b63e=IANAZone['create'](_0x5e7619['z'])),isUndefined(_0x5e7619['Z'])||(_0x26b63e||(_0x26b63e=new FixedOffsetZone(_0x5e7619['Z'])),_0x1435f6=_0x5e7619['Z']),isUndefined(_0x5e7619['q'])||(_0x5e7619['M']=0x3*(_0x5e7619['q']-0x1)+0x1),isUndefined(_0x5e7619['h'])||(_0x5e7619['h']<0xc&&0x1===_0x5e7619['a']?_0x5e7619['h']+=0xc:0xc===_0x5e7619['h']&&0x0===_0x5e7619['a']&&(_0x5e7619['h']=0x0)),0x0===_0x5e7619['G']&&_0x5e7619['y']&&(_0x5e7619['y']=-_0x5e7619['y']),isUndefined(_0x5e7619['u'])||(_0x5e7619['S']=parseMillis(_0x5e7619['u']));const _0x27efa3=Object['keys'](_0x5e7619)['reduce']((_0x213ec2,_0x1fa027)=>{const _0x2d7e10=(_0x54ce00=>{switch(_0x54ce00){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;}})(_0x1fa027);return _0x2d7e10&&(_0x213ec2[_0x2d7e10]=_0x5e7619[_0x1fa027]),_0x213ec2;},{});return[_0x27efa3,_0x26b63e,_0x1435f6];}let dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||(dummyDateTimeCache=DateTime['fromMillis'](0x16a2e5618e3)),dummyDateTimeCache;}function maybeExpandMacroToken(_0x42a37d,_0x1f5f1c){if(_0x42a37d['literal'])return _0x42a37d;const _0x20d85d=formatOptsToTokens(Formatter['macroTokenToFormatOpts'](_0x42a37d['val']),_0x1f5f1c);return null==_0x20d85d||_0x20d85d['includes'](void 0x0)?_0x42a37d:_0x20d85d;}function expandMacroTokens(_0x5cc19a,_0x573ba0){return Array['prototype']['concat'](..._0x5cc19a['map'](t=>maybeExpandMacroToken(t,_0x573ba0)));}class TokenParser{constructor(_0x3224fc,_0xb0c2d0){if(this['locale']=_0x3224fc,this['format']=_0xb0c2d0,this['tokens']=expandMacroTokens(Formatter['parseFormat'](_0xb0c2d0),_0x3224fc),this['units']=this['tokens']['map'](t=>unitForToken(t,_0x3224fc)),this['disqualifyingUnit']=this['units']['find'](t=>t['invalidReason']),!this['disqualifyingUnit']){const [_0x345ef2,_0x358cbb]=buildRegex(this['units']);this['regex']=RegExp(_0x345ef2,'i'),this['handlers']=_0x358cbb;}}['explainFromTokens'](_0x3257cd){if(this['isValid']){const [_0x2193b4,_0x1e3698]=match(_0x3257cd,this['regex'],this['handlers']),[_0x34d1d6,_0xd24d94,_0x831393]=_0x1e3698?dateTimeFromMatches(_0x1e3698):[null,null,void 0x0];if(hasOwnProperty(_0x1e3698,'a')&&hasOwnProperty(_0x1e3698,'H'))throw new ConflictingSpecificationError('Can\x27t\x20include\x20meridiem\x20when\x20specifying\x2024-hour\x20format');return{'input':_0x3257cd,'tokens':this['tokens'],'regex':this['regex'],'rawMatches':_0x2193b4,'matches':_0x1e3698,'result':_0x34d1d6,'zone':_0xd24d94,'specificOffset':_0x831393};}return{'input':_0x3257cd,'tokens':this['tokens'],'invalidReason':this['invalidReason']};}get['isValid'](){return!this['disqualifyingUnit'];}get['invalidReason'](){return this['disqualifyingUnit']?this['disqualifyingUnit']['invalidReason']:null;}}function explainFromTokens(_0x3bb2f1,_0x4f70b1,_0x5473f9){return new TokenParser(_0x3bb2f1,_0x5473f9)['explainFromTokens'](_0x4f70b1);}function parseFromTokens(_0x39d406,_0x4831c5,_0x3b14c4){const {result:_0x2054b4,zone:_0x1d4bf6,specificOffset:_0x27946f,invalidReason:_0x5f08f6}=explainFromTokens(_0x39d406,_0x4831c5,_0x3b14c4);return[_0x2054b4,_0x1d4bf6,_0x27946f,_0x5f08f6];}function formatOptsToTokens(_0x2b96ba,_0x3e1ea5){if(!_0x2b96ba)return null;const _0x49cb28=Formatter['create'](_0x3e1ea5,_0x2b96ba)['dtFormatter'](getDummyDateTime()),_0x5a9824=_0x49cb28['formatToParts'](),_0x22ba35=_0x49cb28['resolvedOptions']();return _0x5a9824['map'](_0x58fcbd=>tokenForPart(_0x58fcbd,_0x2b96ba,_0x22ba35));}const INVALID='Invalid\x20DateTime',MAX_DATE=0x1eb208c2dc0000;function unsupportedZone(_0x14b01a){return new Invalid('unsupported\x20zone','the\x20zone\x20\x22'+_0x14b01a['name']+'\x22\x20is\x20not\x20supported');}function possiblyCachedWeekData(_0x9506be){return null===_0x9506be['weekData']&&(_0x9506be['weekData']=gregorianToWeek(_0x9506be['c'])),_0x9506be['weekData'];}function possiblyCachedLocalWeekData(_0xd478b4){return null===_0xd478b4['localWeekData']&&(_0xd478b4['localWeekData']=gregorianToWeek(_0xd478b4['c'],_0xd478b4['loc']['getMinDaysInFirstWeek'](),_0xd478b4['loc']['getStartOfWeek']())),_0xd478b4['localWeekData'];}function clone(_0x1137d6,_0x9b4ebf){const _0x38e525={'ts':_0x1137d6['ts'],'zone':_0x1137d6['zone'],'c':_0x1137d6['c'],'o':_0x1137d6['o'],'loc':_0x1137d6['loc'],'invalid':_0x1137d6['invalid']};return new DateTime({..._0x38e525,..._0x9b4ebf,'old':_0x38e525});}function fixOffset(_0x1153b3,_0x2b2061,_0x2f95a6){let _0x16bfad=_0x1153b3-0x3c*_0x2b2061*0x3e8;const _0x4fb4a3=_0x2f95a6['offset'](_0x16bfad);if(_0x2b2061===_0x4fb4a3)return[_0x16bfad,_0x2b2061];_0x16bfad-=0x3c*(_0x4fb4a3-_0x2b2061)*0x3e8;const _0x5cfd9d=_0x2f95a6['offset'](_0x16bfad);return _0x4fb4a3===_0x5cfd9d?[_0x16bfad,_0x4fb4a3]:[_0x1153b3-0x3c*Math['min'](_0x4fb4a3,_0x5cfd9d)*0x3e8,Math['max'](_0x4fb4a3,_0x5cfd9d)];}function tsToObj(_0x2b53e8,_0x3dd760){const _0x3a783f=new Date(_0x2b53e8+=0x3c*_0x3dd760*0x3e8);return{'year':_0x3a783f['getUTCFullYear'](),'month':_0x3a783f['getUTCMonth']()+0x1,'day':_0x3a783f['getUTCDate'](),'hour':_0x3a783f['getUTCHours'](),'minute':_0x3a783f['getUTCMinutes'](),'second':_0x3a783f['getUTCSeconds'](),'millisecond':_0x3a783f['getUTCMilliseconds']()};}function objToTS(_0x49ec91,_0x293844,_0x2e6bcc){return fixOffset(objToLocalTS(_0x49ec91),_0x293844,_0x2e6bcc);}function adjustTime(_0x19cf7f,_0x5492d6){const _0x52c46a=_0x19cf7f['o'],_0x4e4da0=_0x19cf7f['c']['year']+Math['trunc'](_0x5492d6['years']),_0x214162=_0x19cf7f['c']['month']+Math['trunc'](_0x5492d6['months'])+0x3*Math['trunc'](_0x5492d6['quarters']),_0xb8e855={..._0x19cf7f['c'],'year':_0x4e4da0,'month':_0x214162,'day':Math['min'](_0x19cf7f['c']['day'],daysInMonth(_0x4e4da0,_0x214162))+Math['trunc'](_0x5492d6['days'])+0x7*Math['trunc'](_0x5492d6['weeks'])},_0x4dfa34=Duration['fromObject']({'years':_0x5492d6['years']-Math['trunc'](_0x5492d6['years']),'quarters':_0x5492d6['quarters']-Math['trunc'](_0x5492d6['quarters']),'months':_0x5492d6['months']-Math['trunc'](_0x5492d6['months']),'weeks':_0x5492d6['weeks']-Math['trunc'](_0x5492d6['weeks']),'days':_0x5492d6['days']-Math['trunc'](_0x5492d6['days']),'hours':_0x5492d6['hours'],'minutes':_0x5492d6['minutes'],'seconds':_0x5492d6['seconds'],'milliseconds':_0x5492d6['milliseconds']})['as']('milliseconds'),_0x4bdf59=objToLocalTS(_0xb8e855);let [_0x32a536,_0x3aa629]=fixOffset(_0x4bdf59,_0x52c46a,_0x19cf7f['zone']);return 0x0!==_0x4dfa34&&(_0x32a536+=_0x4dfa34,_0x3aa629=_0x19cf7f['zone']['offset'](_0x32a536)),{'ts':_0x32a536,'o':_0x3aa629};}function parseDataToDateTime(_0xfdd63c,_0x37c781,_0x5513e4,_0x32e50a,_0x107a9e,_0x5f00f0){const {setZone:_0x4424bd,zone:_0x195917}=_0x5513e4;if(_0xfdd63c&&0x0!==Object['keys'](_0xfdd63c)['length']||_0x37c781){const _0x2fab07=_0x37c781||_0x195917,_0x627f70=DateTime['fromObject'](_0xfdd63c,{..._0x5513e4,'zone':_0x2fab07,'specificOffset':_0x5f00f0});return _0x4424bd?_0x627f70:_0x627f70['setZone'](_0x195917);}return DateTime['invalid'](new Invalid('unparsable','the\x20input\x20\x22'+_0x107a9e+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20'+_0x32e50a));}function toTechFormat(_0x5af6bd,_0x31688f,_0x1e52a7=!0x0){return _0x5af6bd['isValid']?Formatter['create'](Locale['create']('en-US'),{'allowZ':_0x1e52a7,'forceSimple':!0x0})['formatDateTimeFromString'](_0x5af6bd,_0x31688f):null;}function toISODate(_0x447026,_0x322177){const _0x28b452=_0x447026['c']['year']>0x270f||_0x447026['c']['year']<0x0;let _0x5846ed='';return _0x28b452&&_0x447026['c']['year']>=0x0&&(_0x5846ed+='+'),_0x5846ed+=padStart(_0x447026['c']['year'],_0x28b452?0x6:0x4),_0x322177?(_0x5846ed+='-',_0x5846ed+=padStart(_0x447026['c']['month']),_0x5846ed+='-',_0x5846ed+=padStart(_0x447026['c']['day'])):(_0x5846ed+=padStart(_0x447026['c']['month']),_0x5846ed+=padStart(_0x447026['c']['day'])),_0x5846ed;}function toISOTime(_0x31f13f,_0x5e6f7,_0x128202,_0x26d8fe,_0x146ac0,_0x25acce){let _0x5cd4fc=padStart(_0x31f13f['c']['hour']);return _0x5e6f7?(_0x5cd4fc+=':',_0x5cd4fc+=padStart(_0x31f13f['c']['minute']),0x0===_0x31f13f['c']['millisecond']&&0x0===_0x31f13f['c']['second']&&_0x128202||(_0x5cd4fc+=':')):_0x5cd4fc+=padStart(_0x31f13f['c']['minute']),0x0===_0x31f13f['c']['millisecond']&&0x0===_0x31f13f['c']['second']&&_0x128202||(_0x5cd4fc+=padStart(_0x31f13f['c']['second']),0x0===_0x31f13f['c']['millisecond']&&_0x26d8fe||(_0x5cd4fc+='.',_0x5cd4fc+=padStart(_0x31f13f['c']['millisecond'],0x3))),_0x146ac0&&(_0x31f13f['isOffsetFixed']&&0x0===_0x31f13f['offset']&&!_0x25acce?_0x5cd4fc+='Z':_0x31f13f['o']<0x0?(_0x5cd4fc+='-',_0x5cd4fc+=padStart(Math['trunc'](-_0x31f13f['o']/0x3c)),_0x5cd4fc+=':',_0x5cd4fc+=padStart(Math['trunc'](-_0x31f13f['o']%0x3c))):(_0x5cd4fc+='+',_0x5cd4fc+=padStart(Math['trunc'](_0x31f13f['o']/0x3c)),_0x5cd4fc+=':',_0x5cd4fc+=padStart(Math['trunc'](_0x31f13f['o']%0x3c)))),_0x25acce&&(_0x5cd4fc+='['+_0x31f13f['zone']['ianaName']+']'),_0x5cd4fc;}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(_0x38cbf9){const _0x5949b0={'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'}[_0x38cbf9['toLowerCase']()];if(!_0x5949b0)throw new InvalidUnitError(_0x38cbf9);return _0x5949b0;}function normalizeUnitWithLocalWeeks(_0x2626c5){switch(_0x2626c5['toLowerCase']()){case'localweekday':case'localweekdays':return'localWeekday';case'localweeknumber':case'localweeknumbers':return'localWeekNumber';case'localweekyear':case'localweekyears':return'localWeekYear';default:return normalizeUnit(_0x2626c5);}}function guessOffsetForZone(_0x2c032c){if(void 0x0===zoneOffsetTs&&(zoneOffsetTs=Settings['now']()),'iana'!==_0x2c032c['type'])return _0x2c032c['offset'](zoneOffsetTs);const _0x49079a=_0x2c032c['name'];let _0x65a2fe=zoneOffsetGuessCache['get'](_0x49079a);return void 0x0===_0x65a2fe&&(_0x65a2fe=_0x2c032c['offset'](zoneOffsetTs),zoneOffsetGuessCache['set'](_0x49079a,_0x65a2fe)),_0x65a2fe;}function quickDT(_0x3dd7fa,_0x1e271e){const _0x2206b8=normalizeZone(_0x1e271e['zone'],Settings['defaultZone']);if(!_0x2206b8['isValid'])return DateTime['invalid'](unsupportedZone(_0x2206b8));const _0x5dccea=Locale['fromObject'](_0x1e271e);let _0x1c65b7,_0x3a0a99;if(isUndefined(_0x3dd7fa['year']))_0x1c65b7=Settings['now']();else{for(const _0x3a4816 of orderedUnits)isUndefined(_0x3dd7fa[_0x3a4816])&&(_0x3dd7fa[_0x3a4816]=defaultUnitValues[_0x3a4816]);const _0x1fe4e3=hasInvalidGregorianData(_0x3dd7fa)||hasInvalidTimeData(_0x3dd7fa);if(_0x1fe4e3)return DateTime['invalid'](_0x1fe4e3);const _0x10fb33=guessOffsetForZone(_0x2206b8);[_0x1c65b7,_0x3a0a99]=objToTS(_0x3dd7fa,_0x10fb33,_0x2206b8);}return new DateTime({'ts':_0x1c65b7,'zone':_0x2206b8,'loc':_0x5dccea,'o':_0x3a0a99});}function diffRelative(_0x35ecdc,_0x5b7ff8,_0x4164c6){const _0x5b270d=!!isUndefined(_0x4164c6['round'])||_0x4164c6['round'],_0x4ddc23=(_0x106150,_0x475af8)=>{return _0x106150=roundTo(_0x106150,_0x5b270d||_0x4164c6['calendary']?0x0:0x2,!0x0),_0x5b7ff8['loc']['clone'](_0x4164c6)['relFormatter'](_0x4164c6)['format'](_0x106150,_0x475af8);},_0x7c380f=_0x32f6df=>_0x4164c6['calendary']?_0x5b7ff8['hasSame'](_0x35ecdc,_0x32f6df)?0x0:_0x5b7ff8['startOf'](_0x32f6df)['diff'](_0x35ecdc['startOf'](_0x32f6df),_0x32f6df)['get'](_0x32f6df):_0x5b7ff8['diff'](_0x35ecdc,_0x32f6df)['get'](_0x32f6df);if(_0x4164c6['unit'])return _0x4ddc23(_0x7c380f(_0x4164c6['unit']),_0x4164c6['unit']);for(const _0x102840 of _0x4164c6['units']){const _0x3b20a8=_0x7c380f(_0x102840);if(Math['abs'](_0x3b20a8)>=0x1)return _0x4ddc23(_0x3b20a8,_0x102840);}return _0x4ddc23(_0x35ecdc>_0x5b7ff8?-0x0:0x0,_0x4164c6['units'][_0x4164c6['units']['length']-0x1]);}function lastOpts(_0x4d0f00){let _0x4388f1,_0x380fb8={};return _0x4d0f00['length']>0x0&&'object'==typeof _0x4d0f00[_0x4d0f00['length']-0x1]?(_0x380fb8=_0x4d0f00[_0x4d0f00['length']-0x1],_0x4388f1=Array['from'](_0x4d0f00)['slice'](0x0,_0x4d0f00['length']-0x1)):_0x4388f1=Array['from'](_0x4d0f00),[_0x380fb8,_0x4388f1];}let zoneOffsetTs;const zoneOffsetGuessCache=new Map();class DateTime{constructor(_0x3e855c){const _0x164adc=_0x3e855c['zone']||Settings['defaultZone'];let _0x243aa6=_0x3e855c['invalid']||(Number['isNaN'](_0x3e855c['ts'])?new Invalid('invalid\x20input'):null)||(_0x164adc['isValid']?null:unsupportedZone(_0x164adc));this['ts']=isUndefined(_0x3e855c['ts'])?Settings['now']():_0x3e855c['ts'];let _0x5e6175=null,_0x2a3704=null;if(!_0x243aa6){if(_0x3e855c['old']&&_0x3e855c['old']['ts']===this['ts']&&_0x3e855c['old']['zone']['equals'](_0x164adc))[_0x5e6175,_0x2a3704]=[_0x3e855c['old']['c'],_0x3e855c['old']['o']];else{const _0x3692a8=isNumber(_0x3e855c['o'])&&!_0x3e855c['old']?_0x3e855c['o']:_0x164adc['offset'](this['ts']);_0x5e6175=tsToObj(this['ts'],_0x3692a8),_0x243aa6=Number['isNaN'](_0x5e6175['year'])?new Invalid('invalid\x20input'):null,_0x5e6175=_0x243aa6?null:_0x5e6175,_0x2a3704=_0x243aa6?null:_0x3692a8;}}this['_zone']=_0x164adc,this['loc']=_0x3e855c['loc']||Locale['create'](),this['invalid']=_0x243aa6,this['weekData']=null,this['localWeekData']=null,this['c']=_0x5e6175,this['o']=_0x2a3704,this['isLuxonDateTime']=!0x0;}static['now'](){return new DateTime({});}static['local'](){const [_0x16877a,_0x2d6781]=lastOpts(arguments),[_0x547ab1,_0x416c92,_0x67ea68,_0x3fcfa5,_0x31a03d,_0x554d0d,_0x364fce]=_0x2d6781;return quickDT({'year':_0x547ab1,'month':_0x416c92,'day':_0x67ea68,'hour':_0x3fcfa5,'minute':_0x31a03d,'second':_0x554d0d,'millisecond':_0x364fce},_0x16877a);}static['utc'](){const [_0x355e83,_0x2cccc6]=lastOpts(arguments),[_0x195dd4,_0x551933,_0x386ceb,_0x16ace0,_0x52ff8f,_0x2cb382,_0x3d5bc0]=_0x2cccc6;return _0x355e83['zone']=FixedOffsetZone['utcInstance'],quickDT({'year':_0x195dd4,'month':_0x551933,'day':_0x386ceb,'hour':_0x16ace0,'minute':_0x52ff8f,'second':_0x2cb382,'millisecond':_0x3d5bc0},_0x355e83);}static['fromJSDate'](_0x28cbcd,_0x506082={}){const _0x41a162=isDate(_0x28cbcd)?_0x28cbcd['valueOf']():NaN;if(Number['isNaN'](_0x41a162))return DateTime['invalid']('invalid\x20input');const _0x5c4369=normalizeZone(_0x506082['zone'],Settings['defaultZone']);return _0x5c4369['isValid']?new DateTime({'ts':_0x41a162,'zone':_0x5c4369,'loc':Locale['fromObject'](_0x506082)}):DateTime['invalid'](unsupportedZone(_0x5c4369));}static['fromMillis'](_0x4fdbd3,_0x3a7e99={}){if(isNumber(_0x4fdbd3))return _0x4fdbd3<-MAX_DATE||_0x4fdbd3>MAX_DATE?DateTime['invalid']('Timestamp\x20out\x20of\x20range'):new DateTime({'ts':_0x4fdbd3,'zone':normalizeZone(_0x3a7e99['zone'],Settings['defaultZone']),'loc':Locale['fromObject'](_0x3a7e99)});throw new InvalidArgumentError('fromMillis\x20requires\x20a\x20numerical\x20input,\x20but\x20received\x20a\x20'+typeof _0x4fdbd3+'\x20with\x20value\x20'+_0x4fdbd3);}static['fromSeconds'](_0x649fe6,_0x32cb5c={}){if(isNumber(_0x649fe6))return new DateTime({'ts':0x3e8*_0x649fe6,'zone':normalizeZone(_0x32cb5c['zone'],Settings['defaultZone']),'loc':Locale['fromObject'](_0x32cb5c)});throw new InvalidArgumentError('fromSeconds\x20requires\x20a\x20numerical\x20input');}static['fromObject'](_0x6e7f86,_0x2f87e4={}){_0x6e7f86=_0x6e7f86||{};const _0x2d8561=normalizeZone(_0x2f87e4['zone'],Settings['defaultZone']);if(!_0x2d8561['isValid'])return DateTime['invalid'](unsupportedZone(_0x2d8561));const _0x240d3a=Locale['fromObject'](_0x2f87e4),_0x3a4657=normalizeObject(_0x6e7f86,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:_0x3e9047,startOfWeek:_0x2c4ba3}=usesLocalWeekValues(_0x3a4657,_0x240d3a),_0xcffcc5=Settings['now'](),_0x4c7990=isUndefined(_0x2f87e4['specificOffset'])?_0x2d8561['offset'](_0xcffcc5):_0x2f87e4['specificOffset'],_0x18bb45=!isUndefined(_0x3a4657['ordinal']),_0x13ec2a=!isUndefined(_0x3a4657['year']),_0x49dcd1=!isUndefined(_0x3a4657['month'])||!isUndefined(_0x3a4657['day']),_0x48db81=_0x13ec2a||_0x49dcd1,_0x5050f1=_0x3a4657['weekYear']||_0x3a4657['weekNumber'];if((_0x48db81||_0x18bb45)&&_0x5050f1)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20weekYear/weekNumber\x20units\x20with\x20year/month/day\x20or\x20ordinals');if(_0x49dcd1&&_0x18bb45)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20ordinal\x20dates\x20with\x20month/day');const _0x347c20=_0x5050f1||_0x3a4657['weekday']&&!_0x48db81;let _0x347167,_0x86619c,_0x2bfadf=tsToObj(_0xcffcc5,_0x4c7990);_0x347c20?(_0x347167=orderedWeekUnits,_0x86619c=defaultWeekUnitValues,_0x2bfadf=gregorianToWeek(_0x2bfadf,_0x3e9047,_0x2c4ba3)):_0x18bb45?(_0x347167=orderedOrdinalUnits,_0x86619c=defaultOrdinalUnitValues,_0x2bfadf=gregorianToOrdinal(_0x2bfadf)):(_0x347167=orderedUnits,_0x86619c=defaultUnitValues);let _0x4dc9a5=!0x1;for(const _0xdc9146 of _0x347167){isUndefined(_0x3a4657[_0xdc9146])?_0x3a4657[_0xdc9146]=_0x4dc9a5?_0x86619c[_0xdc9146]:_0x2bfadf[_0xdc9146]:_0x4dc9a5=!0x0;}const _0x22cdcd=(_0x347c20?hasInvalidWeekData(_0x3a4657,_0x3e9047,_0x2c4ba3):_0x18bb45?hasInvalidOrdinalData(_0x3a4657):hasInvalidGregorianData(_0x3a4657))||hasInvalidTimeData(_0x3a4657);if(_0x22cdcd)return DateTime['invalid'](_0x22cdcd);const _0x343a24=_0x347c20?weekToGregorian(_0x3a4657,_0x3e9047,_0x2c4ba3):_0x18bb45?ordinalToGregorian(_0x3a4657):_0x3a4657,[_0x5bf41d,_0x3adf2a]=objToTS(_0x343a24,_0x4c7990,_0x2d8561),_0x39f06a=new DateTime({'ts':_0x5bf41d,'zone':_0x2d8561,'o':_0x3adf2a,'loc':_0x240d3a});return _0x3a4657['weekday']&&_0x48db81&&_0x6e7f86['weekday']!==_0x39f06a['weekday']?DateTime['invalid']('mismatched\x20weekday','you\x20can\x27t\x20specify\x20both\x20a\x20weekday\x20of\x20'+_0x3a4657['weekday']+'\x20and\x20a\x20date\x20of\x20'+_0x39f06a['toISO']()):_0x39f06a['isValid']?_0x39f06a:DateTime['invalid'](_0x39f06a['invalid']);}static['fromISO'](_0x392fe3,_0x336f9c={}){const [_0x41f7a4,_0x5015a4]=parseISODate(_0x392fe3);return parseDataToDateTime(_0x41f7a4,_0x5015a4,_0x336f9c,'ISO\x208601',_0x392fe3);}static['fromRFC2822'](_0x278e5a,_0x8abf64={}){const [_0x27625a,_0x449010]=parseRFC2822Date(_0x278e5a);return parseDataToDateTime(_0x27625a,_0x449010,_0x8abf64,'RFC\x202822',_0x278e5a);}static['fromHTTP'](_0x1072aa,_0x26efaf={}){const [_0xe8bf31,_0x557ef9]=parseHTTPDate(_0x1072aa);return parseDataToDateTime(_0xe8bf31,_0x557ef9,_0x26efaf,'HTTP',_0x26efaf);}static['fromFormat'](_0x44d217,_0xd72eac,_0x1bb02c={}){if(isUndefined(_0x44d217)||isUndefined(_0xd72eac))throw new InvalidArgumentError('fromFormat\x20requires\x20an\x20input\x20string\x20and\x20a\x20format');const {locale:_0x42ce6a=null,numberingSystem:_0x4f0905=null}=_0x1bb02c,_0x34b0bb=Locale['fromOpts']({'locale':_0x42ce6a,'numberingSystem':_0x4f0905,'defaultToEN':!0x0}),[_0x55004e,_0x545b7c,_0x53de3d,_0x38546f]=parseFromTokens(_0x34b0bb,_0x44d217,_0xd72eac);return _0x38546f?DateTime['invalid'](_0x38546f):parseDataToDateTime(_0x55004e,_0x545b7c,_0x1bb02c,'format\x20'+_0xd72eac,_0x44d217,_0x53de3d);}static['fromString'](_0x125963,_0x3a9c11,_0x15b0e1={}){return DateTime['fromFormat'](_0x125963,_0x3a9c11,_0x15b0e1);}static['fromSQL'](_0xcea34a,_0x27ffca={}){const [_0x38a392,_0x2d2fc0]=parseSQL(_0xcea34a);return parseDataToDateTime(_0x38a392,_0x2d2fc0,_0x27ffca,'SQL',_0xcea34a);}static['invalid'](_0x381da2,_0x5c20c3=null){if(!_0x381da2)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20DateTime\x20is\x20invalid');const _0xd5e0cc=_0x381da2 instanceof Invalid?_0x381da2:new Invalid(_0x381da2,_0x5c20c3);if(Settings['throwOnInvalid'])throw new InvalidDateTimeError(_0xd5e0cc);return new DateTime({'invalid':_0xd5e0cc});}static['isDateTime'](_0x1c20ad){return _0x1c20ad&&_0x1c20ad['isLuxonDateTime']||!0x1;}static['parseFormatForOpts'](_0x3da932,_0x105162={}){const _0xb96a5d=formatOptsToTokens(_0x3da932,Locale['fromObject'](_0x105162));return _0xb96a5d?_0xb96a5d['map'](t=>t?t['val']:null)['join'](''):null;}static['expandFormat'](_0x2304d5,_0x1c6f96={}){return expandMacroTokens(Formatter['parseFormat'](_0x2304d5),Locale['fromObject'](_0x1c6f96))['map'](t=>t['val'])['join']('');}static['resetCache'](){zoneOffsetTs=void 0x0,zoneOffsetGuessCache['clear']();}['get'](_0x2ac246){return this[_0x2ac246];}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 _0x1be7f8=0x5265c00,_0x214da4=0xea60,_0x491b23=objToLocalTS(this['c']),_0x6be4c0=this['zone']['offset'](_0x491b23-_0x1be7f8),_0x41fbbc=this['zone']['offset'](_0x491b23+_0x1be7f8),_0x38c2ce=this['zone']['offset'](_0x491b23-_0x6be4c0*_0x214da4),_0x38f987=this['zone']['offset'](_0x491b23-_0x41fbbc*_0x214da4);if(_0x38c2ce===_0x38f987)return[this];const _0x108383=_0x491b23-_0x38c2ce*_0x214da4,_0x440993=_0x491b23-_0x38f987*_0x214da4,_0x43f760=tsToObj(_0x108383,_0x38c2ce),_0x383574=tsToObj(_0x440993,_0x38f987);return _0x43f760['hour']===_0x383574['hour']&&_0x43f760['minute']===_0x383574['minute']&&_0x43f760['second']===_0x383574['second']&&_0x43f760['millisecond']===_0x383574['millisecond']?[clone(this,{'ts':_0x108383}),clone(this,{'ts':_0x440993})]:[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'](_0x5f0117={}){const {locale:_0x40f50b,numberingSystem:_0xc82f23,calendar:_0x23a49e}=Formatter['create'](this['loc']['clone'](_0x5f0117),_0x5f0117)['resolvedOptions'](this);return{'locale':_0x40f50b,'numberingSystem':_0xc82f23,'outputCalendar':_0x23a49e};}['toUTC'](_0x4b1801=0x0,_0x22c9d4={}){return this['setZone'](FixedOffsetZone['instance'](_0x4b1801),_0x22c9d4);}['toLocal'](){return this['setZone'](Settings['defaultZone']);}['setZone'](_0x55405b,{keepLocalTime:_0xc9d017=!0x1,keepCalendarTime:_0x1bb8cc=!0x1}={}){if((_0x55405b=normalizeZone(_0x55405b,Settings['defaultZone']))['equals'](this['zone']))return this;if(_0x55405b['isValid']){let _0x16fe67=this['ts'];if(_0xc9d017||_0x1bb8cc){const _0x49620a=_0x55405b['offset'](this['ts']),_0x299aea=this['toObject']();[_0x16fe67]=objToTS(_0x299aea,_0x49620a,_0x55405b);}return clone(this,{'ts':_0x16fe67,'zone':_0x55405b});}return DateTime['invalid'](unsupportedZone(_0x55405b));}['reconfigure']({locale:_0x4c7fad,numberingSystem:_0x5d22b7,outputCalendar:_0x4935ef}={}){return clone(this,{'loc':this['loc']['clone']({'locale':_0x4c7fad,'numberingSystem':_0x5d22b7,'outputCalendar':_0x4935ef})});}['setLocale'](_0x467feb){return this['reconfigure']({'locale':_0x467feb});}['set'](_0x334597){if(!this['isValid'])return this;const _0x2a11f2=normalizeObject(_0x334597,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:_0x4adffc,startOfWeek:_0x5f4cbc}=usesLocalWeekValues(_0x2a11f2,this['loc']),_0x5c6269=!isUndefined(_0x2a11f2['weekYear'])||!isUndefined(_0x2a11f2['weekNumber'])||!isUndefined(_0x2a11f2['weekday']),_0x4b0bde=!isUndefined(_0x2a11f2['ordinal']),_0x17df58=!isUndefined(_0x2a11f2['year']),_0x44f65e=!isUndefined(_0x2a11f2['month'])||!isUndefined(_0x2a11f2['day']),_0xef77df=_0x17df58||_0x44f65e,_0x4c28b1=_0x2a11f2['weekYear']||_0x2a11f2['weekNumber'];if((_0xef77df||_0x4b0bde)&&_0x4c28b1)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20weekYear/weekNumber\x20units\x20with\x20year/month/day\x20or\x20ordinals');if(_0x44f65e&&_0x4b0bde)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20ordinal\x20dates\x20with\x20month/day');let _0x333bcf;_0x5c6269?_0x333bcf=weekToGregorian({...gregorianToWeek(this['c'],_0x4adffc,_0x5f4cbc),..._0x2a11f2},_0x4adffc,_0x5f4cbc):isUndefined(_0x2a11f2['ordinal'])?(_0x333bcf={...this['toObject'](),..._0x2a11f2},isUndefined(_0x2a11f2['day'])&&(_0x333bcf['day']=Math['min'](daysInMonth(_0x333bcf['year'],_0x333bcf['month']),_0x333bcf['day']))):_0x333bcf=ordinalToGregorian({...gregorianToOrdinal(this['c']),..._0x2a11f2});const [_0x28ec28,_0x4e397a]=objToTS(_0x333bcf,this['o'],this['zone']);return clone(this,{'ts':_0x28ec28,'o':_0x4e397a});}['plus'](_0x49916e){if(!this['isValid'])return this;return clone(this,adjustTime(this,Duration['fromDurationLike'](_0x49916e)));}['minus'](_0x232df4){if(!this['isValid'])return this;return clone(this,adjustTime(this,Duration['fromDurationLike'](_0x232df4)['negate']()));}['startOf'](_0xc2a91e,{useLocaleWeeks:_0x1a02fa=!0x1}={}){if(!this['isValid'])return this;const _0x2f18ef={},_0x568d57=Duration['normalizeUnit'](_0xc2a91e);switch(_0x568d57){case'years':_0x2f18ef['month']=0x1;case'quarters':case'months':_0x2f18ef['day']=0x1;case'weeks':case'days':_0x2f18ef['hour']=0x0;case'hours':_0x2f18ef['minute']=0x0;case'minutes':_0x2f18ef['second']=0x0;case'seconds':_0x2f18ef['millisecond']=0x0;}if('weeks'===_0x568d57){if(_0x1a02fa){const _0x578fe9=this['loc']['getStartOfWeek'](),{weekday:_0xdf1aa2}=this;_0xdf1aa2<_0x578fe9&&(_0x2f18ef['weekNumber']=this['weekNumber']-0x1),_0x2f18ef['weekday']=_0x578fe9;}else _0x2f18ef['weekday']=0x1;}if('quarters'===_0x568d57){const _0x4a108d=Math['ceil'](this['month']/0x3);_0x2f18ef['month']=0x3*(_0x4a108d-0x1)+0x1;}return this['set'](_0x2f18ef);}['endOf'](_0x330525,_0x32c4c1){return this['isValid']?this['plus']({[_0x330525]:0x1})['startOf'](_0x330525,_0x32c4c1)['minus'](0x1):this;}['toFormat'](_0x32808d,_0x45f232={}){return this['isValid']?Formatter['create'](this['loc']['redefaultToEN'](_0x45f232))['formatDateTimeFromString'](this,_0x32808d):INVALID;}['toLocaleString'](_0x57b6b3=DATE_SHORT,_0x2f04a6={}){return this['isValid']?Formatter['create'](this['loc']['clone'](_0x2f04a6),_0x57b6b3)['formatDateTime'](this):INVALID;}['toLocaleParts'](_0xfa6917={}){return this['isValid']?Formatter['create'](this['loc']['clone'](_0xfa6917),_0xfa6917)['formatDateTimeParts'](this):[];}['toISO']({format:_0x379218='extended',suppressSeconds:_0x25d4b0=!0x1,suppressMilliseconds:_0x90a731=!0x1,includeOffset:_0x4dfc75=!0x0,extendedZone:_0x30d79e=!0x1}={}){if(!this['isValid'])return null;const _0xf2ea58='extended'===_0x379218;let _0x236b68=toISODate(this,_0xf2ea58);return _0x236b68+='T',_0x236b68+=toISOTime(this,_0xf2ea58,_0x25d4b0,_0x90a731,_0x4dfc75,_0x30d79e),_0x236b68;}['toISODate']({format:_0x16f929='extended'}={}){return this['isValid']?toISODate(this,'extended'===_0x16f929):null;}['toISOWeekDate'](){return toTechFormat(this,'kkkk-\x27W\x27WW-c');}['toISOTime']({suppressMilliseconds:_0x3ddaa8=!0x1,suppressSeconds:_0x3e95c1=!0x1,includeOffset:_0x580ced=!0x0,includePrefix:_0x2e45a9=!0x1,extendedZone:_0x2389a7=!0x1,format:_0x61e142='extended'}={}){if(!this['isValid'])return null;return(_0x2e45a9?'T':'')+toISOTime(this,'extended'===_0x61e142,_0x3e95c1,_0x3ddaa8,_0x580ced,_0x2389a7);}['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:_0x5cbeeb=!0x0,includeZone:_0x40a862=!0x1,includeOffsetSpace:_0x44b778=!0x0}={}){let _0x37bf2b='HH:mm:ss.SSS';return(_0x40a862||_0x5cbeeb)&&(_0x44b778&&(_0x37bf2b+='\x20'),_0x40a862?_0x37bf2b+='z':_0x5cbeeb&&(_0x37bf2b+='ZZ')),toTechFormat(this,_0x37bf2b,!0x0);}['toSQL'](_0x259a50={}){return this['isValid']?this['toSQLDate']()+'\x20'+this['toSQLTime'](_0x259a50):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'](_0x213331={}){if(!this['isValid'])return{};const _0x44204d={...this['c']};return _0x213331['includeConfig']&&(_0x44204d['outputCalendar']=this['outputCalendar'],_0x44204d['numberingSystem']=this['loc']['numberingSystem'],_0x44204d['locale']=this['loc']['locale']),_0x44204d;}['toJSDate'](){return new Date(this['isValid']?this['ts']:NaN);}['diff'](_0x822002,_0x56fa74='milliseconds',_0x5353a2={}){if(!this['isValid']||!_0x822002['isValid'])return Duration['invalid']('created\x20by\x20diffing\x20an\x20invalid\x20DateTime');const _0x1d15e6={'locale':this['locale'],'numberingSystem':this['numberingSystem'],..._0x5353a2},_0x4f706c=maybeArray(_0x56fa74)['map'](Duration['normalizeUnit']),_0x50f4e8=_0x822002['valueOf']()>this['valueOf'](),_0x58fe17=diff(_0x50f4e8?this:_0x822002,_0x50f4e8?_0x822002:this,_0x4f706c,_0x1d15e6);return _0x50f4e8?_0x58fe17['negate']():_0x58fe17;}['diffNow'](_0x30b9db='milliseconds',_0x5d2be9={}){return this['diff'](DateTime['now'](),_0x30b9db,_0x5d2be9);}['until'](_0x456eeb){return this['isValid']?Interval['fromDateTimes'](this,_0x456eeb):this;}['hasSame'](_0x15de31,_0x3a74e5,_0x4650c8){if(!this['isValid'])return!0x1;const _0x47394c=_0x15de31['valueOf'](),_0x52210f=this['setZone'](_0x15de31['zone'],{'keepLocalTime':!0x0});return _0x52210f['startOf'](_0x3a74e5,_0x4650c8)<=_0x47394c&&_0x47394c<=_0x52210f['endOf'](_0x3a74e5,_0x4650c8);}['equals'](_0x2e828d){return this['isValid']&&_0x2e828d['isValid']&&this['valueOf']()===_0x2e828d['valueOf']()&&this['zone']['equals'](_0x2e828d['zone'])&&this['loc']['equals'](_0x2e828d['loc']);}['toRelative'](_0x38843a={}){if(!this['isValid'])return null;const _0x45871f=_0x38843a['base']||DateTime['fromObject']({},{'zone':this['zone']}),_0x93ef1a=_0x38843a['padding']?this<_0x45871f?-_0x38843a['padding']:_0x38843a['padding']:0x0;let _0x2d9438=['years','months','days','hours','minutes','seconds'],_0x3007cf=_0x38843a['unit'];return Array['isArray'](_0x38843a['unit'])&&(_0x2d9438=_0x38843a['unit'],_0x3007cf=void 0x0),diffRelative(_0x45871f,this['plus'](_0x93ef1a),{..._0x38843a,'numeric':'always','units':_0x2d9438,'unit':_0x3007cf});}['toRelativeCalendar'](_0x15ae91={}){return this['isValid']?diffRelative(_0x15ae91['base']||DateTime['fromObject']({},{'zone':this['zone']}),this,{..._0x15ae91,'numeric':'auto','units':['years','months','days'],'calendary':!0x0}):null;}static['min'](..._0x2c5045){if(!_0x2c5045['every'](DateTime['isDateTime']))throw new InvalidArgumentError('min\x20requires\x20all\x20arguments\x20be\x20DateTimes');return bestBy(_0x2c5045,_0x9b131b=>_0x9b131b['valueOf'](),Math['min']);}static['max'](..._0x11a3d9){if(!_0x11a3d9['every'](DateTime['isDateTime']))throw new InvalidArgumentError('max\x20requires\x20all\x20arguments\x20be\x20DateTimes');return bestBy(_0x11a3d9,_0x52c743=>_0x52c743['valueOf'](),Math['max']);}static['fromFormatExplain'](_0x5225d4,_0x362e90,_0xc7197c={}){const {locale:_0x10d5f5=null,numberingSystem:_0x52d1db=null}=_0xc7197c;return explainFromTokens(Locale['fromOpts']({'locale':_0x10d5f5,'numberingSystem':_0x52d1db,'defaultToEN':!0x0}),_0x5225d4,_0x362e90);}static['fromStringExplain'](_0x5b7291,_0x189b76,_0xac8e19={}){return DateTime['fromFormatExplain'](_0x5b7291,_0x189b76,_0xac8e19);}static['buildFormatParser'](_0x26d288,_0x390b60={}){const {locale:_0x5e9112=null,numberingSystem:_0x3dc983=null}=_0x390b60,_0x37e1aa=Locale['fromOpts']({'locale':_0x5e9112,'numberingSystem':_0x3dc983,'defaultToEN':!0x0});return new TokenParser(_0x37e1aa,_0x26d288);}static['fromFormatParser'](_0x1ca4cd,_0x1d2d7a,_0x44c260={}){if(isUndefined(_0x1ca4cd)||isUndefined(_0x1d2d7a))throw new InvalidArgumentError('fromFormatParser\x20requires\x20an\x20input\x20string\x20and\x20a\x20format\x20parser');const {locale:_0xfc9638=null,numberingSystem:_0x299b7f=null}=_0x44c260,_0x96398f=Locale['fromOpts']({'locale':_0xfc9638,'numberingSystem':_0x299b7f,'defaultToEN':!0x0});if(!_0x96398f['equals'](_0x1d2d7a['locale']))throw new InvalidArgumentError('fromFormatParser\x20called\x20with\x20a\x20locale\x20of\x20'+_0x96398f+',\x20but\x20the\x20format\x20parser\x20was\x20created\x20for\x20'+_0x1d2d7a['locale']);const {result:_0x1c633c,zone:_0x43f80d,specificOffset:_0x5ed737,invalidReason:_0x550930}=_0x1d2d7a['explainFromTokens'](_0x1ca4cd);return _0x550930?DateTime['invalid'](_0x550930):parseDataToDateTime(_0x1c633c,_0x43f80d,_0x44c260,'format\x20'+_0x1d2d7a['format'],_0x1ca4cd,_0x5ed737);}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(_0xcc56){if(DateTime['isDateTime'](_0xcc56))return _0xcc56;if(_0xcc56&&_0xcc56['valueOf']&&isNumber(_0xcc56['valueOf']()))return DateTime['fromJSDate'](_0xcc56);if(_0xcc56&&'object'==typeof _0xcc56)return DateTime['fromObject'](_0xcc56);throw new InvalidArgumentError('Unknown\x20datetime\x20argument:\x20'+_0xcc56+',\x20of\x20type\x20'+typeof _0xcc56);}function getDateTimeFormatter(_0x40cb35={},_0x511acd){if(void 0x0!==_0x40cb35['dateTimeFormat']&&'function'!=typeof _0x40cb35['dateTimeFormat'])throw new CKEditorError('invalid-date-time-format');return _0x1ca9a3=>{const _0x9bac2c='string'==typeof _0x1ca9a3?DateTime['fromISO'](_0x1ca9a3):DateTime['fromJSDate'](_0x1ca9a3),_0x250c14=DateTime['now'](),_0x2611f7=Math['floor'](_0x250c14['diff'](_0x9bac2c,'days')['days']);return _0x40cb35['dateTimeFormat']?_0x40cb35['dateTimeFormat'](_0x9bac2c['toJSDate'](),_0x511acd&&_0x511acd['t']?_0x511acd['t']:void 0x0):0x0===_0x2611f7?_0x511acd?getTranslation$h(_0x511acd,'Today')+'\x20'+_0x9bac2c['toFormat']('hh:mma'):_0x9bac2c['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x2611f7?_0x511acd?getTranslation$h(_0x511acd,'Yesterday')+'\x20'+_0x9bac2c['toFormat']('hh:mma'):_0x9bac2c['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x2611f7<0x7?_0x511acd?getTranslation$h(_0x511acd,'Last')+'\x20'+getTranslation$h(_0x511acd,_0x9bac2c['toFormat']('EEEE'))+'\x20'+_0x9bac2c['toFormat']('hh:mma'):_0x9bac2c['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x9bac2c['toFormat']('LL-dd-yyyy\x20hh:mma');};}function getMarkerDomElement(_0x49abad,_0x26851b){const _0x32f1d2=_0x49abad['mapper']['markerNameToElements'](_0x26851b['name']);if(!_0x32f1d2)return null;const _0x4533ed=first(_0x32f1d2['values']());return _0x49abad['view']['domConverter']['mapViewToDom'](_0x4533ed)||null;}function getAllMarkersDomElementsSorted(_0x76a3b,_0x46bca4){if(0x0===_0x46bca4['length'])return null;const _0x26c6ea=[],_0x157316=_0x76a3b['view']['domConverter'];for(const _0xa8e0ae of _0x46bca4){const _0x4765a1=_0x76a3b['mapper']['markerNameToElements'](_0xa8e0ae['name']);if(!_0x4765a1)continue;const _0x4c5736=Array['from'](_0x4765a1)['map'](_0x2289b0=>_0x157316['mapViewToDom'](_0x2289b0))['filter'](_0x4bbe33=>!!_0x4bbe33);_0x26c6ea['push'](..._0x4c5736);}if(0x0===_0x26c6ea['length'])return null;const _0x2413c2=[];for(const _0x1754db of _0x26c6ea){const _0x4da447=_0x1754db['getClientRects']()['item'](0x0);_0x4da447&&_0x2413c2['push']({'x':_0x4da447['x'],'y':_0x4da447['y'],'domElement':_0x1754db});}return 0x0===_0x2413c2['length']?null:(_0x2413c2['sort']((_0x3ccdda,_0x59b2ce)=>_0x3ccdda['y']-_0x59b2ce['y']||_0x3ccdda['x']-_0x59b2ce['x']),_0x2413c2['map'](_0x311f32=>_0x311f32['domElement']));}function trimHtml(_0x5ce965,{limit:_0x5285d5,suffix:_0x403127='...'}){const _0x300d75=[];let _0x5f0ef4=0x0;const _0x5d264d=_0x5ce965['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x3915f8=0x0;_0x3915f8<_0x5d264d['length'];_0x3915f8++){let _0x482348=_0x5d264d[_0x3915f8];const _0x1c1fec=splitCharactersToArray(_0x482348);if(_0x482348['startsWith']('<')){if(_0x5f0ef4>=_0x5285d5){const _0x45b2fc=_0x482348['match'](/[a-zA-Z]+/);if(!_0x45b2fc){_0x5d264d[_0x3915f8]='';continue;}const _0x555b53=_0x45b2fc[0x0];_0x482348['startsWith']('</')?(_0x300d75['length']&&(_0x482348=''),_0x300d75['pop']()):(_0x300d75['push'](_0x555b53),_0x482348='');}}else{if(_0x5f0ef4>=_0x5285d5)_0x482348='';else{if(_0x5f0ef4+_0x1c1fec['length']>=_0x5285d5){let _0x4ba339=_0x5285d5-_0x5f0ef4;if('\x20'===_0x1c1fec[_0x4ba339-0x1])_0x4ba339--;else{const _0x5855f2=_0x1c1fec['slice'](_0x4ba339)['indexOf']('\x20');-0x1!==_0x5855f2?_0x4ba339+=_0x5855f2:_0x4ba339=_0x482348['length'];}_0x482348=_0x1c1fec['slice'](0x0,_0x4ba339)['join']('')+_0x403127,_0x5f0ef4=_0x5285d5;}else _0x5f0ef4+=_0x1c1fec['length'];}}_0x5d264d[_0x3915f8]=_0x482348;}return _0x5d264d['join']('\x0a')['replace'](/\n/g,'');}function splitCharactersToArray(_0x45617d){const _0xc1ece=[];for(let _0x4e4310=0x0;_0x4e4310<_0x45617d['length'];_0x4e4310++){const _0x2ef176=_0x45617d['substring'](_0x4e4310)['match'](/^&[a-z0-9#]+;/);if(_0x2ef176){const _0x5c5aa7=_0x2ef176[0x0];_0xc1ece['push'](_0x5c5aa7),_0x4e4310+=_0x5c5aa7['length']-0x1;}else _0xc1ece['push'](_0x45617d[_0x4e4310]);}return _0xc1ece;}class ConfirmView extends View{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x5eba62){super(_0x5eba62);const _0x13b122=this['bindTemplate'];this['set']('message',getTranslation$h(_0x5eba62,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x5eba62,getTranslation$h(_0x5eba62,'Yes'),IconCheck,'submit'),this['cancelView']=this['_createButtonView'](_0x5eba62,getTranslation$h(_0x5eba62,'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':_0x13b122['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'](_0x1f22fe,_0x3827e3,_0x1a615f,_0x36adb7){const _0x523799=new ButtonView(_0x1f22fe);return _0x523799['label']=_0x3827e3,_0x523799['icon']=_0x1a615f,_0x523799['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x36adb7}}),_0x523799['on']('execute',()=>this['fire'](_0x36adb7)),_0x523799;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x235f88=>{this['keystrokes']['listenTo'](_0x235f88['element']),this['focusTracker']['add'](_0x235f88['element']);}),this['keystrokes']['set']('esc',(_0xc50d4f,_0xf7b803)=>{this['fire']('cancel'),_0xf7b803();});}}function ConfirmMixin(_0x5e3957){return class extends _0x5e3957{['showConfirm'](_0x42b7b5,_0xfdd53a){return this['confirmView']=new ConfirmView(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x42b7b5,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0xfdd53a['appendChild'](this['confirmView']['element']),_0xfdd53a['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x257a86,_0x47076f,_0x5b9b5c)=>{_0x5b9b5c||_0xfdd53a['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x1416ee=>this['confirmView']['on']('submit',_0x1416ee));}['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(_0x444c9a){let _0x118ef8=0x0,_0x5d1727=0x0;for(const _0x469432 of objectToNumberGenerator(_0x444c9a))_0x118ef8=(_0x118ef8<<0x5)-_0x118ef8+_0x469432,_0x118ef8&=_0x118ef8,[_0x118ef8,_0x5d1727]=[_0x5d1727,_0x118ef8];return toString$1(_0x118ef8)+toString$1(_0x5d1727);}function*toNumberGenerator(_0x5a8133){null==_0x5a8133||null==_0x5a8133?yield 0x12b9b0a1:0x0===_0x5a8133||!0x1===_0x5a8133?yield 0x0:0x1===_0x5a8133||0x1==_0x5a8133?yield 0x1:Array['isArray'](_0x5a8133)?yield*arrayToNumberGenerator(_0x5a8133):'object'==typeof _0x5a8133?yield*objectToNumberGenerator(_0x5a8133):'string'==typeof _0x5a8133?yield*stringToNumberGenerator(_0x5a8133):'number'==typeof _0x5a8133&&(yield _0x5a8133);}function*objectToNumberGenerator(_0x3559e1){if(yield charCode('{'),_0x3559e1){const _0x3d14b8=Object['keys'](_0x3559e1)['sort']();for(const _0x423851 of _0x3d14b8){yield*stringToNumberGenerator(_0x423851),yield charCode(':');const _0x4e30df=_0x3559e1[_0x423851];yield*toNumberGenerator(_0x4e30df);}}yield charCode('}');}function*arrayToNumberGenerator(_0x3a7917){for(const _0x48af4a of _0x3a7917)yield*toNumberGenerator(_0x48af4a);}function*stringToNumberGenerator(_0x5d75b5){yield charCode('\x22');for(const _0x4a8f48 of _0x5d75b5)yield charCode(_0x4a8f48);yield charCode('\x22');}function charCode(_0x26353c){return _0x26353c['charCodeAt'](0x0);}function toString$1(_0x1cf2d9){return(_0x1cf2d9*=Math['sign'](_0x1cf2d9))['toString'](0x24);}const blackListedConfigOptions=['initialData','context','toolbar','rootsAttributes'],blackListedPlugins$2=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function skipRtcPlugins(_0x1edcb2,_0x3c86bd,_0x1c3248,_0x3b1719=[]){const _0x41f651='string'==typeof _0x1edcb2?_0x1c3248['get'](_0x1edcb2)['constructor']:_0x1edcb2['prototype']['constructor'];if(_0x3c86bd['has'](_0x41f651))return _0x3c86bd['get'](_0x41f651);_0x3c86bd['set'](_0x41f651,!0x0);const _0x685ce9=[...blackListedPlugins$2,..._0x3b1719]['map'](_0x3f97ab=>{if(_0x1c3248['has'](_0x3f97ab))return _0x1c3248['get'](_0x3f97ab)['constructor'];})['filter'](_0x17744a=>_0x17744a);if(_0x41f651&&_0x685ce9['includes'](_0x41f651))return _0x3c86bd['set'](_0x41f651,!0x1),!0x1;if(!_0x41f651['requires'])return _0x3c86bd['set'](_0x41f651,!0x0),!0x0;const _0x321c50=_0x41f651['requires']['every'](_0x100969=>skipRtcPlugins(_0x100969,_0x3c86bd,_0x1c3248,_0x3b1719));return _0x3c86bd['set'](_0x41f651,_0x321c50),_0x321c50;}function sanitizeEditorConfig(_0x2aed31,_0x334de7){const _0x18b99a={};for(const _0x369cf7 of _0x2aed31['config']['names']())blackListedConfigOptions['includes'](_0x369cf7)||(_0x18b99a[_0x369cf7]=_0x2aed31['config']['get'](_0x369cf7));const _0x29d00c=_0x18b99a['plugins']||[],_0x65fb28=_0x2aed31['constructor']['builtinPlugins']||[],_0x11bcc6=_0x29d00c['length']?_0x29d00c:_0x65fb28,_0x2287d6=_0x18b99a['extraPlugins']||[];delete _0x18b99a['extraPlugins'];const _0x5ee6a4=_0x18b99a['removePlugins']||[];delete _0x18b99a['removePlugins'];const _0x4371d2=_0x2aed31['_context']['config']['get']('plugins')||[],_0x2bfc9e=_0x11bcc6['concat'](_0x2287d6)['concat'](_0x4371d2)['map'](_0x42f3b0=>'string'==typeof _0x42f3b0?_0x65fb28['find'](_0xfb1cad=>_0xfb1cad['pluginName']==_0x42f3b0):_0x42f3b0)['filter'](_0x176d9b=>!_0x5ee6a4['includes'](_0x176d9b)&&!_0x5ee6a4['includes'](_0x176d9b['pluginName'])),_0x3353db=Array['from'](new Set(_0x2bfc9e)),_0x418089=new Map();return _0x18b99a['plugins']=_0x3353db['filter'](_0x12f1aa=>skipRtcPlugins(_0x12f1aa,_0x418089,_0x2aed31['plugins'],_0x334de7)),_0x18b99a;}function surroundingMarkersDetector(_0x4ee57e,_0x1044e5){const _0x5b5058=[];_0x4ee57e['document']['selection']['on']('change:range',()=>{const _0x246451=getSurroundingMarkers(_0x4ee57e,_0x4ee57e['document']['selection']['focus']),_0x204a61=[],_0x3d99c1=[],_0x444623=[];for(const _0x54c746 of _0x5b5058)_0x246451['includes'](_0x54c746)||_0x204a61['push'](_0x54c746);for(const _0x47b018 of _0x246451)_0x5b5058['includes'](_0x47b018)||_0x3d99c1['push'](_0x47b018),_0x444623['push'](_0x47b018);(_0x204a61['length']||_0x3d99c1['length'])&&_0x1044e5({'left':_0x204a61,'entered':_0x3d99c1}),_0x5b5058['length']=0x0,_0x5b5058['push'](..._0x444623);});}function getSurroundingMarkers(_0x2fa977,_0x2a2e35){const _0x4a08ce=[];for(const _0x17d30e of _0x2fa977['markers']){const _0x4a5e20=_0x17d30e['getRange']();(_0x4a5e20['containsPosition'](_0x2a2e35)||_0x4a5e20['start']['isEqual'](_0x2a2e35)||_0x4a5e20['end']['isEqual'](_0x2a2e35))&&_0x4a08ce['push'](_0x17d30e);}return _0x4a08ce;}const FOCUS_ANNOTATION_KEYSTROKE='Ctrl+Shift+E';function setupThreadKeyboardNavigation(_0x338213,_0x14fd73){const _0x4acde5=_0x338213['element'];_0x338213['keystrokes']['listenTo'](_0x4acde5);for(const _0x4924dc of _0x14fd73)addViewToFocusCyclerNavigation(_0x338213,_0x4924dc);_0x14fd73['on']('change',(_0xdea15f,_0x3cfea0)=>{for(const _0x43ca7c of _0x3cfea0['removed'])removeViewFromFocusCyclerNavigation(_0x338213,_0x43ca7c);for(const _0x460c83 of Array['from'](_0x3cfea0['added'])['reverse']())addViewToFocusCyclerNavigation(_0x338213,_0x460c83);}),_0x338213['keystrokes']['set']('enter',(_0x26fa6d,_0x3a77be)=>{_0x4acde5===_0x26fa6d['target']&&(_0x338213['focusCycler']['focusFirst'](),_0x3a77be());},{'filter':_0x14a663=>_0x14a663['target']===_0x4acde5}),_0x338213['keystrokes']['set']('esc',(_0x33efe8,_0x388fb9)=>{_0x4acde5!==_0x33efe8['target']?_0x338213['focus']():_0x338213['fire']('escape'),_0x388fb9();}),_0x338213['keystrokes']['set']('arrowdown',(_0x4b06d4,_0x5b184d)=>{_0x4acde5===_0x4b06d4['target']&&(_0x338213['fire']('arrowdown'),_0x5b184d());}),_0x338213['keystrokes']['set']('arrowup',(_0x5c63e5,_0x43dde0)=>{_0x4acde5===_0x5c63e5['target']&&(_0x338213['fire']('arrowup'),_0x43dde0());});}function addViewToFocusCyclerNavigation(_0x5896a4,_0x3784ca){_0x3784ca['isRendered']&&(_0x5896a4['focusTracker']['add'](_0x3784ca['element']),_0x5896a4['keystrokes']['listenTo'](_0x3784ca['element']),isViewWithFocusCycler(_0x3784ca)&&areFocusCyclerActionsCompatible(_0x5896a4['focusCycler'],_0x3784ca['focusCycler'])&&_0x5896a4['focusCycler']['chain'](_0x3784ca['focusCycler']));}function removeViewFromFocusCyclerNavigation(_0x518974,_0xf06083){_0x518974['focusTracker']['remove'](_0xf06083['element']),_0x518974['keystrokes']['stopListening'](_0xf06083['element']),isViewWithFocusCycler(_0xf06083)&&_0x518974['focusCycler']['unchain'](_0xf06083['focusCycler']);}function areFocusCyclerActionsCompatible(_0x2ca8d9,_0x18bbea){const _0x34e429=_0x2ca8d9['actions'],_0x219960=_0x18bbea['actions'];for(const _0x2474c9 of Object['keys'](_0x34e429))if(_0x2474c9 in _0x219960&&_0x34e429[_0x2474c9]!==_0x219960[_0x2474c9])return!0x1;return!0x0;}class Diff{['diff'](_0x3ca94b,_0x472e7c,_0x3c48fc={}){let _0x38a6c8;'function'==typeof _0x3c48fc?(_0x38a6c8=_0x3c48fc,_0x3c48fc={}):'callback'in _0x3c48fc&&(_0x38a6c8=_0x3c48fc['callback']);const _0x50c57c=this['castInput'](_0x3ca94b,_0x3c48fc),_0x39daa1=this['castInput'](_0x472e7c,_0x3c48fc),_0x4cb0f7=this['removeEmpty'](this['tokenize'](_0x50c57c,_0x3c48fc)),_0x1a1a50=this['removeEmpty'](this['tokenize'](_0x39daa1,_0x3c48fc));return this['diffWithOptionsObj'](_0x4cb0f7,_0x1a1a50,_0x3c48fc,_0x38a6c8);}['diffWithOptionsObj'](_0x4c2cd7,_0x30cabb,_0x13cd50,_0x1a732f){var _0x36fb2a;const _0x509831=_0x321597=>(_0x321597=this['postProcess'](_0x321597,_0x13cd50),_0x1a732f?void setTimeout(function(){_0x1a732f(_0x321597);},0x0):_0x321597),_0x23359d=_0x30cabb['length'],_0x4a1f25=_0x4c2cd7['length'];let _0x2fa08c=0x1,_0x295efb=_0x23359d+_0x4a1f25;null!=_0x13cd50['maxEditLength']&&(_0x295efb=Math['min'](_0x295efb,_0x13cd50['maxEditLength']));const _0x2e6d20=null!==(_0x36fb2a=_0x13cd50['timeout'])&&void 0x0!==_0x36fb2a?_0x36fb2a:0x1/0x0,_0x55d67d=Date['now']()+_0x2e6d20,_0x32f005=[{'oldPos':-0x1,'lastComponent':void 0x0}];let _0x922692=this['extractCommon'](_0x32f005[0x0],_0x30cabb,_0x4c2cd7,0x0,_0x13cd50);if(_0x32f005[0x0]['oldPos']+0x1>=_0x4a1f25&&_0x922692+0x1>=_0x23359d)return _0x509831(this['buildValues'](_0x32f005[0x0]['lastComponent'],_0x30cabb,_0x4c2cd7));let _0x25b931=-0x1/0x0,_0x2b7492=0x1/0x0;const _0x3f195a=()=>{for(let _0x2361f5=Math['max'](_0x25b931,-_0x2fa08c);_0x2361f5<=Math['min'](_0x2b7492,_0x2fa08c);_0x2361f5+=0x2){let _0x66a63;const _0x28b784=_0x32f005[_0x2361f5-0x1],_0x294709=_0x32f005[_0x2361f5+0x1];_0x28b784&&(_0x32f005[_0x2361f5-0x1]=void 0x0);let _0x18c258=!0x1;if(_0x294709){const _0x5ba222=_0x294709['oldPos']-_0x2361f5;_0x18c258=_0x294709&&0x0<=_0x5ba222&&_0x5ba222<_0x23359d;}const _0x48bf9b=_0x28b784&&_0x28b784['oldPos']+0x1<_0x4a1f25;if(_0x18c258||_0x48bf9b){if(_0x66a63=!_0x48bf9b||_0x18c258&&_0x28b784['oldPos']<_0x294709['oldPos']?this['addToPath'](_0x294709,!0x0,!0x1,0x0,_0x13cd50):this['addToPath'](_0x28b784,!0x1,!0x0,0x1,_0x13cd50),_0x922692=this['extractCommon'](_0x66a63,_0x30cabb,_0x4c2cd7,_0x2361f5,_0x13cd50),_0x66a63['oldPos']+0x1>=_0x4a1f25&&_0x922692+0x1>=_0x23359d)return _0x509831(this['buildValues'](_0x66a63['lastComponent'],_0x30cabb,_0x4c2cd7))||!0x0;_0x32f005[_0x2361f5]=_0x66a63,_0x66a63['oldPos']+0x1>=_0x4a1f25&&(_0x2b7492=Math['min'](_0x2b7492,_0x2361f5-0x1)),_0x922692+0x1>=_0x23359d&&(_0x25b931=Math['max'](_0x25b931,_0x2361f5+0x1));}else _0x32f005[_0x2361f5]=void 0x0;}_0x2fa08c++;};if(_0x1a732f)!function _0x3bc307(){setTimeout(function(){if(_0x2fa08c>_0x295efb||Date['now']()>_0x55d67d)return _0x1a732f(void 0x0);_0x3f195a()||_0x3bc307();},0x0);}();else for(;_0x2fa08c<=_0x295efb&&Date['now']()<=_0x55d67d;){const _0x1b0257=_0x3f195a();if(_0x1b0257)return _0x1b0257;}}['addToPath'](_0x2705f8,_0x59f9d3,_0x4dbd70,_0x8f3d4e,_0x5e3950){const _0x41cf33=_0x2705f8['lastComponent'];return _0x41cf33&&!_0x5e3950['oneChangePerToken']&&_0x41cf33['added']===_0x59f9d3&&_0x41cf33['removed']===_0x4dbd70?{'oldPos':_0x2705f8['oldPos']+_0x8f3d4e,'lastComponent':{'count':_0x41cf33['count']+0x1,'added':_0x59f9d3,'removed':_0x4dbd70,'previousComponent':_0x41cf33['previousComponent']}}:{'oldPos':_0x2705f8['oldPos']+_0x8f3d4e,'lastComponent':{'count':0x1,'added':_0x59f9d3,'removed':_0x4dbd70,'previousComponent':_0x41cf33}};}['extractCommon'](_0x2db933,_0x535217,_0xe25f77,_0x411415,_0x4e7362){const _0x267c59=_0x535217['length'],_0x9b6688=_0xe25f77['length'];let _0x13e46b=_0x2db933['oldPos'],_0x2b7664=_0x13e46b-_0x411415,_0x3f10c0=0x0;for(;_0x2b7664+0x1<_0x267c59&&_0x13e46b+0x1<_0x9b6688&&this['equals'](_0xe25f77[_0x13e46b+0x1],_0x535217[_0x2b7664+0x1],_0x4e7362);)_0x2b7664++,_0x13e46b++,_0x3f10c0++,_0x4e7362['oneChangePerToken']&&(_0x2db933['lastComponent']={'count':0x1,'previousComponent':_0x2db933['lastComponent'],'added':!0x1,'removed':!0x1});return _0x3f10c0&&!_0x4e7362['oneChangePerToken']&&(_0x2db933['lastComponent']={'count':_0x3f10c0,'previousComponent':_0x2db933['lastComponent'],'added':!0x1,'removed':!0x1}),_0x2db933['oldPos']=_0x13e46b,_0x2b7664;}['equals'](_0x327418,_0x4bdac5,_0x59e49c){return _0x59e49c['comparator']?_0x59e49c['comparator'](_0x327418,_0x4bdac5):_0x327418===_0x4bdac5||!!_0x59e49c['ignoreCase']&&_0x327418['toLowerCase']()===_0x4bdac5['toLowerCase']();}['removeEmpty'](_0x1f1a24){const _0x59b360=[];for(let _0x5df145=0x0;_0x5df145<_0x1f1a24['length'];_0x5df145++)_0x1f1a24[_0x5df145]&&_0x59b360['push'](_0x1f1a24[_0x5df145]);return _0x59b360;}['castInput'](_0x477fe1,_0x12cad3){return _0x477fe1;}['tokenize'](_0x40a91e,_0x3d3826){return Array['from'](_0x40a91e);}['join'](_0x397317){return _0x397317['join']('');}['postProcess'](_0x507edf,_0x21700d){return _0x507edf;}get['useLongestToken'](){return!0x1;}['buildValues'](_0x263562,_0x3a3fba,_0x3d0f04){const _0x3fe464=[];let _0x164d0f;for(;_0x263562;)_0x3fe464['push'](_0x263562),_0x164d0f=_0x263562['previousComponent'],delete _0x263562['previousComponent'],_0x263562=_0x164d0f;_0x3fe464['reverse']();const _0x212212=_0x3fe464['length'];let _0x5abf83=0x0,_0x2823a4=0x0,_0x2d2796=0x0;for(;_0x5abf83<_0x212212;_0x5abf83++){const _0x25981c=_0x3fe464[_0x5abf83];if(_0x25981c['removed'])_0x25981c['value']=this['join'](_0x3d0f04['slice'](_0x2d2796,_0x2d2796+_0x25981c['count'])),_0x2d2796+=_0x25981c['count'];else{if(!_0x25981c['added']&&this['useLongestToken']){let _0x315912=_0x3a3fba['slice'](_0x2823a4,_0x2823a4+_0x25981c['count']);_0x315912=_0x315912['map'](function(_0x4170d5,_0x59e7c4){const _0x27e85b=_0x3d0f04[_0x2d2796+_0x59e7c4];return _0x27e85b['length']>_0x4170d5['length']?_0x27e85b:_0x4170d5;}),_0x25981c['value']=this['join'](_0x315912);}else _0x25981c['value']=this['join'](_0x3a3fba['slice'](_0x2823a4,_0x2823a4+_0x25981c['count']));_0x2823a4+=_0x25981c['count'],_0x25981c['added']||(_0x2d2796+=_0x25981c['count']);}}return _0x3fe464;}}class ArrayDiff extends Diff{['tokenize'](_0xc4e3b6){return _0xc4e3b6['slice']();}['join'](_0x18f08f){return _0x18f08f;}['removeEmpty'](_0x22906c){return _0x22906c;}}const arrayDiff=new ArrayDiff();function diffArrays(_0x70c2b3,_0x4a8ebf,_0x250488){return arrayDiff['diff'](_0x70c2b3,_0x4a8ebf,_0x250488);}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',(_0x1f8279,_0x2e387e)=>{_0x2e387e['on']('ready',()=>{this['_integrateEditor'](_0x2e387e);});});}get['editor'](){if(this['context']instanceof Editor)return this['context'];{const _0x3dc6ae=this['context']['editors']['first'];if(!_0x3dc6ae)throw new CKEditorError('documentcompare-no-editor',this);return _0x3dc6ae;}}['getDiff'](_0x1882de,_0x567291,_0x5d1f0a={'anchor':'main','markDeletions':!0x1}){let _0x4596c1,_0x3bc25e;const _0x5c316c=this['editor'];if('string'==typeof _0x5d1f0a['anchor']){const _0x17326d=_0x5c316c['model']['document']['getRoot'](_0x5d1f0a['anchor']);if(!_0x17326d)throw new CKEditorError('documentcompare-compare-no-root',this,{'anchor':_0x5d1f0a['anchor']});_0x4596c1=_0x17326d,_0x3bc25e=_0x5c316c['model']['createPositionAt'](_0x17326d,0x0);}else _0x4596c1=_0x5d1f0a['anchor']['clone'](),_0x3bc25e=_0x5d1f0a['anchor']['clone']();const _0x50322f=_0x5c316c['data']['parse'](_0x1882de,_0x4596c1),_0x41210d=_0x5c316c['data']['parse'](_0x567291,_0x4596c1);return new DocumentDiff(_0x50322f,_0x41210d,_0x5c316c,{'anchor':_0x3bc25e,'markDeletions':_0x5d1f0a['markDeletions']});}['isMarkedRemoveOperation'](_0x238359){return'marker'==_0x238359['type']&&_0x238359['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x1ac4a2){_0x1ac4a2['conversion']['for']('upcast')['add'](_0x336eae=>{_0x336eae['on']('element',(_0x31e25c,_0x49ca17,_0x2bca6b)=>{if(_0x49ca17['modelRange'])for(const _0x46e76d of _0x49ca17['modelRange']['getItems']({'shallow':!0x0})){if(_0x46e76d['is']('$textProxy'))continue;const _0x3813dd=_0x49ca17['viewItem']['getAttribute'](DATA_ID_VIEW_ATTRIBUTE);_0x3813dd&&_0x2bca6b['writer']['setAttribute'](DATA_ID_MODEL_ATTRIBUTE,_0x3813dd,_0x46e76d);}},{'priority':'lowest'});}),_0x1ac4a2['model']['schema']['addAttributeCheck'](()=>!0x0,DATA_ID_MODEL_ATTRIBUTE);}}class DocumentDiff{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x55993d,_0x10260,_0x28280e,_0x1fe152){this['_editor']=_0x28280e,this['_markDeletions']=!!_0x1fe152['markDeletions'],this['_anchor']=_0x1fe152['anchor'];const _0x53a51b=this['_tokenizeModel'](_0x55993d),_0x3ef00f=this['_tokenizeModel'](_0x10260);this['_diffItems']=this['_diffModelTokens'](_0x53a51b,_0x3ef00f),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x55993d['markers'],_0x10260['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x5407d7=this['_editor']['model']['document'],_0x428a6a=[];let _0x2521c8=_0x5407d7['version'];for(const _0x536cdd of this['_operationsData'])switch(_0x536cdd['type']){case'attribute':{const _0x27c53c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x536cdd['path']),_0x260446=_0x27c53c['getShiftedBy'](_0x536cdd['howMany']),_0x3a72a7=new ModelRange(_0x27c53c,_0x260446),_0x5aa555=JSON['parse'](_0x536cdd['oldValue']),_0x5aeb0f=JSON['parse'](_0x536cdd['newValue']);_0x428a6a['push'](new AttributeOperation(_0x3a72a7,_0x536cdd['key'],_0x5aa555,_0x5aeb0f,_0x2521c8++));break;}case'insert':{const _0x419d6a=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x536cdd['path']),_0x5e087c=this['_makeModelFromTokens'](_0x536cdd['tokens']);_0x428a6a['push'](new InsertOperation(_0x419d6a,_0x5e087c,_0x2521c8++));break;}case'remove':{const _0x55c536=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x536cdd['path']),_0x4584ba=new ModelPosition(_0x5407d7['graveyard'],[0x0]);_0x428a6a['push'](new MoveOperation(_0x55c536,_0x536cdd['howMany'],_0x4584ba,_0x2521c8++));break;}case'rename':{const _0x248baf=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x536cdd['path']);_0x428a6a['push'](new RenameOperation(_0x248baf,_0x536cdd['oldName'],_0x536cdd['newName'],_0x2521c8++));break;}case'split':{const _0x41bb2d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x536cdd['path']),_0x1356f9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x536cdd['path']['slice'](0x0,-0x1));_0x1356f9['offset']++,_0x428a6a['push'](new SplitOperation(_0x41bb2d,Number['NEGATIVE_INFINITY'],_0x1356f9,null,_0x2521c8++));break;}case'merge':{const _0x44ee18=_0x536cdd['path']['slice'](),_0x1a3dee=_0x44ee18['slice'](0x0,-0x1);_0x1a3dee[_0x1a3dee['length']-0x1]++,_0x1a3dee['push'](0x0);const _0x526f4b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1a3dee),_0x4dd30d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x44ee18),_0x5e87d8=new ModelPosition(_0x5407d7['graveyard'],[0x0]);_0x428a6a['push'](new MergeOperation(_0x526f4b,Number['NEGATIVE_INFINITY'],_0x4dd30d,_0x5e87d8,_0x2521c8++));break;}case'marker':case'markedRemove':{let _0x5ac6a9=null;if(_0x536cdd['range']){const _0x2c1916=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x536cdd['range']['start']),_0x2fe06c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x536cdd['range']['end']);_0x5ac6a9=new ModelRange(_0x2c1916,_0x2fe06c);}const _0x3eb193='marker'==_0x536cdd['type']?_0x536cdd['name']:'$markedRemove:'+uid();_0x428a6a['push'](new MarkerOperation(_0x3eb193,null,_0x5ac6a9,_0x5407d7['model']['markers'],!0x0,_0x2521c8++));break;}case'unwrap':{const _0x2490fe=_0x536cdd['path']['slice']();_0x2490fe['push'](0x0);const _0x558767=_0x536cdd['path']['slice'](),_0x17db4a=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2490fe),_0x473884=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x558767),_0x19557a=new ModelPosition(_0x5407d7['graveyard'],[0x0]);_0x428a6a['push'](new MoveOperation(_0x17db4a,_0x536cdd['howMany'],_0x473884,_0x2521c8++)),_0x428a6a['push'](new MoveOperation(_0x473884['getShiftedBy'](_0x536cdd['howMany']),0x1,_0x19557a,_0x2521c8++));break;}case'wrap':{const _0x584ce1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x536cdd['range']['start']),_0x179611=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x536cdd['range']['end']),_0x43d53e=_0x536cdd['token']['element']['_clone'](!0x1),_0x24dcc1=_0x536cdd['range']['end']['slice']();_0x24dcc1['push'](0x0);const _0xee2cb5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x24dcc1);_0x428a6a['push'](new InsertOperation(_0x179611,_0x43d53e,_0x2521c8++)),_0x428a6a['push'](new MoveOperation(_0x584ce1,_0x179611['offset']-_0x584ce1['offset'],_0xee2cb5,_0x2521c8++));break;}}return _0x428a6a;}['_tokenizeModel'](_0x1ceefb){const _0x21c702=[],_0x2747b0=ModelRange['_createIn'](_0x1ceefb),_0x4fb58b=new ModelTreeWalker({'boundaries':_0x2747b0});let _0x5f3a96='',_0x1e31ea=null;const _0x548485=[''],_0x101eea=new Map();for(const _0x500adf of _0x4fb58b)if('elementStart'==_0x500adf['type']||'elementEnd'==_0x500adf['type']){let _0x2a0cf0=_0x548485[0x0];''!==_0x5f3a96&&(_0x21c702['push'](...this['_makeTokensFromTextByWords'](_0x5f3a96,_0x1e31ea,_0x2a0cf0)),_0x5f3a96='');const _0x20a3f5=_0x500adf['item'];let _0x1e7ef8;_0x20a3f5['getAttribute'](DATA_ID_MODEL_ATTRIBUTE)?_0x1e7ef8=_0x20a3f5['getAttribute'](DATA_ID_MODEL_ATTRIBUTE):'elementStart'==_0x500adf['type']?(_0x1e7ef8=makeUidForElement(_0x20a3f5),_0x101eea['set'](_0x20a3f5,_0x1e7ef8)):_0x1e7ef8=_0x101eea['get'](_0x20a3f5);const _0x552892=this['_getElementCategory'](_0x20a3f5);'solid'==_0x552892&&('elementStart'==_0x500adf['type']?(_0x2a0cf0=_0x1e7ef8,_0x548485['unshift'](_0x2a0cf0)):_0x548485['shift']());const _0x55cd96={'type':'element','element':_0x20a3f5,'elementId':_0x1e7ef8,'category':_0x552892,'isStart':'elementStart'==_0x500adf['type'],'limitId':_0x2a0cf0};_0x21c702['push'](_0x55cd96);}else''==_0x5f3a96&&(_0x1e31ea=_0x500adf['previousPosition']['clone']()),_0x5f3a96+=_0x500adf['item']['data'];return''!==_0x5f3a96&&_0x21c702['push'](...this['_makeTokensFromTextByWords'](_0x5f3a96,_0x1e31ea,_0x548485[0x0])),_0x21c702;}['_makeTokensFromTextByWords'](_0x5e81e3,_0x2e9c2f,_0x106831){const _0x4eb638=_0x5e81e3['matchAll'](/(\s)/g),_0x568fea=Array['from'](_0x4eb638)['map'](_0x220219=>_0x220219['index']);_0x568fea['push'](_0x5e81e3['length']),0x0==_0x568fea[0x0]&&_0x568fea['shift']();const _0x5dfdb2=[],_0x5dc23a=_0x2e9c2f['parent'];let _0x4f84d7=0x0,_0x414529=_0x2e9c2f['offset'];for(let _0x38b2a4=0x0;_0x38b2a4<_0x568fea['length'];_0x38b2a4++)_0x5dfdb2['push']({'type':'text','data':_0x5e81e3['slice'](_0x4f84d7,_0x568fea[_0x38b2a4]),'parent':_0x5dc23a,'offset':_0x414529,'limitId':_0x106831}),_0x4f84d7=_0x568fea[_0x38b2a4],_0x414529=_0x2e9c2f['offset']+_0x568fea[_0x38b2a4];return _0x5dfdb2;}['_getElementCategory'](_0x4c7d9b){const _0x7ccac7=this['_editor']['model']['schema'];return _0x7ccac7['isLimit'](_0x4c7d9b)||_0x7ccac7['isContent'](_0x4c7d9b)||_0x7ccac7['isInline'](_0x4c7d9b)?'solid':_0x7ccac7['isBlock'](_0x4c7d9b)?'block':'container';}['_diffModelTokens'](_0x4d652d,_0x3690d0){const _0x204a7a=diffArrays(_0x4d652d,_0x3690d0,{'comparator':compareModelTokens});this['_handleUnclosedBlockOpeningTags'](_0x204a7a);const _0x205906=_0x204a7a['flatMap'](_0x12222e=>{const _0x262887=_0x12222e['added']?'added':_0x12222e['removed']?'removed':'unchanged';return _0x12222e['value']['map'](_0x432063=>({'token':_0x432063,'change':_0x262887}));});let _0x56dbff=0x0;for(const _0x154797 of _0x205906)'added'!=_0x154797['change']&&('unchanged'==_0x154797['change']&&(_0x154797['before']=_0x4d652d[_0x56dbff]),_0x56dbff++);return _0x205906;}['_handleUnclosedBlockOpeningTags'](_0x4c1f22){for(let _0x399c96=0x0;_0x399c96<_0x4c1f22['length']-0x1;_0x399c96++)if(_0x4c1f22[_0x399c96]['removed']&&_0x4c1f22[_0x399c96+0x1]['added']){const _0x51e625=this['_findUnclosedBlockOpeningToken'](_0x4c1f22[_0x399c96]['value']);if(null!==_0x51e625){const _0x5ff001=this['_findUnclosedBlockOpeningToken'](_0x4c1f22[_0x399c96+0x1]['value']),_0x2adf4a=_0x4c1f22[_0x399c96]['value']['splice'](_0x51e625),_0x207139=_0x4c1f22[_0x399c96+0x1]['value']['splice'](_0x5ff001),_0x90c182=[_0x207139['shift']()];_0x2adf4a['shift']();const _0x1f7df8={'value':_0x2adf4a,'removed':!0x0},_0xead52f={'value':_0x207139,'added':!0x0},_0x3dce0f={'value':_0x90c182};_0x4c1f22['splice'](_0x399c96+0x2,0x0,_0x3dce0f,_0x1f7df8,_0xead52f);}}}['_findUnclosedBlockOpeningToken'](_0xbc68c2){let _0x41a9f8=0x0,_0x45d1a4=-0x1;for(let _0x100f6f=0x0;_0x100f6f<_0xbc68c2['length'];_0x100f6f++){const _0x1085f4=_0xbc68c2[_0x100f6f];'element'==_0x1085f4['type']&&'block'==_0x1085f4['category']&&(_0x41a9f8+=_0x1085f4['isStart']?0x1:-0x1,_0x1085f4['isStart']&&(_0x45d1a4=_0x100f6f));}return 0x0===_0x41a9f8?null:_0x45d1a4;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x3b0896=0x0;_0x3b0896<this['_diffItems']['length'];_0x3b0896++){const _0x34f488=this['_diffItems'][_0x3b0896]['change'],_0x30cc5=[];_0x30cc5['push'](this['_diffItems'][_0x3b0896]);let _0x754ccd=_0x3b0896+0x1;for(;this['_diffItems'][_0x754ccd]&&this['_diffItems'][_0x754ccd]['change']==_0x34f488;)_0x30cc5['push'](this['_diffItems'][_0x754ccd]),_0x754ccd++,_0x3b0896++;const _0x2253c5=_0x30cc5['map'](_0x449f62=>_0x449f62['token']);if('unchanged'==_0x34f488)_0x30cc5['map'](_0x2d400a=>_0x2d400a['before'])['forEach'](_0x110438=>this['_traverseOverItem'](_0x110438));else{if('removed'==_0x34f488){if(this['_markDeletions']){const _0x12e9ba=this['_path']['slice']();_0x2253c5['forEach'](_0x428927=>this['_traverseOverItem'](_0x428927));const _0x4cc4a4=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x12e9ba,'end':_0x4cc4a4}});}else this['_handleChanged'](_0x2253c5,!0x0,this['_path']['slice']());}else{const _0x187ba7=_0x2253c5['filter'](_0x9f1622=>'element'!=_0x9f1622['type']||'container'!=_0x9f1622['category']);this['_handleChanged'](_0x187ba7,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x5c229b=0x0;_0x5c229b<this['_diffItems']['length'];_0x5c229b++){const _0x310170=this['_diffItems'][_0x5c229b]['change'],_0x149eae=[];_0x149eae['push'](this['_diffItems'][_0x5c229b]);let _0x2426f0=_0x5c229b+0x1;for(;this['_diffItems'][_0x2426f0]&&this['_diffItems'][_0x2426f0]['change']==_0x310170;)_0x149eae['push'](this['_diffItems'][_0x2426f0]),_0x2426f0++,_0x5c229b++;const _0x45d225=_0x149eae['map'](_0x2e3523=>_0x2e3523['token']);if('unchanged'==_0x310170){const _0x2f2263=_0x149eae['map'](_0x5a617d=>_0x5a617d['before']);this['_handleUnchanged'](_0x2f2263,_0x45d225);}else('removed'!=_0x310170||this['_markDeletions'])&&_0x45d225['forEach'](_0x24f5b0=>{this['_traverseOverItem'](_0x24f5b0);});}}['_calculateMarkersOperationsData'](_0x10262e,_0x257a31){const _0xdf349={};for(const [_0x3c21aa]of _0x10262e)_0xdf349[_0x3c21aa]=null;for(const [_0x13d1dd,_0x51ccd4]of _0x257a31)_0xdf349[_0x13d1dd]=_0x51ccd4;const _0x131020=Object['entries'](_0xdf349)['map'](([_0x377b00,_0x436a0d])=>({'type':'marker','name':_0x377b00,'range':_0x436a0d?{'start':_0x436a0d['start']['path']['slice'](),'end':_0x436a0d['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x131020);}['_handleUnwraps'](){const _0x56b260=new Map(),_0x407064=[],_0x21d7a3=[0x0];let _0x2baa94=this['_diffItems']['length']+0x1;for(let _0x490b2b=this['_diffItems']['length']-0x1;_0x490b2b>=0x0;_0x490b2b--){const {token:_0x1cc6e6,before:_0x1f2a2c,change:_0x40316d}=this['_diffItems'][_0x490b2b];if('removed'!=_0x40316d&&(_0x2baa94=_0x490b2b),'element'!=_0x1cc6e6['type']||'container'!=_0x1cc6e6['category']||'added'==_0x40316d)continue;const _0x419bb7=_0x1f2a2c?_0x1f2a2c['element']:_0x1cc6e6['element'];if(_0x1cc6e6['isStart']){const _0xc9bf2b=_0x56b260['get'](_0x419bb7),_0x1bdef4=this['_diffItems'][_0xc9bf2b];('removed'==_0x40316d||'removed'==_0x1bdef4['change'])&&_0x2baa94<_0xc9bf2b&&(this['_operationsData']['push']({'type':'unwrap','path':_0x419bb7['getPath'](),'howMany':_0x419bb7['maxOffset']+_0x21d7a3[0x0]}),_0x21d7a3['shift'](),_0x21d7a3[0x0]+=_0x419bb7['maxOffset']-0x1,_0x407064['push'](_0x490b2b),_0x407064['push'](_0xc9bf2b));}else _0x56b260['set'](_0x419bb7,_0x490b2b),_0x21d7a3['unshift'](0x0);}_0x407064['sort']((_0x4a13ef,_0x5e907d)=>_0x5e907d-_0x4a13ef),_0x407064['forEach'](_0x5637c8=>{const _0x260f55=this['_diffItems'][_0x5637c8];'removed'==_0x260f55['change']?this['_diffItems']['splice'](_0x5637c8,0x1):(_0x260f55['change']='added',delete _0x260f55['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x24ed4c=[];for(let _0x38a674=0x0;_0x38a674<this['_diffItems']['length'];_0x38a674++){const {change:_0x3bbb20,token:_0x400b4e}=this['_diffItems'][_0x38a674];if('added'==_0x3bbb20&&'element'==_0x400b4e['type']&&'container'==_0x400b4e['category']){if(_0x400b4e['isStart'])_0x24ed4c['push'](this['_path']['slice']());else{if(!_0x400b4e['isStart']){const _0xa131e1=_0x24ed4c['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0xa131e1,'end':this['_path']['slice']()},'token':_0x400b4e}),this['_path'][this['_path']['length']-0x1]=_0xa131e1[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x3bbb20||this['_markDeletions'])&&this['_traverseOverItem'](_0x400b4e);}}['_handleUnchanged'](_0x27ed22,_0x4a2315){for(let _0x440c53=0x0;_0x440c53<_0x27ed22['length'];_0x440c53++){const _0x4f8376=_0x27ed22[_0x440c53];if('element'==_0x4f8376['type']&&_0x4f8376['isStart']){const _0xacd2cf=_0x4a2315[_0x440c53];'block'==_0x4f8376['category']&&this['_handleElementRename'](_0x4f8376['element'],_0xacd2cf['element'],this['_path']),this['_handleElementAttributeChanges'](_0x4f8376['element'],_0xacd2cf['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0xacd2cf);}else{if('element'!=_0x4f8376['type']||_0x4f8376['isStart']){if('text'==_0x4f8376['type']){const _0xaad3a2=this['_path']['slice'](),_0x48e2a2=[],_0x501baa=[];for(;_0x27ed22[_0x440c53]&&'text'==_0x27ed22[_0x440c53]['type'];)_0x48e2a2['push'](_0x27ed22[_0x440c53]),_0x501baa['push'](_0x4a2315[_0x440c53]),this['_path'][this['_path']['length']-0x1]+=_0x27ed22[_0x440c53]['data']['length'],_0x440c53++;_0x440c53--,this['_handleTextAttributeChanges'](_0x48e2a2,_0x501baa,_0xaad3a2);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x45e40d,_0x42f7ba,_0x31411e){const _0x1dc5d2=[],_0x164e57=[],_0x7e79fb=_0x31411e['slice']();for(let _0x48d329=0x0;_0x48d329<_0x45e40d['length'];_0x48d329++){const _0x40f61e=_0x45e40d[_0x48d329],_0x2285b8=_0x31411e['slice']();if('element'!=_0x40f61e['type']||_0x40f61e['isStart'])'element'==_0x40f61e['type']&&_0x40f61e['isStart']?(_0x31411e['push'](0x0),_0x42f7ba||this['_parents']['push'](_0x40f61e),_0x164e57['push']({'before':_0x2285b8,'after':_0x31411e['slice'](),'index':_0x48d329})):_0x31411e[_0x31411e['length']-0x1]+=_0x40f61e['data']['length'];else{let _0x3c0175;_0x31411e['pop'](),_0x31411e[_0x31411e['length']-0x1]++,_0x3c0175=_0x42f7ba?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x164e57['length']?_0x164e57['pop']():_0x1dc5d2['push']({'before':_0x2285b8,'after':_0x31411e['slice'](),'index':_0x48d329,'related':_0x3c0175});}}if(_0x164e57['length']!==_0x1dc5d2['length'])throw new CKEditorError('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x45e40d,'isRemove':_0x42f7ba});const _0x238394=[{'after':_0x7e79fb['slice'](),'index':-0x1},..._0x1dc5d2,..._0x164e57,{'before':_0x31411e['slice'](),'index':_0x45e40d['length']}];if(_0x42f7ba){for(let _0x14207a=_0x238394['length']-0x1;_0x14207a>=0x1;_0x14207a--){const _0x38c8a5=_0x238394[_0x14207a-0x1]['after'],_0x33cd7e=_0x238394[_0x14207a]['before'],_0x4a25e1=_0x33cd7e[_0x33cd7e['length']-0x1]-_0x38c8a5[_0x38c8a5['length']-0x1];_0x4a25e1&&(this['_operationsData']['push']({'type':'remove','path':_0x38c8a5,'howMany':_0x4a25e1}),_0x33cd7e[_0x33cd7e['length']-0x1]-=_0x4a25e1);}for(const {before:_0x3627ac}of _0x1dc5d2)this['_operationsData']['push']({'type':'merge','path':_0x3627ac});}else for(let _0x3a6ddf=0x0;_0x3a6ddf<_0x238394['length']-0x1;_0x3a6ddf++){const _0x4320a6=_0x238394[_0x3a6ddf]['after'],_0x5b175f=_0x238394[_0x3a6ddf+0x1]['before'],_0x136188=_0x238394[_0x3a6ddf]['index']+0x1,_0x4d99de=_0x238394[_0x3a6ddf+0x1]['index'];if(_0x136188!==_0x4d99de&&this['_operationsData']['push']({'type':'insert','path':_0x4320a6,'tokens':_0x45e40d['slice'](_0x136188,_0x4d99de)}),_0x3a6ddf<_0x1dc5d2['length']){this['_operationsData']['push']({'type':'split','path':_0x5b175f});const _0x69751=_0x45e40d[_0x164e57[_0x164e57['length']-0x1-_0x3a6ddf]['index']],_0x4d7a4a=_0x1dc5d2[_0x3a6ddf]['after'],_0x183f22=_0x1dc5d2[_0x3a6ddf]['related']['element'];this['_handleElementRename'](_0x183f22,_0x69751['element'],_0x4d7a4a),this['_handleElementAttributeChanges'](_0x183f22,_0x69751['element'],_0x4d7a4a);}}}['_traverseOverItem'](_0x359167){'element'==_0x359167['type']&&_0x359167['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x359167)):'element'!=_0x359167['type']||_0x359167['isStart']?'text'==_0x359167['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x359167['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x5eeb62,_0x46f936,_0x3b954f){_0x5eeb62['name']!=_0x46f936['name']&&this['_operationsData']['push']({'type':'rename','path':_0x3b954f['slice'](),'oldName':_0x5eeb62['name'],'newName':_0x46f936['name']});}['_handleElementAttributeChanges'](_0xc0a785,_0x5b86df,_0x5b1f98){const _0x414c29=this['_getAttributeChanges'](_0xc0a785['getAttributes'](),_0x5b86df['getAttributes']());for(const _0x567af4 in _0x414c29){const {oldValue:_0x4b4045,newValue:_0x1c84da}=_0x414c29[_0x567af4];this['_operationsData']['push']({'type':'attribute','path':_0x5b1f98['slice'](),'howMany':0x1,'key':_0x567af4,'oldValue':_0x4b4045,'newValue':_0x1c84da});}}['_handleTextAttributeChanges'](_0xbd8910,_0x3a05b8,_0x4d05f6){const _0x4e9699=this['_operationsData'],_0x34c1e6=_0xbd8910[0x0]['parent'],_0x10916b=_0xbd8910[0x0]['offset'],_0x267f25=_0x3a05b8[0x0]['parent'],_0x2e9577=_0x3a05b8[0x0]['offset'],_0x6314df=_0xbd8910['reduce']((_0x47f740,_0x43ac6e)=>_0x47f740+_0x43ac6e['data']['length'],0x0),_0x306831=this['_getAttrsForOffsets'](_0x34c1e6,_0x10916b,_0x6314df),_0xedb35c=this['_getAttrsForOffsets'](_0x267f25,_0x2e9577,_0x6314df),_0x5dc548={};for(let _0x3f92e0=0x0;_0x3f92e0<_0x6314df;_0x3f92e0++){const _0x5b0126=_0x306831[_0x10916b+_0x3f92e0],_0x57b33d=_0xedb35c[_0x2e9577+_0x3f92e0],_0x4f49b1=this['_getAttributeChanges'](_0x5b0126,_0x57b33d);for(const _0x260a96 in _0x5dc548)_0x4f49b1[_0x260a96]||_0x4f80ae(_0x260a96);for(const _0x135c4d in _0x4f49b1){const {oldValue:_0x513336,newValue:_0x4bc941}=_0x4f49b1[_0x135c4d],_0x5a5ba0=_0x5dc548[_0x135c4d];_0x5a5ba0?_0x5a5ba0['oldValue']==_0x513336&&_0x5a5ba0['newValue']==_0x4bc941?_0x5a5ba0['length']++:(_0x4f80ae(_0x135c4d),_0x5dc548[_0x135c4d]={'oldValue':_0x513336,'newValue':_0x4bc941,'start':_0x3f92e0,'length':0x1}):_0x5dc548[_0x135c4d]={'oldValue':_0x513336,'newValue':_0x4bc941,'start':_0x3f92e0,'length':0x1};}}for(const _0x3ed8e7 in _0x5dc548)_0x4f80ae(_0x3ed8e7);function _0x4f80ae(_0x29d625){const _0xf74b4e=_0x5dc548[_0x29d625],_0x111dbd=_0x4d05f6['slice']();_0x111dbd[_0x111dbd['length']-0x1]+=_0xf74b4e['start'],_0x4e9699['push']({'type':'attribute','path':_0x111dbd,'howMany':_0xf74b4e['length'],'key':_0x29d625,'oldValue':_0xf74b4e['oldValue'],'newValue':_0xf74b4e['newValue']}),delete _0x5dc548[_0x29d625];}}['_getAttributeChanges'](_0x34433d,_0x459482){const _0x3de00e={};for(const [_0x2fbecf,_0xade0c6]of _0x34433d)_0x3de00e[_0x2fbecf]={'oldValue':JSON['stringify'](_0xade0c6),'newValue':'null'};for(const [_0x245c71,_0x6a02ac]of _0x459482){const _0xcbfa4c=JSON['stringify'](_0x6a02ac);_0x3de00e[_0x245c71]?_0x3de00e[_0x245c71]['oldValue']==_0xcbfa4c?delete _0x3de00e[_0x245c71]:_0x3de00e[_0x245c71]['newValue']=_0xcbfa4c:_0x3de00e[_0x245c71]={'oldValue':'null','newValue':_0xcbfa4c};}return delete _0x3de00e[DATA_ID_MODEL_ATTRIBUTE],_0x3de00e;}['_getAttrsForOffsets'](_0x20d8e6,_0x2d6cfa,_0x13a903){const _0x123722=new Array(_0x2d6cfa+_0x13a903);let _0x76ee2b=_0x20d8e6['getChildAtOffset'](_0x2d6cfa),_0x44aca7=_0x76ee2b['startOffset'];for(;_0x76ee2b&&_0x44aca7<_0x2d6cfa+_0x13a903;){const _0x507cf6=Array['from'](_0x76ee2b['getAttributes']());_0x123722['fill'](_0x507cf6,_0x44aca7,_0x44aca7+_0x76ee2b['offsetSize']),_0x44aca7+=_0x76ee2b['offsetSize'],_0x76ee2b=_0x76ee2b['nextSibling'];}return _0x123722;}['_getPositionFromAnchorAndPath'](_0x5dd36d,_0x2f4afa){const _0x1bf5b0=[..._0x5dd36d['path']['slice'](0x0,-0x1),_0x5dd36d['offset']+_0x2f4afa[0x0],..._0x2f4afa['slice'](0x1)];return new ModelPosition(_0x5dd36d['root'],_0x1bf5b0);}['_makeModelFromTokens'](_0x127ee5){const _0x5f1c5f=[];let _0x1b28e7=null;for(const _0x277175 of _0x127ee5)if('element'!=_0x277175['type']||_0x277175['isStart']||_0x1b28e7!=_0x277175['element']){if(!_0x1b28e7){if('text'==_0x277175['type']){const _0x3b2252=ModelPosition['_createAt'](_0x277175['parent'],_0x277175['offset']),_0x7a96b4=ModelRange['_createFromPositionAndShift'](_0x3b2252,_0x277175['data']['length']),_0x2c9102=Array['from'](_0x7a96b4['getItems']())['map'](_0x318e15=>new ModelText(_0x318e15['data'],_0x318e15['getAttributes']()));_0x5f1c5f['push'](..._0x2c9102);}else{_0x1b28e7=_0x277175['element'];const _0x29ea83=_0x277175['element']['_clone'](!0x0);_0x29ea83['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);for(const _0xf00a76 of this['_editor']['model']['createRangeIn'](_0x29ea83)['getItems']())_0xf00a76['is']('element')&&_0xf00a76['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);_0x5f1c5f['push'](_0x29ea83);}}}else _0x1b28e7=null;return _0x5f1c5f;}}function compareModelTokens(_0x78d1e,_0xb89494){return _0x78d1e['type']===_0xb89494['type']&&(_0x78d1e['limitId']===_0xb89494['limitId']&&('text'==_0x78d1e['type']?_0x78d1e['data']==_0xb89494['data']:compareModelElementTokens(_0x78d1e,_0xb89494)));}function compareModelElementTokens(_0x47a5ce,_0x420777){return _0x47a5ce['isStart']==_0x420777['isStart']&&((!_0x47a5ce['isStart']||_0x47a5ce['elementId']==_0x420777['elementId'])&&(_0x47a5ce['category']==_0x420777['category']&&('block'==_0x47a5ce['category']||('container'!=_0x47a5ce['category']||_0x47a5ce['elementId']==_0x420777['elementId'])&&_0x47a5ce['element']['name']==_0x420777['element']['name'])));}function makeUidForElement(_0x51d2af){return hashObject({'name':_0x51d2af['name'],...Object['fromEntries'](_0x51d2af['getAttributes']())});}function getSuggestionPartsFromReply({editor:_0x1843e0,changeGroups:_0xade74c,documentContextContent:_0x4afd24,showDiff:_0x18b337,trimUnchanged:_0x492a83=!0x0}){return _0xade74c['map'](_0x1f8188=>{const _0xb899c7=new Document([]),_0x4e003c=new Document([]);for(const _0x588989 of _0x1f8188['changes'])if(_0x18b337&&'removed'==_0x588989['type']||_0x4e003c['children']['push'](_0x588989['node']['cloneNode'](!0x0)),'new'!=_0x588989['type']&&(_0x18b337||'removed'!=_0x588989['type'])){const _0x4bf6fd=findOne(_0xa20f53=>getAttribute(_0xa20f53,'data-id')==_0x588989['id'],_0x4afd24,!0x0);_0x4bf6fd&&_0xb899c7['children']['push'](_0x4bf6fd['cloneNode'](!0x0));}const {content:_0x1bc232,hasChanges:_0x5e8799}=passThroughEditorDataPipeline(_0x1843e0,_0xb899c7,_0x4e003c,_0x18b337,_0x492a83);return{'type':_0x1f8188['changes'][0x0]['type'],'index':_0x1f8188['index'],'content':_0x1bc232,'hasChanges':_0x5e8799};});}function passThroughEditorDataPipeline(_0x248dff,_0x32543d,_0x5019f0,_0x18fed9,_0x438efe=!0x0){const _0x31516f=_0x248dff['plugins']['get']('DocumentCompare'),_0x51c685=serialize(_0x32543d),_0x47d5f4=serialize(_0x5019f0),_0x321a7e=_0x248dff['data']['parse'](_0x51c685,'$root'),_0x23e8af=_0x248dff['model']['createPositionAt'](_0x321a7e,0x0),_0x21cb23=_0x31516f['getDiff'](_0x51c685,_0x47d5f4,{'anchor':_0x23e8af,'markDeletions':_0x18fed9})['getOperations']();if(0x0==_0x21cb23['length'])return{'content':_0x32543d['cloneNode'](!0x0),'hasChanges':!0x1};if(_0x18fed9?applyOperationsAndDiffMarkers(_0x21cb23,_0x321a7e,_0x248dff):_0x248dff['model']['change'](_0x563247=>{for(const _0x2313d5 of _0x21cb23)if('remove'==_0x2313d5['type']){const _0x45dc77=_0x2313d5['sourcePosition'],_0x269155=_0x2313d5['howMany'],_0x1e0e66=new _DetachOperation(_0x45dc77,_0x269155);_0x563247['batch']['addOperation'](_0x1e0e66),_0x248dff['model']['applyOperation'](_0x1e0e66);}else{if('marker'==_0x2313d5['type']){const _0x2205e4=_0x2313d5['name'],_0x4082fd=_0x2313d5['newRange'];null!==_0x4082fd?_0x321a7e['markers']['set'](_0x2205e4,_0x4082fd):_0x321a7e['markers']['delete'](_0x2205e4);}else _0x2313d5['baseVersion']=null,_0x2313d5['isDocumentOperation']=!0x1,_0x563247['batch']['addOperation'](_0x2313d5),_0x248dff['model']['applyOperation'](_0x2313d5);}}),_0x438efe){const _0xfafab0=getMinimalSelection(_0x248dff,_0x21cb23,_0x321a7e);expandSelectionWithContext(_0x248dff['model'],_0xfafab0),shrinkFragmentToSelection(_0x248dff['model'],_0xfafab0);}return{'content':parse$2(_0x248dff['data']['stringify'](_0x321a7e,{'showSuggestionHighlights':!0x0})),'hasChanges':!0x0};}function applyOperationsAndDiffMarkers(_0x5b3ed4,_0x51cec6,_0x3b14f2){if(0x0==_0x5b3ed4['length'])return;const _0x4a97c5=_0x3b14f2['plugins']['get']('DocumentCompare'),_0xcdeef6=_0x3b14f2['plugins']['get']('SuggestionsConversion');_0x3b14f2['model']['change'](_0xca29a2=>{const _0x56d2cc=new Set();for(let _0x3818e8=0x0;_0x3818e8<_0x5b3ed4['length'];_0x3818e8++){const _0x59c4cb=_0x5b3ed4[_0x3818e8];if(_0x59c4cb['baseVersion']=null,_0x59c4cb['isDocumentOperation']=!0x1,_0x4a97c5['isMarkedRemoveOperation'](_0x59c4cb)){const _0x5eb567=fixElementSuggestionRange(_0x59c4cb['newRange'],_0x3b14f2['model']),_0x58e381='suggestion:deletion:'+uid()+':$aiSuggestion';_0x51cec6['markers']['set'](_0x58e381,_0x5eb567);}else switch(_0x59c4cb['type']){case'rename':{if(_0x59c4cb['oldName']==_0x59c4cb['newName'])break;_0xca29a2['batch']['addOperation'](_0x59c4cb),_0x3b14f2['model']['applyOperation'](_0x59c4cb);const _0x55dfcd='$elementName',_0x3fb3c6=_0x59c4cb['position'],_0x52a239=_0x3b14f2['model']['createRange'](_0x3fb3c6,_0x3b14f2['model']['createPositionAt'](_0x3fb3c6['nodeAfter'],'end')),_0x2063a0='suggestion:attribute:'+_0x55dfcd+':'+uid()+':$aiSuggestion';_0x51cec6['markers']['set'](_0x2063a0,_0x52a239);break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{if(_0x59c4cb['oldValue']==_0x59c4cb['newValue'])break;_0xca29a2['batch']['addOperation'](_0x59c4cb),_0x3b14f2['model']['applyOperation'](_0x59c4cb);const _0x425e32=_0x59c4cb['key'];if(!_0xcdeef6['isRegisteredAttribute'](_0x425e32))break;const _0x2302af=fixElementSuggestionRange(_0x59c4cb['range'],_0x3b14f2['model']),_0x4f71ee='suggestion:attribute:'+_0x425e32+':'+uid()+':$aiSuggestion';_0x51cec6['markers']['set'](_0x4f71ee,_0x2302af);break;}case'insert':{_0xca29a2['batch']['addOperation'](_0x59c4cb),_0x3b14f2['model']['applyOperation'](_0x59c4cb);if(_0x5b3ed4[_0x3818e8+0x1]&&'move'==_0x5b3ed4[_0x3818e8+0x1]['type']){transformMarkers(_0x51cec6,_0x59c4cb);break;}const _0x31e9cc=_0x59c4cb['position'],_0x5439af=_0x59c4cb['howMany'],_0x2d20da=fixElementSuggestionRange(_0x3b14f2['model']['createRange'](_0x31e9cc,_0x31e9cc['getShiftedBy'](_0x5439af)),_0x3b14f2['model']),_0xb495a8='suggestion:insertion:'+uid()+':$aiSuggestion';_0x51cec6['markers']['set'](_0xb495a8,_0x2d20da);break;}case'split':{_0xca29a2['batch']['addOperation'](_0x59c4cb),_0x3b14f2['model']['applyOperation'](_0x59c4cb);const _0x28c92e=_0x59c4cb['splitPosition'],_0x1eb8de=_0x59c4cb['moveTargetPosition'],_0x34c3a4=_0x3b14f2['model']['createRange'](_0x28c92e,_0x1eb8de),_0x2816f4='suggestion:insertion:'+uid()+':$aiSuggestion';_0x51cec6['markers']['set'](_0x2816f4,_0x34c3a4);break;}case'move':{_0xca29a2['batch']['addOperation'](_0x59c4cb),_0x3b14f2['model']['applyOperation'](_0x59c4cb),_0x5b3ed4[_0x3818e8-0x1]&&'insert'==_0x5b3ed4[_0x3818e8-0x1]['type']&&transformMarkers(_0x51cec6,_0x59c4cb);const _0x321b4a=_0x59c4cb['getMovedRangeStart'](),_0x3ecb62=_0x59c4cb['howMany'];for(let _0x795567=0x0;_0x795567<_0x3ecb62;_0x795567++){const _0x4cc093=_0x321b4a['getShiftedBy'](_0x795567)['nodeAfter'];_0x56d2cc['add'](_0x4cc093);}break;}case'remove':{const _0x597784=_0x59c4cb['sourcePosition'],_0x166787=_0x59c4cb['howMany'],_0x87e0b=new _DetachOperation(_0x597784,_0x166787);_0xca29a2['batch']['addOperation'](_0x87e0b),_0x3b14f2['model']['applyOperation'](_0x87e0b);break;}}}for(const _0x5321bf of _0x56d2cc){const _0x5c4304=_0x3b14f2['model']['createRangeOn'](_0x5321bf),_0xefe509='suggestion:formatBlock:$fakeWrap:'+uid()+':$aiSuggestion';_0x51cec6['markers']['set'](_0xefe509,fixElementSuggestionRange(_0x5c4304,_0x3b14f2['model']));}});}function transformMarkers(_0x4c10ed,_0x1dab48){for(const [_0x1a4519,_0x25d29b]of _0x4c10ed['markers']){const _0x2ca20b=ModelRange['_createFromRanges'](_0x25d29b['getTransformedByOperation'](_0x1dab48));_0x4c10ed['markers']['set'](_0x1a4519,_0x2ca20b);}}function getMinimalSelection(_0x480d0e,_0x4b4f6f,_0x58809d){const _0x328b13=_0x480d0e['plugins']['get']('DocumentCompare');let _0x4ba204=_0x480d0e['model']['createPositionAt'](_0x58809d,Number['POSITIVE_INFINITY']),_0xd4467d=_0x480d0e['model']['createPositionAt'](_0x58809d,0x0);for(const _0x80a78b of _0x4b4f6f){let _0x5066c9,_0x283eb0;if(_0x328b13['isMarkedRemoveOperation'](_0x80a78b))_0x5066c9=_0x80a78b['newRange']['start'],_0x283eb0=_0x80a78b['newRange']['end'];else switch(_0x4ba204=_0x4ba204['getTransformedByOperation'](_0x80a78b),_0xd4467d=_0xd4467d['getTransformedByOperation'](_0x80a78b),_0x80a78b['type']){case'rename':_0x5066c9=_0x80a78b['position'],_0x283eb0=_0x5066c9['getShiftedBy'](0x1);break;case'addAttribute':case'removeAttribute':case'changeAttribute':_0x5066c9=_0x80a78b['range']['start'],_0x283eb0=_0x80a78b['range']['end'];break;case'insert':_0x5066c9=_0x80a78b['position'],_0x283eb0=_0x5066c9['getShiftedBy'](_0x80a78b['howMany']);break;case'split':_0x5066c9=_0x80a78b['splitPosition'],_0x283eb0=_0x80a78b['moveTargetPosition'];break;case'merge':{const _0x1ccbdd=_0x80a78b['targetPosition']['path']['slice'](0x0,-0x1);_0x5066c9=_0x480d0e['model']['createPositionFromPath'](_0x58809d,_0x1ccbdd),_0x283eb0=_0x5066c9['getShiftedBy'](0x1);break;}case'remove':{const _0x2c3329=_0x80a78b['howMany'],_0x129667=_0x80a78b['sourcePosition']['_getTransformedByInsertion'](_0x80a78b['targetPosition'],_0x2c3329),_0x4c5742=_0x80a78b['getMovedRangeStart']();'remove'==_0x80a78b['type']?(_0x5066c9=_0x129667,_0x283eb0=_0x129667):(_0x5066c9=_0x4c5742,_0x283eb0=_0x4c5742['getShiftedBy'](_0x2c3329));break;}}_0x5066c9&&_0x5066c9['isBefore'](_0x4ba204)&&(_0x4ba204=_0x5066c9['clone'](),_0x4ba204['stickiness']='toNone'),_0x283eb0&&_0x283eb0['isAfter'](_0xd4467d)&&(_0xd4467d=_0x283eb0['clone'](),_0xd4467d['stickiness']='toNone');}return _0x480d0e['model']['createSelection'](_0x480d0e['model']['createRange'](_0x4ba204,_0xd4467d));}function expandSelectionWithContext(_0x4f759d,_0x378201){expandSelection(_0x4f759d,_0x378201,'forward');const _0x500568=_0x378201['getFirstRange']();_0x378201['setTo']([]),_0x378201['setTo'](_0x500568,{'backward':!0x0}),expandSelection(_0x4f759d,_0x378201,'backward');}function expandSelection(_0x17bca6,_0x52af3f,_0x2c3bbd){let _0x477078=0x14;for(;_0x477078;){_0x17bca6['modifySelection'](_0x52af3f,{'unit':'word','direction':_0x2c3bbd}),_0x477078--;const _0x2d6493=_0x52af3f['focus']['forward'==_0x2c3bbd?'nodeBefore':'nodeAfter'];if(_0x2d6493&&_0x2d6493['is']('element')&&_0x17bca6['schema']['isBlock'](_0x2d6493)&&_0x17bca6['schema']['isObject'](_0x2d6493))break;}}function shrinkFragmentToSelection(_0x144cac,_0x123b27){const _0x1cb81e=_0x123b27['getFirstRange']()['start'];let _0x421589=_0x123b27['getFirstRange']()['end'];const _0x37989=_0x1cb81e['root'];(_0x421589['textNode']||_0x421589['nodeAfter']&&_0x421589['nodeAfter']['is']('$text'))&&(_insertIntoModelNodeList(_0x421589,'...'),_0x421589=_0x421589['getShiftedBy'](0x3)),(_0x1cb81e['textNode']||_0x1cb81e['nodeBefore']&&_0x1cb81e['nodeBefore']['is']('$text'))&&(_insertIntoModelNodeList(_0x1cb81e,'...'),_transformMarkersByInsertion(_0x37989,_0x1cb81e,0x3),_0x1cb81e['parent']==_0x421589['parent']&&(_0x421589=_0x421589['getShiftedBy'](0x3)));const _0xd02d9b=_0x144cac['createRange'](_0x144cac['createPositionAt'](_0x37989,0x0),_0x1cb81e),_0x52b3f5=_0x144cac['createRange'](_0x421589,_0x144cac['createPositionAt'](_0x37989,'end')),_0x564bd4=[..._0xd02d9b['getMinimalFlatRanges'](),..._0x52b3f5['getMinimalFlatRanges']()];_0x564bd4['reverse']();for(const _0x1dc585 of _0x564bd4)_removeFromModelNodeList(_0x1dc585),_transformMarkersByDeletion(_0x37989,_0x1dc585);}function _transformMarkersByDeletion(_0x1c1f78,_0x9c9462){for(const [_0x21ae42,_0x1e5672]of _0x1c1f78['markers']){const _0x5addfd=_0x1e5672['_getTransformedByDeletion'](_0x9c9462['start'],_0x9c9462['end']['offset']-_0x9c9462['start']['offset']);null!=_0x5addfd?_0x1c1f78['markers']['set'](_0x21ae42,_0x5addfd):_0x1c1f78['markers']['delete'](_0x21ae42);}}function _transformMarkersByInsertion(_0x44daa3,_0x4acca9,_0x125bb4){for(let [_0x1f45fb,_0x40a4bf]of _0x44daa3['markers']){const _0x494247=_0x40a4bf['_getTransformedByInsertion'](_0x4acca9,_0x125bb4,!0x1);_0x40a4bf=_0x494247[0x0],_0x44daa3['markers']['set'](_0x1f45fb,_0x40a4bf);}}class AIReply extends ObservableMixin(){['id'];['interactionId'];['type'];['sources']=[];['parsedContent']=new Document([]);['parsedMergedContent']=new Document([]);['changeGroups']=[];['areActionsDisabled']=!0x1;['documentContextContent'];['aiResponseParser'];['aiResponseApplier'];['editor'];['cachedSuggestionContentParts']={'withDiff':[],'withoutDiff':[]};constructor({type:_0x322d81,content:_0x40ddc9='',isDone:_0x18eea1=!0x1,interactionId:_0x19cefe,areActionsDisabled:_0x5a92e5,documentContextContent:_0xa482ce,editor:_0x2d7e60,id:_0x4c3652}){super(),this['id']=_0x4c3652||uid(),this['interactionId']=_0x19cefe,this['type']=_0x322d81,this['areActionsDisabled']=!!_0x5a92e5,this['editor']=_0x2d7e60,this['aiResponseParser']=new AIResponseParser(),this['aiResponseApplier']=new AIResponseApplier(),this['documentContextContent']=parse$2(_0xa482ce||''),this['set']('isDone',_0x18eea1),this['on']('change:content',()=>{this['onContentChange']();}),this['set']('content',_0x40ddc9);}['appendContent'](_0x83d0cb){this['set']('content',this['content']+_0x83d0cb);}['done'](){this['isDone']||(this['set']('isDone',!0x0),this['onContentChange']());}['destroy'](){this['stopListening']();}['setChangeGroupState'](_0x164911,_0xfecc14){this['changeGroups'][_0x164911]['state']=_0xfecc14,this['fire']('replyChangeGroupStateUpdated',{'reply':this,'index':_0x164911,'state':_0xfecc14});}['getContentParts']({showDiff:_0x1eb3bf,groupIndex:_0x21d3ed}){if(!this['editor'])throw new CKEditorError('ai-get-editor-from-context-no-editor',null,{'aiReply':this});const _0x39afe9=this['_getCachedContentParts'](_0x1eb3bf,_0x21d3ed);if(_0x39afe9)return _0x39afe9;let _0x73d3e4=[];if(void 0x0===_0x21d3ed)_0x73d3e4=this['changeGroups'];else{const _0x110b7b=this['changeGroups']['find'](({index:_0x36b263})=>_0x36b263===_0x21d3ed);if(!_0x110b7b)throw new CKEditorError('ai-reply-get-content-parts-group-not-found',null,{'aiReply':this,'groupIndex':_0x21d3ed});_0x73d3e4=[_0x110b7b];}const _0x28bb79=getSuggestionPartsFromReply({'editor':this['editor'],'showDiff':_0x1eb3bf,'changeGroups':_0x73d3e4,'documentContextContent':this['documentContextContent']});return this['_setCachedContentParts'](_0x1eb3bf,_0x28bb79),_0x28bb79;}['_getCachedContentParts'](_0x481bdd,_0x1b2490){const _0x3bbeb0=_0x481bdd?'withDiff':'withoutDiff';if(!this['cachedSuggestionContentParts'][_0x3bbeb0]['length'])return null;const _0x365e2b=this['cachedSuggestionContentParts'][_0x3bbeb0];if(void 0x0===_0x1b2490)return _0x365e2b['length']>0x0&&_0x365e2b['length']!==this['changeGroups']['length']?(this['_setCachedContentParts'](_0x481bdd,null),null):cloneDeep$1(_0x365e2b);{const _0x500328=_0x365e2b['find'](({index:_0x2945f1})=>_0x2945f1===_0x1b2490);if(_0x500328)return[cloneDeep$1(_0x500328)];}return null;}['_setCachedContentParts'](_0x419822,_0x243980){const _0xcbcca1=_0x419822?'withDiff':'withoutDiff';_0x243980?_0x243980['forEach'](_0x27907b=>{const _0x55bbb3=this['cachedSuggestionContentParts'][_0xcbcca1],_0x532b03=_0x55bbb3['find'](({index:_0x1d0839})=>_0x1d0839===_0x27907b['index']);if(_0x532b03){const _0x5af922=_0x55bbb3['indexOf'](_0x532b03);_0x55bbb3['splice'](_0x5af922,0x1,_0x27907b);}else _0x55bbb3['push'](_0x27907b);}):this['cachedSuggestionContentParts'][_0xcbcca1]['length']=0x0;}['onContentChange'](){if('modification'===this['type']){this['parsedContent']=this['aiResponseParser']['parseAndNormalizeHTML'](this['content']);const _0x13c960=this['changeGroups'];this['updateChangeGroups']();const _0x38d11c=this['_getDifferentChangeGroups'](_0x13c960,this['changeGroups']);(_0x38d11c['length']||this['isDone'])&&(this['fire']('replyContentUpdated',this,_0x38d11c),this['cachedSuggestionContentParts']['withDiff']['length']=this['cachedSuggestionContentParts']['withoutDiff']['length']=0x0);}else this['parsedContent']=this['aiResponseParser']['convertMarkdownToHTML'](this['content']),this['fire']('replyContentUpdated',this);}['_getDifferentChangeGroups'](_0x349809,_0x532e9e){const _0x4aa757=[];for(const _0x19ecd1 of _0x532e9e){const _0x3d96de=_0x349809[_0x19ecd1['index']];_0x3d96de?_0x3d96de['changes']['length']!==_0x19ecd1['changes']['length']?_0x4aa757['push'](_0x19ecd1):_0x3d96de['changes']['forEach']((_0x60b0eb,_0x2b4beb)=>{const _0x19f6a6=_0x19ecd1['changes'][_0x2b4beb];_0x60b0eb['id']!==_0x19f6a6['id']&&_0x4aa757['push'](_0x19ecd1);}):_0x4aa757['push'](_0x19ecd1);}return _0x4aa757;}['updateChangeGroups'](){const _0x50a8c1=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'))])]),_0x1c7c5c=this['aiResponseApplier']['merge'](this['parsedContent'],this['documentContextContent']['cloneNode'](!0x0),{'markUnstableElements':!this['isDone'],'replaceRemovedWith':_0x50a8c1,'cutAfterLastChange':!this['isDone']});if(!_0x1c7c5c['modifiedNodeIds']['length']&&!this['isDone'])return;this['parsedMergedContent']=_0x1c7c5c['parsedContent'];let _0x50506f=[];if(findAll(_0x5242ba=>{const _0x49498c=getAttribute(_0x5242ba,'data-id');if(!_0x49498c||!_0x1cdd18(_0x49498c))return!0x1;const _0x1800ad=[_0x5242ba,...getParents(_0x5242ba)]['at'](-0x2);if(_0x5242ba!=_0x1800ad){const _0x33dac0=getAttribute(_0x1800ad,'data-id');_0x1cdd18(_0x33dac0)||(_0x50506f['push']({'node':_0x1800ad,'id':_0x33dac0,'type':'modified'}),_0x1c7c5c['modifiedNodeIds']['push'](_0x33dac0));}else _0x1c7c5c['modifiedNodeIds']['includes'](_0x49498c)?_0x50506f['push']({'node':_0x5242ba,'type':'modified','id':_0x49498c}):_0x1c7c5c['newNodeIds']['includes'](_0x49498c)?_0x50506f['push']({'node':_0x5242ba,'type':'new','id':_0x49498c,'anchorId':getAttribute(_0x5242ba['previousSibling'],'data-id')}):_0x50506f['push']({'node':_0x5242ba,'type':'removed','id':_0x49498c});return!0x0;},this['parsedMergedContent']),_0x50506f=_0x50506f['filter'](({node:_0x5a766b})=>[...getParents(_0x5a766b),_0x5a766b]['every'](_0x1822aa=>!getAttribute(_0x1822aa,'data-unstable'))),0x0==_0x50506f['length'])return;const _0x4d0060=[[_0x50506f[0x0]]];for(let _0x2eaa80=0x1;_0x2eaa80<_0x50506f['length'];_0x2eaa80++){const _0x46ed03=_0x4d0060[_0x4d0060['length']-0x1],_0x575167=_0x46ed03[_0x46ed03['length']-0x1];_0x50506f[_0x2eaa80]['node']['previousSibling']==_0x575167['node']&&'modified'!=_0x50506f[_0x2eaa80]['type']&&'modified'!=_0x575167['type']?_0x46ed03['push'](_0x50506f[_0x2eaa80]):_0x4d0060['push']([_0x50506f[_0x2eaa80]]);}for(const _0x20b3bd of _0x4d0060){const _0x5f10d3=_0x20b3bd[0x0],_0x25d4cc=_0x20b3bd[_0x20b3bd['length']-0x1],_0x1e6646=_0x5ddfee(_0x5f10d3['node']['previousSibling']);_0x1e6646&&_0x20b3bd['unshift'](_0x1e6646);const _0x3ffab4=_0x5ddfee(_0x25d4cc['node']['nextSibling']);_0x3ffab4&&_0x20b3bd['push'](_0x3ffab4);}function _0x1cdd18(_0x1d34a7){return _0x1c7c5c['modifiedNodeIds']['includes'](_0x1d34a7)||_0x1c7c5c['newNodeIds']['includes'](_0x1d34a7)||_0x1c7c5c['removedNodeIds']['includes'](_0x1d34a7);}function _0x5ddfee(_0x5cc2ef){if(_0x5cc2ef&&getAttribute(_0x5cc2ef,'data-id')&&!getAttribute(_0x5cc2ef,'data-unstable')){const _0x5e89df=getAttribute(_0x5cc2ef,'data-id');if(!_0x1cdd18(_0x5e89df))return{'node':_0x5cc2ef,'type':'context','id':_0x5e89df};}return null;}this['changeGroups']=_0x4d0060['map']((_0x21a9da,_0x2572c0)=>({'changes':_0x21a9da,'state':'pending','index':_0x2572c0}));}}const AI_MODEL_EVENT_NAMES=['interactionCreated','interactionStarted','interactionStopped','interactionFinished','interactionDestroyed','replyCreated','replyContentUpdated','replyChangeGroupStateUpdated','setConversationTitle','webSearchStarted','webSearchFinished','reasoningStarted','reasoningFinished','toolDataReceived','error'];class AIInteraction extends EmitterMixin(){['id'];['replies']=[];['currentReply'];['messageId'];['actionCallId'];['currentRequest'];['connector'];['isStopped']=!0x1;['isDestroyed']=!0x1;['editor'];['_isReasoning']=!0x1;['_isWebSearching']=!0x1;constructor({connector:_0x166103,editor:_0x321eba}){super(),this['id']=uid(),this['connector']=_0x166103,this['isStopped']=!0x0,this['editor']=_0x321eba;}async['start'](){const _0x1d4a54=[];let _0x21df7b,_0x724b53,_0x169b21;this['isStopped']=!0x1;try{this['currentRequest']=await this['sendRequest'](),this['fire']('interactionStarted',this);const _0x57c81a=await this['currentRequest']['getStream']();for await(const _0x53aa74 of _0x57c81a){if(this['isStopped'])return;if('error'==_0x53aa74['event'])return void this['fire']('error',{'error':new CKEditorError('ai-chat-interaction-error',this)});switch(_0x53aa74['event']){case'message-metadata':this['messageId']=_0x53aa74['data']['messageId'];break;case'action-metadata':this['actionCallId']=_0x53aa74['data']['callId'];break;case'conversation-title':this['setConversationTitle'](_0x53aa74['data']['conversationTitle'],!0x0);break;case'source':_0x1d4a54['push'](_0x53aa74['data']['source']);break;case'web-search':this['_isWebSearching']||(this['_isWebSearching']=!0x0,this['fire']('webSearchStarted',this));break;case'reasoning':this['_isReasoning']||(this['_isReasoning']=!0x0,this['fire']('reasoningStarted',this));break;case'modification-delta':case'text-delta':this['resetReasoningState'](),this['resetWebSearchState'](),_0x21df7b='modification-delta'==_0x53aa74['event']?'modification':'text',_0x724b53='modification-delta'==_0x53aa74['event']?_0x53aa74['data']['id']:void 0x0,this['currentReply']&&this['currentReply']['type']!=_0x21df7b&&(this['currentReply']['done'](),this['currentReply']=void 0x0),this['currentReply']||(this['currentReply']=this['createReply']({'type':_0x21df7b,'interactionId':this['id'],'id':_0x724b53}),'modification'==_0x21df7b&&(this['currentReply']['sources']=_0x1d4a54['splice'](0x0))),this['currentReply']['appendContent'](_0x53aa74['data']['textDelta']);break;case'mcp-tool-result':_0x169b21=JSON['parse'](_0x53aa74['data']['result']),this['_handleToolResultData']({'toolName':_0x53aa74['data']['toolName'],'data':_0x169b21['data'],'attributes':_0x169b21['attributes']});break;case'mcp-tool-notification':this['_handleToolNotificationData']({'toolName':_0x53aa74['data']['toolName'],'data':_0x53aa74['data']['data']});}}}finally{this['isStopped']||(this['currentReply']&&_0x1d4a54['length']>0x0&&(this['currentReply']['sources']=_0x1d4a54['splice'](0x0)),this['_finalizeInteraction'](),this['fire']('interactionFinished',this));}}['stop'](){this['isStopped']||(this['_finalizeInteraction'](),this['fire']('interactionStopped',this));}['getReply'](_0x4cec81){return this['replies']['find'](_0x537aff=>_0x537aff['id']===_0x4cec81);}['destroy'](){this['isDestroyed']||(this['stop'](),this['replies']['forEach'](_0x3c0a53=>_0x3c0a53['destroy']()),this['replies']=[],this['isDestroyed']=!0x0,this['fire']('interactionDestroyed',this),this['stopListening']());}['createReply'](_0x1d0e02){const _0x2665bd=new AIReply({'editor':this['editor'],'documentContextContent':this['getDocumentContext']()?.['content'],..._0x1d0e02});return this['replies']['push'](_0x2665bd),_0x2665bd['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['fire']('replyCreated',_0x2665bd),_0x2665bd;}['setConversationTitle'](_0x5b72fb,_0x3045e6=!0x1){this['fire']('setConversationTitle',_0x5b72fb,_0x3045e6);}['resetWebSearchState'](){this['_isWebSearching']&&(this['_isWebSearching']=!0x1,this['fire']('webSearchFinished',this));}['resetReasoningState'](){this['_isReasoning']&&(this['_isReasoning']=!0x1,this['fire']('reasoningFinished',this));}['_handleToolResultData'](_0xbd755c){this['fire']('toolDataReceived',{'type':'result','toolName':_0xbd755c['toolName'],'data':structuredClone(_0xbd755c['data']||{}),'attributes':structuredClone(_0xbd755c['attributes']||{})},this);}['_handleToolNotificationData'](_0x3baf60){this['fire']('toolDataReceived',{'type':'notification','toolName':_0x3baf60['toolName'],'data':structuredClone(_0x3baf60['data'])},this);}['_finalizeInteraction'](){this['isStopped']=!0x0,this['currentRequest']&&this['currentRequest']['abortController']['abort'](),this['currentReply']&&this['currentReply']['done'](),this['currentRequest']=this['currentReply']=void 0x0;}}var AIContextItemType=function(_0x42fb85){return _0x42fb85['TOOL']='mcp-tool-context',_0x42fb85['FILE']='file',_0x42fb85['DOCUMENT']='document',_0x42fb85['URL']='web-resource',_0x42fb85['TEXT']='text',_0x42fb85['SELECTION']='selection',_0x42fb85;}({}),AIContextTextResourceType=function(_0x18b3d5){return _0x18b3d5['TEXT']='text',_0x18b3d5['MARKDOWN']='markdown',_0x18b3d5['HTML']='html',_0x18b3d5;}({});const errorsMap=new Map([['usage-limits-exceeded','ai-usage-limits-exceeded'],['rate-limits-exceeded','ai-rate-limits-exceeded'],['invalid-content-type','ai-invalid-content-type'],['invalid-request-data','ai-chat-invalid-request'],['model-already-set','ai-chat-model-already-set'],['model-not-found','ai-chat-model-not-found'],['unsafe-content-detected','ai-chat-unsafe-content-detected'],['unsupported-content-type','ai-chat-unsupported-content-type'],['content-too-large','ai-chat-content-too-large'],['unsupported-file-type','ai-chat-context-unsupported-file-type'],['file-too-large','ai-chat-context-file-too-large'],['file-too-many-pages','ai-chat-context-file-too-many-pages'],['form-data-size-limits-exceeded','ai-chat-context-form-data-size-limits-exceeded']]),AI_CONTEXT_MODEL_EVENT_NAMES=['contextItemAdded','contextItemRemoved','contextItemLoadingEnded','contextSent','error','addContextOptionsChanged','sourceResourcesLoaded','resourceStateChanged','uploadProgressChanged'];class AIChatContext extends ObservableMixin(){['_connector'];['_config'];['_ownerId'];constructor({connector:_0x2e2064,config:_0x3f5233,ownerId:_0x293b6e}){super(),this['_connector']=_0x2e2064,this['_config']=_0x3f5233,this['_ownerId']=_0x293b6e;}['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'](_0x16bdef){const _0x148db6=await this['_createContextItemFromContent'](_0x16bdef);return this['_addToConversationContextItem'](_0x148db6),'current-document'===_0x148db6['uiId']&&this['_toggleAddCurrentDocumentOptionVisibility'](),_0x148db6;}async['_createContextItemFromContent'](_0x104691){if(_0x104691['type']===AIContextItemType['DOCUMENT']){const _0x48210c=await this['_connector']['fetchDocument'](this['_ownerId'],_0x104691['id'])['getDocument']();return{'id':'current-document','uiId':'current-document','label':'Current\x20document','type':_0x104691['type'],'content':_0x48210c['content'],'hidden':this['_conversationContextItems']['has']('current-document'),'version':_0x48210c['attributes']?.['version'],'sessionId':_0x48210c['attributes']?.['sessionId']};}if(_0x104691['type']===AIContextItemType['TOOL'])return{'id':_0x104691['id'],'uiId':_0x104691['id'],'label':_0x104691['data']?.['label']||_0x104691['id'],'type':AIContextItemType['TOOL'],'mcpServerName':_0x104691['mcpServerName'],'toolName':_0x104691['toolName'],'data':_0x104691['data']||{}};return{'id':_0x104691['id'],'uiId':_0x104691['id'],'label':_0x104691['attributes']?.['label']||_0x104691['name']||_0x104691['url']||_0x104691['id'],'type':_0x104691['type'],..._0x104691?.['attributes']?.['resourceId']?{'resourceId':_0x104691['attributes']?.['resourceId']}:{}};}['getSentContextItems'](){return new Map(this['_conversationContextItems']);}['removeFromContext'](_0xe0ca64){const _0x31b8d9=this['_pendingContextItems']['get'](_0xe0ca64);_0x31b8d9?.['isReadOnly']||this['_removeContextItem'](_0xe0ca64);}['clearPendingContextItems'](){if(0x0===this['_pendingContextItems']['size'])return;for(const _0x384f6b of this['_pendingContextItems']['values']())this['_removeContextItem'](_0x384f6b['uiId']);const _0x2f5111=this['_conversationContextItems']['get']('current-document')||this['_pendingContextItems']['get']('current-document');_0x2f5111&&this['_addContextItem']({..._0x2f5111,'isReadOnly':!0x0,'hidden':!0x0});}['addToConversationContext'](_0x3c08d9){for(const _0x12ec55 of _0x3c08d9['values']())this['_addToConversationContextItem'](_0x12ec55);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'](_0x1ee9d7){return Array['from'](_0x1ee9d7['values']())['map'](_0x3cf35c=>this['_mapContextItemToRequestData'](_0x3cf35c))['filter'](_0x22d2fb=>null!==_0x22d2fb);}async['addFilesToContext'](_0x3bda0a,_0x40a8d4,_0x5f016f=AIContextItemType['FILE']){const _0xd3b41d='files-'+uid();this['_startUploadOperation'](_0xd3b41d);try{await Promise['all'](_0x3bda0a['map'](async _0x277b75=>{const _0x5c926a='file-'+uid(),_0x5432bc=escape(_0x277b75['name']);try{this['_addContextItem']({'type':_0x5f016f,'label':_0x40a8d4?.['label']||_0x5432bc,'uiId':_0x5c926a,'resourceId':_0x40a8d4?.['resourceId']},!0x0);const _0x5db9dd=this['_connector']['uploadFile'](this['_ownerId'],_0x277b75,_0x40a8d4);this['_ongoingUploads']['set'](_0x5c926a,_0x5db9dd['abortController']);const {id:_0x3446e2}=await _0x5db9dd['getId']();this['_ongoingUploads']['delete'](_0x5c926a),this['_finishContextItemLoading']({'type':_0x5f016f,'id':_0x3446e2,'label':_0x40a8d4?.['label']||_0x5432bc,'uiId':_0x5c926a,'resourceId':_0x40a8d4?.['resourceId']},!0x1);}catch(_0x361ee9){this['_ongoingUploads']['delete'](_0x5c926a);if(!(_0x361ee9 instanceof CKEditorError&&_0x361ee9['message']['startsWith']('ai-request-aborted'))){const _0x5495f8=errorsMap['get'](_0x361ee9['code'])||'ai-chat-file-upload-failed',_0x5a2ebf=new CKEditorError(_0x5495f8,null,{'fileName':_0x5432bc,..._0x361ee9});_0x5a2ebf['stack']=_0x361ee9['stack'],this['fire']('error',{'error':_0x5a2ebf});}this['_removeContextItem'](_0x5c926a);}}));}finally{this['_finishUploadOperation'](_0xd3b41d);}}['addCurrentDocumentToContext'](_0x31fefd){if(this['isCurrentDocumentInContext']()||!this['_addContextOptionsState']['document']['enabled'])return;const _0x18d2ad={'type':AIContextItemType['DOCUMENT'],'uiId':'current-document','label':_0x31fefd,'isReadOnly':this['_conversationContextItems']['has']('current-document'),'hidden':this['_conversationContextItems']['has']('current-document')};this['_addContextItem'](_0x18d2ad);}async['updateCurrentDocument'](_0x118197,_0x1d2c2f,_0xfccd44,_0x38a373){const _0x540629=this['_pendingContextItems']['get']('current-document');if(_0x540629&&_0x118197){_0x540629['selection']=_0x38a373?_0x38a373['map'](_0x34885d=>({'start':_0x34885d['start'],'end':_0x34885d['end']})):[];try{if(_0x540629['version']===_0x1d2c2f)return;const {id:_0x11fba3}=await this['_connector']['uploadDocument'](this['_ownerId'],_0x118197,{'version':_0x1d2c2f,'sessionId':_0xfccd44})['getId']();_0x540629['id']=_0x11fba3,_0x540629['content']=_0x118197,_0x540629['version']=_0x1d2c2f,_0x540629['sessionId']=_0xfccd44;}catch(_0x58cf5e){const _0x50a718=new CKEditorError('ai-chat-document-upload-failed',null);_0x50a718['stack']=_0x58cf5e['stack'],this['fire']('error',{'error':_0x50a718});}}}['addSelectionToContext'](_0x3bff86){this['_addContextItem']({'type':AIContextItemType['SELECTION'],'label':_0x3bff86,'uiId':'selection','content':_0x3bff86});}['removeSelectionFromContext'](){this['_removeContextItem']('selection');}async['addUrlToContext'](_0x303380,_0x343314){const _0x3fc28b='url-'+uid();this['_startUploadOperation'](_0x3fc28b);const _0x2b0b29='url-'+uid();try{this['_addContextItem']({'type':AIContextItemType['URL'],'label':_0x343314?.['label']||_0x303380,'uiId':_0x2b0b29,'resourceId':_0x343314?.['resourceId']},!0x0);const _0x44209c=this['_connector']['uploadUrl'](this['_ownerId'],_0x303380,_0x343314);this['_ongoingUploads']['set'](_0x2b0b29,_0x44209c['abortController']);const {id:_0x46886e}=await _0x44209c['getId']();this['_ongoingUploads']['delete'](_0x2b0b29),this['_finishContextItemLoading']({'type':AIContextItemType['URL'],'id':_0x46886e,'label':_0x343314?.['label']||_0x303380,'uiId':_0x2b0b29,'resourceId':_0x343314?.['resourceId']},!0x1);}catch(_0x13ead3){this['_ongoingUploads']['delete'](_0x2b0b29),(_0x13ead3['message']['startsWith']('ai-request-aborted')||this['fire']('error',{'error':new CKEditorError('ai-chat-url-upload-failed',this,{'url':_0x303380,'originalError':_0x13ead3}),'url':_0x303380}),this['_removeContextItem'](_0x2b0b29));}finally{this['_finishUploadOperation'](_0x3fc28b);}}['addToolItemToContext'](_0x4ef856){_0x4ef856['id']=_0x4ef856['id']??uid()['substring'](0x0,0x15),this['_pendingContextItems']['set'](_0x4ef856['uiId'],_0x4ef856),this['fire']('contextItemAdded',{'contextItem':_0x4ef856,'isLoading':!0x1});}async['loadSourceResources'](_0x32f3ef,_0xb3b69e,_0x207ff5){const _0x4c8c57=this['_addContextOptionsState']['sources']['find'](_0x2b6f01=>_0x2b6f01['id']===_0x32f3ef);if(!_0x4c8c57)return this['fire']('error',{'error':new CKEditorError('ai-chat-source-not-found',this,{'sourceId':_0x32f3ef}),'sourceId':_0x32f3ef}),[];try{const _0x337c47=(await _0x4c8c57['getResources'](_0xb3b69e))['map'](_0x2b6793=>{const _0x3bc445=this['_isResourceInContext'](_0x2b6793['id']);return{..._0x2b6793,'isInContext':_0x3bc445};});return _0x4c8c57['resources']=_0x337c47,this['fire']('sourceResourcesLoaded',{'sourceId':_0x32f3ef,'source':_0x4c8c57,'resources':_0x337c47,'uid':_0x207ff5}),_0x337c47;}catch(_0x42dad1){return this['fire']('error',{'error':new CKEditorError('ai-chat-source-resources-load-failed',this,{'sourceId':_0x32f3ef,'originalError':_0x42dad1}),'sourceId':_0x32f3ef,'sourceLabel':_0x4c8c57['label']}),[];}}async['addResourceToContext'](_0x481129,_0x300b0c){if(this['_isResourceInContext'](_0x300b0c['id']))return;let _0x1b6c77=_0x300b0c['data'];if(!_0x1b6c77&&_0x481129['getData'])try{_0x1b6c77=await _0x481129['getData'](_0x300b0c['id']);}catch(_0x42d17a){return void this['fire']('error',{'error':new CKEditorError('ai-chat-resource-load-failed',this,{'resourceId':_0x300b0c['id'],'sourceId':_0x481129['id'],'originalError':_0x42d17a}),'resourceId':_0x300b0c['id'],'sourceId':_0x481129['id']});}if(_0x1b6c77)switch(_0x300b0c['type']){case AIContextItemType['URL']:if('string'!=typeof _0x1b6c77)return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x300b0c['id'],'sourceId':_0x481129['id'],'expectedType':'string','actualType':typeof _0x1b6c77}),'resourceId':_0x300b0c['id'],'sourceId':_0x481129['id']});await this['addUrlToContext'](_0x1b6c77,{'label':_0x300b0c['label'],'resourceId':_0x300b0c['id']});break;case AIContextItemType['FILE']:if(!(_0x1b6c77 instanceof File))return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x300b0c['id'],'sourceId':_0x481129['id'],'expectedType':'File','actualType':typeof _0x1b6c77}),'resourceId':_0x300b0c['id'],'sourceId':_0x481129['id']});await this['addFilesToContext']([_0x1b6c77],{'label':_0x300b0c['label'],'resourceId':_0x300b0c['id']});break;case AIContextItemType['TEXT']:if('object'!=typeof _0x1b6c77||!('content'in _0x1b6c77)||!('type'in _0x1b6c77))return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x300b0c['id'],'sourceId':_0x481129['id'],'expectedType':'object\x20with\x20content\x20and\x20type\x20properties','actualType':typeof _0x1b6c77}),'resourceId':_0x300b0c['id'],'sourceId':_0x481129['id']});_0x1b6c77=AIChatContext['_convertTextResourceToFile'](_0x1b6c77,_0x300b0c['label']),await this['addFilesToContext']([_0x1b6c77],{'label':_0x300b0c['label'],'resourceId':_0x300b0c['id']},AIContextItemType['TEXT']);break;case AIContextItemType['TOOL']:break;default:this['fire']('error',{'error':new CKEditorError('ai-chat-context-unsupported-type',this,{'resourceId':_0x300b0c['id'],'sourceId':_0x481129['id'],'resourceType':_0x300b0c['type']}),'resourceId':_0x300b0c['id'],'sourceId':_0x481129['id']});}else this['fire']('error',{'error':new CKEditorError('ai-chat-resource-no-data',this,{'resourceId':_0x300b0c['id'],'sourceId':_0x481129['id']}),'resourceId':_0x300b0c['id'],'sourceId':_0x481129['id']});}static['_convertTextResourceToFile'](_0x1abf3a,_0x27690){switch(_0x1abf3a['type']){case AIContextTextResourceType['MARKDOWN']:return new File([_0x1abf3a['content']],_0x27690,{'type':'text/markdown'});case AIContextTextResourceType['HTML']:return new File([_0x1abf3a['content']],_0x27690,{'type':'text/html'});default:return new File([_0x1abf3a['content']],_0x27690,{'type':'text/plain'});}}static['_mapContextItemToRequestData'](_0x3c864f){switch(_0x3c864f['type']){case AIContextItemType['FILE']:return{'type':AIContextItemType['FILE'],'id':_0x3c864f['id']};case AIContextItemType['URL']:return{'type':AIContextItemType['URL'],'id':_0x3c864f['id']};case AIContextItemType['DOCUMENT']:return{'type':AIContextItemType['DOCUMENT'],'id':_0x3c864f['id'],..._0x3c864f['selection']?.['length']&&{'selection':_0x3c864f['selection']}};case AIContextItemType['TEXT']:return{'type':AIContextItemType['FILE'],'id':_0x3c864f['id']};case AIContextItemType['TOOL']:{const _0x926eb9=_0x3c864f;return{'type':AIContextItemType['TOOL'],'mcpServerName':_0x926eb9['mcpServerName'],'toolName':_0x926eb9['toolName'],'data':_0x926eb9['data'],'id':_0x926eb9['id']};}default:return null;}}['_addContextItem'](_0x405224,_0x544570=!0x1){if(this['_pendingContextItems']['set'](_0x405224['uiId'],_0x405224),_0x405224['hidden']||this['fire']('contextItemAdded',{'contextItem':_0x405224,'isLoading':_0x544570}),'current-document'===_0x405224['uiId']&&this['_toggleAddCurrentDocumentOptionVisibility'](),_0x405224['resourceId']){const _0x38de50=this['_findSourceIdsByResourceId'](_0x405224['resourceId']);_0x38de50&&_0x38de50['forEach'](_0x593a73=>{this['_updateResourceInContextState'](_0x593a73,_0x405224['resourceId'],!0x0);});}}['_removeContextItem'](_0xa5d089){const _0x4b685e=this['_pendingContextItems']['get'](_0xa5d089),_0x280773=this['_ongoingUploads']['get'](_0xa5d089);if(_0x280773&&(_0x280773['abort'](),this['_ongoingUploads']['delete'](_0xa5d089)),_0x4b685e?.['resourceId']){const _0x3895fb=this['_findSourceIdsByResourceId'](_0x4b685e['resourceId']);_0x3895fb&&_0x3895fb['forEach'](_0x4d5095=>{this['_updateResourceInContextState'](_0x4d5095,_0x4b685e['resourceId'],!0x1);});}this['_pendingContextItems']['delete'](_0xa5d089),this['fire']('contextItemRemoved',{'uiId':_0xa5d089,'type':_0x4b685e?.['type']}),'current-document'===_0xa5d089&&this['_toggleAddCurrentDocumentOptionVisibility']();}['_finishContextItemLoading'](_0x4d2013,_0x133741){if(this['_pendingContextItems']['has'](_0x4d2013['uiId'])&&(this['_pendingContextItems']['set'](_0x4d2013['uiId'],_0x4d2013),this['fire']('contextItemLoadingEnded',{'contextItem':_0x4d2013,'isLoading':_0x133741}),_0x4d2013['resourceId'])){const _0x4b2fb2=this['_findSourceIdsByResourceId'](_0x4d2013['resourceId']);_0x4b2fb2&&_0x4b2fb2['forEach'](_0x7b6759=>{this['_updateResourceInContextState'](_0x7b6759,_0x4d2013['resourceId'],!0x0);});}}['_addToConversationContextItem'](_0x4c46a9){this['_conversationContextItems']['set'](_0x4c46a9['uiId'],_0x4c46a9);}['_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'](),'customItems':this['_config']?.['customItems']?.['map'](_0x530490=>({..._0x530490,'enabled':!0x0}))??[]},this['fire']('addContextOptionsChanged',{'options':this['_addContextOptionsState']});}['_getCustomSourcesInitialState'](){return this['_config']?.['sources']?.['map'](_0x577786=>({..._0x577786,'resources':[]}))??[];}['_toggleAddCurrentDocumentOptionVisibility'](){const _0x3c8823=this['isCurrentDocumentInContext']()||this['isCurrentDocumentInConversation']();this['_addContextOptionsState']['document']['isHidden']=_0x3c8823,this['fire']('addContextOptionsChanged',{'options':this['_addContextOptionsState']});}['_isResourceInContext'](_0x1e427f){for(const _0x461757 of this['_pendingContextItems']['values']())if(_0x461757['resourceId']===_0x1e427f)return!0x0;for(const _0x345a1f of this['_conversationContextItems']['values']())if(_0x345a1f['resourceId']===_0x1e427f)return!0x0;return!0x1;}['_findSourceIdsByResourceId'](_0x2d8ae2){const _0x4145f3=[];for(const _0x1201c8 of this['_addContextOptionsState']['sources']){_0x1201c8['resources']['find'](_0x495b5f=>_0x495b5f['id']===_0x2d8ae2)&&_0x4145f3['push'](_0x1201c8['id']);}return 0x0===_0x4145f3['length']?null:_0x4145f3;}['_updateResourceInContextState'](_0x303829,_0x34b10d,_0x302639){const _0x3a0882=this['_addContextOptionsState']['sources']['find'](_0x339945=>_0x339945['id']===_0x303829);if(!_0x3a0882)return;const _0x370edb=_0x3a0882['resources']['find'](_0x59ba25=>_0x59ba25['id']===_0x34b10d);_0x370edb&&(_0x370edb['isInContext']=_0x302639,this['fire']('resourceStateChanged',{'sourceId':_0x303829,'resourceId':_0x34b10d,'isInContext':_0x302639}));}['_startUploadOperation'](_0x397161){this['_ongoingUploadOperations']['set'](_0x397161,!0x0),this['_ongoingUploadOperations']['size']&&this['fire']('uploadProgressChanged',{'isUploadInProgress':!0x0});}['_finishUploadOperation'](_0x1a87dd){this['_ongoingUploadOperations']['delete'](_0x1a87dd),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'](_0x294599){const _0x20e7a6={};return _0x294599&&_0x294599['isWebSearchEnabled']&&(_0x20e7a6['webSearch']={}),_0x294599&&_0x294599['isReasoningEnabled']&&(_0x20e7a6['reasoning']={}),_0x20e7a6;}['toggleWebSearch'](){this['setWebSearch'](!this['_isWebSearchEnabled']);}['toggleReasoning'](){this['setReasoning'](!this['_isReasoningEnabled']);}['setWebSearch'](_0x34145f){_0x34145f!==this['_isWebSearchEnabled']&&(this['_isWebSearchEnabled']=_0x34145f,this['fire']('capabilitiesUpdated',this['getCapabilitiesConfig']()));}['setReasoning'](_0x4a657a){_0x4a657a!==this['_isReasoningEnabled']&&(this['_isReasoningEnabled']=_0x4a657a,this['fire']('capabilitiesUpdated',this['getCapabilitiesConfig']()));}}class AIChatInteraction extends AIInteraction{['userMessage'];['conversationId'];['contextItems']=new Map();['model'];['attributes'];constructor(_0x522f4d){super(_0x522f4d),this['conversationId']=_0x522f4d['conversationId'],this['contextItems']=_0x522f4d['contextItems'],this['capabilities']=_0x522f4d['capabilities'],this['userMessage']=_0x522f4d['userMessage'],this['model']=_0x522f4d['model'],this['attributes']=_0x522f4d['attributes'];}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'],'attributes':this['attributes']});}['getDocumentContext'](){return this['contextItems']['get']('current-document');}}class AIChatConversation extends EmitterMixin(){['id'];['isStarted']=!0x1;['isFromHistory'];['interactions']=[];['currentInteraction'];['selectedModel'];['connector'];['options'];constructor(_0x336e66){super(),this['options']=_0x336e66,this['connector']=_0x336e66['connector'],this['chatModels']=_0x336e66['chatModels'],this['id']=_0x336e66['conversationId'],this['isFromHistory']=_0x336e66['isFromHistory'];}async['init'](_0x519bd0){try{this['chatContext']=new AIChatContext({'connector':this['connector'],'config':_0x519bd0,'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 _0x27ef92=await this['chatModels']['getAvailableModels']();this['fire']('conversationInitialized',{'availableModels':_0x27ef92});const _0x407f74=await this['chatModels']['getModel'](this['options']['selectedModelId']);_0x407f74&&await this['setModel'](_0x407f74);}catch(_0xe2058b){const _0x354203=new CKEditorError('ai-chat-conversation-init-failed',null,{'message':_0xe2058b['message']||_0xe2058b});_0x354203['stack']=_0xe2058b['stack'],this['fire']('error',{'error':_0x354203});}}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:_0x591457}=await this['connector']['startConversation'](this['id'],this['options']['group'])['getConversation']();this['id']=_0x591457,this['isStarted']=!0x0,this['fire']('conversationStarted',{'conversationId':this['id'],'selectedModel':this['selectedModel']});}catch(_0x322b9a){const _0x52267e=new CKEditorError('ai-chat-conversation-start-failed',null,{'message':_0x322b9a['message'],'conversationId':this['id']});throw _0x52267e['stack']=_0x322b9a['stack'],this['fire']('error',{'error':_0x52267e}),_0x52267e;}}async['load'](_0x3460f6,_0x1a012d){try{const _0x37e5d3=await this['connector']['fetchConversation'](_0x3460f6)['getConversation'](),_0x32c3f0=await this['connector']['fetchConversationMessages'](_0x3460f6)['getMessages'](),_0x59353b=_0x32c3f0[0x0]['model'];this['isStarted']=!0x0,this['id']=_0x37e5d3['id'],'title'in _0x37e5d3?this['fire']('setConversationTitle',_0x37e5d3['title'],!0x0):this['fire']('setConversationTitle','',!0x0);const _0x1b43d8=(await this['chatModels']['getAll']())['find'](_0x12aa92=>_0x12aa92['id']['toLowerCase']()===_0x59353b['toLowerCase']());return this['selectedModel']=_0x1b43d8,this['fire']('modelSelected',{'selectedModel':_0x1b43d8,'isDisabled':!0x0}),await this['_processMessagesToInteractions'](_0x32c3f0,_0x1a012d,_0x59353b),this['currentInteraction']=void 0x0,this;}catch(_0x375f68){const _0x2f592e=new CKEditorError('ai-chat-conversation-init-from-id-failed',null,{'message':_0x375f68['message'],'conversationId':_0x3460f6});throw _0x2f592e['stack']=_0x375f68['stack'],this['fire']('error',{'error':_0x2f592e}),_0x2f592e;}}async['_processMessagesToInteractions'](_0x5ba807,_0x11ccfe,_0xfe9ec5){let _0x443cfb;for(const _0x41b789 of _0x5ba807)if('user'===_0x41b789['role']){const _0x42b135=await this['_extractContextItems'](_0x41b789),_0x51b7aa={'isReasoningEnabled':Object['hasOwn'](_0x41b789['capabilities'],'reasoning'),'isWebSearchEnabled':Object['hasOwn'](_0x41b789['capabilities'],'webSearch')};_0x443cfb=this['createInteraction']({'userMessage':_0x41b789['prompt'],'contextItems':_0x42b135,'capabilities':_0x51b7aa,'modelId':_0xfe9ec5,'attributes':_0x41b789['attributes']}),this['currentInteraction']=_0x443cfb,this['chatContext']['addToConversationContext'](this['currentInteraction']['contextItems']);}else{if('assistant'===_0x41b789['role']&&_0x443cfb){const _0x326d02=[];for(const _0x179305 of _0x41b789['content'])switch(_0x179305['type']){case'text':case'modification':{const _0x5a4c0a=_0x443cfb['getDocumentContext']()?.['sessionId']!==_0x11ccfe;_0x443cfb['currentReply']=_0x443cfb['createReply']({'type':_0x179305['type'],'isDone':!0x0,'interactionId':_0x443cfb['id'],'areActionsDisabled':_0x5a4c0a}),_0x443cfb['currentReply']['appendContent'](_0x179305['content']),_0x326d02['length']>0x0&&(_0x443cfb['currentReply']['sources']=_0x326d02['splice'](0x0));break;}case'url':_0x326d02['push'](_0x179305);break;case'mcp-tool-result':{const {data:_0x34b2fc,attributes:_0x51fed0}=JSON['parse'](_0x179305['content']);_0x443cfb['_handleToolResultData']({'toolName':_0x179305['toolName'],'data':_0x34b2fc,'attributes':_0x51fed0});break;}}}}}async['_extractContextItems'](_0x33d841){const _0x1f0dab=new Map();if(!_0x33d841['content'])return _0x1f0dab;for(const _0x135ddd of _0x33d841['content']){const _0x2fcd98=await this['chatContext']['populateFromMessage'](_0x135ddd);_0x2fcd98&&_0x1f0dab['set'](_0x2fcd98['id'],_0x2fcd98);}return _0x1f0dab;}async['handleUserInteraction']({userMessage:_0x54520a,attributes:_0x2af152}){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 _0x1426ae=this['chatContext']['getPendingContextItems'](),_0x1a7cdd=this['chatCapabilities']['getCapabilitiesConfig'](),_0x4a7ec6=this['selectedModel']['id'];this['currentInteraction']=this['createInteraction']({'userMessage':_0x54520a,'contextItems':_0x1426ae,'capabilities':_0x1a7cdd,'modelId':_0x4a7ec6,'attributes':_0x2af152}),await this['currentInteraction']['start'](),this['chatContext']['addToConversationContext'](this['currentInteraction']['contextItems']);}catch(_0x2202aa){if(_0x2202aa instanceof CKEditorError)this['fire']('error',{'interactionId':this['currentInteraction']?this['currentInteraction']['id']:void 0x0,'error':_0x2202aa});else{const _0x56ecf4=errorsMap['get'](_0x2202aa['code'])||'ai-chat-handle-user-interaction-start-failed';this['fire']('error',{'interactionId':this['currentInteraction']?this['currentInteraction']['id']:void 0x0,'error':new CKEditorError(_0x56ecf4,null,{'error':_0x2202aa})});}}finally{this['currentInteraction']?.['stop'](),this['currentInteraction']=void 0x0;}}['createInteraction']({userMessage:_0x5426a0,contextItems:_0x38a568,capabilities:_0x37b34a,modelId:_0x51897a,attributes:_0xd106ff}){const _0x35cb8b=new AIChatInteraction({'userMessage':_0x5426a0,'contextItems':_0x38a568,'capabilities':_0x37b34a,'conversationId':this['id'],'connector':this['connector'],'editor':this['options']['getEditor']&&this['options']['getEditor'](),'model':_0x51897a,'attributes':_0xd106ff});return _0x35cb8b['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['interactions']['push'](_0x35cb8b),this['fire']('interactionCreated',_0x35cb8b),_0x35cb8b;}['getInteraction'](_0x38d762){return this['interactions']['find'](_0x181024=>_0x181024['id']===_0x38d762);}['removeInteraction'](_0x4d60f4){const _0x13fc24=this['getInteraction'](_0x4d60f4);_0x13fc24&&(_0x13fc24['destroy'](),this['interactions']['splice'](this['interactions']['indexOf'](_0x13fc24),0x1));}get['lastInteraction'](){return this['interactions'][this['interactions']['length']-0x1];}['addCurrentDocumentToContext'](_0x1e237b){this['chatContext']['addCurrentDocumentToContext'](_0x1e237b);}async['updateCurrentDocumentInContext']({content:_0x53012e,version:_0x32663e,sessionId:_0x137768,selections:_0x2f6090}){await this['chatContext']['updateCurrentDocument'](_0x53012e,_0x32663e,_0x137768,_0x2f6090);}['getCurrentDocumentContext'](){return this['currentInteraction']?.['getDocumentContext']()?.['content']||'';}['addSelectionToContext'](_0x2f5272){this['chatContext']['addSelectionToContext'](_0x2f5272);}['removeSelectionFromContext'](){this['chatContext']['removeSelectionFromContext']();}['addFilesToContext'](_0x42b9eb){this['chatContext']['addFilesToContext'](_0x42b9eb);}['addUrlToContext'](_0x1920ec){this['chatContext']['addUrlToContext'](_0x1920ec);}['addToolItemToContext'](_0x2cf5ff){this['chatContext']['addToolItemToContext'](_0x2cf5ff);}['addResourceToContext'](_0x494b85,_0x1e43e8){this['chatContext']['addResourceToContext'](_0x494b85,_0x1e43e8);}['loadSourceResources'](_0xce3018,_0x3a4bea,_0x275a81){return this['chatContext']['loadSourceResources'](_0xce3018,_0x3a4bea,_0x275a81);}['removeFromContext'](_0x343669){this['chatContext']['removeFromContext'](_0x343669);}['setWebSearch'](_0x4dbfab){this['chatCapabilities']['setWebSearch'](_0x4dbfab);}['toggleWebSearch'](){this['chatCapabilities']['toggleWebSearch']();}['setReasoning'](_0x30ab76){this['chatCapabilities']['setReasoning'](_0x30ab76);}['toggleReasoning'](){this['chatCapabilities']['toggleReasoning']();}['isCurrentDocumentInContext'](){return this['chatContext']['isCurrentDocumentInContext']();}['isCurrentDocumentInConversation'](){return this['chatContext']['isCurrentDocumentInConversation']();}['isSelectionInContext'](){return this['chatContext']['isSelectionInContext']();}async['setModel'](_0x49d688){_0x49d688?!0x1===await this['chatModels']['isAvailable'](_0x49d688)&&(logWarning('ai-chat-conversation-set-model-not-available',{'conversation':this,'model':_0x49d688}),_0x49d688=(await this['chatModels']['getAvailableModels']())[0x0]):(logWarning('ai-chat-conversation-set-model-null',{'conversation':this}),_0x49d688=(await this['chatModels']['getAvailableModels']())[0x0]),_0x49d688['id']!==this['selectedModel']?.['id']&&(this['selectedModel']=_0x49d688,this['chatCapabilities']['reset'](),this['fire']('modelSelected',{'selectedModel':_0x49d688}));}}class AIModels extends EmitterMixin(){['_connector'];['_config'];['_locale'];['_modelList']=[];['_modelsRequest']=null;constructor({connector:_0x551d24,config:_0x623c6b,locale:_0x10bfc3}){super(),this['_connector']=_0x551d24,this['_config']=_0x623c6b,this['_locale']=_0x10bfc3;}get['_availableModels'](){return this['_config']?.['displayedModels'];}get['_defaultModelId'](){return this['_config']?.['defaultModelId'];}async['getAll'](){return this['_modelsRequest']||(this['_modelsRequest']=this['_retrieveModels']()),this['_modelsRequest'];}async['getAvailableModels'](){const _0x36566e=await this['getAll']();let _0x1f6a6b;return _0x1f6a6b=this['_availableModels']?this['_filterModels'](_0x36566e,this['_availableModels']):_0x36566e['filter'](_0x509ab1=>_0x509ab1['recommended']),_0x1f6a6b;}async['getModel'](_0x2fa9c3){const _0x3f4031=await this['getAll']();if(!_0x3f4031['length'])return null;if(_0x2fa9c3){const _0x2b03b4=this['_getModelById'](_0x3f4031,_0x2fa9c3);if(_0x2b03b4)return _0x2b03b4;logWarning('ai-chat-model-id-unrecognized',{'modelId':_0x2fa9c3,'fallBackModelId':this['_defaultModelId']});}return this['getDefault']();}async['getDefault'](){const _0x5ce2be=await this['getAvailableModels']();if(!_0x5ce2be['length'])return null;if(this['_defaultModelId']){const _0x2be57c=this['_getModelById'](_0x5ce2be,this['_defaultModelId']);if(_0x2be57c)return _0x2be57c;logWarning('ai-chat-default-model-id-unrecognized',{'defaultModelId':this['_defaultModelId'],'fallBackModelId':_0x5ce2be[0x0]['id']});}return _0x5ce2be[0x0];}async['isAvailable'](_0xff3cf3){return(await this['getAvailableModels']())['some'](_0x155265=>_0x155265['name']===_0xff3cf3['name']&&_0x155265['provider']===_0xff3cf3['provider']);}async['_retrieveModels'](){if(!this['_modelList']['length'])try{const _0x2f7d8e=this['_locale']['uiLanguage']||'en',_0x1be82f=this['_connector']['getModels'](_0x2f7d8e),_0x38df4e=await _0x1be82f['list']();this['_modelList']=_0x38df4e['items']['map'](_0x2e9835=>isAutoModel(_0x2e9835)?{..._0x2e9835,'name':getTranslation$i(this['_locale'],'AI_MODEL_NAME_AUTO')}:_0x2e9835);}catch(_0x5385d4){throw logError('ai-models-unable-to-retrieve',{'error':_0x5385d4}),_0x5385d4;}return[...this['_modelList']];}['_filterModels'](_0x55a519,_0x6c00ef){let _0x1e5bc3;if(_0x6c00ef){_0x1e5bc3=[];const _0x4d46c7=new Set(),_0x4d191c='string'==typeof _0x6c00ef?[_0x6c00ef['toLocaleLowerCase']()]:_0x6c00ef['map'](_0x217067=>_0x217067['toLocaleLowerCase']());for(const _0x3531af of _0x4d191c)for(const _0x5b760c of _0x55a519)!_0x4d46c7['has'](_0x5b760c['id'])&&this['_isMatchingFilter'](_0x5b760c,_0x3531af)&&(_0x1e5bc3['push'](_0x5b760c),_0x4d46c7['add'](_0x5b760c['id']));}else _0x1e5bc3=_0x55a519;return _0x1e5bc3;}['_isMatchingFilter'](_0x2e103e,_0x264b68){const _0x4f6685=_0x2e103e['id']['toLocaleLowerCase'](),_0x5c9496=_0x2e103e['name']['toLocaleLowerCase'](),_0xdc297c=_0x2e103e['provider']['toLocaleLowerCase']();return _0x4f6685===_0x264b68||_0x5c9496===_0x264b68||isAutoModel(_0x2e103e)&&'auto'===_0x264b68||_0xdc297c===_0x264b68||_0x4f6685['startsWith'](_0x264b68);}['_getModelById'](_0x274348,_0x3dea54){return _0x274348['find'](_0x2485af=>isAutoModel(_0x2485af)&&'auto'===_0x3dea54?_0x2485af:_0x2485af['id']===_0x3dea54)||null;}}function isAutoModel(_0x285d67){return _0x285d67['id']['startsWith']('agent');}function getEditorFromContext(_0x3baea8){if(_0x3baea8 instanceof Editor)return _0x3baea8;if(_0x3baea8?.['editors']&&_0x3baea8['editors']['get'](0x0))return _0x3baea8['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.'),_0x3baea8['editors']['get'](0x0);throw new CKEditorError('ai-get-editor-from-context-no-editor');}function getOperationsFromReply({editor:_0x1f0f92,interaction:_0x1422a5,reply:_0x317a51,groups:_0x57d481,transform:_0x294d69,documentCompare:_0x33683e,documentCompareOptions:_0x91847f}){const _0x58416c=_0x1422a5['getDocumentContext']();if(!_0x58416c)return[];const _0x35ae0f=_0x58416c['content'],_0x1e74f7=_0x58416c['version'],_0x5e6f5f=_0x317a51['documentContextContent']['cloneNode'](!0x0);for(const {changes:_0x450ec2}of _0x57d481){const _0x463aae=_0x450ec2['filter'](_0x18e699=>'new'!=_0x18e699['type'])['map'](_0x1d30ce=>findByAttribute('data-id',_0x1d30ce['id'],_0x5e6f5f)),_0x1911ad=_0x450ec2['filter'](_0x2e9348=>'removed'!=_0x2e9348['type'])['map'](_0x341fd4=>_0x341fd4['node']['cloneNode'](!0x0));let _0x2b7168=null;if(_0x463aae['length']){_0x2b7168=_0x463aae[0x0]['previousSibling'];for(let _0x186e72=0x0;_0x186e72<_0x463aae['length'];_0x186e72++)removeElement(_0x463aae[_0x186e72]);}if(_0x1911ad['length']){_0x2b7168||(_0x450ec2[0x0]['anchorId']?_0x2b7168=findByAttribute('data-id',_0x450ec2[0x0]['anchorId'],_0x5e6f5f):(_0x2b7168=_0x1911ad['shift'](),prependChild(_0x5e6f5f,_0x2b7168)));for(let _0x54b3f4=0x0;_0x54b3f4<_0x1911ad['length'];_0x54b3f4++)append(_0x2b7168,_0x1911ad[_0x54b3f4]),_0x2b7168=_0x1911ad[_0x54b3f4];}}const _0x220f76=serialize(_0x5e6f5f),_0x4f7e83=_0x33683e['getDiff'](_0x35ae0f,_0x220f76,_0x91847f)['getOperations']();if(_0x294d69){const _0x51b6f7=_0x1f0f92['model']['document']['history']['getOperations'](_0x1e74f7),_0xd811c5={'document':_0x1f0f92['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1};return transformOperationSets(_0x4f7e83,_0x51b6f7,_0xd811c5)['operationsA'];}return _0x4f7e83;}function fixMarkerOperationOldRange(_0x59e157,_0x179264){if('marker'!=_0x179264['type'])return;const _0x3ecd07=_0x59e157['model']['markers']['get'](_0x179264['name']);_0x3ecd07&&(_0x179264['oldRange']=_0x3ecd07['getRange']());}class AIChatController extends ContextPlugin{['_aiEditing'];['_aiConnector'];['_aiChatUi'];['_aiChatModels'];['_aiChatBalloon'];['_batchToChanges']=new Map();['_currentPreviewedChangeGroup']=null;['_bodyCollection'];static get['requires'](){return[AIConnector,DocumentCompare];}static get['pluginName'](){return'AIChatController';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_bodyCollection']=new BodyCollection(this['context']['locale']),this['_bodyCollection']['attachToDom'](),this['_aiConnector']=this['context']['plugins']['get']('AIConnector'),this['_aiChatUi']=this['context']['plugins']['get']('AIChatUI'),this['_aiEditing']=this['context']['plugins']['get']('AIEditing'),this['_aiChatModels']=new AIModels({'connector':this['_aiConnector'],'config':this['context']['config']['get']('ai.models'),'locale':this['context']['locale']});const _0x53e13a=this['context']['plugins']['get']('AITabs');this['listenTo'](this['_aiChatUi'],'startConversation',()=>{this['_startConversationSafely']();}),this['listenTo'](this['_aiChatUi'],'sendUserMessage',(_0xdb9f3c,_0x30cb72)=>{this['_handleUIUserMessage']({'userMessage':_0x30cb72});}),this['listenTo'](_0x53e13a,'resizedTabs',(_0x3c2804,_0x445f46)=>{this['_setIsMaximized'](_0x445f46);}),this['listenTo'](this['_aiChatUi'],'resizeTabs',()=>{_0x53e13a['resize']();}),this['listenTo'](this['_aiChatUi'],'abortPromptStream',async()=>{await this['_stopLastInteraction'](),await this['_flushLastInteractionUI'](),this['removeSelectionFromChatContext']();}),this['listenTo'](this['_aiChatUi'],'addDocumentToContext',()=>{this['addCurrentDocumentToChatContext']();}),this['listenTo'](this['_aiChatUi'],'addFileToContext',(_0x104da3,_0x3794cc)=>{this['activeConversation']?.['addFilesToContext'](Array['from'](_0x3794cc));}),this['listenTo'](this['_aiChatUi'],'addUrlToContext',(_0x234b73,_0x557c16)=>{this['activeConversation']?.['addUrlToContext'](_0x557c16);}),this['listenTo'](this['_aiChatUi'],'executeCustomItemCallback',(_0x1f0eb6,_0x49a4e6)=>{_0x49a4e6['callback'](this['context']);}),this['listenTo'](this['_aiChatUi'],'addResourceToContext',(_0x31c223,_0x921882)=>{this['activeConversation']?.['addResourceToContext'](_0x921882['source'],_0x921882['resource']);}),this['listenTo'](this['_aiChatUi'],'removeContextItem',(_0x2994eb,_0x2bcc6a)=>{this['_removeFromContext'](_0x2bcc6a);}),this['listenTo'](this['_aiChatUi'],'loadSourceResources',(_0x1e789f,_0x2dedf5)=>{this['activeConversation']?.['loadSourceResources'](_0x2dedf5['sourceId'],_0x2dedf5['query'],_0x2dedf5['uid']);}),this['listenTo'](this['_aiChatUi'],'toggleWebSearch',()=>{this['_toggleWebSearch']();}),this['listenTo'](this['_aiChatUi'],'toggleReasoning',()=>{this['_toggleReasoning']();}),this['listenTo'](this['_aiChatUi'],'selectModel',(_0x43002c,_0x584b0b)=>{this['activeConversation']?.['setModel'](_0x584b0b);}),this['listenTo'](this['_aiChatUi'],'like',(_0x20c3e5,{replyId:_0x54b3dc})=>{console['log']('Liked\x20response',_0x54b3dc);}),this['listenTo'](this['_aiChatUi'],'dislike',(_0x770c62,{replyId:_0x44f63f})=>{console['log']('Disliked\x20response',_0x44f63f);}),this['listenTo'](this['_aiChatUi'],'insertSuggestion',(_0x212b98,_0x15c1ba)=>{this['_insertSuggestion'](_0x15c1ba);}),this['listenTo'](this['_aiChatUi'],'showChangeInText',(_0x3f2d52,{replyId:_0x16f0da,partIndex:_0x53da6f})=>{this['_aiChatBalloonShowDiff']=this['_aiChatUi']['showDiff'],this['_openBalloonFor'](_0x16f0da,_0x53da6f);}),this['listenTo'](this['_aiChatUi'],'mouseOverSuggestion',(_0x3457e4,{replyId:_0x59be4b,partIndex:_0x1e7c3e})=>{const _0x38159f=this['_getDocumentRangeForReplyChanges'](_0x59be4b,_0x1e7c3e);_0x38159f&&'$graveyard'!=_0x38159f['range']['root']['rootName']&&this['_aiEditing']['showFakeVisualSelection']([_0x38159f['range']],'ai-chat-controller-mouse-over');}),this['listenTo'](this['_aiChatUi'],'mouseLeaveSuggestion',()=>{this['_aiEditing']['hideFakeVisualSelection']('ai-chat-controller-mouse-over');}),this['listenTo'](this['_aiChatUi'],'applySuggestion',(_0x2d9783,_0x1f9345)=>{this['_aiEditing']['hideFakeVisualSelection']('ai-chat-controller-mouse-over'),this['_applySuggestion'](_0x1f9345);}),this['listenTo'](this['_aiChatUi'],'toggleSuggestionDisplayMode',async(_0x13f97e,{replyId:_0x4773ec,showDiff:_0x5e64ca})=>{const {reply:_0x147e6a}=this['getInteractionAndReplyById'](_0x4773ec),_0x4a807a=_0x147e6a['getContentParts']({'showDiff':_0x5e64ca});await this['_aiChatUi']['updateFeedItemAIReplySuggestionContent']({'id':_0x147e6a['id'],'parts':_0x4a807a,'renderingStrategy':'static'});}),this['listenTo'](this['_aiChatUi'],'rejectSuggestion',(_0x311ffc,{replyId:_0x5be415,partIndex:_0x3c7ac8})=>{this['_rejectSuggestion']({'replyId':_0x5be415,'partIndex':_0x3c7ac8}),this['_aiEditing']['hideFakeVisualSelection']('ai-chat-controller-mouse-over');}),this['context']['plugins']['has']('AIChatBalloon')&&(this['_aiChatBalloon']=this['context']['plugins']['get']('AIChatBalloon'),this['set']('_aiChatBalloonShowDiff',!0x1),this['_aiChatBalloon']['bind']('showDiff')['to'](this,'_aiChatBalloonShowDiff'),this['listenTo'](this['_aiChatBalloon'],'toggleSuggestionDisplayMode',()=>{const {replyId:_0x160f85,partIndex:_0x1ebbc6}=this['_currentPreviewedChangeGroup'];this['_aiChatBalloonShowDiff']=!this['_aiChatBalloonShowDiff'];const {reply:_0x389454}=this['getInteractionAndReplyById'](_0x160f85),_0x178bd8=_0x389454['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff'],'groupIndex':_0x1ebbc6});this['_aiChatBalloon']['updateContent']({'part':_0x178bd8[0x0],'renderingStrategy':'static','keepErrors':!0x0});}),this['listenTo'](this['_aiChatBalloon'],'applySuggestion',()=>{const {replyId:_0x4e4305,partIndex:_0x23474a}=this['_currentPreviewedChangeGroup'];this['_applySuggestion']({'replyId':_0x4e4305,'partIndex':_0x23474a}),this['_aiChatBalloon']['setState']('accepted');}),this['listenTo'](this['_aiChatBalloon'],'insertSuggestion',()=>{const {replyId:_0x3a52ab,partIndex:_0x4183e0}=this['_currentPreviewedChangeGroup'];this['_insertSuggestion']({'replyId':_0x3a52ab,'partIndex':_0x4183e0}),this['_aiChatBalloon']['setState']('accepted');}),this['listenTo'](this['_aiChatBalloon'],'rejectSuggestion',()=>{const {replyId:_0x351ba2,partIndex:_0x8b7d0a}=this['_currentPreviewedChangeGroup'];this['_rejectSuggestion']({'replyId':_0x351ba2,'partIndex':_0x8b7d0a}),this['_aiChatBalloon']['setState']('rejected');}),this['listenTo'](this['_aiChatBalloon'],'showNext',()=>{const {replyId:_0x49cfa5,partIndex:_0x4529d3}=this['_currentPreviewedChangeGroup'],_0x541075=this['_getPresentableSiblingContentPartIndex'](_0x49cfa5,_0x4529d3,'next');null!==_0x541075&&this['_openBalloonFor'](_0x49cfa5,_0x541075);}),this['listenTo'](this['_aiChatBalloon'],'showPrevious',()=>{const {replyId:_0xaf4344,partIndex:_0x1311df}=this['_currentPreviewedChangeGroup'],_0x1a35c4=this['_getPresentableSiblingContentPartIndex'](_0xaf4344,_0x1311df,'previous');null!==_0x1a35c4&&this['_openBalloonFor'](_0xaf4344,_0x1a35c4);}),this['listenTo'](this['_aiChatBalloon'],'dialogClosed',(_0x2a2644,{id:_0x4f1c8d})=>{if('aiChatBalloon'!==_0x4f1c8d)return;const {replyId:_0x5ceadb,partIndex:_0x51bb06}=this['_currentPreviewedChangeGroup'];this['_currentPreviewedChangeGroup']=null,this['_aiChatUi']['setFeedItemAIReplySuggestionPartActive']({'id':_0x5ceadb,'index':_0x51bb06,'isActive':!0x1});}));}async['afterInit'](){this['context']instanceof Editor?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x37a9b5,_0x4262b8)=>{_0x4262b8['on']('ready',()=>{this['_integrateEditor'](_0x4262b8);});});const _0x3b61b1=this['context']['config']['get']('ai.chat.initialConversation');let _0x583ee6=_0x3b61b1;if('lastCreated'!=_0x3b61b1||(_0x583ee6=await this['_getLastCreatedConversationId'](),_0x583ee6))return'new'==_0x583ee6?this['_startConversationSafely']():this['loadConversation'](_0x583ee6);}async['destroy'](){return await this['_stopLastInteraction'](),this['_bodyCollection']['detachFromDom'](),super['destroy']();}['_insertSuggestion'](_0x5bd76a){const _0x525320=getEditorFromContext(this['context']);if(!_0x525320['plugins']['has']('TrackChanges'))throw new CKEditorError('ai-no-track-changes',null);const _0x2a4414=this['context']['plugins']['get']('DocumentCompare'),{reply:_0x2c686c,interaction:_0x5b69fc}=this['getInteractionAndReplyById'](_0x5bd76a['replyId']),_0x3c2c1e=this['_getDocumentRangeForReplyChanges'](_0x5bd76a['replyId'],_0x5bd76a['partIndex']),_0x221f62=void 0x0!==_0x5bd76a['partIndex']?[_0x2c686c['changeGroups'][_0x5bd76a['partIndex']]]:_0x2c686c['changeGroups']['filter'](_0x233b09=>'pending'==_0x233b09['state']),_0x552515=_0x221f62['map'](_0x122f3c=>_0x2c686c['changeGroups']['indexOf'](_0x122f3c));if(!_0x3c2c1e||'$graveyard'==_0x3c2c1e['range']['root']['rootName'])return void _0x552515['forEach'](_0x1d7f7c=>_0x2c686c['setChangeGroupState'](_0x1d7f7c,'outdated'));_0x552515['forEach'](_0x5598d6=>_0x2c686c['setChangeGroupState'](_0x5598d6,'accepted'));const _0x2d1149=getOperationsFromReply({'editor':_0x525320,'reply':_0x2c686c,'interaction':_0x5b69fc,'groups':_0x221f62,'transform':!0x0,'documentCompare':_0x2a4414,'documentCompareOptions':{'anchor':'main','markDeletions':!0x0}});let _0x4daac6;_0x3c2c1e&&this['_scrollToSuggestionRange'](_0x3c2c1e['range']),_0x525320['model']['change'](_0x156364=>{_0x4daac6=_0x156364['batch'],_0x525320['plugins']['get']('TrackChangesEditing')['_applyOperationsAsSuggestions'](_0x2d1149),this['_aiEditing']['hideFakeVisualSelection']('ai-chat-controller-mouse-over');}),this['_batchToChanges']['set'](_0x4daac6,{'interactionId':_0x5b69fc['id'],'replyId':_0x2c686c['id'],'indexes':_0x552515['slice']()}),this['_updateRatings'](_0x2c686c);}['_applySuggestion'](_0x369374){const _0x5adb0d=getEditorFromContext(this['context']),_0x540496=this['context']['plugins']['get'](DocumentCompare),{reply:_0x4dd167,interaction:_0x4aa50e}=this['getInteractionAndReplyById'](_0x369374['replyId']),_0x12b550=this['_getDocumentRangeForReplyChanges'](_0x369374['replyId'],_0x369374['partIndex']),_0x1bd3f0=void 0x0!==_0x369374['partIndex']?[_0x4dd167['changeGroups'][_0x369374['partIndex']]]:_0x4dd167['changeGroups']['filter'](_0x70f40c=>'pending'==_0x70f40c['state']),_0x46ec93=_0x1bd3f0['map'](_0x53034c=>_0x4dd167['changeGroups']['indexOf'](_0x53034c));if(!_0x12b550||'$graveyard'==_0x12b550['range']['root']['rootName'])return void _0x46ec93['forEach'](_0x5a3999=>_0x4dd167['setChangeGroupState'](_0x5a3999,'outdated'));_0x46ec93['forEach'](_0x3d9ce0=>_0x4dd167['setChangeGroupState'](_0x3d9ce0,'accepted'));const _0x3014f4=getOperationsFromReply({'editor':_0x5adb0d,'reply':_0x4dd167,'interaction':_0x4aa50e,'groups':_0x1bd3f0,'transform':!0x0,'documentCompare':_0x540496,'documentCompareOptions':{'anchor':'main','markDeletions':!0x1}});let _0x559830;_0x12b550&&this['_scrollToSuggestionRange'](_0x12b550['range']),_0x5adb0d['model']['change'](_0x3667f3=>{_0x559830=_0x3667f3['batch'];for(const _0x4a2a5b of _0x3014f4)_0x4a2a5b['baseVersion']=_0x5adb0d['model']['document']['version'],fixMarkerOperationOldRange(_0x5adb0d,_0x4a2a5b),_0x3667f3['batch']['addOperation'](_0x4a2a5b),_0x5adb0d['model']['applyOperation'](_0x4a2a5b);}),this['_batchToChanges']['set'](_0x559830,{'interactionId':_0x4aa50e['id'],'replyId':_0x4dd167['id'],'indexes':_0x46ec93['slice']()}),this['_updateRatings'](_0x4dd167);}['_rejectSuggestion'](_0x536a94){const {reply:_0x29b128}=this['getInteractionAndReplyById'](_0x536a94['replyId']);_0x29b128['setChangeGroupState'](_0x536a94['partIndex'],'rejected');}['_openBalloonFor'](_0x2dabbe,_0x2e0913){if(!this['_aiChatBalloon'])return;const {reply:_0x210ff8}=this['getInteractionAndReplyById'](_0x2dabbe),_0x3d043b=_0x210ff8['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff']});let _0x4e7054,_0x388064;if(void 0x0!==_0x2e0913?(_0x388064=_0x3d043b['find'](_0x212f8d=>_0x212f8d['index']==_0x2e0913),_0x4e7054=_0x388064?.['index']):(_0x388064=_0x3d043b[0x0],_0x4e7054=_0x388064['index']),this['_currentPreviewedChangeGroup']?.['replyId']==_0x2dabbe&&this['_currentPreviewedChangeGroup']?.['partIndex']==_0x4e7054)return;const _0x30599c=this['_getUserPresentableContentPartDocumentRange'](_0x2dabbe,_0x210ff8,_0x388064);if(!_0x30599c)return void this['_aiChatBalloon']['close']();this['_currentPreviewedChangeGroup']={'replyId':_0x2dabbe,'partIndex':_0x4e7054},this['_scrollToSuggestionRange'](_0x30599c,!0x0);const _0x1768f0=this['_getPresentableSiblingContentPartIndex'](_0x2dabbe,_0x4e7054,'next');this['_aiChatBalloon']['updateContent']({'part':_0x388064,'renderingStrategy':'static'}),this['_aiChatBalloon']['open']({'index':_0x4e7054,'title':getTranslation$i(this['context']['locale'],'AI_BALLOON_HEADER_TITLE',(_0x4e7054+0x1)['toString']()),'showRotator':null!==_0x1768f0,'ranges':[_0x30599c],'areActionsDisabled':_0x210ff8['areActionsDisabled']}),this['_aiChatBalloon']['setState']('pending'),this['_aiChatUi']['scrollFeedToSuggestion'](_0x2dabbe,_0x4e7054),this['_aiChatUi']['setFeedItemAIReplySuggestionPartActive']({'id':_0x2dabbe,'index':_0x4e7054,'isActive':!0x0});}['_getPresentableSiblingContentPartIndex'](_0x5bbb31,_0x357c86,_0xf2108c){const {reply:_0x5239f9}=this['getInteractionAndReplyById'](_0x5bbb31),_0x4f82f7=_0x5239f9['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff']});if(0x1==_0x4f82f7['length'])return null;const _0x3535d2=_0x4f82f7['findIndex'](_0x1e6dcb=>_0x1e6dcb['index']==_0x357c86),_0x5573db='next'==_0xf2108c?0x1:-0x1;let _0x56a068=_0x4f82f7['at']((_0x3535d2+_0x5573db)%_0x4f82f7['length'])['index'],_0x3e63a6=_0x4f82f7[_0x56a068];for(;!this['_getUserPresentableContentPartDocumentRange'](_0x5bbb31,_0x5239f9,_0x3e63a6);){if(_0x56a068=_0x4f82f7['at']((_0x56a068+_0x5573db)%_0x4f82f7['length'])['index'],_0x56a068===_0x3535d2)return null;_0x3e63a6=_0x4f82f7[_0x56a068];}return _0x56a068;}['_getUserPresentableContentPartDocumentRange'](_0x3eb5fc,_0x2bbc10,_0x4a3e25){const _0x44392c=_0x2bbc10['changeGroups'];if(!_0x4a3e25['hasChanges'])return null;const _0x427f10=_0x44392c['find'](_0x579394=>_0x579394['index']==_0x4a3e25['index']);if('pending'!==_0x427f10?.['state'])return null;const _0x21b573=this['_getDocumentRangeForReplyChanges'](_0x3eb5fc,_0x4a3e25['index']);if(!_0x21b573)return null;const {range:_0x392d8b,currentIndex:_0x284342}=_0x21b573;return'$graveyard'==_0x392d8b['root']['rootName']?(_0x2bbc10['setChangeGroupState'](_0x284342,'outdated'),null):_0x21b573['range'];}['_getDocumentRangeForReplyChanges'](_0x48baaf,_0x33e35e){const _0x3cc3fc=getEditorFromContext(this['context']),{reply:_0x223e23,interaction:_0x51e756}=this['getInteractionAndReplyById'](_0x48baaf),_0x46675c=_0x223e23['changeGroups']['filter'](_0x51cee7=>'pending'==_0x51cee7['state']),_0x19e94e=_0x46675c['map'](_0x115050=>_0x223e23['changeGroups']['indexOf'](_0x115050));void 0x0===_0x33e35e&&(_0x33e35e=_0x19e94e[0x0]);const _0x416a5f=_0x19e94e['indexOf'](_0x33e35e);if(-0x1==_0x416a5f)return null;const _0x236971=_0x46675c[_0x416a5f],_0x14cbe5=new Document([]),_0x1998b9=new Document([]);for(const _0x1362c5 of _0x236971['changes'])if('removed'!=_0x1362c5['type']&&_0x1998b9['children']['push'](_0x1362c5['node']['cloneNode'](!0x0)),'new'!=_0x1362c5['type']){const _0x9eb7cc=findOne(_0x28025a=>getAttribute(_0x28025a,'data-id')==_0x1362c5['id'],_0x223e23['documentContextContent'],!0x0);_0x14cbe5['children']['push'](_0x9eb7cc['cloneNode'](!0x0));}if(0x0==_0x14cbe5['children']['length']){if(_0x236971['changes'][0x0]['anchorId']){const _0x1cdf83=findByAttribute('data-id',_0x236971['changes'][0x0]['anchorId'],_0x223e23['documentContextContent']);_0x14cbe5['children']['unshift'](_0x1cdf83['cloneNode'](!0x0)),_0x1998b9['children']['unshift'](_0x1cdf83['cloneNode'](!0x0)),_0x1cdf83['nextSibling']&&(_0x14cbe5['children']['push'](_0x1cdf83['nextSibling']['cloneNode'](!0x0)),_0x1998b9['children']['push'](_0x1cdf83['nextSibling']['cloneNode'](!0x0)));}else{const _0x51805d=_0x223e23['documentContextContent']['children'][0x0];if(!_0x51805d)return null;_0x14cbe5['children']['push'](_0x51805d['cloneNode'](!0x0)),_0x1998b9['children']['push'](_0x51805d['cloneNode'](!0x0));}}const _0x238344=_0x51e756['getDocumentContext'](),_0x22fe3a=_0x3cc3fc['data']['parse'](_0x238344['content']),_0x561540=serialize(_0x14cbe5),_0x3f6b1d=_0x3cc3fc['data']['parse'](_0x561540),_0x5e8cd0=_0x3cc3fc['data']['parse'](_0x561540),_0x42ea5b=_0x3cc3fc['model']['createPositionAt'](_0x3f6b1d,0x0),_0x473646=serialize(_0x1998b9),_0x24f37f={'anchor':_0x42ea5b,'markDeletions':!0x1},_0x48bc46=_0x3cc3fc['plugins']['get'](DocumentCompare)['getDiff'](_0x561540,_0x473646,_0x24f37f)['getOperations']();if(!_0x48bc46['length'])return null;_0x3cc3fc['model']['change'](_0x451efb=>{for(const _0x243df2 of _0x48bc46)if('remove'==_0x243df2['type']){const _0x1938de=_0x243df2['sourcePosition'],_0x1786d9=_0x243df2['howMany'],_0xd168b2=new _DetachOperation(_0x1938de,_0x1786d9);_0x451efb['batch']['addOperation'](_0xd168b2),_0x3cc3fc['model']['applyOperation'](_0xd168b2);}else'marker'!==_0x243df2['type']&&(_0x243df2['baseVersion']=null,_0x243df2['isDocumentOperation']=!0x1,_0x451efb['batch']['addOperation'](_0x243df2),_0x3cc3fc['model']['applyOperation'](_0x243df2));});const _0x292b2f=getMinimalSelection(_0x3cc3fc,_0x48bc46,_0x3f6b1d);expandSelectionWithContext(_0x3cc3fc['model'],_0x292b2f);const _0x4edc99=_0x292b2f['getFirstRange']()['start']['path']['slice'](),_0x27a5ba=_0x292b2f['getFirstRange']()['end']['path']['slice'](),_0x2988a9=[];let _0x4917ca=_0x3f6b1d,_0x4b0a26=_0x5e8cd0;for(let _0x14069b=0x0;_0x14069b<_0x27a5ba['length'];_0x14069b++){const _0x5a5d53=_0x4917ca['maxOffset']-_0x27a5ba[_0x14069b];_0x2988a9[_0x14069b]=_0x4b0a26['maxOffset']-_0x5a5d53,_0x4917ca=_0x4917ca['getChildAtOffset'](_0x27a5ba[_0x14069b]),_0x4b0a26=_0x4b0a26['getChildAtOffset'](_0x2988a9[_0x14069b]);}const _0x1748bd=_0x3cc3fc['model']['createRange'](_0x3cc3fc['model']['createPositionFromPath'](_0x5e8cd0,_0x4edc99),_0x3cc3fc['model']['createPositionFromPath'](_0x5e8cd0,_0x2988a9)),_0x5c96e6=_0x5e8cd0['getChild'](0x0)['getAttribute'](DATA_ID_MODEL_ATTRIBUTE),_0x357883=Array['from'](_0x22fe3a['getChildren']())['find'](_0x20274d=>_0x20274d['getAttribute'](DATA_ID_MODEL_ATTRIBUTE)==_0x5c96e6)['getPath'](),_0xf3e51=_0x1748bd['start']['path']['slice'](),_0x4ca9fa=_0x1748bd['end']['path']['slice']();_0xf3e51[0x0]=_0x357883[0x0]+_0xf3e51[0x0],_0x4ca9fa[0x0]=_0x357883[0x0]+_0x4ca9fa[0x0];let _0x1740da=_0x3cc3fc['model']['createRange'](_0x3cc3fc['model']['createPositionFromPath'](_0x3cc3fc['model']['document']['getRoot'](),_0xf3e51),_0x3cc3fc['model']['createPositionFromPath'](_0x3cc3fc['model']['document']['getRoot'](),_0x4ca9fa));const _0x165452=_0x3cc3fc['model']['document']['history']['getOperations'](_0x238344['version']);for(const _0x1fac8b of _0x165452)_0x1740da=ModelRange['_createFromRanges'](_0x1740da['getTransformedByOperation'](_0x1fac8b));return{'range':_0x1740da,'currentIndex':_0x33e35e};}['_integrateEditor'](_0x587e93){if(!_0x587e93['plugins']['has']('Undo'))return;const _0x4f4505=_0x587e93['commands']['get']('undo'),_0x5c68cb=_0x587e93['commands']['get']('redo');this['listenTo'](_0x4f4505,'revert',(_0x26c84d,_0x3f2e5a,_0x23fa93)=>{const _0x9cb992=this['_batchToChanges']['get'](_0x3f2e5a);if(!_0x9cb992)return;const _0x5b1973=this['activeConversation']['getInteraction'](_0x9cb992['interactionId'])['getReply'](_0x9cb992['replyId']);_0x9cb992['indexes']['forEach'](_0x204f55=>_0x5b1973['setChangeGroupState'](_0x204f55,'pending')),this['_batchToChanges']['delete'](_0x3f2e5a),this['_batchToChanges']['set'](_0x23fa93,_0x9cb992);}),this['listenTo'](_0x5c68cb,'revert',(_0x2d56e5,_0x8554b,_0x7ea7a5)=>{const _0x4720d6=this['_batchToChanges']['get'](_0x8554b);if(!_0x4720d6)return;const _0x2551b8=this['activeConversation']['getInteraction'](_0x4720d6['interactionId'])['getReply'](_0x4720d6['replyId']);_0x4720d6['indexes']['forEach'](_0x468971=>_0x2551b8['setChangeGroupState'](_0x468971,'accepted')),this['_batchToChanges']['delete'](_0x8554b),this['_batchToChanges']['set'](_0x7ea7a5,_0x4720d6);});}async['loadConversation'](_0x572131){this['context']['plugins']['has']('AIChatBalloon')&&this['context']['plugins']['get']('AIChatBalloon')['close'](),(this['context']['plugins']['get'](AITabs)['view']['activateTab']('chat'),this['_aiChatUi']['setFeedItemRenderingStrategy']('static'),this['_aiChatUi']['toggleLoadingSkeleton'](!0x0),await this['_stopLastInteraction']());try{await this['_aiConnector']['fetchConversation'](_0x572131)['getConversation'](),await this['_startConversationSafely'](_0x572131),this['updateConversationTitle']('\x20'),await this['activeConversation']['load'](_0x572131,this['_aiEditing']['sessionId']),this['activeConversation']['isCurrentDocumentInConversation']()&&this['addCurrentDocumentToChatContext']();}catch(_0x3945f0){this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_LOAD_CONVERSATION'),'id':_0x572131}),this['_logError'](new CKEditorError('ai-chat-conversation-not-found',this,{'error':_0x3945f0}));}finally{this['_aiChatUi']['startAutoScroll'](),this['_aiChatUi']['setFeedItemRenderingStrategy']('streaming'),this['_aiChatUi']['toggleLoadingSkeleton'](!0x1);}}async['_getLastCreatedConversationId'](){const _0x7872f2=this['_aiConnector']['fetchConversations'](this['getGroupId'](),{'limit':0x1,'sortBy':'createdAt'});try{const _0x52879a=await _0x7872f2['getConversations']();return _0x52879a['length']?_0x52879a[0x0]['id']:'new';}catch(_0x102c98){return this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_LOAD_CONVERSATION'),'id':uid()}),this['_logError'](new CKEditorError('ai-chat-conversation-init-failed',this,{'error':_0x102c98})),this['_aiChatUi']['toggleLoadingSkeleton'](!0x1),this['_aiChatUi']['disableControls'](),null;}}['handleRemovedConversation'](_0x3264f5){this['activeConversation']['id']===_0x3264f5&&this['_startConversationSafely']();}['addCurrentDocumentToChatContext'](){this['activeConversation']?.['addCurrentDocumentToContext'](getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_CURRENT_DOCUMENT'));}async['addSelectionToChatContext'](){const _0x509c26=this['_aiEditing']['getSelectionText']();this['activeConversation']?.['addSelectionToContext'](_0x509c26),this['addCurrentDocumentToChatContext']();}['removeSelectionFromChatContext'](){this['activeConversation']?.['removeSelectionFromContext']();}['focusPromptInput'](){this['_aiChatUi']['focusPromptInput']();}async['startConversation'](){await this['_startConversationSafely']();}async['sendMessage']({message:_0x52c96f,attributes:_0x2aa016}){await this['_handleUIUserMessage']({'userMessage':_0x52c96f,'attributes':_0x2aa016});}['getGroupId'](){const _0x25319f=this['context']['config']['get']('collaboration.channelId');if(!_0x25319f)throw new CKEditorError('ai-chat-missing-channel-id',this);return _0x25319f;}async['_startConversationSafely'](_0x5789bf){try{this['_aiChatUi']['enableControls'](),await this['_handleStartConversation'](_0x5789bf);}catch(_0x383f52){this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_START_CONVERSATION'),'id':_0x5789bf||uid()}),console['error'](_0x383f52),this['activeConversation']=void 0x0,this['_aiChatUi']['disableControls']();}}async['_handleStartConversation'](_0x24662){let _0x52d16c;this['context']['plugins']['has']('AIChatBalloon')&&this['context']['plugins']['get']('AIChatBalloon')['close'](),_0x24662||!this['activeConversation']?_0x52d16c=this['context']['config']['get']('ai.models.defaultModelId'):this['_aiChatUi']['isModelAvailable']&&(_0x52d16c=this['activeConversation']['selectedModel']['id']),await this['_stopLastInteraction']();const _0xd46bb7=this['getGroupId'](),_0xb574d3=_0x24662||uid();this['activeConversation']=new AIChatConversation({'connector':this['_aiConnector'],'chatModels':this['_aiChatModels'],'selectedModelId':_0x52d16c,'conversationId':_0xb574d3,'group':_0xd46bb7,'getEditor':()=>getEditorFromContext(this['context']),'isFromHistory':!!_0x24662}),this['activeConversation']['delegate']('toolDataReceived','interactionStarted')['to'](this),this['activeConversation']['on']('conversationInitialized',(_0x667e5a,_0x1ee8fe)=>{this['_aiChatUi']['createConversation'](_0x1ee8fe),this['_aiChatUi']['resetMessageInput'](),this['_aiChatUi']['clearPendingContextUI'](),this['_aiChatUi']['clearConversationContextUI'](),_0x24662||(this['_aiChatUi']['resetConversationTitle'](),this['addCurrentDocumentToChatContext']());}),this['activeConversation']['on']('uploadProgressChanged',(_0x2df8ab,_0x4efcc4)=>{this['_aiChatUi']['setIsUploadInProgress'](_0x4efcc4['isUploadInProgress']);}),this['activeConversation']['on']('interactionCreated',(_0x352d6a,_0x27b39d)=>{this['_aiChatUi']['addFeedItemUserMessage'](_0x27b39d);}),this['activeConversation']['on']('webSearchStarted',()=>{const _0x236019=this['_aiChatUi']['prepareLoadingMessage']({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this['_aiChatUi']['setLoadingMessage'](_0x236019);}),this['activeConversation']['on']('reasoningStarted',()=>{const _0x15bd35=this['_aiChatUi']['prepareLoadingMessage']({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this['_aiChatUi']['setLoadingMessage'](_0x15bd35);}),this['activeConversation']['on']('webSearchFinished',(_0x245102,_0x1944cd)=>{this['_aiChatUi']['addFeedInteractionHeader'](_0x1944cd,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this['activeConversation']['on']('reasoningFinished',(_0x3469bb,_0x45b3f2)=>{this['_aiChatUi']['addFeedInteractionHeader'](_0x45b3f2,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this['activeConversation']['on']('interactionStarted',()=>{this['_aiChatUi']['startInteraction']();}),this['activeConversation']['on']('interactionFinished',async()=>{await this['_aiChatUi']['finishInteraction']();}),this['activeConversation']['on']('interactionDestroyed',(_0x1c6837,_0x41dbcc)=>{this['_aiChatUi']['removeFeedInteraction'](_0x41dbcc['id']);}),this['activeConversation']['on']('setConversationTitle',(_0x2a9e8d,_0x18e664,_0x547a3e)=>{this['updateConversationTitle'](_0x18e664,_0x547a3e);}),this['activeConversation']['on']('replyCreated',(_0x333927,_0xfe4f54)=>{'text'===_0xfe4f54['type']?this['_aiChatUi']['addFeedItemAIReply'](_0xfe4f54):this['_aiChatUi']['addFeedItemAISuggestion'](_0xfe4f54);}),this['activeConversation']['on']('replyContentUpdated',async(_0x9d85d6,_0x48b824)=>{await this['_updateReplyContent']({'reply':_0x48b824});}),this['activeConversation']['on']('replyChangeGroupStateUpdated',(_0x15eeea,{reply:_0x1ae66d,index:_0x43d5e1,state:_0x562fa5})=>{this['_aiChatUi']['updateFeedItemAIReplySuggestionPartState']({'id':_0x1ae66d['id'],'index':_0x43d5e1,'state':_0x562fa5}),this['_currentPreviewedChangeGroup']?.['replyId']['includes'](_0x1ae66d['id'])&&this['_currentPreviewedChangeGroup']?.['partIndex']==_0x43d5e1&&this['_aiChatBalloon']?.['setState'](_0x562fa5);}),this['activeConversation']['on']('contextItemAdded',(_0x2886c8,_0x4ed1c6)=>{if(this['_aiChatUi']['addContextItem'](_0x4ed1c6['contextItem'],_0x4ed1c6['isLoading']),'selection'===_0x4ed1c6['contextItem']['type']){const _0xfdf789=[...getEditorFromContext(this['context'])['model']['document']['selection']['getRanges']()];this['_aiEditing']['showFakeVisualSelection'](_0xfdf789,'ai-conversation-'+this['activeConversation']?.['id']);}}),this['activeConversation']['on']('contextItemRemoved',(_0xd6d60d,_0x213b91)=>{this['_aiChatUi']['removeContextItem'](_0x213b91['uiId']),'current-document'==_0x213b91['uiId']&&this['removeSelectionFromChatContext'](),'selection'===_0x213b91['type']&&this['_aiEditing']['hideFakeVisualSelection']('ai-conversation-'+this['activeConversation']?.['id']);}),this['activeConversation']['on']('contextItemLoadingEnded',(_0x1ee177,_0x4da339)=>{this['_aiChatUi']['setContextItemLoading'](_0x4da339['contextItem']['uiId'],_0x4da339['isLoading']);}),this['activeConversation']['on']('contextSent',(_0x1bef3d,_0x3e82be)=>{this['_aiChatUi']['setConversationContext'](_0x3e82be['contextItems']);}),this['activeConversation']['on']('addContextOptionsChanged',(_0x1bf688,_0x4b1d35)=>{this['_aiChatUi']['setAddContextOptions'](_0x4b1d35['options']);}),this['activeConversation']['on']('sourceResourcesLoaded',(_0x2c2bd4,_0x36f7db)=>{this['_aiChatUi']['populateSourceResourceBalloon'](_0x36f7db['sourceId'],_0x36f7db['source'],_0x36f7db['resources'],_0x36f7db['uid']);}),this['activeConversation']['on']('resourceStateChanged',(_0x3c8958,_0x4bb30f)=>{this['_aiChatUi']['updateResourceState'](_0x4bb30f['sourceId'],_0x4bb30f['resourceId'],_0x4bb30f['isInContext']);}),this['activeConversation']['on']('capabilitiesUpdated',(_0x440047,_0x3d6555)=>{this['_aiChatUi']['updateCapabilities'](_0x3d6555);}),this['activeConversation']['on']('modelSelected',async(_0x5a8483,_0x357ce6)=>{const _0x3a1187=(await this['_aiChatModels']['getAll']())['find'](_0x1f1160=>_0x1f1160['id']===_0x357ce6['selectedModel']?.['id'])||null;this['_aiChatUi']['setSelectedModel'](_0x3a1187,_0x357ce6['isDisabled']);}),this['activeConversation']['on']('error',(_0x2e3302,{error:_0xaf336,interactionId:_0x5c22b3,fileName:_0xaa0c4c,url:_0x1d2d67,sourceId:_0x30c2af,sourceLabel:_0x48841b})=>{const _0x4471c2=_0x5c22b3?_0x5c22b3+':'+uid():uid();_0xaf336['message']['startsWith']('ai-request-aborted')?this['_aiChatUi']['addFeedItemStaticMessage']({'staticMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_ABORTED_MESSAGE'),'id':_0x4471c2}):_0xaf336['message']['startsWith']('ai-chat-conversation-init-failed')||_0xaf336['message']['startsWith']('ai-chat-conversation-start-failed')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_START_CONVERSATION'),'id':_0x4471c2}),this['_logError'](_0xaf336)):_0xaf336['message']['startsWith']('ai-chat-file-upload-failed')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE',_0xaa0c4c),'id':_0x4471c2}):_0xaf336['message']['startsWith']('ai-chat-url-upload-failed')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL',_0x1d2d67),'id':_0x4471c2}):_0xaf336['message']['startsWith']('ai-chat-context-invalid-data')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_INVALID_DATA'),'id':_0x4471c2}):_0xaf336['message']['startsWith']('ai-chat-context-unsupported-type')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNSUPPORTED_TYPE'),'id':_0x4471c2}):_0xaf336['message']['startsWith']('ai-chat-source-resources-load-failed')?(_0x30c2af&&this['_aiChatUi']['closeSourceResourceBalloon'](_0x30c2af),this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES',_0x48841b||'source'),'id':_0x4471c2}),this['_logError'](_0xaf336)):_0xaf336['message']['startsWith']('ai-chat-resource-load-failed')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_RESOURCE_LOAD_FAILED'),'id':_0x4471c2}),this['_logError'](_0xaf336)):_0xaf336['message']['startsWith']('ai-chat-invalid-request')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_INVALID_REQUEST'),'id':_0x4471c2}),this['_logError'](_0xaf336)):_0xaf336['message']['startsWith']('ai-chat-context-unsupported-file-type')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE'),'id':_0x4471c2}),this['_logError'](_0xaf336)):_0xaf336['message']['startsWith']('ai-chat-context-file-too-large')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_FILE_TOO_LARGE'),'id':_0x4471c2}),this['_logError'](_0xaf336)):_0xaf336['message']['startsWith']('ai-chat-context-file-too-many-pages')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES'),'id':_0x4471c2}),this['_logError'](_0xaf336)):_0xaf336['message']['startsWith']('ai-chat-context-form-data-size-limits-exceeded')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED'),'id':_0x4471c2}),this['_logError'](_0xaf336)):(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_GENERIC_ERROR'),'id':_0x4471c2}),this['_logError'](_0xaf336));}),await this['activeConversation']['init'](this['context']['config']['get']('ai.chat.context')),_0x24662||await this['activeConversation']['start']();}async['_handleUIUserMessage']({userMessage:_0x5b8d65,attributes:_0x5e223d}){if(!this['activeConversation'])throw new CKEditorError('ai-chat-controller-no-active-conversation');if(this['activeConversation']['isCurrentDocumentInContext']()){const _0x3fa3f4=await this['_aiEditing']['getDocumentData']();await this['activeConversation']['updateCurrentDocumentInContext'](_0x3fa3f4);}this['activeConversation']['id']&&this['activeConversation']['isStarted']&&await this['activeConversation']['handleUserInteraction']({'userMessage':_0x5b8d65,'attributes':_0x5e223d});}['_showConversationHistory'](){console['log']('Showing\x20conversation\x20history...');}['_setIsMaximized'](_0x4acd7c){this['_aiChatUi']['setIsMaximized'](_0x4acd7c);}['_logError'](_0x540585){logError(_0x540585['message']);}['_removeFromContext'](_0x2c5365){this['activeConversation']?.['removeFromContext'](_0x2c5365);}['_toggleWebSearch'](){this['activeConversation']?.['toggleWebSearch']();}['_toggleReasoning'](){this['activeConversation']?.['toggleReasoning']();}['getInteractionAndReplyById'](_0x4bb661){const [_0x12386e,_0x4ca87d]=_0x4bb661['split'](':'),_0x186d47=this['activeConversation']['getInteraction'](_0x12386e),_0x497f7d=_0x186d47['getReply'](_0x4ca87d);return{'interaction':_0x186d47,'reply':_0x497f7d};}['_scrollToSuggestionRange'](_0x2f8163,_0x4cf0a7=!0x1){const _0xd92273=getEditorFromContext(this['context']),_0x1d79da={'target':_0xd92273['editing']['view']['domConverter']['viewRangeToDom'](_0xd92273['editing']['mapper']['toViewRange'](_0x2f8163)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x4cf0a7};_0x4cf0a7&&(_0x1d79da['alignToTop']=!0x0),scrollViewportToShowTarget(_0x1d79da);}['updateConversationTitle'](_0x265f94,_0x10300e=!0x1){this['_aiChatUi']['setConversationTitle'](_0x265f94||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION'),_0x10300e);}async['_updateReplyContent']({reply:_0x1ae591,renderingStrategy:_0x5798a4}){const {id:_0x32cf6b,interactionId:_0x169493,isDone:_0x562d16,type:_0x19e9fe,parsedContent:_0x37f54c}=_0x1ae591,_0x21834d=_0x169493+':'+_0x32cf6b;if('modification'===_0x19e9fe){const _0x58da30=_0x1ae591['getContentParts']({'showDiff':this['_aiChatUi']['showDiff']});await this['_aiChatUi']['updateFeedItemAIReplySuggestionContent']({'id':_0x21834d,'parts':_0x58da30,'renderingStrategy':_0x5798a4,'isDone':_0x562d16});}else'text'===_0x19e9fe&&await this['_aiChatUi']['updateFeedItemAIReplyContent']({'id':_0x21834d,'parsedContent':_0x37f54c,'renderingStrategy':_0x5798a4,'isDone':_0x562d16});_0x562d16&&_0x1ae591['sources']['length']>0x0&&this['_aiChatUi']['updateFeedItemAIReplySources'](_0x21834d,_0x1ae591['sources']);}async['_stopLastInteraction'](){const _0x2cd522=this['activeConversation']?.['lastInteraction'];_0x2cd522&&(_0x2cd522['stop'](),this['_aiChatUi']['stopInteraction'](_0x2cd522));}async['_flushLastInteractionUI'](){const _0x1ce408=this['activeConversation']?.['lastInteraction'];if(_0x1ce408){for await(const _0x182e17 of _0x1ce408['replies'])await this['_updateReplyContent']({'reply':_0x182e17,'renderingStrategy':'static'});}}['_updateRatings'](_0x43ab17){const _0x140e02={'positiveCount':_0x43ab17['changeGroups']['filter'](_0x55bd9e=>'accepted'===_0x55bd9e['state'])['length'],'totalCount':_0x43ab17['changeGroups']['length'],'modificationId':_0x43ab17['id']},_0x2e761d=this['activeConversation']['getInteraction'](_0x43ab17['interactionId'])['messageId'];_0x2e761d&&this['_aiConnector']['upsertAIChatRating'](this['activeConversation']['id'],_0x2e761d,_0x140e02);}['_registerToolDataCallback'](_0x509f9e){let _0x53848c=null,_0x2fec6a=null;this['on']('toolDataReceived',(_0x31b3b8,_0xa7f8df,_0x1e8bc8)=>{_0x1e8bc8['id']!==_0x53848c&&(_0x53848c=_0x1e8bc8['id'],_0x2fec6a=this['_getAIChatInteractionAPI'](_0x1e8bc8)),_0x509f9e(_0xa7f8df,_0x2fec6a);});}['_getAIChatInteractionAPI'](_0x2964e3){const _0x49fbec=this['_aiChatUi'],_0x456409=()=>{_0x2964e3['resetWebSearchState'](),_0x2964e3['resetReasoningState'](),_0x49fbec['clearLoadingMessage']();},_0x23205a=()=>{_0x2964e3['currentReply']&&(_0x2964e3['currentReply']['done'](),_0x2964e3['currentReply']=void 0x0);};return{'insertTextReply':(_0x30b1f2,_0x12fb22)=>{_0x23205a(),_0x456409();const _0x309385=_0x2964e3['currentReply']=_0x2964e3['createReply']({'type':'text','interactionId':_0x2964e3['id'],'content':_0x30b1f2,'id':_0x12fb22||uid()});return _0x23205a(),_0x309385;},'insertCustomElement':async(_0x4ecd0d,_0x6682ff)=>(_0x23205a(),_0x456409(),_0x49fbec['addFeedItemCustomElement'](_0x4ecd0d,_0x6682ff||uid())),'setLoadingMessage':_0x18f36e=>{_0x49fbec['setLoadingMessage'](_0x18f36e);},'clearLoadingMessage':()=>{_0x49fbec['clearLoadingMessage']();}};}}const AI_VISUAL_SELECTION_MARKER_NAME='ai-selection';class AIEditing extends ContextPlugin{constructor(_0x55ecfa){super(_0x55ecfa),this['context']['config']['define']('ai.models.showModelSelector',!0x0);}['_outputDataProcessor'];['_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 _0x4a57ac=getEditorFromContext(this['context']),_0x4ee569=_0x4a57ac['plugins']['has']('RealTimeCollaborationClient')&&_0x4a57ac['plugins']['get']('RealTimeCollaborationClient')['sessionId'];this['_sessionId']=_0x4ee569||uid();}return this['_sessionId'];}async['getDocumentData'](){const _0x2f12ce=getEditorFromContext(this['context']),_0x368982=_0x2f12ce['model'],_0x2fd8ec=_0x2f12ce['data']['toView'](_0x368982['document']['getRoot'](),{'convertAiChatSelectionMarker':!0x0}),_0x26eb9b=new ViewDowncastWriter(_0x2f12ce['editing']['view']['document']);this['_setDataIdsOnChildren'](_0x2fd8ec,_0x26eb9b);let _0x174670=await this['_getDocumentDataStringFromView'](_0x2fd8ec);const _0x2b1aba=this['_getMarkersInDocumentOrder'](),_0x477800=[];for(const _0x1117b2 of _0x2b1aba){const _0x37af29='<'+_0x1117b2['name']+':start></'+_0x1117b2['name']+':start>',_0x13d459=_0x174670['indexOf'](_0x37af29);_0x174670=_0x174670['substring'](0x0,_0x13d459)+_0x174670['substring'](_0x13d459+_0x37af29['length']);const _0x2238be='<'+_0x1117b2['name']+':end></'+_0x1117b2['name']+':end>',_0x3dbb81=_0x174670['indexOf'](_0x2238be);_0x174670=_0x174670['substring'](0x0,_0x3dbb81)+_0x174670['substring'](_0x3dbb81+_0x2238be['length']),_0x477800['push']({'markerName':_0x1117b2['name'],'start':_0x13d459,'end':_0x3dbb81,'htmlFragment':_0x174670['substring'](_0x13d459,_0x3dbb81)});}return{'content':_0x174670,'version':_0x2f12ce['model']['document']['version'],'sessionId':this['sessionId'],'selections':_0x477800};}async['afterInit'](){this['context']instanceof Editor?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x19c351,_0x577d8e)=>{_0x577d8e['on']('ready',()=>{this['_integrateEditor'](_0x577d8e);});});}['_setOutputDataProcessor'](_0x3c0601){this['_outputDataProcessor']=_0x3c0601;}async['_getDocumentDataStringFromView'](_0xcd6122){let _0x10726e;const _0x1fc0db=getEditorFromContext(this['context']);if(this['_outputDataProcessor']){const _0x30ba94=_0x1fc0db['data']['processor']['domConverter']['viewToDom'](_0xcd6122),_0x1ba691=await this['_outputDataProcessor'](_0x30ba94);_0x10726e=_0x1fc0db['data']['processor']['htmlWriter']['getHtml'](_0x1ba691);}else _0x10726e=_0x1fc0db['data']['processor']['toData'](_0xcd6122);return _0x10726e;}['_integrateEditor'](_0x373d59){_0x373d59['conversion']['for']('editingDowncast')['markerToHighlight']({'model':AI_VISUAL_SELECTION_MARKER_NAME,'view':{'classes':['ck-fake-ai-selection','ck-ai-assistant-ui_theme'],'priority':0xc}}),_0x373d59['conversion']['for']('dataDowncast')['markerToElement']({'model':AI_VISUAL_SELECTION_MARKER_NAME,'view':(_0x98746b,{writer:_0x3d9c19,options:_0x5a238d})=>_0x5a238d['convertAiChatSelectionMarker']?_0x3d9c19['createUIElement'](_0x98746b['markerName']+':'+(_0x98746b['isOpening']?'start':'end')):null});}['showFakeVisualSelection'](_0x571f36,_0x12114b,_0x59d7d6=!0x1,_0x563630=!0x1){if(this['_displayedFakeSelectionLocked']&&!_0x563630)return!0x1;const _0x6c970=getEditorFromContext(this['context'])['model'];return _0x6c970['change'](_0x3e2527=>{this['_displayedFakeSelectionId']&&this['hideFakeVisualSelection'](this['_displayedFakeSelectionId']),this['_displayedFakeSelectionId']=_0x12114b,this['_displayedFakeSelectionLocked']=_0x59d7d6;let _0x184f51=0x0;for(let _0x412d9d of _0x571f36){const _0xd4abdb=AI_VISUAL_SELECTION_MARKER_NAME+':'+_0x184f51;if(_0x412d9d['start']['isAtEnd']){const _0x218672=_0x412d9d['start']['getLastMatchingPosition'](({item:_0x467820})=>!_0x6c970['schema']['isContent'](_0x467820),{'boundaries':_0x412d9d});_0x412d9d=_0x3e2527['createRange'](_0x218672,_0x412d9d['end']);}_0x3e2527['addMarker'](_0xd4abdb,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x412d9d}),_0x184f51++;}}),window['getSelection']()?.['removeAllRanges'](),!0x0;}['hideFakeVisualSelection'](_0x4620b5){if(this['_displayedFakeSelectionId']!=_0x4620b5)return!0x1;this['_displayedFakeSelectionId']=null,this['_displayedFakeSelectionLocked']=!0x1;const _0x2d1f29=getEditorFromContext(this['context']),_0x3ed002=_0x2d1f29['model']['markers']['getMarkersGroup'](AI_VISUAL_SELECTION_MARKER_NAME);return _0x2d1f29['model']['change'](_0x130ff3=>{for(const _0x2a1504 of _0x3ed002)_0x130ff3['removeMarker'](_0x2a1504);}),!0x0;}async['modelToDataWithIds'](_0x17e0c4){const _0x461918=getEditorFromContext(this['context']),_0x324591=_0x461918['data']['toView'](_0x17e0c4),_0x47110e=new ViewDowncastWriter(_0x461918['editing']['view']['document']);return this['_setDataIdsOnChildren'](_0x324591,_0x47110e),this['_getDocumentDataStringFromView'](_0x324591);}['_setDataIdsOnChildren'](_0x11d261,_0x83f0a5){let _0x22bc19=!0x1;const _0x4ddbd0=new Set();for(const _0x41802b of _0x11d261['getChildren']()){const _0x5bbb94=_0x41802b['is']('emptyElement')||_0x41802b['is']('containerElement');if(!_0x41802b['is']('element'))continue;(this['_setDataIdsOnChildren'](_0x41802b,_0x83f0a5)||_0x5bbb94)&&(_0x83f0a5['setAttribute']('data-id',this['_nextDataId'](_0x4ddbd0),_0x41802b),_0x22bc19=!0x0);}return _0x22bc19;}['_nextDataId'](_0x598201){let _0x3e5196;do{_0x3e5196='';for(let _0x1e4b17=0x0;_0x1e4b17<0x4;_0x1e4b17++)_0x3e5196+=String['fromCharCode'](0x61+Math['floor'](0x1a*Math['random']()));}while(_0x598201['has'](_0x3e5196));return _0x598201['add'](_0x3e5196),_0x3e5196;}['getSelectionText'](){const {model:_0x5a3527}=getEditorFromContext(this['context']),_0x2f761a=_0x5a3527['document']['selection'],_0x2c1af4=[];for(const _0x379f9b of _0x2f761a['getRanges']())for(const _0x4458 of _0x379f9b['getItems']())_0x4458['is']('$textProxy')?_0x2c1af4['push'](_0x4458['data']):_0x4458['is']('element')&&_0x2c1af4['length']>0x0&&'\x20'!==_0x2c1af4[_0x2c1af4['length']-0x1]&&_0x2c1af4['push']('\x20');return _0x2c1af4['length']?'\x22'+_0x2c1af4['join']('')['trim']()+'\x22':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL');}['_getMarkersInDocumentOrder'](){const _0x39aa5c=getEditorFromContext(this['context'])['model'];return Array['from'](_0x39aa5c['markers']['getMarkersGroup'](AI_VISUAL_SELECTION_MARKER_NAME))['sort']((_0x2a3593,_0x12e74e)=>_0x2a3593['getStart']()['isBefore'](_0x12e74e['getStart']())?-0x1:_0x2a3593['getStart']()['isAfter'](_0x12e74e['getStart']())?0x1:0x0);}}const AI_SUGGESTION_UI_EVENT_NAMES=['showChangeInText','insertSuggestion','applySuggestion','rejectSuggestion','mouseOverSuggestion','mouseLeaveSuggestion','toggleSuggestionDisplayMode','like','dislike'],AI_CHAT_UI_EVENT_NAMES=[...AI_SUGGESTION_UI_EVENT_NAMES,'startConversation','resizeTabs','sendUserMessage','abortPromptStream','addDocumentToContext','addFileToContext','addUrlToContext','executeCustomItemCallback','addResourceToContext','removeContextItem','loadSourceResources','toggleWebSearch','toggleReasoning','selectModel'];var DOCUMENT_FRAGMENT_NODE=0xb,range;function morphAttrs(_0x3cf67f,_0xc8cf2d){var _0x5e6c51,_0x161f32,_0x485b4e,_0x4d70f3,_0x4c9943=_0xc8cf2d['attributes'];if(_0xc8cf2d['nodeType']!==DOCUMENT_FRAGMENT_NODE&&_0x3cf67f['nodeType']!==DOCUMENT_FRAGMENT_NODE){for(var _0x54bfb3=_0x4c9943['length']-0x1;_0x54bfb3>=0x0;_0x54bfb3--)_0x161f32=(_0x5e6c51=_0x4c9943[_0x54bfb3])['name'],_0x485b4e=_0x5e6c51['namespaceURI'],_0x4d70f3=_0x5e6c51['value'],_0x485b4e?(_0x161f32=_0x5e6c51['localName']||_0x161f32,_0x3cf67f['getAttributeNS'](_0x485b4e,_0x161f32)!==_0x4d70f3&&('xmlns'===_0x5e6c51['prefix']&&(_0x161f32=_0x5e6c51['name']),_0x3cf67f['setAttributeNS'](_0x485b4e,_0x161f32,_0x4d70f3))):_0x3cf67f['getAttribute'](_0x161f32)!==_0x4d70f3&&_0x3cf67f['setAttribute'](_0x161f32,_0x4d70f3);for(var _0x44600c=_0x3cf67f['attributes'],_0x398816=_0x44600c['length']-0x1;_0x398816>=0x0;_0x398816--)_0x161f32=(_0x5e6c51=_0x44600c[_0x398816])['name'],(_0x485b4e=_0x5e6c51['namespaceURI'])?(_0x161f32=_0x5e6c51['localName']||_0x161f32,_0xc8cf2d['hasAttributeNS'](_0x485b4e,_0x161f32)||_0x3cf67f['removeAttributeNS'](_0x485b4e,_0x161f32)):_0xc8cf2d['hasAttribute'](_0x161f32)||_0x3cf67f['removeAttribute'](_0x161f32);}}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(_0x125f8f){var _0x4cd8b6=doc$1['createElement']('template');return _0x4cd8b6['innerHTML']=_0x125f8f,_0x4cd8b6['content']['childNodes'][0x0];}function createFragmentFromRange(_0x322259){return range||(range=doc$1['createRange']())['selectNode'](doc$1['body']),range['createContextualFragment'](_0x322259)['childNodes'][0x0];}function createFragmentFromWrap(_0x43838c){var _0x1e9498=doc$1['createElement']('body');return _0x1e9498['innerHTML']=_0x43838c,_0x1e9498['childNodes'][0x0];}function toElement(_0x231b1a){return _0x231b1a=_0x231b1a['trim'](),HAS_TEMPLATE_SUPPORT?createFragmentFromTemplate(_0x231b1a):HAS_RANGE_SUPPORT?createFragmentFromRange(_0x231b1a):createFragmentFromWrap(_0x231b1a);}function compareNodeNames(_0x14aa23,_0x35dc03){var _0x48a015,_0x21388a,_0x482dfe=_0x14aa23['nodeName'],_0x2cb8b0=_0x35dc03['nodeName'];return _0x482dfe===_0x2cb8b0||(_0x48a015=_0x482dfe['charCodeAt'](0x0),_0x21388a=_0x2cb8b0['charCodeAt'](0x0),_0x48a015<=0x5a&&_0x21388a>=0x61?_0x482dfe===_0x2cb8b0['toUpperCase']():_0x21388a<=0x5a&&_0x48a015>=0x61&&_0x2cb8b0===_0x482dfe['toUpperCase']());}function createElementNS(_0x447dc2,_0x1587a6){return _0x1587a6&&_0x1587a6!==NS_XHTML?doc$1['createElementNS'](_0x1587a6,_0x447dc2):doc$1['createElement'](_0x447dc2);}function moveChildren(_0x2552df,_0x4dcdd6){for(var _0x3876f1=_0x2552df['firstChild'];_0x3876f1;){var _0x186c70=_0x3876f1['nextSibling'];_0x4dcdd6['appendChild'](_0x3876f1),_0x3876f1=_0x186c70;}return _0x4dcdd6;}function syncBooleanAttrProp(_0x12d7aa,_0x4a49df,_0x148bfb){_0x12d7aa[_0x148bfb]!==_0x4a49df[_0x148bfb]&&(_0x12d7aa[_0x148bfb]=_0x4a49df[_0x148bfb],_0x12d7aa[_0x148bfb]?_0x12d7aa['setAttribute'](_0x148bfb,''):_0x12d7aa['removeAttribute'](_0x148bfb));}var specialElHandlers={'OPTION':function(_0x1dc7dc,_0x377630){var _0x4c4ead=_0x1dc7dc['parentNode'];if(_0x4c4ead){var _0x350fb3=_0x4c4ead['nodeName']['toUpperCase']();'OPTGROUP'===_0x350fb3&&(_0x350fb3=(_0x4c4ead=_0x4c4ead['parentNode'])&&_0x4c4ead['nodeName']['toUpperCase']()),'SELECT'!==_0x350fb3||_0x4c4ead['hasAttribute']('multiple')||(_0x1dc7dc['hasAttribute']('selected')&&!_0x377630['selected']&&(_0x1dc7dc['setAttribute']('selected','selected'),_0x1dc7dc['removeAttribute']('selected')),_0x4c4ead['selectedIndex']=-0x1);}syncBooleanAttrProp(_0x1dc7dc,_0x377630,'selected');},'INPUT':function(_0x1c1121,_0x1fea30){syncBooleanAttrProp(_0x1c1121,_0x1fea30,'checked'),syncBooleanAttrProp(_0x1c1121,_0x1fea30,'disabled'),_0x1c1121['value']!==_0x1fea30['value']&&(_0x1c1121['value']=_0x1fea30['value']),_0x1fea30['hasAttribute']('value')||_0x1c1121['removeAttribute']('value');},'TEXTAREA':function(_0x7dc418,_0x22fc69){var _0x29796e=_0x22fc69['value'];_0x7dc418['value']!==_0x29796e&&(_0x7dc418['value']=_0x29796e);var _0x59f98f=_0x7dc418['firstChild'];if(_0x59f98f){var _0x2f756b=_0x59f98f['nodeValue'];if(_0x2f756b==_0x29796e||!_0x29796e&&_0x2f756b==_0x7dc418['placeholder'])return;_0x59f98f['nodeValue']=_0x29796e;}},'SELECT':function(_0x564b61,_0x34955d){if(!_0x34955d['hasAttribute']('multiple')){for(var _0x52431b,_0x22bda9,_0xadcc8c=-0x1,_0x28c799=0x0,_0x4e94e7=_0x564b61['firstChild'];_0x4e94e7;)if('OPTGROUP'===(_0x22bda9=_0x4e94e7['nodeName']&&_0x4e94e7['nodeName']['toUpperCase']()))(_0x4e94e7=(_0x52431b=_0x4e94e7)['firstChild'])||(_0x4e94e7=_0x52431b['nextSibling'],_0x52431b=null);else{if('OPTION'===_0x22bda9){if(_0x4e94e7['hasAttribute']('selected')){_0xadcc8c=_0x28c799;break;}_0x28c799++;}!(_0x4e94e7=_0x4e94e7['nextSibling'])&&_0x52431b&&(_0x4e94e7=_0x52431b['nextSibling'],_0x52431b=null);}_0x564b61['selectedIndex']=_0xadcc8c;}}},ELEMENT_NODE=0x1,DOCUMENT_FRAGMENT_NODE$1=0xb,TEXT_NODE=0x3,COMMENT_NODE=0x8;function noop(){}function defaultGetNodeKey(_0x3b4e02){if(_0x3b4e02)return _0x3b4e02['getAttribute']&&_0x3b4e02['getAttribute']('id')||_0x3b4e02['id'];}function morphdomFactory(_0x1462d2){return function(_0x257777,_0x4916fe,_0x5af75f){if(_0x5af75f||(_0x5af75f={}),'string'==typeof _0x4916fe){if('#document'===_0x257777['nodeName']||'HTML'===_0x257777['nodeName']||'BODY'===_0x257777['nodeName']){var _0x27c7d0=_0x4916fe;(_0x4916fe=doc$1['createElement']('html'))['innerHTML']=_0x27c7d0;}else _0x4916fe=toElement(_0x4916fe);}else _0x4916fe['nodeType']===DOCUMENT_FRAGMENT_NODE$1&&(_0x4916fe=_0x4916fe['firstElementChild']);var _0x2b94a4=_0x5af75f['getNodeKey']||defaultGetNodeKey,_0x2fcf28=_0x5af75f['onBeforeNodeAdded']||noop,_0x4b0c29=_0x5af75f['onNodeAdded']||noop,_0xef5118=_0x5af75f['onBeforeElUpdated']||noop,_0x27036f=_0x5af75f['onElUpdated']||noop,_0x5c1b82=_0x5af75f['onBeforeNodeDiscarded']||noop,_0x2bbac2=_0x5af75f['onNodeDiscarded']||noop,_0x56c515=_0x5af75f['onBeforeElChildrenUpdated']||noop,_0x34d7cb=_0x5af75f['skipFromChildren']||noop,_0x535c03=_0x5af75f['addChild']||function(_0x38c0a7,_0x328eba){return _0x38c0a7['appendChild'](_0x328eba);},_0x1fe3e9=!0x0===_0x5af75f['childrenOnly'],_0x1f9465=Object['create'](null),_0x75e4d8=[];function _0x1d9356(_0x4140c8){_0x75e4d8['push'](_0x4140c8);}function _0x4c1886(_0x3d571d,_0x5abd1d){if(_0x3d571d['nodeType']===ELEMENT_NODE)for(var _0x170546=_0x3d571d['firstChild'];_0x170546;){var _0x9eb4c3=void 0x0;_0x5abd1d&&(_0x9eb4c3=_0x2b94a4(_0x170546))?_0x1d9356(_0x9eb4c3):(_0x2bbac2(_0x170546),_0x170546['firstChild']&&_0x4c1886(_0x170546,_0x5abd1d)),_0x170546=_0x170546['nextSibling'];}}function _0x1be205(_0x209227,_0x523603,_0x59e80e){!0x1!==_0x5c1b82(_0x209227)&&(_0x523603&&_0x523603['removeChild'](_0x209227),_0x2bbac2(_0x209227),_0x4c1886(_0x209227,_0x59e80e));}function _0x1d1137(_0x127821){if(_0x127821['nodeType']===ELEMENT_NODE||_0x127821['nodeType']===DOCUMENT_FRAGMENT_NODE$1)for(var _0x594325=_0x127821['firstChild'];_0x594325;){var _0x1854e0=_0x2b94a4(_0x594325);_0x1854e0&&(_0x1f9465[_0x1854e0]=_0x594325),_0x1d1137(_0x594325),_0x594325=_0x594325['nextSibling'];}}function _0x397244(_0x1efef5){_0x4b0c29(_0x1efef5);for(var _0xb3bc7=_0x1efef5['firstChild'];_0xb3bc7;){var _0x1bb430=_0xb3bc7['nextSibling'],_0x4557ef=_0x2b94a4(_0xb3bc7);if(_0x4557ef){var _0x2e929b=_0x1f9465[_0x4557ef];_0x2e929b&&compareNodeNames(_0xb3bc7,_0x2e929b)?(_0xb3bc7['parentNode']['replaceChild'](_0x2e929b,_0xb3bc7),_0x36dc8d(_0x2e929b,_0xb3bc7)):_0x397244(_0xb3bc7);}else _0x397244(_0xb3bc7);_0xb3bc7=_0x1bb430;}}function _0x36dc8d(_0x3e40e3,_0x3937b6,_0x5b513f){var _0x4e79c4=_0x2b94a4(_0x3937b6);if(_0x4e79c4&&delete _0x1f9465[_0x4e79c4],!_0x5b513f){var _0x1a155e=_0xef5118(_0x3e40e3,_0x3937b6);if(!0x1===_0x1a155e)return;if(_0x1a155e instanceof HTMLElement&&_0x1d1137(_0x3e40e3=_0x1a155e),_0x1462d2(_0x3e40e3,_0x3937b6),_0x27036f(_0x3e40e3),!0x1===_0x56c515(_0x3e40e3,_0x3937b6))return;}'TEXTAREA'!==_0x3e40e3['nodeName']?function(_0x4d7c48,_0x394a3c){var _0x3175a2,_0x486e16,_0x4a7a7e,_0x1571aa,_0x4a7702,_0x74e55e=_0x34d7cb(_0x4d7c48,_0x394a3c),_0xd3db8a=_0x394a3c['firstChild'],_0x4e6976=_0x4d7c48['firstChild'];t:for(;_0xd3db8a;){for(_0x1571aa=_0xd3db8a['nextSibling'],_0x3175a2=_0x2b94a4(_0xd3db8a);!_0x74e55e&&_0x4e6976;){if(_0x4a7a7e=_0x4e6976['nextSibling'],_0xd3db8a['isSameNode']&&_0xd3db8a['isSameNode'](_0x4e6976)){_0xd3db8a=_0x1571aa,_0x4e6976=_0x4a7a7e;continue t;}_0x486e16=_0x2b94a4(_0x4e6976);var _0x3ab6ce=_0x4e6976['nodeType'],_0x19b3ed=void 0x0;if(_0x3ab6ce===_0xd3db8a['nodeType']&&(_0x3ab6ce===ELEMENT_NODE?(_0x3175a2?_0x3175a2!==_0x486e16&&((_0x4a7702=_0x1f9465[_0x3175a2])?_0x4a7a7e===_0x4a7702?_0x19b3ed=!0x1:(_0x4d7c48['insertBefore'](_0x4a7702,_0x4e6976),_0x486e16?_0x1d9356(_0x486e16):_0x1be205(_0x4e6976,_0x4d7c48,!0x0),_0x486e16=_0x2b94a4(_0x4e6976=_0x4a7702)):_0x19b3ed=!0x1):_0x486e16&&(_0x19b3ed=!0x1),(_0x19b3ed=!0x1!==_0x19b3ed&&compareNodeNames(_0x4e6976,_0xd3db8a))&&_0x36dc8d(_0x4e6976,_0xd3db8a)):_0x3ab6ce!==TEXT_NODE&&_0x3ab6ce!=COMMENT_NODE||(_0x19b3ed=!0x0,_0x4e6976['nodeValue']!==_0xd3db8a['nodeValue']&&(_0x4e6976['nodeValue']=_0xd3db8a['nodeValue']))),_0x19b3ed){_0xd3db8a=_0x1571aa,_0x4e6976=_0x4a7a7e;continue t;}_0x486e16?_0x1d9356(_0x486e16):_0x1be205(_0x4e6976,_0x4d7c48,!0x0),_0x4e6976=_0x4a7a7e;}if(_0x3175a2&&(_0x4a7702=_0x1f9465[_0x3175a2])&&compareNodeNames(_0x4a7702,_0xd3db8a))_0x74e55e||_0x535c03(_0x4d7c48,_0x4a7702),_0x36dc8d(_0x4a7702,_0xd3db8a);else{var _0x5d4948=_0x2fcf28(_0xd3db8a);!0x1!==_0x5d4948&&(_0x5d4948&&(_0xd3db8a=_0x5d4948),_0xd3db8a['actualize']&&(_0xd3db8a=_0xd3db8a['actualize'](_0x4d7c48['ownerDocument']||doc$1)),_0x535c03(_0x4d7c48,_0xd3db8a),_0x397244(_0xd3db8a));}_0xd3db8a=_0x1571aa,_0x4e6976=_0x4a7a7e;}!function(_0x53665a,_0x3ab207,_0xcd2b1a){for(;_0x3ab207;){var _0x5e01bc=_0x3ab207['nextSibling'];(_0xcd2b1a=_0x2b94a4(_0x3ab207))?_0x1d9356(_0xcd2b1a):_0x1be205(_0x3ab207,_0x53665a,!0x0),_0x3ab207=_0x5e01bc;}}(_0x4d7c48,_0x4e6976,_0x486e16);var _0x122dad=specialElHandlers[_0x4d7c48['nodeName']];_0x122dad&&_0x122dad(_0x4d7c48,_0x394a3c);}(_0x3e40e3,_0x3937b6):specialElHandlers['TEXTAREA'](_0x3e40e3,_0x3937b6);}_0x1d1137(_0x257777);var _0x1d3018=_0x257777,_0x502c2f=_0x1d3018['nodeType'],_0x3259fd=_0x4916fe['nodeType'];if(!_0x1fe3e9){if(_0x502c2f===ELEMENT_NODE)_0x3259fd===ELEMENT_NODE?compareNodeNames(_0x257777,_0x4916fe)||(_0x2bbac2(_0x257777),_0x1d3018=moveChildren(_0x257777,createElementNS(_0x4916fe['nodeName'],_0x4916fe['namespaceURI']))):_0x1d3018=_0x4916fe;else{if(_0x502c2f===TEXT_NODE||_0x502c2f===COMMENT_NODE){if(_0x3259fd===_0x502c2f)return _0x1d3018['nodeValue']!==_0x4916fe['nodeValue']&&(_0x1d3018['nodeValue']=_0x4916fe['nodeValue']),_0x1d3018;_0x1d3018=_0x4916fe;}}}if(_0x1d3018===_0x4916fe)_0x2bbac2(_0x257777);else{if(_0x4916fe['isSameNode']&&_0x4916fe['isSameNode'](_0x1d3018))return;if(_0x36dc8d(_0x1d3018,_0x4916fe,_0x1fe3e9),_0x75e4d8)for(var _0x1f15e1=0x0,_0x4f6602=_0x75e4d8['length'];_0x1f15e1<_0x4f6602;_0x1f15e1++){var _0x95f18f=_0x1f9465[_0x75e4d8[_0x1f15e1]];_0x95f18f&&_0x1be205(_0x95f18f,_0x95f18f['parentNode'],!0x1);}}return!_0x1fe3e9&&_0x1d3018!==_0x257777&&_0x257777['parentNode']&&(_0x1d3018['actualize']&&(_0x1d3018=_0x1d3018['actualize'](_0x257777['ownerDocument']||doc$1)),_0x257777['parentNode']['replaceChild'](_0x1d3018,_0x257777)),_0x1d3018;};}var morphdom=morphdomFactory(morphAttrs);class HTMLStreamer{['options'];['isStreaming']=!0x1;['document']=null;['nodesList']=[];['currentIndex']=0x0;['timeoutAbortController']=null;['lastUpdateTime']=0x0;constructor(_0x255196){this['options']={'delay':_0x255196['delay']??0x14,'textNodeStyle':_0x255196['textNodeStyle'],'onStreamUpdate':_0x255196['onStreamUpdate']||(()=>{})};}async['stream']({document:_0x24fe0f,targetElement:_0x1c5b48,abortSignal:_0x5d7323}){this['isStreaming']&&this['stop'](),_0x5d7323?.['addEventListener']('abort',this['stop']['bind'](this)),this['document']=cloneNode(_0x24fe0f,!0x0),this['nodesList']=this['getParsedDocumentNodeList'](),this['isStreaming']=!0x0,this['currentIndex']>this['nodesList']['length']&&(this['currentIndex']=this['nodesList']['length']);for(let _0x1ada41=0x0;_0x1ada41<this['currentIndex'];_0x1ada41++)this['nodesList'][_0x1ada41]['shouldBeStreamed']=!0x0;do{const _0x29a322=Date['now'](),_0x51781a=this['nodesList'][this['currentIndex']],_0x1906bd=_0x29a322-this['lastUpdateTime'];if(_0x51781a){_0x51781a['shouldBeStreamed']=!0x0;let _0x43c606=_0x51781a['parent'];for(;_0x43c606;)_0x43c606['shouldBeStreamed']=!0x0,_0x43c606=_0x43c606['parent'];}if(_0x1906bd<this['options']['delay'])try{const {promise:_0x19e68a,abortController:_0x3fa611}=createAbortableTimeout(this['options']['delay']-_0x1906bd);this['timeoutAbortController']=_0x3fa611,await _0x19e68a;}catch(_0x3f4edd){return;}morphdom(_0x1c5b48,'<'+_0x1c5b48['tagName']+'>'+this['renderNode'](this['document'])+'</'+_0x1c5b48['tagName']+'>',{'childrenOnly':!0x0}),this['options']['onStreamUpdate']&&this['options']['onStreamUpdate'](),this['currentIndex']++,this['lastUpdateTime']=Date['now']();}while(this['currentIndex']<this['nodesList']['length']);this['currentIndex']=this['nodesList']['length'],this['isStreaming']=!0x1;}['reset'](){this['isStreaming']=!0x1,this['document']=null,this['nodesList']=[],this['currentIndex']=0x0,this['timeoutAbortController']=null;}['cleanUpAnimations']({targetElement:_0x456e38}){Array['from'](_0x456e38['querySelectorAll']('span[data-ck-html-streamer-word-chunk]'))['reverse']()['forEach'](_0x346830=>{_0x346830['replaceWith'](_0x346830['childNodes'][0x0]);});}['stop'](){this['isStreaming']=!0x1,this['timeoutAbortController']&&(this['timeoutAbortController']['abort'](),this['timeoutAbortController']=null);}['renderNode'](_0x22026f){let _0x5bedd5='';if(isParsedDocumentNode(_0x22026f)){for(const _0x4e1b5b of _0x22026f['children'])_0x5bedd5+=this['renderNode'](_0x4e1b5b);}else{if(isParsedElementNode(_0x22026f)){if(!_0x22026f['shouldBeStreamed'])return'';const _0xe2f1db=_0x22026f,_0x1b62bb=Object['entries'](_0xe2f1db['attribs'])['map'](([_0x38fa85,_0xe7eeb3])=>_0x38fa85+'=\x22'+_0xe7eeb3+'\x22')['join']('\x20');_0x5bedd5+='<'+_0xe2f1db['tagName']+(_0x1b62bb?'\x20'+_0x1b62bb:'')+'>';for(const _0x41d0eb of getChildren$1(_0xe2f1db))_0x5bedd5+=this['renderNode'](_0x41d0eb);_0x5bedd5+='</'+_0xe2f1db['tagName']+'>';}else{if(!isParsedTextNode(_0x22026f))return'';if(!_0x22026f['shouldBeStreamed'])return'';canBecomeWordChunkSpan(_0x22026f)?_0x5bedd5+=render(new Element$3('span',{'data-ck-html-streamer-word-chunk':'','style':this['options']['textNodeStyle']},[_0x22026f])):_0x5bedd5+=render(_0x22026f);}}return _0x5bedd5;}['getParsedDocumentNodeList'](){const _0x17db54=[];return traverseParsedDocument(this['document'],_0x3e3da5=>{if(isParsedTextNode(_0x3e3da5)){const _0x42aa4d=this['splitTextNodeIntoWordNodes'](_0x3e3da5);_0x42aa4d['length']&&_0x17db54['push'](..._0x42aa4d);}_0x3e3da5['isWordSplitSource']||_0x3e3da5['isWordSplitResult']||_0x17db54['push'](_0x3e3da5);}),_0x17db54;}['splitTextNodeIntoWordNodes'](_0x79bf0){if(_0x79bf0['isWordSplitSource']||_0x79bf0['isWordSplitResult'])return[];const _0x382d05=textContent(_0x79bf0)['match'](/(?:\s*\S+\s*)/g),_0x21b59f=[];if(_0x382d05&&_0x382d05['length']>0x1){for(const _0x56523a of _0x382d05){const _0x26d184=new Text$1(_0x56523a);_0x26d184['isWordSplitResult']=!0x0,prepend(_0x79bf0,_0x26d184),_0x21b59f['push'](_0x26d184);}_0x79bf0['isWordSplitSource']=!0x0,removeElement(_0x79bf0);}return _0x21b59f;}}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(_0x15f2b5,_0x58f9a1){const _0x15bd1c=_0x5cd18e=>{if(_0x58f9a1(_0x5cd18e),_0x5cd18e instanceof NodeWithChildren)for(let _0x44a149=0x0;_0x44a149<_0x5cd18e['children']['length'];_0x44a149++){const _0x263670=_0x5cd18e['children'][_0x44a149];_0x15bd1c(_0x263670);}};for(let _0x488b07=0x0;_0x488b07<_0x15f2b5['children']['length'];_0x488b07++)_0x15bd1c(_0x15f2b5['children'][_0x488b07]);}function canBecomeWordChunkSpan(_0x764e11){return!(!_0x764e11['parent']||!isParsedElementNode(_0x764e11['parent']))&&(!!ELEMENTS_THAT_ALLOW_SPANS['includes'](_0x764e11['parent']['tagName'])&&!textContent(_0x764e11)['match'](/^\s*[<>]\s*$/));}function isParsedTextNode(_0x117055){return isText$1(_0x117055);}function isParsedElementNode(_0x1cc344){return isTag(_0x1cc344);}function isParsedDocumentNode(_0x53ea15){return isDocument(_0x53ea15);}function createAbortableTimeout(_0x5a7937){const _0x410c8b=new AbortController();return{'promise':new Promise((_0x5361f9,_0x35daf4)=>{const _0x51afb5=setTimeout(_0x5361f9,_0x5a7937);_0x410c8b['signal']['addEventListener']('abort',()=>{clearTimeout(_0x51afb5),_0x35daf4();});}),'abortController':_0x410c8b};}class AIChatFeedItemView extends View{['options'];['content']='';['htmlStreamer'];['children'];constructor(_0x5e178b){super();const _0xb7c195=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']=_0x5e178b,this['children']=this['createCollection'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__item',_0xb7c195['if']('isDone','ck-ai-chat__feed__item_done'),_0xb7c195['if']('isVisible','ck-hidden',_0x43602b=>!_0x43602b),'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'](_0x1731a=>{_0x1731a['removeAttribute']('data-id');}),this['isDone']=!0x0;}async['streamIntoElement'](_0xacd491,_0x5c0111,_0x217857){await this['htmlStreamer']['stream']({'document':_0xacd491,'targetElement':_0x5c0111,'abortSignal':_0x217857});}}class AISuggestionHeaderView extends View{['showChangesToggleView'];constructor(_0x3cade3,_0x398774){super(_0x3cade3),this['set']('isShowChangesToggleVisible',!0x0),this['showChangesToggleView']=new ShowChangesToggleView(_0x3cade3),this['showChangesToggleView']['set']({'class':'ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button','label':getTranslation$i(_0x3cade3,'AI_SUGGESTION_BUTTON_SHOW_CHANGES'),'withText':!0x0}),this['showChangesToggleView']['isOn']=_0x398774['showDiff'],this['showChangesToggleView']['bind']('isVisible')['to'](this,'isShowChangesToggleVisible'),this['showChangesToggleView']['bind']('icon')['to'](this['showChangesToggleView'],'isOn',_0x1d94ac=>_0x1d94ac?IconShowChangesOn:IconShowChangesOff),this['showChangesToggleView']['on']('execute',()=>{this['showChangesToggleView']['isOn']=!this['showChangesToggleView']['isOn'],this['fire']('toggleShowChanges',{'isOn':this['showChangesToggleView']['isOn']});});const _0xe66aba=new IconView();_0xe66aba['content']=IconDocument,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__header',!0x1===_0x398774['showHeader']?'ck-hidden':null]['filter'](Boolean)},'children':[_0xe66aba,{'tag':'span','children':[getTranslation$i(_0x3cade3,'AI_SUGGESTION_HEADER_TITLE')]},this['showChangesToggleView']]});}}class ShowChangesToggleView extends ButtonView{['render'](){super['render'](),this['children']['remove'](this['iconView']),this['children']['add'](this['iconView']);}}const ICON_STATE_MAP={'accepted':IconBoxWithCheck,'rejected':IconBoxWithCross,'outdated':IconBoxWithCross};class AISuggestionContentPartStateView extends View{['stateIconView'];constructor(_0x1c65f3){super(_0x1c65f3);const _0x5d00b1=this['bindTemplate'];this['set']('state','accepted'),this['set']('isVisible',!0x0),this['stateIconView']=new StateIconView(),this['stateIconView']['bind']('state')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__content-part-state',_0x5d00b1['to']('state',_0x1841e9=>'ck-ai-suggestion__content-part-state_'+_0x1841e9),_0x5d00b1['if']('isVisible','ck-hidden',_0x4bd792=>!_0x4bd792)]},'children':[{'tag':'span','attributes':{'class':['ck-ai-suggestion__content-part-state__label']},'children':[{'text':_0x5d00b1['to']('state',_0x5f160b=>{switch(_0x5f160b){case'accepted':return getTranslation$i(_0x1c65f3,'AI_SUGGESTION_CONTENT_PART_STATE_ACCEPTED');case'rejected':return getTranslation$i(_0x1c65f3,'AI_SUGGESTION_CONTENT_PART_STATE_REJECTED');case'outdated':return getTranslation$i(_0x1c65f3,'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED');}})}]},this['stateIconView']]});}['setState'](_0x5cfaff){this['state']=_0x5cfaff;}}class StateIconView extends IconView{constructor(){super(),this['set']('state','accepted'),this['content']=ICON_STATE_MAP[this['state']],this['on']('change:state',()=>{this['content']=ICON_STATE_MAP[this['state']];});}}class AISuggestionContentPartToolbarView extends ToolbarView{['_applyButton'];['_suggestButton'];constructor(_0x2daeb5,_0x4ec8c4,_0x3a9937){super(_0x2daeb5);const _0x4d195b=Boolean(_0x3a9937);this['set']('isEnabled',!_0x4d195b),this['set']('isVisible',!0x0),this['class']='ck-ai-suggestion-content-part-toolbar';const _0x25f5e9=[];if(_0x4d195b){const _0xdde842=new ButtonView(_0x2daeb5);_0xdde842['set']({'label':getTranslation$i(_0x2daeb5,'AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':IconInfo}),_0x25f5e9['push'](_0xdde842);}else{_0x4ec8c4['includes']('applySuggestion')&&(this['_applyButton']=new ButtonView(_0x2daeb5),this['_applyButton']['set']({'label':getTranslation$i(_0x2daeb5,'AI_SUGGESTION_CONTENT_PART_APPLY'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':IconBoxWithCheck}),this['_applyButton']['bind']('isEnabled')['to'](this),this['_applyButton']['on']('execute',()=>{this['fire']('applySuggestion');}),_0x25f5e9['push'](this['_applyButton'])),_0x4ec8c4['includes']('insertSuggestion')&&(this['_suggestButton']=new ButtonView(_0x2daeb5),this['_suggestButton']['set']({'label':getTranslation$i(_0x2daeb5,'AI_SUGGESTION_CONTENT_PART_ADD_SUGGESTION'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':IconBoxWithMarker}),this['_suggestButton']['bind']('isEnabled')['to'](this),this['_suggestButton']['on']('execute',()=>{this['fire']('insertSuggestion');}),_0x25f5e9['push'](this['_suggestButton']));const _0x5486a8=new ButtonView(_0x2daeb5);_0x5486a8['set']({'label':getTranslation$i(_0x2daeb5,'AI_SUGGESTION_CONTENT_PART_REJECT'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':IconBoxWithCross}),_0x5486a8['bind']('isEnabled')['to'](this),_0x5486a8['on']('execute',()=>{this['fire']('rejectSuggestion');}),_0x25f5e9['push'](_0x5486a8);}this['items']['addMany'](_0x25f5e9);const _0xd6c9ec=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':[_0xd6c9ec['if']('isVisible','ck-hidden',_0x434975=>!_0x434975)]}});}['setButtonsVisibility']({showApplyButton:_0x1cda1a,showSuggestButton:_0x4806c6}){this['_applyButton']&&(this['_applyButton']['isVisible']=_0x1cda1a),this['_suggestButton']&&(this['_suggestButton']['isVisible']=_0x4806c6);}}class AISuggestionContentPartHeaderView extends View{['toolbarView'];['stateView'];['titleLabelView'];['children'];constructor(_0x26932b,{part:_0xa4b59b,uiIndex:_0x3392f,availableActions:_0x163d0c,areActionsDisabled:_0x11cbe0}){super(_0x26932b),this['set']('isEnabled',!0x0),this['set']('state','pending'),this['toolbarView']=new AISuggestionContentPartToolbarView(_0x26932b,_0x163d0c,_0x11cbe0),this['toolbarView']['on']('rejectSuggestion',()=>{this['fire']('rejectSuggestion',{'index':_0xa4b59b['index']});}),this['toolbarView']['on']('insertSuggestion',()=>{this['fire']('insertSuggestion',{'index':_0xa4b59b['index']});}),this['toolbarView']['on']('applySuggestion',()=>{this['fire']('applySuggestion',{'index':_0xa4b59b['index']});}),this['toolbarView']['bind']('isEnabled')['to'](this),this['stateView']=new AISuggestionContentPartStateView(_0x26932b),this['titleLabelView']=new AISuggestionBodyContentPartTitleLabelView(_0x26932b,_0x3392f),this['children']=this['createCollection'](),this['children']['addMany']([this['titleLabelView'],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',(_0x16616d,_0xeab1bf,_0x1ed7bf,_0x3c5c36)=>{'pending'===_0x3c5c36?this['children']['remove'](this['toolbarView']):this['children']['remove'](this['stateView']),'pending'===_0x1ed7bf?this['children']['add'](this['toolbarView']):(this['stateView']['setState'](_0x1ed7bf),this['children']['add'](this['stateView']));});}}class AISuggestionBodyContentPartTitleLabelView extends View{constructor(_0xf1a2db,_0x4de304){super(_0xf1a2db),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__body__content-part__title__label']},'children':[getTranslation$i(_0xf1a2db,'AI_SUGGESTION_CONTENT_PART_TITLE',_0x4de304['toString']())]});}}class AISuggestionStreamableContentView extends View{['htmlStreamer'];constructor(_0x52356d){super(_0x52356d),this['htmlStreamer']=new HTMLStreamer({'textNodeStyle':'animation:\x20ck-html-streamer-fade-in\x20.5s','delay':0x14}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-content','ck-reset_all-excluded','ck-ai-suggestion-streamable-content']}});}async['update']({part:_0xac32ae,renderingStrategy:_0x19abdd,abortSignal:_0x2f1320}){'streaming'===_0x19abdd?await this['htmlStreamer']['stream']({'document':_0xac32ae['content'],'targetElement':this['element'],'abortSignal':_0x2f1320}):this['element']['innerHTML']=serialize(_0xac32ae['content']);}['clear'](){this['htmlStreamer']['reset'](),this['element']['innerHTML']='';}}class AISuggestionBodyViewContentPartView extends View{['_children'];['_headerView'];['_streamableContentView'];constructor(_0x912e24,{part:_0x36d00d,uiIndex:_0x41e2c0,areActionsDisabled:_0x1f1388,availableActions:_0xff23f8}){super(_0x912e24);const _0x314be9=this['bindTemplate'];this['set']('state','pending'),this['set']('isDone',!0x1),this['set']('isVisible',!0x1),this['set']('isActive',!0x1),this['set']('isEnabled',!0x1);const _0x5bd222=()=>{this['isEnabled']=this['isDone']&&'pending'==this['state']&&!_0x1f1388;};this['on']('change:state',_0x5bd222),this['on']('change:isDone',_0x5bd222),_0x5bd222(),this['_children']=this['createCollection'](),this['_headerView']=new AISuggestionContentPartHeaderView(_0x912e24,{'part':_0x36d00d,'uiIndex':_0x41e2c0,'availableActions':_0xff23f8,'areActionsDisabled':_0x1f1388}),this['_headerView']['bind']('isEnabled','state')['to'](this),this['_headerView']['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),this['_streamableContentView']=new AISuggestionStreamableContentView(_0x912e24),this['_children']['addMany']([this['_headerView'],this['_streamableContentView']]),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__body__content-part',_0x314be9['to']('state',_0x279b52=>'ck-ai-suggestion__body__content-part_'+_0x279b52),_0x314be9['if']('isEnabled','ck-ai-suggestion__body__content-part_enabled'),_0x314be9['if']('isActive','ck-ai-suggestion__body__content-part_active'),_0x314be9['if']('isVisible','ck-hidden',_0x183134=>!_0x183134)]},'children':this['_children'],'on':{'mouseenter':_0x314be9['to'](()=>{this['isEnabled']&&this['fire']('mouseOverSuggestion',{'index':_0x36d00d['index']});}),'mouseleave':_0x314be9['to'](()=>{this['isEnabled']&&this['fire']('mouseLeaveSuggestion',{'index':_0x36d00d['index']});}),'click':_0x314be9['to'](_0xb4eecc=>{const _0x33d30e=_0xb4eecc['target'];this['isEnabled']&&!this['_headerView']['toolbarView']['element']['contains'](_0x33d30e)&&this['fire']('showChangeInText',{'index':_0x36d00d['index']});})}});}async['updateContent']({part:_0x5304de,renderingStrategy:_0x23d61e,showUnchangedParts:_0x532c99=!0x1,abortSignal:_0x192ca4}){this['partDefinition']=_0x5304de,this['isVisible']=this['partDefinition']['hasChanges']||_0x532c99,this['isVisible']&&await this['_streamableContentView']['update']({'part':_0x5304de,'renderingStrategy':_0x23d61e,'abortSignal':_0x192ca4});}['markAsDone'](){this['isDone']=!0x0;}}class PromiseQueue extends EmitterMixin(){['queue']=[];['isProcessing']=!0x1;['_abortController'];async['enqueue'](_0x5d99df){const _0x1ec15=this['createTask'](_0x5d99df);return this['queue']['push'](_0x1ec15),this['_processQueue'](),_0x1ec15['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(_0x275b08=>{this['once']('_queueEmpty',()=>{_0x275b08();});}):Promise['resolve']();}async['_processQueue'](){if(!this['isProcessing']){this['_abortController']=new AbortController(),this['isProcessing']=!0x0;try{for(;this['queue']['length']&&this['isProcessing'];){const _0x2c4157=this['queue']['shift']();try{await _0x2c4157['callback'](this['_abortController']['signal']),_0x2c4157['resolve']();}catch(_0x444f85){_0x2c4157['reject'](_0x444f85);}}}finally{this['isProcessing']=!0x1,this['_abortController']=void 0x0;}this['fire']('_queueEmpty');}}['createTask'](_0x1ecb06){let _0xd87b42,_0x615b3;const _0x1ac663=new Promise((_0x26cc6a,_0x46f327)=>{_0xd87b42=_0x26cc6a,_0x615b3=_0x46f327;});return{'callback':_0x1ecb06,'resolve':_0xd87b42,'reject':_0x615b3,'completePromise':_0x1ac663};}}class AIChatFeedErrorItemView extends AIChatFeedItemView{constructor(_0x3e01ef){super(_0x3e01ef),this['extendTemplate']({'attributes':{'class':['ck-ai-notification','warning'===_0x3e01ef['level']?'ck-ai-notification_warning':'ck-ai-notification_error']}});}['render'](){super['render'](),this['setContent'](this['options']['initialContent']),this['markAsDone']();}['setContent'](_0x1af916){this['element']['innerHTML']=_0x1af916;}}const AI_REPLY_ACTIONS=['applySuggestion','insertSuggestion'];class AIChatFeedSuggestionItemActionsView extends View{['_applyChangesButton'];['_insertSuggestionsButton'];['children'];constructor(_0x41841d,_0x20b961=[...AI_REPLY_ACTIONS],_0xa17dfc){super(_0x41841d);const _0x3f1c38=this['bindTemplate'],_0x441f40=Boolean(_0xa17dfc);if(this['set']('isEnabled',!_0x441f40),this['set']('isVisible',!0x1),this['set']('isTrackChangesOn',!0x1),this['children']=this['createCollection'](),_0x441f40){const _0x360da8=new ButtonView(_0x41841d);_0x360da8['set']({'label':getTranslation$i(_0x41841d,'AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':IconInfo});const _0x1f45ad=new View(_0x41841d);_0x1f45ad['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-chat__feed__suggestion__actions__info'},'children':[{'tag':'p','children':[getTranslation$i(_0x41841d,'AI_SUGGESTION_DISABLED_FEED_MESSAGE'),_0x360da8]}]}),this['children']['add'](_0x1f45ad);}else this['_applyChangesButton']=new ButtonView(_0x41841d),this['_applyChangesButton']['set']({'label':getTranslation$i(_0x41841d,'AI_CHAT_SUGGESTION_ACTION_APPLY_ALL'),'withText':!0x0,'type':'button','isVisible':_0x20b961['includes']('applySuggestion'),'class':'ck-ai-button-primary'}),this['_insertSuggestionsButton']=new ButtonView(_0x41841d),this['_insertSuggestionsButton']['set']({'label':getTranslation$i(_0x41841d,'AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL'),'withText':!0x0,'type':'button','isVisible':_0x20b961['includes']('insertSuggestion'),'class':'ck-ai-button-secondary'}),this['_insertSuggestionsButton']['on']('execute',()=>{this['fire']('insertSuggestion');}),this['_applyChangesButton']['on']('execute',()=>{this['fire']('applySuggestion');}),[this['_applyChangesButton'],this['_insertSuggestionsButton']]['forEach'](_0x36478a=>{_0x36478a['bind']('isEnabled')['to'](this);}),this['children']['addMany']([this['_applyChangesButton'],this['_insertSuggestionsButton']]);this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__ai-suggestion__actions',_0x3f1c38['if']('isVisible','ck-hidden',_0x40305f=>!_0x40305f)]},'children':this['children']}),this['on']('change:isTrackChangesOn',()=>{this['_applyChangesButton']&&(this['_applyChangesButton']['isVisible']=!this['isTrackChangesOn']);});}['updateVisibility'](_0x3f2ffb){this['isVisible']=_0x3f2ffb;}['_switchButtonLabelsPlurality'](_0x141cc5){this['_applyChangesButton']&&this['_insertSuggestionsButton']&&(_0x141cc5?(this['_applyChangesButton']['label']=getTranslation$i(this['locale'],'AI_CHAT_SUGGESTION_ACTION_APPLY_ALL'),this['_insertSuggestionsButton']['label']=getTranslation$i(this['locale'],'AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL')):(this['_applyChangesButton']['label']=getTranslation$i(this['locale'],'AI_CHAT_SUGGESTION_ACTION_APPLY'),this['_insertSuggestionsButton']['label']=getTranslation$i(this['locale'],'AI_CHAT_SUGGESTION_ACTION_SUGGEST')));}}const TOOLTIP_TITLE_MAX_LENGTH=0x190;class AIWebSourcesView extends View{['children'];['balloonPanelView'];['bodyCollection'];constructor(_0x104b19,_0x4fcb14){super(_0x104b19),this['bodyCollection']=_0x4fcb14,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',_0x441af3=>!_0x441af3)]},'children':this['children']});const _0x1ed533=new View(this['locale']),_0x372b11=new IconView();_0x372b11['content']=IconWeb,_0x1ed533['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-web-sources__header']},'children':[_0x372b11,{'tag':'span','children':[{'text':getTranslation$i(this['locale'],'AI_CHAT_SOURCES_HEADER')}]}]}),this['children']['add'](_0x1ed533),this['_setupBalloonPanel'](_0x104b19);}['addSource'](_0x5606dc){this['children']['add'](new AIWebSourceView(this['locale'],_0x5606dc,this['balloonPanelView']));}['_setupBalloonPanel'](_0xf8612f){this['balloonPanelView']=new BalloonPanelView(_0xf8612f),this['balloonPanelView']['extendTemplate']({'attributes':{'class':['ck-ai-web-source__tooltip-balloon']}}),this['bodyCollection']['add'](this['balloonPanelView']);}}class AIWebSourceView extends ButtonView{['balloonPanelView'];['source'];constructor(_0x117661,_0xf4c962,_0xefbf2b){super(_0x117661),this['source']=_0xf4c962,this['balloonPanelView']=_0xefbf2b,this['set']({'label':_0xf4c962['title'],'class':['ck\x20ck-ai-web-source'],'withText':!0x0});const _0x229296=this['bindTemplate'];if(this['extendTemplate']({'on':{'click':_0x229296['to'](()=>{window['open'](_0xf4c962['url'],'_blank');}),'mouseenter':_0x229296['to'](()=>{this['_showTooltip']();}),'mouseleave':_0x229296['to'](()=>{this['_hideTooltip']();})}}),_0xf4c962['favicon']){const _0x38ace1=new View(_0x117661);_0x38ace1['setTemplate']({'tag':'img','attributes':{'src':_0xf4c962['favicon']||IconWeb,'alt':_0xf4c962['title'],'class':['ck-ai-web-source__image']}}),this['children']['add'](_0x38ace1);}else this['set']('icon',IconWeb);}['_createTooltipContentView'](_0x159798,_0x276b67){const _0x5ad6f9=new View(_0x159798),_0x2480cc=[];let _0x36a700;_0x276b67?.['favicon']?(_0x36a700=new View(_0x159798),_0x36a700['setTemplate']({'tag':'img','attributes':{'src':_0x276b67['favicon'],'alt':_0x276b67['title'],'class':['ck-ai-web-source__tooltip-image']}})):(_0x36a700=new IconView(),_0x36a700['content']=IconWeb,_0x36a700['extendTemplate']({'attributes':{'alt':_0x276b67['title'],'class':['ck-ai-web-source__tooltip-image']}})),_0x2480cc['push'](_0x36a700);const _0x17ba54=new View(_0x159798);_0x17ba54['setTemplate']({'tag':'a','attributes':{'class':['ck-ai-web-source__tooltip-url'],'href':_0x276b67['url']},'children':[{'text':new URL(_0x276b67['url'])?.['hostname']}]}),_0x2480cc['push'](_0x17ba54);const _0x232f68=new View(_0x159798);_0x232f68['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-web-source__tooltip-row']},'children':_0x2480cc});const _0xa37143=new View(_0x159798);return _0xa37143['setTemplate']({'tag':'span','attributes':{'class':['ck-ai-web-source__tooltip-row','ck-ai-web-source__tooltip-title']},'children':[{'text':_0x276b67['title']['length']>TOOLTIP_TITLE_MAX_LENGTH?_0x276b67['title']['substring'](0x0,TOOLTIP_TITLE_MAX_LENGTH)+'...':_0x276b67['title']}]}),_0x5ad6f9['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-web-source__tooltip']},'children':[_0x232f68,_0xa37143]}),_0x5ad6f9;}['_showTooltip'](){this['_updateTooltipContent'](),this['balloonPanelView']['pin']({'target':this['element'],'positions':[BalloonPanelView['defaultPositions']['northArrowSouth'],BalloonPanelView['defaultPositions']['northArrowSouthWest'],BalloonPanelView['defaultPositions']['northArrowSouthEast']],'limiter':document['querySelector']('.ck-ai-chat')}),this['balloonPanelView']['show']();}['_hideTooltip'](){this['balloonPanelView']['hide']();}['_updateTooltipContent'](){this['balloonPanelView']['content']['get'](0x0)?.['destroy'](),this['balloonPanelView']['content']['clear']();const _0x4b8fb9=this['_createTooltipContentView'](this['locale'],this['source']);this['balloonPanelView']['content']['add'](_0x4b8fb9);}}class AISuggestionBodyView extends View{['_actionsView'];['_sourcesView'];['_children'];['_areActionsDisabled'];['_showUnchangedParts'];['_updateContentPartsPromiseQueue'];['_emptyPartsWarningView'];['_availableActions'];['_cachedContentParts']=[];constructor(_0x5c21d0,_0x35ca09){super(_0x5c21d0);const {areActionsDisabled:_0x41bc45,showUnchangedParts:_0x2ae489,availableActions:_0x6a58c2}=_0x35ca09;this['_areActionsDisabled']=_0x41bc45,this['_showUnchangedParts']=_0x2ae489,this['_availableActions']=_0x6a58c2,this['set']('hasPendingParts',!0x1),this['set']('isTrackChangesOn',!0x1),this['_children']=this['createCollection'](),this['_updateContentPartsPromiseQueue']=new PromiseQueue(),this['_emptyPartsWarningView']=new AIChatFeedErrorItemView({'id':'empty-parts-warning','initialContent':getTranslation$i(_0x5c21d0,'AI_SUGGESTION_EMPTY_PART_WARNING'),'level':'warning'}),this['_emptyPartsWarningView']['isVisible']=!0x1,this['_actionsView']=new AIChatFeedSuggestionItemActionsView(_0x5c21d0,_0x35ca09['availableActions'],this['_areActionsDisabled']),this['_actionsView']['bind']('isTrackChangesOn')['to'](this),this['_sourcesView']=new AIWebSourcesView(this['locale'],_0x35ca09['bodyCollection']),_0x35ca09['areActionsDisabled']?this['_actionsView']['isEnabled']=!0x1:this['_actionsView']['bind']('isEnabled')['to'](this,'hasPendingParts'),this['_actionsView']['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),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'],this['_actionsView'],this['_sourcesView']]});}get['partsCount'](){return this['_children']['length'];}async['updateContentParts']({parts:_0x178a74,renderingStrategy:_0x4a27da,abortSignal:_0x4bd149}){this['_children']['length']?_0x178a74['forEach'](_0x4cface=>{const _0x1b8122=this['_cachedContentParts']['findIndex'](_0x28e8ee=>_0x28e8ee['index']==_0x4cface['index']);-0x1===_0x1b8122?this['_cachedContentParts']['push'](_0x4cface):this['_cachedContentParts'][_0x1b8122]=_0x4cface;}):this['_cachedContentParts']=_0x178a74;const _0x35dc27=this['_showUnchangedParts']?_0x178a74:_0x178a74['filter'](_0x388fdb=>_0x388fdb['hasChanges']);this['_actionsView']['_switchButtonLabelsPlurality'](_0x35dc27['length']>0x1);for(const _0x388fa2 of _0x35dc27)this['_updateContentPartsPromiseQueue']['enqueue'](async _0x39ebc6=>{let _0x4ef080=this['getPartView'](_0x388fa2['index']);_0x4ef080||(_0x4ef080=new AISuggestionBodyViewContentPartView(this['locale'],{'part':_0x388fa2,'uiIndex':this['_children']['length']+0x1,'areActionsDisabled':this['_areActionsDisabled'],'availableActions':this['_availableActions']}),_0x4ef080['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),this['_children']['add'](_0x4ef080),this['hasPendingParts']=!0x0),await _0x4ef080['updateContent']({'part':_0x388fa2,'renderingStrategy':_0x4a27da,'showUnchangedParts':this['_showUnchangedParts'],'abortSignal':_0x39ebc6}),_0x4ef080['markAsDone']();});return _0x4bd149?.['addEventListener']('abort',()=>{this['_updateContentPartsPromiseQueue']['abort']();}),this['_updateContentPartsPromiseQueue']['queueEmptyPromise'];}['updatePartState'](_0x506bbf,_0x2b9518){const _0xa1d167=this['getPartView'](_0x506bbf);_0xa1d167&&(_0xa1d167['state']=_0x2b9518),this['hasPendingParts']='pending'==_0x2b9518||Array['from'](this['_children'])['some'](_0x3ea538=>'pending'==_0x3ea538['state']);}['setPartActive'](_0x2bb27e,_0x1daeb6){if(!0x1===_0x2bb27e){for(const _0xe7ab60 of this['_children'])_0xe7ab60['isActive']=!0x1;}else{const _0x3223b9=this['getPartView'](_0x2bb27e);_0x3223b9&&(_0x3223b9['isActive']=_0x1daeb6);}}['updateSources'](_0x5333eb){_0x5333eb['forEach'](_0x21a0f3=>this['_sourcesView']['addSource'](_0x21a0f3)),this['_sourcesView']['isVisible']=!0x0;}['getPartView'](_0x727fa6){return this['_children']['find'](_0x5e7746=>_0x5e7746['partDefinition']['index']==_0x727fa6)??null;}['markAsDone'](){if(!this['_showUnchangedParts']){const _0x5cbbbb=!this['_cachedContentParts']['find'](({hasChanges:_0x5b27b9})=>_0x5b27b9),_0x113f9b=!!this['_cachedContentParts']['find'](({hasChanges:_0x4121f3})=>!_0x4121f3);this['_emptyPartsWarningView']['isVisible']=0x0==this['_children']['length']||_0x113f9b,_0x5cbbbb?this['_emptyPartsWarningView']['setContent'](getTranslation$i(this['locale'],'AI_SUGGESTION_NO_PARTS_WARNING')):this['_emptyPartsWarningView']['setContent'](getTranslation$i(this['locale'],'AI_SUGGESTION_EMPTY_PART_WARNING'));}this['_children']['forEach'](_0x2b63e6=>_0x2b63e6['markAsDone']()),this['_actionsView']['updateVisibility'](this['hasNonEmptyParts']);}get['hasNonEmptyParts'](){return this['_children']['filter'](_0x33addb=>_0x33addb['partDefinition']['hasChanges'])['length']>0x0;}}class AISuggestionContainerView extends View{['bodyView'];['children'];['headerView'];constructor(_0x558bd8,_0x5474e2,_0x139e6c){super(_0x558bd8);const {showDiff:_0x543d4e,areActionsDisabled:_0x3907f1,showUnchangedParts:_0xb66231,availableActions:_0x2ca044}=_0x5474e2;this['set']('isTrackChangesOn',!0x1),this['set']('areChangesVisible',!0x1),this['children']=this['createCollection'](),this['headerView']=new AISuggestionHeaderView(_0x558bd8,{'showDiff':_0x543d4e}),this['headerView']['on']('toggleShowChanges',(_0x403223,_0x35d58b)=>{this['areChangesVisible']=_0x35d58b['isOn'],this['fire']('toggleSuggestionDisplayMode',{'showDiff':_0x35d58b['isOn']});}),this['children']['add'](this['headerView']),this['bodyView']=new AISuggestionBodyView(_0x558bd8,{'areActionsDisabled':_0x3907f1,'showUnchangedParts':!!_0xb66231,'availableActions':_0x2ca044,'bodyCollection':_0x139e6c}),this['bodyView']['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),this['bodyView']['bind']('isTrackChangesOn')['to'](this),this['children']['add'](this['bodyView']),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__container','ck-rounded-corners']},'children':this['children']});}async['updateContent'](_0x15b801){await this['bodyView']['updateContentParts'](_0x15b801);}['updateSources'](_0x140046){this['bodyView']['updateSources'](_0x140046);}['markAsDone'](){this['bodyView']['markAsDone'](),this['headerView']&&(this['headerView']['isShowChangesToggleVisible']=this['bodyView']['hasNonEmptyParts']);}}class AIChatFeedSuggestionItemView extends AIChatFeedItemView{['containerView'];constructor(_0x3b5ef0,_0x2f9617,_0x4619b5){super(_0x2f9617),this['set']('isTrackChangesOn',!0x1),this['containerView']=new AISuggestionContainerView(_0x3b5ef0,{'showDiff':_0x2f9617['showDiff'],'areActionsDisabled':_0x2f9617['areActionsDisabled'],'availableActions':_0x2f9617['availableActions']},_0x4619b5),this['containerView']['on']('toggleSuggestionDisplayMode',(_0x5e304a,_0x557050)=>{this['fire']('toggleSuggestionDisplayMode',{'replyId':this['options']['id'],'showDiff':_0x557050['showDiff']});}),this['containerView']['bind']('isTrackChangesOn')['to'](this),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',(_0x34ba4d,{index:_0xe9f59f})=>{this['fire']('showChangeInText',{'replyId':this['options']['id'],'partIndex':_0xe9f59f});}),this['containerView']['on']('applySuggestion',(_0x2495d0,{index:_0xa2734}={})=>{this['fire']('applySuggestion',{'replyId':this['options']['id'],'partIndex':_0xa2734});}),this['containerView']['on']('insertSuggestion',(_0x810e2e,{index:_0x368ee4}={})=>{this['fire']('insertSuggestion',{'replyId':this['options']['id'],'partIndex':_0x368ee4});}),this['containerView']['on']('rejectSuggestion',(_0x1e6b35,{index:_0x12de4d})=>{this['fire']('rejectSuggestion',{'replyId':this['options']['id'],'partIndex':_0x12de4d});}),this['containerView']['on']('mouseOverSuggestion',(_0x57d075,{index:_0x1e87aa})=>{this['fire']('mouseOverSuggestion',{'replyId':this['options']['id'],'partIndex':_0x1e87aa});}),this['containerView']['on']('mouseLeaveSuggestion',(_0x1c1941,{index:_0x2ca2b3})=>{this['fire']('mouseLeaveSuggestion',{'replyId':this['options']['id'],'partIndex':_0x2ca2b3});}),this['children']['addMany']([this['containerView']]),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__ai-suggestion']}});}async['updateContent'](_0x342409){await this['containerView']['updateContent'](_0x342409);}['updatePartState'](_0x5dbc1d,_0x29f492){this['containerView']['bodyView']['updatePartState'](_0x5dbc1d,_0x29f492);}['setPartActive'](_0x2918f2,_0x104e7b){!0x1===_0x2918f2?this['containerView']['bodyView']['setPartActive'](!0x1):this['containerView']['bodyView']['setPartActive'](_0x2918f2,_0x104e7b);}['updateSources'](_0x376cc6){this['containerView']['updateSources'](_0x376cc6);}['getPartView'](_0x47171){return this['containerView']['bodyView']['getPartView'](_0x47171);}['markAsDone'](){super['markAsDone'](),this['containerView']['markAsDone']();}}class AIChatFeedReplyItemView extends AIChatFeedItemView{['replyContainer'];['_bodyCollection'];constructor(_0x15e6c5,_0x106c93,_0x12e242){super(_0x106c93),this['_bodyCollection']=_0x12e242,this['locale']=_0x15e6c5,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:_0x3f1ace,renderingStrategy:_0x4aa6d1,abortSignal:_0x415500}){'streaming'===_0x4aa6d1?await this['streamIntoElement'](_0x3f1ace,this['replyContainer']['element'],_0x415500):this['replyContainer']['element']['innerHTML']=render(_0x3f1ace);}['updateSources'](_0x551210){const _0x5c8cdd=new AIWebSourcesView(this['locale'],this['_bodyCollection']);_0x5c8cdd['children']['addMany'](_0x551210['map'](_0x327cf8=>new AIWebSourceView(this['locale'],_0x327cf8,_0x5c8cdd['balloonPanelView']))),_0x5c8cdd['isVisible']=!0x0,this['children']['add'](_0x5c8cdd);}}class AISpinnerView extends SpinnerView{constructor(_0x293230=void 0x0){super();const _0x1167b6=_0x293230?'ck-ai-spinner_'+_0x293230:'';this['extendTemplate']({'tag':'span','attributes':{'class':['ck-ai-spinner',_0x1167b6]}});}}const CONTEXT_TYPES_TO_ICONS={'file':IconFileUpload,'document':IconDocument$1,'web-resource':IconLink,'text':IconFileUpload,'selection':IconSelection,'mcp-tool-context':IconDocument$1},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(_0x1fabf2,_0xd44b37,_0xb3d002,_0x5df676,_0x4854ec=!0x1){super(_0x1fabf2),this['_isAnimationOnEnterEnabled']=_0x5df676,this['_initializeProperties'](_0xd44b37,_0xb3d002,_0x4854ec),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'](_0x7a926b,_0x2dc1db,_0x52d4a1){this['set']('label',_0x7a926b['label']),this['set']('tooltip',!0x0),this['set']('itemType',_0x7a926b['type']),this['set']('id',_0x7a926b['uiId']),this['set']('readonly',_0x2dc1db),this['set']('isLoading',_0x52d4a1);}['_setupTemplate'](){const _0x3cb5ff=this['_createIconView'](),_0x350500=this['_createRemoveButton'](),_0x2cbd7f=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':this['_createTemplateAttributes'](_0x2cbd7f),'children':this['_createTemplateChildren'](_0x3cb5ff,_0x350500,_0x2cbd7f)});}['_createTemplateAttributes'](_0x34dca9){return{'class':[CSS_CLASSES$7['contextChip'],_0x34dca9['if']('itemType',CSS_CLASSES$7['contextChipDocument'],_0x5425bd=>'document'==_0x5425bd),_0x34dca9['if']('itemType',CSS_CLASSES$7['contextChipWide'],_0x1feaf0=>'selection'==_0x1feaf0)],'data-cke-tooltip-text':_0x34dca9['to']('label',getTooltipForLabel),'data-cke-tooltip-position':TOOLTIP_CONFIG['position'],'data-cke-tooltip-class':CSS_CLASSES$7['chipTooltip']};}['_createTemplateChildren'](_0x18a3b8,_0x1a3ff3,_0x253f55){const _0x26c6e4=this['_createLabelElement'](_0x253f55),_0x2bb9ae=this['_createLoaderIcon']();return this['readonly']?[_0x18a3b8,_0x26c6e4]:[_0x18a3b8,_0x2bb9ae,_0x26c6e4,_0x1a3ff3];}['_createLabelElement'](_0x40d6c6){return{'tag':'span','attributes':{'class':CSS_CLASSES$7['contextChipLabel']},'children':[{'text':_0x40d6c6['to']('label')}]};}['_createRemoveButton'](){const _0x2cd83f=new ButtonView(this['locale']);return _0x2cd83f['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT'),'icon':IconClose}),this['_setupRemoveButtonEvent'](_0x2cd83f),_0x2cd83f;}['_setupRemoveButtonEvent'](_0x5b6e10){_0x5b6e10['on']('execute',()=>{this['fire']('removeContextItemChip',this['id']);});}['_createIconView'](){const _0x5cfb2b=this['bindTemplate'],_0x3f712d=new IconView();return _0x3f712d['content']=CONTEXT_TYPES_TO_ICONS[this['itemType']],_0x3f712d['extendTemplate']({'attributes':{'class':[CSS_CLASSES$7['contextChipTypeIcon'],_0x5cfb2b['if']('isLoading','ck-hidden',_0xa4d188=>_0xa4d188)]}}),_0x3f712d;}['_handleAnimationEndOnce'](_0x28432a,_0x50c897){if(!_0x28432a)return;const _0x337909=()=>{_0x50c897(),_0x28432a['removeEventListener']('animationend',_0x337909),_0x28432a['removeEventListener']('webkitAnimationEnd',_0x337909);};_0x28432a['addEventListener']('animationend',_0x337909),_0x28432a['addEventListener']('webkitAnimationEnd',_0x337909);}['_createLoaderIcon'](){const _0x23e922=new AISpinnerView('small');return _0x23e922['bind']('isVisible')['to'](this,'isLoading',_0x470412=>_0x470412),_0x23e922;}}function getTooltipForLabel(_0x57e591){if(!_0x57e591)return _0x57e591;if(_0x57e591['length']<=TOOLTIP_MAX_CHAR_LENGTH)return _0x57e591;const _0x43e160=_0x57e591['slice'](0x0,TOOLTIP_MAX_CHAR_LENGTH),_0x4db4e2=_0x43e160['lastIndexOf']('\x20');return(_0x4db4e2>0x0?_0x43e160['slice'](0x0,_0x4db4e2):_0x43e160)+'…';}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(_0x43c72a,_0x525702,_0x1bbe2b,_0x4f2d12,_0x2eb9eb){this['_locale']=_0x43c72a,this['_visibleChips']=_0x525702,this['_config']={...DEFAULT_CONFIG,..._0x1bbe2b,'cssClasses':{'controlsButton':'','calculationContainer':'ck-calculation-container',..._0x1bbe2b['cssClasses']}},this['_overflowChips']=new Collection(),this['_bodyCollection']=_0x4f2d12,this['_parentView']=_0x2eb9eb||null;}['setContainerElement'](_0x20d256){this['_intersectionObserver']&&(this['_intersectionObserver']['disconnect'](),this['_intersectionObserver']=null),this['_containerElement']=_0x20d256,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 _0x36da34=[...this['_visibleChips'],...this['_overflowChips']],_0x3e98ab=this['_createCalculationContainer'](),_0x4777f9=this['_calculateOverflowInContainer'](_0x3e98ab,_0x36da34),_0x40c6cc=_0x3e98ab['_ancestorsToRestore'];_0x40c6cc&&this['_restoreAncestorVisibility'](_0x40c6cc),_0x3e98ab['remove'](),this['_applyOverflowResults'](_0x36da34,_0x4777f9);}['_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 _0x34b264=new ButtonView(this['_locale']);_0x34b264['set']({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x654cf3=[this['_config']['cssClasses']['showMoreButton']];return this['_config']['cssClasses']['controlsButton']&&_0x654cf3['push'](this['_config']['cssClasses']['controlsButton']),_0x34b264['extendTemplate']({'attributes':{'class':_0x654cf3}}),_0x34b264;}['_createShowMoreBalloonPanelView'](){const _0x1b5503=new BalloonPanelView(this['_locale']);return _0x1b5503['extendTemplate']({'attributes':{'class':this['_config']['cssClasses']['showMoreBalloon']}}),this['_bodyCollection']['add'](_0x1b5503),_0x1b5503;}['_updateBalloonContent'](){if(this['_showMoreBalloonPanelView']&&(this['_showMoreBalloonPanelView']['content']['clear'](),this['_overflowChips']['length']>0x0)){this['_overflowChips']['forEach'](_0x1ea785=>{_0x1ea785['disableAnimationOnEnter']();});const _0xd676ad=new View(this['_locale']);_0xd676ad['setTemplate']({'tag':'div','attributes':{'class':this['_config']['cssClasses']['overflowContainer']},'children':this['_overflowChips']}),this['_showMoreBalloonPanelView']['content']['add'](_0xd676ad);}}['_handleShowMoreButtonClick'](){this['_showMoreButtonView']['isOn']?this['hideBalloonPanel']():this['showBalloonPanel']();}['_updateShowMoreButtonVisibility'](){const _0xfe71fa=this['_overflowChips']['length']>0x0;this['_showMoreButtonView']?.['element']&&(this['_showMoreButtonView']['element']['style']['display']=_0xfe71fa?'':'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'](_0x3c9f13){const _0x50eecb=this['_containerElement']?.['tagName']['toLowerCase']()||'div',_0xbdc85=this['_containerElement']?.['classList'];if(_0xbdc85){const _0x5c19bc=_0xbdc85[0x0]||'',_0x2f307d=_0x3c9f13['querySelector']('.'+_0x5c19bc),_0x40a97d=_0x3c9f13['querySelector'](_0x50eecb);return _0x2f307d||_0x40a97d||_0x3c9f13;}return _0x3c9f13['querySelector'](_0x50eecb)||_0x3c9f13;}['_calculateContainerWidth'](){const _0x20dd55=this['_parentView']?.['element']||this['_containerElement'];if(!_0x20dd55)return FALLBACK_CONTAINER_WIDTH;const _0x1c2c56=window['getComputedStyle'](_0x20dd55)['width'];if('auto'===_0x1c2c56||'0px'===_0x1c2c56||!_0x1c2c56){const _0x5c6d9a=_0x20dd55['parentElement'];if(_0x5c6d9a){const _0x59b0b4=window['getComputedStyle'](_0x5c6d9a);return'auto'!==_0x59b0b4['width']?_0x59b0b4['width']:FALLBACK_CONTAINER_WIDTH;}return FALLBACK_CONTAINER_WIDTH;}return _0x1c2c56;}['_applyCalculationStyles'](_0x54ed6e,_0x3c79e9){this['_config']['cssClasses']['calculationContainer']&&_0x54ed6e['classList']['add'](this['_config']['cssClasses']['calculationContainer']),_0x54ed6e['style']['width']=_0x3c79e9,_0x54ed6e['style']['position']='absolute',_0x54ed6e['style']['top']='-9999px',_0x54ed6e['style']['left']='-9999px',_0x54ed6e['style']['opacity']='0',_0x54ed6e['style']['pointerEvents']='none',_0x54ed6e['style']['zIndex']='-1',_0x54ed6e['style']['visibility']='visible\x20!important',_0x54ed6e['style']['display']='block\x20!important',_0x54ed6e['style']['boxSizing']='border-box';}['_restoreAncestorVisibility'](_0x384abe){_0x384abe['forEach'](({element:_0x1aaca7,originalDisplay:_0x3c2567,originalVisibility:_0x23c82c})=>{_0x1aaca7['style']['display']=_0x3c2567,_0x1aaca7['style']['visibility']=_0x23c82c;});}['_makeAncestorsVisible'](_0x14cf6a){const _0x3435f6=[];let _0x390b2b=_0x14cf6a;for(;_0x390b2b&&_0x390b2b!==document['body'];){const _0x473e59=window['getComputedStyle'](_0x390b2b);'none'!==_0x473e59['display']&&'hidden'!==_0x473e59['visibility']||(_0x3435f6['push']({'element':_0x390b2b,'originalDisplay':_0x390b2b['style']['display'],'originalVisibility':_0x390b2b['style']['visibility']}),_0x390b2b['style']['display']='block',_0x390b2b['style']['visibility']='visible'),_0x390b2b=_0x390b2b['parentElement'];}return _0x3435f6;}['_createContainerElements'](){let _0x643882,_0x59e488;return this['_parentView']?.['element']?(_0x643882=this['_parentView']['element']['cloneNode'](!0x0),_0x59e488=this['_findTargetContainer'](_0x643882)):(_0x643882=document['createElement']('div'),_0x59e488=_0x643882),{'calculationContainer':_0x643882,'targetContainer':_0x59e488};}['_createCalculationContainer'](){const {calculationContainer:_0x177950,targetContainer:_0x31ac9b}=this['_createContainerElements'](),_0x28f977=this['_calculateContainerWidth']();this['_applyCalculationStyles'](_0x177950,_0x28f977);const _0x1a0c62=this['_parentView']?.['element']||this['_containerElement'],_0x4cfdea=_0x1a0c62?.['parentElement'];_0x4cfdea?_0x4cfdea['appendChild'](_0x177950):document['body']['appendChild'](_0x177950),_0x177950['_targetContainer']=_0x31ac9b;const _0x32c711=this['_makeAncestorsVisible'](_0x4cfdea||null);return _0x177950['offsetWidth'],_0x177950['_ancestorsToRestore']=_0x32c711,_0x177950;}['_calculateOverflowInContainer'](_0x16df16,_0x361d11){const _0x100332=_0x16df16['_targetContainer']||_0x16df16,_0x5427af=[],{rowCount:_0x4d8ef8}=this['_renderChipsAndCountRows'](_0x100332,_0x361d11);if(_0x4d8ef8<=this['_config']['maxVisibleRows'])return _0x5427af;const _0xf694b0=_0x361d11['slice']();for(;_0xf694b0['length']>0x0;){if(this['_testButtonFit'](_0x16df16,_0x100332,_0xf694b0)){const _0x13d853=_0x361d11['filter'](_0x5a20ea=>!_0xf694b0['includes'](_0x5a20ea));_0x5427af['push'](..._0x13d853);break;}if(!_0xf694b0['pop']())break;}return _0x5427af;}['_renderChipsAndCountRows'](_0x47f20,_0x529a0f){_0x47f20['innerHTML']='',_0x529a0f['forEach'](_0x41df1f=>{if(_0x41df1f['element']){const _0x13c405=_0x41df1f['element']['cloneNode'](!0x0);_0x47f20['appendChild'](_0x13c405);}}),_0x47f20['offsetWidth'];const _0x39cf24=_0x47f20['children'],_0xfd6833=[];return Array['from'](_0x39cf24)['forEach'](_0x2f6239=>{const _0x341a6f=_0x2f6239['getBoundingClientRect']()['top'];_0xfd6833['some'](_0x33907d=>Math['abs'](_0x33907d-_0x341a6f)<this['_config']['rowDetectionTolerance'])||_0xfd6833['push'](_0x341a6f);}),{'rowCount':_0xfd6833['length']};}['_createMockButton'](){const _0x4c3287=document['createElement']('button');return _0x4c3287['className']=this['_config']['cssClasses']['showMoreButton'],this['_config']['cssClasses']['controlsButton']&&_0x4c3287['classList']['add'](this['_config']['cssClasses']['controlsButton']),_0x4c3287['textContent']='+\x201',_0x4c3287;}['_testButtonFit'](_0x142ccc,_0x1f9a19,_0xb556ac){this['_renderChipsAndCountRows'](_0x1f9a19,_0xb556ac);const _0x50dae7=this['_createMockButton']();_0x142ccc['appendChild'](_0x50dae7),_0x142ccc['offsetWidth'];const _0x143bc5=[..._0x1f9a19['children'],_0x50dae7],_0x100ac7=[];_0x143bc5['forEach'](_0x162f0b=>{const _0x25a1e1=_0x162f0b['getBoundingClientRect']()['top'];_0x100ac7['some'](_0x49b9b7=>Math['abs'](_0x49b9b7-_0x25a1e1)<this['_config']['rowDetectionTolerance'])||_0x100ac7['push'](_0x25a1e1);});const _0x38d3d1=_0x100ac7['length'];return _0x50dae7['remove'](),_0x38d3d1<=this['_config']['maxVisibleRows'];}['_distributeChips'](_0x21a98a,_0x537871){this['_visibleChips']['clear'](),this['_overflowChips']['clear'](),_0x21a98a['forEach'](_0x5d0129=>{_0x537871['includes'](_0x5d0129)?this['_overflowChips']['add'](_0x5d0129):this['_visibleChips']['add'](_0x5d0129);});}['_updateOverflowUI'](_0x2883f4){if(_0x2883f4>0x0&&!this['_showMoreButtonView']&&this['_createShowMoreButton'](),_0x2883f4>0x0&&this['_showMoreButtonView']){const _0x2ea958=''+this['_config']['showMoreLabelPrefix']+(_0x2883f4<0x63?_0x2883f4:'99');this['_showMoreButtonView']['label']=_0x2ea958;}this['_updateBalloonContent'](),this['_updateShowMoreButtonVisibility'](),this['_repinBalloonPanel']();}['_applyOverflowResults'](_0x334222,_0xb6c42d){this['_distributeChips'](_0x334222,_0xb6c42d),this['_updateOverflowUI'](_0xb6c42d['length']);}['_setupVisibilityObserver'](){this['_containerElement']&&'undefined'!=typeof IntersectionObserver&&(this['_intersectionObserver']=new IntersectionObserver(_0x1d7d36=>{_0x1d7d36[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 _0x3916de=this['_containerElement']['getBoundingClientRect']();if(0x0===_0x3916de['width']||0x0===_0x3916de['height'])return!0x1;const _0x112400=window['innerHeight']||document['documentElement']['clientHeight'],_0x24b7a3=window['innerWidth']||document['documentElement']['clientWidth'],_0x139a10=0xc8;return _0x3916de['bottom']>=-0xc8&&_0x3916de['top']<=_0x112400+_0x139a10&&_0x3916de['right']>=-0xc8&&_0x3916de['left']<=_0x24b7a3+_0x139a10;}}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(_0x45971b,_0x3f84cb,_0xd14cbe){super(_0x45971b),this['_bodyCollection']=_0xd14cbe,this['_createContextChips'](_0x3f84cb);const _0x4c3894={'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(_0x45971b,this['_contextChips'],_0x4c3894,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 _0x44245c=this['element']['querySelector']('.'+CSS_CLASSES$6['CONTEXT_CHIPS_VISIBLE']);_0x44245c&&(this['_overflowManager']['setContainerElement'](_0x44245c),this['_overflowManager']['reorganizeChips']());}['destroy'](){super['destroy'](),this['_overflowManager']['destroy']();}['_createContextChips'](_0x16d08d){for(const _0x5415ed of _0x16d08d){const _0x1e2450=new AIChatContextItemButtonView(this['locale'],_0x5415ed,!0x0,!0x1);this['_contextChips']['add'](_0x1e2450);}}}class AIChatFeedUserMessageItemView extends AIChatFeedItemView{['_contextChipsView']=null;['_locale'];['_bodyCollection'];['_messageContentView'];constructor(_0x5f2d3f,_0x448cd6,_0x69ed7){super(_0x448cd6),this['_locale']=_0x5f2d3f,this['_bodyCollection']=_0x69ed7,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'](_0x320480=>!_0x320480['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(_0x2f89ea,_0x1716f9){super(_0x1716f9);const {isWebSearchEnabled:_0x3bf5fe,isReasoningEnabled:_0x384720}=_0x1716f9['capabilities'],_0x125ca3=[];let _0xa6a040='';_0x3bf5fe&&_0x384720?(_0xa6a040=getTranslation$i(_0x2f89ea,'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING'),_0x125ca3['push'](createIcon(IconWeb)),_0x125ca3['push'](createIcon(IconBulb))):_0x3bf5fe?(_0xa6a040=getTranslation$i(_0x2f89ea,'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH'),_0x125ca3['push'](createIcon(IconWeb))):_0x384720&&(_0xa6a040=getTranslation$i(_0x2f89ea,'AI_CHAT_FEED_REPLY_ITEM_USED_REASONING'),_0x125ca3['push'](createIcon(IconBulb))),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__interaction-header',_0xa6a040?'':'ck-hidden']}});const _0x4bfa03=new View();_0x4bfa03['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__interaction-header__capabilities']},'children':[..._0x125ca3,{'tag':'span','attributes':{'class':['ck-ai-chat__feed__interaction-header__capabilities__text']},'children':[_0xa6a040]}]}),this['children']['add'](_0x4bfa03),this['capabilities']=_0x1716f9['capabilities'];}}function createIcon(_0xfb3f9f){const _0x4b2072=new IconView();return _0x4b2072['content']=_0xfb3f9f,_0x4b2072;}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(_0x28f3d1){this['element']=_0x28f3d1,this['animationFrameId']=null,this['isRunning']=!0x1,this['abortController']=new AbortController(),this['isUserPaused']=!0x1;for(const _0x5d6fb4 of USER_CANCEL_EVENT_NAMES){const _0x3c12c7='keydown'!==_0x5d6fb4;this['element']['addEventListener'](_0x5d6fb4,this['_onUserEvent']['bind'](this),{'passive':_0x3c12c7,'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'](_0x3bc135){if(this['isRunning']){if('keydown'===_0x3bc135['type']){const _0x519f35=_0x3bc135['key'];if(!USER_CANCEL_SCROLL_KEYS['includes'](_0x519f35))return;}_0x3bc135 instanceof WheelEvent?_0x3bc135['deltaY']<0x0?this['isUserPaused']=!0x0:this['isUserPaused']=!this['_isAtBottom']():this['isUserPaused']=!0x0;}}['_isAtBottom'](){const {scrollTop:_0x244422,scrollHeight:_0x5abe59,clientHeight:_0xc822ef}=this['element'];return _0x5abe59-_0x244422-_0xc822ef<=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(_0x1a027c,_0x4543b5){super(_0x1a027c),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-skeleton']},'children':this['_createSkeletonItems'](_0x4543b5)});}['_createSkeletonItems'](_0xf2b328){const _0x3552eb=['ck','ck-ai-skeleton__item'];return _0xf2b328['map'](_0x1dfb19=>{let _0x283ed4='';switch(_0x1dfb19['attributes']['align']){case'right':_0x283ed4='margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;';break;case'center':_0x283ed4='margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;';break;case'left':_0x283ed4='margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;';}return{'tag':_0x1dfb19['tag'],'attributes':{'class':[..._0x3552eb,_0x1dfb19['attributes']['class']?_0x1dfb19['attributes']['class']:''],'style':'width:\x20'+_0x1dfb19['attributes']['width']+';\x20height:\x20'+_0x1dfb19['attributes']['height']+';'+_0x283ed4}};});}}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(_0xeced7c,_0x46a74f,_0x1b8fe4,_0x29edd5){return new Array(_0xeced7c)['fill'](null)['map'](()=>({'tag':'div','attributes':{'width':_0x46a74f,'height':_0x1b8fe4,'align':_0x29edd5}}));}class AIChatFeedCustomElementView extends AIChatFeedItemView{constructor(_0x421b0a){super(_0x421b0a),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__custom-element']}});}async['render'](){super['render'](),'string'==typeof this['options']['content']?this['element']['innerHTML']=this['options']['content']:this['element']['appendChild'](this['options']['content']);}}class AIChatFeedView extends View{['children'];['scrollManager'];['_bodyCollection'];constructor(_0x20d8d1,_0x5a908d){super(_0x20d8d1),this['_bodyCollection']=_0x5a908d,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'](_0x57b94c,_0x16a062){let _0xe6fe58;return'ai-reply'===_0x57b94c?_0xe6fe58=new AIChatFeedReplyItemView(this['locale'],_0x16a062,this['_bodyCollection']):'ai-suggestion-reply'===_0x57b94c?(_0xe6fe58=new AIChatFeedSuggestionItemView(this['locale'],_0x16a062,this['_bodyCollection']),_0xe6fe58['bind']('isTrackChangesOn')['to'](this)):_0xe6fe58='user-message'===_0x57b94c?new AIChatFeedUserMessageItemView(this['locale'],_0x16a062,this['_bodyCollection']):'interaction-header'===_0x57b94c?new AIChatFeedInteractionHeaderView(this['locale'],_0x16a062):'custom-element'===_0x57b94c?new AIChatFeedCustomElementView(_0x16a062):new AIChatFeedErrorItemView(_0x16a062),this['children']['add'](_0xe6fe58),_0xe6fe58;}async['updateReplyItem']({id:_0x48cf99,parsedContent:_0x2a988f,renderingStrategy:_0x3440b4,abortSignal:_0xc4bb9}){const _0x18ee06=this['getItemById'](_0x48cf99);if(!(_0x18ee06 instanceof AIChatFeedReplyItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-reply-item',null,{'itemView':_0x18ee06,'id':_0x48cf99,'parsedContent':_0x2a988f});await _0x18ee06['updateContent']({'parsedContent':_0x2a988f,'renderingStrategy':_0x3440b4,'abortSignal':_0xc4bb9});}async['updateWebSources'](_0x3b522d,_0x420b7e){const _0x21fb84=this['getItemById'](_0x3b522d);if(_0x21fb84 instanceof AIChatFeedSuggestionItemView)_0x21fb84['updateSources'](_0x420b7e);else{if(!(_0x21fb84 instanceof AIChatFeedReplyItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-or-reply-item',null,{'itemView':_0x21fb84,'id':_0x3b522d,'sources':_0x420b7e});_0x21fb84['updateSources'](_0x420b7e);}}async['updateSuggestionItem']({id:_0x1c9564,parts:_0x373e7f,renderingStrategy:_0x510b1c,abortSignal:_0x5e30fb}){const _0x4d929c=this['getItemById'](_0x1c9564);if(!(_0x4d929c instanceof AIChatFeedSuggestionItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-item',null,{'itemView':_0x4d929c,'id':_0x1c9564,'parts':_0x373e7f});await _0x4d929c['updateContent']({'parts':_0x373e7f,'renderingStrategy':_0x510b1c,'abortSignal':_0x5e30fb});}['updateSuggestionPartState']({id:_0x32ba78,index:_0x10e249,state:_0x544350}){const _0xc0b2f1=this['getItemById'](_0x32ba78);if(!(_0xc0b2f1 instanceof AIChatFeedSuggestionItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-item',this,{'id':_0x32ba78});_0xc0b2f1['updatePartState'](_0x10e249,_0x544350);}['setSuggestionPartActive']({id:_0x4b7c0d,index:_0x115c6a,isActive:_0x4c7ef8}){const _0x4c77ff=this['getItemById'](_0x4b7c0d);if(!(_0x4c77ff instanceof AIChatFeedSuggestionItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-item',this,{'id':_0x4b7c0d});this['children']['filter'](_0x581047=>_0x581047 instanceof AIChatFeedSuggestionItemView)['forEach'](_0x17403a=>{_0x17403a['setPartActive'](!0x1);}),_0x4c77ff['setPartActive'](_0x115c6a,_0x4c7ef8);}['markItemAsDone'](_0x6e6d0d){this['getItemById'](_0x6e6d0d)['markAsDone']();}['getItemIds'](){return this['children']['map'](_0x4bcab9=>_0x4bcab9['options']['id']);}['removeItem'](_0x35e03b){this['children']['remove'](this['getItemById'](_0x35e03b));}['hasItem'](_0x2aa61f){return!!this['children']['find'](_0x1c8cda=>_0x1c8cda['options']['id']['includes'](_0x2aa61f));}['scrollToSuggestion'](_0xb2cf17,_0x5c6eaf){const _0x6c65da=this['getItemById'](_0xb2cf17);if(!(_0x6c65da instanceof AIChatFeedSuggestionItemView))return void logWarning('ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item',{'replyId':_0xb2cf17,'partIndex':_0x5c6eaf});const _0x18b42d=_0x6c65da['getPartView'](_0x5c6eaf);_0x18b42d?scrollAncestorsToShowTarget(_0x18b42d['element'],0x14,this['element']['parentElement'],!0x0,!0x0):logWarning('ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found',{'replyId':_0xb2cf17,'partIndex':_0x5c6eaf});}['_setupTemplate'](){this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed']},'children':this['_createTemplateChildren']()});}['_createTemplateChildren'](){const _0x4a5044=this['_createSkeletonLoader']();return[this['_createFeedItems'](),_0x4a5044,this['_createFeedLoader']()];}['_createSkeletonLoader'](){const _0x3a1bfb=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiFeed']);return _0x3a1bfb['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isLoadingSkeletonVisible','ck-hidden',_0x34378e=>!_0x34378e)]}}),_0x3a1bfb;}['_createFeedItems'](){const _0x6cb47c=new View(this['locale']);return _0x6cb47c['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__items',this['bindTemplate']['if']('isLoadingSkeletonVisible','ck-hidden')]},'children':this['children']}),_0x6cb47c;}['_createFeedLoader'](){const _0x392af9=new View(this['locale']);return _0x392af9['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__loader',this['bindTemplate']['if']('isPending','ck-hidden',_0x28ae81=>!_0x28ae81)]},'children':this['_createLoaderChildren']()}),_0x392af9;}['_createLoaderChildren'](){const _0x578a92=new AISpinnerView();return _0x578a92['isVisible']=!0x0,[_0x578a92,{'tag':'span','attributes':{'class':['ck','ck-ai-chat__loader-text']},'children':[{'text':this['bindTemplate']['to']('loadingMessage')}]}];}['getItemById'](_0x1faae4){const _0x787c4e=this['children']['find'](_0x3df211=>_0x3df211['options']['id']['includes'](_0x1faae4));if(!_0x787c4e)throw new CKEditorError('ai-chat-feed-view-item-not-found',this,{'id':_0x1faae4});return _0x787c4e;}['setLoadingMessage'](_0x1cb602){this['set']('loadingMessage',_0x1cb602);}['toggleLoadingSkeleton'](_0x442b95){this['set']('isLoadingSkeletonVisible',_0x442b95);}['startAutoScroll'](){this['scrollManager']['start']();}['stopAutoScroll'](){this['scrollManager']['stop']();}}class AIChatPromptSuggestionsListView extends ListView{['filter'](){let _0x18cc54=0x0;for(const _0x4a62ab of this['items'])_0x18cc54+=_0x4a62ab['items']['length'];return{'resultsCount':_0x18cc54,'totalItemsCount':_0x18cc54};}}const PROMPT_INPUT_HIGHLIGHT_DURATION=0x320,PROMPT_INPUT_HIGHLIGHT_CLASS='ck-ai-chat__prompt-input_highlighted';class AIChatPromptInputView extends AutocompleteView{['submitButtonView'];static ['MIN_ROWS']=0x1;static ['MAX_ROWS']=0xc;['_addContextButtonView'];['_queryViewResizeObserver'];constructor(_0x1350ea,_0x1f4136){super(_0x1350ea,{'queryView':{'label':'','creator':createLabeledTextarea,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new AIChatPromptSuggestionsListView(_0x1350ea),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this['set']('isEmpty',!0x0),this['set']('isUploadInProgress',!0x1),this['_addContextButtonView']=_0x1f4136,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',(_0x50a504,_0x469a40)=>!_0x50a504&&!_0x469a40),this['focusableChildren']['add'](this['submitButtonView']);}['render'](){super['render'](),this['queryView']['fieldWrapperChildren']['add'](this['submitButtonView']),this['keystrokes']['set']('enter',(_0x2f9832,_0xa8483d)=>{this['isUploadInProgress']||this['isEmpty']||_0x2f9832['target']==this['queryView']['fieldView']['element']&&(this['submit'](),_0xa8483d());}),this['queryView']['fieldView']['on']('update',()=>{this['isEmpty']=''===this['queryView']['fieldView']['element']['value']?.['trim']();});}['destroy'](){super['destroy'](),this['_queryViewResizeObserver']&&this['_queryViewResizeObserver']['destroy']();}['submit'](){const _0x1f4d50=this['queryView']['fieldView']['element']['value']?.['trim']();if(!_0x1f4d50)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 _0x244687=escape(_0x1f4d50);this['fire']('sendUserMessage',_0x244687),this['queryView']['fieldView']['reset']();}['setPlaceholderText'](_0x50f510){this['queryView']['fieldView']['set']('placeholder',_0x50f510);}['focus'](_0x56c4a6=!0x1){super['focus'](),_0x56c4a6&&(this['element']['classList']['contains'](PROMPT_INPUT_HIGHLIGHT_CLASS)||(this['element']['classList']['add'](PROMPT_INPUT_HIGHLIGHT_CLASS),setTimeout(()=>{this['element']['classList']['remove'](PROMPT_INPUT_HIGHLIGHT_CLASS);},PROMPT_INPUT_HIGHLIGHT_DURATION)));}['_createSubmitButton'](){const _0x3f5b88=new ButtonView(this['locale']);return _0x3f5b88['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}),_0x3f5b88['on']('execute',()=>{this['submit']();}),_0x3f5b88;}['setIsUploadInProgress'](_0x580116){this['isUploadInProgress']=_0x580116;}['_setUpAddContextButtonPositioning'](){const _0x46a0ae=this['locale'],_0x44436d=()=>{_0x347e1e['window']['requestAnimationFrame'](()=>{if(isVisible(this['element'])){const _0x13394b=new Rect(this['queryView']['fieldView']['element']),_0x3a755a=new Rect(this['_addContextButtonView']['element']),_0x2dc354=_0x13394b['width'],_0x32aaa4='rtl'===_0x46a0ae['uiLanguageDirection']?'right':'left';_0x13394b['excludeScrollbarsAndBorders']();const _0x7385e7=_0x2dc354-_0x13394b['width']+0x1;this['_addContextButtonView']['element']['style'][_0x32aaa4]='calc('+(_0x2dc354-_0x3a755a['width']-_0x7385e7)+'px\x20-\x20var(--ck-spacing-tiny))';}});};this['queryView']['fieldView']['on']('update',_0x44436d),this['on']('render',()=>{_0x44436d(),this['_queryViewResizeObserver']=new _0x14bc1d(this['queryView']['fieldView']['element'],()=>{_0x44436d();});});}}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','TERTIARY_BUTTON':'ck-ai-button-tertiary','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(_0x5cd47b){super(_0x5cd47b),this['set']('webSearchActive',!0x1),this['set']('reasoningActive',!0x1),this['set']('modelDisplayMode','selector'),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,'modelDisplayMode',_0x2512cb=>'selector'===_0x2512cb),this['_modelSelectionDropdown']['buttonView']['bind']('tooltip')['to'](this,'modelSelectorEnabled',_0x5d3ff7=>_0x5d3ff7?this['_modelSelectionDropdown']['buttonView']['label']:getTranslation$i(this['locale'],'AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP')),this['_modelSelectionDropdown']['bind']('isEnabled')['to'](this,'modelSelectorEnabled',_0x262e96=>_0x262e96),this['_webSearchButton']['bind']('isOn')['to'](this,'webSearchActive',_0x29b925=>_0x29b925),this['_webSearchButton']['bind']('tooltip')['to'](this,'webSearchActive',_0x323878=>getTranslation$i(this['locale'],_0x323878?'AI_CHAT_DISABLE_WEB_SEARCH':'AI_CHAT_ENABLE_WEB_SEARCH')),this['_reasoningButton']['bind']('isOn')['to'](this,'reasoningActive',_0x534bea=>_0x534bea),this['_reasoningButton']['bind']('tooltip')['to'](this,'reasoningActive',_0x105936=>getTranslation$i(this['locale'],_0x105936?'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'](_0x2258a2,_0x43c61f){if(_0x43c61f)this['set']('modelDisplayMode','hidden');else{const _0x231f2c=0x1===_0x2258a2['length'];this['set']('modelDisplayMode',_0x231f2c?'name':'selector');}if(this['_modelSelectionDropdownItems']['clear'](),_0x2258a2?.['length'])for(const _0x46dbc5 of _0x2258a2){const _0x420a65=new UIModel({'label':_0x46dbc5['name'],'withText':!0x0,'role':'menuitemradio','id':_0x46dbc5['id'],'model':_0x46dbc5});_0x420a65['bind']('isOn')['to'](this,'activeModelId',_0x291ab2=>_0x291ab2===_0x46dbc5['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x420a65,'labelView':new ModelButtonLabelView$1(this['locale'],_0x46dbc5)});}}['setWebSearch'](_0x480439){this['set']('webSearchActive',_0x480439);}['setReasoning'](_0x100f3e){this['set']('reasoningActive',_0x100f3e);}['setModel'](_0x3509c4){if(!_0x3509c4)return;this['activeModelId']=_0x3509c4['id'],this['activeModelName']=_0x3509c4['name']||_0x3509c4['id'],this['_modelSelectionDropdown']['buttonView']['set']('label',_0x3509c4['name']),this['_modelSelectionDropdown']['buttonView']['set']('tooltip',_0x3509c4['name']);const _0x1550da=_0x3509c4['capabilities']['webSearch']?.['enabled']??!0x1;this['set']('webSearchActive',!0x1),this['_webSearchButton']['set']('isOn',!0x1),this['_webSearchButton']['set']('isEnabled',_0x1550da),this['_webSearchButton']['set']('isVisible',_0x1550da);const _0x5241f6=_0x3509c4['capabilities']['reasoning']?.['enabled']??!0x1;this['set']('reasoningActive',!0x1),this['_reasoningButton']['set']('isOn',!0x1),this['_reasoningButton']['set']('isEnabled',_0x5241f6),this['_reasoningButton']['set']('isVisible',_0x5241f6);}['enableModelSelector'](){this['set']('modelSelectorEnabled',!0x0);}['disableModelSelector'](_0x43581f){this['set']('modelSelectorEnabled',!0x1),_0x43581f&&this['set']('modelDisplayMode','hidden');}['_createWebSearchButton'](){const _0x330b9c=new ButtonView();return _0x330b9c['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_SEARCH_WEB'),'icon':IconWeb,'class':CSS_CLASSES$5['CONTROLS_BUTTON'],'isToggleable':!0x0,'tooltipPosition':TOOLTIP_POSITION$3}),_0x330b9c['on']('execute',()=>{this['fire']('toggleWebSearch');}),_0x330b9c;}['_createReasoningButton'](){const _0x268011=new ButtonView();return _0x268011['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_REASONING'),'icon':IconBulb,'class':CSS_CLASSES$5['CONTROLS_BUTTON'],'isToggleable':!0x0,'tooltipPosition':TOOLTIP_POSITION$3}),_0x268011['on']('execute',()=>{this['fire']('toggleReasoning');}),_0x268011;}['_createCommandsButton'](){const _0x8de011=new ButtonView();return _0x8de011['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}),_0x8de011['extendTemplate']({'attributes':{'class':[CSS_CLASSES$5['COMMANDS_BUTTON']]}}),_0x8de011['on']('execute',()=>{console['log']('Commands\x20are\x20not\x20implemented\x20yet.'),alert('Commands\x20are\x20not\x20implemented\x20yet.');}),_0x8de011;}['_createModelSelectionDropdown'](){const _0x138e47=createDropdown(this['locale']);return _0x138e47['set']({'panelPosition':'ne','class':[CSS_CLASSES$5['MODEL_SELECTION']]}),_0x138e47['buttonView']['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP'),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':TOOLTIP_POSITION$3,'class':CSS_CLASSES$5['TERTIARY_BUTTON']}),this['listenTo'](_0x138e47,'execute',_0x3264fd=>{this['fire']('selectModel',_0x3264fd['source']['model']);}),_0x138e47;}['_createModelNameView'](){const _0x5c12b0=new ModelNameView$1(this['locale']);return _0x5c12b0['bind']('text')['to'](this,'activeModelName',_0x59ec85=>_0x59ec85??''),_0x5c12b0['bind']('isVisible')['to'](this,'modelDisplayMode',_0x1aeb03=>'name'===_0x1aeb03),_0x5c12b0;}}let ModelButtonLabelView$1=class extends ButtonLabelView{constructor(_0x5bb0b4,_0x1ba02c){super();const _0x586b2c=this['bindTemplate'],_0x32e3d9=this['createCollection']();this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x586b2c['to']('style'),'id':_0x586b2c['to']('id')},'children':[{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_NAME']]},'children':[{'text':_0x586b2c['to']('text')}]},{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_DESCRIPTION']]},'children':[{'tag':'span','children':[{'text':_0x1ba02c['description']}]}]},{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_CAPABILITIES']]},'children':_0x32e3d9}]}),_0x32e3d9['addMany'](this['_getCapabilityParts'](_0x5bb0b4,IconWeb,'AI_CHAT_SEARCH_WEB',_0x1ba02c['capabilities']['webSearch']?.['enabled']??!0x1)),_0x32e3d9['addMany'](this['_getCapabilityParts'](_0x5bb0b4,IconBulb,'AI_CHAT_REASONING',_0x1ba02c['capabilities']['reasoning']?.['enabled']??!0x1));}['_getCapabilityParts'](_0x5752e5,_0x14e2c8,_0x469b7b,_0xe0a9b4){const _0x3701d9=new IconView();_0x3701d9['content']=_0x14e2c8;const _0x3f03cb=new View(_0x5752e5);_0x3f03cb['setTemplate']({'tag':'span','children':[{'text':getTranslation$i(_0x5752e5,_0x469b7b)+':\x20'}]});const _0x4ae0e6=new View(_0x5752e5);return _0x4ae0e6['setTemplate']({'tag':'span','children':[{'text':getTranslation$i(_0x5752e5,_0xe0a9b4?'AI_CHAT_CAPABILITIES_YES':'AI_CHAT_CAPABILITIES_NO')}]}),[_0x3701d9,_0x3f03cb,_0x4ae0e6];}},ModelNameView$1=class extends View{constructor(_0xceb593){super(_0xceb593),this['set']('text',void 0x0),this['set']('isVisible',!0x0);const _0x4d4896=this['bindTemplate'];this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-chat-controls__model-name',_0x4d4896['if']('isVisible','ck-hidden',_0x9a0a53=>!_0x9a0a53)]},'children':[{'text':_0x4d4896['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(_0x135522){super(_0x135522),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['set']('withBackButton',!0x0),this['_setupTemplate'](),this['_setupEventHandlers'](),this['_setupKeystrokes']();}['render'](){super['render'](),this['_focusables']['forEach'](_0x36cb42=>{this['focusTracker']['add'](_0x36cb42['element']),this['keystrokes']['listenTo'](_0x36cb42['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'](_0x269d92){this['urlInputField']['errorText']=_0x269d92,this['_updateConfirmButtonState'](),this['fire']('refreshBalloon');}['clearError'](){this['urlInputField']['errorText']=null,this['_updateConfirmButtonState']();}['_createBackButton'](){const _0x46c31c=new ButtonView(this['locale']);return _0x46c31c['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']}),this['on']('change:withBackButton',(_0x436a83,_0x19d8b1,_0x494594)=>{_0x46c31c['set']({'class':['ck-button-icon\x20ck-button-back'+(_0x494594?'':'\x20ck-hidden')]});}),_0x46c31c;}['_createUrlInputField'](){const _0x2f9501=new LabeledFieldView(this['locale'],createLabeledInputText);return _0x2f9501['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_LABEL'),'class':'ck-labeled-field-view_empty'}),_0x2f9501['fieldView']['set']({'placeholder':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_PLACEHOLDER')}),_0x2f9501;}['_createConfirmButton'](){const _0x35e177=new ButtonView(this['locale']);return _0x35e177['set']({'icon':_0x2e9726,'tooltip':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_ADD_URL'),'tooltipPosition':TOOLTIP_POSITION$2,'class':'ck-button-icon','type':'submit','isEnabled':!0x1}),_0x35e177;}['_setupTemplate'](){const _0x16dee6=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'});_0x16dee6['children']['add'](this['backButton'],0x0),this['setTemplate']({'tag':'form','attributes':{'class':CSS_CLASSES$4['URL_FORM'],'tabindex':'-1'},'children':[_0x16dee6,{'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',_0xa6fdd5=>{_0xa6fdd5['stop'](),this['_handleSubmit']();});}['_setupKeystrokes'](){this['keystrokes']['set']('esc',(_0x5c64f6,_0x24f91a)=>{this['clear'](),this['fire']('cancel'),_0x24f91a();});}['_handleSubmit'](){const _0x4f9afb=this['getValue']()['trim']();_0x4f9afb?this['_isValidUrl'](_0x4f9afb)?(this['clearError'](),this['fire']('submitUrl',_0x4f9afb)):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 _0x120605=this['getValue']()['trim'](),_0x34f795=!!this['urlInputField']['errorText'];this['confirmButton']['isEnabled']=_0x120605['length']>0x0&&!_0x34f795;}['_isValidUrl'](_0x5c23d1){try{return!!new URL(_0x5c23d1);}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(_0x26fd87,_0x405d88){super(_0x26fd87),this['resource']=_0x405d88,this['set']('isInContext',!!_0x405d88['isInContext']),this['_titleView']=this['_createTitleView'](),this['_iconView']=this['_createIconView'](),this['_setupTemplate']();}['render'](){super['render']();}['getResourceIcon'](_0x4b72fe){if(_0x4b72fe['isInContext'])return _0x2e9726;switch(_0x4b72fe['type']){case AIContextItemType['DOCUMENT']:return IconDocument$1;case AIContextItemType['URL']:return IconLink;case AIContextItemType['FILE']:case AIContextItemType['TEXT']:return IconFileUpload;default:return IconDocumentOutline;}}['highlightText'](_0x41e71f){if(!_0x41e71f||''===_0x41e71f['trim']())return void this['_titleView']['highlightText'](null);const _0x260418=new RegExp(escapeRegExp$1(_0x41e71f),'gi');this['_titleView']['highlightText'](_0x260418);}['updateResourceState'](_0x20b1d9){this['resource']['isInContext']=_0x20b1d9,this['isInContext']=_0x20b1d9,this['_updateIcon']();}['_createTitleView'](){const _0x1c73d2=new HighlightedTextView();return _0x1c73d2['text']=this['resource']['label'],_0x1c73d2['extendTemplate']({'tag':'span','attributes':{'class':[CSS_CLASSES$3['ITEM_TITLE']]}}),_0x1c73d2;}['_createIconView'](){const _0x39f87d=new IconView();return _0x39f87d['content']=this['getResourceIcon'](this['resource']),_0x39f87d;}['_setupTemplate'](){const _0x5758d7=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':[CSS_CLASSES$3['ITEM'],_0x5758d7['if']('isVisible','ck-hidden',_0x3fe18e=>!_0x3fe18e),_0x5758d7['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':_0x5758d7['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(_0x3fd7d9,_0x5ed1a3){super(_0x3fd7d9),this['_source']=_0x5ed1a3,this['extendTemplate']({'attributes':{'class':[CSS_CLASSES$2['LIST']]}});}['setResources'](_0x9eafbe,_0x5a579e){this['items']['clear']();let _0x2af023=_0x9eafbe;if(this['_source']['useDefaultFiltering']&&_0x5a579e&&''!==_0x5a579e['trim']()){const _0x337588=new RegExp(_0x5a579e['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),'gi');_0x2af023=_0x9eafbe['filter'](_0x142fa0=>_0x337588['test'](_0x142fa0['label']));}for(const _0x55b445 of _0x2af023){const _0x1e2787=new AIChatResourceListItemView(this['locale'],_0x55b445);_0x1e2787['on']('execute',()=>{this['_handleResourceSelection'](this['_source'],_0x55b445);}),this['items']['add'](_0x1e2787);}this['_source']['useDefaultFiltering']&&this['highlightText'](_0x5a579e);}['highlightText'](_0x5e4524){this['_source']['useDefaultFiltering']&&this['items']['forEach'](_0x37c75d=>{_0x37c75d['highlightText'](_0x5e4524);});}['updateResourceState'](_0x588d5f,_0x208abb){for(const _0x331c2e of this['items']){const _0x134a08=_0x331c2e;_0x134a08['resource']['id']===_0x588d5f&&_0x134a08['updateResourceState'](_0x208abb);}}['_handleResourceSelection'](_0x3e66ae,_0x42991d){this['fire']('addResourceToContext',{'source':_0x3e66ae,'resource':_0x42991d});}}class AIChatContextResourcesSearchInputView extends LabeledFieldView{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0xb45a26){const t=_0xb45a26['t'],_0x5c7bd1={'showResetButton':!0x0,'showIcon':!0x0,'creator':createLabeledInputText,'label':getTranslation$i(_0xb45a26,'AI_CHAT_SEARCH_RESOURCES')};super(_0xb45a26,_0x5c7bd1['creator']),this['label']=_0x5c7bd1['label'],this['_viewConfig']=_0x5c7bd1,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0xb45a26,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x510a38){this['fire']('search',_0x510a38);}['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'](_0x45da35,t){this['resetButtonView']=new ButtonView(_0x45da35),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',_0x2cb39b=>!_0x2cb39b),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'];['_searchSection'];['_searchInputVisibleFrom'];['_resourcesListView'];['_skeletonLoader'];['_source'];['children'];['_latestLoadResourcesUid']=null;constructor(_0x199d9e,_0x5c16f9){super(_0x199d9e),this['_source']=_0x5c16f9['source'],this['_searchInputVisibleFrom']=_0x5c16f9['searchInputVisibleFrom']??0x7,this['set']('isLoading',!0x0),this['_searchView']=this['_createSearchView'](),this['_searchSection']=this['_createSearchSection'](),this['_resourcesListView']=this['_createResourcesListView'](),this['_skeletonLoader']=this['_createSkeletonView'](),this['children']=new ViewCollection([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 _0x3a7b86=new View(this['locale']);return _0x3a7b86['setTemplate']({'tag':'div','attributes':{'class':'ck\x20ck-search'},'children':[this['_searchView']]}),this['_searchView']['on']('search',(_0x5a3d1a,_0x5b2181)=>{this['loadResources'](_0x5b2181),this['_source']['useDefaultFiltering']&&this['_resourcesListView']['highlightText'](_0x5b2181);}),_0x3a7b86;}['_createResourcesListView'](){const _0x4ddf77=new AIChatContextResourcesListView(this['locale'],this['_source']);return _0x4ddf77['delegate']('addResourceToContext')['to'](this),_0x4ddf77['extendTemplate']({'attributes':{'class':this['bindTemplate']['if']('isLoading','ck-hidden')}}),_0x4ddf77;}['_createSkeletonView'](){const _0x39c6d6=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiChatResources']);return _0x39c6d6['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isLoading','ck-hidden',_0xfca59a=>!_0xfca59a)]}}),_0x39c6d6;}['render'](){super['render'](),this['loadResources']('');}['loadResources'](_0x14319c){const _0x4b2b51=uid();this['_latestLoadResourcesUid']=_0x4b2b51,this['fire']('loadSourceResources',{'sourceId':this['_source']['id'],'query':_0x14319c,'uid':_0x4b2b51}),this['isLoading']=!0x0;}['setResources'](_0x4ed941,_0x58c2a8){if(_0x58c2a8&&_0x58c2a8!==this['_latestLoadResourcesUid'])return;const _0x28eb68=this['_source']['useDefaultFiltering']?this['_searchView']['getQuery']():'';this['_resourcesListView']['setResources'](_0x4ed941,_0x28eb68),_0x4ed941['length']>=this['_searchInputVisibleFrom']&&!this['children']['has'](this['_searchSection'])&&this['children']['add'](this['_searchSection'],0x0),requestAnimationFrame(()=>{this['isLoading']=!0x1;});}['updateResourceState'](_0x4700ef,_0xb84428){this['_resourcesListView']['updateResourceState'](_0x4700ef,_0xb84428);}}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(_0x35a724,_0x507f0c,_0x58dbfd){this['_locale']=_0x35a724,this['_bodyCollection']=_0x507f0c,this['_config']=_0x58dbfd;}['showSourceResourcesBalloon']({source:_0x5e81b1,withBackButton:_0x3bdd69}){let _0x53336b=this['_sourceResourceBalloons']['get'](_0x5e81b1['id']);_0x53336b||(_0x53336b=this['_createSourceResourceBalloonPanel'](),this['_sourceResourceBalloons']['set'](_0x5e81b1['id'],_0x53336b),this['_setupSingleResourceBalloonClickOutsideHandler'](_0x53336b)),this['_addSourceResourceContent']({'balloonPanel':_0x53336b,'source':_0x5e81b1,'withBackButton':_0x3bdd69}),_0x53336b['show']();const _0x5a7ad0=this['_config']['getTargetElement']();_0x5a7ad0&&_0x53336b['pin']({'target':_0x5a7ad0,'limiter':this['_config']['getLimiterElement']()});}['populateSourceResourceBalloon'](_0x2bb468,_0x3e189e,_0x25a799){const _0x43dd8f=this['_sourceResourceBalloons']['get'](_0x2bb468);if(!_0x43dd8f)return;const _0x192c33=this['_getResourcesViewFromBalloon'](_0x43dd8f);_0x192c33&&(_0x192c33['setResources'](_0x3e189e,_0x25a799),_0x192c33['once']('change:isLoading',()=>{_0x43dd8f['pin']({'target':this['_config']['getTargetElement'](),'limiter':this['_config']['getLimiterElement']()});}));}['closeSourceResourceBalloon'](_0x254d58){const _0x3300fd=this['_sourceResourceBalloons']['get'](_0x254d58);_0x3300fd&&requestAnimationFrame(()=>{_0x3300fd['hide'](),this['_sourceResourceBalloons']['delete'](_0x254d58),this['_config']['onBalloonClosed']();});}['isAnyResourceBalloonVisible'](){for(const _0x5c977e of this['_sourceResourceBalloons']['values']())if(_0x5c977e['isVisible'])return!0x0;return!0x1;}['updateResourceState'](_0x25f256,_0x47e548,_0x1427d8){const _0x38e0d2=this['_sourceResourceBalloons']['get'](_0x25f256);if(!_0x38e0d2||!_0x38e0d2['isVisible'])return;const _0x3fc28a=this['_config']['getTargetElement']();if(!_0x3fc28a)return;_0x38e0d2['pin']({'target':_0x3fc28a,'limiter':this['_config']['getLimiterElement']()});const _0x56dd08=this['_getResourcesViewFromBalloon'](_0x38e0d2);_0x56dd08&&_0x56dd08['updateResourceState'](_0x47e548,_0x1427d8);}['destroy'](){for(const _0x1d76fa of this['_sourceResourceBalloons']['values']())_0x1d76fa['destroy']();this['_sourceResourceBalloons']['clear']();}['_createSourceResourceBalloonPanel'](){const _0x159ae4=new BalloonPanelView(this['_locale']);return _0x159ae4['extendTemplate']({'attributes':{'class':CSS_CLASSES$1['SOURCE_BALLOON_PANEL']}}),this['_bodyCollection']['add'](_0x159ae4),_0x159ae4;}['_addSourceResourceContent']({balloonPanel:_0x2743b9,source:_0x3776e5,withBackButton:_0xb68809}){_0x2743b9['content']['clear']();const _0x17cab3=this['_createBalloonHeader']({'balloonPanel':_0x2743b9,'source':_0x3776e5,'withBackButton':_0xb68809});_0x2743b9['content']['add'](_0x17cab3);const _0x43f27f=this['_createBalloonResourcesView'](_0x3776e5);_0x2743b9['content']['add'](_0x43f27f);}['_createBalloonHeader']({balloonPanel:_0x649f45,source:_0x2ba624,withBackButton:_0x262be9}){const _0x8c6f6=new FormHeaderView(this['_locale'],{'label':_0x2ba624['label'],'class':CSS_CLASSES$1['SOURCE_HEADER']});return _0x262be9&&_0x8c6f6['children']['add'](this['_createBackButton'](_0x649f45),0x0),_0x8c6f6;}['_createBackButton'](_0x10caf3){const _0x330c43=new ButtonView(this['_locale']);return _0x330c43['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']}),_0x330c43['on']('execute',()=>{_0x10caf3['hide'](),this['_config']['onBackToContext']();}),_0x330c43;}['_createBalloonResourcesView'](_0x9da114){const _0x47033d=new AIChatContextResourcesView(this['_locale'],{'source':_0x9da114,'searchInputVisibleFrom':this['_config']['searchInputVisibleFrom']});return _0x47033d['on']('loadSourceResources',(_0x3040b2,_0x36516c)=>{this['_config']['onLoadSourceResources'](_0x36516c);}),_0x47033d['on']('addResourceToContext',(_0x4e1861,_0x126ef0)=>{this['_config']['onResourceSelected'](_0x126ef0['source'],_0x126ef0['resource']),this['closeSourceResourceBalloon'](_0x9da114['id']);}),_0x47033d;}['_getResourcesViewFromBalloon'](_0x19b908){const _0x1dcd9f=_0x19b908['content']['get'](0x1);return _0x1dcd9f instanceof AIChatContextResourcesView?_0x1dcd9f:null;}['_setupSingleResourceBalloonClickOutsideHandler'](_0x49f326){clickOutsideHandler({'emitter':_0x49f326,'contextElements':[_0x49f326['element']],'callback':()=>{_0x49f326['hide'](),this['_config']['onBalloonClosed']();},'activator':()=>_0x49f326['isVisible']});}}const CONTEXT_PANEL_VIEW_EVENT_NAMES=['addDocumentToContext','addFileToContext','addUrlToContext','addResourceToContext','removeContextItem','loadSourceResources','executeCustomItemCallback'],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'];['_hasExactlyOneSource']=!0x1;['bodyCollection'];constructor(_0x45669c,_0x4033f6){super(_0x45669c),this['bodyCollection']=_0x4033f6['bodyCollection'],this['_currentContextsChips']=this['createCollection'](),this['_conversationContextsChips']=this['createCollection'](),this['addContextButtonView']=this['_createAddContextButtonView'](_0x45669c),this['_addContextBalloonPanelView']=this['_createAddContextBalloonPanelView'](_0x45669c),this['_urlBalloonPanelView']=this['_createUrlBalloonPanelView'](_0x45669c),this['_resourcesBalloonView']=this['_createResourcesBalloonView'](_0x45669c,_0x4033f6);const _0xf9ea8={'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(_0x45669c,this['_currentContextsChips'],_0xf9ea8,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'](_0x163402,_0x50a54c){const _0x3bd4a1=this['_createContextButton'](_0x163402,'current',!0x0,_0x50a54c);this['_addContextToCollection'](_0x3bd4a1,this['_currentContextsChips']),this['_overflowManager']['reorganizeChips']();}['removeContextItem'](_0x13d9db){this['_removeContextFromCollection'](_0x13d9db,this['_currentContextsChips']),this['_removeContextFromCollection'](_0x13d9db,this['_overflowManager']['overflowChips']),this['_overflowManager']['reorganizeChips']();}['setContextItemLoading'](_0x44a4f6,_0x94dfef){let _0xe77bce=this['_currentContextsChips']['find'](_0x542c59=>_0x542c59['id']===_0x44a4f6);_0xe77bce||(_0xe77bce=this['_overflowManager']['overflowChips']['find'](_0x53a97b=>_0x53a97b['id']===_0x44a4f6)),_0xe77bce&&(_0xe77bce['isLoading']=_0x94dfef);}['setConversationContext'](_0x59b1e0){this['_conversationContextsChips']['clear']();for(const _0x47fbe8 of _0x59b1e0){const _0xd4a3ce=this['_createContextButton'](_0x47fbe8,'conversation',!0x1,!0x1);this['_addContextToCollection'](_0xd4a3ce,this['_conversationContextsChips']);}}['clearCurrentContextItems'](){this['_currentContextsChips']['clear'](),this['_overflowManager']['clear']();}['clearConversationContextItems'](){this['_conversationContextsChips']['clear']();}['updateResourceState'](_0x37326b,_0x2d8f97,_0x45318d){this['_resourcesBalloonView']['updateResourceState'](_0x37326b,_0x2d8f97,_0x45318d);}['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']({source:_0x2cca5c,withBackButton:_0x1f2efd}){this['_resourcesBalloonView']['showSourceResourcesBalloon']({'source':_0x2cca5c,'withBackButton':_0x1f2efd}),this['addContextButtonView']['isOn']=!0x0;}['populateSourceResourceBalloon'](_0x5e4cfd,_0x21967f,_0x2a9331,_0x58eb28){this['_resourcesBalloonView']['populateSourceResourceBalloon'](_0x5e4cfd,_0x2a9331,_0x58eb28);}['closeSourceResourceBalloon'](_0x411c06){this['_resourcesBalloonView']['closeSourceResourceBalloon'](_0x411c06),this['addContextButtonView']['isOn']=!0x1;}['setAddContextOptions'](_0x2ecaf8){this['_setBalloonPanelContent'](this['_addContextBalloonPanelView'],this['locale'],_0x2ecaf8),this['_setAddContextButtonEnabled'](_0x2ecaf8);}['_setAddContextButtonEnabled'](_0x5a4042){const _0x1afb65=!_0x5a4042['document']['isHidden']&&_0x5a4042['document']['enabled'],_0x4cbc9f=_0x5a4042['urls']['enabled'],_0x5e811d=_0x5a4042['files']['enabled'],_0x2c86b2=_0x5a4042['sources']['length']>0x0,_0x5c610e=_0x5a4042['customItems']&&_0x5a4042['customItems']['length']>0x0;this['addContextButtonView']['isEnabled']=_0x1afb65||_0x4cbc9f||_0x5e811d||_0x2c86b2||_0x5c610e;}['_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'](_0xe3c5bb){const _0x78537d=new ButtonView(_0xe3c5bb);return _0x78537d['set']({'label':getTranslation$i(_0xe3c5bb,'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}),_0x78537d;}['_createAddContextBalloonPanelView'](_0x46835c){return this['_createBaseBalloonPanel'](_0x46835c,CSS_CLASSES['ADD_CONTEXT_BALLOON']);}['_createUrlBalloonPanelView'](_0x345275){const _0x5e197b=this['_createBaseBalloonPanel'](_0x345275,CSS_CLASSES['URL_BALLOON']);return this['_addUrlContent'](_0x5e197b,_0x345275),_0x5e197b;}['_createResourcesBalloonView'](_0x522eb3,_0x1bc062){const _0x321e0d={'searchInputVisibleFrom':_0x1bc062['searchInputVisibleFrom'],'onBackToContext':()=>{this['showAddContextBalloonPanel'](),this['_addContextBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS});},'onResourceSelected':(_0xdeb8d1,_0x6bf21a)=>{this['fire']('addResourceToContext',{'source':_0xdeb8d1,'resource':_0x6bf21a});},'onLoadSourceResources':_0x596aab=>{this['fire']('loadSourceResources',_0x596aab);},'onBalloonClosed':()=>{this['addContextButtonView']['isOn']=!0x1;},'getLimiterElement':()=>this['_getLimiterElement'](),'getTargetElement':()=>this['addContextButtonView']['element']};return new AIChatResourcesBalloonView(_0x522eb3,_0x1bc062['bodyCollection'],_0x321e0d);}['_getLimiterElement'](){return this['element']?.['closest']('.'+CSS_CLASSES['CHAT_CONTAINER'])||document['body'];}['_createBaseBalloonPanel'](_0x24e95f,_0x20d1ef){const _0x415043=new BalloonPanelView(_0x24e95f);return _0x415043['extendTemplate']({'attributes':{'class':_0x20d1ef}}),this['bodyCollection']['add'](_0x415043),_0x415043;}['_setBalloonPanelContent'](_0x3344e7,_0x5e86eb,_0x484221){if(_0x3344e7['content']['clear'](),!_0x484221['document']['isHidden']&&_0x484221['document']['enabled']){const _0x5240a3=this['_createBalloonButton'](_0x5e86eb,{'label':getTranslation$i(_0x5e86eb,'AI_CHAT_CONTEXT_CURRENT_DOCUMENT'),'icon':IconDocument$1});_0x5240a3['on']('execute',()=>{this['fire']('addDocumentToContext'),this['hideAddContextBalloonPanel']();}),_0x3344e7['content']['add'](_0x5240a3);}if(_0x484221['urls']['enabled']){const _0x338266=this['_createBalloonButton'](_0x5e86eb,{'label':getTranslation$i(_0x5e86eb,'AI_CHAT_CONTEXT_URL_LABEL'),'icon':IconLink});_0x338266['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['showUrlBalloonPanel'](),this['_urlBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS}),this['_urlInputView']['focus']();}),_0x3344e7['content']['add'](_0x338266);}if(_0x484221['files']['enabled']){const _0x2217e7=new FileDialogButtonView(_0x5e86eb);_0x2217e7['set']({'label':getTranslation$i(_0x5e86eb,'AI_CHAT_CONTEXT_FILE_LABEL'),'icon':IconBrowseFiles,'withText':!0x0,'tooltip':!0x0,'class':CSS_CLASSES['BALLOON_BUTTON'],'allowMultipleFiles':!0x0}),_0x2217e7['on']('execute',()=>{this['hideAddContextBalloonPanel']();}),_0x2217e7['on']('done',(_0x3858e1,_0x551f02)=>{this['fire']('addFileToContext',_0x551f02);}),_0x2217e7['tooltip']=!0x0,_0x3344e7['content']['add'](_0x2217e7);}for(const _0x310e0b of _0x484221['sources']){const _0x78f27a=this['_createBalloonButton'](_0x5e86eb,{'label':_0x310e0b['label'],'icon':_0x310e0b['icon']||IconDocumentOutline,'type':'source'});_0x3344e7['content']['add'](_0x78f27a),_0x78f27a['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['_showSourceResourcesBalloon']({'source':_0x310e0b,'withBackButton':!this['_hasExactlyOneSource']});});}for(const _0x2a9d13 of _0x484221['customItems']||[]){const _0x4b6319=this['_createBalloonButton'](_0x5e86eb,{'label':_0x2a9d13['label'],'icon':_0x2a9d13['icon']||IconDocumentOutline,'type':'customItem'});_0x3344e7['content']['add'](_0x4b6319),_0x4b6319['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['fire']('executeCustomItemCallback',_0x2a9d13);});}this['_hasExactlyOneSource']=0x1===_0x3344e7['content']['length'],this['_urlInputView']['withBackButton']=!this['_hasExactlyOneSource'];}['_addUrlContent'](_0x570c5f,_0x38fc17){this['_urlInputView']=new AIChatContextPanelUrlInputView(_0x38fc17),this['_urlInputView']['on']('submitUrl',(_0xcf5612,_0x184747)=>{this['_handleUrlSubmit'](_0x184747);}),this['_urlInputView']['on']('cancel',()=>{this['hideUrlBalloonPanel'](),this['_hasExactlyOneSource']||(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});}),_0x570c5f['content']['add'](this['_urlInputView']);}['_createBalloonButton'](_0x311179,_0x398f54){const _0x3b49ce='source'===_0x398f54['type']?new SourcesBalloonButtonView(_0x311179):new ButtonView(_0x311179);return _0x3b49ce['set']({'label':_0x398f54['label'],'icon':_0x398f54['icon'],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':TOOLTIP_POSITION,'class':CSS_CLASSES['BALLOON_BUTTON']}),_0x3b49ce;}['_setupAllBalloonClickOutsideHandlers'](){this['_setupAddContextBalloonClickOutsideHandler'](),this['_setupUrlBalloonClickOutsideHandler']();}['_setupUrlBalloonClickOutsideHandler'](){clickOutsideHandler({'emitter':this['_urlBalloonPanelView'],'contextElements':[this['_urlBalloonPanelView']['element']],'callback':()=>{this['hideUrlBalloonPanel']();},'activator':()=>this['_urlBalloonPanelView']['isVisible']});}['_toggleAddContextBalloon'](_0x3252fd){const _0x3d720d=this['_addContextBalloonConfig'];_0x3d720d['buttonView']['isOn']=_0x3252fd,_0x3252fd?_0x3d720d['balloonView']['show']():_0x3d720d['balloonView']['hide']();}['_setupAddContextBalloonClickOutsideHandler'](){const {balloonView:_0x593fd0,buttonView:_0x26ff04,hideMethod:_0x3e7fb6}=this['_addContextBalloonConfig'];clickOutsideHandler({'emitter':_0x593fd0,'contextElements':[_0x593fd0['element'],_0x26ff04['element']],'callback':()=>{_0x3e7fb6();},'activator':()=>_0x26ff04['isOn']&&!this['_urlBalloonPanelView']['isVisible']&&!this['_resourcesBalloonView']['isAnyResourceBalloonVisible']()});}['_createContextButton'](_0x4eaa8e,_0x3b56a2,_0x322be1=!0x1,_0x2ae4de=!0x1){const _0x128670='conversation'===_0x3b56a2||!0x0===_0x4eaa8e['isReadOnly'],_0x29830b=new AIChatContextItemButtonView(this['locale'],_0x4eaa8e,_0x128670,_0x322be1,_0x2ae4de);return _0x128670||_0x29830b['on']('removeContextItemChip',()=>{this['fire']('removeContextItem',_0x29830b['id']);}),_0x29830b;}['_addContextToCollection'](_0x544c71,_0x37f23b){_0x37f23b['add'](_0x544c71,0x0);}['_removeContextFromCollection'](_0x376fb6,_0x499098){const _0xbaf52a=_0x499098['find'](_0x24b07a=>_0x24b07a['id']===_0x376fb6);_0xbaf52a&&_0x499098['remove'](_0xbaf52a);}['_handleAddContextButtonClick'](){this['addContextButtonView']['isOn']?this['hideAddContextBalloonPanel']():(this['showAddContextBalloonPanel'](),this['_addContextBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS}),this['_hasExactlyOneSource']&&this['_addContextBalloonPanelView']['content']['get'](0x0)?.['fire']('execute'));}['_handleUrlSubmit'](_0x17cb4c){this['_urlInputView']['clear'](),this['hideUrlBalloonPanel'](),this['fire']('addUrlToContext',_0x17cb4c);}}class SourcesBalloonButtonView extends ButtonView{['arrowView'];constructor(_0x3b914c){super(_0x3b914c),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 _0x485f29=new IconView();return _0x485f29['content']=IconDropdownArrow,_0x485f29['extendTemplate']({'attributes':{'class':CSS_CLASSES['BALLOON_BUTTON_SOURCE']+'__arrow'}}),_0x485f29;}}class AIChatControlsLoaderView extends View{['_cancelButtonView'];['_loaderView'];constructor(_0x2ae812){super(_0x2ae812),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 _0x566abd=new ButtonView(this['locale']);return _0x566abd['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_STOP_GENERATING'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-button-stop-generating','icon':IconStop}),_0x566abd['on']('execute',()=>{this['fire']('abortPromptStream');}),_0x566abd;}['_createLoaderView'](){const _0x46bc33=new View(this['locale']);return _0x46bc33['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')}]}),_0x46bc33;}}class AIChatControlsView extends View{['_contextPanelView'];['_promptInputView'];['_promptCapabilitiesView'];['_loaderView'];['_modelUnavailableMessageView'];['_shouldRestorePromptInputFocus'];constructor(_0x5424bf,_0x409981){super(_0x5424bf),this['_contextPanelView']=this['_createContextPanelView'](_0x5424bf,{'bodyCollection':_0x409981['bodyCollection'],'searchInputVisibleFrom':_0x409981['contextResourcesSearchInputVisibleFrom']}),this['_promptInputView']=this['_createPromptInputView'](_0x5424bf),this['_promptCapabilitiesView']=this['_createPromptCapabilitiesView'](_0x5424bf),this['_loaderView']=this['_createLoaderView'](_0x5424bf),this['_modelUnavailableMessageView']=this['_createModelUnavailableMessageView'](_0x5424bf),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 _0x4c5f2c=this['bindTemplate'];this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-ai-chat-controls',_0x4c5f2c['if']('isDisabled','ck-ai-chat-controls-disabled')]},'children':[{'tag':'div','attributes':{'class':[_0x4c5f2c['if']('isLoading','ck-hidden',_0x310842=>_0x310842||!this['isModelAvailable']),_0x4c5f2c['if']('isModelAvailable','ck-hidden',_0x4a60d0=>!_0x4a60d0||this['isLoading'])]},'children':[this['_contextPanelView'],this['_promptInputView'],this['_promptCapabilitiesView']]},{'tag':'div','attributes':{'class':[_0x4c5f2c['if']('isLoading','ck-hidden',_0x1f41c7=>!_0x1f41c7)]},'children':[this['_loaderView']]},{'tag':'div','attributes':{'class':[_0x4c5f2c['if']('isModelAvailable','ck-hidden',_0xf2aded=>_0xf2aded)]},'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'](_0x2fc0a1,_0x57e138){return new AIChatContextPanelView(_0x2fc0a1,_0x57e138);}['_createPromptInputView'](_0xc2e87c){return new AIChatPromptInputView(_0xc2e87c,this['_contextPanelView']['addContextButtonView']);}['_createPromptCapabilitiesView'](_0x3cd4f0){return new AIChatPromptCapabilitiesView(_0x3cd4f0);}['_createLoaderView'](_0x3abe07){return new AIChatControlsLoaderView(_0x3abe07);}['_createModelUnavailableMessageView'](_0x478cdd){const _0x131822=new AIChatModelUnavailableMessageView(_0x478cdd);return _0x131822['delegate']('startConversation')['to'](this),_0x131822;}['_handlePromptInputFocus'](_0xe62b9c,_0x41f276,_0x420b7d){_0x420b7d?this['_shouldRestorePromptInputFocus']=!0x0:this['_shouldRestorePromptInputFocus']&&this['_promptInputView']['focus']();}['addContextItem'](_0x2e1388,_0x2514e8){this['_contextPanelView']['addContextItem'](_0x2e1388,_0x2514e8);}['removeContextItem'](_0x273e78){this['_contextPanelView']['removeContextItem'](_0x273e78);}['setContextItemLoading'](_0x208a7b,_0x212b88){this['_contextPanelView']['setContextItemLoading'](_0x208a7b,_0x212b88);}['setIsUploadInProgress'](_0x34f640){this['_promptInputView']['setIsUploadInProgress'](_0x34f640);}['setConversationContext'](_0x2b0277){this['_contextPanelView']['setConversationContext'](_0x2b0277);}['clearPendingContextUI'](){this['_contextPanelView']['clearCurrentContextItems']();}['clearConversationContextUI'](){this['_contextPanelView']['clearConversationContextItems']();}['updateResourceState'](_0x5b0001,_0x5a96ff,_0xb1c813){this['_contextPanelView']['updateResourceState'](_0x5b0001,_0x5a96ff,_0xb1c813);}['setWebSearch'](_0x3153ac){this['_promptCapabilitiesView']['setWebSearch'](_0x3153ac);}['setReasoning'](_0x1a4061){this['_promptCapabilitiesView']['setReasoning'](_0x1a4061);}['resetMessageInput'](){this['_promptInputView']['reset']();}['setAddContextOptions'](_0x1c7644){this['_contextPanelView']['setAddContextOptions'](_0x1c7644);}['setInputPlaceholder'](_0x4d23e6){this['_promptInputView']['setPlaceholderText'](_0x4d23e6);}['setModelList'](_0x11181d,_0x30ff49){this['_promptCapabilitiesView']['setModelList'](_0x11181d,_0x30ff49);}['setModel'](_0x51dde9){_0x51dde9?(this['isModelAvailable']=!0x0,this['_promptCapabilitiesView']['setModel'](_0x51dde9)):this['isModelAvailable']=!0x1;}['enableModelSelector'](){this['_promptCapabilitiesView']['enableModelSelector']();}['disableModelSelector'](_0x377689){this['_promptCapabilitiesView']['disableModelSelector'](_0x377689);}['populateSourceResourceBalloon'](_0x2bb241,_0x2bd600,_0x219c13,_0x2e2710){this['_contextPanelView']['populateSourceResourceBalloon'](_0x2bb241,_0x2bd600,_0x219c13,_0x2e2710);}['closeSourceResourceBalloon'](_0x5c354c){this['_contextPanelView']['closeSourceResourceBalloon'](_0x5c354c);}['focusPromptInput'](_0x39a2c3=!0x1){this['_promptInputView']['focus'](_0x39a2c3);}['setPromptInputValue'](_0x2d4131){this['_promptInputView']['queryView']['fieldView']['reset'](),this['_promptInputView']['queryView']['fieldView']['value']=_0x2d4131;}}class AIChatModelUnavailableMessageView extends View{constructor(_0x30371f){super(_0x30371f);const _0x278413=new ButtonView(_0x30371f);_0x278413['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON'),'withText':!0x0,'class':['ck-ai-chat-controls__start-new-chat-button'],'tooltip':''}),_0x278413['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'},_0x278413]}]});}}class AIChatHeaderView extends FormHeaderView{['conversationStartButton'];['resizeButton'];constructor(_0x308c9b,_0x4342eb){super(_0x308c9b,{'label':getTranslation$i(_0x308c9b,'AI_CHAT_HEADING'),'class':'ck-ai-header\x20ck-ai-header_chat','icon':IconAIChat}),this['set']('isMaximized',!0x1),this['conversationStartButton']=this['_createStartConversationButton'](_0x308c9b),this['children']['add'](this['conversationStartButton']),_0x4342eb&&(this['resizeButton']=createResizeButton(_0x308c9b,this),this['children']['add'](this['resizeButton']));}['_createStartConversationButton'](_0x5b9b46){const _0x20b67c=new ButtonView(_0x5b9b46);return _0x20b67c['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_LABEL_NEW_CHAT'),'withText':!0x0,'icon':IconPlus,'class':'ck-ai-chat__start-conversation'}),_0x20b67c['on']('execute',()=>{this['fire']('startConversation');}),_0x20b67c;}}class AIDisclaimerView extends View{constructor(_0x5f1c1b){super(_0x5f1c1b),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-disclaimer']},'children':[{'tag':'p','attributes':{'class':['ck','ck-ai-disclaimer__content']},'children':[{'text':getTranslation$i(_0x5f1c1b,'AI_DISCLAIMER_TEXT')}]}]});}}class AIChatView extends View{['chatHeader'];['chatFeed'];['chatControls'];['chatDisclaimer'];['_bodyCollection'];constructor(_0x19cadb,_0x4e6b1f){super(_0x19cadb),this['_bodyCollection']=new BodyCollection(_0x19cadb),this['_bodyCollection']['attachToDom'](),this['chatHeader']=new AIChatHeaderView(_0x19cadb,_0x4e6b1f['showResizeButton']),this['chatHeader']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['chatFeed']=new AIChatFeedView(_0x19cadb,this['_bodyCollection']),this['chatFeed']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['chatControls']=new AIChatControlsView(_0x19cadb,{'bodyCollection':this['_bodyCollection'],'contextResourcesSearchInputVisibleFrom':_0x4e6b1f['contextResourcesSearchInputVisibleFrom']}),this['chatControls']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['chatDisclaimer']=new AIDisclaimerView(_0x19cadb),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-chat','ck-rounded-corners'],'dir':_0x19cadb['uiLanguageDirection']},'children':[this['chatHeader'],this['chatFeed'],this['chatControls'],this['chatDisclaimer']]});}['populateSourceResourceBalloon'](_0x39a885,_0x327982,_0x25de21,_0x3ac722){this['chatControls']['populateSourceResourceBalloon'](_0x39a885,_0x327982,_0x25de21,_0x3ac722);}['closeSourceResourceBalloon'](_0x42b353){this['chatControls']['closeSourceResourceBalloon'](_0x42b353);}['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(_0x973df5){super(_0x973df5);const _0x3553ad=this['context']['plugins']['get']('AITabs');this['set']('isBusy',!0x1),this['_promiseQueue']=new PromiseQueue(),this['_view']=new AIChatView(this['context']['locale'],{'showResizeButton':_0x3553ad['showResizeButton'],'contextResourcesSearchInputVisibleFrom':this['context']['config']['get']('ai.chat.context.searchInputVisibleFrom')}),this['_view']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['_view']['on']('toggleSuggestionDisplayMode',(_0x37f47e,{showDiff:_0x47467d})=>{this['showDiff']=_0x47467d;}),_0x3553ad['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',_0xdd147d=>_0xdd147d),this['_view']['chatFeed']['bind']('isPending')['to'](this,'isBusy',_0x4487a6=>_0x4487a6),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder']()),this['bind']('isModelAvailable')['to'](this['_view']['chatControls'],'isModelAvailable');}['destroy'](){super['destroy'](),this['_titleAnimationInterval']&&clearInterval(this['_titleAnimationInterval']);}['createConversation'](_0x3f4438){const _0x368ac8=this['context']['config']['get']('ai.chat.welcomeMessage')??getTranslation$i(this['context']['locale'],'AI_CHAT_WELCOME_MESSAGE');this['_view']['chatFeed']['clear'](),this['_view']['chatControls']['enableModelSelector'](),this['_view']['chatControls']['setModelList'](_0x3f4438['availableModels'],!this['context']['config']['get']('ai.models.showModelSelector')),this['addFeedItemStaticMessage']({'id':'conversation-start','staticMessage':_0x368ac8}),this['fire']('conversationCreated');}['addFeedItemStaticMessage']({id:_0x47898a,staticMessage:_0xa6cfcd}){this['_view']['chatFeed']['addItem']('ai-reply',{'id':_0x47898a,'initialContent':'<p>'+_0xa6cfcd+'</p>'});}['addFeedItemUserMessage'](_0x24eadb){const _0x234f25=_0x24eadb['attributes']?.['displayedPrompt']||_0x24eadb['userMessage'];this['_view']['chatFeed']['addItem']('user-message',{'contextItems':Array['from'](_0x24eadb['contextItems']['values']()),'initialContent':'<p>'+_0x234f25+'</p>','id':_0x24eadb['id']});}['addFeedItemError']({errorMessage:_0x14df06,id:_0x204a7b}){this['_view']['chatFeed']['addItem']('error-message',{'initialContent':'<p>'+_0x14df06+'</p>','id':_0x204a7b});}['addFeedItemAIReply'](_0x4deee2){return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('ai-reply',{'id':_0x4deee2['interactionId']+':'+_0x4deee2['id']}),this['clearLoadingMessage']();});}async['addFeedItemAISuggestion'](_0xf3bc29){const _0x2940aa=getEditorFromContext(this['context']);let _0x2b1dc6=_0x2940aa['config']['get']('ai.availableReplyActions')||[...AI_REPLY_ACTIONS];if(_0x2940aa['plugins']['has']('TrackChanges')){if(!this['_isTrackChangesCommandValueBound']){this['_isTrackChangesCommandValueBound']=!0x0;const _0x3fad00=_0x2940aa['commands']['get']('trackChanges');this['_view']['chatFeed']['bind']('isTrackChangesOn')['to'](_0x3fad00,'value');}}else _0x2b1dc6=_0x2b1dc6['filter'](_0x95bffd=>'insertSuggestion'!=_0x95bffd);return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('ai-suggestion-reply',{'id':_0xf3bc29['interactionId']+':'+_0xf3bc29['id'],'areActionsDisabled':_0xf3bc29['areActionsDisabled'],'showDiff':this['showDiff'],'availableActions':_0x2b1dc6}),this['clearLoadingMessage']();});}['addFeedInteractionHeader'](_0x23e8d5,_0x411791){const _0x47c642=this['_view']['chatFeed']['children']['last'];if(_0x47c642 instanceof AIChatFeedInteractionHeaderView)return this['_view']['chatFeed']['children']['remove'](_0x47c642),void this['_view']['chatFeed']['addItem']('interaction-header',{'id':_0x23e8d5['id'],'capabilities':{'isWebSearchEnabled':_0x47c642['capabilities']['isWebSearchEnabled']||_0x411791['isWebSearchEnabled'],'isReasoningEnabled':_0x47c642['capabilities']['isReasoningEnabled']||_0x411791['isReasoningEnabled']}});this['_view']['chatFeed']['addItem']('interaction-header',{'id':_0x23e8d5['id'],'capabilities':_0x411791});}async['addFeedItemCustomElement'](_0x333865,_0x313857){let _0x6a0298;return await this['_promiseQueue']['enqueue'](async()=>{_0x6a0298=this['_view']['chatFeed']['addItem']('custom-element',{'content':_0x333865,'id':_0x313857});}),_0x6a0298;}['removeFeedItem'](_0x179e54){this['_view']['chatFeed']['removeItem'](_0x179e54);}['hasFeedItem'](_0xbd50ca){return this['_view']['chatFeed']['hasItem'](_0xbd50ca);}['updateFeedInteractionHeader'](_0x5306b9){const _0x35428f=this['_view']['chatFeed']['children']['find'](_0x3f82a3=>_0x3f82a3['options']['id']==_0x5306b9['id']&&_0x3f82a3 instanceof AIChatFeedInteractionHeaderView);_0x35428f&&_0x35428f['set']('isVisible',_0x5306b9['isVisible']);}async['updateFeedItemAIReplyContent'](_0x3232f3){const _0x284c07=_0x3232f3['renderingStrategy']||this['feedItemRenderingStrategy'];return this['_promiseQueue']['enqueue'](async _0x2db469=>{await this['_view']['chatFeed']['updateReplyItem']({..._0x3232f3,'abortSignal':_0x2db469,'renderingStrategy':_0x284c07}),_0x3232f3['isDone']&&this['markFeedItemAsDone'](_0x3232f3['id']);});}['updateFeedItemAIReplySources'](_0x4e6abb,_0xcc9a80){this['_view']['chatFeed']['updateWebSources'](_0x4e6abb,_0xcc9a80);}async['updateFeedItemAIReplySuggestionContent'](_0x4af410){const _0x5c68b4=_0x4af410['renderingStrategy']||this['feedItemRenderingStrategy'];return this['_promiseQueue']['enqueue'](async _0x1c8654=>{await this['_view']['chatFeed']['updateSuggestionItem']({..._0x4af410,'abortSignal':_0x1c8654,'renderingStrategy':_0x5c68b4}),_0x4af410['isDone']&&this['markFeedItemAsDone'](_0x4af410['id']);});}['updateFeedItemAIReplySuggestionPartState'](_0x2e3b11){this['_view']['chatFeed']['updateSuggestionPartState'](_0x2e3b11);}['setFeedItemAIReplySuggestionPartActive'](_0x5f8dd7){this['_view']['chatFeed']['setSuggestionPartActive'](_0x5f8dd7);}['markFeedItemAsDone'](_0x2c3116){this['_view']['chatFeed']['markItemAsDone'](_0x2c3116);}['removeFeedInteraction'](_0x320fc5){this['_view']['chatFeed']['getItemIds']()['filter'](_0x34b953=>_0x34b953['startsWith'](_0x320fc5))['forEach'](_0x571bd9=>this['_view']['chatFeed']['removeItem'](_0x571bd9));}['startInteraction'](){const _0x309c15=this['prepareLoadingMessage']({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this['setLoadingMessage'](_0x309c15),this['_view']['chatControls']['disableModelSelector'](!this['context']['config']['get']('ai.models.showModelSelector')),this['isBusy']=!0x0,this['_view']['chatFeed']['startAutoScroll']();}['stopInteraction'](_0x189d06){this['_promiseQueue']['abort'](),this['_view']['chatFeed']['getItemIds']()['filter'](_0x571292=>_0x571292['startsWith'](_0x189d06['id']))['forEach'](_0x128fc0=>this['markFeedItemAsDone'](_0x128fc0)),this['isBusy']=!0x1,this['_view']['chatFeed']['stopAutoScroll']();}async['finishInteraction'](){return this['_promiseQueue']['queueEmptyPromise']['then'](()=>{this['isBusy']=!0x1,this['_view']['chatFeed']['stopAutoScroll']();});}['addContextItem'](_0x34f966,_0x249921){this['_view']['chatControls']['addContextItem'](_0x34f966,_0x249921);}['removeContextItem'](_0x298d97){this['_view']['chatControls']['removeContextItem'](_0x298d97);}['setContextItemLoading'](_0x13a0cd,_0x28e1ce){this['_view']['chatControls']['setContextItemLoading'](_0x13a0cd,_0x28e1ce);}['setIsUploadInProgress'](_0x3c6102){this['_view']['chatControls']['setIsUploadInProgress'](_0x3c6102);}['setConversationContext'](_0x29b073){this['_view']['chatControls']['setConversationContext'](_0x29b073);}['clearPendingContextUI'](){this['_view']['chatControls']['clearPendingContextUI']();}['clearConversationContextUI'](){this['_view']['chatControls']['clearConversationContextUI']();}['updateResourceState'](_0x1a168c,_0x5be394,_0x313deb){this['_view']['chatControls']['updateResourceState'](_0x1a168c,_0x5be394,_0x313deb);}['resetMessageInput'](){this['_view']['chatControls']['resetMessageInput'](),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder']());}['setAddContextOptions'](_0x1e7d50){this['_view']['chatControls']['setAddContextOptions'](_0x1e7d50);}['updateCapabilities'](_0xa4be5b){this['_view']['chatControls']['setWebSearch'](_0xa4be5b['isWebSearchEnabled']),this['_view']['chatControls']['setReasoning'](_0xa4be5b['isReasoningEnabled']),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder'](_0xa4be5b));}['setSelectedModel'](_0x449772,_0xdf11cb){this['_view']['chatControls']['setModel'](_0x449772),_0xdf11cb&&this['_view']['chatControls']['disableModelSelector'](!0x1);}['setFeedItemRenderingStrategy'](_0x2ada2f){this['feedItemRenderingStrategy']=_0x2ada2f;}['toggleLoadingSkeleton'](_0x10dec4){this['_view']['chatFeed']['toggleLoadingSkeleton'](_0x10dec4);}['resetConversationTitle'](){this['setConversationTitle'](getTranslation$i(this['context']['locale'],'AI_CHAT_HEADING'));}['setConversationTitle'](_0x466010,_0x229040=!0x1){if(_0x229040&&!_isMotionReduced()&&_0x466010['length'])return this['_view']['chatHeader']['label']='',void this['_animateConversationTitle'](_0x466010);this['_view']['chatHeader']['label']=_0x466010;}['setLoadingMessage'](_0x199ab5){this['_view']['chatFeed']['setLoadingMessage'](_0x199ab5);}['clearLoadingMessage'](){this['_view']['chatFeed']['setLoadingMessage']('');}['_animateConversationTitle'](_0x1792d8){let _0x548e3f=0x0;clearInterval(this['_titleAnimationInterval']),this['_titleAnimationInterval']=setInterval(()=>{this['_view']['chatHeader']['label']=this['_view']['chatHeader']['label']+_0x1792d8[_0x548e3f],_0x548e3f++,_0x548e3f===_0x1792d8['length']&&clearInterval(this['_titleAnimationInterval']);},AI_CHAT_TITLE_ANIMATION_INTERVAL);}['setIsMaximized'](_0x4c29e6){this['_view']['chatHeader']['isMaximized']=_0x4c29e6;}['prepareLoadingMessage'](_0x4cac76){return _0x4cac76['isWebSearchEnabled']&&_0x4cac76['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING'):_0x4cac76['isWebSearchEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH'):_0x4cac76['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_REASONING'):getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_REGULAR');}['_getInputPlaceholder'](_0x4d9636){return _0x4d9636?_0x4d9636['isWebSearchEnabled']&&_0x4d9636['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING'):_0x4d9636['isWebSearchEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH'):_0x4d9636['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'](_0x425389,_0x59e472,_0x278b48,_0x2f97f5){this['_view']['populateSourceResourceBalloon'](_0x425389,_0x59e472,_0x278b48,_0x2f97f5);}['closeSourceResourceBalloon'](_0x428ca6){this['_view']['closeSourceResourceBalloon'](_0x428ca6);}['setPromptInputValue'](_0x21d6e6){this['_view']['chatControls']['setPromptInputValue'](_0x21d6e6);}['focusPromptInput'](_0xb08147=!0x1){this['_view']['chatControls']['focusPromptInput'](_0xb08147);}['scrollFeedToSuggestion'](_0x39018b,_0x4b4aeb){this['_view']['chatFeed']['scrollToSuggestion'](_0x39018b,_0x4b4aeb);}['startAutoScroll'](){this['_view']['chatFeed']['startAutoScroll']();}['disableControls'](){this['_view']['chatControls']['isDisabled']=!0x0;}['enableControls'](){this['_view']['chatControls']['isDisabled']=!0x1;}}class AIChatHistorySectionListView extends ListView{['sections'];constructor(_0x56eb66,_0x2b530a){super(_0x56eb66),this['sections']=_0x2b530a,this['items']['addMany'](this['sections']),this['extendTemplate']({'attributes':{'class':['ck-ai-chat-history__sections']}});}['filter'](_0x21fb2d){let _0x171e7d=0x0,_0x6caa83=0x0;for(const _0x51a89c of this['sections']){const {resultsCount:_0x246d37,totalItemsCount:_0x572d3c}=_0x51a89c['filter'](_0x21fb2d);_0x171e7d+=_0x246d37,_0x6caa83+=_0x572d3c;}return{'resultsCount':_0x171e7d,'totalItemsCount':_0x6caa83};}}class AIChatHistoryListView extends ListItemView{['title'];['itemsViews'];['_itemsListView'];constructor(_0x9cb78b,{title:_0x12738b,items:_0x4471ff}){super(_0x9cb78b);const _0x8748da=this['bindTemplate'];this['set']('isVisible',!0x0),this['title']=_0x12738b,this['itemsViews']=_0x4471ff;const _0x21960b=new View(_0x9cb78b);_0x21960b['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-history__section-title']},'children':[this['title']]}),this['_itemsListView']=new ListView(_0x9cb78b),this['_itemsListView']['items']['addMany'](this['itemsViews']),this['setTemplate']({'tag':'li','attributes':{'class':['ck-ai-chat-history__section',_0x8748da['if']('isVisible','ck-hidden',_0x15a64b=>!_0x15a64b)]},'children':[_0x21960b,this['_itemsListView']]});}['filter'](_0x2e06a7){const _0x2042ce=this['itemsViews']['length'];let _0x4ebc27=0x0;for(const _0x43d5b5 of this['itemsViews']){if(_0x2e06a7){const _0x15277f=_0x43d5b5['isMatching'](_0x2e06a7);_0x43d5b5['isVisible']=!!_0x15277f,_0x43d5b5['highlightText'](_0x2e06a7);}else _0x43d5b5['isVisible']=!0x0,_0x43d5b5['highlightText'](null);_0x43d5b5['isVisible']&&_0x4ebc27++;}return this['isVisible']=_0x4ebc27>0x0,{'resultsCount':_0x4ebc27,'totalItemsCount':_0x2042ce};}['getItem'](_0x32dbfe){return this['itemsViews']['find'](_0x5ce21f=>_0x5ce21f['id']===_0x32dbfe);}['removeItem'](_0x2474de){const _0x23aa5a=this['itemsViews']['indexOf'](_0x2474de);-0x1!==_0x23aa5a&&(this['itemsViews']['splice'](_0x23aa5a,0x1),this['_itemsListView']['items']['remove'](_0x2474de));}}class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
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(_0x4997ac,_0x1e4f7f){super(_0x4997ac);const _0x1f7186=this['bindTemplate'];this['set']('isEdit',!0x1),this['set']('isVisible',!0x0),this['set']('pinned',!!_0x1e4f7f['pinned']),this['set']('loadingState',null),this['id']=_0x1e4f7f['id'];const {title:_0x5d3154,createdAt:_0x5b0ed6,active:_0x498673=!0x1}=_0x1e4f7f;this['_titleView']=new HighlightedTextView(),this['_titleView']['text']=_0x5d3154,this['_titleView']['extendTemplate']({'attributes':{'class':['ck-ai-chat-history__item-title']}});const _0x123a94=this['_createCheckView'](),_0x1a56fb=this['_createPinButtonView'](_0x4997ac),_0x1f8d80=this['_createMenuDropdownView'](),_0x120a23=this['_createEditInputView'](_0x4997ac,_0x5d3154),_0x19f11d=this['_createAcceptEditButtonView'](_0x4997ac,_0x120a23),_0x4f465f=this['_createCancelEditButtonView'](_0x4997ac,_0x120a23);this['actions']=this['createCollection'](),this['mainContent']=this['createCollection'](),this['mainContent']['add'](this['_titleView']),this['actions']['add'](_0x1a56fb),this['actions']['add'](_0x1f8d80),this['on']('change:isEdit',(_0x1f2ce4,_0x13bf49,_0x1d5aa9)=>{this['actions']['clear'](),this['mainContent']['clear'](),_0x1d5aa9?(this['actions']['add'](_0x19f11d),this['actions']['add'](_0x4f465f),this['mainContent']['add'](_0x120a23),_0x120a23['element']['focus']()):(this['actions']['add'](_0x1a56fb),this['actions']['add'](_0x1f8d80),this['mainContent']['add'](this['_titleView']));}),this['setTemplate']({'tag':'li','attributes':{'class':['ck-ai-chat-history__item',_0x498673?'ck-ai-chat-history__item--active':'',_0x1f7186['if']('isVisible','ck-hidden',_0xe32b33=>!_0xe32b33),_0x1f7186['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',_0x1f7186['if']('loadingState','ck-hidden',_0x168cc3=>!!_0x168cc3)]},'children':_0x498673?[_0x123a94]:[]},{'tag':'div','attributes':{'class':['ck-ai-loader',_0x1f7186['if']('loadingState','ck-hidden',_0xcf5eb7=>!_0xcf5eb7)]},'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',_0x1f7186['if']('loadingState','ck-hidden',_0x47ccfc=>!!_0x47ccfc)]},'children':this['mainContent']},{'tag':'div','attributes':{'class':['ck-ai-loader__text',_0x1f7186['if']('loadingState','ck-hidden',_0x442f56=>!_0x442f56)]},'children':[{'text':_0x1f7186['to']('loadingState',_0x40dc61=>_0x40dc61?getTranslation$i(this['locale'],AIChatHistoryListItemView['LOADING_LABELS'][_0x40dc61]):'')}]}]},{'tag':'span','attributes':{'class':['ck-ai-chat-history__item-date']},'children':[_0x5b0ed6]}]},{'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'](_0xaf8c9a){this['_titleView']['text']=escape(_0xaf8c9a);}['updateLoadingState'](_0x5a7769,_0x11c2cf){this['set']('loadingState',_0x11c2cf?_0x5a7769:null);}['_createCheckView'](){const _0x27b7e8=new IconView();return _0x27b7e8['set']({'content':IconCheck}),_0x27b7e8;}['_createPinButtonView'](_0x523970){const _0x18fece=new ButtonView(_0x523970);return _0x18fece['set']({'label':getTranslation$i(_0x523970,'AI_CHAT_HISTORY_PIN_BUTTON'),'icon':IconPin,'withText':!0x1,'tooltip':!0x0}),_0x18fece['bind']('isOn')['to'](this,'pinned'),_0x18fece['on']('execute',()=>{const _0x4ef201=!this['pinned'];this['fire']('setConversationPinned',{'id':this['id'],'pinned':_0x4ef201});}),_0x18fece;}['_createMenuDropdownView'](){const _0x544317=createDropdown(this['locale'],LateFocusDropdownButtonView),_0x4d5033=_0x544317['panelView']['children'];_0x544317['buttonView']['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SHOW_MORE_ITEMS'),'icon':IconThreeHorizontalDots}),_0x544317['panelPosition']='sw';const _0x2b872d=new ButtonView(this['locale']);_0x2b872d['label']=getTranslation$i(this['locale'],'AI_CHAT_HISTORY_EDIT_NAME'),_0x2b872d['withText']=!0x0,_0x2b872d['on']('execute',()=>{this['isEdit']=!0x0;});const _0x2f5e79=new ButtonView(this['locale']);_0x2f5e79['label']=getTranslation$i(this['locale'],'AI_CHAT_HISTORY_REMOVE'),_0x2f5e79['withText']=!0x0,_0x2f5e79['on']('execute',()=>{this['showConfirm'](getTranslation$i(this['locale'],'AI_CHAT_HISTORY_REMOVE_CONFIRM'),this['element'])['then'](()=>{this['fire']('removeConversation',{'id':this['id']});});});const _0x280408=new ListView(this['locale']),_0x24f6d1=new ListItemView(this['locale']);_0x24f6d1['children']['add'](_0x2b872d);const _0x3b56a3=new ListItemView(this['locale']);return _0x3b56a3['children']['add'](_0x2f5e79),_0x280408['items']['addMany']([_0x24f6d1,_0x3b56a3]),_0x4d5033['add'](_0x280408),_0x544317;}['_createEditInputView'](_0x17f217,_0x36b6bf){const _0x3eedc8=new InputTextView(_0x17f217),_0x219565=_0x3eedc8['bindTemplate'];return _0x3eedc8['value']=_0x36b6bf,_0x3eedc8['extendTemplate']({'on':{'keydown':_0x219565['to'](_0x3d9702=>{'Enter'==_0x3d9702['key']&&this['_commitEditInputValue'](_0x3eedc8);})}}),_0x3eedc8;}['_createAcceptEditButtonView'](_0x3cf71a,_0x32eb55){const _0x5516d2=new ButtonView(_0x3cf71a);return _0x5516d2['set']({'icon':IconCheck,'withText':!0x1,'tooltip':getTranslation$i(_0x3cf71a,'AI_CHAT_HISTORY_ACCEPT')}),_0x5516d2['extendTemplate']({'attributes':{'class':['ck-confirm-view-submit']}}),_0x5516d2['on']('execute',()=>{this['_commitEditInputValue'](_0x32eb55);}),_0x5516d2;}['_commitEditInputValue'](_0x1943c4){const _0x1a877f=_0x1943c4['element']['value']||'';this['_titleView']['text']=_0x1a877f,this['isEdit']=!0x1,this['fire']('editConversationTitle',{'id':this['id'],'title':_0x1a877f});}['_createCancelEditButtonView'](_0xf94d46,_0x52eef9){const _0xab6d0b=new ButtonView(_0xf94d46);return _0xab6d0b['set']({'icon':IconCancel,'withText':!0x1,'tooltip':getTranslation$i(_0xf94d46,'AI_CHAT_HISTORY_CANCEL')}),_0xab6d0b['extendTemplate']({'attributes':{'class':['ck-confirm-view-cancel']}}),_0xab6d0b['on']('execute',()=>{this['isEdit']=!0x1,_0x52eef9['value']=this['_titleView']['text']||'',this['fire']('edit:cancel');}),_0xab6d0b;}['_createSpinnerView'](){const _0xd9f5ee=new AISpinnerView('tiny');return _0xd9f5ee['isVisible']=!0x0,_0xd9f5ee;}['isMatching'](_0x442ac1){return this['_titleView']&&'string'==typeof this['_titleView']['text']&&this['_titleView']['text']['match'](_0x442ac1)?{'title':!0x0}:null;}['highlightText'](_0x1ba8e3){this['_titleView']['highlightText'](_0x1ba8e3);}}class AIChatHistoryView extends View{['searchView'];['mainErrorView'];['skeletonView'];['emptyView'];['sectionsView'];['resizeButton'];constructor(_0x50b584,_0xdacf8f){super(_0x50b584),this['set']('hasItems',!0x1),this['set']('isLoading',!0x0),this['set']('errorMessage',''),this['set']('isMaximized',!0x1),this['set']('isSearchViewVisible',!0x1),this['set']('isEmptyViewVisible',!0x1),this['set']('isMainErrorViewVisible',!0x1);const _0x2efa9a=new FormHeaderView(_0x50b584,{'label':getTranslation$i(_0x50b584,'AI_CHAT_HISTORY_HEADING'),'icon':IconAIHistory,'class':'ck-ai-header\x20ck-ai-header_history'});_0xdacf8f&&(this['resizeButton']=createResizeButton(_0x50b584,this),_0x2efa9a['children']['add'](this['resizeButton'])),this['sectionsView']=new AIChatHistorySectionListView(_0x50b584,[]),this['sectionsView']['delegate'](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),this['mainErrorView']=this['_createErrorView'](),this['skeletonView']=this['_createSkeletonView'](),this['emptyView']=this['_createEmptyStateView'](),this['searchView']=this['_createSearchView'](),this['mainErrorView']['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isMainErrorViewVisible','ck-hidden',_0x597578=>!_0x597578)]}}),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':[_0x2efa9a,{'tag':'div','attributes':{'class':['ck-ai-chat-history__content']},'children':[this['skeletonView'],this['mainErrorView'],this['emptyView'],this['searchView']]}]});}['_updateViewVisibility'](){this['isSearchViewVisible']=!this['isLoading']&&this['hasItems'],this['isEmptyViewVisible']=!this['isLoading']&&!this['hasItems']&&!this['errorMessage'],this['isMainErrorViewVisible']=!this['isSearchViewVisible']&&!!this['errorMessage'];}['_createSearchView'](){const _0x342567=new SearchTextView(this['locale'],{'filteredView':this['sectionsView'],'queryView':{'label':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_LABEL')},'infoView':{'text':{'notFound':{'primary':_0x45c5a1=>getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY',_0x45c5a1),'secondary':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY')}}}}),_0x22a7a6=this['_createErrorView']();return _0x22a7a6['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('errorMessage','ck-hidden',_0xb914c3=>!_0xb914c3)]}}),_0x342567['on']('render',()=>{_0x342567['children']['add'](_0x22a7a6,0x1);}),_0x342567['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isSearchViewVisible','ck-hidden',_0x1e5a04=>!_0x1e5a04)]}}),_0x342567;}['_createSkeletonView'](){const _0x1df249=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiHistory']);return _0x1df249['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isLoading','ck-hidden',_0x5b91e0=>!_0x5b91e0)]}}),_0x1df249;}['_createErrorView'](){const _0x3c45df=new View(this['locale']),_0x5c3d2f=new ButtonView(this['locale']);_0x5c3d2f['set']({'withText':!0x1,'icon':IconCancel,'class':'ck-ai-notification_error__dismiss-button'}),_0x5c3d2f['bind']('isVisible')['to'](this,'hasItems',_0x2b4720=>!!_0x2b4720),_0x5c3d2f['on']('execute',()=>{this['errorMessage']='';});const _0x62d605=this['bindTemplate'];return _0x3c45df['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-notification','ck-ai-notification_error']},'children':[{'tag':'p','children':[{'text':_0x62d605['to']('errorMessage')}]},_0x5c3d2f]}),_0x3c45df;}['_createEmptyStateView'](){const _0x4fa220=new ButtonView(this['locale']);_0x4fa220['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_LABEL_NEW_CHAT'),'withText':!0x0,'icon':IconPlus,'class':'ck-ai-chat__start-conversation'}),_0x4fa220['on']('execute',()=>{this['fire']('openChat');});const _0x3c872f=new View(this['locale']);return _0x3c872f['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-history__empty',this['bindTemplate']['if']('isEmptyViewVisible','ck-hidden',_0x282976=>!_0x282976)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-history__empty-message']},'children':[getTranslation$i(this['locale'],'AI_CHAT_HISTORY_EMPTY_MESSAGE')]},_0x4fa220]}),_0x3c872f;}['_createListItemViews'](_0x51ecaf,_0x244191){const _0x174633=[];for(const _0x547a6b of _0x51ecaf){const _0x34aa60=new AIChatHistoryListItemView(_0x244191,_0x547a6b);_0x34aa60['delegate'](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x174633['push'](_0x34aa60);}return _0x174633;}['updateHistoryItemsWithCategories'](_0x186c3e){const _0xc0e871=this['locale']||'en',_0x110045=[];for(const _0x305bc5 of _0x186c3e){const _0x32728d=this['_createListItemViews'](_0x305bc5['items'],_0xc0e871);_0x110045['push'](new AIChatHistoryListView(_0xc0e871,{'title':_0x305bc5['title'],'items':_0x32728d}));}this['sectionsView']['sections']=_0x110045,this['sectionsView']['items']['clear'](),this['sectionsView']['items']['addMany'](_0x110045),this['hasItems']=_0x186c3e['some'](_0x3ec5f3=>_0x3ec5f3['items']['length']>0x0),this['_refreshSearch']();}['removeHistoryItem'](_0x27f216){for(const _0x3895bc of this['sectionsView']['sections']){const _0x2d0f0b=_0x3895bc['getItem'](_0x27f216);if(_0x2d0f0b){if(_0x3895bc['removeItem'](_0x2d0f0b),0x0===_0x3895bc['itemsViews']['length']){const _0x1d3bf4=this['sectionsView']['sections']['indexOf'](_0x3895bc);-0x1!==_0x1d3bf4&&(this['sectionsView']['sections']['splice'](_0x1d3bf4,0x1),this['sectionsView']['items']['remove'](_0x3895bc));}this['hasItems']=this['sectionsView']['sections']['length']>0x0,this['_refreshSearch']();break;}}}['updateItemTitle'](_0x2835ea,_0x2f4b66){for(const _0x2f19e5 of this['sectionsView']['sections']){const _0x5dbdd6=_0x2f19e5['getItem'](_0x2835ea);if(_0x5dbdd6){_0x5dbdd6['updateTitle'](_0x2f4b66);break;}}}['updateItemLoadingState'](_0x283328,_0x3077f4,_0x111301){for(const _0x2ee5bf of this['sectionsView']['sections']){const _0x55caa3=_0x2ee5bf['getItem'](_0x283328);if(_0x55caa3){_0x55caa3['updateLoadingState'](_0x3077f4,_0x111301);break;}}}['_refreshSearch'](){if(this['hasItems']){const _0x4d093a=this['searchView']['queryView']['fieldView']?.['element']?.['value']||'';this['searchView']['search'](_0x4d093a);}}}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(_0x182e43){super(_0x182e43);const _0x6d9680=this['context']['plugins']['get']('AITabs');this['_historyView']=new AIChatHistoryView(this['context']['locale'],_0x6d9680['showResizeButton']),this['_historyView']['delegate'](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x6d9680['view']['addTab']({'id':'history','buttonLabel':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_HEADING'),'buttonIcon':IconAIHistory,'order':0x0,'content':this['_historyView']});}['removeHistoryItem'](_0x5a3d72){this['_historyView']['removeHistoryItem'](_0x5a3d72);}['updateItems'](_0x177d00){this['_historyView']['updateHistoryItemsWithCategories'](_0x177d00);}['updateItemTitle'](_0xb6d679,_0x2da6ab){this['_historyView']['updateItemTitle'](_0xb6d679,_0x2da6ab);}['updateItemLoadingState'](_0x4bbf24,_0x2c503d,_0x32a96c){this['_historyView']['updateItemLoadingState'](_0x4bbf24,_0x2c503d,_0x32a96c);}['setLoadingSkeleton'](_0x3f2aa2){this['_historyView']['isLoading']=_0x3f2aa2;}['showError'](_0x4a00d2){this['_historyView']['errorMessage']=_0x4a00d2;}['hideError'](){this['_historyView']['errorMessage']='';}['setIsMaximized'](_0xffdfb8){this['_historyView']['isMaximized']=_0xffdfb8;}}class AIChatHistoryItem extends ObservableMixin(){['id'];['createdAt'];constructor({id:_0x28cc7e,title:_0x15edd3,createdAt:_0x5eff3f,updatedAt:_0x126615,pinned:_0x237ef3}){super(),this['id']=_0x28cc7e,this['createdAt']=new Date(_0x5eff3f),this['set']('title',_0x15edd3),this['set']('updatedAt',_0x126615?new Date(_0x126615):null),this['set']('pinned',_0x237ef3||!0x1);}['updateTitle'](_0x2b9ed4){this['set']('title',escape(_0x2b9ed4)),this['updatedAt']=new Date();}['updatePinned'](_0x682b9a){this['set']('pinned',_0x682b9a),this['updatedAt']=new Date();}}class AIChatHistoryConversations extends EmitterMixin(){['items']=[];['connector'];['group'];constructor({connector:_0x55b6f9,group:_0xf47a9b}){super(),this['connector']=_0x55b6f9,this['group']=_0xf47a9b;}async['init'](){try{const _0x1e95e1=this['connector']['fetchConversations'](this['group']),_0xa34784=await _0x1e95e1['getConversations']();this['loadItems'](_0xa34784);}catch(_0x1fc2c6){this['fire']('error',{'error':_0x1fc2c6,'operation':'init'});}}['addItem'](_0x5f2be4){this['items']['push'](_0x5f2be4);}async['removeItem'](_0x55ff32){const _0x1d759c=this['items']['findIndex'](_0x218807=>_0x218807['id']===_0x55ff32);if(-0x1===_0x1d759c)return!0x1;try{return await this['connector']['deleteConversation'](_0x55ff32)['execute'](),this['items']['splice'](_0x1d759c,0x1),this['fire']('itemRemoved',{'itemId':_0x55ff32}),!0x0;}catch(_0x179982){return this['fire']('error',{'error':_0x179982,'operation':'removeItem','itemId':_0x55ff32}),!0x1;}}['getItem'](_0x53bce9){return this['items']['find'](_0x1b63e4=>_0x1b63e4['id']===_0x53bce9);}async['updateItemTitle'](_0x36d55b,_0x24cdcb){const _0x103af1=this['getItem'](_0x36d55b);if(!_0x103af1)return!0x1;try{return await this['connector']['updateConversation'](_0x36d55b,{'title':_0x24cdcb})['getResult'](),_0x103af1['updateTitle'](_0x24cdcb),this['fire']('itemUpdated',{'itemId':_0x36d55b,'updates':{'title':_0x24cdcb}}),!0x0;}catch(_0x3d162f){return this['fire']('error',{'error':_0x3d162f,'operation':'updateItemTitle','itemId':_0x36d55b}),!0x1;}}async['updateItemPinned'](_0x456728,_0x279963){const _0x26f43e=this['getItem'](_0x456728);if(!_0x26f43e)return!0x1;try{return await this['connector']['updateConversation'](_0x456728,{'pinned':_0x279963})['getResult'](),_0x26f43e['updatePinned'](_0x279963),this['fire']('itemUpdated',{'itemId':_0x456728,'updates':{'pinned':_0x279963}}),!0x0;}catch(_0x47268a){return this['fire']('error',{'error':_0x47268a,'operation':'updateItemPinned','itemId':_0x456728}),!0x1;}}['loadItems'](_0x2d051d){try{this['items']=[],_0x2d051d['map'](_0x3a8217=>{this['addItem'](new AIChatHistoryItem(_0x3a8217));}),this['fire']('itemsLoaded',{'items':[...this['items']]});}catch(_0xad0476){this['fire']('error',{'error':_0xad0476,'operation':'loadItems'});}}['getItems'](_0x447ab8={}){const _0x29743f=void 0x0!==_0x447ab8['pinned']&&_0x447ab8['pinned'],_0x5d0b44=_0x447ab8['from']?new Date(_0x447ab8['from']['getFullYear'](),_0x447ab8['from']['getMonth'](),_0x447ab8['from']['getDate']()):null,_0xf34abf=_0x447ab8['to']?new Date(_0x447ab8['to']['getFullYear'](),_0x447ab8['to']['getMonth'](),_0x447ab8['to']['getDate']()):null;return this['items']['filter'](_0x4ce782=>{if(_0x4ce782['pinned']!==_0x29743f)return!0x1;if(_0xf34abf){const _0x3abb31=new Date(_0x4ce782['createdAt']['getFullYear'](),_0x4ce782['createdAt']['getMonth'](),_0x4ce782['createdAt']['getDate']());return _0x5d0b44?_0x5d0b44['getTime']()===_0xf34abf['getTime']()?_0x3abb31['getTime']()===_0x5d0b44['getTime']():_0x3abb31<_0xf34abf&&_0x3abb31>=_0x5d0b44:_0x3abb31<_0xf34abf;}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 _0x374b1a=this['context']['plugins']['get'](AITabs);try{const _0x4c3905=this['_aiChatController']['getGroupId']();this['history']=new AIChatHistoryConversations({'connector':this['_aiConnector'],'group':_0x4c3905}),this['listenTo'](this['_aiChatHistoryUi'],'removeConversation',(_0x1ce2e6,_0x5a0a0a)=>{this['_setItemLoading'](_0x5a0a0a['id'],'remove'),this['_handleRemove'](_0x5a0a0a['id']);}),this['listenTo'](this['_aiChatHistoryUi'],'editConversationTitle',(_0x41cd03,_0x42d2da)=>{this['_setItemLoading'](_0x42d2da['id'],'rename'),this['_handleEditTitle'](_0x42d2da['id'],_0x42d2da['title']);}),this['listenTo'](this['history'],'itemUpdated',(_0x56b663,_0x29fd38)=>{void 0x0!==_0x29fd38['updates']['title']&&this['_aiChatHistoryUi']['updateItemTitle'](_0x29fd38['itemId'],_0x29fd38['updates']['title']),void 0x0!==_0x29fd38['updates']['pinned']&&this['_updateHistoryItemsUI'](),this['_clearItemLoading'](_0x29fd38['itemId']);}),this['listenTo'](this['history'],'itemRemoved',(_0x1df97f,_0x102f2a)=>{this['_aiChatController']['handleRemovedConversation'](_0x102f2a['itemId']),this['_aiChatHistoryUi']['removeHistoryItem'](_0x102f2a['itemId']),this['_clearItemLoading'](_0x102f2a['itemId']);}),this['listenTo'](this['history'],'itemsLoaded',()=>{this['_updateHistoryItemsUI']();}),this['listenTo'](this['history'],'error',(_0x4f1a0a,_0x57cdbe)=>{this['_handleHistoryErrorUI'](_0x57cdbe['error'],_0x57cdbe['operation'],_0x57cdbe['itemId']);}),this['listenTo'](this['_aiChatHistoryUi'],'selectConversation',(_0x38d8b4,_0x2a661e)=>{this['_handleSelectConversation'](_0x2a661e['id']);}),this['listenTo'](this['_aiChatHistoryUi'],'setConversationPinned',(_0x1ba90c,_0xa8b1e1)=>{const _0x40fd3b=_0xa8b1e1['pinned']?'pin':'unpin';this['_setItemLoading'](_0xa8b1e1['id'],_0x40fd3b),this['_handleTogglePin'](_0xa8b1e1['id'],_0xa8b1e1['pinned']);}),this['listenTo'](this['_aiChatHistoryUi'],'openChat',()=>{_0x374b1a['view']['activateTab']('chat');}),this['listenTo'](this['_aiChatController'],'change:activeConversation',()=>{this['_updateHistoryItemsUI']();}),_0x374b1a['view']['on']('activateTab:history',()=>{this['_showConversationHistory']();}),this['listenTo'](_0x374b1a,'resizedTabs',(_0x31d14e,_0xbadc99)=>{this['_setIsMaximized'](_0xbadc99);}),this['listenTo'](this['_aiChatHistoryUi'],'resizeTabs',()=>{_0x374b1a['resize']();});}catch(_0x5ac567){this['_handleHistoryErrorUI'](_0x5ac567,'init');}}async['_handleEditTitle'](_0x2fc318,_0x442d31){await this['history']['updateItemTitle'](_0x2fc318,_0x442d31);}async['_handleTogglePin'](_0x47b03f,_0x3d6d81){await this['history']['updateItemPinned'](_0x47b03f,_0x3d6d81);}async['_handleRemove'](_0x442c2e){await this['history']['removeItem'](_0x442c2e);}async['_handleSelectConversation'](_0x2fbec1){await this['_aiChatController']['loadConversation'](_0x2fbec1);}async['_showConversationHistory'](){this['_aiChatHistoryUi']['showError'](''),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x0),await this['history']['init'](),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x1);}['_updateHistoryItemsUI'](){const _0x31e518=this['_aiChatController']['activeConversation']?.['id'],_0x296e80=this['_getCategorizedItems']()['map'](_0x1827d=>({'title':_0x1827d['title'],'items':_0x1827d['items']['map'](_0x5ab423=>({'id':_0x5ab423['id'],'title':_0x5ab423['title']||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION'),'createdAt':new Date(_0x5ab423['createdAt'])['toLocaleDateString'](),'active':_0x5ab423['id']===_0x31e518,'pinned':_0x5ab423['pinned']}))}));this['_aiChatHistoryUi']['updateItems'](_0x296e80);}['_setItemLoading'](_0x4de571,_0x33ef3c){this['_aiChatHistoryUi']['updateItemLoadingState'](_0x4de571,_0x33ef3c,!0x0);}['_clearItemLoading'](_0x3fc660){this['_aiChatHistoryUi']['updateItemLoadingState'](_0x3fc660,null,!0x1);}['_handleHistoryErrorUI'](_0x2f5970,_0x7b8d7e,_0x4386ae){const _0xf95d0c=this['_generateErrorMessage'](_0x7b8d7e,_0x4386ae);this['_aiChatHistoryUi']['showError'](_0xf95d0c),_0x4386ae&&this['_clearItemLoading'](_0x4386ae),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x1);}['_generateErrorMessage'](_0x5b92fc,_0x3a2eaa){const _0x30ef8e=_0x3a2eaa?this['history']['getItem'](_0x3a2eaa):null,_0x1b3813=_0x30ef8e?.['title']||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION');switch(_0x5b92fc){case'updateItemTitle':return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_UPDATE_TITLE',_0x1b3813);case'updateItemPinned':{const _0x57f054=getTranslation$i(this['context']['locale'],_0x30ef8e?.['pinned']?'AI_CHAT_HISTORY_UNPIN_ACTION':'AI_CHAT_HISTORY_PIN_ACTION');return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_UPDATE_PINNED',[_0x57f054,_0x1b3813]);}case'removeItem':return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_REMOVE_ITEM',_0x1b3813);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 _0x5d123e=new Date(),_0x412a44=new Date(_0x5d123e['getFullYear'](),_0x5d123e['getMonth'](),_0x5d123e['getDate']()),_0xa7dc3=new Date(_0x412a44);_0xa7dc3['setDate'](_0xa7dc3['getDate']()-0x1);const _0x53b801=new Date(_0x412a44);_0x53b801['setDate'](_0x53b801['getDate']()-0xe);const _0x3f32fb=this['history']['getItems']({'pinned':!0x0}),_0x1f5f3b=this['history']['getItems']({'from':_0x412a44,'to':_0x412a44}),_0x7acf12=this['history']['getItems']({'from':_0xa7dc3,'to':_0xa7dc3}),_0x4c9c0d=this['history']['getItems']({'from':_0x53b801,'to':_0xa7dc3}),_0x47a647=this['history']['getItems']({'to':_0x53b801}),_0x43a6fc=[];return _0x3f32fb['length']>0x0&&_0x43a6fc['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_PINNED'),'items':_0x3f32fb}),_0x1f5f3b['length']>0x0&&_0x43a6fc['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_TODAY'),'items':_0x1f5f3b}),_0x7acf12['length']>0x0&&_0x43a6fc['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_YESTERDAY'),'items':_0x7acf12}),_0x4c9c0d['length']>0x0&&_0x43a6fc['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS'),'items':_0x4c9c0d}),_0x47a647['length']>0x0&&_0x43a6fc['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_LATER'),'items':_0x47a647}),_0x43a6fc;}['_setIsMaximized'](_0x4f6dcd){this['_aiChatHistoryUi']['setIsMaximized'](_0x4f6dcd);}}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(_0x2f250c){super(_0x2f250c),this['context']['config']['define']('ai.chat.context',{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this['context']['config']['define']('ai.chat.initialConversation','new');}async['addSelectionToChatContext'](){await this['context']['plugins']['get'](AIChatController)['addSelectionToChatContext']();}async['startConversation'](){await this['context']['plugins']['get'](AIChatController)['startConversation']();}async['sendMessage']({message:_0x15229a,attributes:_0x311012}){await this['context']['plugins']['get'](AIChatController)['sendMessage']({'message':_0x15229a,'attributes':_0x311012});}['removeSelectionFromChatContext'](){this['context']['plugins']['get'](AIChatController)['removeSelectionFromChatContext']();}['focusPromptInput'](){this['context']['plugins']['get'](AIChatController)['focusPromptInput']();}['registerToolDataCallback'](_0x3aeab8){this['context']['plugins']['get'](AIChatController)['_registerToolDataCallback'](_0x3aeab8);}}class AIChatShortcutView extends ButtonView{['id'];constructor(_0x39d3c3,_0x506149){super(_0x39d3c3);const {id:_0x2a5a40,type:_0x2f700c,icon:_0x359e26}=_0x506149;this['id']=_0x2a5a40,this['set']({'label':_0x506149['label'],'withText':!0x0,'class':'ck-ai-chat-shortcut'}),this['extendTemplate']({'attributes':{'data-cke-ai-shortcut-id':_0x506149['id']}}),_0x359e26?this['icon']=_0x359e26:'chat'===_0x2f700c?this['icon']=IconAIChat$1:'review'===_0x2f700c?this['icon']=IconAIReview:'translate'===_0x2f700c&&(this['icon']=IconAITranslate);}}class AIChatShortcutsView extends View{['listView'];constructor(_0x2d19e4,_0xab1a50){super(_0x2d19e4);const _0x3d8b80=_0xab1a50['map'](_0x1eae43=>{const _0x240df9=new ListItemView(this['locale']),_0x416ed0=new AIChatShortcutView(this['locale'],_0x1eae43);return _0x240df9['children']['add'](_0x416ed0),_0x416ed0['delegate']('execute')['to'](this),_0x240df9;});this['listView']=new ListView(this['locale']),this['listView']['items']['addMany'](_0x3d8b80),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-shortcuts']},'children':[this['listView']]});}}const CHAT_SHORTCUTS_FEED_ITEM_ID='chat-shortcuts';var AIChatShortcutType=function(_0x116ddb){return _0x116ddb['CHAT']='chat',_0x116ddb['REVIEW']='review',_0x116ddb['TRANSLATE']='translate',_0x116ddb;}({});class AIChatShortcuts extends ContextPlugin{['_shortcuts'];['_shortcutsView'];['_aiChatUI'];static get['requires'](){return[AIChatUI];}static get['pluginName'](){return'AIChatShortcuts';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_aiChatUI']=this['context']['plugins']['get'](AIChatUI),this['_shortcuts']=this['context']['config']['get']('ai.chat.shortcuts')??[];const _0x488407=this['context']['plugins']['get']('AIChatController');this['_shortcuts']['length']&&(this['_validateShortcuts'](),this['_aiChatUI']['on']('conversationCreated',()=>{_0x488407['activeConversation']['isFromHistory']||this['_injectShortcuts']();}),this['listenTo'](_0x488407,'interactionStarted',()=>{this['_removeShortcuts']();}));}['_validateShortcuts'](){const _0x5910d5=Object['values'](AIChatShortcutType);this['_shortcuts']['forEach'](_0x23efaa=>{let _0x13da90=!0x0;if(_0x23efaa['id']&&_0x23efaa['label']&&_0x5910d5['includes'](_0x23efaa['type'])?'chat'===_0x23efaa['type']&&(_0x13da90='string'==typeof _0x23efaa['prompt']):_0x13da90=!0x1,!_0x13da90)throw new CKEditorError('ai-chat-shortcuts-invalid-config',this['context'],{'shortcut':_0x23efaa});});}['_injectShortcuts'](){const _0xc13447=this['context']['plugins']['get'](AIChatUI);this['_shortcutsView']=new AIChatShortcutsView(this['context']['locale'],this['_shortcuts']),this['_shortcutsView']['render'](),_0xc13447['addFeedItemCustomElement'](this['_shortcutsView']['element'],CHAT_SHORTCUTS_FEED_ITEM_ID),this['_shortcutsView']['on']('execute',_0x429120=>{const _0x502993=_0x429120['source']['id'];this['_executeShortcut'](_0x502993);});}['_removeShortcuts'](){const _0x355991=this['context']['plugins']['get'](AIChatUI);_0x355991['hasFeedItem'](CHAT_SHORTCUTS_FEED_ITEM_ID)&&_0x355991['removeFeedItem'](CHAT_SHORTCUTS_FEED_ITEM_ID),this['_shortcutsView']?.['destroy']();}['_executeShortcut'](_0x1ecc2e){const _0x17b177=this['_shortcuts']['find'](_0x457ca2=>_0x457ca2['id']===_0x1ecc2e),_0x9f2def=_0x17b177['type'];'chat'===_0x9f2def?this['_runChatShortcut'](_0x17b177):'review'===_0x9f2def?_0x17b177['check']?this['_runReviewShortcut'](_0x17b177):this['_switchTab']('reviewMode'):'translate'===_0x9f2def&&(_0x17b177['language']?this['_runTranslateShortcut'](_0x17b177):this['_switchTab']('translate'));}['_switchTab'](_0x46b8a){if(!this['context']['plugins']['has']('AITabs'))throw new CKEditorError('ai-chat-shortcuts-ai-tabs-not-found',this['context'],{'tabName':_0x46b8a});this['context']['plugins']['get']('AITabs')['view']['activateTab'](_0x46b8a);}async['_runChatShortcut']({prompt:_0x56d58c,draftMode:_0xda5f42,useWebSearch:_0x3eb0c8=!0x1,useReasoning:_0x336f83=!0x1,model:_0xf02273}){const _0x6d724e=this['context']['plugins']['get']('AIChat'),_0x22f468=this['context']['plugins']['get']('AIChatController'),_0x1321f7=_0x22f468['activeConversation'];let _0x180197;_0x180197=_0xf02273?await _0x1321f7['chatModels']['getModel'](_0xf02273):await _0x1321f7['chatModels']['getDefault'](),_0x180197&&await _0x1321f7['setModel'](_0x180197),_0x1321f7['setWebSearch'](_0x3eb0c8),_0x1321f7['setReasoning'](_0x336f83),_0x22f468['addCurrentDocumentToChatContext'](),_0xda5f42?(this['_aiChatUI']['setPromptInputValue'](_0x56d58c),this['_aiChatUI']['focusPromptInput'](!0x0)):_0x6d724e['sendMessage']({'message':_0x56d58c});}['_runReviewShortcut']({check:_0x315c5b,model:_0x512021,prompt:_0x366459,params:_0xb0746e}){if(!this['context']['plugins']['has']('AIReviewModeUI'))throw new CKEditorError('ai-chat-shortcuts-review-mode-not-found',this['context']);this['_switchTab']('reviewMode');const _0x100069={'id':_0x315c5b,'isCustom':'custom'===_0x315c5b};_0x512021&&_0x366459&&(_0x100069['args']={'model':_0x512021,'prompt':_0x366459}),_0xb0746e&&(_0x100069['params']=_0xb0746e),this['context']['plugins']['get']('AIReviewModeUI')['fire']('runReviewCheck',_0x100069);}['_runTranslateShortcut']({language:_0x1af0eb}){if(!this['context']['plugins']['has']('AITranslateUI'))throw new CKEditorError('ai-chat-shortcuts-translate-not-found',this['context']);this['_switchTab']('translate'),this['context']['plugins']['get']('AITranslateUI')['fire']('runReviewCheck',{'id':_0x1af0eb,'args':{'language':_0x1af0eb}});}}class ToggleAICommand extends Command{constructor(_0x284ebd){super(_0x284ebd);const _0x1072e9=_0x284ebd['plugins']['get']('AITabs')['view'];this['bind']('value')['to'](_0x1072e9,'isVisible'),this['isEnabled']=!0x0;}['execute'](){const _0x1c2f62=this['editor']['plugins']['get']('AITabs')['view'];_0x1c2f62['isVisible']=!_0x1c2f62['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 _0x339b8b=this['editor'];_0x339b8b['commands']['add']('toggleAi',new ToggleAICommand(_0x339b8b)),_0x339b8b['ui']['componentFactory']['add']('toggleAi',()=>{const _0x4f023a=this['_createAIUIButton'](ButtonView);return _0x4f023a['set']({'tooltip':!0x0,'class':'ck-ai-toggle-button'}),_0x4f023a;}),_0x339b8b['ui']['componentFactory']['add']('menuBar:toggleAi',()=>{const _0xd20de3=this['_createAIUIButton'](MenuBarMenuListItemButtonView);return _0xd20de3['set']({'role':'menuitemcheckbox'}),_0xd20de3;});}['_createAIUIButton'](_0x50848e){const _0x588e44=this['editor'],_0x5014f6=_0x588e44['commands']['get']('toggleAi'),_0x9a3e24=new _0x50848e(_0x588e44['locale']);return _0x9a3e24['set']({'label':getTranslation$i(_0x588e44['locale'],'AI_TOGGLE_BUTTON_LABEL'),'icon':IconAIAskAI,'isToggleable':!0x0}),_0x9a3e24['bind']('isEnabled')['to'](_0x5014f6),_0x9a3e24['bind']('isOn')['to'](_0x5014f6,'value',_0x3f8e73=>!!_0x3f8e73),this['listenTo'](_0x9a3e24,'execute',()=>{_0x5014f6['execute']();}),_0x9a3e24;}}const AI_BALLOON_VIEW_EVENT_NAMES=['applySuggestion','insertSuggestion','showNext','showPrevious'];class AIBalloonView extends View{['_errorView'];constructor(_0x191f2b){super(_0x191f2b),this['set']('_errorMessage',''),this['set']('_isErrorVisible',!0x1);}['showBlockingError'](_0xe237b7){this['showError'](_0xe237b7);}['showError'](_0x4f7ade){this['_errorView']||(this['_errorView']=this['_createErrorView']()),this['_errorMessage']=_0x4f7ade,this['_isErrorVisible']=!0x0;}['hideError'](){this['_isErrorVisible']=!0x1;}['_createErrorView'](){const _0x568b7c=new View(this['locale']),_0x55c24a=new View(this['locale']);return _0x55c24a['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__error-text']},'children':[{'text':this['bindTemplate']['to']('_errorMessage')}]}),_0x568b7c['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__error','ck-ai-balloon-error',this['bindTemplate']['if']('_isErrorVisible','ck-hidden',_0x2cff6c=>!_0x2cff6c)]},'children':[_0x55c24a]}),_0x568b7c;}}const DIALOG_TOP_OFFSET=0xa;class AIBalloon extends ContextPlugin{static get['requires'](){return[AIEditing];}static get['pluginName'](){return'AIBalloon';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['isOpen']=!0x1;['_currentConfig'];['_isUpdatingMarkers']=!0x1;['open'](_0xfa0f00){const {id:_0x58b554}=this['_currentConfig']??{};this['_currentConfig']=_0xfa0f00;const {id:_0xeb952d}=this['_currentConfig'];this['isOpen']&&_0x58b554===_0xeb952d?this['_updateDialog']():this['_showDialog']();}['close'](){const _0x2cb4ed=getEditorFromContext(this['context'])['plugins']['get']('Dialog');_0x2cb4ed['isOpen']&&this['_currentConfig']&&_0x2cb4ed['id']===this['_currentConfig']['id']&&_0x2cb4ed['hide']();}['_updateDialog'](){const _0x518f56=getEditorFromContext(this['context'])['plugins']['get']('Dialog'),{icon:_0x22b53f,title:_0x6b9ec}=this['_currentConfig'];_0x518f56['view']?.['headerView']&&(_0x518f56['view']['headerView']['label']=_0x6b9ec,_0x518f56['view']['headerView']['iconView']&&_0x22b53f&&(_0x518f56['view']['headerView']['iconView']['content']=_0x22b53f)),this['_isUpdatingMarkers']=!0x0,this['_showFakeVisualSelection'](),this['_isUpdatingMarkers']=!0x1,_0x518f56['view']?.['updatePosition']();}['_showFakeVisualSelection'](){this['context']['plugins']['get'](AIEditing)['showFakeVisualSelection'](this['_currentConfig']['ranges'],'ai-balloon-'+this['_currentConfig']['index'],!0x0,!0x0);}['_hideFakeVisualSelection'](_0x3a4949){this['context']['plugins']['get'](AIEditing)['hideFakeVisualSelection']('ai-balloon-'+_0x3a4949);}['_showDialog'](){const _0x4ba072=getEditorFromContext(this['context'])['plugins']['get']('Dialog'),{id:_0x181993,title:_0x1ed610,icon:_0x5afd8d,class:_0x25b0f1,mainView:_0x13f3e8}=this['_currentConfig'];_0x13f3e8['delegate'](...AI_BALLOON_VIEW_EVENT_NAMES)['to'](this),_0x4ba072['show']({'title':_0x1ed610,'icon':_0x5afd8d,'hasCloseButton':!0x0,'id':_0x181993,'position':this['_calculateDialogPosition']['bind'](this),'className':'ck-ai-balloon\x20'+(_0x25b0f1||''),'content':_0x13f3e8,'onShow':_0x4cbb77=>{this['_showFakeVisualSelection'](),this['_setupFakeVisualSelectionMarkerRemovalListener']();const _0x1aa403=this['_getSelectionElements']();_0x1aa403&&_0x1aa403[0x0]&&scrollViewportToShowTarget({'target':_0x1aa403[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this['isOpen']=!0x0,_0x4cbb77['once']('hide',()=>{this['fire']('beforeDialogClosed',{'id':_0x181993});},{'priority':'high'});},'onHide':()=>{this['_hideFakeVisualSelection'](this['_currentConfig']['index']),this['_cleanupFakeVisualSelectionMarkerRemovalListener'](),this['fire']('dialogClosed',{'id':_0x181993}),this['isOpen']=!0x1;}});}['_calculateDialogPosition'](_0x50ac50,_0xe463ea){if(!_0xe463ea)return null;const _0x2ee22a=this['_getSelectionElements']();if(!_0x2ee22a||0x0===_0x2ee22a['length'])return{'left':Math['round'](_0xe463ea['left']+_0xe463ea['width']/0x2-_0x50ac50['width']/0x2),'top':Math['round'](_0xe463ea['top']+_0xe463ea['height']/0x2-_0x50ac50['height']/0x2)};const _0x48f238=Math['round'](_0xe463ea['left']+_0xe463ea['width']/0x2-_0x50ac50['width']/0x2),_0x2bf697=_0x2ee22a['map'](_0x464943=>new Rect(_0x464943)),_0x347e64=_0x50ac50['height'];return{'left':_0x48f238,'top':this['_calculateOptimalTopPosition'](_0x2bf697,_0x347e64,_0xe463ea)};}['_calculateOptimalTopPosition'](_0x287bf0,_0x21b375,_0x373253){const _0x23aaaf=new Rect(_0x347e1e['window']),_0x3c2755=_0x287bf0['map'](_0x188c07=>_0x188c07['getVisible']())['filter'](_0x2b7e5c=>_0x2b7e5c),_0x2a98e6=Rect['getBoundingRect'](_0x3c2755);if(!_0x2a98e6)return Math['round'](_0x373253['top']+_0x373253['height']/0x2);const _0x2bd708=_0x23aaaf['getIntersection'](_0x2a98e6);if(!_0x2bd708)return Math['round'](_0x373253['top']+_0x373253['height']/0x2);const _0xa7ac5c=_0x373253['getVisible'](),_0x296de3=_0xa7ac5c&&_0x2a98e6['height']>_0xa7ac5c['height'],_0x3ff4d1=_0x2bd708['top'],_0x181b51=_0x2bd708['bottom'];if(_0x296de3){const _0x8464be=(_0xa7ac5c||_0x23aaaf)['height']/0x2-_0x21b375/0x2,_0x379d66=_0x3ff4d1-DIALOG_TOP_OFFSET-_0x373253['top'],_0x5a26dd=_0x373253['bottom']-_0x181b51-DIALOG_TOP_OFFSET;return _0x379d66>=_0x21b375?Math['max'](DIALOG_TOP_OFFSET,_0x3ff4d1-_0x21b375-DIALOG_TOP_OFFSET):_0x5a26dd>=_0x21b375?_0x181b51+DIALOG_TOP_OFFSET:Math['max'](DIALOG_TOP_OFFSET,_0x8464be);}const _0x5131d3=_0x3ff4d1-_0x21b375,_0x5a9ebe=_0x373253['bottom']-_0x181b51-DIALOG_TOP_OFFSET,_0x2c8dfe=_0x3ff4d1-DIALOG_TOP_OFFSET-_0x373253['top'];let _0x3b1f72;if(_0x5a9ebe>=_0x21b375)_0x3b1f72=_0x181b51+DIALOG_TOP_OFFSET;else{if(_0x2c8dfe>=_0x21b375)_0x3b1f72=_0x5131d3-DIALOG_TOP_OFFSET;else _0x3b1f72=_0x3ff4d1+_0x2a98e6['height']/0x2-_0x21b375/0x2;}return _0x3b1f72;}['_setupFakeVisualSelectionMarkerRemovalListener'](){const _0xd92940=getEditorFromContext(this['context']);this['listenTo'](_0xd92940['model']['document'],'change',()=>{if(!this['_isUpdatingMarkers']){for(const {name:_0x1fb3db,data:{newRange:_0x2414bb}}of _0xd92940['model']['document']['differ']['getChangedMarkers']())if(_0x1fb3db['startsWith'](AI_VISUAL_SELECTION_MARKER_NAME+':')&&(_0x2414bb&&(_0x2414bb['start']['isEqual'](_0x2414bb['end'])||'$graveyard'==_0x2414bb['root']['rootName'])||null==_0x2414bb)){const _0x52ae8e=getTranslation$i(this['context']['locale'],'AI_BALLOON_SELECTION_REMOVED_ERROR');this['_currentConfig']['mainView']['showBlockingError'](_0x52ae8e),this['fire']('selectionRemoved');}}});}['_cleanupFakeVisualSelectionMarkerRemovalListener'](){const _0x1c7edb=getEditorFromContext(this['context']);this['_currentConfig']['mainView']['hideError'](),this['stopListening'](_0x1c7edb['model']['document']);}['_getSelectionElements'](){const _0x4c022c=getEditorFromContext(this['context']);return getAllMarkersDomElementsSorted(_0x4c022c['editing'],[..._0x4c022c['model']['markers']['getMarkersGroup']('ai-selection'),..._0x4c022c['model']['markers']['getMarkersGroup']('ai-balloon-selection')]);}}class AIMiniToolbarView extends ToolbarView{['copyButton'];['likeButton'];['dislikeButton'];['showChangesButton'];['_config'];constructor(_0x5cc062,_0x1e7e61={}){super(_0x5cc062),this['set']('isEnabled',!0x0),this['set']('isShowChangesOn',!0x1),this['_config']={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x1e7e61};const _0x2574e=!(this['_config']['showCopy']||this['_config']['showChanges']||this['_config']['showLike']||this['_config']['showDislike']||this['_config']['customView']?.['length']);this['class']=_0x2574e?'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'](),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']);}['toggleShowChangesEnabled'](_0x2f16e0){this['showChangesButton']['isEnabled']=_0x2f16e0;}['_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),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),this['dislikeButton']['on']('execute',()=>{this['fire']('dislike');});}['_setupCopyButton'](){this['copyButton']=new ButtonView(this['locale']),this['copyButton']['set']({'icon':_0x53b43d,'label':getTranslation$i(this['locale'],'AI_MINI_TOOLBAR_COPY'),'class':'ck-ai-mini-toolbar-copy-button','tooltip':!0x0}),this['copyButton']['bind']('isEnabled')['to'](this);const _0x24b989=new IconView();_0x24b989['set']({'content':_0x2e9726}),_0x24b989['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'](_0x24b989);}['_setupShowChangesButton'](){this['showChangesButton']=new ButtonView(this['locale']),this['showChangesButton']['set']({'icon':_0x3619a3,'label':getTranslation$i(this['locale'],'AI_SUGGESTION_BUTTON_SHOW_CHANGES'),'withText':'full'==this['_config']['showChanges'],'tooltip':'full'!=this['_config']['showChanges'],'class':'ck-ai-button-tertiary'}),this['showChangesButton']['bind']('isOn')['to'](this,'isShowChangesOn'),this['showChangesButton']['bind']('isEnabled')['to'](this),this['showChangesButton']['bind']('icon')['to'](this,'isShowChangesOn',_0x134323=>_0x134323?_0x125ff0:_0x3619a3),this['showChangesButton']['on']('execute',()=>{this['fire']('toggleShowChanges');});}}class AIChatBalloonView extends AIBalloonView{['children'];['nextButtonView'];['previousButtonView'];['focusCycler'];['_focusables'];['_focusTracker'];['_keystrokes'];['_config'];['_streamableContentView'];['_toolbarContainerView'];['_partToolbarView'];['_stateView'];['_miniToolbarView'];constructor(_0x52143f,_0x3c8678){super(_0x52143f);const _0x14db60=this['bindTemplate'];this['set']('showDiff',!0x1),this['set']('_state','pending'),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['_config']=_0x3c8678,this['nextButtonView']=this['_createNextButtonView'](),this['previousButtonView']=this['_createPreviousButtonView'](),this['_streamableContentView']=new AISuggestionStreamableContentView(_0x52143f),this['_partToolbarView']=new AISuggestionContentPartToolbarView(_0x52143f,_0x3c8678['availableActions']),this['_partToolbarView']['delegate']('applySuggestion','insertSuggestion','rejectSuggestion')['to'](this),this['_togglePartToolbarButtonsVisibility'](_0x3c8678),this['_stateView']=new AISuggestionContentPartStateView(_0x52143f),this['_stateView']['isVisible']=!0x1,this['_miniToolbarView']=new AIMiniToolbarView(_0x52143f,{'showChanges':'full'}),this['_miniToolbarView']['bind']('isShowChangesOn')['to'](this,'showDiff'),this['_miniToolbarView']['on']('toggleShowChanges',()=>{this['fire']('toggleSuggestionDisplayMode');}),this['_toolbarContainerView']=new AIChatBalloonToolbarContainerView(_0x52143f,[this['_partToolbarView'],this['_stateView'],this['_miniToolbarView']]),this['children']=this['createCollection']([this['_streamableContentView'],this['_toolbarContainerView']]),this['on']('change:_state',(_0x1c8ff3,_0xa78164,_0x367092,_0x56f2ad)=>{let _0x3dc4d3,_0x1127c0;'pending'===_0x56f2ad?(_0x3dc4d3=this['_partToolbarView'],_0x1127c0=this['_stateView']):(_0x3dc4d3=this['_stateView'],_0x1127c0=this['_partToolbarView']),this['_stateView']['setState'](_0x367092),_0x3dc4d3['isVisible']=!0x1,_0x1127c0['isVisible']=!0x0;}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-balloon-main',_0x14db60['to']('_state',_0x400141=>'ck-ai-chat-balloon-main_state_'+_0x400141)]},'children':this['children']}),this['on']('change:isTrackChangesOn',()=>{this['_togglePartToolbarButtonsVisibility'](_0x3c8678);});}['render'](){super['render'](),this['nextButtonView']['render'](),this['previousButtonView']['render'](),this['_focusTracker']['add'](this['element']),this['_focusTracker']['add'](this['nextButtonView']),this['_focusTracker']['add'](this['previousButtonView']),this['_focusTracker']['add'](this['_miniToolbarView']),this['_focusTracker']['add'](this['_partToolbarView']),this['_keystrokes']['listenTo'](this['element']),this['_keystrokes']['listenTo'](this['nextButtonView']['element']),this['_keystrokes']['listenTo'](this['previousButtonView']['element']),this['_focusables']['addMany']([this['nextButtonView'],this['previousButtonView'],this['_partToolbarView'],this['_miniToolbarView']]);}['destroy'](){super['destroy'](),this['previousButtonView']['destroy'](),this['nextButtonView']['destroy']();}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}async['updateContent'](_0x50d597){_0x50d597?.['keepErrors']||this['hideError'](),await this['_streamableContentView']['update'](_0x50d597);}['setState'](_0x5d038d){this['_state']=_0x5d038d;}['showError'](_0x56b349){super['showError'](_0x56b349),this['children']['has'](this['_errorView'])||this['children']['add'](this['_errorView'],0x0);}['hideError'](){this['_isErrorVisible']&&(super['hideError'](),this['togglePartToolbarEnabled'](!0x0));}['showBlockingError'](_0xc18e55){super['showBlockingError'](_0xc18e55),this['togglePartToolbarEnabled'](!0x1);}['toggleRotatorButtonsVisibility'](_0x1c5554){this['nextButtonView']['isVisible']=this['previousButtonView']['isVisible']=_0x1c5554;}['togglePartToolbarEnabled'](_0x522902){this['_partToolbarView']['isEnabled']=_0x522902;}['_togglePartToolbarButtonsVisibility']({showApplyButton:_0x166d0e,showSuggestButton:_0x7ec102}){_0x166d0e=_0x166d0e&&!this['isTrackChangesOn']&&this['_config']['availableActions']['includes']('applySuggestion'),_0x7ec102=_0x7ec102&&this['_config']['availableActions']['includes']('insertSuggestion'),this['_partToolbarView']['setButtonsVisibility']({'showApplyButton':_0x166d0e,'showSuggestButton':_0x7ec102});}['_createNextButtonView'](){const _0x2266dc=new ButtonView(this['locale']);return _0x2266dc['set']({'icon':IconChevronDown,'label':getTranslation$i(this['locale'],'AI_BALLOON_NEXT_LABEL'),'isVisible':!0x0}),_0x2266dc['on']('execute',()=>{this['fire']('showNext');}),_0x2266dc;}['_createPreviousButtonView'](){const _0x418922=new ButtonView(this['locale']);return _0x418922['set']({'icon':IconChevronUp,'label':getTranslation$i(this['locale'],'AI_BALLOON_PREVIOUS_LABEL'),'isVisible':!0x0}),_0x418922['on']('execute',()=>{this['fire']('showPrevious');}),_0x418922;}}class AIChatBalloonToolbarContainerView extends View{constructor(_0x316117,_0x7c69d9){super(_0x316117),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-balloon__toolbar-container']},'children':_0x7c69d9});}}class AIChatBalloon extends Plugin{static get['requires'](){return[Dialog,AIBalloon];}static get['pluginName'](){return'AIChatBalloon';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_chatBalloonView'];constructor(_0x54c217){super(_0x54c217),this['set']('showDiff',!0x1);}['open'](_0x223bc0){const _0x5e6ea2=this['editor'];this['_chatBalloonView']||(this['_chatBalloonView']=this['_createChatBalloonView']()),_0x5e6ea2['plugins']['get']('AIBalloon')['open']({..._0x223bc0,'id':'aiChatBalloon','class':'ck-ai-chat-balloon','mainView':this['_chatBalloonView']}),this['_toggleRotatorButtonsInDialogHeader'](_0x223bc0['showRotator']),this['_chatBalloonView']['togglePartToolbarEnabled'](!_0x223bc0['areActionsDisabled']),this['_restoreDefaultViewFocus']();}['close'](){this['editor']['plugins']['get']('AIBalloon')['close']();}['updateContent'](_0x9fe5d6){return this['_chatBalloonView']||(this['_chatBalloonView']=this['_createChatBalloonView']()),this['_chatBalloonView']['updateContent'](_0x9fe5d6);}['setState'](_0x44fd90){this['_chatBalloonView']&&this['_chatBalloonView']['setState'](_0x44fd90);}['_createChatBalloonView'](){const _0x5d50c7=this['editor'],_0x486ac4=_0x5d50c7['plugins']['get']('AIBalloon'),_0x4ecaaf=_0x5d50c7['commands']['get']('trackChanges');let _0x599e6f=_0x5d50c7['config']['get']('ai.availableReplyActions')||[...AI_REPLY_ACTIONS];_0x5d50c7['plugins']['has']('TrackChanges')||(_0x599e6f=_0x599e6f['filter'](_0x1455fb=>'insertSuggestion'!=_0x1455fb));const _0x25effc=new AIChatBalloonView(_0x5d50c7['locale'],{'availableActions':_0x599e6f,'showApplyButton':!0x0,'showSuggestButton':!!_0x4ecaaf});return _0x25effc['bind']('showDiff')['to'](this),_0x25effc['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),_0x25effc['delegate']('showPrevious','showNext')['to'](this),_0x486ac4['delegate']('dialogClosed')['to'](this),_0x25effc['on']('applySuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x25effc['on']('insertSuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x25effc['on']('rejectSuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x4ecaaf&&_0x25effc['bind']('isTrackChangesOn')['to'](_0x4ecaaf,'value'),_0x25effc['render'](),_0x25effc;}['_toggleRotatorButtonsInDialogHeader'](_0x28dd1e){const _0xded00a=this['editor'],_0x59a656=_0xded00a['plugins']['get']('Dialog')['view']['headerView']['children'];this['_chatBalloonView']['toggleRotatorButtonsVisibility'](_0x28dd1e),_0x59a656['has'](this['_chatBalloonView']['previousButtonView'])||(_0x59a656['addMany']([this['_chatBalloonView']['previousButtonView'],this['_chatBalloonView']['nextButtonView']],0x0),_0xded00a['plugins']['get']('AIBalloon')['once']('beforeDialogClosed',()=>{_0x59a656['remove'](this['_chatBalloonView']['previousButtonView']),_0x59a656['remove'](this['_chatBalloonView']['nextButtonView']);}));}['_restoreDefaultViewFocus'](){this['_chatBalloonView']['focus']();}}class AIEditorIntegration extends Plugin{static get['requires'](){return[AIToggleButtonUI,AIChatBalloon,SuggestionsConversion];}static get['pluginName'](){return'AIEditorIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}function aiQuickActionsButtonCreator(_0x274668){const {editor:_0x3d4a70,action:_0x2f410d,withText:_0x37d043=!0x1,withIcon:_0x3aede6=!0x0,isInDropdown:_0x413fd0=!0x0,shouldPreventFocus:_0x15bf5b=!0x1}=_0x274668;return()=>{const _0x3719fd=_0x3d4a70['locale'],_0xc58ad8=new ButtonView(_0x3719fd),_0x36fad0=_0xc58ad8['bindTemplate'];_0x413fd0&&_0xc58ad8['extendTemplate']({'on':{'mouseenter':_0x36fad0['to'](()=>{_0x15bf5b&&_0x15bf5b()||_0xc58ad8['focus']();})}});const _0x1782a6=_0x2f410d['icon']??_0x2f410d['parent']?.['icon'];return _0xc58ad8['set']({'label':_0x2f410d['displayedPrompt'],'withText':_0x37d043,'role':'menuitem','icon':_0x3aede6?_0x1782a6??IconAIQuickActions:void 0x0,'tooltip':!_0x37d043,'class':'ck-ai-quick-actions-button','isEnabled':_0x2f410d['isEnabled']}),_0xc58ad8['on']('execute',()=>{_0x3d4a70['editing']['view']['focus'](),_0x3d4a70['commands']['execute']('aiQuickAction',_0x2f410d);}),_0xc58ad8;};}class DropdownMenuButtonWithHighlightView extends ListItemButtonView{['arrowView'];constructor(_0x139ef7,_0x31fd3e){super(_0x139ef7,_0x31fd3e);const _0x5ea682=this['bindTemplate'];this['set']({'withText':!0x0,'role':'menuitem'}),this['arrowView']=this['_createArrowView'](),this['extendTemplate']({'attributes':{'class':['ck-dropdown-menu-list__nested-menu__button'],'aria-haspopup':!0x0,'aria-expanded':this['bindTemplate']['to']('isOn',_0x3f77de=>String(_0x3f77de)),'data-cke-tooltip-disabled':_0x5ea682['to']('isOn')},'on':{'mouseenter':_0x5ea682['to']('mouseenter')}});}['render'](){super['render'](),this['children']['add'](this['arrowView']);}['_createArrowView'](){const _0x23775e=new IconView();return _0x23775e['content']=IconDropdownArrow,_0x23775e['extendTemplate']({'attributes':{'class':'ck-dropdown-menu-list__nested-menu__button__arrow'}}),_0x23775e;}}class AIQuickActionsFilteredListView extends ListView{['_allListItems'];['_allSearchableItems'];constructor(_0x29af35,_0x248fab,_0x51e430){super(_0x29af35),this['_allListItems']=_0x248fab,this['_allSearchableItems']=_0x51e430;}['filter'](_0x176c97){if(!_0x176c97)return this['items']['clear'](),this['items']['addMany'](this['_allListItems']),this['_clearHighlight'](),{'resultsCount':this['_allListItems']['length'],'totalItemsCount':this['_allListItems']['length']};const _0x2f973a=_0x176c97['source']['toLowerCase']()['trim'](),_0x21ed61=this['_allSearchableItems']['filter'](_0x4a3c4b=>(_0x4a3c4b['groupLabel']?_0x4a3c4b['label']+'\x20('+_0x4a3c4b['groupLabel']+')':_0x4a3c4b['label'])['toLowerCase']()['includes'](_0x2f973a));return this['items']['clear'](),this['items']['addMany'](_0x21ed61['sort']((_0x4f54cb,_0x109026)=>{const _0x500e37=_0x4f54cb['groupLabel'],_0x2ffa4f=_0x109026['groupLabel'];return _0x500e37||_0x2ffa4f?_0x500e37?0x1:-0x1:0x0;})['map'](_0x54dab9=>_0x54dab9['item'])),this['_highlightQuery'](_0x2f973a,_0x21ed61),{'resultsCount':_0x21ed61['length'],'totalItemsCount':this['_allSearchableItems']['length']};}['_highlightQuery'](_0x4ff172,_0x14afa1){if(!_0x4ff172)return;const _0x21bc34=new RegExp(escapeRegExp$1(_0x4ff172),'gi');_0x14afa1['forEach'](_0x3f9d94=>{_0x3f9d94['highlightViews']&&_0x3f9d94['highlightViews']['forEach'](_0x211c41=>{'function'==typeof _0x211c41['highlightText']&&_0x211c41['highlightText'](_0x21bc34);});});}['_clearHighlight'](){this['_allSearchableItems']['forEach'](_0x50da63=>{_0x50da63['highlightViews']&&_0x50da63['highlightViews']['forEach'](_0x1ddd31=>{'function'==typeof _0x1ddd31['highlightText']&&_0x1ddd31['highlightText'](null);});});}}const UI_ROLES={'MENU':'menu','MENU_ITEM':'menuitem'};class AIQuickActionsDropdownContentView extends View{['_bodyCollection'];['optionsListView'];['_searchTextView']=null;['_allSearchableItems']=[];['children'];['focusTracker'];['keystrokes'];['_focusables'];['focusCycler'];['_openNestedPanels']=new Set();['_hasSearch'];constructor(_0x5e689b,_0x26bb80,_0x58f978,_0x2c6c26,_0xa26b86=!0x1){const _0x94689e=_0x5e689b['locale'];super(_0x94689e),this['_bodyCollection']=_0x2c6c26,this['_hasSearch']=_0xa26b86;const _0x1bb254=this['_createListItems'](_0x5e689b,_0x26bb80,_0x58f978);this['optionsListView']=new AIQuickActionsFilteredListView(_0x94689e,_0x1bb254,this['_allSearchableItems']),this['optionsListView']['role']=UI_ROLES['MENU'],this['optionsListView']['items']['addMany'](_0x1bb254),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),_0xa26b86&&(this['_searchTextView']=this['_createSearchTextView']()),this['_focusables']=_0x1bb254,this['focusCycler']=new FocusCycler({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes']}),_0xa26b86&&this['_searchTextView']&&this['focusCycler']['chain'](this['_searchTextView']['focusCycler']);const _0x516b6c=_0xa26b86&&this['_searchTextView']?[this['_searchTextView']]:[this['optionsListView']];this['children']=new ViewCollection(_0x516b6c),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions','ck-rounded-corners'],'dir':_0x94689e['uiLanguageDirection']},'children':this['children']});}['_createSearchTextView'](){return new SearchTextView(this['locale'],{'filteredView':this['optionsListView'],'queryView':{'label':getTranslation$i(this['locale'],'AI_QUICK_ACTIONS_SEARCH')},'class':'ck-ai-quick-actions-search','infoView':{'text':{'notFound':{'primary':getTranslation$i(this['locale'],'AI_QUICK_ACTIONS_SEARCH_NOT_FOUND')}}}});}['_isSearchFocused'](){if(!this['_hasSearch']||!this['_searchTextView']||!this['_searchTextView']['queryView']['fieldView']['element'])return!0x1;const _0x36956b=this['_searchTextView']['queryView']['fieldView']['element']['ownerDocument']?.['activeElement'];return this['_searchTextView']['queryView']['fieldView']['element']['contains'](_0x36956b);}['_createListItems'](_0x5a552c,_0x55c82e,_0x5c7a34){const _0x235659=new ViewCollection();return _0x55c82e['forEach'](_0x36716f=>{if('actions'in _0x36716f){const {listItem:_0x4080ed}=this['_createActionGroupButton'](_0x5a552c,_0x36716f,_0x5c7a34);_0x235659['add'](_0x4080ed),_0x36716f['actions']['forEach'](_0x32e3ff=>{this['_createActionButton'](_0x5a552c,_0x32e3ff,_0x36716f['label'],_0x36716f['icon']);const {listItem:_0x51db45,highlightViews:_0x338ab5}=this['_createSearchResultActionButton'](_0x5a552c,_0x32e3ff,_0x36716f['label'],_0x36716f['icon']);this['_allSearchableItems']['push']({'item':_0x51db45,'label':_0x32e3ff['displayedPrompt'],'groupLabel':_0x36716f['label'],'highlightViews':_0x338ab5});});}else{const {listItem:_0x2f90f4}=this['_createActionButton'](_0x5a552c,_0x36716f);_0x235659['add'](_0x2f90f4);const _0x1c5eb0=_0x2f90f4['children']['first'];if(_0x1c5eb0){const {listItem:_0xbaf55b,highlightViews:_0x67199}=this['_createSearchResultActionButton'](_0x5a552c,_0x36716f);this['_allSearchableItems']['push']({'item':_0xbaf55b,'label':_0x1c5eb0['label']||'','highlightViews':_0x67199});}}}),_0x235659;}['_createActionButton'](_0x14c294,_0x11cafd,_0x33b4ff,_0xf68ca0){const _0x2b01aa=new ListItemView(this['locale']);if(_0x33b4ff&&_0xf68ca0){const _0x134c19=new ButtonView(this['locale']),_0xbf0c1d=_0x134c19['bindTemplate'],_0x1c6192=new HighlightedTextView();_0x1c6192['text']=_0x11cafd['displayedPrompt'];const _0x383f82=new HighlightedTextView();_0x383f82['text']=_0x33b4ff;const _0x181f4=new IconView();_0x181f4['content']=_0xf68ca0,_0x181f4['extendTemplate']({'attributes':{'class':'ck-ai-quick-actions-button__group-icon'}});const _0x55ef7c=new View(this['locale']);_0x55ef7c['setTemplate']({'tag':'span','attributes':{'class':'ck-ai-quick-actions-button_with-group__open-paren'},'children':[{'text':'\x20('}]});const _0x365c82=new View(this['locale']);return _0x365c82['setTemplate']({'tag':'span','attributes':{'class':'ck-ai-quick-actions-button_with-group__close-paren'},'children':[{'text':')'}]}),_0x134c19['set']({'label':_0x11cafd['displayedPrompt']+'\x20('+_0x33b4ff+')','withText':!0x0,'role':'menuitem','class':'ck-ai-quick-actions-button\x20ck-ai-quick-actions-button_with-group','tooltip':!0x1}),_0x134c19['setTemplate']({'tag':'button','attributes':{'class':['ck','ck-button','ck-button_with-text','ck-ai-quick-actions-button','ck-ai-quick-actions-button_with-group'],'type':'button','role':'menuitem','tabindex':'-1'},'children':[_0x1c6192,_0x55ef7c,_0x181f4,_0x383f82,_0x365c82],'on':{'mouseenter':_0xbf0c1d['to'](()=>{this['_isSearchFocused']()||_0x134c19['focus']();}),'click':_0xbf0c1d['to'](()=>{_0x134c19['fire']('execute');})}}),_0x134c19['on']('execute',()=>{_0x14c294['editing']['view']['focus'](),_0x14c294['commands']['execute']('aiQuickAction',_0x11cafd);}),_0x2b01aa['children']['add'](_0x134c19),{'listItem':_0x2b01aa,'highlightViews':[_0x1c6192,_0x383f82]};}{const _0x1fa70b=new ButtonLabelWithHighlightView(),_0x4ef920=new ButtonView(this['locale'],_0x1fa70b),_0x21a2cb=_0x4ef920['bindTemplate'],_0x58673f=_0x11cafd['icon']??_0x11cafd['parent']?.['icon'],_0x3109da=void 0x0!==_0x11cafd['icon'];return _0x4ef920['set']({'label':_0x11cafd['displayedPrompt'],'withText':!0x0,'role':'menuitem','icon':_0x3109da?_0x58673f??IconAIQuickActions:void 0x0,'tooltip':!0x1,'class':'ck-ai-quick-actions-button'}),_0x4ef920['extendTemplate']({'on':{'mouseenter':_0x21a2cb['to'](()=>{this['_isSearchFocused']()||_0x4ef920['focus']();})}}),_0x4ef920['on']('execute',()=>{_0x14c294['editing']['view']['focus'](),_0x14c294['commands']['execute']('aiQuickAction',_0x11cafd);}),_0x2b01aa['children']['add'](_0x4ef920),{'listItem':_0x2b01aa,'highlightViews':[_0x1fa70b]};}}['_createSearchResultActionButton'](_0x741ef9,_0x1321a4,_0x217fc5,_0x4ca079){return _0x217fc5&&_0x4ca079?this['_createSearchResultGroupedActionButton'](_0x741ef9,_0x1321a4,_0x217fc5,_0x4ca079):this['_createSearchResultIndividualActionButton'](_0x741ef9,_0x1321a4);}['_createSearchResultGroupedActionButton'](_0x2d9d7c,_0x27fd64,_0x17902e,_0x169f71){const _0x5f5308=new ListItemView(this['locale']),_0x502782=new ButtonView(this['locale']),_0x5ccf4c=_0x502782['bindTemplate'],{view:_0x5d0162,highlightView:_0x593d1f}=this['_createSearchResultGroupRow'](_0x17902e,_0x169f71),{view:_0x4ec814,highlightView:_0x43d3f5}=this['_createSearchResultActionRow'](_0x27fd64['displayedPrompt']),_0x4ee85d=this['_createSearchResultContentView'](_0x5d0162,_0x4ec814);return _0x502782['set']({'label':_0x27fd64['displayedPrompt'],'withText':!0x0,'role':'menuitem','class':'ck-ai-quick-actions-button\x20ck-ai-quick-actions-search-result-button\x20ck-ai-quick-actions-search-result-button_with-group','tooltip':!0x1}),_0x502782['setTemplate']({'tag':'button','attributes':{'class':['ck','ck-button','ck-button_with-text','ck-ai-quick-actions-button','ck-ai-quick-actions-search-result-button','ck-ai-quick-actions-search-result-button_with-group'],'type':'button','role':'menuitem','tabindex':'-1'},'children':[_0x4ee85d],'on':{'mouseenter':_0x5ccf4c['to'](()=>{this['_isSearchFocused']()||_0x502782['focus']();}),'click':_0x5ccf4c['to'](()=>{this['_handleSearchResultButtonClick'](_0x502782);})}}),this['_setupActionButtonExecution'](_0x502782,_0x2d9d7c,_0x27fd64),_0x5f5308['children']['add'](_0x502782),{'listItem':_0x5f5308,'highlightViews':[_0x593d1f,_0x43d3f5]};}['_createSearchResultIndividualActionButton'](_0x5a02d6,_0x1e2cab){const _0x5e3d16=new ListItemView(this['locale']),_0x48e383=new ButtonLabelWithHighlightView(),_0x267fe1=new ButtonView(this['locale'],_0x48e383),_0x34f67f=_0x267fe1['bindTemplate'];return _0x267fe1['set']({'label':_0x1e2cab['displayedPrompt'],'withText':!0x0,'role':'menuitem','icon':void 0x0,'tooltip':!0x1,'class':'ck-ai-quick-actions-button\x20ck-ai-quick-actions-search-result-button'}),_0x267fe1['extendTemplate']({'on':{'mouseenter':_0x34f67f['to'](()=>{this['_isSearchFocused']()||_0x267fe1['focus']();})}}),this['_setupActionButtonExecution'](_0x267fe1,_0x5a02d6,_0x1e2cab),_0x5e3d16['children']['add'](_0x267fe1),{'listItem':_0x5e3d16,'highlightViews':[_0x48e383]};}['_createSearchResultGroupRow'](_0x5750e9,_0x14269d){const _0x33c27f=new View(this['locale']),_0x38aa08=new IconView();_0x38aa08['content']=_0x14269d,_0x38aa08['extendTemplate']({'attributes':{'class':'ck-ai-quick-actions-button__group-icon'}});const _0x154adf=new HighlightedTextView();return _0x154adf['text']=_0x5750e9,_0x33c27f['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__group-row'},'children':[_0x38aa08,_0x154adf]}),{'view':_0x33c27f,'highlightView':_0x154adf};}['_createSearchResultActionRow'](_0x4314e7){const _0x2e7348=new View(this['locale']),_0x797140=new HighlightedTextView();return _0x797140['text']=_0x4314e7,_0x2e7348['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__action-row'},'children':[_0x797140]}),{'view':_0x2e7348,'highlightView':_0x797140};}['_createSearchResultContentView'](_0x1b6b56,_0x26351b){const _0x34648c=new View(this['locale']);return _0x34648c['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__content'},'children':[_0x1b6b56,_0x26351b]}),_0x34648c;}['_setupActionButtonExecution'](_0x342b1b,_0x11f7d1,_0x535532){_0x342b1b['on']('execute',()=>{_0x11f7d1['editing']['view']['focus'](),_0x11f7d1['commands']['execute']('aiQuickAction',_0x535532);});}['_createActionGroupButton'](_0x2f8f47,_0x253d79,_0x5ddcae){const _0x29cf4a=new ListItemView(this['locale']),_0x4ed194=new ButtonLabelWithHighlightView(),_0x3563f8=new DropdownMenuButtonWithHighlightView(this['locale'],_0x4ed194),_0x47220b=_0x3563f8['bindTemplate'],_0x116d50=this['_getPanelKeystroke'](_0x5ddcae),_0x1adaf9=this['_createGroupActionsList'](_0x2f8f47,_0x253d79['actions'],_0x5ddcae);_0x3563f8['set']({'label':_0x253d79['label'],'withText':!0x0,'role':UI_ROLES['MENU_ITEM'],'icon':_0x253d79['icon']??IconAIQuickActions,'isEnabled':_0x253d79['actions']['some'](_0xb945b0=>_0xb945b0['isEnabled'])}),_0x3563f8['extendTemplate']({'on':{'mouseenter':_0x47220b['to'](()=>{this['_isSearchFocused']()||_0x3563f8['focus']();})}});const _0x115f5b=new BalloonPanelView(this['locale']);return _0x115f5b['extendTemplate']({'attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions-group-panel','ck-dropdown-menu__nested-menu__panel']},'on':{'keydown':_0x47220b['to'](_0x4070ad=>{this['_handlePanelKeydown'](_0x4070ad,_0x116d50,_0x3563f8,_0x115f5b);})}}),_0x3563f8['bind']('isOn')['to'](_0x115f5b,'isVisible'),this['_bodyCollection']['add'](_0x115f5b),_0x115f5b['content']['add'](_0x1adaf9),this['_setupGroupMenuBehavior'](_0x3563f8,_0x115f5b),_0x29cf4a['children']['add'](_0x3563f8),{'listItem':_0x29cf4a,'highlightView':_0x4ed194};}['_createGroupActionsList'](_0x170a68,_0x27f5f3,_0x19a562){const _0x344573=new ListView(this['locale']);return _0x344573['extendTemplate']({'attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions-group-list','ck-dropdown-menu-list']}}),_0x27f5f3['forEach'](_0x5a2550=>{const _0x2e6fe5=new ListItemView(this['locale']),_0x3b26df=aiQuickActionsButtonCreator({'editor':_0x170a68,'action':_0x5a2550,'withText':!0x0,'withIcon':!0x1,'isInDropdown':!0x0,'shouldPreventFocus':()=>this['_isSearchFocused']()})();_0x2e6fe5['children']['add'](_0x3b26df),_0x19a562['focusTracker']['add'](_0x3b26df),_0x344573['items']['add'](_0x2e6fe5);}),_0x344573;}['_setupGroupMenuBehavior'](_0x3d5fad,_0xeac943){const _0x4035e9=_0x3d5fad['bindTemplate'],_0x3d442f=this['_getButtonKeystroke'](_0x3d5fad);_0x3d5fad['extendTemplate']({'attributes':{'class':['ck-ai-quick-actions-group-button']},'on':{'mouseenter':_0x4035e9['to'](()=>{this['_showNestedPanel'](_0xeac943,_0x3d5fad);}),'mouseleave':_0x4035e9['to'](_0x360ce8=>{const _0xb7f069=_0x360ce8['relatedTarget'];this['_isMovingToNestedMenu'](_0xb7f069,_0xeac943)||this['_hideNestedPanel'](_0xeac943);}),'keydown':_0x4035e9['to'](_0x5dbac8=>{_0x5dbac8['key']==_0x3d442f&&(this['_showNestedPanel'](_0xeac943,_0x3d5fad),_0xeac943['content']['get'](0x0)['focus']());})}}),_0xeac943['on']('render',()=>{_0xeac943['element']?.['addEventListener']('mouseleave',_0x2dbd91=>{const _0x4adfad=_0x2dbd91['relatedTarget'];_0x3d5fad['element']?.['contains'](_0x4adfad)||this['_isMovingToNestedMenu'](_0x4adfad,_0xeac943)||this['_hideNestedPanel'](_0xeac943);});});}['_showNestedPanel'](_0x5ec5b3,_0x121fac){this['_openNestedPanels']['forEach'](_0x5dab49=>{_0x5dab49!==_0x5ec5b3&&_0x5dab49['isVisible']&&_0x5dab49['hide']();}),_0x5ec5b3['show'](),_0x5ec5b3['pin']({'positions':[DropdownMenuPanelPositioningFunctions['eastSouth']],'target':_0x121fac['element'],'fitInViewport':!0x0}),this['_openNestedPanels']['add'](_0x5ec5b3);}['_hideNestedPanel'](_0x13bb4a){_0x13bb4a['hide'](),this['_openNestedPanels']['delete'](_0x13bb4a);}['_hideAllNestedPanels'](){this['_openNestedPanels']['forEach'](_0x28017d=>_0x28017d['hide']()),this['_openNestedPanels']['clear']();}['_isMovingToNestedMenu'](_0x548456,_0xe859f6){if(!_0x548456)return!0x1;if(_0xe859f6['element']?.['contains'](_0x548456))return!0x0;const _0x5684ee=_0x548456;return _0x5684ee['closest']&&(null!==_0x5684ee['closest']('.ck-ai-quick-actions-group-panel')||null!==_0x5684ee['closest']('.ck-ai-quick-actions-group-list')||null!==_0x5684ee['closest']('.ck-ai-quick-actions-group-button'));}['resetSearch'](){this['_searchTextView']&&this['_searchTextView']['reset']();}['destroy'](){this['_hideAllNestedPanels'](),this['_bodyCollection']['detachFromDom'](),super['destroy']();}['focus'](){this['_searchTextView']?this['_searchTextView']['focus']():this['optionsListView']['focus']();}['_getPanelKeystroke'](_0x3d0b6f){return'rtl'===_0x3d0b6f['locale']['uiLanguageDirection']?'ArrowRight':'ArrowLeft';}['_getButtonKeystroke'](_0x4ef316){return'rtl'===_0x4ef316['locale']['uiLanguageDirection']?'ArrowLeft':'ArrowRight';}['_handlePanelKeydown'](_0x4fd106,_0x3e6883,_0x592f8b,_0x52c76e){_0x4fd106['key']==_0x3e6883&&(_0x592f8b['focus'](),this['_hideNestedPanel'](_0x52c76e));}['_handleSearchResultButtonClick'](_0x2ecbf2){_0x2ecbf2['fire']('execute');}}function aiQuickActionsDropdownCreator(_0x25b1c8){const {editor:_0x1a5c05,content:_0x3f5244,buttonDefinition:_0x22a90c,bodyCollection:_0x5f33fa,hasSearch:_0xafceef=!0x1}=_0x25b1c8;return()=>{const _0x57348f=_0x1a5c05['locale'],_0x13d94a=createDropdown(_0x57348f);_0x13d94a['buttonView']['set']({'icon':_0x22a90c['icon']??IconAIQuickActions,'label':_0x22a90c['label'],'tooltip':!0x0}),_0x13d94a['set']({'class':'ck-ai-quick-actions-dropdown'});const _0x52e473=new AIQuickActionsDropdownContentView(_0x1a5c05,_0x3f5244,_0x13d94a,_0x5f33fa,_0xafceef);if(_0x13d94a['panelView']['children']['add'](_0x52e473),_0xafceef){const _0x18c8f7='ai-quick-actions-dropdown-selection';_0x13d94a['on']('change:isOpen',(_0xc67fae,_0x73c4ce,_0x325ccd)=>{if(_0x325ccd){if(_0x1a5c05['plugins']['has']('AIEditing')){const _0x12ce1b=_0x1a5c05['plugins']['get'](AIEditing),_0x26f114=_0x1a5c05['model']['document']['selection'],_0x349055=Array['from'](_0x26f114['getRanges']());_0x349055['length']>0x0&&_0x12ce1b['showFakeVisualSelection'](_0x349055,_0x18c8f7,!0x1,!0x0);}}else _0x1a5c05['plugins']['has']('AIEditing')&&_0x1a5c05['plugins']['get'](AIEditing)['hideFakeVisualSelection'](_0x18c8f7),_0x52e473['resetSearch']();});}return _0x13d94a;};}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(_0x22f286){return _0x22f286['CHAT']='CHAT',_0x22f286['ACTION']='ACTION',_0x22f286['REVIEW']='REVIEW',_0x22f286;}({}),AIQuickActionTypeToPluginName=function(_0x5e2759){return _0x5e2759['CHAT']='AIChat',_0x5e2759['ACTION']='AIActions',_0x5e2759['REVIEW']='AIReviewMode',_0x5e2759;}({});class AIQuickActionsUI extends Plugin{static get['requires'](){return[BalloonToolbar,AIConnector];}static get['pluginName'](){return'AIQuickActionsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){const _0x16ecad=await this['_getDefaultAndCustomActions']();this['_prepareQuickActionsDefinition'](_0x16ecad),this['_initializeQuickActionsComponentsAndCommands']();}static['getDefaultQuickActions'](_0x56300c){return getDefaultQuickActions(_0x56300c);}async['_getDefaultAndCustomActions'](){const _0x320d54=AIQuickActionsUI['getDefaultQuickActions'](this['editor']['locale']),_0x27ec72=this['editor']['config']['get']('ai.quickActions.extraCommands')||[];let _0x2dfccb=[];try{_0x2dfccb=await new AIModels({'connector':this['editor']['plugins']['get']('AIConnector'),'locale':this['editor']['locale']})['getAll']();}catch(_0x3df94f){const _0x437c9c=new CKEditorError('ai-quick-actions-models-unable-to-retrieve',this,{'error':_0x3df94f});logError(_0x437c9c['message']);}finally{const _0x56a013=_0x27ec72['map'](_0x38edcf=>({..._0x38edcf,'icon':void 0x0})),_0x33a53d=_0x320d54['find'](_0x9e6dae=>'other'===_0x9e6dae['id']);_0x33a53d['actions']['push'](..._0x56a013),_0x320d54['forEach'](_0x2ab630=>{if('actions'in _0x2ab630)_0x2ab630['actions']['forEach'](_0xab3fd7=>{if(_0xab3fd7['isEnabled']=!!_0x2dfccb['find'](_0x3caf5f=>_0x3caf5f['id']===_0xab3fd7['model'])||void 0x0===_0xab3fd7['model'],!_0xab3fd7['isEnabled']){const _0x440f42=new CKEditorError('ai-quick-actions-unavailable-model',this,{'actionId':_0xab3fd7['id'],'modelId':_0xab3fd7['model']});logError(_0x440f42['message']);}});else{if(_0x2ab630['isEnabled']=!!_0x2dfccb['find'](_0x22b711=>_0x22b711['id']===_0x2ab630['model'])||void 0x0===_0x2ab630['model'],!_0x2ab630['isEnabled']){const _0x432ed1=new CKEditorError('ai-quick-actions-unavailable-model',this,{'actionId':_0x2ab630['id'],'modelId':_0x2ab630['model']});logError(_0x432ed1['message']);}}});}return _0x320d54;}['_initializeQuickActionsComponentsAndCommands'](){const _0x10dff6=new BodyCollection(this['editor']['locale']);_0x10dff6['attachToDom'](),this['_initializeQuickActionsDropdown'](_0x10dff6),this['_initializeQuickActionsMenuBar'](),this['_initializeQuickActionsComponents'](_0x10dff6);}['_initializeQuickActionsDropdown'](_0x820be9){const _0x2e43bc=this['editor']['config']['get']('ai.quickActions.isSearchEnabled')??!0x0;this['editor']['ui']['componentFactory']['add']('aiQuickActions',aiQuickActionsDropdownCreator({'editor':this['editor'],'content':this['_quickActionsDefinition'],'buttonDefinition':{'icon':IconAIQuickActions,'label':getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_HEADING')},'bodyCollection':_0x820be9,'hasSearch':_0x2e43bc}));}['_prepareQuickActionsDefinition'](_0x4dd820){this['_quickActionsDefinition']=_0x4dd820['map'](_0x305a39=>{if('actions'in _0x305a39){const _0x168591=_0x305a39;return{..._0x168591,'actions':_0x168591['actions']['map'](_0x4e7782=>{const {actions:_0x34d41e,..._0x43c4e9}=_0x168591;return{..._0x4e7782,'parent':_0x43c4e9};})['filter'](_0x1fbc25=>this['_shouldIncludeAction'](_0x1fbc25))};}return _0x305a39;})['filter'](_0x3d4664=>'actions'in _0x3d4664?_0x3d4664['actions']['length']>0x0:this['_shouldIncludeAction'](_0x3d4664));}['_shouldIncludeAction'](_0x59f660){const _0x8f20c1=this['editor']['config']['get']('ai.quickActions.removeCommands')||[];return this['editor']['plugins']['has'](AIQuickActionTypeToPluginName[_0x59f660['type']])&&!_0x8f20c1['includes'](_0x59f660['id'])&&!('CHAT'===_0x59f660['type']&&!0x1===this['editor']['config']['get']('ai.chat.context.document.enabled'));}['_initializeQuickActionsComponents'](_0x5d727c){this['_quickActionsDefinition']['forEach'](_0x5cab0a=>{if('actions'in _0x5cab0a){const _0x472010=aiQuickActionsDropdownCreator({'editor':this['editor'],'content':_0x5cab0a['actions'],'buttonDefinition':_0x5cab0a,'bodyCollection':_0x5d727c});this['editor']['ui']['componentFactory']['add'](_0x5cab0a['id'],_0x472010),_0x5cab0a['actions']['forEach'](_0x2a2295=>{const _0x5a70b1=aiQuickActionsButtonCreator({'editor':this['editor'],'action':_0x2a2295});this['editor']['ui']['componentFactory']['add'](_0x2a2295['id'],_0x5a70b1);});}else{const _0x161596=aiQuickActionsButtonCreator({'editor':this['editor'],'action':_0x5cab0a,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this['editor']['ui']['componentFactory']['add'](_0x5cab0a['id'],_0x161596);}});}['_initializeQuickActionsMenuBar'](){this['editor']['ui']['componentFactory']['add']('menuBar:aiQuickActions',_0x1caf14=>{const _0x2c2237=new MenuBarMenuView(_0x1caf14),_0x5e71c6=getTranslation$i(_0x1caf14,'AI_QUICK_ACTIONS_HEADING');_0x2c2237['buttonView']['set']({'label':_0x5e71c6,'icon':IconAIQuickActions});const _0x4240ac=new MenuBarMenuListView(_0x1caf14);_0x4240ac['set']({'ariaLabel':_0x5e71c6,'role':'menu'}),this['_quickActionsDefinition']['forEach'](_0x54e12a=>{if('actions'in _0x54e12a){const _0x42fa1f=_0x54e12a,_0xd45d2a=new MenuBarMenuListItemView(_0x1caf14,_0x2c2237),_0x36004a=new MenuBarMenuView(_0x1caf14),_0x46dc2d=new MenuBarMenuListView(_0x1caf14);_0x36004a['buttonView']['set']({'label':_0x42fa1f['label'],'icon':_0x42fa1f['icon']}),_0x42fa1f['actions']['forEach'](_0x390136=>{const _0x5b5090=new MenuBarMenuListItemView(_0x1caf14,_0x36004a),_0x482c02=new MenuBarMenuListItemButtonView(_0x1caf14);_0x482c02['set']({'label':_0x390136['displayedPrompt'],'icon':_0x390136['icon'],'role':'menuitem','isEnabled':_0x390136['isEnabled']}),_0x482c02['on']('execute',()=>{this['_executeQuickAction'](_0x390136);}),_0x482c02['delegate']('execute')['to'](_0x36004a),_0x5b5090['children']['add'](_0x482c02),_0x46dc2d['items']['add'](_0x5b5090);}),_0x36004a['panelView']['children']['add'](_0x46dc2d),_0xd45d2a['children']['add'](_0x36004a),_0x4240ac['items']['add'](_0xd45d2a);}else{const _0x2534d6=_0x54e12a,_0x31d3b2=new MenuBarMenuListItemView(_0x1caf14,_0x2c2237),_0x30417d=new MenuBarMenuListItemButtonView(_0x1caf14);_0x30417d['set']({'label':_0x2534d6['displayedPrompt'],'icon':_0x2534d6['icon'],'role':'menuitem','isEnabled':_0x2534d6['isEnabled']}),_0x30417d['on']('execute',()=>{this['_executeQuickAction'](_0x2534d6);}),_0x30417d['delegate']('execute')['to'](_0x2c2237),_0x31d3b2['children']['add'](_0x30417d),_0x4240ac['items']['add'](_0x31d3b2);}});const _0x3436db=Object['values'](AIQuickActionTypeToPluginName)['some'](_0x23dcb3=>this['editor']['plugins']['has'](_0x23dcb3));return _0x2c2237['set']({'isEnabled':_0x3436db}),_0x2c2237['panelView']['children']['add'](_0x4240ac),_0x2c2237;});}['_executeQuickAction'](_0x6fd734){const _0x13f6e6=this['editor'];_0x13f6e6['editing']['view']['focus'](),_0x13f6e6['commands']['execute']('aiQuickAction',_0x6fd734);const _0xf746f7=_0x13f6e6['ui']['view']['menuBarView'];_0xf746f7&&_0xf746f7['close']&&_0xf746f7['close']();}}function getDefaultQuickActions(_0x11f832){const _0x238535=new Intl['DisplayNames'](['en'],{'type':'language'})['of'](_0x11f832['uiLanguage'])||'English';return[{'id':'ask-ai','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_ASK_AI'),'type':'CHAT','icon':IconAIChatCommands},{'id':'chat-commands','label':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_CHAT_COMMANDS'),'icon':IconAIChatCommands,'actions':[{'id':'explain','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_EXPLAIN'),'prompt':AI_QUICK_ACTIONS_EXPLAIN_PROMPT['replace']('%0',_0x238535),'type':'CHAT'},{'id':'summarize','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_SUMMARIZE'),'prompt':AI_QUICK_ACTIONS_SUMMARIZE_PROMPT['replace']('%0',_0x238535),'type':'CHAT'},{'id':'highlight-key-points','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS'),'prompt':AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS_PROMPT['replace']('%0',_0x238535),'type':'CHAT'}]},{'id':'improve-writing','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_IMPROVE_WRITING'),'type':'ACTION','icon':IconAIImproveWriting},{'id':'continue','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_CONTINUE_WRITING'),'type':'ACTION','icon':IconAIContinueWriting},{'id':'fix-grammar','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING'),'type':'ACTION','icon':IconAIGrammarCheck},{'id':'adjust-length','label':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_ADJUST_LENGTH'),'icon':IconAIAdjustLength,'actions':[{'id':'make-shorter','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_MAKE_SHORTER'),'type':'ACTION'},{'id':'make-longer','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_MAKE_LONGER'),'type':'ACTION'}]},{'id':'change-tone','label':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_CHANGE_TONE'),'icon':IconAIChangeTone,'actions':[{'id':'make-tone-casual','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_MORE_CASUAL'),'type':'ACTION'},{'id':'make-tone-direct','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_MORE_DIRECT'),'type':'ACTION'},{'id':'make-tone-friendly','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_MORE_FRIENDLY'),'type':'ACTION'},{'id':'make-tone-confident','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_MORE_CONFIDENT'),'type':'ACTION'},{'id':'make-tone-professional','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_MORE_PROFESSIONAL'),'type':'ACTION'}]},{'id':'translate','label':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_TRANSLATE'),'icon':IconAITranslate,'actions':[{'id':'translate-to-english','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH'),'type':'ACTION','actionName':'translate','args':{'language':'english'}},{'id':'translate-to-chinese','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_TRANSLATE_CHINESE'),'type':'ACTION','actionName':'translate','args':{'language':'chinese'}},{'id':'translate-to-spanish','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_TRANSLATE_SPANISH'),'type':'ACTION','actionName':'translate','args':{'language':'spanish'}},{'id':'translate-to-german','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_TRANSLATE_GERMAN'),'type':'ACTION','actionName':'translate','args':{'language':'german'}},{'id':'translate-to-french','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_TRANSLATE_FRENCH'),'type':'ACTION','actionName':'translate','args':{'language':'french'}},{'id':'translate-to-japanese','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE'),'type':'ACTION','actionName':'translate','args':{'language':'japanese'}},{'id':'translate-to-portuguese','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE'),'type':'ACTION','actionName':'translate','args':{'language':'portuguese'}},{'id':'translate-to-korean','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_TRANSLATE_KOREAN'),'type':'ACTION','actionName':'translate','args':{'language':'korean'}},{'id':'translate-to-italian','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN'),'type':'ACTION','actionName':'translate','args':{'language':'italian'}},{'id':'translate-to-russian','displayedPrompt':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN'),'type':'ACTION','actionName':'translate','args':{'language':'russian'}}]},{'id':'other','label':getTranslation$i(_0x11f832,'AI_QUICK_ACTIONS_OTHER'),'icon':IconAIOther,'actions':[]}];}class AIQuickActionsCommand extends Command{['execute'](_0x400943){switch(this['_expandSelectionIfCollapsed'](),_0x400943['type']){case AIQuickActionType['CHAT']:if(!this['editor']['plugins']['has']('AIChat')){const _0x205ace=getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIChat');throw new CKEditorError('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x205ace});}this['_handleAIChatAction'](_0x400943);break;case AIQuickActionType['ACTION']:if(!this['editor']['plugins']['has']('AIActions')){const _0x3a1949=getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIActions');throw new CKEditorError('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x3a1949});}this['_handleAIActionsAction'](_0x400943);break;case AIQuickActionType['REVIEW']:if(!this['editor']['plugins']['has']('AIReviewMode')){const _0x4f47b9=getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIReviewMode');throw new CKEditorError('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x4f47b9});}this['_handleAIReviewAction'](_0x400943);}}async['_handleAIChatAction'](_0x338ac6){const _0x18912b=this['editor']['plugins']['get']('AIChat'),_0x5d5d1d=this['editor']['plugins']['get']('AIChatController'),_0x28cc54=this['editor']['plugins']['get']('AITabs')['view'];if(_0x28cc54['isVisible']||(_0x28cc54['isVisible']=!0x0),'chat'!==_0x28cc54['activeTab']&&_0x28cc54['activateTab']('chat'),'ask-ai'===_0x338ac6['id'])_0x5d5d1d['removeSelectionFromChatContext'](),await _0x18912b['addSelectionToChatContext'](),_0x18912b['focusPromptInput']();else await _0x18912b['startConversation'](),_0x5d5d1d['removeSelectionFromChatContext'](),await _0x18912b['addSelectionToChatContext'](),_0x18912b['focusPromptInput'](),await _0x18912b['sendMessage']({'message':_0x338ac6['prompt']||_0x338ac6['displayedPrompt'],'attributes':{'quickActionData':{'id':_0x338ac6['id']},'displayedPrompt':_0x338ac6['displayedPrompt']}});}['_expandSelectionIfCollapsed'](){const _0x51fdc4=this['editor'],_0x101cf6=_0x51fdc4['model']['document']['selection'];if(!_0x101cf6['isCollapsed'])return;const _0x5839bc=first(_0x101cf6['getSelectedBlocks']())||_0x51fdc4['model']['schema']['getLimitElement'](_0x101cf6);_0x51fdc4['model']['change'](_0x3cd0cf=>{_0x3cd0cf['setSelection'](_0x5839bc,'in');});}['_handleAIActionsActionLabel'](_0x5b530b){return _0x5b530b['parent']?.['label']&&'other'!==_0x5b530b['parent']?.['id']?_0x5b530b['parent']['label']+':\x20'+_0x5b530b['displayedPrompt']:_0x5b530b['displayedPrompt'];}async['_handleAIActionsAction'](_0x319fb1){const _0x22e055=this['editor']['plugins']['get']('AIActions'),_0x1d0872=_0x319fb1['prompt']?{'userMessage':_0x319fb1['prompt'],'model':_0x319fb1['model']}:{'actionName':_0x319fb1['actionName']||_0x319fb1['id'],'args':_0x319fb1['args']},_0x1b9181=this['_handleAIActionsActionLabel'](_0x319fb1);await _0x22e055['executeAction'](_0x1d0872,_0x1b9181,_0x319fb1['icon']);}async['_handleAIReviewAction'](_0x38e31a){console['log']('handleAIReviewAction',_0x38e31a);}}class AIQuickActionsEditing extends Plugin{static get['pluginName'](){return'AIQuickActionsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x13b298=this['editor'],_0x320cc7=new AIQuickActionsCommand(this['editor']);if(_0x13b298['commands']['add']('aiQuickAction',_0x320cc7),_0x13b298['plugins']['has']('AIChat')){const _0x3310a8=this['editor']['plugins']['get']('AIChat');_0x13b298['model']['document']['selection']['on']('change:range',(_0x1b9924,_0x4fc624)=>{_0x4fc624['directChange']&&_0x3310a8['removeSelectionFromChatContext']();});}}}class AIActionsReply extends AIReply{['updateChangeGroups'](){if(this['parsedMergedContent']=this['parsedContent']['cloneNode'](!0x0),0x0==this['parsedMergedContent']['childNodes']['length'])return void(this['changeGroups']=[]);const _0x551cc9=diffArrays(this['documentContextContent']['children']['map'](_0x5ca38d=>({'node':_0x5ca38d,'id':getAttribute(_0x5ca38d,'data-id')})),this['parsedMergedContent']['children']['map'](_0x419506=>({'node':_0x419506,'id':getAttribute(_0x419506,'data-id')||uid()})),{'comparator':(_0x323ea4,_0x277be7)=>_0x323ea4['id']==_0x277be7['id'],'oneChangePerToken':!0x0});if(!this['isDone']){for(;_0x551cc9['length']&&_0x551cc9[_0x551cc9['length']-0x1]['removed'];)_0x551cc9['pop']();}const _0x1704fe=_0x551cc9['map'](_0x249f0b=>{const _0x11e17b=_0x249f0b['added']?'new':_0x249f0b['removed']?'removed':'modified';return{'node':_0x249f0b['value'][0x0]['node'],'type':_0x11e17b,'id':_0x249f0b['value'][0x0]['id']};});this['changeGroups']=[{'changes':_0x1704fe,'state':'pending','index':0x0}];}['_getDifferentChangeGroups'](_0x5d3d2b,_0x3bb863){return _0x3bb863;}}class AIActionsInteraction extends AIInteraction{['content'];['version'];['actionName'];['args'];['userMessage'];['model'];['hasError']=!0x1;constructor(_0x3d929b){super(_0x3d929b),this['content']=_0x3d929b['content'],this['version']=_0x3d929b['version'],this['actionName']=_0x3d929b['actionName'],this['args']=_0x3d929b['args'],this['userMessage']=_0x3d929b['userMessage'],this['model']=_0x3d929b['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'](_0x21af6c){const _0x5301cb=new AIActionsReply({'editor':this['editor'],'documentContextContent':this['content'],..._0x21af6c});return this['replies']['push'](_0x5301cb),_0x5301cb['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['fire']('replyCreated',_0x5301cb),_0x5301cb;}}class AIActionsBalloonToolbarView extends ToolbarView{constructor(_0x737750,_0x18581d=!0x0,_0x21cbbc=!0x0){super(_0x737750),this['set']('isEnabled',!0x1),_0x18581d&&(this['applyButton']=this['_createButton'](getTranslation$i(_0x737750,'AI_BALLOON_APPLY_BUTTON'),'ck-ai-button-primary'),this['applyButton']['bind']('isEnabled')['to'](this),this['items']['add'](this['applyButton'])),_0x21cbbc&&(this['suggestButton']=this['_createButton'](getTranslation$i(_0x737750,'AI_BALLOON_SUGGEST_BUTTON'),_0x18581d?'ck-ai-button-secondary':'ck-ai-button-primary'),this['suggestButton']['bind']('isEnabled')['to'](this),this['items']['add'](this['suggestButton'])),this['setButtonsVisibility']({'showApplyButton':_0x18581d,'showSuggestButton':_0x21cbbc}),this['extendTemplate']({'attributes':{'class':['ck-ai-balloon__toolbar']}});}['setButtonsVisibility']({showApplyButton:_0x29b3f3,showSuggestButton:_0x70e369}){this['applyButton']&&(this['applyButton']['isVisible']=_0x29b3f3),this['suggestButton']&&(this['suggestButton']['isVisible']=_0x70e369);}['_createButton'](_0x357890,_0x4415f6){const _0x2b2006=new ButtonView(this['locale']);return _0x2b2006['set']({'label':_0x357890,'class':_0x4415f6,'isVisible':!0x0,'withText':!0x0}),_0x2b2006;}}class AIActionsBalloonDisclaimerView extends View{constructor(_0x57d784){super(_0x57d784),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(_0x57d784,'AI_DISCLAIMER_TEXT')}]}]});}}class AISuggestionLoaderView extends View{constructor(_0x36e028){super(_0x36e028),this['set']('isVisible',!0x0);const _0x1872be=new AISpinnerView('small');_0x1872be['isVisible']=!0x0;const _0x5c5aeb=new View(this['locale']);_0x5c5aeb['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__loader-text']},'children':[getTranslation$i(this['locale'],'AI_CHAT_IS_WRITING')]}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__loader',this['bindTemplate']['if']('isVisible','ck-hidden',_0x2ecc18=>!_0x2ecc18)]},'children':[_0x1872be,_0x5c5aeb]});}}class AIActionsBalloonView extends AIBalloonView{['focusCycler'];['_config'];['_contentWrapper'];['_streamableContentView'];['_toolbarView'];['_miniToolbarView'];['_loaderView'];['_disclaimerView'];['_focusTracker'];['_keystrokes'];['_dialogContent'];['_focusables'];['_scrollManager'];['_navigationPreviousButton'];['_navigationNextButton'];['_navigationTryAgainButton'];['_navigationCounter'];constructor(_0xa4e452,_0x1d04d2){super(_0xa4e452),this['set']('isBusy',!0x1),this['set']('isTrackChangesOn',!0x1),this['set']('_isLoading',!0x1),this['set']('_hasError',!0x1),this['_config']=_0x1d04d2,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['_addContentWrapper'](_0x1d04d2),this['_addDisclaimerView'](),this['_addToolbar'](_0x1d04d2),this['_focusables']['clear'](),this['_focusables']['addMany']([this['_toolbarView']]),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-actions-balloon-main']},'children':this['_dialogContent']}),this['on']('change:isTrackChangesOn',()=>{this['_toggleToolbarButtonsVisibility'](_0x1d04d2);});}['render'](){super['render']();for(const _0x75dea3 of this['_focusables'])this['_focusTracker']['add'](_0x75dea3['element']);this['_keystrokes']['listenTo'](this['element']),this['_initializeScrollManager']();}['destroy'](){super['destroy'](),this['_scrollManager']&&this['_scrollManager']['destroy']();}['focus'](_0x4e802b){-0x1===_0x4e802b?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['setIsLoading'](_0x44737d){this['_isLoading']=_0x44737d;}['setErrorState'](){this['_hasError']=!0x0,this['_miniToolbarView']['toggleShowChangesEnabled'](!0x1);}['clearErrorState'](){this['_hasError']=!0x1,this['_miniToolbarView']['toggleShowChangesEnabled'](!0x0);}['showError'](_0x7d17ef){super['showError'](_0x7d17ef),this['_dialogContent']['has'](this['_errorView'])||this['_dialogContent']['add'](this['_errorView'],0x0);}['hideError'](){super['hideError'](),this['clearErrorState']();}['showBlockingError'](_0x5e3816){super['showBlockingError'](_0x5e3816),this['setErrorState']();}['addMiniToolbarItem'](_0xf9b8ca){this['_miniToolbarView']['items']['has'](_0xf9b8ca)||this['_miniToolbarView']['items']['add'](_0xf9b8ca);}['removeMiniToolbarItem'](_0x4adc70){this['_miniToolbarView']['items']['has'](_0x4adc70)&&this['_miniToolbarView']['items']['remove'](_0x4adc70);}['showLoader'](){this['_loaderView']&&(this['_isLoading']=!0x0);}['hideLoader'](){this['_loaderView']&&(this['_isLoading']=!0x1);}['_toggleToolbarButtonsVisibility']({showApplyButton:_0x53da76,showSuggestButton:_0x32923c}){_0x53da76=_0x53da76&&!this['isTrackChangesOn']&&this['_config']['availableActions']['includes']('applySuggestion'),_0x32923c=_0x32923c&&this['_config']['availableActions']['includes']('insertSuggestion'),this['_toolbarView']['setButtonsVisibility']({'showApplyButton':_0x53da76,'showSuggestButton':_0x32923c});}async['updateContent'](_0x15e099){await this['_streamableContentView']['update'](_0x15e099);}['clearContent'](){this['_streamableContentView']['clear']();}['_addContentWrapper'](_0x31af82){this['_contentWrapper']=new View(this['locale']),this['_contentWrapper']['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-actions-balloon-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-actions-balloon-content-wrapper']},'children':[this['_createLoaderView'](),this['_createStreamableContentView']()]},this['_createMiniToolbar'](_0x31af82['miniToolbarConfig'])]}),this['_dialogContent']['add'](this['_contentWrapper']);}['_addDisclaimerView'](){this['_disclaimerView']=new AIActionsBalloonDisclaimerView(this['locale']),this['_dialogContent']['add'](this['_disclaimerView']);}['_addToolbar']({showApplyButton:_0x45a063,showSuggestButton:_0x3e002f}){this['_toolbarView']=new AIActionsBalloonToolbarView(this['locale'],_0x45a063,_0x3e002f),this['_toolbarView']['applyButton']?.['on']('execute',()=>{this['fire']('applySuggestion');}),this['_toolbarView']['suggestButton']?.['on']('execute',()=>{this['fire']('insertSuggestion');}),this['_toolbarView']['bind']('isEnabled')['to'](this,'isBusy',this,'_isLoading',this,'_hasError',(_0x409600,_0xea3210,_0x32958b)=>!(_0x409600||_0xea3210||_0x32958b)),this['_toggleToolbarButtonsVisibility']({'showApplyButton':_0x45a063,'showSuggestButton':_0x3e002f}),this['_dialogContent']['add'](this['_toolbarView']);}['_createMiniToolbar'](_0x33d35f){return this['_miniToolbarView']=new AIMiniToolbarView(this['locale'],_0x33d35f),this['_miniToolbarView']['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),this['_miniToolbarView']['on']('toggleShowChanges',()=>{this['_miniToolbarView']['isShowChangesOn']=!this['_miniToolbarView']['isShowChangesOn'],this['fire']('toggleSuggestionDisplayMode',{'showDiff':this['_miniToolbarView']['isShowChangesOn']});}),this['_miniToolbarView']['bind']('isEnabled')['to'](this,'isBusy',this,'_isLoading',(_0x116791,_0x4e2b7b)=>!(_0x116791||_0x4e2b7b)),this['_miniToolbarView'];}['_createLoaderView'](){return this['_loaderView']=new AISuggestionLoaderView(this['locale']),this['_loaderView']['bind']('isVisible')['to'](this,'_isLoading'),this['_loaderView'];}['_createStreamableContentView'](){return this['_streamableContentView']=new AISuggestionStreamableContentView(this['locale']),this['_streamableContentView'];}['_setupMiniToolbarButtons'](){const _0x59bd78=new ButtonView(this['locale']),_0x1e66b4=new ButtonView(this['locale']),_0x4925cc=new AIActionsBalloonNavigationCounterView(this['locale']),_0x5c05d4=new ButtonView(this['locale']);_0x59bd78['set']({'icon':IconRefresh,'label':getTranslation$i(this['locale'],'AI_ACTIONS_TRY_AGAIN'),'tooltip':!0x0,'class':'ck-ai-custom-action-button'}),_0x1e66b4['set']({'icon':IconPreviousArrow,'tooltip':getTranslation$i(this['locale'],'AI_ACTIONS_PREVIOUS_INTERACTION'),'class':'ck-ai-navigation-button\x20ck-ai-previous-button'}),_0x5c05d4['set']({'icon':IconNextArrow,'tooltip':getTranslation$i(this['locale'],'AI_ACTIONS_NEXT_INTERACTION'),'class':'ck-ai-navigation-button\x20ck-ai-next-button'}),_0x59bd78['bind']('isEnabled')['to'](this,'isBusy',_0x11ccae=>!_0x11ccae),_0x59bd78['on']('execute',()=>{this['fire']('tryAgain');}),_0x1e66b4['bind']('isEnabled')['to'](this,'isBusy',_0x3ea883=>!_0x3ea883),_0x1e66b4['on']('execute',()=>{this['fire']('showPrevious');}),_0x5c05d4['bind']('isEnabled')['to'](this,'isBusy',_0x45115b=>!_0x45115b),_0x5c05d4['on']('execute',()=>{this['fire']('showNext');}),this['_navigationPreviousButton']=_0x1e66b4,this['_navigationCounter']=_0x4925cc,this['_navigationNextButton']=_0x5c05d4,this['_navigationTryAgainButton']=_0x59bd78;}['updateMiniToolbarButtons'](_0x2a3e7b,_0x4c6b24){this['_navigationPreviousButton']||this['_setupMiniToolbarButtons']();const _0x4deb58=_0x2a3e7b>0x1;if(this['addMiniToolbarItem'](this['_navigationTryAgainButton']),_0x4deb58){this['addMiniToolbarItem'](this['_navigationPreviousButton']),this['addMiniToolbarItem'](this['_navigationCounter']),this['addMiniToolbarItem'](this['_navigationNextButton']);const _0x192907=_0x2a3e7b-_0x4c6b24;this['_navigationCounter']['setInteractionCount'](_0x192907+'/'+_0x2a3e7b),this['_navigationPreviousButton']['isEnabled']=_0x4c6b24<_0x2a3e7b-0x1,this['_navigationNextButton']['isEnabled']=_0x4c6b24>0x0;}else this['removeMiniToolbarItem'](this['_navigationPreviousButton']),this['removeMiniToolbarItem'](this['_navigationCounter']),this['removeMiniToolbarItem'](this['_navigationNextButton']);}['disableMiniToolbarButtons'](){this['_navigationTryAgainButton']['isEnabled']=!0x1,this['_navigationPreviousButton']['isEnabled']=!0x1,this['_navigationNextButton']['isEnabled']=!0x1;}['startAutoScroll'](){this['_initializeScrollManager'](),this['_scrollManager']&&this['_scrollManager']['start']();}['stopAutoScroll'](){this['_scrollManager']&&this['_scrollManager']['stop']();}['toggleIsLoading'](_0x3025f1){this['_isLoading']=_0x3025f1;}['resetShowChangesButton'](){this['_miniToolbarView']['isShowChangesOn']=!0x1;}['_initializeScrollManager'](){const _0x7a0498=this['_getScrollableElement']();_0x7a0498&&!this['_scrollManager']&&(this['_scrollManager']=new ScrollManager(_0x7a0498));}['_getScrollableElement'](){return this['_streamableContentView']['element'];}}class AIActionsBalloonNavigationCounterView extends View{constructor(_0x2c6d85){super(_0x2c6d85);const _0x50740a=this['bindTemplate'];this['set']('interactionCount','1/1'),this['setTemplate']({'tag':'span','attributes':{'class':['ck-ai-interaction-counter']},'children':[{'text':_0x50740a['to']('interactionCount')}]});}['setInteractionCount'](_0x114404){this['set']('interactionCount',_0x114404);}}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;['_promiseQueue'];['_bodyCollection'];get['_interaction'](){return this['_interactions'][this['_interactions']['length']-0x1];}['_actionsBalloonView'];constructor(_0x255565){super(_0x255565),this['_bodyCollection']=new BodyCollection(this['editor']['locale']),this['_bodyCollection']['attachToDom'](),this['_aiConnector']=this['editor']['plugins']['get']('AIConnector'),this['set']('isBusy',!0x1),this['_promiseQueue']=new PromiseQueue();}['stopInteraction'](){this['_stopInteraction']();}async['executeAction'](_0x35fde7,_0x38a0e9,_0x5c7a4a){if(this['_stopInteraction'](),this['editor']['plugins']['has']('TableSelection')){if(this['editor']['plugins']['get']('TableSelection')['getSelectedTableCells']()){const {modelFragment:_0x35ee01,anchorData:_0x4dd9f5}=this['_getExecuteDataInTable']();return this['_executeAction'](_0x35fde7,_0x35ee01,_0x4dd9f5,_0x38a0e9,_0x5c7a4a);}}const {modelFragment:_0x56d51c,anchorData:_0x4ecf9b}=this['_getExecuteDataRegular']();return this['_executeAction'](_0x35fde7,_0x56d51c,_0x4ecf9b,_0x38a0e9,_0x5c7a4a);}async['destroy'](){return this['_stopInteraction'](),this['_bodyCollection']['detachFromDom'](),super['destroy']();}['_createActionsBalloonView'](){const _0x59ae8c=this['editor']['plugins']['has']('TrackChanges');let _0x38f13b=this['editor']['config']['get']('ai.availableReplyActions')||[...AI_REPLY_ACTIONS];_0x59ae8c||(_0x38f13b=_0x38f13b['filter'](_0x21d130=>'insertSuggestion'!=_0x21d130));const _0x289902=this['editor']['commands']['get']('trackChanges'),_0x13b0c2=new AIActionsBalloonView(this['editor']['locale'],{'showApplyButton':!0x0,'showSuggestButton':_0x59ae8c,'miniToolbarConfig':{'showChanges':'icon'},'availableActions':_0x38f13b});return _0x13b0c2['bind']('isBusy')['to'](this),_0x289902&&_0x13b0c2['bind']('isTrackChangesOn')['to'](_0x289902,'value'),_0x13b0c2['on']('tryAgain',()=>{this['_refreshInteraction']();}),_0x13b0c2['on']('showPrevious',()=>{this['_navigateToPrevious']();}),_0x13b0c2['on']('showNext',()=>{this['_navigateToNext']();}),_0x13b0c2;}['_getExecuteDataRegular'](){const _0x6c2ec6=this['editor']['model']['document']['selection'];if(_0x6c2ec6['isCollapsed']){const _0xa2a33f=first(_0x6c2ec6['getSelectedBlocks']())||this['editor']['model']['schema']['getLimitElement'](_0x6c2ec6);this['editor']['model']['change'](_0x4ef4fd=>{_0x4ef4fd['setSelection'](_0xa2a33f,'in');});}const _0x712136=_0x6c2ec6['getFirstRange'](),_0x4758b2=this['_wrapWithCommonAncestors'](this['editor']['model']['getSelectedContent'](_0x6c2ec6),_0x712136['start'],_0x712136['end']);this['_copyMarkersToFragment'](_0x4758b2,_0x6c2ec6,{'isTableSelection':!0x1});const _0x30d674=_0x6c2ec6['getFirstRange']()['start'],_0x34c27d=new Map();let _0x263ca4=_0x4758b2;for(let _0x12abd1=0x0;_0x12abd1<_0x30d674['path']['length'];_0x12abd1++)_0x34c27d['set'](_0x263ca4,_0x30d674['path'][_0x12abd1]),_0x263ca4=_0x263ca4['getChild'](0x0);return{'modelFragment':_0x4758b2,'anchorData':_0x34c27d};}['_getExecuteDataInTable'](){const _0x1a7f43=this['editor']['model']['document']['selection'],_0x53b41d=this['editor']['plugins']['get']('TableSelection')['getSelectionAsFragment'](),_0x306079=_0x1a7f43['getFirstRange']()['start']['parent']['parent'],_0x3bef16=this['editor']['model']['createRange'](this['editor']['model']['createPositionBefore'](_0x306079),this['editor']['model']['createPositionAfter'](_0x306079)),_0x541087=this['_wrapWithCommonAncestors'](_0x53b41d,_0x3bef16['start'],_0x3bef16['end']);this['_copyMarkersToFragment'](_0x541087,_0x1a7f43,{'isTableSelection':!0x0});const _0x230e90=_0x1a7f43['getFirstRange']()['start'],_0xfb198e=new Map();let _0x208582=_0x541087;for(let _0x271bc8=0x0;_0x271bc8<_0x230e90['path']['length'];_0x271bc8++)if(_0xfb198e['set'](_0x208582,_0x230e90['path'][_0x271bc8]),_0x271bc8<_0x230e90['path']['length']-0x1)_0x208582=_0x208582['getChild'](0x0);else{let _0x10216d=_0x208582['nextSibling'];for(;_0x10216d;)_0xfb198e['set'](_0x10216d,_0x230e90['path'][_0x271bc8]),_0x10216d=_0x10216d['nextSibling'];}return{'modelFragment':_0x541087,'anchorData':_0xfb198e};}async['_executeAction'](_0x213ed4,_0x429591,_0x239aad,_0xb32f20,_0x495be7){const _0x26f31d=this['editor']['plugins']['get'](AIEditing),_0x2ae097=this['editor']['plugins']['get'](AIBalloon),_0x1aca34=this['editor']['model']['document']['selection'],_0xae449b=await _0x26f31d['modelToDataWithIds'](_0x429591),_0x2b6618=this['editor']['model']['document']['version'],_0x10ca8f=[..._0x1aca34['getRanges']()];return this['_actionsBalloonView']||(this['_actionsBalloonView']=this['_createActionsBalloonView']()),this['_clearInteractionHistory'](),this['_clearErrorState'](),this['_actionsBalloonView']['clearContent'](),_0x2ae097['open']({'index':0x3e8*Math['random']()%0x3e8,'title':_0xb32f20,'icon':_0x495be7||IconAIQuickActions,'mainView':this['_actionsBalloonView'],'class':'ck-ai-actions-balloon','ranges':_0x10ca8f,'id':'aiActionsBalloon'}),this['_setLoadingState'](),this['stopListening'](this['_actionsBalloonView']),this['stopListening'](_0x2ae097),this['_interactionParams']={'action':_0x213ed4,'content':_0xae449b,'version':_0x2b6618,'aiBalloon':_0x2ae097,'modelFragment':_0x429591,'anchorData':_0x239aad},this['_setupApplyListeners'](),this['listenTo'](_0x2ae097,'selectionRemoved',()=>{this['_stopInteraction'](),this['_actionsBalloonView']['disableMiniToolbarButtons']();}),this['listenTo'](_0x2ae097,'dialogClosed',(_0x5e89fb,{id:_0x575f35})=>{if('aiActionsBalloon'===_0x575f35){if(this['_interaction']&&this['_interaction']['replies']['length']>0x0){const _0x528b77=this['_interaction']['replies'][this['_interaction']['replies']['length']-0x1],_0x23fd60=_0x528b77['changeGroups'][0x0];_0x23fd60&&'pending'===_0x23fd60['state']&&_0x528b77['setChangeGroupState'](0x0,'rejected');}this['_stopInteraction'](),this['_clearInteractionHistory'](),this['stopListening'](this['_actionsBalloonView']),this['stopListening'](_0x2ae097);}}),this['_createInteraction'](_0xae449b,_0x2b6618,_0x2ae097,_0x213ed4);}['_setupApplyListeners'](){if(!this['_interactionParams'])return;const {modelFragment:_0x3cf71c,anchorData:_0x44b881}=this['_interactionParams'];this['listenTo'](this['_actionsBalloonView'],'applySuggestion',()=>{this['_applyChanges'](_0x3cf71c,_0x44b881,!0x1);}),this['listenTo'](this['_actionsBalloonView'],'insertSuggestion',()=>{this['_applyChanges'](_0x3cf71c,_0x44b881,!0x0);});}['_wrapWithCommonAncestors'](_0x40140b,_0x1ccb4a,_0x4273ae){const _0x2f6dfd=this['editor']['model']['createRange'](_0x1ccb4a,_0x4273ae)['getCommonAncestor'](),_0x1e291c=_0x2f6dfd['is']('documentFragment')?[]:_0x2f6dfd['getAncestors']({'includeSelf':!0x0})['slice'](0x1);if(_0x1e291c['length']){const _0x15370b=_0x1e291c['map'](_0x49b805=>_0x49b805['_clone'](!0x1));for(let _0x4ea3a4=0x1;_0x4ea3a4<_0x15370b['length'];_0x4ea3a4++)_0x15370b[_0x4ea3a4-0x1]['_appendChild'](_0x15370b[_0x4ea3a4]);return _0x15370b[_0x15370b['length']-0x1]['_appendChild'](_0x40140b),new ModelDocumentFragment(_0x15370b[0x0]);}return _0x40140b;}['_copyMarkersToFragment'](_0xda7b8a,_0xa4f9e1,_0x61eee9={'isTableSelection':!0x1}){const _0x305122=this['editor']['model'],_0x3091bc=Array['from'](_0xa4f9e1['getRanges']()),_0x292de5=_0xa4f9e1['getFirstRange']()['start'];for(const _0x2e4cc0 of _0x305122['markers']){if(_0x2e4cc0['name']['startsWith'](AI_VISUAL_SELECTION_MARKER_NAME)||!_0x2e4cc0['affectsData'])continue;const _0x282a38=_0x2e4cc0['getRange']();if(!_0x3091bc['some'](_0x3f9daf=>_0x3f9daf['containsRange'](_0x282a38,!0x0)))continue;const _0x12e508=this['_regularCalculateMarkerPath'](_0x282a38['start'],_0x292de5,_0x61eee9['isTableSelection']),_0x19ec51=this['_regularCalculateMarkerPath'](_0x282a38['end'],_0x292de5,_0x61eee9['isTableSelection']),_0x4c57cf=_0x305122['createPositionFromPath'](_0xda7b8a,_0x12e508),_0x4b0fa2=_0x305122['createPositionFromPath'](_0xda7b8a,_0x19ec51);if(!_0x4c57cf['isEqual'](_0x4b0fa2)){const _0x52ab39=_0x305122['createRange'](_0x4c57cf,_0x4b0fa2);_0xda7b8a['markers']['set'](_0x2e4cc0['name'],_0x52ab39);}}}['_regularCalculateMarkerPath'](_0x23995e,_0x321e4f,_0x477306=!0x1){const _0x102f88=[..._0x23995e['path']['slice']()];for(let _0x5498eb=0x0;_0x5498eb<Math['max'](_0x321e4f['path']['length'],_0x23995e['path']['length']);_0x5498eb++){const _0x51f418=_0x321e4f['path'][_0x5498eb]||0x0,_0x14f76a=(_0x23995e['path'][_0x5498eb]||0x0)-_0x51f418;if(_0x102f88[_0x5498eb]=_0x14f76a,0x0!==_0x14f76a&&!_0x477306)break;}return _0x102f88;}async['_createInteraction'](_0x3360ac,_0x4218d3,_0x1a2f05,_0x2aa89c){const _0x5e8bd4=this['editor'];this['_interactionParams']||(this['_interactionParams']={'action':_0x2aa89c,'content':_0x3360ac,'version':_0x4218d3,'aiBalloon':_0x1a2f05,'modelFragment':this['editor']['model']['getSelectedContent'](this['editor']['model']['document']['selection']),'anchorData':new Map()});const _0x1ba79e=new AIActionsInteraction({'connector':this['_aiConnector'],'editor':_0x5e8bd4,'content':_0x3360ac,'version':_0x4218d3,..._0x2aa89c});this['_interactions']['push'](_0x1ba79e);const _0x21aa2f=(_0x1ff952,_0x342d79=!0x1,_0x38de07='streaming')=>this['_promiseQueue']['enqueue'](async _0x32fdc8=>{try{const _0x24077d=getSuggestionPartsFromReply({'editor':_0x5e8bd4,'changeGroups':_0x1ff952['changeGroups'],'documentContextContent':_0x1ff952['documentContextContent'],'showDiff':_0x342d79,'trimUnchanged':!0x1});_0x24077d['length']&&await this['_actionsBalloonView']['updateContent']({'part':_0x24077d[0x0],'renderingStrategy':_0x38de07,'abortSignal':_0x32fdc8});}catch(_0xcea9ff){if(this['_isAbortError'](_0xcea9ff))return;throw _0xcea9ff;}});this['_interaction']['on']('replyCreated',(_0x33ddff,_0x4ed6b2)=>{this['_actionsBalloonView']['hideLoader'](),this['_actionsBalloonView']['startAutoScroll'](),_0x21aa2f(_0x4ed6b2)['catch'](_0x335e36=>{this['_isAbortError'](_0x335e36)||(console['error']('Error\x20updating\x20content\x20in\x20replyCreated:',_0x335e36),this['_setErrorState'](_0x1ba79e));});}),this['_interaction']['on']('replyContentUpdated',(_0x50558c,_0x1fab53)=>{_0x21aa2f(_0x1fab53)['catch'](_0x1f4b2e=>{this['_isAbortError'](_0x1f4b2e)||(console['error']('Error\x20updating\x20content\x20in\x20replyContentUpdated:',_0x1f4b2e),this['_setErrorState'](_0x1ba79e));});}),this['_interaction']['on']('interactionFinished',async()=>{try{await this['_clearLoadingState'](),this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']),await this['_promiseQueue']['queueEmptyPromise'];}catch(_0x34588c){this['_isAbortError'](_0x34588c)||(console['error']('Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:',_0x34588c),this['_setErrorState'](_0x1ba79e));}finally{this['_actionsBalloonView']['stopAutoScroll']();}}),this['listenTo'](this['_actionsBalloonView'],'toggleSuggestionDisplayMode',async(_0x458635,{showDiff:_0x475691})=>{try{this['_balloonShowDiff']=_0x475691;const _0x3b2855=this['_interaction']['replies'][this['_interaction']['replies']['length']-0x1];_0x3b2855&&await _0x21aa2f(_0x3b2855,_0x475691,'static');}catch(_0x107635){this['_isAbortError'](_0x107635)||(console['error']('Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:',_0x107635),this['_setErrorState'](_0x1ba79e));}}),this['_interaction']['on']('replyChangeGroupStateUpdated',(_0x356892,{reply:_0x2abba6})=>{const _0x3cf6e0={'positiveCount':_0x2abba6['changeGroups']['filter'](_0x50d8bb=>'accepted'===_0x50d8bb['state'])['length'],'totalCount':_0x2abba6['changeGroups']['length']},_0x5e1ea0=this['_interaction']['actionCallId'],_0x62a79f=this['_interaction']['actionName'];_0x62a79f?this['_aiConnector']['upsertAIActionRating'](_0x62a79f,_0x5e1ea0,_0x3cf6e0):this['_aiConnector']['upsertCustomAIActionRating'](_0x5e1ea0,_0x3cf6e0);}),this['_setLoadingState']();try{const _0x195f04=await this['_interaction']['start']();return this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']),_0x195f04;}catch(_0x48c6fc){if(this['_isAbortError'](_0x48c6fc))return;this['_actionsBalloonView']['hideLoader'](),this['_setErrorState'](_0x1ba79e);}}['_applyChanges'](_0x5271b4,_0x148e62,_0x374cec){const _0x520d63=this['editor'];if(_0x374cec&&!_0x520d63['plugins']['has']('TrackChanges'))throw new CKEditorError('ai-no-track-changes',null);const _0x388049=this['editor']['plugins']['get'](DocumentCompare),_0x17b700=this['_interactions'][this['_interactions']['length']-0x1-this['_currentInteractionIndex']];if(!_0x17b700||!_0x17b700['replies']['length'])return;const _0x226f14=_0x17b700['replies'][_0x17b700['replies']['length']-0x1],_0x29c69c=_0x226f14['changeGroups'];_0x226f14['setChangeGroupState'](0x0,'accepted');let _0xed3e19=getOperationsFromReply({'editor':_0x520d63,'reply':_0x226f14,'interaction':_0x17b700,'groups':_0x29c69c,'transform':!0x1,'documentCompare':_0x388049,'documentCompareOptions':{'anchor':_0x520d63['model']['createPositionAt'](_0x5271b4,0x0),'markDeletions':_0x374cec}});_0xed3e19=this['_filterOperationsOutsideRange'](_0xed3e19,_0x148e62);for(const _0x571d14 of _0xed3e19)this['_anchorOperation'](_0x148e62,_0x571d14,_0x520d63['model']['document']['getRoot']());const _0x31ee3e=_0x17b700['getDocumentContext']()['version'],_0x4006e2=_0x520d63['model']['document']['history']['getOperations'](_0x31ee3e),_0x4a2697={'document':_0x520d63['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1},_0x338621=transformOperationSets(_0xed3e19,_0x4006e2,_0x4a2697)['operationsA'];_0x520d63['model']['change'](_0x48a39a=>{if(_0x48a39a['setSelection'](_0x520d63['model']['document']['selection']['focus']),_0x374cec)_0x520d63['plugins']['get']('TrackChangesEditing')['_applyOperationsAsSuggestions'](_0x338621);else{for(const _0x8c5f1c of _0x338621)_0x8c5f1c['baseVersion']=_0x520d63['model']['document']['version'],fixMarkerOperationOldRange(_0x520d63,_0x8c5f1c),_0x48a39a['batch']['addOperation'](_0x8c5f1c),_0x520d63['model']['applyOperation'](_0x8c5f1c);}}),this['editor']['plugins']['get']('AIBalloon')['close']();}['_filterOperationsOutsideRange'](_0x46fa8d,_0x1119ab){return _0x46fa8d['filter'](_0x592ddc=>{if('rename'==_0x592ddc['type']){const _0xf3809d=_0x592ddc['position']['nodeAfter'];return!_0x1119ab['has'](_0xf3809d);}if(_0x592ddc['type']['indexOf']('Attribute')>-0x1){const _0x1ab9b3=_0x592ddc['range']['start']['nodeAfter'];return!_0x1119ab['has'](_0x1ab9b3);}return!0x0;});}['_anchorOperation'](_0x1c114b,_0x6f0666,_0x183edc){const _0x4b734d=_0x6f0666['clone']();for(const _0x2ebeb6 in _0x6f0666){const _0x4ed711=_0x6f0666[_0x2ebeb6];_0x4ed711 instanceof ModelRange?_0x6f0666[_0x2ebeb6]=new ModelRange(_0x178182(_0x4ed711['start']),_0x178182(_0x4ed711['end'])):_0x4ed711 instanceof ModelPosition&&(_0x6f0666[_0x2ebeb6]=_0x178182(_0x4ed711));}if(['insert','move','remove','reinsert','split','merge']['includes'](_0x4b734d['type'])){if(_0x4b734d['isDocumentOperation']=!0x1,_0x4b734d['baseVersion']=null,'remove'==_0x4b734d['type']){const _0x4a7760=_0x4b734d['sourcePosition'],_0x4d97e6=_0x4b734d['howMany'];new _DetachOperation(_0x4a7760,_0x4d97e6)['_execute']();}else _0x4b734d['_execute']();}function _0x178182(_0x28c9b0){if('$graveyard'==_0x28c9b0['root']['rootName'])return _0x28c9b0;const _0x530188=[];let _0x4f51ad=_0x28c9b0['root'];for(let _0x20640d=0x0;_0x20640d<_0x28c9b0['path']['length'];_0x20640d++){const _0x4a7220=_0x1c114b['get'](_0x4f51ad)||0x0;_0x530188[_0x20640d]=_0x28c9b0['path'][_0x20640d]+_0x4a7220,_0x4f51ad=_0x4f51ad['getChildAtOffset'](_0x28c9b0['path'][_0x20640d]);}return new ModelPosition(_0x183edc,_0x530188,_0x28c9b0['stickiness']);}}['_refreshInteraction'](){if(!this['_interactionParams'])return;this['_interactions']['length']>0x0&&this['_stopInteraction'](),this['_currentInteractionIndex']=0x0,this['_balloonShowDiff']=!0x1;const {action:_0x5208aa,content:_0x6450cb,version:_0x2eabbb,aiBalloon:_0x35ce69}=this['_interactionParams'];this['_clearErrorState'](),this['_actionsBalloonView']['clearContent'](),this['_actionsBalloonView']['showLoader'](),this['_actionsBalloonView']['resetShowChangesButton'](),this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']),this['stopListening'](this['_actionsBalloonView']),this['_setupApplyListeners'](),this['_createInteraction'](_0x6450cb,_0x2eabbb,_0x35ce69,_0x5208aa)['catch'](_0x3f1697=>{this['_isAbortError'](_0x3f1697)||console['error']('Error\x20refreshing\x20interaction:',_0x3f1697);});}['_isAbortError'](_0x3d4f94){return!!_0x3d4f94['message']&&_0x3d4f94['message']['startsWith']('ai-request-aborted');}['_clearInteractionHistory'](){this['_interactions']=[],this['_interactionParams']=void 0x0,this['_currentInteractionIndex']=0x0,this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']);}['_stopInteraction'](){this['_interaction']&&this['_interaction']['stop'](),this['_promiseQueue']['abort'](),this['isBusy']=!0x1,this['_interactionParams']&&this['_actionsBalloonView']['stopAutoScroll']();}['_navigateToPrevious'](){const _0x397233=this['_interactions']['length'];this['_currentInteractionIndex']<_0x397233-0x1&&this['_displayInteractionAtIndex'](this['_currentInteractionIndex']+0x1);}['_navigateToNext'](){this['_currentInteractionIndex']>0x0&&this['_displayInteractionAtIndex'](this['_currentInteractionIndex']-0x1);}async['_displayInteractionAtIndex'](_0x3bc3a5){if(!this['_interactionParams'])return;this['_currentInteractionIndex']=_0x3bc3a5;const _0x2583c9=this['_interactions'][this['_interactions']['length']-0x1-this['_currentInteractionIndex']];if(!_0x2583c9)return;if(_0x2583c9['hasError'])return this['_setErrorState'](_0x2583c9),void this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']);if(!_0x2583c9['replies']['length'])return;this['_actionsBalloonView']['hideError'](),this['_interactionParams']&&this['_clearErrorState']();const _0x2c1183=_0x2583c9['replies'][_0x2583c9['replies']['length']-0x1];if(_0x2c1183){const _0x3dd463=this['editor'];try{const _0x4666a0=getSuggestionPartsFromReply({'editor':_0x3dd463,'changeGroups':_0x2c1183['changeGroups'],'documentContextContent':_0x2c1183['documentContextContent'],'showDiff':this['_balloonShowDiff'],'trimUnchanged':!0x1});await new Promise(_0x25be5b=>setTimeout(_0x25be5b,0x32)),await this['_actionsBalloonView']['updateContent']({'part':_0x4666a0[0x0],'renderingStrategy':'static','abortSignal':new AbortController()['signal']});}catch(_0x44f075){this['_isAbortError'](_0x44f075)||console['error']('Error\x20updating\x20content\x20during\x20navigation:',_0x44f075);}}this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']);}['_setLoadingState'](){this['_actionsBalloonView']['setIsLoading'](!0x0),this['isBusy']=!0x0;}async['_setErrorState'](_0x2a4aec){const _0x4cb6ed=getTranslation$i(this['editor']['locale'],'AI_ACTIONS_GENERIC_ERROR');this['_actionsBalloonView']['showError'](_0x4cb6ed),_0x2a4aec['hasError']=!0x0,await this['_promiseQueue']['queueEmptyPromise'],this['_actionsBalloonView']['setErrorState'](),this['_actionsBalloonView']['toggleIsLoading'](!0x0);}['_clearErrorState'](){this['_actionsBalloonView']['hideError'](),this['_actionsBalloonView']['toggleIsLoading'](!0x1);}async['_clearLoadingState'](){await this['_promiseQueue']['queueEmptyPromise'],this['isBusy']=!0x1,this['_actionsBalloonView']['setIsLoading'](!0x1);}}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(_0x41f3f3){super(_0x41f3f3),_0x41f3f3['config']['define']('ai.quickActions',{'extraCommands':[],'removeCommands':[],'isSearchEnabled':!0x0});}}class AIReviewCoreReviewCheckListItemResultsView extends View{['resultResponseView'];['acceptButtonView'];['dismissButtonView'];['infoButtonView'];['outdatedButtonView'];constructor(_0x5830ec,_0x62d277){super(_0x5830ec),this['id']=_0x62d277,this['set']('status','pending'),this['set']('changeId',_0x62d277),this['resultResponseView']=this['_createResultResponseView'](),this['acceptButtonView']=this['_createAcceptButtonView'](),this['dismissButtonView']=this['_createDismissButtonView'](),this['infoButtonView']=this['_createInfoButtonView'](),this['outdatedButtonView']=this['_createOutdatedButtonView'](),this['set']('isInfoToggleOn',!0x1),this['set']('isActive',!0x1),this['set']('showDiff',!0x0),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-result',this['bindTemplate']['if']('isActive','ck-ai_review__check-run-result_active')]},'on':{'click':this['bindTemplate']['to']('click'),'mouseover':this['bindTemplate']['to']('mouseover'),'mouseout':this['bindTemplate']['to']('mouseout')},'children':[this['resultResponseView'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-result-footer']},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-run-result-action-buttons']},'children':[this['acceptButtonView'],this['dismissButtonView'],this['outdatedButtonView']]},this['infoButtonView']]}]}),this['on']('click',(_0x597116,_0x5b9d3a)=>{_0x5b9d3a&&_0x5b9d3a['target']&&'A'===_0x5b9d3a['target']['tagName']&&_0x5b9d3a['preventDefault'](),this['fire']('activateChange',{'id':_0x62d277,'source':this,'uiInteraction':'click'});}),this['on']('mouseover',()=>{this['fire']('activateChange',{'id':_0x62d277,'source':this,'uiInteraction':'hover'});}),this['on']('mouseout',()=>{this['fire']('deactivateChange',{'origin':'panel','id':_0x62d277,'source':this});});}['setItemAsActive'](){this['isActive']=!0x0;}['setItemAsInactive'](){this['isActive']=!0x1;}['_createResultResponseView'](){const _0x227e43=new View(this['locale']);return _0x227e43['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-content','ck-reset_all-excluded','ck-ai_review__check-run-result-response',this['bindTemplate']['if']('showDiff','ck-hidden',_0x302cc5=>!_0x302cc5)]}}),_0x227e43;}['_createAcceptButtonView'](){const _0x234129=new ButtonView(this['locale']);return _0x234129['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_ACCEPT_CHANGE'),'withText':!0x0}),_0x234129['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x122b97=>{this['fire']('acceptChange',{'id':this['changeId']}),_0x122b97['stopPropagation']();})},'attributes':{'class':['ck-ai-button-secondary','ck-ai_review__check-run-result-accept-button',this['bindTemplate']['if']('status','ck-hidden',_0x22b7c8=>'pending'!==_0x22b7c8&&'accepted'!==_0x22b7c8),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-accept-button',_0x306a9f=>'pending'===_0x306a9f),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-status-button',_0x74bfbf=>'accepted'===_0x74bfbf)]}}),this['on']('change:status',(_0x4f1e27,_0x2dc1f4,_0x4bebea)=>{_0x234129['isEnabled']='pending'===_0x4bebea,'accepted'===_0x4bebea&&(_0x234129['label']=getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_ACCEPTED'),_0x234129['icon']=IconCheck);}),_0x234129;}['_createDismissButtonView'](){const _0x542e77=new ButtonView(this['locale']);return _0x542e77['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_DISMISS_CHANGE'),'withText':!0x0}),_0x542e77['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0xcc8db7=>{this['fire']('dismissChange',{'id':this['changeId']}),_0xcc8db7['stopPropagation']();})},'attributes':{'class':['ck-ai-button-tertiary',this['bindTemplate']['if']('status','ck-hidden',_0x18a2a3=>'pending'!==_0x18a2a3&&'rejected'!==_0x18a2a3),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-dismiss-button',_0x161209=>'pending'===_0x161209),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-status-button',_0x307a01=>'rejected'===_0x307a01)]}}),this['on']('change:status',(_0x355897,_0x598f82,_0x2bee77)=>{_0x542e77['isEnabled']='pending'===_0x2bee77,'rejected'===_0x2bee77&&(_0x542e77['label']=getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_REJECTED'),_0x542e77['icon']=IconCancel);}),_0x542e77;}['_createInfoButtonView'](){const _0x555f91=new ButtonView(this['locale']);return _0x555f91['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_LEARN_MORE'),'icon':IconInfo,'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox','class':'ck-ai-button-tertiary\x20ck-ai_review__check-run-result-info-button\x20ck-hidden'}),_0x555f91['bind']('isOn')['to'](this,'isInfoToggleOn',_0x5cce5d=>_0x5cce5d),_0x555f91['on']('execute',()=>{this['isInfoToggleOn']=!this['isInfoToggleOn'];}),_0x555f91;}['_createOutdatedButtonView'](){const _0x52ab13=new ButtonView(this['locale']);return _0x52ab13['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_OUTDATED'),'icon':IconOutdated,'withText':!0x0,'isEnabled':!0x1}),_0x52ab13['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai_review__check-run-result-status-button',this['bindTemplate']['if']('status','ck-hidden',_0x4f9508=>'outdated'!==_0x4f9508)],'disabled':'disabled'}}),_0x52ab13;}}class AIReviewCoreBalloonSuggestionItemView extends BalloonPanelView{['resultItemView'];['_pinnedRectIndex']=void 0x0;['_pinnedTargetElement']=void 0x0;['_pinnedTargetChangeId']=void 0x0;constructor(_0x1a77cb,_0x45abc6){super(_0x1a77cb),this['set']({'isVisible':!0x1,'position':'arrow_se','class':null,'top':0x0,'left':0x0}),this['extendTemplate']({'tag':'div','attributes':{'class':['ck-reset'],'tabindex':'-1'}}),this['set']('isDiffActive',!0x1),this['content']['add'](this['_createContentView']()),_0x45abc6['add'](this);}['render'](){super['render'](),this['_setupClickOutsideHandler']();}['updateContent'](_0x2345bb){this['resultItemView']['changeId']=_0x2345bb['id'],this['resultItemView']['resultResponseView']['element']['innerHTML']=_0x2345bb['contentDiffed'];}['showBalloon'](_0x864a37,_0x589e34,_0x3184fe,_0x580c92,_0x4c915f,_0x471de4){const _0x2cddd5=_0x589e34();if(!_0x2cddd5)return;this['updateContent'](_0x864a37),this['show']();const _0x56b396=Array['from'](_0x2cddd5['getClientRects']())['reverse'](),_0x38b161=this['_getPointedRectIndexFromEvent'](_0x3184fe,_0x56b396),_0x5941af=_0x56b396[_0x38b161??0x0];'click'===_0x580c92?(this['isDiffActive']=!0x0,this['pin']({'target':()=>this['_getBestRectPositionOnClick'](_0x589e34(),_0x38b161,_0x864a37['id'],_0x4c915f,_0x471de4)||_0x5941af})):'hover'===_0x580c92&&(this['isDiffActive']=!0x1,this['pin']({'target':()=>this['_getBestRectPositionOnHover'](_0x589e34(),_0x38b161,_0x864a37['id'])||_0x5941af}));}['hideBalloon'](){this['hide'](),this['unpin'](),this['_pinnedRectIndex']=void 0x0,this['_pinnedTargetElement']=void 0x0,this['_pinnedTargetChangeId']=void 0x0;}['hideDiffInBalloon'](){this['resultItemView']['showDiff']=!0x1;}['showDiffInBalloon'](){this['resultItemView']['showDiff']=!0x0;}['deactivateChange'](){this['fire']('deactivateChange',{'origin':'balloon'});}['_setupClickOutsideHandler'](){clickOutsideHandler({'emitter':this,'activator':()=>this['isVisible'],'contextElements':()=>{const _0x2c0109=[this['element']];return this['_pinnedTargetElement']&&_0x2c0109['push'](this['_pinnedTargetElement']),_0x2c0109;},'callback':()=>{this['hide'](),this['unpin'](),this['deactivateChange'](),this['_pinnedTargetElement']=void 0x0,this['_pinnedRectIndex']=void 0x0,this['_pinnedTargetChangeId']=void 0x0;}});}['_createContentView'](){const _0x1bb444=new View();return this['resultItemView']=new AIReviewCoreReviewCheckListItemResultsView(this['locale'],''),this['resultItemView']['resultResponseView']['extendTemplate']({'attributes':{'class':['ck-content']}}),this['resultItemView']['delegate']('acceptChange','dismissChange')['to'](this),_0x1bb444['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-ai_review-balloon-panel-suggestion',this['bindTemplate']['if']('isDiffActive','ck-ai_review-balloon-panel-suggestion_diff-active')]},'children':[{'tag':'p','attributes':{'class':['ck-ai_review__suggestion-text']},'children':[this['resultItemView']]}]}),_0x1bb444;}['_getBestRectPositionOnClick'](_0xb5a85b,_0x4f794a,_0x2487cd,_0x4f2a08,_0x3ea2c8){if(!_0xb5a85b)return null;const _0x12038a=this['position']['replace']('arrow_',''),_0x195c85=Array['from'](_0xb5a85b['getClientRects']());let _0x2cc553,_0x54e5da=_0x195c85['reverse']();return void 0x0!==_0x4f794a&&this['_isPinnedRectVisible'](_0x54e5da[_0x4f794a],_0x4f2a08,_0x3ea2c8)?(_0x2cc553=_0x54e5da[_0x4f794a],this['_pinnedRectIndex']=_0x4f794a):this['_isPinnedRectVisible'](_0x54e5da[0x0],_0x4f2a08,_0x3ea2c8)&&void 0x0===_0x4f794a?_0x2cc553=_0x54e5da[0x0]:(_0x54e5da='s'==_0x12038a[0x0]?[..._0x195c85]['reverse']():_0x195c85,_0x54e5da['forEach'](_0x233476=>{this['_isPinnedRectVisible'](_0x233476,_0x4f2a08,_0x3ea2c8)&&(_0x2cc553=_0x233476);})),this['_pinnedTargetChangeId']=_0x2487cd,this['_pinnedTargetElement']=_0xb5a85b,_0x2cc553||_0xb5a85b['getBoundingClientRect']();}['_getBestRectPositionOnHover'](_0x1e8bdf,_0x358aea,_0x366b03){if(!_0x1e8bdf)return null;const _0x3f274c=Array['from'](_0x1e8bdf['getClientRects']())['reverse']();if(void 0x0===this['_pinnedRectIndex']&&void 0x0!==_0x358aea&&this['_pinnedTargetChangeId']!==_0x366b03)return this['_pinnedRectIndex']=_0x358aea,this['_pinnedTargetElement']=_0x1e8bdf,this['_pinnedTargetChangeId']=_0x366b03,_0x3f274c[_0x358aea];if(void 0x0!==this['_pinnedRectIndex']&&this['_pinnedTargetChangeId']===_0x366b03){if(_0x1e8bdf!==this['_pinnedTargetElement'])return Array['from'](this['_pinnedTargetElement']['getClientRects']())['reverse']()[this['_pinnedRectIndex']];return _0x3f274c[this['_pinnedRectIndex']];}return void 0x0!==_0x358aea&&this['_pinnedTargetChangeId']!==_0x366b03?(this['_pinnedRectIndex']=_0x358aea,this['_pinnedTargetElement']=_0x1e8bdf,this['_pinnedTargetChangeId']=_0x366b03,_0x3f274c[_0x358aea]):_0x1e8bdf['getBoundingClientRect']();}['_getPointedRectIndexFromEvent'](_0x206978,_0xeb6de2){if(_0x206978)for(let _0x45da0e=0x0;_0x45da0e<_0xeb6de2['length'];_0x45da0e++){const _0x274371=_0xeb6de2[_0x45da0e];if(_0x206978['clientX']>=_0x274371['left']-0x3&&_0x206978['clientX']<=_0x274371['right']+0x3&&_0x206978['clientY']>=_0x274371['top']-0x3&&_0x206978['clientY']<=_0x274371['bottom']+0x3)return _0x45da0e;}}['_isPinnedRectVisible'](_0x1fcd1a,_0x2c7376,_0x2d34ba){const _0x312b5b=new Rect(_0x1fcd1a),_0x31305c=_0x2c7376||document['documentElement'],_0xb27cb8=_0x312b5b['getIntersection'](getConstrainedViewportRect(_0x2d34ba)),_0x189f6c=new Rect(_0x31305c)['getIntersection'](_0x312b5b);return!!(_0xb27cb8&&_0x189f6c&&_0x312b5b['width']>0x0);}}const AI_REVIEW_MODE_UI_EVENT_NAMES=['getReviewCheckList','runReviewCheck','abortReviewStream','toggleDiff','acceptAllChanges','leaveReviewCoreResultList','activateChange','deactivateChange','acceptChange','dismissChange','learnMore','finishReview','retryReview'];class AIReviewCoreUI extends ContextPlugin{['_mainView'];['_balloonSuggestionView'];['_bodyCollection'];static get['requires'](){return[AITabs];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ce37c){super(_0x3ce37c),this['_bodyCollection']=new BodyCollection(this['context']['locale']),this['_bodyCollection']['attachToDom'](),this['_mainView']=this['createMainView'](),this['_mainView']['delegate'](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this['_balloonSuggestionView']=new AIReviewCoreBalloonSuggestionItemView(this['context']['locale'],this['_bodyCollection']),this['_balloonSuggestionView']['delegate']('acceptChange','dismissChange','deactivateChange')['to'](this);}['init'](){const _0x2013ef=this['context']['plugins']['get']('AITabs');this['registerTab'](_0x2013ef);}['destroy'](){this['_bodyCollection']['detachFromDom'](),super['destroy']();}['setAvailableChecks'](_0x5f14a3){if(!this['_mainView']['reviewCheckListView']['hasChecks']()){const _0x172909=!this['context']['config']['get']('ai.models.showModelSelector');this['_mainView']['reviewCheckListView']['setChecks'](_0x5f14a3,_0x172909);}this['_mainView']['showReviewCheckListView']();}['showReviewCheckList'](){this['fire']('getReviewCheckList');}['showCheckRunResults'](_0x1ef604){_0x1ef604&&('error-general'!==_0x1ef604['status']?'error-chunk'!==_0x1ef604['status']?this['_mainView']['showReviewCheckResultsView']():this['showChunkErrorView']():this['showGeneralResultsErrorView']());}['showCheckRunResult'](_0x4520de){this['_mainView']['addCheckRunResult'](_0x4520de);}['showGeneralResultsErrorView'](){this['_mainView']['showGeneralResultsErrorView']();}['showGeneralReviewCoreErrorView'](_0x5b97cc){this['_mainView']['showGeneralReviewCoreErrorView'](_0x5b97cc??getTranslation$i(this['context']['locale'],'AI_REVIEW_INITIALIZATION_ERROR_MESSAGE'));}['showChunkErrorView'](){this['_mainView']['showChunkErrorView']();}['setCheckResultTitle'](_0x5c0725,_0x50cd02){this['_mainView']['reviewCheckResultsView']['setTitle'](_0x5c0725,_0x50cd02);}['setActiveStateInResults'](_0x541b23){this['_mainView']['reviewCheckResultsView']['getResults']()['forEach'](_0x4a172e=>{_0x4a172e['id']===_0x541b23&&_0x4a172e['setItemAsActive']();});}['resetActiveStateInResults'](){this['_mainView']['reviewCheckResultsView']['getResults']()['forEach'](_0x197fb0=>_0x197fb0['setItemAsInactive']());}['updateChangeState'](_0x2ee520,_0x413d79){'accepted'===_0x413d79||'rejected'===_0x413d79||'outdated'===_0x413d79?this['_mainView']['reviewCheckResultsView']['hideResult'](_0x2ee520,_0x413d79):this['_mainView']['reviewCheckResultsView']['showResult'](_0x2ee520,_0x413d79);}['showReviewCompletedView'](){this['_mainView']['showReviewCompletedView']();}['showActionsWhenResultIsReady'](){this['_mainView']['showActionsWhenResultIsReady']();}['showNoChangesView'](){this['_mainView']['showNoChangesView']();}['hideActionsWhenResultIsReady'](){this['_mainView']['hideActionsWhenResultIsReady']();}['showChangeBalloon'](_0x13d1e3,_0x44d0e8,_0x32ffad,_0x1a9c3d,_0x21a05a,_0x157e1a){this['_balloonSuggestionView']['showBalloon'](_0x13d1e3,_0x44d0e8,_0x32ffad,_0x1a9c3d,_0x21a05a,_0x157e1a);}['hideChangeBalloon'](){this['_balloonSuggestionView']['hideBalloon']();}['hideDiffInBalloon'](){this['_balloonSuggestionView']['hideDiffInBalloon']();}['showDiffInBalloon'](){this['_balloonSuggestionView']['showDiffInBalloon']();}['getChangeElement'](_0x337878){const _0xb99e4b=this['_mainView']['reviewCheckResultsView']['getResults']()['find'](_0x3fc159=>_0x3fc159['id']===_0x337878);return _0xb99e4b?_0xb99e4b['element']:null;}['deactivateChange'](){this['_balloonSuggestionView']['deactivateChange']();}}class AIReviewCoreGeneralErrorView extends View{constructor(_0x5a13a2){super(_0x5a13a2),this['set']('isVisible',!0x1),this['set']('errorMessage','');const _0x2e4339=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai_review__general-error-container',_0x2e4339['if']('isVisible','ck-hidden',_0x1f4dc7=>!_0x1f4dc7)]},'children':[{'tag':'p','attributes':{'class':'ck\x20ck-ai-notification\x20ck-ai-notification_error'},'children':[{'text':_0x2e4339['to']('errorMessage')}]}]});}}class AIReviewCoreView extends View{['reviewCoreHeader'];['generalErrorView'];['reviewCheckListView'];['reviewCheckResultsView'];['reviewCompletedView'];constructor(_0x30a0e0,_0x5c7fc8){super(_0x30a0e0),this['reviewCoreHeader']=_0x5c7fc8['header'],this['generalErrorView']=new AIReviewCoreGeneralErrorView(_0x30a0e0),this['reviewCheckListView']=_0x5c7fc8['list'],this['reviewCheckListView']['delegate'](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this['reviewCheckResultsView']=_0x5c7fc8['results'],this['reviewCheckResultsView']['delegate'](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this['reviewCompletedView']=_0x5c7fc8['completed'],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','ck-rounded-corners'],'dir':'ltr'},'children':[this['reviewCoreHeader'],this['generalErrorView'],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),this['reviewCheckResultsView']['set']('isCompleted',!0x1);}['addCheckRunResult'](_0x43f617){this['reviewCheckResultsView']['addResult'](_0x43f617),this['reviewCheckResultsView']['set']('isLoading',!0x1);}['showReviewCompletedView'](){this['reviewCheckResultsView']['set']('isVisible',!0x0),this['reviewCompletedView']['set']('isVisible',!0x1),this['reviewCheckResultsView']['set']('isCompleted',!0x0),this['reviewCheckListView']['set']('isVisible',!0x1);}['showActionsWhenResultIsReady'](){this['reviewCheckResultsView']['isResultReady']?(this['reviewCheckListView']['set']('isVisible',!0x1),this['reviewCheckResultsView']['set']('isVisible',!0x0),this['reviewCompletedView']['set']('isVisible',!0x1)):this['reviewCheckResultsView']['isResultReady']=!0x0;}['showNoChangesView'](){this['reviewCheckListView']['set']('isVisible',!0x1),this['reviewCheckResultsView']['set']('isVisible',!0x1),this['reviewCompletedView']['set']('isVisible',!0x0);}['hideActionsWhenResultIsReady'](){this['reviewCheckResultsView']['isResultReady']=!0x1;}['showGeneralReviewCoreErrorView'](_0x1a86ed){this['generalErrorView']['set']('isVisible',!0x0),this['generalErrorView']['errorMessage']=_0x1a86ed;}['showGeneralResultsErrorView'](){this['reviewCheckResultsView']['set']('isLoading',!0x1),this['showActionsWhenResultIsReady'](),this['reviewCheckResultsView']['showGeneralErrorMessage']();}['showChunkErrorView'](){this['reviewCheckResultsView']['set']('isLoading',!0x1),this['showActionsWhenResultIsReady'](),this['reviewCheckResultsView']['showChunkErrorMessage']();}}class AIReviewCoreFinishReviewButtonView extends ButtonView{constructor(_0x383d07,_0xbf25dd){super(_0xbf25dd),this['set']({'label':_0x383d07,'withText':!0x0,'class':'ck-ai-button-primary'}),this['on']('execute',()=>{this['fire']('finishReview');});}}class AIReviewCoreUICheckResultsView extends ListItemView{['_resultViews'];['_resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];['_contents'];constructor(_0x3eaac8,_0x16ebff){super(_0x3eaac8),this['_contents']=_0x16ebff,this['_resultViews']=new ViewCollection(),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_acceptAllButtonView']=this['_createAcceptAllButtonView'](),this['_exitReviewButtonView']=this['_createExitReviewButtonView'](),this['_toggleDiffButtonView']=this['_createToggleDiffButtonView'](),this['_finishReviewButtonView']=this['_createFinishReviewButtonView'](),this['_resultsHeader']=this['_createResultHeaderView'](),this['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new AIDisclaimerView(_0x3eaac8),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'),this['set']('isCompleted',!0x1);const _0x1973ba=this['_createCombinedSkeletonLoader'](),_0x1a339e=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run',_0x1a339e['if']('isLoading','ck-ai_review__check-run_loading',_0xae219a=>_0xae219a),_0x1a339e['if']('isResultReady','ck-ai_review__check-run_ready',_0xed71d0=>_0xed71d0),_0x1a339e['if']('isVisible','ck-hidden',_0x1ff8f5=>!_0x1ff8f5)]},'children':[this['_resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-wrapper']},'children':[this['_errorMessageView'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-container','ck-reset_all-excluded',this['bindTemplate']['if']('isLoading','ck-hidden',_0x417a59=>_0x417a59)]},'children':this['_resultViews']},_0x1973ba]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x1594ff){const _0xbd443a=new AIReviewCoreReviewCheckListItemResultsView(this['locale'],_0x1594ff['id']);_0xbd443a['delegate']('acceptChange','dismissChange','activateChange','deactivateChange')['to'](this),this['_resultViews']['add'](_0xbd443a),_0xbd443a['resultResponseView']['element']['innerHTML']=_0x1594ff['contentDiffed'];}['hideResult'](_0x651fde,_0x612ea5){if('pending'===_0x612ea5)return;const _0x227037=this['_resultViews']['find'](_0x1258e8=>_0x1258e8['id']===_0x651fde);_0x227037&&(_0x227037['status']=_0x612ea5,_0x227037['element']?.['classList']['add']('ck-ai_review__check-run-result_grayout'));}['showResult'](_0x23f2e8,_0x51e52d){if('pending'!==_0x51e52d)return;const _0x552590=this['_resultViews']['find'](_0xd20461=>_0xd20461['id']===_0x23f2e8);_0x552590&&(_0x552590['status']=_0x51e52d,_0x552590['element']?.['classList']['remove']('ck-ai_review__check-run-result_grayout'));}['setTitle'](_0x1f9aa0,_0x37fb4d){this['headerTitle']=_0x1f9aa0,this['headerSubtitle']=_0x37fb4d||'';}['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 _0x1ddcfa=new View(this['locale']),_0xee7880=[];for(let _0x3963ab=0x0;_0x3963ab<0x10;_0x3963ab++){const _0x17ecba=this['_createSkeletonLoader']();_0x17ecba['extendTemplate']({'attributes':{'class':['ck-ai_review__check-run-skeleton-item']}}),_0xee7880['push'](_0x17ecba);}return _0x1ddcfa['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x40601f=>!_0x40601f)]},'children':_0xee7880}),_0x1ddcfa;}['_createErrorView'](){const _0x2a293d=new View(this['locale']),_0x4576e1=new ButtonView(this['locale']),t=this['locale']['t'];return _0x2a293d['delegate']('retryReview')['to'](this),_0x4576e1['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai_review__check-run-error-retry-button'}),_0x4576e1['on']('execute',()=>{this['fire']('retryReview');}),_0x2a293d['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x4ea09b=>!_0x4ea09b),this['bindTemplate']['if']('errorType','ck-ai_review__check-run-error-container_border-bottom',_0x19d54a=>'chunk'===_0x19d54a)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-notification','ck-ai-notification_error','ck-ai-notification__full-width','ck-ai_review__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-notification_warning',_0x4bb4d1=>'chunk'===_0x4bb4d1)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0xf40607=>'general'!==_0xf40607)]},'children':[{'text':this['_contents']['generalErrorText']}]},{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x1ab2c8=>'chunk'!==_0x1ab2c8)]},'children':[{'text':getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x4576e1]}),_0x2a293d;}['_createCancelButtonView'](){const _0x38f31c=new ButtonView(this['locale']);return _0x38f31c['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':IconStop}),_0x38f31c['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x107ff3=>_0x107ff3),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x566009=>_0x566009)]}}),_0x38f31c['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x38f31c;}['_createToggleDiffButtonView'](){const _0x2a9ff3=new ButtonView(this['locale']);_0x2a9ff3['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x2a9ff3['bind']('isEnabled')['to'](this,'isError',_0x4b1e0c=>!_0x4b1e0c),_0x2a9ff3['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai_review__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x352f09=>!_0x352f09),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x15a3ee=>_0x15a3ee)]}});const _0x3c2ffd=getTranslation$i(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x44b647=getTranslation$i(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x2a9ff3['bind']('isOn')['to'](this,'isToggleDiffOn',_0x5e29b3=>_0x5e29b3),_0x2a9ff3['bind']('icon')['to'](this,'isToggleDiffOn',_0x425ba2=>_0x425ba2?IconEye:IconEyeCrossedOut),_0x2a9ff3['bind']('label')['to'](this,'isToggleDiffOn',_0x2beedd=>_0x2beedd?_0x3c2ffd:_0x44b647),_0x2a9ff3['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x2a9ff3;}['_createAcceptAllButtonView'](){const _0x3fa189=new ButtonView(this['locale']);return _0x3fa189['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x3fa189['bind']('isEnabled')['to'](this,'isError',_0x147a00=>!_0x147a00),_0x3fa189['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai_review__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x538c9b=>!_0x538c9b),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x501f99=>_0x501f99)]}}),_0x3fa189['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x3fa189;}['_createExitReviewButtonView'](){const _0x2bf61e=new ButtonView(this['locale']);return _0x2bf61e['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x2bf61e['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary','ck-ai_review__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x24215f=>!_0x24215f),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x202df4=>_0x202df4)]}}),_0x2bf61e['on']('execute',()=>{this['fire']('leaveReviewCoreResultList');}),_0x2bf61e;}['_createResultHeaderView'](){const _0x31c177=new View(this['locale']),_0x5bda8b=this['_createTitleView']();return _0x31c177['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai_review__review-completed-header',_0x551227=>_0x551227)]},'children':[_0x5bda8b,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x31c177;}['_createTitleView'](){const _0x3c372e=new View(this['locale']),_0x1cd0ae=new AISpinnerView();return _0x1cd0ae['bind']('isVisible')['to'](this,'isResultReady',_0x3e9126=>!_0x3e9126),_0x3c372e['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-wrapper']},'children':[_0x1cd0ae,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x2d856c=>_0x2d856c)]},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__check-run-results-header-title']},'children':[{'text':this['bindTemplate']['to']('headerTitle')}]},{'tag':'span','attributes':{'class':['ck-ai_review__check-run-results-header-subtitle']},'children':[{'text':this['bindTemplate']['to']('headerSubtitle')}]}]},{'tag':'span','attributes':{'class':['ck-ai_review__review-completed-header-title',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x3d8ffd=>!_0x3d8ffd)]},'children':[{'text':getTranslation$i(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x3c372e;}['_createFinishReviewButtonView'](){const _0x2b1a02=new AIReviewCoreFinishReviewButtonView(getTranslation$i(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL'),this['locale']);return _0x2b1a02['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x3069df=>!_0x3069df)]}}),_0x2b1a02['delegate']('finishReview')['to'](this),_0x2b1a02;}}class AIReviewCoreReviewCompletedView extends ListItemView{['_resultsHeader'];['_finishReviewButtonView'];constructor(_0x1ae547,_0x36b27f){super(_0x1ae547),this['_finishReviewButtonView']=this['_createFinishReviewButtonView'](_0x36b27f['buttonText']),this['_resultsHeader']=this['_createResultHeaderView'](_0x36b27f['headerText']);const _0x4fdd2b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__review-completed',_0x4fdd2b['if']('isVisible','ck-hidden',_0x6c347d=>!_0x6c347d)]},'children':[this['_resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai_review__review-completed-content']},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__review-completed-content-icon']},'children':[{'text':'👍'}]},{'tag':'p','attributes':{'class':['ck-ai_review__review-completed-content-text']},'children':[{'text':_0x36b27f['emptyResultsText']}]}]}]});}['_createFinishReviewButtonView'](_0x19fc6b){const _0x167e8b=new AIReviewCoreFinishReviewButtonView(_0x19fc6b,this['locale']);return _0x167e8b['delegate']('finishReview')['to'](this),_0x167e8b;}['_createResultHeaderView'](_0x18e907){const _0x9982bb=new View(this['locale']);return _0x9982bb['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__review-completed-header']},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__review-completed-header-title']},'children':[{'text':_0x18e907}]},{'tag':'div','attributes':{'class':['ck-ai_review__review-completed-header-buttons']},'children':[this['_finishReviewButtonView']]}]}),_0x9982bb;}}class AIReviewCoreFormDropdownView extends View{['_dropdownView'];['_defaultValue'];['_defaultLabel'];constructor(_0x3b3c7b,_0x12b5c8){super(_0x3b3c7b),this['_defaultValue']=_0x12b5c8['default']||(_0x12b5c8['data']['length']>0x0?_0x12b5c8['data'][0x0]['id']:''),this['_defaultLabel']=_0x12b5c8['data']['find'](_0x202b9b=>_0x202b9b['id']===this['_defaultValue'])?.['label']||'',this['set']('formValue',''),this['_dropdownView']=createDropdown(this['locale']);const _0x1c81c9=this['_prepareListOptions'](_0x12b5c8['data']);addListToDropdown(this['_dropdownView'],_0x1c81c9,{'role':'menu','ariaLabel':_0x12b5c8['label']}),this['_dropdownView']['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0}),this['_dropdownView']['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x3d2628=>{_0x3d2628['stopPropagation']();})}}),this['listenTo'](this['_dropdownView'],'execute',_0x33b927=>{this['formValue']=_0x33b927['source']['model']['id'],this['_dropdownView']['buttonView']['label']=_0x33b927['source']['model']['label'];}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai_review__check-list-item-parameterized-form-element','ck-ai_review__check-list-item-parameterized-form-element_dropdown']},'children':[this['_dropdownView']]});}['resetToDefault'](){this['formValue']=this['_defaultValue'],this['_dropdownView']['buttonView']['label']=this['_defaultLabel'];}['_prepareListOptions'](_0x471f95=[]){const _0x5d8fbf=new Collection();this['resetToDefault']();for(const _0x1e84cc of _0x471f95){const _0x1c451c=new UIModel({'label':_0x1e84cc['label'],'withText':!0x0,'role':'menuitemradio','id':_0x1e84cc['id'],'model':_0x1e84cc});_0x1c451c['bind']('isOn')['to'](this,'formValue',_0x1104ba=>_0x1104ba===_0x1c451c['id']);const _0x17c185={'type':'button','model':_0x1c451c};_0x5d8fbf['add'](_0x17c185);}return _0x5d8fbf;}}class AIReviewCoreFormManagerView extends ListItemView{['_formItem']=null;constructor(_0x8bd437,_0x44eb74,_0x451368){super(_0x8bd437),this['argsKey']=_0x44eb74?.['argsKey'];if('dropdown'===_0x44eb74['formType'])this['_formItem']=new AIReviewCoreFormDropdownView(this['locale'],_0x44eb74);this['set']('value',''),this['bind']('value')['to'](this['_formItem'],'formValue');const _0x37b1e7=new FormRowView(this['locale'],{'children':[this['_formItem']],'class':[_0x451368?'ck-form__row_with-submit':'']});_0x451368&&_0x37b1e7['children']['add'](_0x451368),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai_review__form-item','ck-reset_all']},'children':[_0x37b1e7]});}['resetToDefault'](){this['_formItem']['resetToDefault']();}}class AIReviewCorePromptInputView extends TextareaView{['keystrokes'];static ['MIN_ROWS']=0x1;static ['MAX_ROWS']=0xc;constructor(_0x2f7198){super(_0x2f7198),this['set']('isEmpty',!0x0),this['keystrokes']=new KeystrokeHandler(),this['minRows']=AIReviewCorePromptInputView['MIN_ROWS'],this['maxRows']=AIReviewCorePromptInputView['MAX_ROWS'],this['extendTemplate']({'attributes':{'id':'ai-review-prompt-input','class':['ck','ck-review__prompt-input']}});}['render'](){super['render'](),this['on']('update',()=>{this['isEmpty']=''===this['element']['value']?.['trim']();}),this['keystrokes']['listenTo'](this['element']);}}class AIReviewCoreCustomCheckView extends View{['focusTracker']=new FocusTracker();['keystrokes']=new KeystrokeHandler();['focusCycler'];['_focusables']=new ViewCollection();['submitButtonView'];['cancelButtonView'];['promptInputView'];['actionsFooterView'];['_modelSelectionDropdown'];['_modelNameView'];['_modelSelectionDropdownItems'];['_check'];['_defaultValue'];['_defaultLabel'];constructor(_0x55b71e,_0x94b17,_0x4e738d=!0x1){super(_0x55b71e),this['_check']=_0x94b17,this['set']('prompt',''),this['set']('modelId',''),this['set']('modelDisplayMode','selector'),this['set']('activeModelName',null),this['_defaultValue']=_0x94b17['defaultModel']?_0x94b17['defaultModel']['id']:'',this['_defaultLabel']=_0x94b17['defaultModel']?_0x94b17['defaultModel']['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),(this['promptInputView']=new LabeledFieldView(this['locale'],()=>new AIReviewCorePromptInputView(_0x55b71e)),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['_modelNameView']=this['_createModelNameView'](),this['_setModelList'](_0x4e738d),addListToDropdown(this['_modelSelectionDropdown'],this['_modelSelectionDropdownItems']),this['actionsFooterView']=this['_createActionsFooterView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__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',(_0xa0e2a4,_0x358295)=>{this['_isValid']()?(this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0}),_0x358295()):_0x358295();}),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'](_0x41e6cb=>{this['_focusables']['add'](_0x41e6cb),this['focusTracker']['add'](_0x41e6cb['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 _0x58653f of this['_getFormValidators']()){const _0x570fdf=_0x58653f();if(_0x570fdf)return this['promptInputView']['errorText']=_0x570fdf,!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 _0xd7fcd3=new ButtonView(this['locale']),t=this['locale']['t'];return _0xd7fcd3['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0xd7fcd3['on']('execute',()=>{this['_isValid']()&&this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0xd7fcd3;}['_createCancelButtonView'](){const _0x1e37cf=new ButtonView(this['locale']),t=this['locale']['t'];return _0x1e37cf['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary'}),_0x1e37cf['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x4cbecf=>{_0x4cbecf['stopPropagation']();})}}),_0x1e37cf['on']('execute',()=>{this['resetToDefault'](),this['fire']('closeCustomCheck');}),_0x1e37cf;}['_setModelList'](_0x46e8b4){this['_modelSelectionDropdownItems']['clear']();const _0x40465c=this['_check']['models'];if(_0x46e8b4)this['set']('modelDisplayMode','hidden');else{const _0x52d3c4=0x1===_0x40465c['length'];this['set']('modelDisplayMode',_0x52d3c4?'name':'selector');}if(this['resetToDefault'](),_0x40465c?.['length']){0x1===_0x40465c['length']&&this['set']('activeModelName',_0x40465c[0x0]['name']||_0x40465c[0x0]['id']);for(const _0x274ae9 of _0x40465c){const _0x316f0a=new UIModel({'label':_0x274ae9['name'],'withText':!0x0,'role':'menuitemradio','id':_0x274ae9['id'],'model':_0x274ae9});_0x316f0a['bind']('isOn')['to'](this,'modelId',_0x208c62=>_0x208c62===_0x274ae9['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x316f0a,'labelView':new ModelButtonLabelView(this['locale'],_0x274ae9)});}}}['_createModelSelectionDropdown'](){const _0x2a74f6=createDropdown(this['locale']);return _0x2a74f6['set']({'panelPosition':'se','class':'ck-ai_review__check-list-item-model-dropdown'}),_0x2a74f6['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),_0x2a74f6['buttonView']['bind']('isVisible')['to'](this,'modelDisplayMode',_0x5e96aa=>'selector'===_0x5e96aa),this['listenTo'](_0x2a74f6,'execute',_0x1045d2=>{this['modelId']=_0x1045d2['source']['model']['id'],_0x2a74f6['buttonView']['label']=_0x1045d2['source']['label'];}),_0x2a74f6;}['_createModelNameView'](){const _0x5e81f5=new ModelNameView(this['locale']);return _0x5e81f5['bind']('text')['to'](this,'activeModelName',_0xb4c877=>_0xb4c877??''),_0x5e81f5['bind']('isVisible')['to'](this,'modelDisplayMode',_0x379a40=>'name'===_0x379a40),_0x5e81f5;}['_createActionsFooterView'](){const _0x24d72e=new View(this['locale']);return _0x24d72e['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-custom-actions-footer']},'children':[this['_modelSelectionDropdown'],this['_modelNameView'],{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized-custom-actions-buttons']},'children':[this['cancelButtonView'],this['submitButtonView']]}]}),_0x24d72e;}}class ModelNameView extends View{constructor(_0x3f3061){super(_0x3f3061),this['set']('text',void 0x0),this['set']('isVisible',!0x0);const _0x7b018b=this['bindTemplate'];this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai_review__check-list-item-model-name',_0x7b018b['if']('isVisible','ck-hidden',_0x26eedb=>!_0x26eedb)]},'children':[{'text':_0x7b018b['to']('text')}]});}}class ModelButtonLabelView extends ButtonLabelView{constructor(_0x1995f7,_0x15d505){super();const _0x3ed1c8=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x3ed1c8['to']('style'),'id':_0x3ed1c8['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-model-dropdown-name']},'children':[{'tag':'span','children':[{'text':_0x3ed1c8['to']('text')}]}]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[_0x15d505['description']||'']}]}]});}}class AIReviewCoreReviewCommandListItemView extends ListItemView{['_formItemsCollection']=new ViewCollection();['_customCheckView']=null;['_hideModels']=!0x1;constructor(_0x51649a,_0x326c65,_0x3165ff,_0xa4e9c=!0x1){super(_0x51649a),this['_hideModels']=_0xa4e9c,this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x326c65['isParameterized']);const _0x25417b=this['_createIconView']();this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item',this['bindTemplate']['if']('isParametrizedViewOpen','ck-ai_review__check-list-item_selected',_0x2f0b2c=>_0x2f0b2c),this['bindTemplate']['if']('isListItemRendered','ck-ai_review__check-list-item_rendered',_0x19c17c=>_0x19c17c)],'style':{'--ck-ai-review-check-list-item-index':_0x3165ff}},'on':{'click':this['bindTemplate']['to']('click')},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-main-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-title']},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__check-list-item-title-text']},'children':[{'text':_0x326c65['title']}]},_0x25417b]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-description']},'children':_0x326c65['description']?[{'text':_0x326c65['description']}]:[]}]}]},..._0x326c65['isParameterized']?[this['_createParameterizedView'](_0x326c65)]:[],...'custom'===_0x326c65['id']?[this['_createCustomView'](_0x326c65,this['_hideModels'])]:[]]}),this['on']('click',()=>{_0x326c65['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x326c65['id'],'args':_0x326c65['useArgs']?_0x326c65['args']:void 0x0});}),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'](_0x5c7cbc=>{_0x5c7cbc['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x462cb5=new IconView();return _0x462cb5['content']=IconChevronRight,_0x462cb5['extendTemplate']({'attributes':{'class':['ck-ai_review__check-list-item-title-icon']}}),_0x462cb5;}['_createParameterizedView'](_0x8fdf9f){const _0x318aae=new View(),_0x232ad8=this['_createFormView'](_0x8fdf9f);return _0x318aae['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x472bc1=>!_0x472bc1)]},'children':[_0x232ad8]}),_0x318aae;}['_createFormView'](_0x47608d){const _0x3d0319=new View(),_0x339a50=Array['isArray'](_0x47608d['options'])?_0x47608d['options']:[],_0x33862b=new ButtonView(this['locale']),t=this['locale']['t'];_0x33862b['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x33862b['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x2db619=>{_0x2db619['stopPropagation']();})}}),_0x33862b['on']('execute',()=>{const _0x16db66=[],_0x50d6af={};this['_formItemsCollection']['forEach'](_0x26955c=>{_0x16db66['push'](_0x26955c['value']),_0x47608d['useArgs']&&_0x47608d['options']&&(_0x50d6af[_0x26955c['argsKey']]=_0x26955c['value']);}),this['fire']('runReviewCheck',{'id':_0x47608d['id'],'params':_0x16db66['length']?_0x16db66:void 0x0,'args':Object['keys'](_0x50d6af)['length']?_0x50d6af:void 0x0});});const _0x1f69af=_0x339a50['length'];return _0x339a50['forEach']((_0x55dfa4,_0x344102)=>{const _0x3b382a=_0x344102===_0x1f69af-0x1;this['_formItemsCollection']['add'](new AIReviewCoreFormManagerView(this['locale'],_0x55dfa4,_0x3b382a?_0x33862b:null));}),_0x3d0319['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x3d0319;}['_createCustomView'](_0x34ff6e,_0x16c6c3=!0x1){return this['_customCheckView']=new AIReviewCoreCustomCheckView(this['locale'],_0x34ff6e,_0x16c6c3),this['_customCheckView']['extendTemplate']({'attributes':{'class':['ck-ai_review__check-list-item-parameterized','ck-ai_review__check-list-item-parameterized_custom',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x457262=>!_0x457262)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['listenTo'](this['_customCheckView'],'closeCustomCheck',()=>{this['isParametrizedViewOpen']=!0x1;}),this['on']('change:isParametrizedViewOpen',(_0x452d8e,_0x41000f,_0x37d9e0)=>{_0x37d9e0||this['_customCheckView']['resetFormValidationStatus']();}),this['_customCheckView'];}}class AIReviewCoreReviewCheckListView extends ListItemView{['_checkViews'];constructor(_0x1098de){super(_0x1098de),this['_checkViews']=new ViewCollection(),this['_setupTemplate']();}['setChecks'](_0x5b7d3e,_0x20631b=!0x1){this['_checkViews']['clear']();for(const [_0x286412,_0x3c2f38]of _0x5b7d3e['entries']()){const _0x161791=new AIReviewCoreReviewCommandListItemView(this['locale'],_0x3c2f38,_0x286412,_0x20631b);_0x161791['delegate']('runReviewCheck')['to'](this),this['_checkViews']['add'](_0x161791);}}['hasChecks'](){return this['_checkViews']['length']>0x0;}['resetAllParameterizedChecks'](){for(const _0x21ffbf of this['_checkViews'])_0x21ffbf instanceof AIReviewCoreReviewCommandListItemView&&_0x21ffbf['resetToDefault']();}['_setupTemplate'](){const _0x1b721c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list',_0x1b721c['if']('isVisible','ck-hidden',_0x8726d7=>!_0x8726d7)]},'children':this['_checkViews']});}}class AIReviewModeUI extends AIReviewCoreUI{static get['pluginName'](){return'AIReviewModeUI';}['createMainView'](){const _0x54441e=this['context']['locale'],_0x2828=new FormHeaderView(_0x54441e,{'label':getTranslation$i(_0x54441e,'AI_REVIEW_MODE'),'icon':_0x479cd2,'class':'ck-ai-header\x20ck-ai-header_review'});return new AIReviewCoreView(this['context']['locale'],{'header':_0x2828,'list':new AIReviewCoreReviewCheckListView(_0x54441e),'results':new AIReviewCoreUICheckResultsView(_0x54441e,{'generalErrorText':getTranslation$i(_0x54441e,'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}),'completed':new AIReviewCoreReviewCompletedView(_0x54441e,{'headerText':getTranslation$i(_0x54441e,'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE'),'emptyResultsText':getTranslation$i(_0x54441e,'AI_REVIEW_MODE_EMPTY_RESULTS_TEXT'),'buttonText':getTranslation$i(_0x54441e,'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL')})});}['registerTab'](){const _0x52e69c=this['context']['plugins']['get']('AITabs');_0x52e69c['view']['on']('activateTab',(_0x271ef3,_0x47b741)=>{'reviewMode'===_0x47b741?this['fire']('getReviewCheckList'):this['fire']('leaveReview');}),_0x52e69c['view']['addTab']({'id':'reviewMode','buttonLabel':getTranslation$i(this['context']['locale'],'AI_REVIEW_MODE'),'buttonIcon':_0x479cd2,'order':0x0,'content':this['_mainView']});}}const MARKER_PREFIX='review-',CHANGE_CONTEXT_WORDS_LIMIT=0x6;class AIReviewCoreEditing extends ContextPlugin{static get['requires'](){return[DocumentCompare,AIEditing];}static get['pluginName'](){return'AIReviewCoreEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_markers']=new Map();['_activeMarkers']=new Set();['_domEmitter'];['_eventEmitter'];constructor(_0x13d989){super(_0x13d989),this['_domEmitter']=new(DomEmitterMixin())(),this['_eventEmitter']=new(EmitterMixin())();}get['emitter'](){return this['_eventEmitter'];}['afterInit'](){const _0x42c060=getEditorFromContext(this['context']);_0x42c060['conversion']['for']('editingDowncast')['markerToElement']({'model':MARKER_PREFIX+'insert','view':(_0x1970be,{writer:_0x372448})=>{const _0x16c007=this['_markers']['get'](_0x1970be['markerName']),_0x10a2af={'class':'ck-ai_review-marker_add'+(this['_activeMarkers']['has'](_0x16c007?.['id']||'')?'\x20ck-ai_review__change_active':''),'data-marker-id':_0x1970be['markerName']};return _0x372448['createUIElement']('span',_0x10a2af,function(_0x148be0){const _0x500f34=this['toDomElement'](_0x148be0);return _0x500f34['innerHTML']=_0x16c007?.['content']?.['asString']||'',_0x500f34;});}}),_0x42c060['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-only','view':_0x3abc4f=>{const _0x36cf15=this['_markers']['get'](_0x3abc4f['markerName']),_0x4586c2=['ck-ai_review-marker_strikethrough'];return this['_activeMarkers']['has'](_0x36cf15?.['id']||'')&&_0x4586c2['push']('ck-ai_review__change_active'),{'classes':_0x4586c2,'attributes':{'data-marker-id':_0x3abc4f['markerName']}};}}),_0x42c060['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-context','view':_0x46816f=>{const _0x486c09=this['_markers']['get'](_0x46816f['markerName']),_0x200214=['ck-ai_review-marker_underline'];return this['_activeMarkers']['has'](_0x486c09?.['id']||'')&&_0x200214['push']('ck-ai_review__change_active'),{'classes':_0x200214,'attributes':{'data-marker-id':_0x46816f['markerName']}};}}),_0x42c060['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-text','view':_0x29e4e1=>{const _0x2e61de=this['_markers']['get'](_0x29e4e1['markerName']),_0x5b7cd0=['ck-ai_review-marker_hide'];return this['_activeMarkers']['has'](_0x2e61de?.['id']||'')&&_0x5b7cd0['push']('ck-ai_review__change_active'),{'classes':_0x5b7cd0,'attributes':{'data-marker-id':_0x29e4e1['markerName']}};}}),_0x42c060['conversion']['for']('dataDowncast')['markerToElement']({'model':MARKER_PREFIX+'suggestion-context','view':(_0x27eb7c,{writer:_0x8a2983})=>_0x8a2983['createRawElement']('span',{'class':'ck-ai_review-marker_context-'+(_0x27eb7c['isOpening']?'start':'end')})}),_0x42c060['conversion']['for']('downcast')['attributeToAttribute']({'model':DATA_ID_MODEL_ATTRIBUTE,'view':DATA_ID_VIEW_ATTRIBUTE});const _0x17d847=_0x42c060['ui']['getEditableElement']()||document['body'];this['_domEmitter']['listenTo'](_0x17d847,'mouseup',(_0x2c2935,_0x3c2e48)=>{const _0x5cb5a5=_0x3c2e48['target'],_0xc8eac3=this['_findMarkerElement'](_0x5cb5a5);if(!_0xc8eac3)return;const _0x17a4bf=_0xc8eac3['getAttribute']('data-marker-id'),_0x1f969d=_0x17a4bf['split'](':')['pop']()?.['split']('_')[0x0];this['_eventEmitter']['fire']('changeMarkerClicked',{'markerId':_0x17a4bf,'changeId':_0x1f969d,'markerElement':()=>this['_findMarkerElementById'](_0x17a4bf),'domEvent':_0x3c2e48});},{'usePassive':!0x0,'priority':'highest'}),this['_domEmitter']['listenTo'](_0x17d847,'mouseover',(_0x223f24,_0x468679)=>{const _0x4714a1=_0x468679['target'],_0x107d54=_0x468679['relatedTarget'];let _0x20ba0e=this['_findMarkerElement'](_0x4714a1);if(!_0x20ba0e&&_0x107d54&&(_0x20ba0e=this['_findMarkerElement'](_0x107d54)),!_0x20ba0e)return;const _0x1f3295=_0x20ba0e['getAttribute']('data-marker-id'),_0x497108=_0x1f3295['split'](':')['pop']()?.['split']('_')[0x0];this['_eventEmitter']['fire']('changeMarkerHovered',{'changeId':_0x497108,'markerElement':()=>this['_findMarkerElementById'](_0x1f3295),'domEvent':_0x468679});}),this['_domEmitter']['listenTo'](document,'mouseover',debounce$1((_0x3bcc05,_0x21a681)=>{const _0xb64b67=_0x21a681['target'];if(this['_findMarkerElement'](_0xb64b67))return;_0xb64b67['closest']('.ck-reset.ck-ai_review-balloon-panel-suggestion')||this['_eventEmitter']['fire']('changeMarkerBlurred');},0xc8)),_0x42c060['model']['document']['registerPostFixer'](_0x497112=>this['_validateMarkers'](_0x42c060,_0x497112)),_0x42c060['model']['document']['on']('change',()=>this['_handleMarkerChanges'](_0x42c060));}['getDocumentData'](){const _0x53ce7b=this['context']['plugins']['get']('AIEditing'),_0x3c1aac=getEditorFromContext(this['context']),_0x45ca9b=_0x3c1aac['model'],_0x4055f6=new ModelDocumentFragment();for(const _0x14dd9b of _0x45ca9b['document']['getRoot']()['getChildren']()){const _0x237810=_0x14dd9b['_clone'](!0x0);_0x4055f6['_appendChild'](_0x237810);}for(const _0x26f78a of _0x45ca9b['markers'])_0x4055f6['markers']['set'](_0x26f78a['name'],this['_changeRangeOwnerDocument'](_0x26f78a['getRange']()['clone'](),_0x4055f6));const _0x30cf30=new ModelTreeWalker({'ignoreElementEnd':!0x0,'startPosition':_0x45ca9b['createPositionAt'](_0x4055f6,0x0)}),_0x1214f2=new Set(),_0x2d34fa=new Map();for(const {item:_0x35ae63}of _0x30cf30){if(!_0x35ae63['is']('$textProxy'))continue;const _0x53cb13=_0x35ae63['parent'];if(_0x53cb13&&_0x53cb13['is']('element')){const _0x54bede=this['_upsertDataId'](_0x53cb13,()=>_0x53ce7b['_nextDataId'](_0x1214f2));_0x1214f2['add'](_0x54bede);for(const _0xbb10af of _0x53cb13['getChildren']())_0xbb10af['is']('element')&&_0x1214f2['add'](this['_upsertDataId'](_0xbb10af,()=>_0x53ce7b['_nextDataId'](_0x1214f2)));let _0x2b1e14=_0x53cb13;for(;_0x2b1e14['parent']&&!_0x2b1e14['parent']['is']('documentFragment');)_0x2b1e14=_0x2b1e14['parent'],_0x2b1e14['hasAttribute'](DATA_ID_MODEL_ATTRIBUTE)&&_0x2b1e14['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);_0x2d34fa['set'](_0x54bede,{'path':_0x53cb13['getPath'](),'getContent':this['_createGetContentUsingDataIdFn'](_0x2b1e14['_clone'](!0x0),_0x54bede,_0x3c1aac['data'])}),_0x30cf30['jumpTo'](_0x45ca9b['createPositionAfter'](_0x53cb13));}}return{'content':_0x3c1aac['data']['processor']['toData'](_0x3c1aac['data']['toView'](_0x4055f6)),'version':_0x3c1aac['model']['document']['version'],'elements':_0x2d34fa};}['diffContent'](_0x6b4038,_0x5b067d,_0x417f6b=!0x1){const _0x1004e7=[],_0x3108d9=getEditorFromContext(this['context']),_0x4a33ff=_0x3108d9['data']['parse'](_0x5b067d,'$documentFragment'),_0x3e05a7=_0x3108d9['data']['parse'](_0x6b4038,'$documentFragment'),_0x272a80=_0x3108d9['model']['createPositionAt'](_0x3e05a7,0x0);if(this['_haveSingleTopLevelElement'](_0x4a33ff)){if(!this['_hasSameTopLevelElement'](_0x3e05a7,_0x4a33ff))return _0x1004e7;}else{const _0x409f71=_0x3108d9['model']['schema'];if(!this['_haveOnlyInlineContent'](_0x3e05a7,_0x409f71)||!this['_haveOnlyInlineContent'](_0x4a33ff,_0x409f71))return _0x1004e7;}const _0x9db5b=this['context']['plugins']['get']('DocumentCompare')['getDiff'](_0x6b4038,_0x5b067d,{'anchor':_0x272a80,'markDeletions':!0x0})['getOperations']()['filter'](_0x35efdf=>'insert'===_0x35efdf['type']||'marker'===_0x35efdf['type']&&_0x35efdf['name']['startsWith']('$markedRemove')),_0x1c18bd=this['_groupAdjacentOperations'](_0x9db5b),_0xa05fc0=[];if(_0x417f6b){if(_0x1c18bd['length']){const _0x69a772=_0x1c18bd[0x0]['operations'][0x0],_0x30ef67='insert'===_0x69a772['type']?_0x69a772['position']:_0x69a772['newRange']['start'],_0x4f1fb8=this['_getPositionLimitingRange'](_0x30ef67,_0x3108d9,'inside'),_0x527311=_0x4f1fb8?_0x4a33ff['getChild'](0x0)['getChildren']():_0x4a33ff['getChildren'](),_0x5ac7b1=_0x4f1fb8||_0x3108d9['model']['createRangeIn'](_0x3e05a7),_0x34a0a8=[new MarkerOperation('$markedRemove:synthetic'+uid(),null,_0x5ac7b1,_0x3108d9['model']['document']['model']['markers'],!0x0,_0x3108d9['model']['document']['version']+0x1),new InsertOperation(_0x5ac7b1['end'],_0x527311,_0x3108d9['model']['document']['version']+0x2)];_0xa05fc0['push']({'operations':_0x34a0a8,'operationsIsolated':_0x34a0a8,'groupOffset':0x0});}}else _0xa05fc0['push'](..._0x1c18bd);let _0x1ccd1d=0x0;return _0x3108d9['model']['change'](_0x5f360d=>{for(let _0x5b63c3=0x0;_0x5b63c3<_0xa05fc0['length'];_0x5b63c3++){const _0xab3371=_0xa05fc0[_0x5b63c3],_0x37131f=_0x5f360d['createDocumentFragment']();for(const _0x44bb63 of _0x3e05a7['getChildren']())_0x5f360d['append'](_0x44bb63['_clone'](!0x0),_0x37131f);for(const _0x1cd4d8 of _0xab3371['operationsIsolated'])if('insert'===_0x1cd4d8['type']){const _0x41c0aa=_0x1cd4d8;_0x41c0aa['baseVersion']=null,_0x41c0aa['isDocumentOperation']=!0x1,this['_changeOperationOwnerDocument'](_0x41c0aa,_0x37131f),_0x5f360d['batch']['addOperation'](_0x1cd4d8),_0x3108d9['model']['applyOperation'](_0x1cd4d8);const _0x38d776='suggestion:insertion:id:authorId:'+_0x1ccd1d++,_0xcb0870=_0x3108d9['model']['createRange'](_0x41c0aa['position'],_0x41c0aa['position']['getShiftedBy'](_0x41c0aa['howMany']));_0x37131f['markers']['set'](_0x38d776,_0xcb0870);}else{if('marker'===_0x1cd4d8['type']&&_0x1cd4d8['name']['startsWith']('$markedRemove')){const _0x38efdc=_0x1cd4d8,_0x1d7f94='suggestion:deletion:id:authorId:'+_0x1ccd1d++;this['_changeOperationOwnerDocument'](_0x38efdc,_0x37131f),_0x37131f['markers']['set'](_0x1d7f94,_0x38efdc['newRange']);}}if(_0x417f6b)_0x1004e7['push']({..._0xab3371,'context':this['_createGetContentFn'](_0x3e05a7,_0x3108d9['data']),'content':this['_createGetContentFn'](_0x3e05a7,_0x3108d9['data'])});else{const _0x6236a8=this['_getChangeContext'](this['_changePositionOwnerDocument'](this['_getOperationStart'](_0xab3371['operationsIsolated'][0x0]),_0x37131f),this['_changePositionOwnerDocument'](this['_getOperationEnd'](_0xab3371['operationsIsolated'][_0xab3371['operationsIsolated']['length']-0x1]),_0x37131f));_0x37131f['markers']['set'](MARKER_PREFIX+'suggestion-context',new ModelRange(_0x6236a8['start'],_0x6236a8['end'])),_0x1004e7['push']({..._0xab3371,'context':this['_createGetContextFn'](_0x37131f,_0x3108d9['data'],{'ellipsisBefore':_0x6236a8['hasContentBefore'],'ellipsisAfter':_0x6236a8['hasContentAfter']}),'content':this['_createGetContentFn'](_0x37131f,_0x3108d9['data'])});}}}),_0x1004e7;}['markChangePositionInEditorContent'](_0x23f7fc,_0x56010b){if(!_0x23f7fc['length'])return;const _0x2d0aaf=_0x23f7fc[0x0]['parent']['id'],_0x27c445=_0x56010b['elements']['get'](_0x2d0aaf);if(!_0x27c445)return void console['warn']('No\x20element\x20found\x20for\x20ID:\x20'+_0x2d0aaf);const _0x3ea7bc=_0x27c445['path'],_0x86f685=getEditorFromContext(this['context']),_0x115874=_0x86f685['model']['document']['history']['getOperations'](_0x56010b['version']),_0x1db458=[];for(const _0x3a320a of _0x23f7fc){const _0x41110b=_0x3a320a['operationsIsolated']['map'](_0x2f62f7=>this['_translateOperationToEditorContent'](_0x2f62f7,_0x3ea7bc,_0x86f685['model']['document']['getRoots']()[0x0]));if(!_0x41110b||!_0x41110b['length'])continue;const _0x4a3845=_0x41110b['every'](_0x10c928=>'marker'===_0x10c928['type']&&_0x10c928['name']['startsWith']('$markedRemove')),_0x5e75cc={'document':_0x86f685['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1},_0x4cf21c=transformOperationSets(_0x41110b,_0x115874,_0x5e75cc)['operationsA'];for(const _0x5c2b4a of _0x4cf21c)if('insert'===_0x5c2b4a['type']){const _0x1564ef=_0x5c2b4a,_0x61c01c=_0x1564ef['nodes'];_0x86f685['model']['change'](_0x353814=>{const _0x4ffda3=_0x353814['createDocumentFragment']();for(const _0xd3d56 of _0x61c01c)_0x353814['append'](_0xd3d56['_clone'](!0x0),_0x4ffda3);_0x1db458['push']({'start':_0x1564ef['position'],'end':_0x1564ef['position'],'type':'insert','groupId':_0x3a320a['id'],'content':{'asString':this['_createGetContentFn'](_0x4ffda3,_0x86f685['data'])(),'asFragment':_0x4ffda3}});});}else{if('marker'===_0x5c2b4a['type']&&_0x5c2b4a['name']['startsWith']('$markedRemove')){const _0x5bae58=_0x5c2b4a;let _0x3808a2='remove-text';if(_0x4a3845){const _0x1a97f3=this['_findAdjacentContextDistance'](_0x5bae58['newRange']['start'],'backward',_0x86f685['model']['schema']),_0x1784a6=this['_findAdjacentContextDistance'](_0x5bae58['newRange']['end'],'forward',_0x86f685['model']['schema']);if(_0x1a97f3||_0x1784a6){const _0x105ac8=_0x5bae58['newRange']['start']['getShiftedBy'](-_0x1a97f3),_0x5c2c93=_0x5bae58['newRange']['end']['getShiftedBy'](_0x1784a6);_0x1db458['push']({'start':_0x105ac8,'end':_0x5c2c93,'groupId':_0x3a320a['id'],'type':'remove-context'});}else _0x3808a2='remove-only';}_0x1db458['push']({'start':_0x5bae58['newRange']['start'],'end':_0x5bae58['newRange']['end'],'groupId':_0x3a320a['id'],'type':_0x3808a2});}}}this['_insertMarkers'](_0x1db458);}['clearAllMarkers'](){const _0x13b334=getEditorFromContext(this['context']);_0x13b334['model']['change'](_0x708851=>{for(const _0x31827b of this['_markers']['keys']())_0x13b334['model']['markers']['get'](_0x31827b)&&_0x708851['removeMarker'](_0x31827b);}),this['_markers']['clear'](),this['_activeMarkers']['clear']();}['switchToReadOnly'](){getEditorFromContext(this['context'])['enableReadOnlyMode']('ai-review');}['switchToEdit'](){getEditorFromContext(this['context'])['disableReadOnlyMode']('ai-review');}['applyChange'](_0x17327f){const _0x1635e6=getEditorFromContext(this['context']),_0x100d65=_0x1635e6['model'],_0x5c3586=_0x17327f['map'](_0x158f8d=>this['_getMarkersDataForGroup'](_0x158f8d))['flat']();_0x100d65['change'](_0x3598aa=>{for(const _0x3c0802 of _0x5c3586){const _0x4f284d=_0x1635e6['model']['markers']['get'](_0x3c0802['id']);if(_0x4f284d){if('insert'===_0x3c0802['type']){if(!_0x3c0802['content'])continue;_0x100d65['insertContent'](_0x3c0802['content']['asFragment']||null,_0x4f284d['getRange']()['start']);}else'remove-text'!==_0x3c0802['type']&&'remove-only'!==_0x3c0802['type']||_0x100d65['deleteContent'](_0x100d65['createSelection'](_0x4f284d['getRange']()));_0x3598aa['removeMarker'](_0x3c0802['id']),this['_markers']['delete'](_0x3c0802['id']);}}});}['rejectChange'](_0x13dfec){const _0xae7dcc=getEditorFromContext(this['context']),_0x2fed37=this['_getMarkersDataForGroup'](_0x13dfec);_0xae7dcc['model']['change'](_0x5573ce=>{for(const _0x28d33d of _0x2fed37)_0x5573ce['removeMarker'](_0x28d33d['id']),this['_markers']['delete'](_0x28d33d['id']);});}['getEditor'](){return getEditorFromContext(this['context']);}['getMarkerElementForChange'](_0xc8484b){const _0xddddc7=Array['from'](this['_markers']['values']())['filter'](_0x584fa7=>_0x584fa7['groupId']===_0xc8484b);if(!_0xddddc7['length'])return null;const _0xe10997=0x1===_0xddddc7['length']?_0xddddc7[0x0]:this['_sortMarkers'](_0xddddc7)[0x0],_0x1206ba=getEditorFromContext(this['context'])['model']['markers']['get'](_0xe10997['id']);if(!_0x1206ba)return null;return{'modelRange':_0x1206ba['getRange'](),'getElement':()=>this['_findMarkerElementById'](_0xe10997['id'])};}['getContentElementForChange'](_0x420487){const _0x51a171=Array['from'](this['_markers']['values']())['filter'](_0x1eb670=>_0x1eb670['groupId']===_0x420487);if(!_0x51a171['length'])return null;const _0x165ac2=0x1===_0x51a171['length']?_0x51a171[0x0]:this['_sortMarkers'](_0x51a171)[0x0],_0x2585c8=getEditorFromContext(this['context']),_0x39a7ea=_0x2585c8['model']['markers']['get'](_0x165ac2['id']);if(!_0x39a7ea)return null;const _0x32ef0a=_0x39a7ea['getRange'](),_0x1b1102=_0x2585c8['editing']['view']['getDomRoot']();if(!_0x1b1102||!_0x32ef0a)return null;let _0xda6f66=_0x32ef0a['start']['parent'];for(;_0xda6f66['parent']&&'$root'!==_0xda6f66['parent']['name'];)_0xda6f66=_0xda6f66['parent'];if(!_0xda6f66||!_0xda6f66['name'])return null;const _0x3d7a8f=_0x1b1102['querySelector']('[data-marker-id=\x22'+_0x165ac2['id']+'\x22]');if(!_0x3d7a8f)return null;let _0x225a70=null;_0x2585c8['model']['change'](_0x3dcf69=>{_0x225a70=_0x3dcf69['createDocumentFragment'](),_0x3dcf69['append'](_0xda6f66['_clone'](!0x0),_0x225a70);});const _0x18dc20=_0x2585c8['data']['toView'](_0x225a70)['getChild'](0x0);return _0x3d7a8f['closest'](_0x18dc20['name']);}['reactivateMarkers'](_0xb4e94f){const _0x523e1c=this['_getMarkersDataForGroup'](_0xb4e94f);if(!_0x523e1c['length'])return;const _0xdf70a8=Array['from'](this['_activeMarkers'])['sort'](),_0x19fd21=Array['from'](new Set(_0x523e1c['map'](_0x347b69=>_0x347b69['id'])))['sort']();_0xdf70a8['join']('|')!==_0x19fd21['join']('|')&&(this['setAllMarkersAsInactive'](),this['setMarkersInElementAsActive'](_0xb4e94f));}['setMarkersInElementAsActive'](_0x53b788){const _0x2e6b68=this['_getMarkersDataForGroup'](_0x53b788);if(!_0x2e6b68['length'])return;const _0x279489=getEditorFromContext(this['context']),_0x1186aa=new Set(_0x2e6b68['map'](_0x1dbcef=>_0x1dbcef['id'])),_0x591c45=Array['from'](_0x1186aa['values']())['map'](_0x4aec2d=>_0x279489['model']['markers']['get'](_0x4aec2d))['filter'](_0x4328c0=>!!_0x4328c0);_0x1186aa['forEach'](_0x483644=>{this['_activeMarkers']['add'](_0x483644);}),_0x279489['model']['change'](()=>{_0x591c45['forEach'](_0x2f0cb0=>{_0x279489['editing']['reconvertMarker'](_0x2f0cb0);});});}['setAllMarkersAsInactive'](){const _0x35d69f=Array['from'](this['_activeMarkers']);if(!_0x35d69f['length'])return;this['_activeMarkers']['clear']();const _0x2762eb=getEditorFromContext(this['context']),_0x3fb31c=_0x35d69f['map'](_0x196e33=>_0x2762eb['model']['markers']['get'](_0x196e33))['filter'](_0x3b7f38=>!!_0x3b7f38);_0x2762eb['model']['change'](()=>{_0x3fb31c['forEach'](_0x38d5f4=>{_0x2762eb['editing']['reconvertMarker'](_0x38d5f4);});});}['_getPositionLimitingRange'](_0x1ed807,_0x1d2e4d,_0x54d9d0='outside'){if(!_0x1ed807)return null;let _0x5abfad=_0x1ed807['parent'];for(;_0x5abfad&&_0x5abfad['parent']&&'$root'!==_0x5abfad['parent']['name']&&!_0x1d2e4d['model']['schema']['isLimit'](_0x5abfad)&&!_0x1d2e4d['model']['schema']['isBlock'](_0x5abfad);)_0x5abfad=_0x5abfad['parent'];if(!_0x5abfad||!_0x5abfad['name']||'$root'===_0x5abfad['name'])return null;let _0x275501=null;return _0x1d2e4d['model']['change'](_0x20e06b=>{_0x275501='inside'===_0x54d9d0?_0x20e06b['createRangeIn'](_0x5abfad):_0x20e06b['createRangeOn'](_0x5abfad);}),_0x275501;}['_validateMarkers'](_0x1df232,_0x34b27b){const _0x1f4e69=Array['from'](this['_markers']['keys']()),_0x51efe2=new Map();for(const _0x41c981 of _0x1f4e69){const _0x44b54b=_0x1df232['model']['markers']['get'](_0x41c981);if(!_0x44b54b)continue;const _0x554dd3=_0x44b54b['getStart']()['path'][0x0];_0x51efe2['has'](_0x554dd3)||_0x51efe2['set'](_0x554dd3,[]),_0x51efe2['get'](_0x554dd3)['push'](_0x44b54b);}const _0x20febe=new Set();for(const _0xbf8ce2 of _0x1df232['model']['document']['differ']['getChanges']()){let _0x341743=-0x1,_0x1f24c2=null;if('insert'===_0xbf8ce2['type'])_0x1f24c2=new ModelRange(_0xbf8ce2['position'],_0xbf8ce2['position']['getShiftedBy'](_0xbf8ce2['length'])),_0x341743=_0xbf8ce2['position']['path'][0x0];else{if('remove'!==_0xbf8ce2['type'])continue;_0x1f24c2=new ModelRange(_0xbf8ce2['position']),_0x341743=_0xbf8ce2['position']['path'][0x0];}const _0x2ab6a9=_0x51efe2['get'](_0x341743)||[];if(_0x2ab6a9['length']){for(const _0x25c560 of _0x2ab6a9)if(_0x1f24c2['root']['rootName']===_0x25c560['getRange']()['root']['rootName']&&('insert'!==_0xbf8ce2['type']||!_0x1f24c2['containsRange'](_0x25c560['getRange']()))&&(_0x1f24c2['isIntersecting'](_0x25c560['getRange']())||_0x1f24c2['start']['isTouching'](_0x25c560['getRange']()['end'])||_0x1f24c2['end']['isTouching'](_0x25c560['getRange']()['start']))){const _0x18b7c6=this['_parseMarkerName'](_0x25c560['name']);Array['from'](this['_markers']['values']())['filter'](_0x19f900=>_0x19f900['groupId']===_0x18b7c6['groupId'])['forEach'](_0x474079=>_0x20febe['add'](_0x474079['id']));}}}if(_0x20febe['size']){for(const _0x4afa35 of _0x20febe)_0x34b27b['removeMarker'](_0x4afa35);return!0x0;}return!0x1;}['_handleMarkerChanges'](_0x18d3b8){for(const {name:_0x46cebc,data:_0x4c9865}of _0x18d3b8['model']['document']['differ']['getChangedMarkers']()){if(!_0x46cebc['startsWith'](MARKER_PREFIX))continue;const _0x17e7c2=_0x4c9865['oldRange'],_0x3b715f=_0x4c9865['newRange'],_0x39a8a5=_0x17e7c2&&'$graveyard'===_0x17e7c2['root']['rootName'],_0xe0ff2e=_0x3b715f&&'$graveyard'===_0x3b715f['root']['rootName'];if(_0x39a8a5&&_0xe0ff2e)continue;const _0x184399=this['_parseMarkerName'](_0x46cebc);this['_markers']['get'](_0x46cebc)&&(_0xe0ff2e||!_0x3b715f?this['_eventEmitter']['fire']('changeMarkerRemoved',{'markerId':_0x46cebc,'changeId':_0x184399['groupId']}):_0x39a8a5&&_0x3b715f&&this['_eventEmitter']['fire']('changeMarkerRestored',{'markerId':_0x46cebc,'changeId':_0x184399['groupId']}));}}['_parseMarkerName'](_0x593c99){const _0x35a5b7=_0x593c99['split'](':'),_0x2da17c=(_0x35a5b7[0x1]||'')['split']('_');return{'prefix':_0x35a5b7[0x0],'groupId':_0x2da17c[0x0],'suffix':_0x2da17c[0x1]};}['_translateOperationToEditorContent'](_0x1b664d,_0x406e15,_0xa1d107){if('insert'===_0x1b664d['type']){const _0x268ec6=_0x1b664d;return new InsertOperation(this['_changePosition'](_0x406e15['concat'](_0x268ec6['position']['offset']),_0xa1d107),_0x268ec6['nodes'],_0x268ec6['baseVersion']);}if('marker'===_0x1b664d['type']&&_0x1b664d['name']['startsWith']('$markedRemove')){const _0x20c59f=_0x1b664d;return new MarkerOperation(_0x20c59f['name'],_0x20c59f['oldRange'],this['_changeRange'](_0x20c59f['newRange'],_0x406e15['concat'](_0x20c59f['newRange']['start']['offset']),_0x406e15['concat'](_0x20c59f['newRange']['end']['offset']),_0xa1d107),_0x20c59f['_markers'],_0x20c59f['affectsData'],_0x20c59f['baseVersion']);}return _0x1b664d;}['_groupAdjacentOperations'](_0xd9ccb6){if(!_0xd9ccb6['length'])return[];const _0x1bda54=[];let _0x2a2bc1=0x0,_0x54e891=0x0,_0x3f351f=[];for(let _0x4783a9=0x0;_0x4783a9<=_0xd9ccb6['length'];_0x4783a9++){const _0x11202a=_0xd9ccb6[_0x4783a9],_0x222489=_0xd9ccb6[_0x4783a9-0x1];!_0x11202a||_0x222489&&!this['_getOperationEnd'](_0x222489)['isTouching'](this['_getOperationStart'](_0x11202a))?(_0x1bda54['push']({'operations':_0x3f351f,'operationsIsolated':_0x3f351f['map'](_0x3d86a9=>this['_shiftOperation'](_0x3d86a9['clone'](),-_0x54e891)),'groupOffset':_0x2a2bc1}),_0x3f351f=_0x11202a?[_0x11202a]:[],_0x54e891+=_0x2a2bc1,_0x2a2bc1=0x0):_0x3f351f['push'](_0x11202a),_0x11202a&&'insert'===_0x11202a['type']&&(_0x2a2bc1+=_0x11202a['howMany']);}return _0x1bda54;}['_findAdjacentContextDistance'](_0x5210cc,_0x4cb657,_0x4dffd1,_0x2e93b6=0x1){const _0x45f8b0=new ModelTreeWalker({'startPosition':_0x5210cc,'direction':_0x4cb657});let _0x3e92fa=0x0;for(let _0x9ec7e2=0x0;_0x9ec7e2<_0x2e93b6;_0x9ec7e2++){let _0x5411c9=0x0,_0x36aa94=!0x1,_0x5cd2e1='forward'===_0x4cb657?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x3e918b}of _0x45f8b0)if(_0x3e918b['is']('$textProxy')){const _0x192bda=_0x5cd2e1['exec'](_0x3e918b['data']);if(_0x192bda&&_0x192bda['length']){if(_0x5411c9+='forward'===_0x4cb657?_0x192bda['index']+_0x192bda[0x0]['length']:_0x3e918b['data']['length']-_0x192bda['index'],_0x192bda[0x0]['length']!==_0x3e918b['data']['length'])break;_0x36aa94=!0x0,_0x5cd2e1='forward'===_0x4cb657?/^\w+/:/\w+$/;}else{if(_0x36aa94)break;_0x5411c9+=_0x3e918b['offsetSize'];}}else{if(_0x3e918b['is']('element')){_0x4dffd1['isInline'](_0x3e918b)&&!_0x36aa94&&(_0x5411c9+=0x1);break;}}_0x3e92fa+=_0x5411c9,_0x45f8b0['jumpTo'](_0x5210cc['getShiftedBy']('forward'===_0x4cb657?_0x3e92fa:-_0x3e92fa));}return _0x3e92fa;}['_getChangeContext'](_0x125714,_0x1f42ca){const _0x5158ed=getEditorFromContext(this['context'])['model']['schema'],_0x570a7b=this['_findAdjacentContextDistance'](_0x125714,'backward',_0x5158ed,CHANGE_CONTEXT_WORDS_LIMIT),_0x2ba62a=this['_findAdjacentContextDistance'](_0x1f42ca,'forward',_0x5158ed,CHANGE_CONTEXT_WORDS_LIMIT),_0x389cce=_0x125714['getShiftedBy'](-_0x570a7b),_0x494a04=_0x1f42ca['getShiftedBy'](_0x2ba62a);return{'start':_0x389cce,'end':_0x494a04,'hasContentBefore':!_0x389cce['isAtStart'],'hasContentAfter':!_0x494a04['isAtEnd']};}['_insertMarkers'](_0x3f95a6){const _0x1f5182=this['context']['plugins']['get']('AIEditing'),_0x326485=new Set();getEditorFromContext(this['context'])['model']['change'](_0x41f412=>{for(const _0x35402c of _0x3f95a6){const _0x32d2b2=''+MARKER_PREFIX+_0x35402c['type']+':'+_0x35402c['groupId']+'_'+_0x1f5182['_nextDataId'](_0x326485);this['_markers']['set'](_0x32d2b2,{'id':_0x32d2b2,'groupId':_0x35402c['groupId'],'type':_0x35402c['type'],'content':_0x35402c['content']}),_0x41f412['addMarker'](_0x32d2b2,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x41f412['createRange'](_0x35402c['start'],_0x35402c['end'])});}});}['_createGetContextFn'](_0x556560,_0x58c374,_0x4d5eb7){let _0xc93740='';return()=>{if(!_0xc93740){const _0x30e80f=_0x58c374['toView'](_0x556560,{'showSuggestionHighlights':!0x0});let _0x406275=_0x30e80f['getChild'](0x0);if(_0x406275['is']('containerElement')||(_0x406275=_0x30e80f),!_0x406275)return'';let _0x11c183=!0x1;const _0x1c614a=[];for(const _0x2c142a of _0x406275['getChildren']())_0x2c142a['is']('element','span')&&_0x2c142a['hasClass']('ck-ai_review-marker_context-end')&&(_0x11c183=!0x1),_0x11c183&&_0x1c614a['push'](_0x2c142a),_0x2c142a['is']('element','span')&&_0x2c142a['hasClass']('ck-ai_review-marker_context-start')&&(_0x11c183=!0x0);_0x406275['_removeChildren'](0x0,_0x406275['childCount']),_0x4d5eb7?.['ellipsisBefore']&&_0x406275['_appendChild']('…'),_0x406275['_appendChild'](_0x1c614a),_0x4d5eb7?.['ellipsisAfter']&&_0x406275['_appendChild']('…');const _0x4e6fd7=_0x58c374['htmlProcessor']['domConverter']['viewToDom'](_0x30e80f),_0xe179df=_0x58c374['htmlProcessor']['htmlWriter']['getHtml'](_0x4e6fd7);_0xc93740=_0xe179df;}return _0xc93740;};}['_createGetContentFn'](_0x345391,_0xf77b42){let _0x3bafd2='';return()=>(_0x3bafd2||(_0x3bafd2=_0xf77b42['stringify'](_0x345391,{'showSuggestionHighlights':!0x0})),_0x3bafd2);}['_createGetContentUsingDataIdFn'](_0x2f282e,_0x4079eb,_0x1b4271){let _0x343342='';return()=>{if(!_0x343342){const _0x3ca1a0=_0x1b4271['toView'](new ModelDocumentFragment(_0x2f282e)),_0x1efe5c=_0x1b4271['htmlProcessor']['domConverter']['viewToDom'](_0x3ca1a0)['querySelector']('[data-id=\x22'+_0x4079eb+'\x22]');_0x343342=_0x1efe5c?.['outerHTML']||'';}return _0x343342;};}['_findMarkerElement'](_0x194378,_0x3036f9=0x5){let _0x416067=_0x194378,_0x16e594=null;for(let _0x19b957=0x0;_0x19b957<_0x3036f9&&_0x416067;_0x19b957++){if(!_0x416067['className']){_0x416067=_0x416067['parentElement'];continue;}if(!(''+_0x416067['className'])['includes']('ck-ai_review-marker_')){_0x416067=_0x416067['parentElement'];continue;}if(!_0x416067['getAttribute']('data-marker-id'))break;_0x16e594=_0x416067;break;}return _0x16e594;}['_findMarkerElementById'](_0x4a48d9){const _0x526141=getEditorFromContext(this['context']),_0x5a1316=_0x526141['model']['markers']['get'](_0x4a48d9);return _0x5a1316?getMarkerDomElement(_0x526141['editing'],_0x5a1316):null;}['_getMarkersDataForGroup'](_0x1d6804){return Array['from'](this['_markers']['values']())['filter'](_0xe1048b=>_0xe1048b['groupId']===_0x1d6804);}['_getOperationStart'](_0x62518){return'insert'===_0x62518['type']?_0x62518['position']:_0x62518['newRange']['start'];}['_getOperationEnd'](_0x5783af,_0x1504b3=!0x1){return'insert'===_0x5783af['type']?_0x1504b3?_0x5783af['position']:_0x5783af['position']['getShiftedBy'](_0x5783af['howMany']):_0x5783af['newRange']['end'];}['_shiftOperation'](_0x220bde,_0x1c103a){return'insert'===_0x220bde['type']?_0x220bde['position']=_0x220bde['position']['getShiftedBy'](_0x1c103a):'marker'===_0x220bde['type']&&_0x220bde['newRange']&&(_0x220bde['newRange']=new ModelRange(_0x220bde['newRange']['start']['getShiftedBy'](_0x1c103a),_0x220bde['newRange']['end']['getShiftedBy'](_0x1c103a))),_0x220bde;}['_changeOperationOwnerDocument'](_0x1fb790,_0x2379f3){'insert'===_0x1fb790['type']?_0x1fb790['position']=this['_changePositionOwnerDocument'](_0x1fb790['position'],_0x2379f3):'marker'===_0x1fb790['type']&&_0x1fb790['newRange']&&(_0x1fb790['newRange']=this['_changeRangeOwnerDocument'](_0x1fb790['newRange'],_0x2379f3));}['_changePositionOwnerDocument'](_0x597f6d,_0x2163a0){return new ModelPosition(_0x2163a0,_0x597f6d['path']);}['_changeRangeOwnerDocument'](_0x8a0a34,_0x5ea756){return new ModelRange(this['_changePositionOwnerDocument'](_0x8a0a34['start'],_0x5ea756),this['_changePositionOwnerDocument'](_0x8a0a34['end'],_0x5ea756));}['_changePosition'](_0x447b13,_0x27f339){return new ModelPosition(_0x27f339,[..._0x447b13]);}['_changeRange'](_0x4025af,_0x3d07b1,_0x20d224,_0x453adb){return new ModelRange(this['_changePosition'](_0x3d07b1,_0x453adb),this['_changePosition'](_0x20d224,_0x453adb));}['_sortMarkers'](_0x4c3ba1){const _0x2c6593=_0x55625d=>{switch(_0x55625d){case'insert':return 0x0;case'remove-context':return 0x1;case'remove-only':return 0x2;case'remove-text':return 0x3;}};return _0x4c3ba1['sort']((_0x9d97e5,_0x3b8bb3)=>_0x2c6593(_0x9d97e5['type'])-_0x2c6593(_0x3b8bb3['type']));}['_hasSameTopLevelElement'](_0x4364bd,_0x396428){const _0x44eee0=_0x4364bd['getChild'](0x0),_0x29a064=_0x396428['getChild'](0x0);return!(!_0x44eee0||!_0x29a064)&&((!_0x44eee0['is']('element')||!_0x29a064['is']('element')||_0x44eee0['name']===_0x29a064['name'])&&!(_0x44eee0['is']('element')&&!_0x29a064['is']('element')||!_0x44eee0['is']('element')&&_0x29a064['is']('element')));}['_haveSingleTopLevelElement'](_0x4c8335){return 0x1===_0x4c8335['childCount'];}['_haveOnlyInlineContent'](_0x558dfa,_0x2d3728){for(const _0x31361b of _0x558dfa['getChildren']())if(_0x31361b['is']('element')&&!_0x2d3728['isInline'](_0x31361b))return!0x1;return!0x0;}['_upsertDataId'](_0x54f803,_0x20c10f){let _0x110966=_0x54f803['getAttribute'](DATA_ID_MODEL_ATTRIBUTE);return _0x110966||(_0x110966=_0x20c10f(),_0x54f803['_setAttribute'](DATA_ID_MODEL_ATTRIBUTE,_0x110966)),_0x110966;}}class AIReviewCheckResult extends EmitterMixin(){['id'];['contentNew'];['contentInitial'];['documentVersion'];constructor({id:_0x5ac066,contentNew:_0x6e638c,contentInitial:_0x4c7613,documentVersion:_0x39d80d}){super(),this['id']=_0x5ac066,this['contentNew']=_0x6e638c,this['contentInitial']=_0x4c7613,this['documentVersion']=_0x39d80d;}}class AIReviewCheckResultChange extends ObservableMixin(){['id'];['parent'];['_data'];['_editorOperations']=[];constructor(_0x242d0f,_0x8d1092,_0x482edd){super(),this['id']=_0x242d0f,this['parent']=_0x482edd,this['_data']=_0x8d1092,this['set']('isActivated',!0x1),this['set']('isRated',!0x1),this['set']('status','pending'),this['on']('change:status',()=>{'pending'!==this['status']&&this['isActivated']&&(this['isActivated']=!0x1);});}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']=[];['_sourceCheck'];['_documentData'];['_aiConnector'];['_reviewParams'];['_reviewArgs'];['_activeRequest']=null;['_currentError'];['_wasAborted']=!0x1;constructor(_0x21296f,_0x54d838,_0x609273,_0x5db2a3,_0x1d9ae5){super(),this['_sourceCheck']=_0x54d838,this['_documentData']=_0x21296f,this['_aiConnector']=_0x609273,this['_reviewParams']=_0x5db2a3,this['_reviewArgs']=_0x1d9ae5,this['on']('change:status',(_0x5a34d7,_0x4961ee,_0x4ae11f)=>{'aborted'==_0x4ae11f&&(this['_wasAborted']=!0x0),this['fire']('reviewCheckRunUpdated',{'status':_0x4ae11f,'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'](_0x15e5b1=>'pending'===_0x15e5b1['status']);}get['currentError'](){return this['_currentError'];}['updateDocumentData'](_0x987210){this['_documentData']=_0x987210;}async['start'](){this['status']='loading',this['_currentError']=void 0x0;try{this['_activeRequest']=this['_createApiRequest']();const _0x36717a=await this['_activeRequest']['getStream']();this['status']='data';for await(const _0x5860fd of _0x36717a)'unmodified'!==_0x5860fd['data']['operation']&&('error'!==_0x5860fd['data']['operation']?'review-metadata'!==_0x5860fd['event']?this['_addReviewCheckResult'](_0x5860fd['data']['dataId'],_0x5860fd['data']['textDelta']):this['callId']=_0x5860fd['data']['callId']:this['status']='error-chunk');'error-chunk'!==this['status']&&(0x0===this['_results']['size']||0x0===this['_changes']['length']?this['status']='unmodified':this['status']='ready');}catch(_0x1a01b5){this['_currentError']=_0x1a01b5,_0x1a01b5 instanceof Error&&_0x1a01b5['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'](_0x15caa8,_0x7a0bf4){const _0x4bac42=this['_results']['get'](_0x15caa8);if(!_0x4bac42)return;if(0x0===_0x7a0bf4['length'])return;const _0x231856=[];_0x7a0bf4['forEach']((_0x59ec88,_0x3e5a7e)=>{const _0x24b992=new AIReviewCheckResultChange(_0x4bac42['id']+'-'+_0x3e5a7e,_0x59ec88,_0x4bac42);_0x24b992['on']('change:status',()=>{this['fire']('reviewCheckResultChangeStatusUpdated',{'change':_0x24b992,'status':_0x24b992['status']});}),_0x24b992['on']('change:isActivated',()=>{_0x24b992['isActivated']?this['fire']('reviewCheckResultActivated',{'change':_0x24b992}):this['fire']('reviewCheckResultDeactivated',{'change':_0x24b992});}),this['_changes']['push'](_0x24b992),_0x231856['push'](_0x24b992);}),this['fire']('reviewCheckResultReady',{'changes':_0x231856,'result':_0x4bac42,'source':this});}['abort'](){this['_activeRequest']&&(this['_activeRequest']['abortController']['abort'](),this['_activeRequest']=null,this['status']='aborted');}['isChangeActive'](_0x135fdb){const _0x59d81a=this['_changes']['find'](_0x4ceeb3=>_0x4ceeb3['id']===_0x135fdb);return!(!_0x59d81a||'pending'!==_0x59d81a['status']);}['isAnyChangeActivated'](){return this['_changes']['some'](_0x288463=>!0x0===_0x288463['isActivated']);}['getActiveChanges'](){return this['_changes']['filter'](_0x1ea620=>'pending'===_0x1ea620['status']);}['getChangeById'](_0x9e8f12){return this['_changes']['find'](_0x550733=>_0x550733['id']===_0x9e8f12);}['markAllChangesAsAccepted'](){for(const _0xf5b090 of this['_changes'])'pending'===_0xf5b090['status']&&(_0xf5b090['status']='accepted');this['_checkIfFinished']();}['markChangeAsAccepted'](_0x461d0c){const _0x2d26da=this['_changes']['find'](_0x407a50=>_0x407a50['id']===_0x461d0c);_0x2d26da&&'pending'===_0x2d26da['status']&&(_0x2d26da['status']='accepted'),this['_checkIfFinished']();}['markChangeAsRejected'](_0x36c6ff){const _0x548970=this['_changes']['find'](_0x568027=>_0x568027['id']===_0x36c6ff);_0x548970&&'pending'===_0x548970['status']&&(_0x548970['status']='rejected'),this['_checkIfFinished']();}['markChangeAsOutdated'](_0x1ae40f){const _0x4e8f0e=this['_changes']['find'](_0x4e8c64=>_0x4e8c64['id']===_0x1ae40f);_0x4e8f0e&&'pending'===_0x4e8f0e['status']&&(_0x4e8f0e['status']='outdated'),this['_checkIfFinished']();}['markChangeAsPending'](_0x50d13a){const _0x2d00b9=this['_changes']['find'](_0x363d05=>_0x363d05['id']===_0x50d13a);_0x2d00b9&&'outdated'===_0x2d00b9['status']&&(_0x2d00b9['status']='pending'),this['_checkIfFinished']();}['activateChange'](_0x29ce68){this['_changes']['filter'](_0x8dd8a6=>_0x8dd8a6['isActivated']&&_0x8dd8a6['id']!==_0x29ce68)['forEach'](_0x54797d=>{_0x54797d['isActivated']=!0x1;});const _0x38dab5=this['_changes']['find'](_0x55f330=>_0x55f330['id']===_0x29ce68);_0x38dab5&&'pending'===_0x38dab5['status']&&(_0x38dab5['isActivated']=!0x0);}['deactivateChange'](){this['_changes']['filter'](_0x2a17be=>_0x2a17be['isActivated'])['forEach'](_0x8576a6=>{_0x8576a6['isActivated']=!0x1;});}['forceReadyState'](){this['status']='ready';}async['sendRating'](_0x272c92){if('initialized'===this['status']||'loading'===this['status']||'data'===this['status']||this['_wasAborted'])return;if(!this['callId']||0x0===this['_changes']['length'])return;let _0x42a56f;if(_0x272c92){const _0x2f259a=this['_changes']['find'](_0x438c98=>_0x438c98['id']===_0x272c92);if(_0x2f259a&&_0x2f259a['isRated'])return;_0x2f259a&&(_0x42a56f=_0x2f259a['parent']['id'],_0x2f259a['isRated']=!0x0);}const _0x497efb={'positiveCount':this['_changes']['filter'](_0x545742=>'accepted'===_0x545742['status'])['length'],'totalCount':this['_changes']['length']};this['_sendRatingRequest'](_0x497efb,this['callId'],_0x42a56f);}['_addReviewCheckResult'](_0x49c095,_0xdb969a){const _0x594d88=this['_documentData']['elements']['get'](_0x49c095);if(!_0x594d88)return;const _0x46e72a=_0x594d88['getContent']();if(_0x46e72a===_0xdb969a)return;const _0x22af2a=new AIReviewCheckResult({'id':_0x49c095,'contentInitial':_0x46e72a,'contentNew':_0xdb969a,'documentVersion':this['_documentData']['version']});this['_results']['set'](_0x22af2a['id'],_0x22af2a),this['fire']('reviewCheckResultAdded',{'result':_0x22af2a,'source':this});}['_checkIfFinished'](){'finished'===this['status']&&(this['_changes']['filter'](_0x4258ce=>'pending'===_0x4258ce['status'])['length']>0x0&&(this['status']='ready')),'ready'===this['status']&&(0x0===this['_changes']['filter'](_0xd4fa14=>'pending'===_0xd4fa14['status'])['length']&&(this['status']='finished'));}}class AIReviewSystemCheckRun extends AIReviewCheckRun{get['subTitle'](){if(!this['_reviewParams']||0x0===this['_reviewParams']['length'])return'';const _0x43afc1=[];if(this['_reviewParams']['length']>0x0&&this['_sourceCheck']['options'])for(let _0x446730=0x0;_0x446730<this['_reviewParams']['length'];_0x446730++){if(!this['_reviewParams'][_0x446730]||!this['_sourceCheck']['options'][_0x446730])continue;const _0x559ebb=this['_sourceCheck']['options'][_0x446730],_0x244b90=_0x559ebb['data']?.['find'](_0x27e5ca=>_0x27e5ca['id']===this['_reviewParams'][_0x446730]);_0x244b90&&_0x43afc1['push'](_0x244b90['label']);}return _0x43afc1['join'](',\x20');}get['reviewName'](){return this['_composeReviewName']();}['_createApiRequest'](){return this['_aiConnector']['callSystemReview']({'reviewName':this['_composeReviewName'](),'content':this['_documentData']['content'],'args':this['_reviewArgs']});}['_sendRatingRequest'](_0x2a1e90,_0x22928b,_0x35c045){return this['_aiConnector']['upsertAIReviewRating'](this['reviewName'],_0x22928b,_0x2a1e90,_0x35c045);}['_composeReviewName'](){return!this['_reviewParams']||0x0===this['_reviewParams']['length']||this['_sourceCheck']['useArgs']?this['_sourceCheck']['apiId']:[this['_sourceCheck']['apiId'],...this['_reviewParams']]['join']('-');}}class AIReviewCoreController extends ContextPlugin{['_aiConnector'];['_aiReviewCoreUi'];['_aiReviewCoreEditing'];['_aiReviewCheckList'];['_currentReviewCheckRun'];['_changeActivationSource']=null;static get['requires'](){return[AIConnector];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['_initRequiredPlugins'](),this['_aiReviewCheckList']=await this['_getChecksList'](),this['listenTo'](this['_aiReviewCoreUi'],'getReviewCheckList',()=>{this['_aiReviewCoreUi']['setAvailableChecks'](this['_aiReviewCheckList']['checks']);}),this['listenTo'](this['_aiReviewCoreUi'],'runReviewCheck',async(_0x39bd5a,_0x42b8b2)=>{const _0x31c18a=this['_aiReviewCheckList']['getCheckById'](_0x42b8b2['id']);if(_0x31c18a){this['_onReviewCheckRun'](_0x42b8b2),this['_aiReviewCoreEditing']['switchToReadOnly'](),this['_currentReviewCheckRun']=this['_createReviewCheckRun'](_0x42b8b2,_0x31c18a),this['_aiReviewCoreUi']['setCheckResultTitle'](this['_currentReviewCheckRun']['title'],this['_currentReviewCheckRun']['subTitle']),this['_currentReviewCheckRun']['on']('reviewCheckRunUpdated',(_0x23ab0e,_0x1d67b0)=>{switch(_0x1d67b0['status']){case'data':case'loading':this['_aiReviewCoreUi']['showCheckRunResults'](_0x1d67b0);break;case'finished':this['_onCheckRunFinished']();break;case'ready':this['_aiReviewCoreUi']['showActionsWhenResultIsReady']();break;case'unmodified':this['_aiReviewCoreUi']['showNoChangesView']();break;case'error-general':this['_aiReviewCoreUi']['showGeneralResultsErrorView'](),this['_logError'](new CKEditorError('ai-review-mode-check-run-general-error',this,void 0x0,this['_currentReviewCheckRun']?.['currentError']));break;case'error-chunk':this['_aiReviewCoreUi']['showChunkErrorView'](),this['_logError'](new CKEditorError('ai-review-mode-check-run-chunk-error',this,void 0x0,this['_currentReviewCheckRun']?.['currentError']));break;case'aborted':this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['processedResultsCount']>0x0?setTimeout(()=>{this['_currentReviewCheckRun']?.['forceReadyState']();},0x0):this['_onReviewRunLeave'](!0x0);}'ready'!==_0x1d67b0['status']&&'error-chunk'!==_0x1d67b0['status']&&'error-general'!==_0x1d67b0['status']||this['_currentReviewCheckRun']?.['sendRating']();}),this['_currentReviewCheckRun']['on']('reviewCheckResultAdded',(_0x4f0a5e,_0x3535c5)=>{if(!this['_currentReviewCheckRun'])throw new CKEditorError('ai-review-mode-no-current-check-run',this);const _0x264279=this['_diffContent'](_0x3535c5['result']['contentInitial'],_0x3535c5['result']['contentNew']);_0x3535c5['source']['addResultChanges'](_0x3535c5['result']['id'],_0x264279);}),this['_currentReviewCheckRun']['on']('reviewCheckResultReady',(_0x499709,_0x2db939)=>{for(const _0x46937a of _0x2db939['changes'])this['_aiReviewCoreUi']['showCheckRunResult'](_0x46937a);this['_markChangePositionInEditorContent'](_0x2db939['changes'],_0x2db939['source']['documentData']);}),this['_currentReviewCheckRun']['on']('reviewCheckResultChangeStatusUpdated',(_0x1f3503,_0x1c2d9e)=>{this['_aiReviewCoreUi']['updateChangeState'](_0x1c2d9e['change']['id'],_0x1c2d9e['status']);}),this['_currentReviewCheckRun']['on']('reviewCheckResultActivated',(_0x432a24,_0x1c5904)=>{this['_onReviewCheckResultActivated'](_0x1c5904);}),this['_currentReviewCheckRun']['on']('reviewCheckResultDeactivated',()=>{this['_onReviewCheckResultDeactivated']();});try{await this['_currentReviewCheckRun']['start']();}catch(_0x4bf33f){_0x4bf33f instanceof Error&&_0x4bf33f['message']['includes']('ai-request-aborted')||(_0x4bf33f instanceof CKEditorError?this['_logError'](_0x4bf33f):this['_logError'](new CKEditorError('ai-review-mode-check-run-failed',this,void 0x0,_0x4bf33f)));}}else this['_logError'](new CKEditorError('ai-review-mode-source-check-not-found',this,{'checkId':_0x42b8b2['id']}));}),this['listenTo'](this['_aiReviewCoreUi'],'leaveReview',()=>{this['_onReviewRunLeave']();}),this['listenTo'](this['_aiReviewCoreUi'],'leaveReviewCoreResultList',()=>{this['_onReviewRunLeave'](!0x0);}),this['listenTo'](this['_aiReviewCoreUi'],'abortReviewStream',()=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['abort']();}),this['listenTo'](this['_aiReviewCoreUi'],'finishReview',()=>{this['_onReviewRunLeave'](!0x0);}),this['listenTo'](this['_aiReviewCoreUi'],'acceptAllChanges',()=>{if(!this['_currentReviewCheckRun'])return;const _0x1523c4=this['_currentReviewCheckRun']['getActiveChanges']();if(!_0x1523c4['length'])return;this['_aiReviewCoreEditing']['applyChange'](_0x1523c4['map'](_0x41b2b0=>_0x41b2b0['id']));const _0x3ebf94=this['_currentReviewCheckRun'];_0x3ebf94['markAllChangesAsAccepted'](),_0x3ebf94['sendRating']();}),this['listenTo'](this['_aiReviewCoreUi'],'acceptChange',(_0x56c25c,_0x12c78f)=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['isChangeActive'](_0x12c78f['id'])&&(this['_aiReviewCoreEditing']['applyChange']([_0x12c78f['id']]),this['_currentReviewCheckRun']['markChangeAsAccepted'](_0x12c78f['id']),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_currentReviewCheckRun']['sendRating'](_0x12c78f['id']));}),this['listenTo'](this['_aiReviewCoreUi'],'dismissChange',(_0x5ccfd4,_0x5431dc)=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['isChangeActive'](_0x5431dc['id'])&&(this['_aiReviewCoreEditing']['rejectChange'](_0x5431dc['id']),this['_currentReviewCheckRun']['markChangeAsRejected'](_0x5431dc['id']),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_currentReviewCheckRun']['sendRating'](_0x5431dc['id']));}),this['listenTo'](this['_aiReviewCoreUi'],'retryReview',async()=>{this['_currentReviewCheckRun']&&(this['_aiReviewCoreEditing']['clearAllMarkers'](),this['_currentReviewCheckRun']['updateDocumentData'](this['_aiReviewCoreEditing']['getDocumentData']()),await this['_currentReviewCheckRun']['restart']());}),this['listenTo'](this['_aiReviewCoreUi'],'activateChange',(_0x249be2,_0x572d0d)=>{this['_onActivateChange'](_0x572d0d);}),this['listenTo'](this['_aiReviewCoreUi'],'deactivateChange',(_0x304968,_0x33e4e9)=>{this['_onDeactivateChange'](_0x33e4e9);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerClicked',(_0x38f592,_0x5524c3)=>{this['_onChangeMarkerClicked'](_0x38f592,_0x5524c3);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerHovered',(_0x472f92,_0x52d0a4)=>{this['_onChangeMarkerHovered'](_0x472f92,_0x52d0a4);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerBlurred',()=>{this['_onChangeMarkerBlurred']();}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerRemoved',(_0x49b101,_0x2bff86)=>{this['_onChangeMarkerRemoved'](_0x49b101,_0x2bff86);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerRestored',(_0x56f191,_0x5d279d)=>{this['_onChangeMarkerRestored'](_0x56f191,_0x5d279d);});}['_createReviewCheckRun'](_0x426d1d,_0x9b60bf){return new AIReviewSystemCheckRun(this['_aiReviewCoreEditing']['getDocumentData'](),_0x9b60bf,this['_aiConnector'],_0x426d1d['params'],_0x426d1d['args']);}['_onChangeMarkerRemoved'](_0x19b018,_0x4ba0ae){this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['markChangeAsOutdated'](_0x4ba0ae['changeId']);}['_onChangeMarkerRestored'](_0x524cfd,_0x444bb7){this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['markChangeAsPending'](_0x444bb7['changeId']);}['_onCheckRunFinished'](){this['_aiReviewCoreUi']['showReviewCompletedView']();}['_initRequiredPlugins'](){this['_aiConnector']=this['context']['plugins']['get']('AIConnector');}['_onReviewRunLeave'](_0x488851=!0x1){this['_currentReviewCheckRun']&&(this['_currentReviewCheckRun']['hasModifications']||this['_currentReviewCheckRun']['sendRating'](),this['_currentReviewCheckRun']['stopListening'](),this['_currentReviewCheckRun']['abort'](),this['_currentReviewCheckRun']=void 0x0),_0x488851&&this['_aiReviewCoreUi']['showReviewCheckList'](),this['_aiReviewCoreEditing']['clearAllMarkers'](),this['_aiReviewCoreEditing']['switchToEdit'](),this['_changeActivationSource']=null;const _0x4e5512=this['_aiReviewCoreEditing']['getEditor']();_0x4e5512&&_0x4e5512['editing']['view']['change'](_0x44e795=>{const _0x21014a=_0x4e5512['editing']['view']['document']['getRoot']();_0x44e795['removeClass']('ck-ai_review-diff',_0x21014a),_0x44e795['removeClass']('ck-ai_review-highlights',_0x21014a),_0x44e795['removeClass']('ck-ai-translate-mode-content',_0x21014a);});}['_getTranslationWithDefault'](_0x275d8c,_0xf9a03a){const _0x34f68a=getTranslation$i(this['context']['locale'],_0x275d8c);return _0x34f68a===_0x275d8c?_0xf9a03a:_0x34f68a;}['_logError'](_0x599720,_0x240c57=!0x1){logError(_0x599720['message']),_0x240c57||(_0x599720['message']['startsWith']('ai-review-mode-models-unable-to-retrieve')?this['_aiReviewCoreUi']['showGeneralReviewCoreErrorView']():this['_aiReviewCoreUi']['showGeneralResultsErrorView']());}['_scrollToChange'](_0x203ae7){if('content'===this['_changeActivationSource']){const _0x2434e5=this['_aiReviewCoreUi']['getChangeElement'](_0x203ae7);_0x2434e5&&scrollAncestorsToShowTarget(_0x2434e5['closest']('.ck-ai_review__check-run-result')||_0x2434e5);}else{if('panel'===this['_changeActivationSource']){const _0x232504=this['_getChangeContentElement'](_0x203ae7);if(!_0x232504)return;scrollViewportToShowTarget({'target':_0x232504,'viewportOffset':{'top':0x55,'left':0x0,'bottom':0x0,'right':0x0},'ancestorOffset':0x14,'alignToTop':!0x0});}}}}const AI_REVIEW_CHECKS=[{'id':'custom','commandId':'custom','title':'Custom\x20command','description':'Type\x20a\x20custom\x20command\x20to\x20review\x20the\x20content\x20exactly\x20as\x20you\x20need.','isParameterized':!0x0},{'id':'correctness','commandId':'correctness','title':'Correctness','description':'Ensure\x20the\x20text\x20is\x20factually\x20accurate\x20and\x20free\x20of\x20errors.','isParameterized':!0x1},{'id':'clarity','commandId':'clarity','title':'Clarity','description':'Improve\x20the\x20clarity\x20and\x20readability\x20of\x20the\x20text.','isParameterized':!0x1},{'id':'readability','commandId':'readability','title':'Readability','description':'Enhance\x20the\x20overall\x20readability\x20of\x20the\x20text.','isParameterized':!0x1},{'id':'length','commandId':'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':'tone','commandId':'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'}]}]}];class AIReviewCheck{['id'];['commandId'];['title'];['description'];['isParameterized'];['useArgs'];['options'];['args'];get['apiId'](){return this['commandId'];}constructor(_0x543133){this['id']=_0x543133['id'],this['commandId']=_0x543133['commandId'],this['title']=_0x543133['title'],this['description']=_0x543133['description'],this['isParameterized']=_0x543133['isParameterized'],this['useArgs']=_0x543133['useArgs'],this['options']=_0x543133['options'],this['args']=_0x543133['args'];}}class AIReviewCheckList extends ObservableMixin(){['_checks']=[];['setupChecks'](_0x45aff2){this['_checks']=_0x45aff2['map'](_0x57e965=>new AIReviewCheck(_0x57e965));}get['checks'](){return this['_checks'];}['getCheckById'](_0x4dbcc1){return this['checks']['find'](_0x47c9a8=>_0x47c9a8['id']===_0x4dbcc1);}['removeCheckById'](_0x4746ce){this['_checks']=this['_checks']['filter'](_0x215686=>_0x215686['id']!==_0x4746ce);}}class AIReviewCheckCustom extends AIReviewCheck{['_models']=[];['_defaultModel']=null;constructor(_0x557dc9,_0x2bbe0c,_0x45db20){super(_0x557dc9),this['_models']=_0x2bbe0c,this['_defaultModel']=_0x45db20;}get['models'](){return this['_models'];}get['defaultModel'](){return this['_defaultModel'];}}class AIReviewCheckExtra extends AIReviewCheck{['isExtra']=!0x0;['prompt'];['model'];['_defaultModel']=null;constructor(_0x4403a5,_0x1d57ff,_0x512012){super(_0x4403a5),this['prompt']=_0x4403a5['prompt'],this['model']=_0x4403a5['model'],this['model']?this['_defaultModel']=_0x1d57ff['find'](_0x206a4f=>_0x206a4f['id']===this['model'])||null:this['_defaultModel']=_0x512012;}get['defaultModel'](){return this['_defaultModel'];}}class AIReviewModeCheckList extends AIReviewCheckList{['_allModels']=[];['_recommendedModels']=[];['_defaultModel']=null;constructor(_0x3df088,_0x1df13a,_0x19816e){super(),this['_allModels']=_0x3df088,this['_recommendedModels']=_0x1df13a,this['_defaultModel']=_0x19816e;}['setupChecks'](_0x1a0ba5){this['_checks']=_0x1a0ba5['map'](_0x562e10=>!0x0===_0x562e10['isExtra']?new AIReviewCheckExtra(_0x562e10,this['_allModels'],this['_defaultModel']):'custom'===_0x562e10['id']?new AIReviewCheckCustom(_0x562e10,this['_recommendedModels'],this['_defaultModel']):new AIReviewCheck(_0x562e10));}}class AIReviewCustomCheckRun extends AIReviewCheckRun{['_prompt'];['_model'];constructor(_0x49bef8,_0x4f48ee,_0x3a9ef0,_0x58ed5c,_0x2cd82b){super(_0x3a9ef0,_0x58ed5c,_0x2cd82b),this['_prompt']=_0x49bef8,this['_model']=_0x4f48ee;}get['subTitle'](){return this['_prompt'];}['_createApiRequest'](){return this['_aiConnector']['callCustomReview']({'content':this['_documentData']['content'],'prompt':this['_prompt'],'model':this['_model']});}['_sendRatingRequest'](_0x1ffa59,_0x3c4dcc,_0x599cfb){return this['_aiConnector']['upsertCustomAIReviewRating'](_0x3c4dcc,_0x1ffa59,_0x599cfb);}}class AIReviewExtraCheckRun extends AIReviewCustomCheckRun{get['subTitle'](){return'';}set['prompt'](_0x33c5e7){this['_prompt']=_0x33c5e7;}set['model'](_0x42ea05){this['_model']=_0x42ea05;}}class AIReviewModeController extends AIReviewCoreController{static get['pluginName'](){return'AIReviewModeController';}['_isDiffOn']=!0x1;['_hasDefaultAvailableCommands']=!0x1;constructor(_0xe268b7){super(_0xe268b7),this['_hasDefaultAvailableCommands']=!this['context']['config']['get']('ai.review.availableCommands'),this['context']['config']['define']('ai.review.availableCommands',AI_REVIEW_CHECKS['map'](_0x31d1c8=>_0x31d1c8['id'])),this['context']['config']['define']('ai.review.extraCommands',[]);}async['init'](){await super['init'](),this['listenTo'](this['_aiReviewCoreUi'],'toggleDiff',(_0x5c1748,_0x438f98)=>{this['_isDiffOn']=_0x438f98['on'],this['_onDiffChange'](this['_isDiffOn']);});}['_initRequiredPlugins'](){super['_initRequiredPlugins'](),this['_aiReviewCoreUi']=this['context']['plugins']['get']('AIReviewModeUI'),this['_aiReviewCoreEditing']=this['context']['plugins']['get']('AIReviewCoreEditing');}['_createReviewCheckRun'](_0x2ac96a,_0x31777b){return _0x2ac96a['isCustom']?new AIReviewCustomCheckRun(_0x2ac96a['args']['prompt'],_0x2ac96a['args']['model'],this['_aiReviewCoreEditing']['getDocumentData'](),_0x31777b,this['_aiConnector']):_0x31777b['isExtra']?new AIReviewExtraCheckRun(_0x31777b['prompt'],_0x31777b['defaultModel']['id'],this['_aiReviewCoreEditing']['getDocumentData'](),_0x31777b,this['_aiConnector']):new AIReviewSystemCheckRun(this['_aiReviewCoreEditing']['getDocumentData'](),_0x31777b,this['_aiConnector'],_0x2ac96a['params'],_0x2ac96a['args']);}['_onReviewCheckResultActivated'](_0x22fac9){this['_aiReviewCoreUi']['setActiveStateInResults'](_0x22fac9['change']['id']),this['_scrollToChange'](_0x22fac9['change']['id']);const _0x9600a9=this['_aiReviewCoreEditing']['getMarkerElementForChange'](_0x22fac9['change']['id']);if(!_0x9600a9)return;const _0x5381be=this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0x22fac9['change'],()=>_0x9600a9['getElement'](),void 0x0,'click',_0x5381be?.['editing']?.['view']?.['getDomRoot'](),_0x5381be?.['ui']?.['viewportOffset']),this['_aiReviewCoreEditing']['setMarkersInElementAsActive'](_0x22fac9['change']['id']);}['_onReviewCheckResultDeactivated'](){this['_aiReviewCoreUi']['resetActiveStateInResults'](),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_aiReviewCoreEditing']['setAllMarkersAsInactive']();}['_onActivateChange'](_0x35bb10){this['_currentReviewCheckRun']&&'click'===_0x35bb10['uiInteraction']&&(this['_changeActivationSource']='panel',this['_currentReviewCheckRun']['activateChange'](_0x35bb10['id']));}['_onDeactivateChange'](_0x1b66a3){this['_currentReviewCheckRun']&&'balloon'===_0x1b66a3['origin']&&this['_currentReviewCheckRun']['deactivateChange']();}['_onChangeMarkerClicked'](_0x1628ed,_0x527125){if(!this['_currentReviewCheckRun'])return;this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x527125['changeId']);const _0x39e6d1=this['_currentReviewCheckRun']['getChangeById'](_0x527125['changeId']);if(!_0x39e6d1)return;const _0x20a14d=this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0x39e6d1,_0x527125['markerElement'],_0x527125['domEvent'],'click',_0x20a14d?.['editing']?.['view']?.['getDomRoot'](),_0x20a14d?.['ui']?.['viewportOffset']);}['_onChangeMarkerHovered'](_0x4702d9,_0x152894){if(!this['_currentReviewCheckRun'])return;if(this['_currentReviewCheckRun']['isAnyChangeActivated']())return;const _0x1ca57e=this['_currentReviewCheckRun']['getChangeById'](_0x152894['changeId']);if(!_0x1ca57e)return;const _0x596c2b=this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0x1ca57e,_0x152894['markerElement'],_0x152894['domEvent'],'hover',_0x596c2b?.['editing']?.['view']?.['getDomRoot'](),_0x596c2b?.['ui']?.['viewportOffset']);}['_onChangeMarkerBlurred'](){if(!this['_currentReviewCheckRun'])return;this['_currentReviewCheckRun']['isAnyChangeActivated']()||this['_aiReviewCoreUi']['hideChangeBalloon']();}['_getChangeContentElement'](_0x4d5f87){const _0x50fa8c=this['_aiReviewCoreEditing']['getMarkerElementForChange'](_0x4d5f87);return _0x50fa8c?_0x50fa8c['getElement']():null;}['_markChangePositionInEditorContent'](_0x8fee1c,_0xcca63c){this['_aiReviewCoreEditing']['markChangePositionInEditorContent'](_0x8fee1c,_0xcca63c);}['_diffContent'](_0x36888a,_0x5bc1b2){return this['_aiReviewCoreEditing']['diffContent'](_0x36888a,_0x5bc1b2);}['_onReviewCheckRun'](){this['_onDiffChange'](this['_isDiffOn']);}['_onDiffChange'](_0x56934f){const _0x3d56ca=this['_aiReviewCoreEditing']['getEditor']();_0x56934f?this['_aiReviewCoreUi']['hideDiffInBalloon']():this['_aiReviewCoreUi']['showDiffInBalloon'](),_0x3d56ca&&_0x3d56ca['editing']['view']['change'](_0x45ae0d=>{const _0x31c457=_0x3d56ca['editing']['view']['document']['getRoot']();for(const _0x349304 of _0x31c457['getClassNames']())_0x349304['startsWith']('ck-ai_review-')&&_0x45ae0d['removeClass'](_0x349304,_0x31c457);_0x45ae0d['addClass'](_0x56934f?'ck-ai_review-diff':'ck-ai_review-highlights',_0x31c457);});}async['_getChecksList'](){const _0x455884=[...AI_REVIEW_CHECKS,...this['_getExtraChecks']()],_0x2208da=this['context']['config']['get']('ai.review.availableCommands')||[];this['_logErrorForNonExistentChecks'](_0x2208da,_0x455884);let _0x3d60a3=_0x455884;this['_hasDefaultAvailableCommands']||(_0x3d60a3=_0x2208da['map'](_0x34e23e=>_0x455884['find'](_0x2968c3=>_0x2968c3['id']===_0x34e23e))['filter'](_0x1c52ea=>!!_0x1c52ea)),_0x3d60a3=_0x3d60a3['map'](_0x2b7080=>_0x2b7080['isExtra']?_0x2b7080:this['_translateReviewCheck'](_0x2b7080));const _0x3b632b=_0x3d60a3['some'](_0x240566=>_0x240566['isExtra']||'custom'===_0x240566['id']);let _0x57b22c=[],_0x1c5154=[],_0x1f8c9f=null;if(_0x3b632b){const _0xbe6ea9=await this['_getModels']();_0x57b22c=_0xbe6ea9['all'],_0x1c5154=_0xbe6ea9['recommended'],_0x1f8c9f=_0xbe6ea9['default'];}const _0x2ee9b8=new AIReviewModeCheckList(_0x57b22c,_0x1c5154,_0x1f8c9f);return _0x2ee9b8['setupChecks'](_0x3d60a3),_0x3b632b&&this['_filterChecksWithMissingModel'](_0x2ee9b8),_0x2ee9b8;}['_getExtraChecks'](){return(this['context']['config']['get']('ai.review.extraCommands')||[])['map'](_0x13345b=>({'id':_0x13345b['id'],'commandId':_0x13345b['id'],'title':_0x13345b['label'],'description':_0x13345b['description'],'isParameterized':!0x1,'isExtra':!0x0,'prompt':_0x13345b['prompt'],'model':_0x13345b['model']}));}['_logErrorForNonExistentChecks'](_0x296cd7,_0x5d21c6){const _0x4092fd=_0x296cd7['filter'](_0x2e6905=>!_0x5d21c6['some'](_0x52642a=>_0x52642a['id']===_0x2e6905));_0x4092fd['length']&&this['_logError'](new CKEditorError('ai-review-mode-non-existent-commands-used',this,{'commandIds':_0x4092fd['join'](',\x20')}),!0x0);}async['_getModels'](){try{const _0x39fc25=new AIModels({'connector':this['_aiConnector'],'config':this['context']['config']['get']('ai.models'),'locale':this['context']['locale']});return{'all':await _0x39fc25['getAll'](),'recommended':await _0x39fc25['getAvailableModels'](),'default':await _0x39fc25['getDefault']()};}catch(_0x583671){return this['_logError'](new CKEditorError('ai-review-mode-models-unable-to-retrieve',this,void 0x0,_0x583671)),{'all':[],'recommended':[],'default':null};}}['_translateReviewCheck'](_0x56efe8){const _0x4b6ecc='AI_REVIEW_CHECK_'+_0x56efe8['id']['toUpperCase']()['replaceAll']('-','_'),_0x255cfc={..._0x56efe8,'title':this['_getTranslationWithDefault'](_0x4b6ecc+'_TITLE',_0x56efe8['title']),'description':this['_getTranslationWithDefault'](_0x4b6ecc+'_DESCRIPTION',_0x56efe8['description'])};return _0x56efe8['options']&&(_0x255cfc['options']=_0x56efe8['options']['map'](_0xb07527=>({..._0xb07527,'label':this['_getTranslationWithDefault'](_0x4b6ecc+'_OPTIONS_LABEL',_0xb07527['label']||''),'data':_0xb07527['data']?_0xb07527['data']['map'](_0x113b35=>({..._0x113b35,'label':this['_getTranslationWithDefault'](_0x4b6ecc+'_OPTIONS_DATA_'+_0x113b35['id']['toUpperCase'](),_0x113b35['label'])})):void 0x0}))),_0x255cfc;}['_filterChecksWithMissingModel'](_0x37c837){const _0x2f00d0=[];_0x37c837['checks']['forEach'](_0x2ff00a=>{(_0x2ff00a instanceof AIReviewCheckExtra&&!_0x2ff00a['defaultModel']||_0x2ff00a instanceof AIReviewCheckCustom&&!_0x2ff00a['models']['length'])&&_0x2f00d0['push'](_0x2ff00a['id']);}),_0x2f00d0['length']&&_0x2f00d0['forEach'](_0x1446f7=>{_0x37c837['removeCheckById'](_0x1446f7),this['_logError'](new CKEditorError('ai-review-mode-command-unavailable-due-to-missing-model',this,{'commandId':_0x1446f7}),!0x0);});}}class AIReviewMode extends ContextPlugin{static get['requires'](){return[AIReviewModeController,AIReviewModeUI,AIReviewCoreEditing];}static get['pluginName'](){return'AIReviewMode';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class AITranslateCheck extends AIReviewCheck{get['apiId'](){return'translate';}}class AITranslateCheckList extends AIReviewCheckList{['setupChecks'](_0x318ebc){this['_checks']=_0x318ebc['map'](_0x1d2e63=>new AITranslateCheck(_0x1d2e63));}}class AITranslateCheckRun extends AIReviewSystemCheckRun{['_title'];constructor(_0x58aab6,_0x591973,_0x42dedb,_0x278e50,_0xed6db6,_0x4793ab){super(_0x58aab6,_0x591973,_0x42dedb,_0xed6db6,_0x4793ab),this['_title']=_0x278e50;}get['title'](){return this['_title'];}get['subTitle'](){return this['_sourceCheck']['title'];}}class AITranslateController extends AIReviewCoreController{static get['pluginName'](){return'AITranslateController';}constructor(_0x694af3){super(_0x694af3),this['context']['config']['define']('ai.translate.languages',[{'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'}]);}['_onCheckRunFinished'](){this['_onReviewRunLeave'](!0x0);}['_initRequiredPlugins'](){super['_initRequiredPlugins'](),this['_aiReviewCoreUi']=this['context']['plugins']['get']('AITranslateUI'),this['_aiReviewCoreEditing']=this['context']['plugins']['get']('AIReviewCoreEditing');}['_createReviewCheckRun'](_0x1e969d,_0x3860b1){return new AITranslateCheckRun(this['_aiReviewCoreEditing']['getDocumentData'](),_0x3860b1,this['_aiConnector'],getTranslation$i(this['context']['locale'],'AI_REVIEW_CHECK_TRANSLATE_TITLE'),_0x1e969d['params'],_0x1e969d['args']);}['_onReviewCheckResultActivated'](_0x120d5b){this['_aiReviewCoreUi']['setActiveStateInResults'](_0x120d5b['change']['id']),this['_aiReviewCoreEditing']['setMarkersInElementAsActive'](_0x120d5b['change']['id']);}['_onReviewCheckResultDeactivated'](){this['_aiReviewCoreEditing']['setAllMarkersAsInactive'](),this['_aiReviewCoreUi']['resetActiveStateInResults']();}['_onActivateChange'](_0x5a88b2){this['_currentReviewCheckRun']&&('hover'===_0x5a88b2['uiInteraction']&&(this['_changeActivationSource']='panel',this['_currentReviewCheckRun']['activateChange'](_0x5a88b2['id'])),'click'===_0x5a88b2['uiInteraction']&&this['_scrollToChange'](_0x5a88b2['id']));}['_onDeactivateChange'](_0x5d9191){this['_currentReviewCheckRun']&&'panel'===_0x5d9191['origin']&&this['_currentReviewCheckRun']['deactivateChange']();}['_onChangeMarkerClicked'](_0x152288,_0x592371){this['_currentReviewCheckRun']&&(this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x592371['changeId']),this['_scrollToChange'](_0x592371['changeId']));}['_onChangeMarkerHovered'](_0x138cb4,_0x9c46dd){this['_currentReviewCheckRun']&&(this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x9c46dd['changeId']),this['_aiReviewCoreEditing']['reactivateMarkers'](_0x9c46dd['changeId']));}['_onChangeMarkerBlurred'](){this['_currentReviewCheckRun']&&'content'===this['_changeActivationSource']&&(this['_currentReviewCheckRun']['deactivateChange'](),this['_aiReviewCoreEditing']['setAllMarkersAsInactive']());}['_getChangeContentElement'](_0x3bdbd2){return this['_aiReviewCoreEditing']['getContentElementForChange'](_0x3bdbd2);}['_markChangePositionInEditorContent'](_0x2cc72f,_0x8bff5d){this['_aiReviewCoreEditing']['markChangePositionInEditorContent'](_0x2cc72f,_0x8bff5d);}['_diffContent'](_0x4cf304,_0x6fc00b){return this['_aiReviewCoreEditing']['diffContent'](_0x4cf304,_0x6fc00b,!0x0);}['_onReviewCheckRun'](){const _0x14857e=this['_aiReviewCoreEditing']['getEditor']();_0x14857e&&_0x14857e['editing']['view']['change'](_0xa5ad37=>{const _0x296e50=_0x14857e['editing']['view']['document']['getRoot']();for(const _0x25a299 of _0x296e50['getClassNames']())(_0x25a299['startsWith']('ck-ai-review-')||'ck-ai-translate-'===_0x25a299)&&_0xa5ad37['removeClass'](_0x25a299,_0x296e50);_0xa5ad37['addClass']('ck-ai-translate-mode-content',_0x296e50);});}async['_getChecksList'](){const _0x562b74=[],_0x4b3ef5=this['context']['config']['get']('ai.translate.languages')||[];for(const _0x16dd78 of _0x4b3ef5)_0x562b74['push']({'title':_0x16dd78['label'],'id':_0x16dd78['id'],'commandId':_0x16dd78['id'],'description':'','isParameterized':!0x1,'useArgs':!0x0,'args':{'language':_0x16dd78['id']}});const _0x134509=new AITranslateCheckList();return _0x134509['setupChecks'](this['_translateChecks'](_0x562b74)),_0x134509;}['_translateChecks'](_0x4b056b){return _0x4b056b['map'](_0x197c1b=>{const _0x331a2f='AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_'+_0x197c1b['title']['toUpperCase']()['replaceAll']('-','_');return{..._0x197c1b,'title':this['_getTranslationWithDefault'](_0x331a2f,_0x197c1b['title'])};});}}class AITranslateCheckResultsView extends AIReviewCoreUICheckResultsView{constructor(_0x4f3045,_0x35aed4){super(_0x4f3045,_0x35aed4),this['on']('set:isLoading',(_0x2bda4b,_0x36e3fe,_0x492a5b)=>{_0x492a5b&&(this['headerTitle']=getTranslation$i(this['locale'],'AI_TRANSLATE_CHECK_RESULTS_LOADING_TITLE'));}),this['on']('set:isResultReady',(_0x5130c8,_0x526cc0,_0x2d70a7)=>{_0x2d70a7&&(this['headerTitle']=getTranslation$i(this['locale'],'AI_TRANSLATE_CHECK_RESULTS_READY_TITLE'));});}['_createAcceptAllButtonView'](){const _0x236fb5=super['_createAcceptAllButtonView']();return _0x236fb5['set']('label',getTranslation$i(this['locale'],'AI_TRANSLATE_ACCEPT_ALL')),_0x236fb5;}['_createExitReviewButtonView'](){const _0x3a32f3=super['_createExitReviewButtonView']();return _0x3a32f3['set']('label',getTranslation$i(this['locale'],'AI_CHAT_HISTORY_CANCEL')),_0x3a32f3;}}class AITranslateCheckListView extends AIReviewCoreReviewCheckListView{['_setupTemplate'](){const _0x585c0e=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-translate__check-list-wrapper',_0x585c0e['if']('isVisible','ck-hidden',_0x3c1d5f=>!_0x3c1d5f)]},'children':[{'tag':'div','attributes':{'class':['ck-ai-translate__check-list-header']},'children':[{'tag':'h2','children':[{'text':getTranslation$i(this['locale'],'AI_TRANSLATE_CHECK_LIST_HEADER_TITLE')}]},{'tag':'p','children':[{'text':getTranslation$i(this['locale'],'AI_TRANSLATE_CHECK_LIST_HEADER_DESCRIPTION')}]}]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list',_0x585c0e['if']('isVisible','ck-hidden',_0x499d7d=>!_0x499d7d)]},'children':this['_checkViews']}]});}}class AITranslateUI extends AIReviewCoreUI{static get['pluginName'](){return'AITranslateUI';}['createMainView'](){const _0x50a354=this['context']['locale'],_0x36ec8b=new FormHeaderView(_0x50a354,{'label':getTranslation$i(_0x50a354,'AI_REVIEW_CHECK_TRANSLATE_TITLE'),'icon':IconAITranslate$1,'class':'ck-ai-header\x20ck-ai-header_review-translate'}),_0x151bdc=new AIReviewCoreView(_0x50a354,{'header':_0x36ec8b,'list':new AITranslateCheckListView(_0x50a354),'results':new AITranslateCheckResultsView(_0x50a354,{'generalErrorText':getTranslation$i(_0x50a354,'AI_TRANSLATE_GENERAL_ERROR_MESSAGE')}),'completed':new AIReviewCoreReviewCompletedView(_0x50a354,{'headerText':getTranslation$i(_0x50a354,'AI_TRANSLATE_FINISH_HEADER_TITLE'),'emptyResultsText':getTranslation$i(_0x50a354,'AI_TRANSLATE_EMPTY_RESULTS_TEXT'),'buttonText':getTranslation$i(_0x50a354,'AI_TRANSLATE_FINISH_BUTTON_LABEL')})});return _0x151bdc['extendTemplate']({'attributes':{'class':'ck-ai-translate-mode'}}),_0x151bdc;}['registerTab'](){const _0x1074ad=this['context']['plugins']['get']('AITabs');_0x1074ad['view']['on']('activateTab',(_0x2f6262,_0x102ff0)=>{'translate'===_0x102ff0?this['fire']('getReviewCheckList'):this['fire']('leaveReview');}),_0x1074ad['view']['addTab']({'id':'translate','buttonLabel':getTranslation$i(this['context']['locale'],'AI_REVIEW_CHECK_TRANSLATE_TITLE'),'buttonIcon':IconAITranslate$1,'order':0x0,'content':this['_mainView']});}}class AITranslate extends ContextPlugin{static get['requires'](){return[AITranslateController,AITranslateUI,AIReviewCoreEditing];}static get['pluginName'](){return'AITranslate';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class CaseChangeCommand extends Command{['_transformCallback'];constructor(_0x5f4265,_0x95645b){super(_0x5f4265),this['_transformCallback']=_0x95645b;}['execute'](){const _0x2fc210=this['editor']['model'],_0x1ff466=Array['from'](this['_getAffectedRanges']()),_0x70b8fb=Array['from'](_0x2fc210['document']['selection']['getRanges']());_0x2fc210['change'](_0xd4c268=>{for(const _0x1e32b1 of _0x1ff466)this['_modifyContent'](_0x1e32b1,_0xd4c268);_0xd4c268['setSelection'](_0x70b8fb);});}['refresh'](){for(const _0x4e8ad0 of this['_getAffectedRanges']())for(const _0x30f347 of _0x4e8ad0)if(_0x30f347['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x3630fc=this['editor']['model'],_0x53ab6a=_0x3630fc['document']['selection'];if(_0x53ab6a['isCollapsed']){const _0x582f94=this['_findAncestorTextBlock'](_0x53ab6a['getFirstPosition']()['parent']);return _0x582f94?[_0x3630fc['createRangeIn'](_0x582f94)]:[];}return _0x53ab6a['getRanges']();}['_modifyContent'](_0x1c7afc,_0x431e98){for(const _0x261c10 of this['_getElementsAllowingText'](_0x1c7afc)){const _0x4bc298=this['_getElementTextContent'](_0x261c10),_0x40ea56=this['_transformCallback'](_0x4bc298);for(const _0x5e993b of this['_getTextNodesRangeLimited'](_0x261c10,_0x1c7afc))this['_replaceTextNodeData'](_0x5e993b,_0x40ea56,_0x431e98);}}['_findAncestorTextBlock'](_0x5cbbdf){const _0x5c10a0=this['editor']['model']['schema'];if(_0x5cbbdf['is']('element')&&_0x5c10a0['checkChild'](_0x5cbbdf,'$text'))return _0x5cbbdf;const _0x2eae8f=_0x5cbbdf['parent'];return!_0x2eae8f||_0x5c10a0['isLimit'](_0x5cbbdf)?null:this['_findAncestorTextBlock'](_0x2eae8f);}*['_getElementsAllowingText'](_0x2ff1e3){const _0x3a0ec5=new Set();for(const {item:_0x95a61}of _0x2ff1e3['getWalker']()){const _0x40b266=this['_findAncestorTextBlock'](_0x95a61);_0x40b266&&!_0x3a0ec5['has'](_0x40b266)&&(_0x3a0ec5['add'](_0x40b266),yield _0x40b266);}}['_getElementTextContent'](_0x327cad){return Array['from'](_0x327cad['getChildren']())['reduce']((_0x20f4f6,_0x47ee03)=>_0x20f4f6+(_0x47ee03['is']('$text')?_0x47ee03['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x4ac4f3,_0x5c9e37){const _0x55eab9=_0x5c9e37['getIntersection'](this['editor']['model']['createRangeIn'](_0x4ac4f3));if(_0x55eab9){for(const _0x85167b of _0x55eab9['getItems']())_0x85167b['is']('$textProxy')&&_0x85167b['parent']==_0x4ac4f3&&(yield _0x85167b);}}['_replaceTextNodeData'](_0x353414,_0x1cdc74,_0x2ab61f){const _0x28ac9f=_0x1cdc74['substring'](_0x353414['startOffset'],_0x353414['endOffset']);if(_0x28ac9f===_0x353414['data'])return;const _0x4aaa5c=_0x353414['getAttributes']();this['editor']['model']['insertContent'](_0x2ab61f['createText'](_0x28ac9f,_0x4aaa5c),_0x2ab61f['createSelection'](_0x2ab61f['createRangeOn'](_0x353414)));}}function getTranslation$g(_0x9128e,_0x442cbd,..._0x46a8db){const t=_0x9128e['t'];switch(_0x442cbd){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',..._0x46a8db);default:return _0x442cbd;}}class CaseChangeEditing extends Plugin{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3f0b36=this['editor'],_0x39b688=_0x3f0b36['locale']['contentLanguage'],_0x11b1bf=normalizeExcludeWordCallback(_0x3f0b36['config']['get']('caseChange.titleCase.excludeWords')),_0x4c868a={'changeCaseUpper':new CaseChangeCommand(_0x3f0b36,_0x5873b9=>_0x5873b9['toLocaleUpperCase'](_0x39b688)),'changeCaseLower':new CaseChangeCommand(_0x3f0b36,_0x3a1556=>_0x3a1556['toLocaleLowerCase'](_0x39b688)),'changeCaseTitle':new CaseChangeCommand(_0x3f0b36,_0x3c5a63=>capitalizeText(_0x3c5a63,_0x11b1bf,_0x39b688))};for(const [_0x56a0e2,_0xeb7d60]of Object['entries'](_0x4c868a))_0x3f0b36['commands']['add'](_0x56a0e2,_0xeb7d60),_0xeb7d60['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x56a0e2);});this['listenTo'](_0x3f0b36['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x3f0b36['keystrokes']['set']('shift+f3',(_0x46cd28,_0x2bee33)=>{const _0x521f92=_getOptions(this['editor']['locale']),_0x5297a1=_0x521f92[this['_currentCommandIndex']%_0x521f92['length']]['commandName'];_0x3f0b36['execute'](_0x5297a1),this['_currentCommandIndex']++,_0x2bee33();});}['afterInit'](){checkLicense$i(this);}['_announceCaseChangeOperation'](_0x4f845b){const {ui:_0x24c4c7,locale:_0x43022a}=this['editor'],_0x4dc338=_getOptions(_0x43022a)['find'](_0x10db14=>_0x10db14['commandName']===_0x4f845b)['label']['toLowerCase']();_0x24c4c7['ariaLiveAnnouncer']['announce'](getTranslation$g(_0x43022a,'Changed\x20case\x20to\x20%0',_0x4dc338));}}function _getOptions(_0x5520df){return[{'label':getTranslation$g(_0x5520df,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':getTranslation$g(_0x5520df,'lowercase'),'commandName':'changeCaseLower'},{'label':getTranslation$g(_0x5520df,'Title\x20Case'),'commandName':'changeCaseTitle'}];}function capitalizeText(_0x180129,_0x3b9123,_0x2b4579){return replaceWords(_0x180129,(_0x32969d,_0x3857e8,_0x2fab29)=>{const _0x252aa4=_0x32969d['toLocaleLowerCase'](_0x2b4579);return _0x3b9123(_0x252aa4,{'charOffset':_0x3857e8,'wordIndex':_0x2fab29,'blockText':_0x180129})?_0x252aa4:_0x252aa4['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x5e5292=>_0x5e5292['toLocaleUpperCase'](_0x2b4579));});}function replaceWords(_0x1326f9,_0xc15288){let _0x441680='',_0x2441e3=0x0,_0x312dbf=0x0;for(const _0x4ba5f4 of _0x1326f9['matchAll'](/ +/g)){const _0x34796a=_0x4ba5f4['index'],_0x2ee705=_0x1326f9['substring'](_0x2441e3,_0x34796a);_0x2ee705['length']&&(_0x441680+=_0xc15288(_0x2ee705,_0x2441e3,_0x312dbf++)),_0x441680+=_0x4ba5f4[0x0],_0x2441e3=_0x34796a+_0x4ba5f4[0x0]['length'];}const _0x57386a=_0x1326f9['substring'](_0x2441e3);return _0x57386a['length']&&(_0x441680+=_0xc15288(_0x57386a,_0x2441e3,_0x312dbf)),_0x441680;}function normalizeExcludeWordCallback(_0xfb1380=[]){return'function'==typeof _0xfb1380?_0xfb1380:(_0x404eb3,{wordIndex:_0x12acde})=>_0x12acde>0x0&&_0xfb1380['includes'](_0x404eb3);}async function checkLicense$i(_0x2cc80){const _0xf995a3=_0x55816d([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]),_0x1a4da8=window[_0x55816d([0x44,0x61,0x74,0x65])][_0x55816d([0x6e,0x6f,0x77])](),_0x4acd2=_0x2cc80[_0x55816d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ac918=new window[(_0x55816d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14fd18=>{_0x4acd2[_0x55816d([0x6f,0x6e,0x63,0x65])](_0x55816d([0x72,0x65,0x61,0x64,0x79]),_0x14fd18);}),_0x323db8={[_0x55816d([0x6b,0x74,0x79])]:_0x55816d([0x45,0x43]),[_0x55816d([0x75,0x73,0x65])]:_0x55816d([0x73,0x69,0x67]),[_0x55816d([0x63,0x72,0x76])]:_0x55816d([0x50,0x2d,0x32,0x35,0x36]),[_0x55816d([0x78])]:_0x55816d([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]),[_0x55816d([0x79])]:_0x55816d([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]),[_0x55816d([0x61,0x6c,0x67])]:_0x55816d([0x45,0x53,0x32,0x35,0x36])},_0x1901c4=_0x4acd2[_0x55816d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x55816d([0x67,0x65,0x74])](_0x55816d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x23cf42=await(async function(){let _0x470b06,_0x1d2419=null,_0x2a09fc=null;try{if(_0x1901c4==_0x55816d([0x47,0x50,0x4c]))return _0x55816d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x470b06=(function(){const _0x4545fa=_0x1901c4[_0x55816d([0x73,0x70,0x6c,0x69,0x74])](_0x55816d([0x2e]));if(0x3!=_0x4545fa[_0x55816d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x4e3015=_0x4545fa[0x1];return _0xaa8ec5(_0x4e3015);function _0xaa8ec5(_0xcc50c9){const _0x1cb896=_0x5160dd(_0xcc50c9);return _0x1cb896&&_0x2ae1d6()?_0x1cb896:null;function _0x2ae1d6(){const _0x5dad4f=_0x1cb896[_0x55816d([0x6a,0x74,0x69])],_0xa9a396=window[_0x55816d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dad4f[_0x55816d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dad4f[_0x55816d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e876c={..._0x1cb896,[_0x55816d([0x6a,0x74,0x69])]:_0x5dad4f[_0x55816d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5dad4f[_0x55816d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e876c[_0x55816d([0x76,0x63])],_0x26eec8(_0x1e876c)==_0xa9a396;}}}()),!_0x470b06)return _0x55816d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x470b06[_0x55816d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a09fc=function(_0x4840c3,_0x524b26){return new window[(_0x55816d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc37124=>{if(_0x22da71())return _0xc37124(_0x55816d([0x56,0x61,0x6c,0x69,0x64]));_0x5dc6c0(),_0x4acd2[_0x55816d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x55816d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x394ba7=!0x1;const _0x3f00ee=uid();function _0x269cf5(_0x215e5c){return!!_0x215e5c&&(typeof _0x215e5c===_0x55816d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x215e5c===_0x55816d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x215e5c[_0x55816d([0x74,0x68,0x65,0x6e])]===_0x55816d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x215e5c[_0x55816d([0x63,0x61,0x74,0x63,0x68])]===_0x55816d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29bf7e(_0xaa9c46){_0x4e0710(_0xaa9c46)[_0x55816d([0x74,0x68,0x65,0x6e])](_0x2a7b28=>{if(!_0x2a7b28||_0x2a7b28[_0x55816d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x55816d([0x6f,0x6b]))return _0x55816d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x194ebb(_0x26eec8(_0x3f00ee+_0x524b26))!=_0x2a7b28[_0x55816d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x55816d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x55816d([0x56,0x61,0x6c,0x69,0x64]);})[_0x55816d([0x74,0x68,0x65,0x6e])](_0x347178=>(_0x4417be(),_0x347178),()=>{const _0x38284=_0x13a55();return null==_0x38284?(_0x4417be(),_0x55816d([0x56,0x61,0x6c,0x69,0x64])):_0x55816d(_0x1a4da8-_0x38284>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x55816d([0x74,0x68,0x65,0x6e])](_0xc37124)[_0x55816d([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc37124(_0x55816d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x43a831=0x36ee80;function _0x4417be(){const _0x82c29b=_0x55816d([0x6c,0x6c,0x63,0x74,0x2d])+_0x194ebb(_0x26eec8(_0x4840c3)),_0x1f3e86=_0x43a813(_0x194ebb(window[_0x55816d([0x4d,0x61,0x74,0x68])][_0x55816d([0x63,0x65,0x69,0x6c])](_0x1a4da8/_0x43a831)));window[_0x55816d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55816d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x82c29b,_0x1f3e86);}function _0x13a55(){const _0x54e730=_0x55816d([0x6c,0x6c,0x63,0x74,0x2d])+_0x194ebb(_0x26eec8(_0x4840c3)),_0x3bd19b=window[_0x55816d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55816d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54e730);return _0x3bd19b?window[_0x55816d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43a813(_0x3bd19b),0x10)*_0x43a831:null;}function _0x4e0710(_0x40090){return new window[(_0x55816d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x531288,_0x3d40cd)=>{_0x40090[_0x55816d([0x74,0x68,0x65,0x6e])](_0x531288,_0x3d40cd),window[_0x55816d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d40cd,0x1d4c0);});}}_0x4acd2[_0x55816d([0x6f,0x6e])](_0x55816d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42a3ed,_0x44a941)=>{if(_0x44a941[0x0]!=_0x4840c3)return _0xc37124(_0x55816d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44a941[0x1]={..._0x44a941[0x1],[_0x55816d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f00ee};},{[_0x55816d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55816d([0x68,0x69,0x67,0x68])}),_0x4acd2[_0x55816d([0x6f,0x6e])](_0x55816d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ecc86=>{_0x269cf5(_0x3ecc86[_0x55816d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x394ba7=!0x0,_0x29bf7e(_0x3ecc86[_0x55816d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x55816d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55816d([0x6c,0x6f,0x77])}),_0x3ac918[_0x55816d([0x74,0x68,0x65,0x6e])](()=>{_0x394ba7||_0xc37124(_0x55816d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x22da71(){return _0x4acd2[_0x55816d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55816d([0x76,0x69,0x65,0x77])][_0x55816d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x55816d([0x61,0x75,0x74,0x6f]);}function _0x5dc6c0(){_0x4acd2[_0x55816d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55816d([0x76,0x69,0x65,0x77])][_0x55816d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x55816d([0x61,0x75,0x74,0x6f]);}}(_0x470b06[_0x55816d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x470b06[_0x55816d([0x6a,0x74,0x69])]));const _0x13cf14=await(async function(){let _0x13f1ef=!0x0;try{const _0x32c76e=_0x1901c4[_0x55816d([0x73,0x70,0x6c,0x69,0x74])](_0x55816d([0x2e])),[_0x1ff9e8,_0x238a81,_0x47fb0f]=_0x32c76e;return _0x323449(_0x1ff9e8),await _0x275f98(_0x1ff9e8,_0x238a81,_0x47fb0f),_0x13f1ef;}catch{return!0x1;}function _0x323449(_0x2a36a8){const _0x3e49b6=_0x5160dd(_0x2a36a8);_0x3e49b6&&_0x3e49b6[_0x55816d([0x61,0x6c,0x67])]==_0x55816d([0x45,0x53,0x32,0x35,0x36])||(_0x13f1ef=!0x1);}async function _0x275f98(_0x271c46,_0xfa89e1,_0x507b0e){const _0x2eef68=window[_0x55816d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x55816d([0x66,0x72,0x6f,0x6d])](_0x593e3a(_0x507b0e),_0x3f731d=>_0x3f731d[_0x55816d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b518b=new window[(_0x55816d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x55816d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x271c46+_0x55816d([0x2e])+_0xfa89e1),_0x5ef0e1=window[_0x55816d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x55816d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ef0e1)return;const _0x5bfc63=await _0x5ef0e1[_0x55816d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x55816d([0x6a,0x77,0x6b]),_0x323db8,{[_0x55816d([0x6e,0x61,0x6d,0x65])]:_0x55816d([0x45,0x43,0x44,0x53,0x41]),[_0x55816d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x55816d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x55816d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ef0e1[_0x55816d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x55816d([0x6e,0x61,0x6d,0x65])]:_0x55816d([0x45,0x43,0x44,0x53,0x41]),[_0x55816d([0x68,0x61,0x73,0x68])]:{[_0x55816d([0x6e,0x61,0x6d,0x65])]:_0x55816d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5bfc63,_0x2eef68,_0x4b518b)||(_0x13f1ef=!0x1);}}());return _0x13cf14?(function(){const _0x531e65=_0x470b06[_0x55816d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x531e65)return!0x1;if(_0x531e65[_0x55816d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55816d([0x2a])))return!0x0;if(_0x531e65[_0x55816d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55816d([0x43,0x43])))return!0x0;if(_0x531e65[_0x55816d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55816d([0x50,0x50])))return!0x0;return!0x1;}())?(function(){const _0x3e8049=[_0x55816d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x55816d([0x74,0x72,0x69,0x61,0x6c])][_0x55816d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x470b06[_0x55816d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1a4da8/0x3e8:0x69e96100;return _0x470b06[_0x55816d([0x65,0x78,0x70])]<_0x3e8049;}())?_0x55816d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x28a3de=_0x470b06[_0x55816d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x28a3de||0x0==_0x28a3de[_0x55816d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xe16cd8}=new URL(window[_0x55816d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x28a3de[_0x55816d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe16cd8))return!0x0;const _0x3a9d4d=_0xe16cd8[_0x55816d([0x73,0x70,0x6c,0x69,0x74])](_0x55816d([0x2e]));return _0x28a3de[_0x55816d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x7fe00c=>_0x7fe00c[_0x55816d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55816d([0x2a])))[_0x55816d([0x6d,0x61,0x70])](_0x31ecc9=>_0x31ecc9[_0x55816d([0x73,0x70,0x6c,0x69,0x74])](_0x55816d([0x2e])))[_0x55816d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34a3c7=>_0x34a3c7[_0x55816d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3a9d4d[_0x55816d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x55816d([0x6d,0x61,0x70])](_0x5ba1b2=>Array(_0x3a9d4d[_0x55816d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5ba1b2[_0x55816d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x55816d([0x66,0x69,0x6c,0x6c])](_0x5ba1b2[0x0]===_0x55816d([0x2a])?_0x55816d([0x2a]):'')[_0x55816d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5ba1b2))[_0x55816d([0x73,0x6f,0x6d,0x65])](_0x259aab=>_0x3a9d4d[_0x55816d([0x65,0x76,0x65,0x72,0x79])]((_0x259671,_0x21055c)=>_0x259aab[_0x21055c]===_0x259671||_0x259aab[_0x21055c]===_0x55816d([0x2a])));}())?(_0x470b06[_0x55816d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55816d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d2419=function(_0x15f102){const _0x5a2143=new window[(_0x55816d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4be106=>setTimeout(_0x4be106,0x93ecc)),_0x148dc8=_0x3ac918[_0x55816d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x55816d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c93a8=>{let _0x36b6ca=0x0;_0x4acd2[_0x55816d([0x6d,0x6f,0x64,0x65,0x6c])][_0x55816d([0x6f,0x6e])](_0x55816d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x35ccdd,_0x1cedf0)=>{_0x1cedf0[0x0][_0x55816d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x36b6ca++,0x5e8==_0x36b6ca&&(_0x2c93a8(),_0x35ccdd[_0x55816d([0x6f,0x66,0x66])]());});})),_0xe86c7b=[_0x5a2143,_0x148dc8];return window[_0x55816d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x55816d([0x72,0x61,0x63,0x65])](_0xe86c7b)[_0x55816d([0x74,0x68,0x65,0x6e])](()=>_0x15f102);}(_0x55816d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x1d2419&&_0x2a09fc)return new window[(_0x55816d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x110d2f,_0x538242)=>{_0x1d2419[_0x55816d([0x74,0x68,0x65,0x6e])](_0x110d2f,_0x538242),_0x2a09fc[_0x55816d([0x74,0x68,0x65,0x6e])](_0x122582=>{_0x122582!=_0x55816d([0x56,0x61,0x6c,0x69,0x64])&&_0x110d2f(_0x122582);},_0x538242);});return _0x1d2419||_0x2a09fc||_0x55816d([0x56,0x61,0x6c,0x69,0x64]);}())):_0x55816d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x55816d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x55816d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x55816d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x5160dd(_0x32b7b5){return _0x32b7b5[_0x55816d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x55816d([0x65,0x79]))?JSON[_0x55816d([0x70,0x61,0x72,0x73,0x65])](_0x593e3a(_0x32b7b5)):null;}function _0x593e3a(_0x5593bc){return window[_0x55816d([0x61,0x74,0x6f,0x62])](_0x5593bc[_0x55816d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x55816d([0x2b]))[_0x55816d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x55816d([0x2f])));}function _0x26eec8(_0x4e2158){let _0x3fec06=0x1505;function _0x3d261d(_0xfdd004){for(let _0x4bb3f6=0x0;_0x4bb3f6<_0xfdd004[_0x55816d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bb3f6++){const _0x282c4d=_0xfdd004[_0x55816d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4bb3f6);_0x3fec06=(_0x3fec06<<0x5)+_0x3fec06+_0x282c4d,_0x3fec06&=_0x3fec06;}}return function _0x26213a(_0x436a96){Array[_0x55816d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x436a96)?_0x436a96[_0x55816d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x26213a):_0x436a96&&typeof _0x436a96==_0x55816d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x55816d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x436a96)[_0x55816d([0x73,0x6f,0x72,0x74])]()[_0x55816d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xdf3e68,_0x5f275a])=>{_0x3d261d(_0xdf3e68),_0x26213a(_0x5f275a);}):_0x3d261d(window[_0x55816d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x436a96));}(_0x4e2158),_0x3fec06>>>0x0;}function _0x194ebb(_0x3215d0){return _0x3215d0[_0x55816d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x55816d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x55816d([0x30]));}function _0x43a813(_0x47b69b){return _0x47b69b[_0x55816d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x55816d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x55816d([0x6a,0x6f,0x69,0x6e])]('');}function _0x26d982(){}function _0x55816d(_0x47ecae){return _0x47ecae['map'](_0x3a4216=>String['fromCharCode'](_0x3a4216))['join']('');}!function(_0xbe5063){const _0x2e3723=(function(){const _0x2f0913=window[_0x55816d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x55816d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x55816d([0x6e,0x6f,0x77])]())[_0x55816d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x55816d([0x2e]),'');let _0x3f13ab=_0x55816d([0x45]);for(let _0x560f48=0x0;_0x560f48<_0x2f0913[_0x55816d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x560f48+=0x2){let _0x253acc=window[_0x55816d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f0913[_0x55816d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x560f48,_0x560f48+0x2));_0x253acc>=_0xf995a3[_0x55816d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x253acc-=_0xf995a3[_0x55816d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f13ab+=_0xf995a3[_0x253acc];}return _0x3f13ab;}());_0x4acd2[_0x2e3723]=_0x55816d([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xbe5063,_0xbe5063!=_0x55816d([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x3ac918,_0x4acd2[_0x55816d([0x6d,0x6f,0x64,0x65,0x6c])][_0x55816d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x26d982,_0x4acd2[_0x55816d([0x6d,0x6f,0x64,0x65,0x6c])][_0x55816d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x26d982,_0x4acd2[_0x55816d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x55816d([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x23cf42);}class CaseChangeUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x61edfe=this['editor'];this['_registerComponents'](),_0x61edfe['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':getTranslation$g(_0x61edfe['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5d34c0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x244d02;for(const _0x4bfa54 in _0x5d34c0){const _0xe33df=_0x4bfa54,_0x264195=_0x5d34c0[_0xe33df];if('caseChangeLicenseKeyValid'==_0x264195||'caseChangeLicenseKeyInvalid'==_0x264195||'caseChangeLicenseKeyExpired'==_0x264195||'caseChangeLicenseKeyDomainLimit'==_0x264195||'caseChangeLicenseKeyNotAllowed'==_0x264195||'caseChangeLicenseKeyEvaluationLimit'==_0x264195||'caseChangeLicenseKeyUsageLimit'==_0x264195){delete _0x5d34c0[_0xe33df],_0x244d02=_0x264195,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x244d02&&_0x5d34c0['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x244d02&&_0x5d34c0['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x244d02&&_0x5d34c0['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x244d02&&_0x5d34c0['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x244d02&&_0x5d34c0['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x244d02&&_0x5d34c0['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x2604b3=this['editor'],{itemDefinitions:_0x34dbd,commands:_0x379b88}=this['_getListItemDefinitionsAndCommands']();_0x2604b3['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x34dbd,_0x379b88)),_0x2604b3['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x34dbd,_0x379b88));}['_createMenuBarMenuView'](_0x48b49e,_0xd1aa90){const _0x5d044e=this['editor'],_0x43b409=_0x5d044e['locale'],_0x232d23=new MenuBarMenuView(_0x43b409),_0x56d148=new MenuBarMenuListView(_0x43b409);_0x56d148['set']({'ariaLabel':getTranslation$g(_0x43b409,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x232d23['buttonView']),_0x232d23['bind']('isEnabled')['toMany'](_0xd1aa90,'isEnabled',(..._0x26d5ea)=>_0x26d5ea['some'](_0x1d9498=>_0x1d9498));for(const _0x40d9a9 of _0x48b49e){const _0x1dd3ae=new MenuBarMenuListItemView(_0x43b409,_0x232d23),_0x5d2de8=new MenuBarMenuListItemButtonView(_0x43b409);_0x5d2de8['delegate']('execute')['to'](_0x232d23),_0x5d2de8['bind'](...Object['keys'](_0x40d9a9['model']))['to'](_0x40d9a9['model']),_0x5d2de8['on']('execute',()=>{_0x5d044e['execute'](_0x40d9a9['model']['commandName']),_0x5d044e['editing']['view']['focus']();}),_0x1dd3ae['children']['add'](_0x5d2de8),_0x56d148['items']['add'](_0x1dd3ae);}return _0x232d23['panelView']['children']['add'](_0x56d148),_0x232d23;}['_createDropdownView'](_0x5432a5,_0x21ad0b){const _0x3e9bdc=this['editor'],_0x325bfc=createDropdown(_0x3e9bdc['locale']);return this['_setButtonProperties'](_0x325bfc['buttonView']),_0x325bfc['buttonView']['set']({'tooltip':!0x0}),_0x325bfc['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),addListToDropdown(_0x325bfc,_0x5432a5,{'ariaLabel':getTranslation$g(_0x3e9bdc['locale'],'Case\x20change'),'role':'menu'}),_0x325bfc['bind']('isEnabled')['toMany'](_0x21ad0b,'isEnabled',(..._0x288c21)=>_0x288c21['some'](_0x3bb7f0=>_0x3bb7f0)),this['listenTo'](_0x325bfc,'execute',_0x44c657=>{_0x3e9bdc['execute'](_0x44c657['source']['commandName']),_0x3e9bdc['editing']['view']['focus']();}),_0x325bfc;}['_setButtonProperties'](_0xe43441){const _0x10e698=this['editor'];_0xe43441['set']({'label':getTranslation$g(_0x10e698['locale'],'Case\x20change'),'icon':IconCaseChange,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x2b193d=new Collection(),_0x521387=[];for(const _0x112859 of _getOptions(this['editor']['locale'])){const _0x71a56=this['editor']['commands']['get'](_0x112859['commandName']),_0x4bf21d=new UIModel({'commandName':_0x112859['commandName'],'label':_0x112859['label'],'role':'menuitemradio','withText':!0x0});_0x4bf21d['bind']('isEnabled')['to'](_0x71a56,'isEnabled'),_0x2b193d['add']({'type':'button','model':_0x4bf21d}),_0x521387['push'](_0x71a56);}return{'itemDefinitions':_0x2b193d,'commands':_0x521387};}}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(_0x530dac,_0x2716e6){super(),this['model']=_0x530dac,this['model']['_isAttached']=!0x0,this['view']=_0x2716e6,this['listenTo'](_0x2716e6,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x2716e6,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x2716e6,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x2716e6,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x2716e6,'addComment',(_0x510233,_0x231e5d)=>this['addComment'](_0x231e5d)),this['listenTo'](_0x2716e6,'updateComment',(_0x365b5d,_0x5b5c09,_0x3bdb2d)=>this['updateComment'](_0x5b5c09,_0x3bdb2d)),this['listenTo'](_0x2716e6,'removeComment',(_0xd47691,_0x2b24ac)=>this['removeComment'](_0x2b24ac));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x5703e5){this['model']['addComment']({'content':_0x5703e5,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x309ac2,_0x351e43){this['model']['getComment'](_0x309ac2)['update']({'content':_0x351e43});}['removeComment'](_0xb520b8){this['model']['getComment'](_0xb520b8)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function getTranslation$f(_0x32cbfc,_0xa5cdee,_0x3f8f54){const t=_0x32cbfc['t'];switch(_0xa5cdee){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'},_0x3f8f54);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'},_0x3f8f54);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'},_0x3f8f54);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'},_0x3f8f54);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x3f8f54);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'},_0x3f8f54);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'},_0x3f8f54);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'},_0x3f8f54);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(_0x5ea814,_0x5967ce){super(_0x5ea814);const _0x7f0890=uid();this['main']=this['createCollection'](),this['editable']=new InlineEditableUIView(_0x5ea814,_0x5967ce,void 0x0,{'label':()=>getTranslation$f(_0x5ea814,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x5ea814['uiLanguageDirection'],'lang':_0x5ea814['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x7f0890},'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(_0x84ee23){super(_0x84ee23),this['view']=new CommentEditorUIView(_0x84ee23['locale'],_0x84ee23['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x118421=this['editor']['editing']['view'],_0x3da29a=this['view']['editable'],_0x29e047=_0x118421['document']['getRoot']();_0x3da29a['name']=_0x29e047['rootName'],this['view']['render']();const _0x1153f8=_0x3da29a['element'];this['setEditableElement'](_0x3da29a['name'],_0x1153f8),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x118421['attachDomRoot'](_0x1153f8),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(_0x273258={}){function _0x42656a(_0x236af7){return _0x236af7['map'](_0x332029=>String['fromCharCode'](_0x332029))['join']('');}(_0x273258=Object['assign']({},_0x273258))['plugins']||(_0x273258['plugins']=CommentEditor['defaultPlugins']),super(_0x273258),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[_0x42656a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42656a([0x76,0x69,0x65,0x77])][_0x42656a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42656a([0x61,0x75,0x74,0x6f]),this[_0x42656a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x42656a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42656a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x42656a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x42656a([0x6f,0x6b])});}['create'](){const _0x473b09=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x473b09))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x581cc7=>{const _0x271e7b=this['model']['document']['getRoot'](),_0x9506ab=_0x271e7b&&_0x271e7b['getChild'](_0x271e7b['childCount']-0x1);_0x581cc7['setSelection'](_0x9506ab,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x12ea8e=this['editing']['view'],_0x11ac9a=_0x12ea8e['document']['getRoot'](),_0x1aa7d1=_0x11ac9a['getChild'](0x0);_0x11ac9a['childCount']>0x1||!_0x1aa7d1||'p'!=_0x1aa7d1['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(disableViewPlaceholder(_0x12ea8e,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x1aa7d1['placeholder']=this['placeholder']),enableViewPlaceholder({'view':_0x12ea8e,'element':_0x1aa7d1,'keepOnFocus':!0x0}),this['placeholderElement']=_0x1aa7d1);}}class CommentInputView extends View{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x4b0d3f,_0x3133ea={}){super(_0x4b0d3f),this['editor']=null,this['_editorConfig']=_0x3133ea,this['set']('value',_0x3133ea['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',getTranslation$f(_0x4b0d3f,'Reply...')),this['set']('submitLabel',getTranslation$f(_0x4b0d3f,'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',(_0x9734e4,_0x366a09)=>{this['cancelButtonView']['fire']('execute'),_0x366a09();}),this['keystrokes']['set']('Ctrl+Enter',(_0x1a1e77,_0x441851)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x441851());}),this['on']('submit',(_0x2f1fb9,_0x2dafdf)=>{_0x2dafdf['length']>0xfde8?(alert(getTranslation$f(_0x4b0d3f,'TOO_LONG_COMMENT_ALERT',[_0x2dafdf['length'],0xfde8])),_0x2f1fb9['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 _0x29410f=this['editor'];this['element']['insertBefore'](_0x29410f['ui']['element'],this['element']['firstChild']),_0x29410f['model']['document']['on']('change',()=>this['value']=_0x29410f['getData']()),_0x29410f['bind']('placeholder')['to'](this),this['focusables']['add'](_0x29410f['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x433dc3){-0x1===_0x433dc3?(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:_0x1f53ea}=this,_0x30d75a=new ButtonView(_0x1f53ea);return _0x30d75a['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x30d75a['withText']=!0x0,_0x30d75a['bind']('label')['to'](this,'submitLabel'),_0x30d75a['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x30d75a['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x43c701,_0x8095bc)=>!_0x8095bc&&!!_0x43c701['trim']()),_0x30d75a;}['_createCancelButton'](){const {locale:_0x567c2d}=this,_0x2f7681=new ButtonView(_0x567c2d);return _0x2f7681['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x2f7681['label']=getTranslation$f(_0x567c2d,'Cancel'),_0x2f7681['withText']=!0x0,_0x2f7681['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x2f7681;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x29ebcd=>{this['focusTracker']['add'](_0x29ebcd['element']);}),this['focusables']['on']('change',(_0x4a6b2c,_0x379fd8)=>{for(const _0x2fdafc of Array['from'](_0x379fd8['added'])['reverse']())this['focusTracker']['add'](_0x2fdafc['element']);});}}class CommentThreadInputView extends View{constructor(_0x2ed3ac,_0x3761b5,_0x2fe58b){super(_0x2ed3ac),this['commentInputView']=new CommentInputView(_0x2ed3ac,_0x2fe58b),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x3e9a71,_0x127072)=>_0x3e9a71||!!_0x127072),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(_0x2ed3ac,_0x3761b5),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'](_0x2f9362){this['commentInputView']['focus'](_0x2f9362);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x56ff24,_0x26c86e)=>{const {submitButtonView:_0x5ef602,cancelButtonView:_0x5d3874,editor:_0x2d03e1}=this['commentInputView'];[_0x5ef602['element'],_0x5d3874['element'],_0x2d03e1?_0x2d03e1['editing']['view']['getDomRoot']():null]['filter'](_0x3f1f1b=>_0x3f1f1b)['some'](_0xef6fa4=>_0xef6fa4['contains'](_0x26c86e['target']))||(this['focus'](),_0x26c86e['preventDefault']());});}}class CollapsedCommentsView extends View{constructor(_0x4beee2){super(_0x4beee2);const _0x57897b=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x57897b['to']('count',_0x309a40=>getTranslation$f(_0x4beee2,'NUMBER_OF_COMMENTS',_0x309a40))}]});}}class CommentsListView extends View{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x28622d,_0x358edf,_0x186c33){super(_0x28622d);const _0x3c473b=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x358edf['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x358edf,this['_config']=_0x186c33,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':_0x4e2e34=>this['commentViews']['map'](_0x5ca899=>_0x5ca899['element'])['includes'](_0x4e2e34['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new CollapsedCommentsView(_0x28622d),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x96e29e=>_0x96e29e-this['_config']['maxCommentsWhenCollapsed']);for(const _0x45ce6e of _0x358edf['comments'])this['_handleNewCommentModel'](_0x45ce6e);this['_handleInfoComment'](),this['listenTo'](_0x358edf['comments'],'add',(_0x53736c,_0x147dd2)=>{const _0x5b1b33=this['_calculatePosition'](_0x147dd2);this['length']++,this['_handleNewCommentModel'](_0x147dd2,_0x5b1b33),this['refreshVisibleViews']();}),this['listenTo'](_0x358edf['comments'],'remove',(_0x51d2de,_0x96bfa3)=>{this['length']--,this['_handleRemoveCommentModel'](_0x96bfa3),this['refreshVisibleViews']();}),this['listenTo'](_0x358edf,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x358edf,'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',_0x3c473b['if']('length','ck-hidden',_0x113127=>!_0x113127)],'aria-label':getTranslation$f(_0x28622d,'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'](_0x27f1ca){-0x1===_0x27f1ca?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x33603a of this['commentViews'])_0x33603a['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x12c796,_0xd9436e){const _0x914d4=new this['_config']['CommentView'](this['locale'],_0x12c796,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x914d4['viewUid']=_0x12c796['id'],_0x914d4['delegate']('removeComment')['to'](this),_0x914d4['delegate']('updateComment')['to'](this),_0x914d4['delegate']('resolveCommentThread')['to'](this),_0x914d4['delegate']('editorReady')['to'](this),_0x914d4['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x914d4,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x914d4,_0xd9436e);}['_calculatePosition'](_0xe0e8f6){const _0x60aec6=this['_model']['_findOptimalIndex'](_0xe0e8f6);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0xe0e8f6['authoredAt']?_0x60aec6-0x1:_0x60aec6:_0x60aec6-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x7b3e5e={'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'],_0x7b3e5e,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x7b3e5e));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x446c3e){const _0x749a5f=this['commentViews']['remove'](_0x446c3e['id']);this['stopListening'](_0x749a5f),_0x749a5f['isEditMode']&&this['_updateHasDirtyComment'](),_0x749a5f['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x1b199e=>_0x1b199e['isEditMode']);}['_rearrangeCollapse'](){const _0x2647e7=cloneCollection(this['commentViews']),_0xd7814c=this['_collapsedCommentsView']['count'];for(let _0x299f23=0x1;_0x299f23<=_0xd7814c;_0x299f23++)_0x2647e7['remove'](0x1);for(const _0x3932c7 of _0x2647e7)_0x3932c7['collapse']();_0xd7814c>0x0&&_0x2647e7['add'](this['_collapsedCommentsView'],0x1),applyDiffToCollection(_0x5d39f4(Array['from'](this['visibleViews']),Array['from'](_0x2647e7)),this['visibleViews'],_0x2647e7);}['_rearrangeExpand'](){applyDiffToCollection(_0x5d39f4(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1077e5 of this['visibleViews'])_0x1077e5['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x137829=>{this['focusTracker']['add'](_0x137829['element']),this['keystrokes']['listenTo'](_0x137829['element']);}),this['commentViews']['on']('change',(_0x4f638c,_0x15174b)=>{for(const _0x19066f of _0x15174b['removed'])this['focusTracker']['remove'](_0x19066f['element']),this['keystrokes']['stopListening'](_0x19066f['element']);for(const _0x699281 of Array['from'](_0x15174b['added'])['reverse']())this['focusTracker']['add'](_0x699281['element']),this['keystrokes']['listenTo'](_0x699281['element']);});}}function cloneCollection(_0x50fe6a){const _0x3dabed=new Collection();for(const _0x4bd9f9 of _0x50fe6a)_0x3dabed['add'](_0x4bd9f9);return _0x3dabed;}function applyDiffToCollection(_0x3b56bf,_0x1ab804,_0x237ae7){let _0x42f233=0x0;for(const _0x540c3f of _0x3b56bf)switch(_0x540c3f){case'insert':_0x1ab804['add'](_0x237ae7['get'](_0x42f233),_0x42f233),_0x42f233++;break;case'delete':_0x1ab804['remove'](_0x42f233);break;case'equal':_0x42f233++;}}class CommentThreadHeaderContextView extends View{constructor(_0x5c90cf){super(_0x5c90cf);const _0x341260=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x341260['to']('contextValue',_0x35a6c4=>getTranslation$f(_0x5c90cf,'THREAD_CONTEXT_LABEL',_0x35a6c4)),'tabindex':-0x1},'children':[{'text':_0x341260['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}const MAX_CONTENT_LENGTH=0x96;class CommentThreadHeaderView extends View{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x7a394c,_0x4b7145){super(_0x7a394c);const _0x1c38bd=this['bindTemplate'];this['_model']=_0x4b7145,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',_0x35e116=>!!_0x35e116),this['bind']('contextValue')['to'](this['_model'],'context',_0x34b15c=>_0x34b15c&&_0x34b15c['value']?this['_trimContextValue'](_0x34b15c['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',_0x1c38bd['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 _0x670437=new ButtonView(this['locale']);return _0x670437['label']=getTranslation$f(this['locale'],'Reopen'),_0x670437['tooltip']=getTranslation$f(this['locale'],'Reopen'),_0x670437['icon']=IconUndo,_0x670437['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x27cfad=>!_0x27cfad),_0x670437['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4f80fa,_0x673318)=>_0x4f80fa&&_0x673318),_0x670437['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x670437;}['_trimContextValue'](_0x2d34a0){const _0x1e1b35=MAX_CONTENT_LENGTH-0x3;if(_0x2d34a0['length']<MAX_CONTENT_LENGTH)return _0x2d34a0;const _0x15b1de=_0x2d34a0['lastIndexOf']('\x20',_0x1e1b35);return _0x2d34a0['substring'](0x0,_0x15b1de>-0x1?_0x15b1de:_0x1e1b35)+'...';}['_attachContextActions'](){const _0x4ebbf3=this['element']['querySelector']('.ck-context'),_0x4ef00c=_0x4ebbf3['querySelector']('.ck-context__value');this['listenTo'](_0x4ebbf3,'mouseenter',()=>{_0x4ef00c['offsetWidth']<_0x4ef00c['scrollWidth']&&_0x4ebbf3['classList']['add']('overlay');}),this['listenTo'](_0x4ebbf3,'mouseleave',()=>{_0x4ebbf3['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x1fb7b2 of this['focusables'])this['focusTracker']['add'](_0x1fb7b2['element']),this['keystrokes']['listenTo'](_0x1fb7b2['element']);}['_createContextView'](){const _0x3f60b3=new CommentThreadHeaderContextView(this['locale']);return _0x3f60b3['bind']('contextValue')['to'](this),_0x3f60b3;}}class BaseCommentThreadView extends View{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x20ebce,_0x24e087,_0x52daee,_0x11afd8){super(_0x20ebce),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x24e087,this['_localUser']=_0x52daee,this['_config']=_0x11afd8,this['commentThreadHeaderView']=new CommentThreadHeaderView(_0x20ebce,_0x24e087),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new AriaDescriptionView(_0x20ebce,getTranslation$f(_0x20ebce,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new CommentsListView(_0x20ebce,_0x24e087,Object['assign']({'CommentView':this['_config']['CommentView']},_0x11afd8)),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',(_0x18224a,_0x4cae75)=>_0x18224a||!!_0x4cae75),this['bind']('isUnlinked')['to'](_0x24e087,'unlinkedAt',_0x15ffaf=>!!_0x15ffaf),this['bind']('ariaLabel')['to'](this,'length',_0x1beafa=>{const _0x1e715a=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return getTranslation$f(this['locale'],'COMMENT_THREAD_LABEL',[_0x1beafa,_0x1e715a]);}),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':_0x5b78d6=>_0x5b78d6['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 _0x26980d=new CommentThreadInputView(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2c3960=_0x26980d['commentInputView'];return _0x26980d['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x2c3960,'value',(_0x45cd07,_0x21affd,_0x5cbfea,_0x2b0f2a,_0x1b47de)=>!!_0x1b47de||!!_0x2b0f2a&&_0x5cbfea&&!_0x21affd||_0x45cd07&&_0x5cbfea&&!_0x21affd),_0x2c3960['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x43edf1,_0x4247ff,_0x45c364)=>{let _0x148be1;return _0x148be1=_0x45c364&&_0x4247ff?'Reply\x20to\x20reopen\x20discussion...':_0x43edf1?'Reply...':'Write\x20a\x20comment...',getTranslation$f(this['locale'],_0x148be1);}),_0x2c3960['bind']('submitLabel')['to'](this,'length',_0xc885d4=>getTranslation$f(this['locale'],_0xc885d4?'Reply':'Comment')),_0x2c3960['on']('submit',(_0x51fdd5,_0x435f4b)=>{this['fire']('addComment',_0x435f4b),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x2c3960['on']('cancel',()=>{this['focus']();}),_0x2c3960['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x2c3960['on']('cancel',_0x5f31c1=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x5f31c1['stop']());}),this['on']('change:isActive',(_0x6d1f88,_0x313f0f,_0x24a787)=>{_0x24a787||this['length']||_0x2c3960['value']||this['fire']('removeCommentThread');}),_0x26980d;}}class CommentThreadView extends/* #__PURE__ -- @preserve */
ConfirmMixin(BaseCommentThreadView){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x13724a,_0x5c2c26,_0x349321,_0x274ff1){super(_0x13724a,_0x5c2c26,_0x349321,_0x274ff1),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x13724a,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x2aa7ea,_0x8b79e4,_0x4f77eb)=>{_0x4f77eb||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x441148,_0x397405,_0x1a6dc1)=>{_0x1a6dc1&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x2b38bd=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x2b38bd['if']('isActive','ck-thread--active'),_0x2b38bd['if']('isUnlinked','ck-thread--unlinked'),_0x2b38bd['to']('actionIndicator',_0x37ceac=>_0x37ceac?'ck-thread--'+_0x37ceac:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x2b38bd['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 _0x58d26e of this['commentsListView']['commentViews'])_0x58d26e['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x55796e}=this,_0x3e564c=this['commentsListView']['commentViews']['get'](0x0);_0x3e564c===this['_boundFirstCommentView']||_0x3e564c['isSystemComment']||(this['_boundFirstCommentView']=_0x3e564c,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x3e564c,'actionIndicator',_0x14f38b=>'remove'===_0x14f38b?'remove':null),_0x3e564c['placeholder']=getTranslation$f(_0x55796e,'Write\x20a\x20comment...'),_0x3e564c['removeButton']['on']('execute',_0x24ae48=>{_0x24ae48['stop'](),this['showConfirm'](getTranslation$f(_0x55796e,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x3e564c['focus']();}),_0x3e564c['actionBar']['add'](this['resolveButton'],0x0),_0x3e564c['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x453d90=new LateFocusButtonView(this['locale']);return _0x453d90['label']=getTranslation$f(this['locale'],'Resolve'),_0x453d90['tooltip']=getTranslation$f(this['locale'],'Resolve'),_0x453d90['icon']=IconCheck,_0x453d90['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x453d90['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4ab248=>!_0x4ab248),_0x453d90['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x330113,_0x59cf26)=>_0x330113&&!_0x59cf26),_0x453d90['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x453d90;}['_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(_0x3c2f95){super(_0x3c2f95),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x46baf2,_0x29916a,_0x5b01a4)=>{this['element']['innerHTML']=_0x5b01a4;}),this['element']['innerHTML']=this['content'];}}class BaseCommentView extends View{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x20c2b4,_0x5a8141,_0x525a37){super(_0x20c2b4),this['_model']=_0x5a8141,this['_config']=_0x525a37,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x5a8141,'content',_0x5a8141,'authoredAt',(_0x30a899,_0x3b6134)=>getTranslation$f(_0x20c2b4,'COMMENT_ARIA_LABEL',[_0x5a8141['author']['name'],_0x525a37['formatDateTime'](_0x3b6134),new DOMParser()['parseFromString'](_0x30a899,'text/html')['body']['textContent'],_0x5a8141['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new AriaDescriptionView(_0x20c2b4,getTranslation$f(_0x20c2b4,'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':_0x28bb68=>_0x28bb68['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 _0x2a0e13=new CommentContentView(this['locale']);return _0x2a0e13['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x25db51,_0x2a5565)=>_0x2a5565?trimHtml(_0x25db51,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x25db51),_0x2a0e13;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x97f519=new CommentInputView(this['locale'],this['_config']['editorConfig']);return _0x97f519['value']=this['_model']['content'],_0x97f519['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x97f519['submitLabel']=getTranslation$f(this['locale'],'Save'),_0x97f519['on']('submit',(_0x43d980,_0x480fe7)=>{this['fire']('updateComment',this['_model']['id'],_0x480fe7),this['switchToDisplayMode'](),this['focus']();}),_0x97f519['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x97f519['once']('editorReady',()=>{_0x97f519['focus']();}),_0x97f519['createEditor'](),_0x97f519['delegate']('editorReady')['to'](this),_0x97f519['delegate']('editorDestroyed')['to'](this),_0x97f519;}['_setupKeyboardNavigation'](){const _0x4e7c56=this['element'];this['keystrokes']['listenTo'](_0x4e7c56);for(const _0x11acbc of this['focusables'])this['focusTracker']['add'](_0x11acbc['element']),this['keystrokes']['listenTo'](_0x11acbc['element']);this['focusables']['on']('change',(_0x1696b9,_0x3ae4be)=>{for(const _0x2c94d4 of _0x3ae4be['removed'])this['focusTracker']['remove'](_0x2c94d4['element']),this['keystrokes']['stopListening'](_0x2c94d4['element']);for(const _0x3d6659 of _0x3ae4be['added'])this['focusTracker']['add'](_0x3d6659['element']),this['keystrokes']['listenTo'](_0x3d6659['element']);}),this['keystrokes']['set']('enter',(_0xca9fe,_0x2325e6)=>{_0x4e7c56===_0xca9fe['target']&&(this['focusCycler']['focusFirst'](),_0x2325e6());}),this['keystrokes']['set']('esc',(_0x40a331,_0x564416)=>{_0x4e7c56!==_0x40a331['target']&&(this['focus'](),_0x564416());});}}class CommentView extends/* #__PURE__ -- @preserve */
ConfirmMixin(BaseCommentView){['actionBar'];['userView'];constructor(_0x4ee71b,_0x3b313c,_0x731c35){super(_0x4ee71b,_0x3b313c,_0x731c35),this['set']('actionIndicator',null),this['set']('placeholder',getTranslation$f(_0x4ee71b,'Reply...')),this['bind']('authoredAt')['to'](_0x3b313c),this['bind']('resolvedAt')['to'](_0x3b313c),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(_0x4ee71b,_0x3b313c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x3b313c,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x38da2c=this['bindTemplate'],_0x380d95=[{'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':_0x38da2c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x38da2c['to']('authoredAt',_0x4218cb=>this['_config']['formatDateTime'](_0x4218cb))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x38da2c['if']('isEditMode','ck-comment__actions--hidden'),_0x38da2c['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']&&_0x380d95['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x38da2c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x38da2c['if']('isEditMode','ck-comment--edit'),_0x38da2c['if']('isSystemComment','ck-comment--info'),_0x38da2c['to']('actionIndicator',_0x38c9b8=>_0x38c9b8?'ck-comment--'+_0x38c9b8:'')],'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':_0x380d95}]}]};}['_createEditButton'](){const _0x56a1e6=new ButtonView(this['locale']);return _0x56a1e6['label']=getTranslation$f(this['locale'],'Edit'),_0x56a1e6['icon']=IconPencil,_0x56a1e6['withText']=!0x0,_0x56a1e6['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x56a1e6['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1234bc=>!_0x1234bc),_0x56a1e6['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x56a1e6['on']('execute',()=>this['switchToEditMode']()),_0x56a1e6;}['_createRemoveButton'](){const _0x10c0b2=new ButtonView(this['locale']);return _0x10c0b2['label']=getTranslation$f(this['locale'],'Remove'),_0x10c0b2['icon']=IconRemoveComment,_0x10c0b2['withText']=!0x0,_0x10c0b2['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x10c0b2['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x36ba3d=>!_0x36ba3d),_0x10c0b2['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x10c0b2['on']('execute',()=>{this['showConfirm'](getTranslation$f(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x10c0b2;}['_createDropdown'](){const _0x4ba5f8=createDropdown(this['locale'],LateFocusDropdownButtonView),_0xea9c9=_0x4ba5f8['panelView']['children'],_0x2bd8fe=new ListView(this['locale']),_0x124e10=_0x4ba5f8['bindTemplate'];focusChildOnDropdownOpen(_0x4ba5f8,()=>this['items']['find'](_0x5d3e8b=>_0x5d3e8b['isVisible'])),_0x4ba5f8['extendTemplate']({'attributes':{'class':[_0x124e10['if']('isVisible','ck-hidden',_0x9b3d7f=>!_0x9b3d7f)]}});const _0x53d5ba=(_0x3829c4,_0x1e6b93=-0x1)=>{const _0x594673=new ListItemView(this['locale']);_0x594673['children']['add'](_0x3829c4);const _0x15aedf=_0x1e6b93>-0x1?_0x1e6b93:_0x2bd8fe['items']['length'];_0x2bd8fe['items']['add'](_0x594673,_0x15aedf);const _0x21e8e0=Array['from'](this['items']);_0x4ba5f8['unbind']('isEnabled','isVisible'),_0x4ba5f8['bind']('isEnabled')['toMany'](_0x21e8e0,'isEnabled',(..._0x1ab2dd)=>_0x1ab2dd['some'](_0x10be79=>_0x10be79)),_0x4ba5f8['bind']('isVisible')['toMany'](_0x21e8e0,'isVisible',(..._0x4f1de3)=>_0x4f1de3['some'](_0x5e384e=>_0x5e384e));};_0x4ba5f8['panelPosition']='sw',_0x4ba5f8['buttonView']['set']({'label':getTranslation$f(this['locale'],'Show\x20more\x20items'),'icon':IconThreeVerticalDots});for(const _0x977b47 of this['items'])_0x53d5ba(_0x977b47);return _0xea9c9['add'](_0x2bd8fe),_0x4ba5f8['listenTo'](this['items'],'add',(_0x314ee8,_0x4560f4,_0x59fea9)=>{_0x53d5ba(_0x4560f4,_0x59fea9);}),_0x4ba5f8['listenTo'](this['items'],'remove',(_0xe8e8aa,_0x48e2ae,_0x3910b9)=>{_0x2bd8fe['items']['remove'](_0x3910b9);}),_0x4ba5f8;}['_attachActions'](_0x4494ef,_0x4ac7d0){const _0x29b34d=_0x4494ef&&_0x4494ef['element'];_0x29b34d&&(this['listenTo'](_0x29b34d,'mouseenter',()=>this['actionIndicator']=_0x4ac7d0),this['listenTo'](_0x29b34d,'focus',()=>this['actionIndicator']=_0x4ac7d0),this['listenTo'](_0x29b34d,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x29b34d,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x523331=super['_createCommentInputView']();return _0x523331['bind']('placeholder')['to'](this),_0x523331;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function createMutationObserver(_0x3297fd){const _0x358851=throttle$1(_0x3297fd,0x1e),_0x1375fd=new MutationObserver(_0xb11756=>{for(const _0x394b43 of _0xb11756)('attributes'==_0x394b43['type']&&'class'==_0x394b43['attributeName']||'childList'==_0x394b43['type']||'characterData'==_0x394b43['type'])&&_0x358851();});return{'attach'(_0x25485c){_0x1375fd['observe'](_0x25485c,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x1375fd['disconnect'](),_0x358851['cancel']();}};}class AnnotationView extends View{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x1995b2,_0x2aa223){super(_0x1995b2),this['id']=uid(),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['keystrokes']['set']('Esc',(_0x32aa69,_0x3faa34)=>this['fire']('Esc',_0x3faa34)),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'](_0x2aa223),this['mainView']=_0x2aa223;const _0x3e2aa6=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x3e2aa6['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 _0x274de4=this['element']['clientHeight'];_0x274de4&&(this['height']=_0x274de4);}}let Annotation$1=class e extends/* #__PURE__ -- @preserve */
ObservableMixin(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x9c77fd,target:_0x4ae0a8,type:_0x1fa8cc,isVisible:_0x329e69=!0x0}){super(),this['view']=_0x9c77fd,this['view']['element']||this['view']['render'](),this['_type']=_0x1fa8cc,this['_target']=_0x4ae0a8,e['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new Collection([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x45f994,_0x39574a)=>{this['view']['focusTracker']['add'](_0x39574a);}),this['focusableElements']['on']('remove',(_0x19ffe7,_0x18670e)=>{this['view']['focusTracker']['remove'](_0x18670e);}),this['set']('isVisible',_0x329e69);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x447dac=this['_getNormalizedTarget']();return e['_assertCorrectTarget'](_0x447dac),_0x447dac;}get['targetRect'](){const _0x43cc23=this['target'];if(null===_0x43cc23)return null;if(_0x43cc23 instanceof Rect)return _0x43cc23;const _0x1bc93b=_0x43cc23['filter'](_0x4c0c24=>isDomElementVisible(_0x4c0c24));return 0x0===_0x1bc93b['length']?null:new Rect(_0x1bc93b[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x553c35){this['view']['isActive']=_0x553c35,this['view']['mainView']['isActive']=_0x553c35;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x22a155){if(!(null===_0x22a155||_0x22a155 instanceof Rect||Array['isArray'](_0x22a155)&&_0x22a155['every'](_0x5738fa=>isElement$1(_0x5738fa))))throw new CKEditorError('annotation-invalid-target',null,{'target':_0x22a155});}['_getNormalizedTarget'](){const _0x4a6c81='function'==typeof this['_target']?this['_target']():this['_target'];return isElement$1(_0x4a6c81)?[_0x4a6c81]:_0x4a6c81;}};function isElement$1(_0xe7ece4){return null!==_0xe7ece4&&'object'==typeof _0xe7ece4&&'nodeType'in _0xe7ece4&&0x1===_0xe7ece4['nodeType'];}function isDomElementVisible(_0x1fcd3d){if(_0x1fcd3d['offsetParent'])return!0x0;return!!_0x1fcd3d['getClientRects']()['item'](0x0);}class AnnotationCollection extends Collection{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x3c1880=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new FocusTracker(),this['_focusTracker']['on']('change:isFocused',(_0x4834e8,_0x4fff0e,_0x2955b3)=>{_0x2955b3||this['fire']('blur');});for(const _0x3cf0be of _0x3c1880)this['add'](_0x3cf0be);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x575625){if(this['has'](_0x575625))throw new CKEditorError('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x575625['innerView'],_0x575625),this['_viewToAnnotation']['set'](_0x575625['view'],_0x575625);for(const _0x3f6187 of _0x575625['focusableElements'])this['_focusTracker']['add'](_0x3f6187);this['listenTo'](_0x575625['focusableElements'],'add',(_0x30fd6e,_0x38278d)=>{this['_focusTracker']['add'](_0x38278d);}),this['listenTo'](_0x575625['focusableElements'],'remove',(_0x5bedeb,_0x5d28ab)=>{this['_focusTracker']['remove'](_0x5d28ab);}),this['listenTo'](_0x575625['view']['focusTracker'],'change:isFocused',(_0x55966b,_0x2214c0,_0x12dd8a)=>{_0x12dd8a&&this['fire']('focus',_0x575625);}),_0x575625['updateTargetRect']();const _0xb234e7=this['_getOrderInContent'](_0x575625['view']['targetRect']);return super['add'](_0x575625,_0xb234e7);}['remove'](_0x434029){if(!this['has'](_0x434029))throw new CKEditorError('annotationcollection-not-existing-item',null);this['stopListening'](_0x434029['view']['focusTracker']),this['stopListening'](_0x434029['focusableElements']);for(const _0x230bd5 of _0x434029['focusableElements'])this['_focusTracker']['remove'](_0x230bd5);return this['_viewToAnnotation']['delete'](_0x434029['view']),this['_innerViewToAnnotation']['delete'](_0x434029['innerView']),super['remove'](_0x434029);}['getByInnerView'](_0x2dae32){return this['_innerViewToAnnotation']['get'](_0x2dae32);}['getByView'](_0x1a415e){return this['_viewToAnnotation']['get'](_0x1a415e);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x56dacf of this)_0x56dacf['updateTargetRect']();this['_sort']();}['_sort'](){const _0x55bd59=Array['from'](this)['sort']((_0x11184b,_0x376af7)=>elementOffsetComparator(_0x11184b['view']['targetRect'],_0x376af7['view']['targetRect']));for(let _0x1ac650=_0x55bd59['length']-0x1;_0x1ac650>0x0;_0x1ac650--){const _0x37840d=_0x55bd59[_0x1ac650];_0x1ac650!==this['getIndex'](_0x37840d)&&(this['remove'](_0x37840d),this['add'](_0x37840d));}}['_getOrderInContent'](_0x52a583){let _0x515039=0x0;if(!_0x52a583)return this['length'];for(const _0x33d03f of this){const _0x5453e5=_0x33d03f['view']['targetRect'];if(_0x5453e5){if(elementOffsetComparator(_0x52a583,_0x5453e5)<0x0)return _0x515039;_0x515039++;}}return _0x515039;}}function bindAnnotationCollections({source:_0x5212cf,target:_0x93002e,filter:_0x129ef9}){for(const _0x48dec2 of _0x5212cf)_0x129ef9(_0x48dec2)&&_0x93002e['add'](_0x48dec2);_0x93002e['listenTo'](_0x5212cf,'add',(_0x5d3fbc,_0x30fd8d)=>{_0x129ef9(_0x30fd8d)&&_0x93002e['add'](_0x30fd8d);}),_0x93002e['listenTo'](_0x5212cf,'remove',(_0xbb14da,_0x545734)=>{_0x93002e['has'](_0x545734)&&_0x93002e['remove'](_0x545734);});}function elementOffsetComparator(_0x16b446,_0x104573){if(null===_0x16b446&&null===_0x104573)return 0x0;if(null===_0x16b446)return-0x1;if(null===_0x104573)return 0x1;const _0x34fd30=_0x16b446['top']-_0x104573['top'];return 0x0==_0x34fd30?_0x16b446['left']-_0x104573['left']:_0x34fd30;}class Annotations extends ContextPlugin{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19f424){if(super(_0x19f424),this['collection']=new AnnotationCollection(),this['_visibleAnnotations']=new AnnotationCollection(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x19f424 instanceof Editor){const _0x35ad08=_0x19f424['locale'];_0x19f424['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':getTranslation$f(_0x35ad08,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':getTranslation$f(_0x35ad08,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':getTranslation$f(_0x35ad08,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':getTranslation$f(_0x35ad08,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':getTranslation$f(_0x35ad08,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':getTranslation$f(_0x35ad08,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':getTranslation$f(_0x35ad08,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x2b3fc6){this['collection']['add'](_0x2b3fc6);}['remove'](_0x36276e){this['collection']['remove'](_0x36276e),_0x36276e['destroy']();}['refreshVisibility'](){for(const _0xd7332f of this['collection'])_0xd7332f['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x2dfd7d){return this['collection']['getByInnerView'](_0x2dfd7d);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x24c7e6 of this['collection'])_0x24c7e6['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x540860){this['fire']('_activateAnnotation',_0x540860);}['createAnnotation'](_0x209e50){return new Annotation$1(_0x209e50);}['createAnnotationView'](_0x5d6f09,_0xb4c012){return new AnnotationView(_0x5d6f09,_0xb4c012);}['_addActiveAnnotation'](_0x5d18f2){const _0x5932b2=new Set(this['activeAnnotations']);_0x5932b2['add'](_0x5d18f2),this['activeAnnotations']=_0x5932b2;}['_removeActiveAnnotation'](_0x1bd40a){const _0x368b86=new Set(this['activeAnnotations']);_0x368b86['delete'](_0x1bd40a),this['activeAnnotations']=_0x368b86;}['_bindAnnotationsToVisibleAnnotations'](){const _0x3cf092=this['collection'],_0x547e2b=this['_visibleAnnotations'];function _0x32692f(_0x7ff657){const _0x5f319d=_0x7ff657['source'];_0x5f319d['isVisible']&&!_0x547e2b['has'](_0x5f319d)?_0x547e2b['add'](_0x5f319d):!_0x5f319d['isVisible']&&_0x547e2b['has'](_0x5f319d)&&_0x547e2b['remove'](_0x5f319d),_0x5f319d['view']['focusTracker']['remove'](_0x5f319d['view']['element']),_0x5f319d['view']['focusTracker']['add'](_0x5f319d['view']['element']);}this['listenTo'](_0x3cf092,'add',(_0x3a1fb3,_0x3abd0c)=>{_0x3abd0c['isVisible']&&_0x547e2b['add'](_0x3abd0c),this['listenTo'](_0x3abd0c,'change:isVisible',_0x32692f);}),this['listenTo'](_0x3cf092,'remove',(_0xc37244,_0x1b7ce6)=>{_0x547e2b['has'](_0x1b7ce6)&&_0x547e2b['remove'](_0x1b7ce6),this['stopListening'](_0x1b7ce6,'change:isVisible',_0x32692f);});}['_setupEnterAnnotationKeystroke'](){const _0x5b80d8=_0x28ea8b=>{_0x28ea8b['on']('ready',()=>{_0x28ea8b['keystrokes']['set'](FOCUS_ANNOTATION_KEYSTROKE,(_0x441fef,_0x9aa68a)=>{const _0xcbc2e=first(this['activeAnnotations']['values']());_0xcbc2e&&(_0xcbc2e['view']['focus'](),_0x9aa68a());});});};this['context']instanceof Editor?_0x5b80d8(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x25069b,_0x4d7c64)=>{_0x5b80d8(_0x4d7c64);});}['_setupEscapeAnnotationHandling'](){const _0x228f98=_0x3370f4=>{const _0x5746c5=_0x3370f4['source'],_0x8f74ac=[];let _0x4c69cf;if(Array['isArray'](_0x5746c5['target'])){_0x4c69cf=_0x5746c5['target'][0x0],this['context']instanceof Editor?_0x8f74ac['push'](this['context']):this['context']['editors']&&_0x8f74ac['push'](...this['context']['editors']);for(const _0x31f5a7 of _0x8f74ac)for(const _0x1c42aa of _0x31f5a7['editing']['view']['domRoots']['values']())if(_0x1c42aa['contains'](_0x4c69cf))return void _0x31f5a7['editing']['view']['focus']();_0x4c69cf['focus']();}};this['listenTo'](this['collection'],'add',(_0x1a4d41,_0x70dbf7)=>{this['listenTo'](_0x70dbf7,'escape',_0x228f98,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x1368dc,_0x4503e1)=>{this['stopListening'](_0x4503e1,'escape',_0x228f98);});}}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(_0x796716){super(_0x796716),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x453671=this['context']['config'];_0x453671['define']('comments.maxCommentsWhenCollapsed',0x2),_0x453671['define']('comments.maxThreadTotalWeight',0x1f4),_0x453671['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x453671['define']('comments.CommentThreadView',CommentThreadView),_0x453671['define']('comments.CommentView',CommentView),_0x453671['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x18cd92=this['context']['plugins']['get'](Annotations);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x43c083,_0x151ebe)=>this['_addCommentThread'](_0x151ebe)),this['on']('submitCommentThread',(_0x43c17d,_0x2db21a)=>this['_submitCommentThread'](_0x2db21a)),this['on']('resolveCommentThread',(_0x59ccbf,_0x391c34)=>this['_resolveCommentThread'](_0x391c34)),this['on']('resolveCommentThread',(_0x5e4cf4,_0x7c8c85)=>this['_updateActiveAnnotation'](_0x7c8c85),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x1b6070,_0x3745a1)=>this['_reopenCommentThread'](_0x3745a1)),this['on']('reopenCommentThread',(_0x17d9cb,_0x270ef8)=>this['_updateActiveAnnotation'](_0x270ef8),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x5e78d5,_0x4661d8)=>this['_removeCommentThread'](_0x4661d8)),this['on']('updateCommentThread',(_0x47123b,_0x1336ab)=>this['_updateCommentThread'](_0x1336ab)),this['on']('updateCommentThread',(_0x56fc91,_0x74613a)=>this['_updateActiveAnnotation'](_0x74613a),{'priority':'lowest'}),this['on']('addComment',(_0x28bf91,_0x1c65c9)=>this['_addComment'](_0x1c65c9)),this['on']('updateComment',(_0x56c8ae,_0x2dcd1b)=>this['_updateComment'](_0x2dcd1b)),this['on']('removeComment',(_0x34e0cd,_0x255017)=>this['_removeComment'](_0x255017)),this['on']('addComment',(_0x311002,{threadId:_0x1be288,isFromAdapter:_0x141f05})=>{if(_0x141f05)return;const _0x1293ae=this['getCommentThread'](_0x1be288),_0x48f001=_0x1293ae&&this['_threadToController']['get'](_0x1293ae);_0x48f001&&_0x48f001['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x18cd92,'change:activeAnnotations',(_0x640120,_0x466413,_0x472d6b)=>{const _0x1b59a6=Array['from'](_0x472d6b)['map'](_0x4844c7=>this['_viewToController']['get'](_0x4844c7['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x1b59a6?_0x1b59a6['model']:null;});}set['adapter'](_0x576605){if(this['_adapter'])throw new CKEditorError('commentsrepository-adapter-already-set');this['_adapter']=_0x576605;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x4e38c2=noChannel,threadId:_0x6e6ab4=uid(),comments:_0x56055f=[],unlinkedAt:_0x240b7a=null,resolvedAt:_0x450b39=null,resolvedBy:_0x195406=null,target:_0x5ce878=null,context:_0x453ef7=null,attributes:_0x5d21df={},isResolvable:_0x4c9575=!0x0,isSubmitted:_0x15612b=!0x1,isFromAdapter:_0x283f3f=!0x1}={}){return this['fire'](toEventName('addCommentThread',_0x4e38c2),{'channelId':_0x4e38c2,'threadId':_0x6e6ab4,'comments':_0x56055f,'unlinkedAt':_0x240b7a,'resolvedAt':_0x450b39,'resolvedBy':_0x195406,'target':_0x5ce878,'context':_0x453ef7,'attributes':_0x5d21df,'isFromAdapter':_0x283f3f,'isResolvable':_0x4c9575,'isSubmitted':_0x15612b}),this['getCommentThread'](_0x6e6ab4);}['openNewCommentThread']({channelId:_0x39b63c=noChannel,threadId:_0x3d8508=uid(),target:_0x51a64b,context:_0x10cc26=null,isResolvable:_0x494c61=!0x0}){if(this['_readOnlyChannels']['has'](_0x39b63c)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x51a64b)throw new CKEditorError('commentsrepository-missing-target');const _0x13d322=this['addCommentThread']({'channelId':_0x39b63c,'threadId':_0x3d8508,'target':_0x51a64b,'context':_0x10cc26,'isResolvable':_0x494c61});if(!_0x13d322)return null;const _0x1eb1a7=this['_threadToController']['get'](_0x13d322),_0x3f61fd=_0x1eb1a7['view']['commentThreadInputView']['commentInputView'],_0x5cf3b8=this['context']['plugins']['get'](Annotations),_0x263f9c=_0x5cf3b8['getByInnerView'](_0x1eb1a7['view']);return _0x5cf3b8['activate'](_0x263f9c),_0x3f61fd['once']('editorReady',()=>_0x3f61fd['focus']()),_0x13d322;}['hasCommentThread'](_0x173d43){if('string'!=typeof _0x173d43)throw new CKEditorError('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x173d43);}['updateCommentThread']({channelId:_0xfc1d56=noChannel,threadId:_0x3ca0fd,context:_0x4f60ff,unlinkedAt:_0x113f28,attributes:_0x2a185d,isFromAdapter:_0xef5a43=!0x1}){return this['fire'](toEventName('updateCommentThread',_0xfc1d56),{'channelId':_0xfc1d56,'threadId':_0x3ca0fd,'context':_0x4f60ff,'unlinkedAt':_0x113f28,'attributes':_0x2a185d,'isFromAdapter':_0xef5a43}),this['getCommentThread'](_0x3ca0fd);}['getCommentThread'](_0x21172e){if('string'!=typeof _0x21172e)throw new CKEditorError('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x21172e);}['fetchCommentThread']({channelId:_0x3c8a54,threadId:_0x15b94f}={}){const _0x35f6c2=this['getCommentThread'](_0x15b94f);if(_0x35f6c2)return Promise['resolve'](_0x35f6c2);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':_0x3c8a54,'threadId':_0x15b94f})['then'](_0x3b353f=>this['hasCommentThread'](_0x15b94f)?this['getCommentThread'](_0x15b94f):_0x3b353f?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x3c8a54},_0x3b353f)):void 0x0)['catch'](_0x12df41=>{throw console['error'](_0x12df41),new CKEditorError('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x4e7e35,skipNotAttached:_0x21f830=!0x1,skipEmpty:_0x115e78=!0x1,toJSON:_0x4751d4=!0x1}={}){const _0xd46058=[];for(const _0x26d31c of this['_threads']['values']())_0x4e7e35&&_0x26d31c['channelId']!==_0x4e7e35||_0x21f830&&!_0x26d31c['isAttached']||_0x115e78&&0x0===_0x26d31c['length']||_0xd46058['push'](_0x26d31c);return _0x4751d4?_0xd46058['map'](_0x2092e1=>_0x2092e1['toJSON']()):_0xd46058;}['getAnnotationForCommentThread'](_0x4eb3f8){const _0x833bf2=this['_threadToController']['get'](_0x4eb3f8);if(!_0x833bf2)return null;return this['context']['plugins']['get'](Annotations)['getByInnerView'](_0x833bf2['view'])||null;}['getCommentThreadForAnnotation'](_0xaa9825){const _0x262c94=this['_viewToController']['get'](_0xaa9825['innerView']);return _0x262c94?_0x262c94['model']:null;}['setActiveCommentThread'](_0x4f4224){const _0x5c5550=this['context']['plugins']['get'](Annotations);if(!_0x4f4224)return void(this['activeCommentThread']&&_0x5c5550['deactivateAll']());const _0x47a56c=this['getCommentThread'](_0x4f4224);if(!_0x47a56c)throw new CKEditorError('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x4f4224});if(!this['_threadToController']['has'](_0x47a56c))throw new CKEditorError('commentsrepository-active-not-attached',null,{'threadId':_0x4f4224});const _0x1c9d29=_0x5c5550['getByInnerView'](this['_threadToController']['get'](_0x47a56c)['view']);_0x5c5550['activate'](_0x1c9d29);}['switchReadOnly'](_0x24fb74,_0x301b8a){_0x24fb74?this['_readOnlyChannels']['add'](_0x301b8a):this['_readOnlyChannels']['delete'](_0x301b8a),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x31e2e7){return this['_readOnlyChannels']['has'](_0x31e2e7)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x24805e,_0x5278c1){return new CommentThreadController(_0x24805e,_0x5278c1);}['setPermissions'](_0x598ce4,_0x4ba79b=noChannel){this['_permissions']['set'](_0x4ba79b,_0x598ce4),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x1c331a=noChannel){return this['_permissions']['has'](_0x1c331a)?this['_permissions']['get'](_0x1c331a):defaultPermissions;}['_addCommentThread']({channelId:_0x596844,threadId:_0x5a3a41,comments:_0x41c84e,unlinkedAt:_0x50de8d,resolvedAt:_0x906fb3,resolvedBy:_0x12274c,target:_0x1a219e,context:_0x2baf11,attributes:_0x774ef2,isFromAdapter:_0x13904d,isResolvable:_0x40fe0f,isSubmitted:_0x4864b9}){if('string'!=typeof _0x5a3a41)throw new CKEditorError('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x5a3a41});if(this['hasCommentThread'](_0x5a3a41))throw new CKEditorError('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x5a3a41});const _0x1a9453=new CommentThread(this,{'channelId':_0x596844,'id':_0x5a3a41,'context':_0x2baf11,'attributes':_0x774ef2,'unlinkedAt':_0x50de8d,'resolvedAt':_0x906fb3,'resolvedBy':_0x12274c?this['context']['plugins']['get'](Users)['getUser'](_0x12274c):null,'isResolvable':_0x40fe0f,'isSubmitted':_0x4864b9||_0x13904d});this['_threads']['set'](_0x5a3a41,_0x1a9453);for(const _0x925fc6 of _0x41c84e)_0x1a9453['_add'](this['_createNewComment']({'threadId':_0x5a3a41,..._0x925fc6}));return _0x1a219e&&_0x1a9453['attachTo'](_0x1a219e),_0x13904d||!_0x1a9453['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x596844,'threadId':_0x5a3a41});}['_submitCommentThread']({channelId:_0xa1b6f9,threadId:_0x22d3e6}){if(!this['hasCommentThread'](_0x22d3e6))throw new CKEditorError('commentsrepository-missing-comment-thread',this);const _0x26331b=this['getCommentThread'](_0x22d3e6);if(_0x26331b['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x239784,comments:_0x5b7852,resolvedAt:_0x4389c2,resolvedBy:_0x342de5,context:_0x301e97,attributes:_0x465ef0}=_0x26331b,_0x3ea3c0=this['context']['plugins']['get']('PendingActions'),_0x553b08=_0x3ea3c0['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0xa1b6f9,'threadId':_0x239784,'comments':_0x5b7852['map'](_0x3d489e=>_0x3d489e['toJSON']()),'resolvedAt':_0x4389c2,'resolvedBy':_0x342de5?_0x342de5['id']:_0x342de5,'context':_0x301e97,'attributes':_0x465ef0})['then'](({comments:_0x4c00a2})=>{_0x3ea3c0['remove'](_0x553b08);for(const _0xb34305 of _0x4c00a2)this['_updateComment']({'channelId':_0xa1b6f9,'threadId':_0x22d3e6,'commentId':_0xb34305['commentId'],'createdAt':_0xb34305['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3d7b4f=>{throw console['error'](_0x3d7b4f),new CKEditorError('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x4c2223,target:_0x4969a8}){const _0x429d0f=this['getCommentThread'](_0x4c2223);if(!_0x429d0f)throw new CKEditorError('commentsrepository-attach-missing-comment-thread',this);const _0x1e0de0=this['context']['plugins']['get']('PendingActions'),_0xf6f1fb=this['context']['plugins']['get'](Annotations),_0x292eae=this['_createCommentThreadView'](_0x429d0f),_0x59bb9b=new CommentThreadController(_0x429d0f,_0x292eae);let _0x53a29f=null;_0x292eae['on']('change:isDirty',(_0x4c63ef,_0x44c5c5,_0xbce83f)=>{_0xbce83f?_0x53a29f=_0x1e0de0['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x53a29f&&(_0x1e0de0['remove'](_0x53a29f),_0x53a29f=null);}),this['_threadToController']['set'](_0x429d0f,_0x59bb9b),this['_viewToController']['set'](_0x292eae,_0x59bb9b);const _0xe58449=new AnnotationView(this['context']['locale'],_0x292eae);_0xe58449['bind']('length')['to'](_0x292eae),_0xe58449['bind']('isDirty')['to'](_0x292eae,'isDirty',_0x292eae,'length',(_0x5def0d,_0x488551)=>_0x5def0d||!_0x488551),_0xe58449['bind']('isActive')['to'](_0x292eae),_0xe58449['type']='comment';const _0x4bda3e=new Annotation$1({'view':_0xe58449,'target':_0x4969a8,'type':'comment','isVisible':!_0x429d0f['archivedAt']&&!!('function'==typeof _0x4969a8?_0x4969a8():_0x4969a8)});return _0x292eae['on']('escape',()=>{_0x4bda3e['fire']('escape');}),this['_bindAnnotationToEditors'](_0x292eae,_0x4bda3e),_0xf6f1fb['add'](_0x4bda3e),_0x4bda3e;}['_bindAnnotationToEditors'](_0x375cdb,_0x33268b){this['listenTo'](_0x375cdb,'editorReady',(_0x2fe1d3,_0x5f4d82)=>{const _0x1044ac=_0x5f4d82['ui']['view']['body']['bodyCollectionContainer'];_0x33268b['focusableElements']['add'](_0x1044ac),this['context']instanceof Editor&&this['context']['ui']['focusTracker']['add'](_0x1044ac);},{'priority':'highest'}),this['listenTo'](_0x375cdb,'editorDestroyed',(_0x587a39,_0x1a16f6)=>{const _0x461356=_0x1a16f6['ui']['view']['body']['bodyCollectionContainer'];_0x33268b['focusableElements']['has'](_0x461356)&&_0x33268b['focusableElements']['remove'](_0x461356),this['context']instanceof Editor&&this['context']['ui']['focusTracker']['remove'](_0x461356);});}['_unbindEditors'](_0x292803){this['stopListening'](_0x292803,'editorReady'),this['stopListening'](_0x292803,'editorDestroyed');}['_createCommentThreadView'](_0x48867a){const _0x14bf81=this['context']['plugins']['get'](Users),{config:_0x3d1d85,locale:_0x3c77f1}=this['context'],_0x555da1=getDateTimeFormatter(_0x3d1d85['get']('locale'),_0x3c77f1);return new(0x0,(_0x3d1d85['get']('comments'))['CommentThreadView'])(_0x3c77f1,_0x48867a,_0x14bf81['me'],{'editorConfig':{..._0x3d1d85['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x3d1d85['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x3d1d85['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3d1d85['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3d1d85['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x555da1,'CommentView':_0x3d1d85['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x226e25,channelId:_0x1424ee,resolvedAt:_0x10b865,resolvedBy:_0x50403b,isFromAdapter:_0x4fd693}){if(!this['hasCommentThread'](_0x226e25))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x226e25});const _0x3fbb99=this['getCommentThread'](_0x226e25);if(_0x3fbb99['isResolved'])throw new CKEditorError('commentsrepository-resolved-comment-thread',null,{'threadId':_0x226e25});const _0x19fb89=this['context']['plugins']['get'](Users);if(_0x3fbb99['resolvedBy']=_0x19fb89['getUser'](_0x50403b),_0x3fbb99['resolvedAt']=_0x10b865,_0x4fd693||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x2609c3=this['context']['plugins']['get']('PendingActions'),_0x4ea43f=_0x2609c3['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x1424ee,'threadId':_0x226e25})['then'](({resolvedAt:_0x1370c8,resolvedBy:_0x182024})=>{_0x2609c3['remove'](_0x4ea43f),_0x3fbb99['resolvedBy']['id']!==_0x182024&&(_0x3fbb99['resolvedBy']=_0x19fb89['getUser'](_0x182024)),_0x3fbb99['resolvedAt']=_0x1370c8;})['catch'](_0x457a42=>{throw console['error'](_0x457a42),new CKEditorError('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x1a320b,channelId:_0x41b535,isFromAdapter:_0x4b065b}){if(!this['hasCommentThread'](_0x1a320b))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x1a320b});const _0x1a0cca=this['getCommentThread'](_0x1a320b);if(!_0x1a0cca['isResolved'])throw new CKEditorError('commentsrepository-reopen-comment-thread',null,{'threadId':_0x1a320b});if(_0x1a0cca['resolvedBy']=null,_0x1a0cca['resolvedAt']=null,_0x4b065b||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x4340c8=this['context']['plugins']['get']('PendingActions'),_0x216e18=_0x4340c8['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x41b535,'threadId':_0x1a320b})['then'](()=>_0x4340c8['remove'](_0x216e18))['catch'](_0x200aae=>{throw console['error'](_0x200aae),new CKEditorError('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x45848f,isFromAdapter:_0x10fcae}){const _0xfee180=this['getCommentThread'](_0x45848f);if(!_0xfee180)throw new CKEditorError('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x45848f),this['_threads']['delete'](_0x45848f),!_0xfee180['isSubmitted']||_0x10fcae||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x5baa36=this['context']['plugins']['get']('PendingActions'),{channelId:_0x208741}=_0xfee180,_0x3097bf=_0x5baa36['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x208741,'threadId':_0x45848f})['then'](()=>_0x5baa36['remove'](_0x3097bf))['catch'](_0x1a00a2=>{throw console['error'](_0x1a00a2),new CKEditorError('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x47d870,unlinkedAt:_0x3626a8,context:_0x33f58e,attributes:_0x1f2b1e,isFromAdapter:_0x380c32}){if('string'!=typeof _0x47d870)throw new CKEditorError('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x47d870});if(!this['hasCommentThread'](_0x47d870))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x47d870});const _0x3b8fbb=this['getCommentThread'](_0x47d870);let _0x5c64da=!0x1;if(void 0x0!==_0x33f58e&&_0x3b8fbb['context']!==_0x33f58e&&(_0x3b8fbb['context']=_0x33f58e,_0x5c64da=!0x0),void 0x0!==_0x3626a8&&_0x3b8fbb['unlinkedAt']!==_0x3626a8&&(_0x3b8fbb['unlinkedAt']=_0x3626a8,_0x5c64da=!0x0),_0x1f2b1e&&!isEqual(_0x1f2b1e,_0x3b8fbb['attributes'])&&(_0x3b8fbb['attributes']=_0x1f2b1e,_0x5c64da=!0x0),!_0x5c64da)return Promise['resolve']();if(!_0x3b8fbb['isSubmitted']||_0x380c32||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x1bd6f4=this['context']['plugins']['get']('PendingActions'),{channelId:_0x32b0e5}=_0x3b8fbb,_0x42c297=_0x1bd6f4['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x32b0e5,'threadId':_0x47d870,'context':_0x33f58e,'unlinkedAt':_0x3626a8,'attributes':_0x1f2b1e})['then'](()=>_0x1bd6f4['remove'](_0x42c297))['catch'](_0x3ac90d=>{throw console['error'](_0x3ac90d),new CKEditorError('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x358e06){const _0x67b753=this['context']['plugins']['get'](Annotations),_0x130394=this['getCommentThread'](_0x358e06);if(_0x130394['_isAttached']=!0x1,this['_threadToController']['has'](_0x130394)){const _0x5cd488=this['_threadToController']['get'](_0x130394),_0x588540=_0x5cd488['view'],_0x586817=_0x67b753['getByInnerView'](_0x588540);this['_threadToController']['delete'](_0x130394),this['_viewToController']['delete'](_0x588540),_0x586817&&_0x67b753['remove'](_0x586817),_0x5cd488['destroy'](),_0x588540['destroy']()['then'](()=>{this['_unbindEditors'](_0x588540);});}}['_updateActiveAnnotation']({threadId:_0x1d4dc6,resolvedAt:_0x4afaae,unlinkedAt:_0x479860}){const _0x4263=!!_0x4afaae,_0xd771ee=this['context']['plugins']['get'](Annotations),_0x2ad91e=this['getCommentThread'](_0x1d4dc6);if(this['_threadToController']['has'](_0x2ad91e)){const _0x29bca4=this['_threadToController']['get'](_0x2ad91e)['view'],_0x512e5e=_0xd771ee['getByInnerView'](_0x29bca4);_0x512e5e&&(_0x4263&&_0xd771ee['_removeActiveAnnotation'](_0x512e5e),_0x479860?_0x512e5e['isVisible']=!0x1:_0x512e5e['refreshVisibility']());}}['_getExternalAuthor'](_0x2dacec){const _0x5d630c=this['context']['plugins']['get'](Users),_0x53632e=hashObject('external:'+_0x2dacec),_0xb95168=_0x5d630c['getUser'](_0x53632e);return _0xb95168||_0x5d630c['addUser']({'id':_0x53632e,'name':_0x2dacec});}['_createNewComment']({threadId:_0x1226e7,commentId:_0x13a277=uid(),content:_0x3d2dbf,authorId:_0x3bc175,createdAt:_0x4ebaa6,attributes:_0x5a7614}){if('string'!=typeof _0x13a277)throw new CKEditorError('commentsrepository-invalid-commentid');if('string'!=typeof _0x3bc175)throw new CKEditorError('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x3d2dbf||!_0x3d2dbf['trim']())throw new CKEditorError('commentsrepository-invalid-comment-content');const _0x1b2301=this['context']['plugins']['get'](Users)['getUser'](_0x3bc175);if(!_0x1b2301)throw new CKEditorError('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x3bc175});let _0x5480b2=null,_0x4b3b26=_0x4ebaa6;return _0x5a7614?.['@external']&&(_0x5480b2=this['_getExternalAuthor'](_0x5a7614['@external']['authorName']),_0x4b3b26=new Date(_0x5a7614['@external']['createdAt'])),new Comment(this,{'threadId':_0x1226e7,'id':_0x13a277,'author':_0x5480b2||_0x1b2301,'creator':_0x1b2301,'content':_0x3d2dbf,'createdAt':_0x4ebaa6,'authoredAt':_0x4b3b26,'attributes':_0x5a7614});}['_addComment'](_0x1107ab){let {threadId:_0x32277a,content:_0x1b03ef,attributes:_0xde4b06,isFromAdapter:_0x3ca619}=_0x1107ab;const _0x2ef8c9=this['getCommentThread'](_0x1107ab['threadId']);if(!_0x2ef8c9)throw new CKEditorError('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x31868a=this['_createNewComment'](_0x1107ab),{id:_0x59f8ac}=_0x31868a;if(_0x2ef8c9['_add'](_0x31868a),_0x3ca619||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x2ef8c9['isSubmitted'])return Promise['resolve']();const _0x8f6d8a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5bf26a}=_0x2ef8c9,_0x440215=_0x8f6d8a['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0xde4b06||(_0xde4b06={}),this['adapter']['addComment']({'channelId':_0x5bf26a,'threadId':_0x32277a,'commentId':_0x59f8ac,'content':_0x1b03ef,'attributes':_0xde4b06})['then'](_0x15de14=>{_0x8f6d8a['remove'](_0x440215),_0x15de14&&this['_updateComment']({'channelId':_0x5bf26a,'threadId':_0x32277a,'commentId':_0x59f8ac,'createdAt':_0x15de14['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x1bbfc9=>{throw console['error'](_0x1bbfc9),new CKEditorError('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x26d9f8,commentId:_0x2a21bf,content:_0x1a6798,createdAt:_0x394356,attributes:_0x2dd490,isFromAdapter:_0x318acb}){if(void 0x0!==_0x1a6798&&('string'!=typeof _0x1a6798||!_0x1a6798['trim']()['length']))throw new CKEditorError('commentsrepository-update-comment-invalid-content');const _0x107bbd=this['getCommentThread'](_0x26d9f8),_0x46b42b=_0x107bbd['getComment'](_0x2a21bf);if(!_0x46b42b)throw new CKEditorError('commentsrepository-update-missing-comment',this);let _0x488f46=!0x1;if(_0x1a6798&&_0x1a6798!==_0x46b42b['content']&&(_0x46b42b['isEditable']||_0x318acb)&&(_0x46b42b['content']=_0x1a6798,_0x488f46=!0x0),_0x394356&&_0x394356!==_0x46b42b['createdAt']&&(_0x46b42b['createdAt']=_0x394356,_0x46b42b['attributes']&&_0x46b42b['attributes']['@external']||(_0x46b42b['authoredAt']=_0x394356),_0x488f46=!0x0),_0x2dd490&&!isEqual(_0x2dd490,_0x46b42b['attributes'])&&(_0x46b42b['attributes']=_0x2dd490,_0x488f46=!0x0),!_0x488f46)return Promise['resolve']();if(_0x107bbd['fire']('commentUpdated'),_0x318acb||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x536363=this['context']['plugins']['get']('PendingActions'),{channelId:_0x38ce89}=this['getCommentThread'](_0x46b42b['threadId']),_0x23e57a=_0x536363['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x38ce89,'threadId':_0x26d9f8,'commentId':_0x2a21bf,'content':_0x1a6798,'attributes':_0x2dd490})['then'](()=>_0x536363['remove'](_0x23e57a))['catch'](_0x16b524=>{throw console['error'](_0x16b524),new CKEditorError('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x425151,commentId:_0x59eae7,isFromAdapter:_0x35e3a0}){const _0x11ea6c=this['getCommentThread'](_0x425151),_0x4e6890=_0x11ea6c['getComment'](_0x59eae7);if(!_0x4e6890)throw new CKEditorError('commentsrepository-remove-missing-comment',this);if(_0x11ea6c['_remove'](_0x4e6890),_0x35e3a0||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x5dd19a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x330c8a}=_0x11ea6c,_0x287992=_0x5dd19a['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x330c8a,'threadId':_0x425151,'commentId':_0x59eae7})['then'](()=>_0x5dd19a['remove'](_0x287992))['catch'](_0x312b26=>{throw console['error'](_0x312b26),new CKEditorError('commentsrepository-remove-comment-internal-error',this);});}}class CommentThread extends/* #__PURE__ -- @preserve */
ObservableMixin(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x4c2248,_0x5c452f){super();const _0x589c1d=_0x5c452f['isResolvable'];this['channelId']=_0x5c452f['channelId'],this['id']=_0x5c452f['id'],this['comments']=new Collection(),this['_repository']=_0x4c2248,this['_isAttached']=!0x1,this['_isSubmitted']=_0x5c452f['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x4c2248,'_permissions',_0x4c2248,'_readOnlyChannels',()=>_0x4c2248['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x4c2248,'_permissions',()=>_0x4c2248['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x4c2248,'_permissions',()=>{const _0x20ea7d=_0x4c2248['getPermissions'](this['channelId']);return _0x20ea7d['write']||_0x20ea7d['admin'];}),this['bind']('isResolvable')['to'](_0x4c2248,'_permissions',()=>_0x589c1d&&_0x4c2248['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x5c452f['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x43d4c4,_0x4b51ed)=>_0x43d4c4?_0x4b51ed?_0x43d4c4<_0x4b51ed?_0x43d4c4:_0x4b51ed:_0x43d4c4:_0x4b51ed),this['set']('unlinkedAt',_0x5c452f['unlinkedAt']||null),this['set']('resolvedAt',_0x5c452f['resolvedAt']||null),this['set']('resolvedBy',_0x5c452f['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x347785=>!!_0x347785),this['set']('attributes',_0x5c452f['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x2a0705,_0x37cace)=>_0x2a0705+_0x37cace['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x22ca9a,id:_0x29c025}=this;this['_repository']['fire'](toEventName('submitCommentThread',_0x22ca9a),{'channelId':_0x22ca9a,'threadId':_0x29c025});}['setUnlinkedAt'](_0x4ffd2a){this['_update']({'unlinkedAt':_0x4ffd2a});}['resolve']({resolvedAt:_0xdfc869=new Date(),resolvedBy:_0x718f9e='',isFromAdapter:_0x402e11=!0x1}={}){const _0x2c1f5f=this['_repository']['context']['plugins']['get'](Users)['me'],{channelId:_0x1dafd9,id:_0x438a20}=this;this['_repository']['fire'](toEventName('resolveCommentThread',_0x1dafd9),{'channelId':_0x1dafd9,'threadId':_0x438a20,'resolvedAt':_0xdfc869,'resolvedBy':_0x718f9e||_0x2c1f5f['id'],'isFromAdapter':_0x402e11});}['reopen']({isFromAdapter:_0x38357c=!0x1}={}){const {channelId:_0x5977ea,id:_0x5f48cb}=this;this['_repository']['fire'](toEventName('reopenCommentThread',_0x5977ea),{'channelId':_0x5977ea,'threadId':_0x5f48cb,'isFromAdapter':_0x38357c});}['setContext'](_0x3177e5){this['context']||this['_update']({'context':_0x3177e5});}['setAttribute'](_0x159b02,_0x276aea){const _0x42472c=cloneDeep(this['attributes']);set(_0x42472c,_0x159b02,_0x276aea),this['_update']({'attributes':_0x42472c});}['removeAttribute'](_0x4f0660){const _0x1bd46e=cloneDeep(this['attributes']);unset(_0x1bd46e,_0x4f0660),this['_update']({'attributes':_0x1bd46e});}['remove']({isFromAdapter:_0xb88fec=!0x1}={}){const {channelId:_0x2c3a6b,id:_0xf66669}=this;this['_repository']['fire'](toEventName('removeCommentThread',_0x2c3a6b),{'channelId':_0x2c3a6b,'threadId':_0xf66669,'isFromAdapter':_0xb88fec});}['attachTo'](_0x2428b6){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x2428b6});}['addComment'](_0x59d9bf){const {channelId:_0x49692a,id:_0xd6b4f9}=this;this['_repository']['fire'](toEventName('addComment',_0x49692a,_0xd6b4f9),Object['assign']({'channelId':_0x49692a,'threadId':_0xd6b4f9},_0x59d9bf));}['getComment'](_0x15d156){if('string'!=typeof _0x15d156)throw new CKEditorError('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x15d156});return this['comments']['get'](_0x15d156);}['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'](_0x49b2c0=>_0x49b2c0['toJSON']()),'attributes':this['attributes']};}['_add'](_0x813bd1){return this['listenTo'](_0x813bd1,'change:authoredAt',()=>{const _0x31561e=this['_findOptimalIndex'](_0x813bd1),_0x45b9ce=this['comments'];_0x31561e-0x1!=_0x45b9ce['getIndex'](_0x813bd1)&&_0x31561e+0x1!=_0x45b9ce['getIndex'](_0x813bd1)&&(this['_remove'](_0x813bd1),this['_add'](_0x813bd1));}),this['comments']['add'](_0x813bd1,this['_findOptimalIndex'](_0x813bd1));}['_update'](_0x27ad8c){const {channelId:_0x25f728,id:_0x52aade}=this;this['_repository']['fire'](toEventName('updateCommentThread',_0x25f728),{..._0x27ad8c,'channelId':_0x25f728,'threadId':_0x52aade});}['_remove'](_0x292336){return this['stopListening'](_0x292336),_0x292336['destroy'](),this['comments']['remove'](_0x292336);}['_findOptimalIndex'](_0x279cc6){const _0x5484f9=this['comments']['find'](_0x2e4d3a=>new Date(_0x2e4d3a['authoredAt'])['getTime']()>new Date(_0x279cc6['authoredAt'])['getTime']());return _0x5484f9?this['comments']['getIndex'](_0x5484f9):this['length'];}}const MIN_WEIGHT=0xc8;function getContentLength(_0x172e06){const _0x334654=document['createElement']('div');return _0x334654['innerHTML']=_0x172e06,_0x334654['textContent']['length'];}class Comment extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x43840d,_0x6562e8){super();const _0x3eb496=_0x43840d['context']['plugins']['get'](Users)['me'],_0x327b2a=_0x43840d['getCommentThread'](_0x6562e8['threadId']),_0x46d657=0x0===_0x327b2a['comments']['length'],_0x2ff3aa=_0x3eb496===_0x6562e8['author'];this['id']=_0x6562e8['id'],this['threadId']=_0x6562e8['threadId'],this['author']=_0x6562e8['author'],this['creator']=_0x6562e8['creator'],this['isExternal']=Boolean(_0x6562e8['attributes']&&_0x6562e8['attributes']['@external']),this['set']('content',_0x6562e8['content']),this['createdAt']=_0x6562e8['createdAt']||new Date(),this['set']('authoredAt',_0x6562e8['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x327b2a,'resolvedAt'),this['set']('attributes',_0x6562e8['attributes']||{}),this['bind']('isEditable')['to'](_0x43840d,'_permissions',()=>{const _0xe2b84b=_0x43840d['getPermissions'](_0x327b2a['channelId'])['write'],_0x2dc0cc=_0x43840d['getPermissions'](_0x327b2a['channelId'])['modifyAll'];return _0x2ff3aa&&_0xe2b84b||!_0x2ff3aa&&_0x2dc0cc;}),this['bind']('isRemovable')['to'](_0x327b2a,'isRemovable',_0x43840d,'_permissions',_0x4bd502=>{const _0x29cb2b=_0x43840d['getPermissions'](_0x327b2a['channelId'])['write'],_0x4f28a6=_0x43840d['getPermissions'](_0x327b2a['channelId'])['modifyAll'];return _0x2ff3aa&&_0x29cb2b||_0x4bd502&&_0x46d657||!_0x2ff3aa&&_0x4f28a6&&!_0x46d657;}),this['bind']('isReadOnly')['to'](_0x327b2a,'isReadOnly'),this['_repository']=_0x43840d;}get['weight'](){return Math['max'](getContentLength(this['content']),MIN_WEIGHT);}['update'](_0x1bd06a){const {threadId:_0x51148d,id:_0xf3b91b}=this;if(!this['_repository']['hasCommentThread'](_0x51148d))throw new CKEditorError('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x20a1dd}=this['_repository']['getCommentThread'](_0x51148d);this['_repository']['fire'](toEventName('updateComment',_0x20a1dd,_0x51148d),{'channelId':_0x20a1dd,'threadId':_0x51148d,'commentId':_0xf3b91b,..._0x1bd06a});}['setAttribute'](_0x1b4c35,_0x3c631f){const _0x285a18=cloneDeep(this['attributes']);set(_0x285a18,_0x1b4c35,_0x3c631f),this['update']({'attributes':_0x285a18});}['removeAttribute'](_0x13298a){const _0xe5b13b=cloneDeep(this['attributes']);unset(_0xe5b13b,_0x13298a),this['update']({'attributes':_0xe5b13b});}['remove'](_0x3da5c1={}){if(!_0x3da5c1['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x302717,id:_0x3d0311}=this;if(!this['_repository']['hasCommentThread'](_0x302717))throw new CKEditorError('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x350747}=this['_repository']['getCommentThread'](_0x302717);this['_repository']['fire'](toEventName('removeComment',_0x350747,_0x302717),{'channelId':_0x350747,'threadId':_0x302717,'commentId':_0x3d0311,..._0x3da5c1});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function toEventName(_0x36c48c,..._0x47cc38){for(const _0x57da91 of _0x47cc38)void 0x0!==_0x57da91&&(_0x36c48c+=':'+String(_0x57da91));return _0x36c48c;}class AddCommentThreadCommand extends Command{constructor(_0x9d3d3f){super(_0x9d3d3f),this['set']('hasContent',!0x1);}['refresh'](){const _0x4c5d84=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x4dcba1 of _0x4c5d84['getRanges']())if(this['_hasContent'](_0x4dcba1))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x7cbdf7=uid(),ranges:_0x199ffb,comment:_0x4e0645}={}){const _0x332b9e=this['editor']['model'],_0x9d54c8=_0x199ffb??Array['from'](_0x332b9e['document']['selection']['getRanges']()),_0x515807=[];for(const _0x59c162 of _0x9d54c8)this['_hasContent'](_0x59c162)&&_0x515807['push'](this['_trimToContent'](_0x59c162));if(!_0x515807['length'])throw new CKEditorError('addcommentthreadcommand-incorrect-ranges',null);_0x4e0645&&this['_createCommentThread'](_0x7cbdf7,_0x4e0645),this['_createMarkersFromRanges'](_0x7cbdf7,_0x515807,!!_0x4e0645);}['_createMarkersFromRanges'](_0x95045c,_0x73e581,_0x399ebb){this['editor']['model']['change'](_0x4cea7d=>{for(const _0x3f8645 of _0x73e581){const _0x207832=uid()['substr'](0x1,0x5),_0x5b6778='comment:'+_0x95045c+':'+_0x207832;_0x4cea7d['addMarker'](_0x5b6778,{'range':_0x3f8645,'usingOperation':_0x399ebb,'affectsData':_0x399ebb});}});}['_createCommentThread'](_0x503e24,_0x26852c){const _0x2feaaa=this['editor']['plugins']['get']('CommentsRepository'),_0x2e59f9=this['editor']['config']['get']('collaboration.channelId'),_0x499f9d=this['editor']['plugins']['get']('Users')['me'];if(!_0x499f9d)throw new CKEditorError('addcommentthreadcommand-user-not-found',null);_0x2feaaa['addCommentThread']({'threadId':_0x503e24,'channelId':_0x2e59f9,'comments':[{'authorId':_0x499f9d['id'],'content':_0x26852c,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x453135){for(const _0x4546fc of _0x453135['getItems']())if(this['_itemIsContent'](_0x4546fc))return!0x0;return!0x1;}['_itemIsContent'](_0x4f6173){return _0x4f6173['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x4f6173)&&!_0x4f6173['is']('element','tableCell');}['_trimToContent'](_0x321067){const _0x508322=_0x182778=>!this['_itemIsContent'](_0x182778['item']),_0xb82674=_0x321067['start']['getLastMatchingPosition'](_0x508322),_0x326685=_0x321067['end']['getLastMatchingPosition'](_0x508322,{'direction':'backward'});return this['editor']['model']['createRange'](_0xb82674,_0x326685);}}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(_0x22b8b7){super(_0x22b8b7),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x4a2f3d=this['editor'],_0x1e7e32=_0x4a2f3d['model']['document']['selection'],_0x1512bc=debounce$1(()=>this['refreshSelectedViews'](),0xa);_0x1e7e32['on']('change:range',(_0x4da4a0,_0xf6a68f)=>{_0xf6a68f['directChange']&&(_0x1512bc['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x4a2f3d['editing']['view']['document'],'change:isFocused',(_0x415185,_0x202659,_0x48f096)=>{_0x48f096&&_0x1512bc();}),this['listenTo'](_0x4a2f3d['ui']['focusTracker'],'change:isFocused',(_0x39f1b1,_0x220617,_0x44b623)=>{_0x44b623||this['fire']('blur',{'isAnnotationTracked':_0x5b3141=>this['_editorAnnotationsData']['has'](_0x5b3141['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x40a05e){if(this['_editorAnnotations']['has'](_0x40a05e['view']))return;this['_editorAnnotations']['add'](_0x40a05e['view']),this['editor']['ui']['focusTracker']['add'](_0x40a05e['view']['element']);const _0x97eb32=this['editor']['plugins']['get'](Annotations);this['listenTo'](_0x97eb32['collection'],'remove',(_0x2ba6ee,_0x5ef970)=>{this['editor']['ui']['focusTracker']['remove'](_0x5ef970['view']['element']),this['_editorAnnotations']['delete'](_0x5ef970['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x8e7a00){if('function'!=typeof _0x8e7a00)throw new CKEditorError('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x8e7a00);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x5eef6b,annotations:_0x2f2ad4}){const _0x7e8160=[],_0x39124f=this['editor']['model']['document']['selection'],_0x4206aa=Array['from'](_0x39124f['getRanges']());for(const [_0x4d41ca,_0x3184b6]of this['_editorAnnotationsData']){const _0x4c5978=_0x35bc56(_0x3184b6),_0x538cf5=_0x2f2ad4['getByInnerView'](_0x4d41ca);_0x4c5978&&_0x538cf5&&_0x7e8160['push']({'annotation':_0x538cf5,'range':_0x4c5978});}function _0x35bc56(_0x147571){for(const _0x14d400 of _0x147571)for(const _0x556d69 of _0x4206aa)if(_0x14d400['containsRange'](_0x556d69,!_0x39124f['isCollapsed']))return _0x14d400;return null;}return _0x7e8160['sort']((_0x1c4cf7,_0x14462c)=>{const _0x2c979e=_0x1c4cf7['range'],_0xed60c=_0x14462c['range'];if(!_0x2c979e['isEqual'](_0xed60c)){if(_0x2c979e['containsRange'](_0xed60c,!0x0))return 0x1;if(_0xed60c['containsRange'](_0x2c979e,!0x0))return-0x1;}return _0x1c4cf7['annotation']==_0x5eef6b?-0x1:_0x14462c['annotation']==_0x5eef6b?0x1:0x0;})['map'](_0xfec52c=>_0xfec52c['annotation']);}get['_editorAnnotationsData'](){const _0x1833e9=new Map();for(const _0x2012f6 of Array['from'](this['_dataCollectors']))for(const [_0x1b02b9,_0x378258]of _0x2012f6())_0x1833e9['set'](_0x1b02b9,_0x378258);return _0x1833e9;}}class CommentsRestrictedEditingMode extends Plugin{['afterInit'](){const _0x393fe7=this['editor'];if(!_0x393fe7['plugins']['has']('RestrictedEditingModeEditing'))return;_0x393fe7['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class CommentsImportWord extends Plugin{constructor(_0xbad7b4){super(_0xbad7b4),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x1f5dc8=this['editor'],_0x3796e0=_0x1f5dc8['commands']['get']('importWord'),_0x1b0a2d=_0x1f5dc8['plugins']['get'](Users);_0x3796e0&&(_0x3796e0['on']('execute',(_0x50c3c8,[,_0xbf6ce9])=>{_0xbf6ce9['collaboration_features']={'comments':!0x0,'user_id':_0x1b0a2d['me']['id']};},{'priority':priorities['high']+0xa}),this['listenTo'](_0x3796e0,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0xe8f3a3,_0x3db963){const {comment_threads:_0x2466a2}=_0x3db963;_0x2466a2&&_0x2466a2['forEach'](({thread_id:_0x2b4105,comments:_0x2acd59,is_resolved:_0x116a05})=>{const _0x4e58a5=new Date(),_0x1066b5=_0x2acd59['map'](({author:_0xfe3226,content:_0x321f70,created_at:_0x370446})=>({'content':_0x321f70,'authorId':this['editor']['plugins']['get'](Users)['me']['id'],'createdAt':_0x4e58a5,'attributes':{'@external':{'authorName':_0xfe3226,'createdAt':_0x370446?new Date(_0x370446):new Date(),'source':'importWord'}}})),_0x590f63=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](CommentsRepository)['addCommentThread']({'channelId':_0x590f63,'threadId':_0x2b4105,'comments':_0x1066b5,'resolvedAt':_0x116a05?_0x4e58a5:null});});}}class CommentsClipboard extends Plugin{constructor(_0x236357){super(_0x236357),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[ClipboardMarkersUtils,ClipboardPipeline];}['afterInit'](){const _0x3d0e87=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x3d0e87,'contentInsertion',(_0x995a7a,_0x4f6f37)=>this['_removeMarkersWithoutThreads'](_0x4f6f37['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x10d0ba){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x10d0ba;const _0xf2c444=this['editor']['plugins']['get']('CommentsRepository');for(const _0x5314eb of _0x10d0ba['keys']()){const [_0x29b04b,_0x244df0]=_0x5314eb['split'](':');'comment'!=_0x29b04b||_0xf2c444['hasCommentThread'](_0x244df0)||_0x10d0ba['delete'](_0x5314eb);}return _0x10d0ba;}['_registerMarkerInClipboardPipeline'](){const _0x38968a=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x5b1a63=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x5b1a63&&_0x38968a['_registerMarkerToCopy']('comment',_0x5b1a63);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x4c6823){switch(_0x4c6823){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function splitMarkerName(_0xde2037){const _0x5605de=_0xde2037['split'](':');return{'group':_0x5605de[0x0],'id':_0x5605de[0x1],'part':_0x5605de[0x2]};}class ShowCommentHighlights extends Plugin{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x144c07,_0x4247c3)=>{if(!_0x4247c3['options']['showCommentHighlights'])return null;if(_0x4247c3['options']['ignoreResolvedComments']){const {id:_0x94e52e}=splitMarkerName(_0x144c07['markerName']),_0x114ca5=this['editor']['plugins']['get'](CommentsRepository);if(_0x114ca5['getCommentThread'](_0x94e52e)?.['isResolved']&&_0x144c07['item'])return _0x4247c3['consumable']['consume'](_0x144c07['item'],'addMarker:'+_0x144c07['markerName']),_0x4247c3['consumable']['consume'](_0x144c07['item'],'removeMarker:'+_0x144c07['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3399ed=>{_0x3399ed['on']('addMarker:comment',(_0x12ac04,_0x17d1a4,_0xac745b)=>{if(!_0xac745b['options']['showCommentHighlights'])return;const _0x4df741=_0x17d1a4['item'];if(!_0x4df741)return;const _0x339549=_0xac745b['mapper']['toViewElement'](_0x4df741);this['editor']['model']['schema']['isObject'](_0x4df741)&&_0x339549&&!_0x339549['getCustomProperty']('widget')&&_0x339549['is']('containerElement')&&toWidget(_0x339549,_0xac745b['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x322870,{writer:_0x585ccc,options:_0x1f7e9a})=>{if(!_0x1f7e9a['showCommentHighlights'])return null;const _0x25b458=_0x585ccc['createContainerElement']('div'),_0x43066e=_0x585ccc['createEmptyElement']('hr');return _0x585ccc['addClass']('ck-horizontal-line',_0x25b458),_0x585ccc['insert'](_0x585ccc['createPositionAt'](_0x25b458,0x0),_0x43066e),_0x25b458;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x272f3a,{writer:_0x49b4b7,options:_0x4546d1})=>{if(!_0x4546d1['showCommentHighlights'])return null;const _0x1e5bda=_0x49b4b7['createContainerElement']('span'),_0x793481=_0x49b4b7['createEmptyElement']('img');return _0x49b4b7['addClass']('image-inline',_0x1e5bda),_0x49b4b7['insert'](_0x49b4b7['createPositionAt'](_0x1e5bda,0x0),_0x793481),_0x1e5bda;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x396d97,{writer:_0x504a42,options:_0x3f7f13})=>{if(_0x3f7f13['showCommentHighlights'])return _0x504a42['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x55bc3b,_0x52a257,_0x457535)=>{_0x457535['options']['showCommentHighlights']&&_0x55bc3b['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(_0x5856a6){super(_0x5856a6),this['set']('isThreadsLoadingPaused',!0x0),_0x5856a6['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x5133f7,_0x13d75c,_0x4660de,_0x1c515b)=>{const _0x774c90=_0x5856a6['plugins']['get'](CommentsRepository),_0x21368e=_0x4660de?splitMarkerName(_0x4660de)['id']:null;_0x5856a6['model']['change'](()=>{if(_0x21368e){const _0x4e3e98=this['getAllMarkersForId'](_0x21368e);for(const _0x5010f0 of _0x4e3e98)_0x5856a6['editing']['reconvertMarker'](_0x5010f0);}if(_0x1c515b){const {id:_0x50bc11}=splitMarkerName(_0x1c515b),_0x122996=_0x774c90['getCommentThread'](_0x50bc11);if(_0x122996&&_0x122996['unlinkedAt'])return;if(_0x122996&&!_0x122996['isAttached'])return;const _0x2abdbe=this['getAllMarkersForId'](_0x50bc11);for(const _0x15bf8a of _0x2abdbe)_0x5856a6['editing']['reconvertMarker'](_0x15bf8a);}}),_0x21368e&&this['scrollToThreadMarker'](_0x21368e);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x46a114=this['editor'],_0x1a7b1d=_0x46a114['plugins']['get'](CommentsRepository),_0x21cf6b=_0x46a114['config']['get']('collaboration.channelId'),_0x4002e0=_0x1a7b1d['getCommentThreads']()['filter'](_0x59fbfd=>_0x59fbfd['channelId']!==_0x21cf6b);_0x46a114['commands']['add']('addCommentThread',new AddCommentThreadCommand(_0x46a114)),this['listenTo'](_0x46a114,'change:isReadOnly',(_0x4675ed,_0x1b2e05,_0x28edaa)=>{_0x1a7b1d['switchReadOnly'](_0x28edaa,_0x46a114['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x1a7b1d,createChannelEvent('addCommentThread',_0x21cf6b),(_0x1a1abc,{threadId:_0x153756})=>{const _0x302e5a=this['editor']['plugins']['get'](CommentsRepository)['getCommentThread'](_0x153756);_0x302e5a?.['unlinkedAt']&&this['_attachArchivedThread'](_0x153756);}),this['listenTo'](_0x1a7b1d,createChannelEvent('removeCommentThread',_0x21cf6b),(_0x38f19a,{threadId:_0x5599ff})=>{_0x46a114['model']['enqueueChange']({'isUndoable':!0x1},_0x578c9b=>{const _0x5cb7d9=this['getAllMarkersForId'](_0x5599ff);for(const _0x3a13b4 of _0x5cb7d9)_0x578c9b['removeMarker'](_0x3a13b4);});}),this['listenTo'](_0x1a7b1d,createChannelEvent('resolveCommentThread',_0x21cf6b),(_0x4b5c69,{threadId:_0x365291})=>{(this['_reconvertMarkers'](_0x365291),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](CommentsRepository)['getCommentThread'](_0x365291)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x1a7b1d,createChannelEvent('reopenCommentThread',_0x21cf6b),(_0x3f2a9d,{threadId:_0x208524})=>{this['_reconvertMarkers'](_0x208524);},{'priority':'low'}),this['listenTo'](_0x1a7b1d,createChannelEvent('addComment',_0x21cf6b),(_0x1a91bd,{threadId:_0x3cd794,isFromAdapter:_0x1a7c36})=>{const _0x4610e5=this['getAllMarkersForId'](_0x3cd794);if(_0x1a7c36||0x0==_0x4610e5['length']||!_0x1a7b1d['hasCommentThread'](_0x3cd794))return;0x1===_0x1a7b1d['getCommentThread'](_0x3cd794)['length']&&_0x46a114['model']['enqueueChange']({'isUndoable':!0x1},_0x9ad47d=>{for(const _0x372005 of _0x4610e5)_0x9ad47d['updateMarker'](_0x372005,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x4002e0);}['afterInit'](){checkLicense$h(this);}['destroy'](){const _0x5b644f=this['editor']['plugins']['get'](CommentsRepository),_0x283bee=this['editor']['config']['get']('collaboration.channelId');for(const _0x223579 of _0x5b644f['getCommentThreads']({'channelId':_0x283bee}))_0x5b644f['_detachCommentThread'](_0x223579['id']),_0x5b644f['_threads']['delete'](_0x223579['id']);super['destroy']();}['hasMarkerForId'](_0xfbec5d){return this['getAllMarkersForId'](_0xfbec5d)['length']>0x0;}['getAllMarkersForId'](_0x55c334){const _0x5152ff=[];for(const _0x4eb9e4 of this['editor']['model']['markers'])_0x4eb9e4['name']['startsWith']('comment:'+_0x55c334)&&_0x5152ff['push'](_0x4eb9e4);return _0x5152ff;}['scrollToThreadMarker'](_0x3ec617){setTimeout(()=>{const _0x5c49c2=this['_getTargetForId'](_0x3ec617);if(!_0x5c49c2)return;this['activeMarker']&&splitMarkerName(this['activeMarker'])['id']===_0x3ec617&&scrollViewportToShowTarget({'target':_0x5c49c2[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x9119b){this['editor']['model']['change'](()=>{for(const _0x338bb4 of this['getAllMarkersForId'](_0x9119b))this['editor']['editing']['reconvertMarker'](_0x338bb4);});}['_attachArchivedThread'](_0x30a2bf){const _0x58f4af=this['editor']['plugins']['get'](CommentsRepository),_0x36cec0=this['editor']['plugins']['get'](EditorAnnotations),_0x2ca822=_0x58f4af['getCommentThread'](_0x30a2bf);if(!_0x2ca822['isAttached']){const _0x5f37c1=_0x2ca822['attachTo'](()=>this['_getTargetForId'](_0x2ca822['id']));_0x36cec0['registerAnnotation'](_0x5f37c1),_0x2ca822['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x15191b=this['editor'],_0x44af6e=_0x15191b['plugins']['get'](Users);_0x15191b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x4606e2,_0x59ca62)=>{const {id:_0x476763}=splitMarkerName(_0x4606e2['markerName']),_0x3511f0=_0x15191b['plugins']['get'](CommentsRepository)['getCommentThread'](_0x476763),_0x4cec41=this['activeMarker']&&splitMarkerName(this['activeMarker'])['id']===_0x476763;let _0x4153ab;if(_0x3511f0&&_0x3511f0['isResolved']&&!_0x4cec41&&_0x4606e2['item'])return _0x59ca62['consumable']['consume'](_0x4606e2['item'],'addMarker:'+_0x4606e2['markerName']),_0x59ca62['consumable']['consume'](_0x4606e2['item'],'removeMarker:'+_0x4606e2['markerName']),null;const _0x43e876=['ck-comment-marker'];return _0x4cec41&&_0x43e876['push']('ck-comment-marker--active'),_0x4153ab=_0x3511f0?.['length']?_0x3511f0['comments']['first']['author']['id']:_0x44af6e['me']['id'],{'classes':_0x43e876,'attributes':{'data-comment':_0x476763,'data-author-id':_0x4153ab}};}}),_0x15191b['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x39b4db,{options:_0x42b270})=>{if(_0x42b270['showCommentHighlights'])return null;const _0x6329be=_0x15191b['plugins']['get'](CommentsRepository),_0x1f168a=_0x15191b['model']['markers']['get'](_0x39b4db),{id:_0x2286db,part:_0x160431}=splitMarkerName(_0x39b4db);return _0x1f168a&&!_0x1f168a['affectsData']||_0x42b270['ignoreResolvedComments']&&_0x6329be['getCommentThread'](_0x2286db)?.['isResolved']?null:{'group':'comment','name':_0x160431?_0x2286db+':'+_0x160431:_0x2286db};}}),_0x15191b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x12ddab,{writer:_0x18ef80})=>_0x18ef80['createElement']('$marker',{'data-name':'comment:'+_0x12ddab['getAttribute']('id')})}),_0x15191b['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3920e1=this['editor'],_0x4bc083=_0x3920e1['plugins']['get'](CommentsRepository),_0x40c7af=new Set(),_0x561526=new Set();_0x3920e1['model']['document']['registerPostFixer'](_0x189e5d=>{let _0x44e822=!0x1;for(const {name:_0x1468a5,data:_0x50e30f}of _0x3920e1['model']['document']['differ']['getChangedMarkers']()){const {group:_0x4954de,id:_0x3d00e0}=splitMarkerName(_0x1468a5);let _0x385c9c=_0x50e30f['newRange'];if('comment'!==_0x4954de||!_0x385c9c)continue;const _0x274686='$graveyard'===_0x385c9c['root']['rootName'];_0x274686||(_0x385c9c=fixMarkerRange(_0x385c9c,_0x3920e1['model']),!_0x385c9c||_0x385c9c['isCollapsed']||!_0x50e30f['newRange']||_0x385c9c['isEqual'](_0x50e30f['newRange']))?_0x3920e1['model']['hasContent'](_0x385c9c)&&!_0x274686?this['isThreadsLoadingPaused']?_0x40c7af['add'](_0x1468a5):this['_handleThreadMarker'](_0x1468a5,_0x3d00e0):(_0x561526['add'](_0x1468a5),_0x40c7af['delete'](_0x1468a5),_0x189e5d['removeMarker'](_0x1468a5),_0x44e822=!0x0):(_0x189e5d['updateMarker'](_0x1468a5,{'range':_0x385c9c}),_0x44e822=!0x0);}return _0x44e822;}),this['on']('change:isThreadsLoadingPaused',(_0x3c5226,_0x136cec,_0x2f0888)=>{if(!_0x2f0888&&_0x40c7af['size'])for(const _0xf8f528 of _0x40c7af){const {id:_0x3df6ce}=splitMarkerName(_0xf8f528);_0x40c7af['delete'](_0xf8f528),_0x3920e1['model']['markers']['get'](_0xf8f528)&&this['_handleThreadMarker'](_0xf8f528,_0x3df6ce);}}),this['listenTo'](_0x3920e1['model']['document'],'change',()=>{for(const {name:_0x3a721c,data:{newRange:_0x2f25c2}}of _0x3920e1['model']['document']['differ']['getChangedMarkers']()){const {group:_0x270699,id:_0x359e6d}=splitMarkerName(_0x3a721c);if('comment'!==_0x270699)continue;const _0x2d54a0=_0x4bc083['getCommentThread'](_0x359e6d),_0x1fb6aa=this['hasMarkerForId'](_0x359e6d);_0x2d54a0&&(!_0x2d54a0['_hasTargetInContent']&&_0x2f25c2&&_0x3920e1['editing']['view']['once']('render',()=>{const _0xe3dbe0=_0x3920e1['plugins']['get'](Annotations),_0x5c9067=_0x4bc083['_threadToController']['get'](_0x2d54a0)['view'];_0xe3dbe0['getByInnerView'](_0x5c9067)['refreshVisibility']();},{'priority':'low'}),_0x2d54a0['_hasTargetInContent']=_0x1fb6aa||!!_0x2f25c2),_0x2f25c2||(_0x561526['add'](_0x3a721c),_0x40c7af['delete'](_0x3a721c));}for(const _0x151b10 of _0x561526){const {id:_0x2efca7}=splitMarkerName(_0x151b10),_0x1f801b=_0x4bc083['getCommentThread'](_0x2efca7);if(_0x40c7af['delete'](_0x151b10),!_0x1f801b)continue;const _0x3b0e40=this['hasMarkerForId'](_0x2efca7);_0x3b0e40||_0x1f801b['isSubmitted']?_0x3b0e40||_0x1f801b['unlinkedAt']||_0x1f801b['setUnlinkedAt'](new Date()):_0x1f801b['remove']();}_0x561526['clear']();});}['_handleInitialThreads'](_0x3593f0){_0x3593f0['forEach'](_0x3ea807=>{_0x3ea807['unlinkedAt']&&this['_attachArchivedThread'](_0x3ea807['id']);});}['_getTargetForId'](_0x26f84c){const _0x387373=this['editor'],_0xbf6277=this['getAllMarkersForId'](_0x26f84c);return getAllMarkersDomElementsSorted(_0x387373['editing'],_0xbf6277);}['_getTextContext'](_0x2f4bf8){const _0x44665b=this['getAllMarkersForId'](_0x2f4bf8);let _0x451dc6='',_0x9c2cd8=!0x1;for(const _0x41669d of _0x44665b){const _0x3e60de=_0x41669d['getRange']();for(const _0x108341 of Array['from'](_0x3e60de['getItems']()))_0x108341['is']('$textProxy')?(_0x451dc6&&_0x9c2cd8&&(_0x451dc6+='\x20',_0x9c2cd8=!0x1),_0x451dc6+=_0x108341['data']):_0x9c2cd8=!0x0;_0x9c2cd8=!0x0;}return _0x451dc6['substring'](0x0,MAX_CONTEXT_LENGTH);}['_attachMarkerToThread'](_0x1c55a3,_0x5c7ee5){const _0x2697f5=this['editor'],_0x1b164d=_0x2697f5['plugins']['get'](CommentsRepository);let _0x537559=_0x1b164d['getCommentThread'](_0x5c7ee5);const _0x51debb=_0x2697f5['config']['get']('collaboration.channelId'),_0x138a58=_0x2697f5['plugins']['get'](EditorAnnotations);if(_0x537559&&(_0x537559['unlinkedAt']&&_0x537559['setUnlinkedAt'](null),_0x537559['isAttached']))return _0x537559;return!this['getAllMarkersForId'](_0x5c7ee5)[0x0]['managedUsingOperations']?_0x2697f5['editing']['view']['once']('render',()=>{if(_0x1b164d['getCommentThread'](_0x5c7ee5))return;const _0x1b6712=_0x2697f5['plugins']['get'](Annotations);_0x537559=_0x1b164d['openNewCommentThread']({'channelId':_0x51debb,'threadId':_0x5c7ee5,'target':()=>this['_getTargetForId'](_0x5c7ee5),'context':{'type':'text','value':this['_getTextContext'](_0x5c7ee5)}});const _0x4c3bc8=_0x1b164d['_threadToController']['get'](_0x537559)['view'],_0x21ed68=_0x1b6712['getByInnerView'](_0x4c3bc8);_0x21ed68&&_0x138a58['registerAnnotation'](_0x21ed68);},{'priority':'low'}):_0x1b164d['fetchCommentThread']({'channelId':_0x51debb,'threadId':_0x5c7ee5})['then'](_0x586b10=>{if('destroyed'!==_0x2697f5['state']){if(_0x537559=_0x586b10,_0x537559&&!_0x537559['isAttached']){const _0x355f80=_0x537559['attachTo'](()=>this['_getTargetForId'](_0x5c7ee5));_0x138a58['registerAnnotation'](_0x355f80),_0x537559['isResolved']&&this['_reconvertMarkers'](_0x5c7ee5);}else{if(!_0x537559){const _0x4a0af4=this['getAllMarkersForId'](_0x5c7ee5);_0x2697f5['model']['change'](_0x173b8d=>{for(const _0x43b8cb of _0x4a0af4)_0x173b8d['removeMarker'](_0x43b8cb);});}}}}),_0x537559;}['_handleThreadMarker'](_0x480af5,_0xe25920){const _0x9aed47=this['_attachMarkerToThread'](_0x480af5,_0xe25920);_0x9aed47&&!_0x9aed47['context']&&_0x9aed47['setContext']({'type':'text','value':this['_getTextContext'](_0xe25920)});}['_initAriaMarkerChangeAnnouncements'](){const _0x12b67d=this['editor'];surroundingMarkersDetector(_0x12b67d['model'],({left:_0x26bf1d,entered:_0x2a049b})=>{for(const _0x451773 of _0x26bf1d)if(isCommentMarker(_0x451773)){_0x12b67d['ui']['ariaLiveAnnouncer']['announce'](getTranslation$f(_0x12b67d['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x186db4 of _0x2a049b)if(isCommentMarker(_0x186db4)){_0x12b67d['ui']['ariaLiveAnnouncer']['announce'](getTranslation$f(_0x12b67d['locale'],'ENTER_COMMENT_ANNOUNCEMENT',getEnvKeystrokeText(FOCUS_ANNOTATION_KEYSTROKE)));break;}});}}function createChannelEvent(_0x31f4fb,_0x8703f6){return _0x8703f6?_0x31f4fb+':'+_0x8703f6:_0x31f4fb;}function fixMarkerRange(_0x1b4bb9,_0x24d359){const _0x258b03=_0x24d359['schema'],_0xc37df1=_0x24d359['createRange'](_0x1b4bb9['start']);for(const _0x600a21 of _0x1b4bb9['getWalker']()){const {type:_0x1da2fc,item:_0x3c7430,nextPosition:_0x4e7043}=_0x600a21;if('text'===_0x1da2fc||_0x258b03['isObject'](_0x3c7430)){const _0x152ce6=_0x24d359['createPositionBefore'](_0x3c7430);_0xc37df1['isCollapsed']&&(_0xc37df1['start']=_0x152ce6),_0xc37df1['end']=_0x4e7043;}}return _0xc37df1;}function isCommentMarker(_0x51301d){return'comment'===splitMarkerName(_0x51301d['name'])['group'];}async function checkLicense$h(_0x5e358f){const _0x372cf4=_0x12be92([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]),_0x9b6c4b=window[_0x12be92([0x44,0x61,0x74,0x65])][_0x12be92([0x6e,0x6f,0x77])](),_0x4f7039=_0x5e358f[_0x12be92([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x16ea36=new window[(_0x12be92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cecdf=>{_0x4f7039[_0x12be92([0x6f,0x6e,0x63,0x65])](_0x12be92([0x72,0x65,0x61,0x64,0x79]),_0x3cecdf);}),_0x2a11d1={[_0x12be92([0x6b,0x74,0x79])]:_0x12be92([0x45,0x43]),[_0x12be92([0x75,0x73,0x65])]:_0x12be92([0x73,0x69,0x67]),[_0x12be92([0x63,0x72,0x76])]:_0x12be92([0x50,0x2d,0x32,0x35,0x36]),[_0x12be92([0x78])]:_0x12be92([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]),[_0x12be92([0x79])]:_0x12be92([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]),[_0x12be92([0x61,0x6c,0x67])]:_0x12be92([0x45,0x53,0x32,0x35,0x36])},_0x7f0940=_0x4f7039[_0x12be92([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x12be92([0x67,0x65,0x74])](_0x12be92([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x5dcbfc=await(async function(){let _0x569712,_0x5da071=null,_0x39842a=null;try{if(_0x7f0940==_0x12be92([0x47,0x50,0x4c]))return _0x12be92([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x569712=(function(){const _0x57c43d=_0x7f0940[_0x12be92([0x73,0x70,0x6c,0x69,0x74])](_0x12be92([0x2e]));if(0x3!=_0x57c43d[_0x12be92([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x45b8b0=_0x57c43d[0x1];return _0x4c1c83(_0x45b8b0);function _0x4c1c83(_0x251f51){const _0x3c0f21=_0x2ea3e2(_0x251f51);return _0x3c0f21&&_0x5ea99()?_0x3c0f21:null;function _0x5ea99(){const _0x3ec3d8=_0x3c0f21[_0x12be92([0x6a,0x74,0x69])],_0x663bc4=window[_0x12be92([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ec3d8[_0x12be92([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ec3d8[_0x12be92([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d68f0={..._0x3c0f21,[_0x12be92([0x6a,0x74,0x69])]:_0x3ec3d8[_0x12be92([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ec3d8[_0x12be92([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d68f0[_0x12be92([0x76,0x63])],_0x257f55(_0x1d68f0)==_0x663bc4;}}}()),!_0x569712)return _0x12be92([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x569712[_0x12be92([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x39842a=function(_0x3eeb53,_0x5b3c9d){return new window[(_0x12be92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x409606=>{if(_0x3e4922())return _0x409606(_0x12be92([0x56,0x61,0x6c,0x69,0x64]));_0x40d7f2(),_0x4f7039[_0x12be92([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x12be92([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x56c683=!0x1;const _0x14d4db=uid();function _0x3be495(_0x2d6c72){return!!_0x2d6c72&&(typeof _0x2d6c72===_0x12be92([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2d6c72===_0x12be92([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2d6c72[_0x12be92([0x74,0x68,0x65,0x6e])]===_0x12be92([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2d6c72[_0x12be92([0x63,0x61,0x74,0x63,0x68])]===_0x12be92([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1da19e(_0x56deff){_0x995ab8(_0x56deff)[_0x12be92([0x74,0x68,0x65,0x6e])](_0xb552cd=>{if(!_0xb552cd||_0xb552cd[_0x12be92([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x12be92([0x6f,0x6b]))return _0x12be92([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x510f88(_0x257f55(_0x14d4db+_0x5b3c9d))!=_0xb552cd[_0x12be92([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x12be92([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x12be92([0x56,0x61,0x6c,0x69,0x64]);})[_0x12be92([0x74,0x68,0x65,0x6e])](_0x456971=>(_0x4438ed(),_0x456971),()=>{const _0x4fb16f=_0x15bb86();return null==_0x4fb16f?(_0x4438ed(),_0x12be92([0x56,0x61,0x6c,0x69,0x64])):_0x12be92(_0x9b6c4b-_0x4fb16f>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x12be92([0x74,0x68,0x65,0x6e])](_0x409606)[_0x12be92([0x63,0x61,0x74,0x63,0x68])](()=>{_0x409606(_0x12be92([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5dc0b0=0x36ee80;function _0x4438ed(){const _0x86104a=_0x12be92([0x6c,0x6c,0x63,0x74,0x2d])+_0x510f88(_0x257f55(_0x3eeb53)),_0xb55399=_0x1e6f22(_0x510f88(window[_0x12be92([0x4d,0x61,0x74,0x68])][_0x12be92([0x63,0x65,0x69,0x6c])](_0x9b6c4b/_0x5dc0b0)));window[_0x12be92([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12be92([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x86104a,_0xb55399);}function _0x15bb86(){const _0x3870a5=_0x12be92([0x6c,0x6c,0x63,0x74,0x2d])+_0x510f88(_0x257f55(_0x3eeb53)),_0x418fea=window[_0x12be92([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12be92([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3870a5);return _0x418fea?window[_0x12be92([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e6f22(_0x418fea),0x10)*_0x5dc0b0:null;}function _0x995ab8(_0x52c79f){return new window[(_0x12be92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b7e53,_0x21756b)=>{_0x52c79f[_0x12be92([0x74,0x68,0x65,0x6e])](_0x4b7e53,_0x21756b),window[_0x12be92([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21756b,0x1d4c0);});}}_0x4f7039[_0x12be92([0x6f,0x6e])](_0x12be92([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2a676f,_0x53bc53)=>{if(_0x53bc53[0x0]!=_0x3eeb53)return _0x409606(_0x12be92([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x53bc53[0x1]={..._0x53bc53[0x1],[_0x12be92([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14d4db};},{[_0x12be92([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12be92([0x68,0x69,0x67,0x68])}),_0x4f7039[_0x12be92([0x6f,0x6e])](_0x12be92([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1eb33a=>{_0x3be495(_0x1eb33a[_0x12be92([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x56c683=!0x0,_0x1da19e(_0x1eb33a[_0x12be92([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x12be92([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12be92([0x6c,0x6f,0x77])}),_0x16ea36[_0x12be92([0x74,0x68,0x65,0x6e])](()=>{_0x56c683||_0x409606(_0x12be92([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e4922(){return _0x4f7039[_0x12be92([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12be92([0x76,0x69,0x65,0x77])][_0x12be92([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x12be92([0x61,0x75,0x74,0x6f]);}function _0x40d7f2(){_0x4f7039[_0x12be92([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12be92([0x76,0x69,0x65,0x77])][_0x12be92([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x12be92([0x61,0x75,0x74,0x6f]);}}(_0x569712[_0x12be92([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x569712[_0x12be92([0x6a,0x74,0x69])]));const _0x3d64ef=await(async function(){let _0x46e44b=!0x0;try{const _0x1bbd0d=_0x7f0940[_0x12be92([0x73,0x70,0x6c,0x69,0x74])](_0x12be92([0x2e])),[_0x55bb5f,_0xe92bcd,_0x4b9b19]=_0x1bbd0d;return _0x15e38b(_0x55bb5f),await _0x1f4cef(_0x55bb5f,_0xe92bcd,_0x4b9b19),_0x46e44b;}catch{return!0x1;}function _0x15e38b(_0x4efd4e){const _0x35cfdc=_0x2ea3e2(_0x4efd4e);_0x35cfdc&&_0x35cfdc[_0x12be92([0x61,0x6c,0x67])]==_0x12be92([0x45,0x53,0x32,0x35,0x36])||(_0x46e44b=!0x1);}async function _0x1f4cef(_0x2b867b,_0x3df29a,_0x666dba){const _0x5ed8e3=window[_0x12be92([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x12be92([0x66,0x72,0x6f,0x6d])](_0x3e7540(_0x666dba),_0x55145b=>_0x55145b[_0x12be92([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x14e8d8=new window[(_0x12be92([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x12be92([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b867b+_0x12be92([0x2e])+_0x3df29a),_0x4e050d=window[_0x12be92([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x12be92([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e050d)return;const _0x127c21=await _0x4e050d[_0x12be92([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x12be92([0x6a,0x77,0x6b]),_0x2a11d1,{[_0x12be92([0x6e,0x61,0x6d,0x65])]:_0x12be92([0x45,0x43,0x44,0x53,0x41]),[_0x12be92([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x12be92([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x12be92([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e050d[_0x12be92([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x12be92([0x6e,0x61,0x6d,0x65])]:_0x12be92([0x45,0x43,0x44,0x53,0x41]),[_0x12be92([0x68,0x61,0x73,0x68])]:{[_0x12be92([0x6e,0x61,0x6d,0x65])]:_0x12be92([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x127c21,_0x5ed8e3,_0x14e8d8)||(_0x46e44b=!0x1);}}());return _0x3d64ef?(function(){const _0x2cf5d5=_0x569712[_0x12be92([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2cf5d5)return!0x1;if(_0x2cf5d5[_0x12be92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12be92([0x2a])))return!0x0;if(_0x2cf5d5[_0x12be92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12be92([0x43,0x4d,0x54])))return!0x0;if(_0x2cf5d5[_0x12be92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12be92([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x12be92([0x67,0x6c,0x6f,0x62])]&&window[_0x12be92([0x67,0x6c,0x6f,0x62])][_0x12be92([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;if(_0x2cf5d5[_0x12be92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12be92([0x52,0x43,0x4d,0x54]))){if(_0x3f7cd6(_0x12be92([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&(_0x4b72be=_0x12be92([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]),_0x4f7039[_0x12be92([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x12be92([0x67,0x65,0x74])](_0x4b72be))[_0x12be92([0x73,0x74,0x61,0x74,0x65])]==_0x12be92([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0x3f7cd6(_0x12be92([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]))||_0x3f7cd6(_0x12be92([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 _0x4b72be;return!0x1;}())?(function(){const _0x779644=[_0x12be92([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x12be92([0x74,0x72,0x69,0x61,0x6c])][_0x12be92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x569712[_0x12be92([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9b6c4b/0x3e8:0x69e96100;return _0x569712[_0x12be92([0x65,0x78,0x70])]<_0x779644;}())?_0x12be92([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x32da8e=_0x569712[_0x12be92([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x32da8e||0x0==_0x32da8e[_0x12be92([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x147da4}=new URL(window[_0x12be92([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x32da8e[_0x12be92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x147da4))return!0x0;const _0x11b731=_0x147da4[_0x12be92([0x73,0x70,0x6c,0x69,0x74])](_0x12be92([0x2e]));return _0x32da8e[_0x12be92([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x56a0bf=>_0x56a0bf[_0x12be92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12be92([0x2a])))[_0x12be92([0x6d,0x61,0x70])](_0x10691a=>_0x10691a[_0x12be92([0x73,0x70,0x6c,0x69,0x74])](_0x12be92([0x2e])))[_0x12be92([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51dd62=>_0x51dd62[_0x12be92([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x11b731[_0x12be92([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x12be92([0x6d,0x61,0x70])](_0x21a002=>Array(_0x11b731[_0x12be92([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x21a002[_0x12be92([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x12be92([0x66,0x69,0x6c,0x6c])](_0x21a002[0x0]===_0x12be92([0x2a])?_0x12be92([0x2a]):'')[_0x12be92([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x21a002))[_0x12be92([0x73,0x6f,0x6d,0x65])](_0x5db163=>_0x11b731[_0x12be92([0x65,0x76,0x65,0x72,0x79])]((_0x2cd226,_0x49de5b)=>_0x5db163[_0x49de5b]===_0x2cd226||_0x5db163[_0x49de5b]===_0x12be92([0x2a])));}())?(_0x569712[_0x12be92([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12be92([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5da071=function(_0x1ce3bb){const _0x4c9051=new window[(_0x12be92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x281227=>setTimeout(_0x281227,0x93ecc)),_0x522fe6=_0x16ea36[_0x12be92([0x74,0x68,0x65,0x6e])](()=>new window[(_0x12be92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x548403=>{let _0x13a2c3=0x0;_0x4f7039[_0x12be92([0x6d,0x6f,0x64,0x65,0x6c])][_0x12be92([0x6f,0x6e])](_0x12be92([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x16911b,_0x537fe5)=>{_0x537fe5[0x0][_0x12be92([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x13a2c3++,0x5e8==_0x13a2c3&&(_0x548403(),_0x16911b[_0x12be92([0x6f,0x66,0x66])]());});})),_0x3dc669=[_0x4c9051,_0x522fe6];return window[_0x12be92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x12be92([0x72,0x61,0x63,0x65])](_0x3dc669)[_0x12be92([0x74,0x68,0x65,0x6e])](()=>_0x1ce3bb);}(_0x12be92([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x5da071&&_0x39842a)return new window[(_0x12be92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2493bc,_0x101918)=>{_0x5da071[_0x12be92([0x74,0x68,0x65,0x6e])](_0x2493bc,_0x101918),_0x39842a[_0x12be92([0x74,0x68,0x65,0x6e])](_0x11ded4=>{_0x11ded4!=_0x12be92([0x56,0x61,0x6c,0x69,0x64])&&_0x2493bc(_0x11ded4);},_0x101918);});return _0x5da071||_0x39842a||_0x12be92([0x56,0x61,0x6c,0x69,0x64]);}())):_0x12be92([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x12be92([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x12be92([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x12be92([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x2ea3e2(_0x22daf1){return _0x22daf1[_0x12be92([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x12be92([0x65,0x79]))?JSON[_0x12be92([0x70,0x61,0x72,0x73,0x65])](_0x3e7540(_0x22daf1)):null;}function _0x3e7540(_0x4e744d){return window[_0x12be92([0x61,0x74,0x6f,0x62])](_0x4e744d[_0x12be92([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x12be92([0x2b]))[_0x12be92([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x12be92([0x2f])));}function _0x257f55(_0x5e1ae7){let _0x4592c8=0x1505;function _0xf3e4e4(_0x25478c){for(let _0x2e9f38=0x0;_0x2e9f38<_0x25478c[_0x12be92([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e9f38++){const _0x16a9e6=_0x25478c[_0x12be92([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e9f38);_0x4592c8=(_0x4592c8<<0x5)+_0x4592c8+_0x16a9e6,_0x4592c8&=_0x4592c8;}}return function _0x1f663d(_0xd11a03){Array[_0x12be92([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd11a03)?_0xd11a03[_0x12be92([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f663d):_0xd11a03&&typeof _0xd11a03==_0x12be92([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x12be92([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd11a03)[_0x12be92([0x73,0x6f,0x72,0x74])]()[_0x12be92([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3d21fa,_0x6be3aa])=>{_0xf3e4e4(_0x3d21fa),_0x1f663d(_0x6be3aa);}):_0xf3e4e4(window[_0x12be92([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd11a03));}(_0x5e1ae7),_0x4592c8>>>0x0;}function _0x510f88(_0x4613d4){return _0x4613d4[_0x12be92([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x12be92([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x12be92([0x30]));}function _0x1e6f22(_0x324017){return _0x324017[_0x12be92([0x73,0x70,0x6c,0x69,0x74])]('')[_0x12be92([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x12be92([0x6a,0x6f,0x69,0x6e])]('');}function _0x3f7cd6(_0x47f99c){return _0x4f7039[_0x12be92([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x12be92([0x68,0x61,0x73])](_0x47f99c);}function _0x421d9c(){}function _0x12be92(_0xb1a35c){return _0xb1a35c['map'](_0x3f0176=>String['fromCharCode'](_0x3f0176))['join']('');}!function(_0x558696){const _0x118312=(function(){const _0x31392b=window[_0x12be92([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x12be92([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x12be92([0x6e,0x6f,0x77])]())[_0x12be92([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x12be92([0x2e]),'');let _0x230bd9=_0x12be92([0x4b]);for(let _0x330bc4=0x0;_0x330bc4<_0x31392b[_0x12be92([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x330bc4+=0x2){let _0x11ee64=window[_0x12be92([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31392b[_0x12be92([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x330bc4,_0x330bc4+0x2));_0x11ee64>=_0x372cf4[_0x12be92([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x11ee64-=_0x372cf4[_0x12be92([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x230bd9+=_0x372cf4[_0x11ee64];}return _0x230bd9;}());_0x4f7039[_0x118312]=_0x12be92([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x558696,_0x558696!=_0x12be92([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x16ea36,_0x4f7039[_0x12be92([0x6d,0x6f,0x64,0x65,0x6c])][_0x12be92([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x421d9c,_0x4f7039[_0x12be92([0x6d,0x6f,0x64,0x65,0x6c])][_0x12be92([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x421d9c,_0x4f7039[_0x12be92([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x12be92([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x5dcbfc);}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 _0x4edbf0=this['editor'],_0xb8e961=_0x4edbf0['plugins']['get'](CommentsRepository),_0x5771a8=_0x4edbf0['plugins']['get'](CommentsEditing),_0xa139ce=_0x4edbf0['plugins']['get'](Annotations),_0x4e7f77=_0x4edbf0['plugins']['get'](EditorAnnotations);_0x4edbf0['ui']['componentFactory']['add']('comment',()=>{const _0x5385d0=this['_createUIButton'](ButtonView);return _0x5385d0['tooltip']=!0x0,_0x5385d0;}),_0x4edbf0['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](MenuBarMenuListItemButtonView)),_0x4e7f77['addSourceCollector'](()=>{const _0x574673=[];for(const [_0x5b912f,_0x3ecc48]of _0xb8e961['_threadToController']){const _0x43f806=_0x5771a8['getAllMarkersForId'](_0x5b912f['id']),_0x158f54=_0x43f806['map'](_0x522155=>_0x522155['getRange']());_0x43f806['length']>0x0&&_0x574673['push']([_0x3ecc48['view'],_0x158f54]);}return _0x574673;}),this['listenTo'](_0xa139ce,'change:activeAnnotations',(_0x36d8e1,_0x1db18f,_0xc3e7f0)=>{const _0x59b177=Array['from'](_0xc3e7f0)['map'](_0x3f7187=>_0x3f7187['innerView'])['find'](_0x24e7cf=>_0xb8e961['_viewToController']['has'](_0x24e7cf));if(!_0x59b177)return void(_0x5771a8['activeMarker']=null);const _0xda0dc=_0xb8e961['_viewToController']['get'](_0x59b177)['model']['id'],_0x5d269a='comment:'+_0xda0dc;_0xda0dc&&_0x5771a8['hasMarkerForId'](_0xda0dc)?_0x5771a8['activeMarker']=_0x5d269a:_0x5771a8['activeMarker']&&(_0x5771a8['activeMarker']=null);}),this['listenTo'](_0xb8e961,'removeCommentThread',(_0x469452,{threadId:_0x2d0ed1,isFromAdapter:_0x4c09bb})=>{!_0x4c09bb&&_0x4edbf0['ui']['focusTracker']['isFocused']&&_0x5771a8['hasMarkerForId'](_0x2d0ed1)&&_0x4edbf0['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0xb8e961,'addComment',(_0x5b56c6,{threadId:_0x4aee1c,isFromAdapter:_0x108c23})=>{if(_0x108c23||!_0x5771a8['hasMarkerForId'](_0x4aee1c)||!_0xb8e961['hasCommentThread'](_0x4aee1c))return;0x1===_0xb8e961['getCommentThread'](_0x4aee1c)['length']&&(_0x4edbf0['editing']['view']['focus'](),_0x5b56c6['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a9755=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x114126;for(const _0x2897b6 in _0x3a9755){const _0x555e85=_0x2897b6,_0x17d914=_0x3a9755[_0x555e85];if('commentsLicenseKeyValid'==_0x17d914||'commentsLicenseKeyInvalid'==_0x17d914||'commentsLicenseKeyExpired'==_0x17d914||'commentsLicenseKeyDomainLimit'==_0x17d914||'commentsLicenseKeyNotAllowed'==_0x17d914||'commentsLicenseKeyEvaluationLimit'==_0x17d914||'commentsLicenseKeyUsageLimit'==_0x17d914){delete _0x3a9755[_0x555e85],_0x114126=_0x17d914,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x114126&&_0x3a9755['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x114126&&_0x3a9755['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x114126&&_0x3a9755['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x114126&&_0x3a9755['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x114126&&_0x3a9755['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x114126&&_0x3a9755['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x49b0e6){const _0x2aef12=this['editor'],_0x48fb70=new _0x49b0e6(_0x2aef12['locale']),_0x299b63=_0x2aef12['commands']['get']('addCommentThread');return _0x48fb70['set']({'label':getTranslation$f(_0x2aef12['locale'],'Comment'),'icon':IconAddComment}),_0x48fb70['bind']('isEnabled')['to'](_0x299b63,'isEnabled',_0x299b63,'hasContent',(_0x2650c9,_0x28eab5)=>_0x2650c9&&_0x28eab5),this['listenTo'](_0x48fb70,'execute',()=>{_0x299b63['execute']();}),_0x48fb70;}}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(_0x35a363){super(_0x35a363),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x2ef77f,_0x45b8ef,_0x91949d)=>{_0x91949d?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x5bcc31,_0x31675c]of this['editor']['commands'])_0x31675c['affectsData']&&'addCommentThread'!==_0x5bcc31&&_0x31675c['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x31f180=this['editor']['editing']['view']['document'];this['listenTo'](_0x31f180,'cut',_0x4c6ca3=>_0x4c6ca3['stop'](),{'priority':'highest'}),this['listenTo'](_0x31f180,'clipboardInput',_0x566ac9=>_0x566ac9['stop'](),{'priority':'highest'}),this['listenTo'](_0x31f180,'delete',_0x1e9bcf=>_0x1e9bcf['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x5112b9,_0x280656]of this['editor']['commands'])_0x280656['affectsData']&&'addCommentThread'!==_0x5112b9&&_0x280656['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['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(_0x25ef82){super(_0x25ef82),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x4981b0=this['context']['plugins']['get'](Annotations);this['listenTo'](_0x4981b0,'_activateAnnotation',(_0x4b54c2,_0x5cf64a)=>{for(const _0x4f374a of this['activeUIs']){const _0xce36fa=this['_uis']['get'](_0x4f374a);(0x0,this['uisData']['get'](_0x4f374a)['filter'])(_0x5cf64a)&&_0xce36fa['setActiveAnnotation'](_0x5cf64a);}}),this['listenTo'](_0x4981b0,'_deactivateAllAnnotations',()=>{for(const _0x2cb2f8 of this['activeUIs']){this['_uis']['get'](_0x2cb2f8)['setActiveAnnotation'](null);}}),this['listenTo'](_0x4981b0['_visibleAnnotations'],'add',(_0x350fc0,_0xfb2f1f)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xfb2f1f);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x4ee200){return this['activeUIs']['has'](_0x4ee200);}['activate'](_0x4174bc,_0x181c5b=this['defaultFilter']){const _0x46e536=this['context']['plugins']['get'](Annotations);if(!this['_uis']['has'](_0x4174bc))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0x4174bc});this['isActive'](_0x4174bc)&&this['deactivate'](_0x4174bc),this['activeUIs']['add'](_0x4174bc);const _0x2a3f0a=new AnnotationCollection();bindAnnotationCollections({'source':_0x46e536['_visibleAnnotations'],'target':_0x2a3f0a,'filter':_0x181c5b}),this['uisData']['set'](_0x4174bc,{'collection':_0x2a3f0a,'filter':_0x181c5b});const _0x3c30ab=this['_uis']['get'](_0x4174bc);_0x3c30ab['attach'](_0x2a3f0a),this['listenTo'](_0x3c30ab,'change:activeAnnotation',(_0x356402,_0xa4bf23,_0x30a90c,_0x3f9a5b)=>{_0x3f9a5b&&_0x46e536['_removeActiveAnnotation'](_0x3f9a5b),_0x30a90c&&_0x46e536['_addActiveAnnotation'](_0x30a90c);});}['deactivate'](_0x311dad){if(this['activeUIs']['delete'](_0x311dad),!this['_uis']['has'](_0x311dad))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0x311dad});const _0x375e8a=this['_uis']['get'](_0x311dad);_0x375e8a['detach'](),this['stopListening'](_0x375e8a),this['uisData']['get'](_0x311dad)['collection']['destroy'](),this['uisData']['delete'](_0x311dad);}['switchTo'](_0x563f4d){if(!this['_uis']['has'](_0x563f4d))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0x563f4d});const _0x35b980=this['context']['plugins']['get'](Annotations),_0x32f704=Array['from'](_0x35b980['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x563f4d);const _0x14fc3b=this['_uis']['get'](_0x563f4d);_0x14fc3b['setActiveAnnotation'](_0x32f704),_0x14fc3b['_setSelectedAnnotations']&&_0x32f704&&_0x14fc3b['_setSelectedAnnotations']([_0x32f704]);}['deactivateAll'](){for(const _0x216afb of this['activeUIs'])this['deactivate'](_0x216afb);}['register'](_0x3f2133,_0x35170e){if(this['_uis']['has'](_0x3f2133))throw new CKEditorError('annotationsuis-register-already-registered');if('function'!=typeof _0x35170e['attach']||'function'!=typeof _0x35170e['detach']||'function'!=typeof _0x35170e['setActiveAnnotation'])throw new CKEditorError('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x3f2133,_0x35170e);}['refilterAnnotations'](){const _0x33117a=this['context']['plugins']['get'](Annotations)['collection'],_0x1b1656=new Map(),_0x2b4464=Array['from'](this['activeUIs']);for(const _0x3111f3 of this['activeUIs']){const _0x50cc5f=this['uisData']['get'](_0x3111f3)['collection'];for(const _0xad479a of _0x50cc5f)_0x1b1656['set'](_0xad479a,_0x3111f3);}for(const _0x116224 of _0x33117a){const _0x4d1a26=_0x1b1656['get'](_0x116224);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x116224);const _0x37248a=_0x2b4464['find'](_0x2f5d38=>this['uisData']['get'](_0x2f5d38)['filter'](_0x116224));_0x4d1a26!==_0x37248a&&(_0x4d1a26&&this['uisData']['get'](_0x4d1a26)['collection']['remove'](_0x116224),_0x37248a&&this['uisData']['get'](_0x37248a)['collection']['add'](_0x116224));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x9797c4){const _0x1402bf=[];for(const _0x32824d of this['activeUIs']){(0x0,this['uisData']['get'](_0x32824d)['filter'])(_0x9797c4)&&_0x1402bf['push'](_0x32824d);}if(_0x1402bf['length']>0x1)throw new CKEditorError('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x1402bf,'annotationType':_0x9797c4['type']});}}const toPx$2=/* #__PURE__ -- @preserve */
toUnit('px');class AnnotationsSidebarView extends View{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x2624f6){super(_0x2624f6);const _0x196610=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',_0x196610['to']('class')],'style':{'minHeight':_0x196610['to']('minHeight',_0x14abe7=>'number'==typeof _0x14abe7?toPx$2(_0x14abe7+0xa):null)},'dir':_0x2624f6['uiLanguageDirection'],'role':'application','aria-label':getTranslation$f(_0x2624f6,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':getTranslation$f(_0x2624f6,'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',_0x296f25=>{this['_updateItemPositionInFocusables'](_0x296f25['source']);}),this['list']['forEach'](_0x38f4db=>{this['focusTracker']['add'](_0x38f4db['element']),this['_updateItemPositionInFocusables'](_0x38f4db);}),this['list']['on']('change',(_0x291f6f,_0x277698)=>{for(const _0x1ed82f of _0x277698['removed'])this['focusTracker']['remove'](_0x1ed82f['element']),this['focusables']['remove'](_0x1ed82f);for(const _0x220a54 of _0x277698['added'])this['focusTracker']['add'](_0x220a54['element']),this['_updateItemPositionInFocusables'](_0x220a54);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x38ccef){const _0x1c484f=this['focusables']['getIndex'](_0x38ccef);let _0x1625fd,_0xf30eac;for(const _0x43d353 of this['focusables'])if(_0x38ccef['top']<_0x43d353['top']){_0x1625fd=_0x43d353;break;}if(_0xf30eac=_0x1625fd?this['focusables']['getIndex'](_0x1625fd):this['focusables']['length'],-0x1!==_0x1c484f){if(_0x1c484f===_0xf30eac-0x1)return;this['focusables']['remove'](_0x38ccef),_0xf30eac=_0x1625fd?this['focusables']['getIndex'](_0x1625fd):this['focusables']['length'];}this['focusables']['add'](_0x38ccef,_0xf30eac);}}const toPx$1=/* #__PURE__ -- @preserve */
toUnit('px');class AnnotationsSidebarItemView extends View{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x13db13){super(_0x13db13),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x5e8e09,_0x4c5f96)=>_0x5e8e09+_0x4c5f96),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=createMutationObserver(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x1ff797=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x1ff797['to']('isAnimationDisabled',_0x293f42=>_0x293f42?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x1ff797['to']('top',_0x21b669=>toPx$1(_0x21b669))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x23ba9b=this['element']['clientHeight'];_0x23ba9b&&(this['height']=_0x23ba9b);}['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(_0xf30cf8){super(_0xf30cf8),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 _0x45c40d=this['context']['config']['get']('sidebar.container');_0x45c40d&&this['setContainer'](_0x45c40d);}['setContainer'](_0x9f32b6){if(!isElement(_0x9f32b6))throw new CKEditorError('sidebar-setcontainer-invalid-element');this['container']=_0x9f32b6;}['_attachToContainer']({viewClass:_0x291a27='',spaceBetweenItems:_0x3f6060=0x19}={}){if(!isElement(this['container']))throw new CKEditorError('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x291a27,this['_spaceBetweenItems']=_0x3f6060;}['rearrange']({removedAnnotation:_0x1784d4,previousAnnotation:_0x5a84c2,nextAnnotation:_0x3af5b6}){const _0x1f22b4=this['getSidebarItemView'](_0x1784d4);this['view']['list']['remove'](_0x1f22b4),this['_destroySidebarItemView'](_0x1784d4),_0x5a84c2&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x5a84c2)),_0x3af5b6&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3af5b6)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x349f6d,activatedAnnotation:_0x3b0c73,disableAnimationOnActivatedAnnotation:_0x5da645}){if(this['_activeAnnotation']=_0x3b0c73,_0x349f6d){_0x349f6d['isActive']=!0x1;const _0x442fa5=this['getSidebarItemView'](_0x349f6d);_0x442fa5&&_0x5da645&&(_0x442fa5['isAnimationDisabled']=!0x1);}if(_0x3b0c73){const _0x26f83d=this['getSidebarItemView'](_0x3b0c73);_0x26f83d&&(_0x3b0c73['isActive']=!0x0,_0x5da645&&(_0x26f83d['isAnimationDisabled']=!0x0,_0x26f83d['top']+=0x1),this['_alignToTargetRect'](_0x26f83d));}}['_detachFromContainer'](_0x3d33e2){if(this['view']['element']['remove'](),_0x3d33e2){for(const _0x286dfe of _0x3d33e2)this['_destroySidebarItemView'](_0x286dfe);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0xc4671f,_0x3b3a35){_0x3b3a35||(_0x3b3a35=_0xc4671f['view']);const _0x19c162=new AnnotationsSidebarItemView(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x19c162,_0xc4671f),this['_annotationToSidebarItemView']['set'](_0xc4671f,_0x19c162),_0x19c162['content']['add'](_0x3b3a35),this['listenTo'](_0xc4671f['view'],'change:targetRect',(_0x2f6dbe,_0x4f0f3c,_0x1b0780)=>{const _0x1baf71=this['_getTargetTop'](_0xc4671f,_0x1b0780);_0x19c162['_targetTop']!=_0x1baf71&&(_0x19c162['_targetTop']=_0x1baf71,this['_setItemTop'](_0x19c162,_0x1baf71));}),this['listenTo'](_0x19c162,'change:top',()=>{this['_recalculate'](_0x19c162,'top');}),this['listenTo'](_0x19c162,'change:bottom',()=>{this['_recalculate'](_0x19c162,'bottom');}),this['_alignToTargetRect'](_0x19c162);const _0x4123eb=this['_getItemBefore'](_0x19c162);if(_0x4123eb)this['_alignAfterItem'](_0x4123eb,_0x19c162)||this['_alignToTargetRect'](_0x19c162);else this['_alignToTargetRect'](_0x19c162);return this['_updateLastItem'](),this['view']['list']['add'](_0x19c162),_0x19c162;}['_alignForTopChange'](_0x41fa42){if(!_0x41fa42['content']['length'])return;const _0x40beb9=this['_getItemBefore'](_0x41fa42);if(!_0x40beb9)return;const _0x1946ab=this['_sidebarItemViewToAnnotation']['get'](_0x40beb9),_0x442990=this['_activeAnnotation'];_0x442990&&_0x442990===_0x1946ab?this['_alignAfterItem'](_0x40beb9,_0x41fa42):this['_alignBeforeItem'](_0x41fa42,_0x40beb9);}['_alignForBottomChange'](_0x2b0f6b){if(!_0x2b0f6b['content']['length'])return;const _0x3d850d=this['_getItemAfter'](_0x2b0f6b);if(!_0x3d850d)return;const _0x225c1e=this['_sidebarItemViewToAnnotation']['get'](_0x3d850d),_0x1c5613=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x24fef6=this['_activeAnnotation'];_0x24fef6&&_0x24fef6===_0x225c1e&&_0x1c5613?(this['_alignBeforeItem'](_0x3d850d,_0x2b0f6b),this['_alignAfterItem'](_0x2b0f6b,_0x3d850d)):_0x24fef6&&_0x24fef6===_0x225c1e?this['_alignBeforeItem'](_0x3d850d,_0x2b0f6b):this['_alignAfterItem'](_0x2b0f6b,_0x3d850d);}['_recalculate'](_0x19cc8a,_0x44127f){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x1d1ebc,changedProp:_0x5c5504}of this['_recalculateBuffer'])'top'===_0x5c5504?this['_alignForTopChange'](_0x1d1ebc):this['_alignForBottomChange'](_0x1d1ebc);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x19cc8a,'changedProp':_0x44127f});}['getSidebarItemView'](_0x43f387){return this['_annotationToSidebarItemView']['get'](_0x43f387);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x53d52a){const _0x20500d=this['getSidebarItemView'](_0x53d52a);this['stopListening'](_0x20500d),this['stopListening'](_0x53d52a['view']),_0x20500d['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x53d52a),this['_sidebarItemViewToAnnotation']['delete'](_0x20500d);}['_createSidebarView'](){const _0x24d071=new AnnotationsSidebarView(this['context']['locale']);return _0x24d071['render'](),this['on']('change:_lastItem',(_0xa7194e,_0x56a680,_0x44f849,_0x5ab2f2)=>{_0x5ab2f2&&_0x24d071['unbind']('minHeight'),_0x44f849?_0x24d071['bind']('minHeight')['to'](_0x44f849,'bottom'):_0x24d071['minHeight']=null;}),_0x24d071;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x2f7ef3){const _0x789681=this['_sidebarItemViewToAnnotation']['get'](_0x2f7ef3),_0x55b457=_0x789681&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x789681)-0x1);return _0x55b457&&this['getSidebarItemView'](_0x55b457)||null;}['_getItemAfter'](_0x1e102e){const _0x20d132=this['_sidebarItemViewToAnnotation']['get'](_0x1e102e),_0x158367=_0x20d132&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x20d132)+0x1);return _0x158367&&this['getSidebarItemView'](_0x158367)||null;}['_alignBeforeItem'](_0x402db8,_0x1aad9d){_0x402db8['updateHeight']();const _0x368c7f=getOverlap(_0x1aad9d['bottom']+this['_spaceBetweenItems'],_0x402db8['top']);return!!_0x368c7f&&(this['_setItemTop'](_0x1aad9d,_0x1aad9d['top']-_0x368c7f),!0x0);}['_alignAfterItem'](_0x7c8a07,_0x3016ff){_0x7c8a07['updateHeight']();const _0x108de5=getOverlap(_0x7c8a07['bottom']+this['_spaceBetweenItems'],_0x3016ff['top']);return!!_0x108de5&&(this['_setItemTop'](_0x3016ff,_0x3016ff['top']+_0x108de5,!0x1),!0x0);}['_alignToTargetRect'](_0x3151d0){const _0x2c7c7f=this['_sidebarItemViewToAnnotation']['get'](_0x3151d0);if(!_0x2c7c7f||!_0x2c7c7f['target']||!_0x2c7c7f['targetRect'])return;const _0x19c88d=this['_getTargetTop'](_0x2c7c7f,_0x2c7c7f['targetRect']);this['_setItemTop'](_0x3151d0,_0x19c88d);}['_getTargetTop'](_0x17f63a,_0xd5c3eb){if(null===_0xd5c3eb)return 0x0;if(_0x17f63a['target']instanceof Rect)return _0xd5c3eb['top'];{const _0x50d118=new Rect(this['view']['element'])['top'];return _0xd5c3eb['top']-_0x50d118;}}['_setItemTop'](_0x5e1c5a,_0x398294,_0x56f183=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x56f183&&(_0x398294=Math['max'](_0x398294,this['_getMaxAvailableTop'](_0x5e1c5a))),_0x5e1c5a['top']=_0x398294;}['_getMaxAvailableTop'](_0x4ffbcb){let _0x3daad5=this['_getItemBefore'](_0x4ffbcb),_0x515aa2=0x0;for(;_0x3daad5;)_0x3daad5['updateHeight'](),_0x515aa2+=this['_spaceBetweenItems']+_0x3daad5['height'],_0x3daad5=this['_getItemBefore'](_0x3daad5);return _0x515aa2;}}function getOverlap(_0x1bdf68,_0x28ffbc){return Math['max'](_0x1bdf68-_0x28ffbc,0x0);}function isElement(_0x34972f){return null!==_0x34972f&&'object'==typeof _0x34972f&&0x1===_0x34972f['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(_0x1519eb){super(_0x1519eb),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new Collection(),this['_refreshPositioningDebounced']=debounce$1(()=>{_0x1519eb['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x393ec8=this['context']['plugins']['get'](AnnotationsUIs),_0x18a230=this['context']['plugins']['get'](Sidebar);_0x393ec8['register']('wideSidebar',this),_0x18a230['container']&&_0x393ec8['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x4f5545){if(_0x4f5545===this['activeAnnotation'])return;const _0x2a394f=this['context']['plugins']['get'](Sidebar);_0x2a394f['_activeAnnotation']=_0x4f5545;const _0xdfba51=this['activeAnnotation'];_0x2a394f['refresh']({'blurredAnnotation':_0xdfba51,'activatedAnnotation':_0x4f5545}),this['activeAnnotation']=_0x4f5545;}['attach'](_0x219c2f){this['annotations']=_0x219c2f;const _0x3f54fa=this['context']['plugins']['get'](Sidebar);if(_0x3f54fa['_annotations']=_0x219c2f,this['isAttached'])throw new CKEditorError('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x3f54fa,'set:container',()=>{this['detach'](),this['listenTo'](_0x3f54fa,'change:container',_0x5bd257=>{_0x5bd257['off'](),this['attach'](_0x219c2f);});}),_0x3f54fa['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x4fe630=_0x3b2099=>{_0x3b2099['updateTargetRect'](),_0x3f54fa['addAnnotation'](_0x3b2099);};for(const _0x3c166b of _0x219c2f)_0x4fe630(_0x3c166b);this['listenTo'](_0x219c2f,'add',(_0x5ca6e9,_0x1047f1)=>{_0x4fe630(_0x1047f1);}),this['listenTo'](_0x219c2f,'remove',(_0x4b7739,_0x28c1aa,_0xeb8559)=>{_0x3f54fa['rearrange']({'removedAnnotation':_0x28c1aa,'previousAnnotation':_0x219c2f['get'](_0xeb8559-0x1),'nextAnnotation':_0x219c2f['get'](_0xeb8559+0x1)}),_0x28c1aa===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x219c2f,'focus',(_0x4af8bd,_0x38c5c0)=>{this['setActiveAnnotation'](_0x38c5c0);}),this['listenTo'](_0x219c2f,'blur',()=>{this['setActiveAnnotation'](null);});const _0x39d064=this['context']instanceof Context$1?this['context']['editors']:new Collection([this['context']]);for(const _0x22a85f of _0x39d064)this['_integrateWithEditorAnnotations'](_0x22a85f);this['listenTo'](_0x39d064,'add',(_0x108975,_0x375568)=>{this['listenTo'](_0x375568,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x375568);});}),this['listenTo'](_0x39d064,'remove',(_0x254eca,_0x170b18)=>{_0x170b18['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x170b18['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 _0x3e0a87=this['context']['plugins']['get'](Sidebar);_0x3e0a87['_detachFromContainer'](this['annotations']),this['stopListening'](_0x3e0a87),this['stopListening'](this['annotations']),this['context']instanceof Context$1&&this['stopListening'](this['context']['editors']);for(const _0x16d95e of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x16d95e);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x540592){if(!_0x540592['plugins']['has']('EditorAnnotations'))return;const _0x49b21=_0x540592['plugins']['get']('EditorAnnotations'),_0x30cdc7=()=>{const _0x4a6f8a=_0x49b21['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x4a6f8a[0x0]||null);};this['listenTo'](_0x49b21,'refresh',_0x30cdc7),this['listenTo'](_0x49b21,'blur',(_0x299ef0,{isAnnotationTracked:_0x5b19fa})=>{this['activeAnnotation']&&_0x5b19fa(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x49b21,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x785513=>{_0x49b21['hasDomSelection']()&&(_0x30cdc7(),_0x785513['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x49b21);}['_destroyEditorAnnotationsIntegration'](_0x1ec0e8){this['stopListening'](_0x1ec0e8),this['_editorAnnotations']['remove'](_0x1ec0e8);}}class AnnotationCounterButtonView extends ButtonView{['counterView'];constructor(_0x36404){super(_0x36404);const _0x5ec770=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x5cd0b5,_0x362c1c)=>_0x5cd0b5?'...':_0x362c1c['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',_0x5ec770['to']('annotationType',_0x16dc31=>'ck-annotation-counter__badge--'+_0x16dc31),_0x5ec770['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x5ec770['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(_0x4b3852){super(_0x4b3852),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'](_0xb7d54d){this['annotations']=_0xb7d54d;const _0x574487=this['context']['plugins']['get'](Sidebar),_0x3c7f8d=this['balloonPanelView'];if(_0x574487['_annotations']=_0xb7d54d,this['isAttached'])throw new CKEditorError('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x574487,'set:container',()=>{this['detach'](),this['listenTo'](_0x574487,'change:container',_0x41ea2e=>{_0x41ea2e['off'](),this['attach'](_0xb7d54d);});}),_0x574487['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x1cd150=_0x43644d=>{const _0x11f704=new AnnotationCounterButtonView(this['context']['locale']);_0x574487['addAnnotation'](_0x43644d,_0x11f704),this['_annotationToNarrowView']['set'](_0x43644d,_0x11f704),_0x11f704['bind']('isDirty','annotationType','number')['to'](_0x43644d['view'],'isDirty','type','length'),_0x11f704['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x3c7f8d['content']['first']!==_0x43644d['view']?(this['_showBalloon'](_0x43644d),_0x43644d['view']['element']['focus'](),this['setActiveAnnotation'](_0x43644d)):this['setActiveAnnotation'](null);});};for(const _0x1aebc7 of _0xb7d54d)_0x1cd150(_0x1aebc7);this['listenTo'](_0xb7d54d,'add',(_0x3b7a7c,_0x315be6)=>{_0x1cd150(_0x315be6);}),this['listenTo'](_0xb7d54d,'remove',(_0x5a9e66,_0x49bff1,_0x3f4308)=>{this['_annotationToNarrowView']['get'](_0x49bff1)['destroy'](),this['_annotationToNarrowView']['delete'](_0x49bff1),_0x574487['rearrange']({'removedAnnotation':_0x49bff1,'previousAnnotation':_0xb7d54d['get'](_0x3f4308-0x1),'nextAnnotation':_0xb7d54d['get'](_0x3f4308+0x1)}),_0x49bff1===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0xb7d54d,'focus',(_0x32ead6,_0x48c808)=>{this['setActiveAnnotation'](_0x48c808);}),this['listenTo'](_0xb7d54d,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x5c1967,_0x53e1a8)=>{_0x53e1a8['keyCode']===keyCodes['esc']&&_0x3c7f8d['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x3c7f8d['content']['first']),this['_hideBalloon'](),_0x53e1a8['stopPropagation'](),_0x53e1a8['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x9b695d,_0x2e86d9)=>{const _0x52399e=_0x2e86d9['target'];_0x3c7f8d['isVisible']&&_0x3c7f8d['element']['contains'](_0x52399e)||_0x574487['view']['element']['contains'](_0x52399e)||_0x9b695d['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x58fb59=>_0x58fb59['contains'](_0x52399e))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x11ddd8=this['context']instanceof Context$1?this['context']['editors']:new Collection([this['context']]);for(const _0xdec26d of _0x11ddd8)this['_integrateWithEditorAnnotations'](_0xdec26d);this['listenTo'](_0x11ddd8,'add',(_0x112d9d,_0xbd5f5e)=>{this['listenTo'](_0xbd5f5e,'ready',()=>{this['_integrateWithEditorAnnotations'](_0xbd5f5e);});}),this['listenTo'](_0x11ddd8,'remove',(_0x5e704f,_0x59d6eb)=>{_0x59d6eb['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x59d6eb['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0xd8c001){if(_0xd8c001===this['activeAnnotation'])return;const _0x39cc99=this['context']['plugins']['get'](Sidebar);if(_0x39cc99['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0xd8c001,'disableAnimationOnActivatedAnnotation':!0x0}),_0xd8c001)_0x39cc99['getSidebarItemView'](_0xd8c001)?this['_showBalloon'](_0xd8c001):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0xd8c001;}['detach'](){if(!this['isAttached'])throw new CKEditorError('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x2b3e52=this['context']['plugins']['get'](Sidebar);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x2c712c=>_0x2c712c['destroy']()),this['_annotationToNarrowView']['clear'](),_0x2b3e52['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof Context$1&&this['stopListening'](this['context']['editors']);for(const _0x3b6487 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3b6487);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'](_0x5c55e8){if(!_0x5c55e8['plugins']['has']('EditorAnnotations'))return;const _0x1714fd=_0x5c55e8['plugins']['get']('EditorAnnotations'),_0x5dfafe=this['context']['plugins']['get'](Sidebar),_0x1d00b9=this['annotations'],_0x53c437=this['balloonPanelView'],_0x470fad=()=>{const _0xf10d6=_0x1714fd['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0xf10d6),this['setActiveAnnotation'](_0xf10d6[0x0]||null);};this['listenTo'](_0x1714fd,'refresh',_0x470fad),this['listenTo'](_0x1714fd,'blur',(_0x494b4b,{isAnnotationTracked:_0x43e01c})=>{this['activeAnnotation']&&_0x43e01c(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x1714fd,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x1d00b9,'blur',_0x229734=>{_0x1714fd['hasDomSelection']()&&_0x229734['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x26eb6f,_0x450112)=>{const _0x3b1aae=_0x450112['target'];_0x53c437['isVisible']&&_0x53c437['element']['contains'](_0x3b1aae)||_0x5dfafe['view']['element']['contains'](_0x3b1aae)||this['activeAnnotation']&&_0x1714fd['hasDomSelection']()&&(_0x470fad(),_0x26eb6f['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1714fd);}['_destroyEditorAnnotationsIntegration'](_0x49efba){_0x49efba&&(this['stopListening'](_0x49efba),this['_editorAnnotations']['remove'](_0x49efba));}['_setSelectedAnnotations'](_0x2010fd){for(const _0x574217 of this['_selectedAnnotations'])_0x2010fd['includes'](_0x574217)||this['_manuallyClosedAnnotationViews']['delete'](_0x574217['view']);this['_selectedAnnotations']=_0x2010fd;}['_refreshPositioning'](){const _0x308a1c=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x308a1c['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x563768){if(this['_manuallyClosedAnnotationViews']['has'](_0x563768['view']))return;const _0x20a862=this['balloonPanelView']['content']['first'];_0x20a862!==_0x563768['view']?(_0x20a862&&this['_detachListeners'](_0x20a862),this['_attachListeners'](_0x563768['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x563768['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x3d4364=this['balloonPanelView']['content']['first'],_0x2352b1=_0x3d4364&&this['annotations']['getByView'](_0x3d4364);if(!_0x2352b1||!this['_annotationToNarrowView']['has'](_0x2352b1))return;const _0x4b7f5d=this['_annotationToNarrowView']['get'](_0x2352b1)['element'],_0x53b597=getBalloonPositions();this['balloonPanelView']['pin']({'target':_0x4b7f5d,'positions':_0x53b597});}['_hideBalloon'](){const _0x3ee5b4=this['balloonPanelView'],_0x2b4a93=_0x3ee5b4['content']['first'];_0x2b4a93&&(this['_detachListeners'](_0x2b4a93),_0x3ee5b4['unpin'](),_0x3ee5b4['content']['clear']());}['_attachListeners'](_0x1ac008){this['listenTo'](_0x1ac008,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x1ac008,'Esc',(_0x5721ea,_0x21ae55)=>{this['_manuallyClosedAnnotationViews']['add'](_0x1ac008),this['_hideBalloon'](),_0x21ae55();});}['_detachListeners'](_0x1b1df5){this['stopListening'](_0x1b1df5);}}function getBalloonPositions(){const _0x50973b=BalloonPanelView['defaultPositions'];return[_0x50973b['southArrowNorthEast'],_0x50973b['northArrowSouthEast'],_0x50973b['southArrowNorth'],_0x50973b['northArrowSouth'],_0x50973b['southArrowNorthWest'],_0x50973b['northArrowSouthWest']];}class InlineAnnotations extends Plugin{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[EditorAnnotations,ContextualBalloon,AnnotationsUIs];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10a8dd){super(_0x10a8dd),_0x10a8dd['editing']['view']['addObserver'](MouseObserver),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x10a8dd['plugins']['get'](ContextualBalloon),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=debounce$1(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x242dc5=this['editor']['plugins']['get'](AnnotationsUIs);_0x242dc5['context']===this['editor']&&(_0x242dc5['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x55d0d3,_0x456cf7)=>{const _0x171f41=this['_balloon'];if(this['isAttached']&&_0x171f41['visibleView']){const _0x5c3571=this['annotations']['getByView'](_0x171f41['visibleView']);_0x5c3571&&this['_closeAnnotation'](_0x5c3571),_0x456cf7();}}));}['afterInit'](){const _0x2bdd1c=this['editor']['plugins']['get'](AnnotationsUIs);_0x2bdd1c['context']===this['editor']&&(_0x2bdd1c['hasActive']()||_0x2bdd1c['switchTo']('inline'));}['setActiveAnnotation'](_0x4e934a){_0x4e934a!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x4e934a&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x4e934a)&&this['_addAnnotationToBalloon'](_0x4e934a,!0x0),_0x4e934a['isActive']=!0x0),_0x4e934a||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x4e934a);}['attach'](_0x4905c3){this['annotations']=_0x4905c3;const _0x2cbf79=this['editor']['plugins']['get'](AnnotationsUIs),_0x167783=this['_balloon'];if(this['isAttached'])throw new CKEditorError('inlineannotations-attach-already-attached',this);if(_0x2cbf79['context']!==this['editor'])throw new CKEditorError('inlineannotations-not-allowed-with-context',this);const _0x548357=this['editor']['plugins']['get'](EditorAnnotations);this['listenTo'](_0x548357,'refresh',()=>{const _0x562a26=_0x548357['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});!this['_forceRefresh']&&arraysEqual(_0x562a26,this['_selectedAnnotations'])||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x562a26),this['setActiveAnnotation'](_0x562a26[0x0]||null));}),this['listenTo'](_0x548357,'blur',(_0x5ec1cd,{isAnnotationTracked:_0x4cd601})=>{this['activeAnnotation']&&_0x4cd601(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x548357,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x2ddfa5,_0x45e99d,_0x1eaab3)=>{_0x1eaab3||this['setActiveAnnotation'](null);}),this['listenTo'](_0x4905c3,'remove',(_0x35fe98,_0x1c4635)=>{this['_removeAnnotationFromBalloon'](_0x1c4635),_0x1c4635===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x167783,'change:visibleView',(_0x30174b,_0x4b830e,_0x5aa4cb,_0x4bfd90)=>{_0x4bfd90&&this['stopListening'](_0x4bfd90);const _0x5cd43c=_0x4905c3['getByView'](_0x5aa4cb);_0x5aa4cb&&_0x5cd43c&&(this['listenTo'](_0x5aa4cb,'change:height',()=>{_0x167783['updatePosition']();}),this['listenTo'](_0x5aa4cb,'Esc',()=>{this['_closeAnnotation'](_0x5cd43c),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x5cd43c&&this['setActiveAnnotation'](_0x5cd43c));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x167783['visibleView']&&(_0x4905c3['getByView'](_0x167783['visibleView'])&&_0x167783['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 _0x1be9e0 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x1be9e0);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x4795fa){for(const _0x1e4499 of this['_selectedAnnotations'])_0x4795fa['includes'](_0x1e4499)||this['_manuallyClosed']['delete'](_0x1e4499);for(const _0x847b6a of this['annotations'])_0x4795fa['includes'](_0x847b6a)||this['_removeAnnotationFromBalloon'](_0x847b6a);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x48ebcc of _0x4795fa)this['_addAnnotationToBalloon'](_0x48ebcc);}this['_selectedAnnotations']=_0x4795fa;}['_addAnnotationToBalloon'](_0x34c4c2,_0xb8054a=!0x1){this['_manuallyClosed']['has'](_0x34c4c2)||(this['_addedAnnotations']['has'](_0x34c4c2)||this['_balloon']['hasView'](_0x34c4c2['view'])||(this['_addedAnnotations']['add'](_0x34c4c2),this['_balloon']['add']({'stackId':_0x34c4c2['view']['id'],'view':_0x34c4c2['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x34c4c2)}})),_0xb8054a&&this['_balloon']['showStack'](_0x34c4c2['view']['id']));}['_getBalloonTargetForAnnotation'](_0x53df79){const _0x4e59af=_0x53df79['target'],_0x5a4a8f=this['editor']['editing']['view'],_0xc5af18=_0x5a4a8f['document']['selection']['getFirstRange'](),_0x11ca38=_0x5a4a8f['domConverter']['viewRangeToDom'](_0xc5af18);if(_0x11ca38['collapse'](!0x0),_0x4e59af){if(_0x4e59af instanceof Rect)return _0x4e59af;let _0x1fb56d=[];for(const _0x2853e6 of _0x4e59af)_0x1fb56d['push'](...cloneRects(_0x2853e6['getClientRects']()));_0x1fb56d=joinClientRects(_0x1fb56d);const _0x38d49a=_0x11ca38['getBoundingClientRect']();return _0x1fb56d['find'](_0x253f0d=>_0x253f0d['top']<=_0x38d49a['top']&&_0x253f0d['bottom']>=_0x38d49a['bottom']&&_0x253f0d['left']<=_0x38d49a['left']&&_0x253f0d['right']>=_0x38d49a['right'])||_0x1fb56d[0x0];}return _0x53df79['targetRect']||_0x11ca38;}['_removeAnnotationFromBalloon'](_0x1488dd){this['_addedAnnotations']['has'](_0x1488dd)&&this['_balloon']['hasView'](_0x1488dd['view'])&&(this['_addedAnnotations']['delete'](_0x1488dd),this['_balloon']['remove'](_0x1488dd['view']));}['_closeAnnotation'](_0x1e02fe){this['_manuallyClosed']['add'](_0x1e02fe),this['_removeAnnotationFromBalloon'](_0x1e02fe);}}function arraysEqual(_0x16e912,_0x5579ce){return _0x16e912['length']===_0x5579ce['length']&&_0x16e912['every'](_0x5da979=>_0x5579ce['includes'](_0x5da979));}function cloneRects(_0x3ac9f0){return Array['from'](_0x3ac9f0)['map'](DOMRect['fromRect']);}function joinClientRects(_0x1efadb){const _0x594e68=[];let _0x5832f6=_0x1efadb[0x0];for(let _0x5437ab=0x1;_0x5437ab<_0x1efadb['length'];_0x5437ab++)canJoinRects(_0x5832f6,_0x1efadb[_0x5437ab])?_0x5832f6['width']+=_0x1efadb[_0x5437ab]['width']:(_0x594e68['push'](_0x5832f6),_0x5832f6=_0x1efadb[_0x5437ab]);return _0x594e68['push'](_0x5832f6),_0x594e68;}function canJoinRects(_0x2473d1,_0x4dd3f2){return _0x2473d1['top']===_0x4dd3f2['top']&&_0x2473d1['bottom']===_0x4dd3f2['bottom']&&_0x2473d1['right']===_0x4dd3f2['left'];}class CommentsArchiveView extends View{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x1cd870,_0x5e77d3){super(_0x1cd870),this['set']('isEmpty',!_0x5e77d3['length']),this['focusTracker']=new FocusTracker(),this['_annotationViews']=_0x5e77d3,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new FocusCycler({'focusables':_0x5e77d3,'focusTracker':this['focusTracker']}),this['listenTo'](_0x5e77d3,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x5e77d3,'remove',(_0x383bbd,_0x72a320)=>{_0x72a320['isActive']&&this['focus'](),_0x5e77d3['length']||(this['isEmpty']=!0x0);});const _0x2aeedb=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':getTranslation$f(_0x1cd870,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x5e77d3},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x2aeedb['if']('isEmpty','ck-hidden',_0x4ea934=>!_0x4ea934)]},'children':[{'text':getTranslation$f(_0x1cd870,'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 _0xc151fe of this['_annotationViews'])this['focusTracker']['add'](_0xc151fe['element']);this['_annotationViews']['on']('change',(_0x33fcff,{added:_0x3a2ce2,removed:_0xb6c39d})=>{for(const _0xc4faad of _0x3a2ce2)this['focusTracker']['add'](_0xc4faad['element']);for(const _0x27820b of _0xb6c39d)this['focusTracker']['remove'](_0x27820b['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(_0x5dfd4b){super(_0x5dfd4b),this['archivedThreads']=new Collection();}['init'](){const _0x48d4e1=this['context'],_0x4efa9b=_0x48d4e1['plugins']['get'](CommentsRepository),_0x2d56fa=_0x48d4e1['plugins']['get'](Annotations);this['listenTo'](_0x4efa9b,'addCommentThread',(_0x1b3d4e,{threadId:_0x5a4da3})=>{const _0x285a30=_0x4efa9b['getCommentThread'](_0x5a4da3);_0x285a30['archivedAt']&&this['archivedThreads']['add'](_0x285a30,this['_calculatePosition'](_0x285a30['archivedAt'])),this['listenTo'](_0x285a30,'change:archivedAt',(_0x1efe83,_0x1d2075,_0x38448f)=>{_0x38448f?this['archivedThreads']['has'](_0x285a30)||this['archivedThreads']['add'](_0x285a30,this['_calculatePosition'](_0x285a30['archivedAt'])):this['archivedThreads']['has'](_0x285a30)&&this['archivedThreads']['remove'](_0x285a30);});}),this['listenTo'](_0x4efa9b,'removeCommentThread',(_0x26ba19,{threadId:_0x2d14d6})=>{const _0x2067a4=_0x4efa9b['getCommentThread'](_0x2d14d6);this['stopListening'](_0x2067a4),this['archivedThreads']['has'](_0x2067a4)&&this['archivedThreads']['remove'](_0x2067a4);},{'priority':'highest'}),this['listenTo'](_0x2d56fa['collection'],'focus',(_0x2b0322,_0x455593)=>{_0x455593['isVisible']||(_0x455593['isActive']=!0x0,_0x2d56fa['activate'](_0x455593));});}['_calculatePosition'](_0x430683){const _0x5bc733=[...this['archivedThreads']]['findIndex'](_0x30941b=>_0x30941b['archivedAt']<_0x430683);return _0x5bc733>-0x1?_0x5bc733: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(_0x16f852){super(_0x16f852),this['annotationViews']=new ViewCollection(),this['_pendingThreads']=[];}['init'](){const _0x235e03=this['editor'],_0x4a56f7=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x235e03['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](ButtonView,!0x0)),_0x235e03['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x51eb3c=this['_createCommentsArchiveButton'](MenuBarMenuListItemButtonView);return _0x51eb3c['set']({'role':'menuitemcheckbox'}),_0x51eb3c;});const _0x31ac93=_0x235e03['plugins']['get'](CommentsArchive),_0x335e3e=_0x235e03['plugins']['get']('Annotations'),_0x5c403e=_0x235e03['plugins']['get']('CommentsRepository');_0x31ac93['archivedThreads']['forEach'](_0x5374c5=>{this['_handleNewThread'](_0x5374c5);}),this['listenTo'](_0x31ac93['archivedThreads'],'add',(_0x4207ca,_0x28466e)=>{this['_handleNewThread'](_0x28466e);}),this['listenTo'](_0x335e3e['collection'],'add',(_0x5949a0,_0x3991b1)=>{const _0xf8c246=this['_pendingThreads']['find'](_0x1a2bfe=>{const _0x3e064b=_0x5c403e['_threadToController']['get'](_0x1a2bfe);return _0x3e064b&&_0x3991b1['innerView']===_0x3e064b['view'];});if(_0xf8c246){const _0x2949b3=this['_calculatePosition'](_0xf8c246['archivedAt']);this['_addAnnotationToArchive'](_0x3991b1,_0x2949b3),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0xf8c246),0x1);}}),this['listenTo'](_0x31ac93['archivedThreads'],'remove',(_0x4f70aa,_0x276937)=>{const _0x3d85cc=_0x235e03['config']['get']('collaboration.channelId');if(!_0x3d85cc||_0x276937['channelId']===_0x3d85cc){if(this['_pendingThreads']['includes'](_0x276937))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x276937),0x1);else{const _0x6cc839=_0x5c403e['_threadToController']['get'](_0x276937),_0x206e49=_0x335e3e['getByInnerView'](_0x6cc839['view']);this['annotationViews']['remove'](_0x206e49['view']),this['stopListening'](_0x206e49),this['stopListening'](_0x206e49['focusableElements']);}}}),this['listenTo'](_0x335e3e['collection'],'add',(_0x523a26,_0x4c41ae)=>{this['listenTo'](_0x4c41ae,'escape',_0x4a56f7);}),this['listenTo'](_0x335e3e['collection'],'remove',(_0x2b03a8,_0xf2ea38)=>{this['stopListening'](_0xf2ea38,'escape',_0x4a56f7);});}['_addAnnotationToArchive'](_0x35b65e,_0x2db74c){this['listenTo'](_0x35b65e,'set:isVisible',_0x4426d3=>{_0x4426d3['return']=!0x1,_0x4426d3['stop']();}),this['annotationViews']['add'](_0x35b65e['view'],_0x2db74c);}['_handleNewThread'](_0x22b10a){const _0x1d842d=this['editor']['plugins']['get']('CommentsRepository'),_0x24fa8a=this['editor']['plugins']['get']('Annotations'),_0x7101fe=this['editor']['config']['get']('collaboration.channelId');if(!_0x7101fe||_0x22b10a['channelId']===_0x7101fe){const _0x1e02c6=_0x1d842d['_threadToController']['get'](_0x22b10a);if(!_0x1e02c6)return void this['_pendingThreads']['push'](_0x22b10a);const _0x4e525e=this['_calculatePosition'](_0x22b10a['archivedAt']),_0x1ac084=_0x24fa8a['getByInnerView'](_0x1e02c6['view']);_0x1ac084['isVisible']&&_0x24fa8a['_visibleAnnotations']['remove'](_0x1ac084),this['_addAnnotationToArchive'](_0x1ac084,_0x4e525e);}}['_calculatePosition'](_0x440ccb){const _0x44513f=this['editor']['config']['get']('collaboration.channelId'),_0x9260e3=[...this['editor']['plugins']['get'](CommentsArchive)['archivedThreads']]['filter'](_0x5cd433=>_0x5cd433['channelId']===_0x44513f)['findIndex'](_0x4a1351=>_0x4a1351['archivedAt']<_0x440ccb);return _0x9260e3<0x0||_0x9260e3>this['annotationViews']['length']?this['annotationViews']['length']:_0x9260e3-0x1;}['_toggleDialog'](){const _0x3d9574=this['editor'],_0x43d675=_0x3d9574['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new CommentsArchiveView(_0x3d9574['locale'],this['annotationViews'])),'commentsArchive'===_0x43d675['id']?_0x43d675['hide']():_0x43d675['show']({'id':'commentsArchive','title':getTranslation$f(_0x3d9574['locale'],'COMMENTS_ARCHIVE'),'icon':IconCommentsArchive,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':DialogViewPosition['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x11e6d7,_0x555770=!0x1){const _0x20aab6=this['editor']['locale'],_0x227234=this['editor']['plugins']['get']('Dialog'),_0x173035=new _0x11e6d7(_0x20aab6);return _0x173035['bind']('isEnabled')['to'](this,'isEnabled'),_0x173035['bind']('isOn')['to'](_0x227234,'id',_0x368ff5=>'commentsArchive'===_0x368ff5),_0x173035['set']({'label':getTranslation$f(_0x20aab6,'COMMENTS_ARCHIVE'),'icon':IconCommentsArchive,'isToggleable':!0x0}),_0x555770&&(_0x173035['tooltip']=!0x0),this['listenTo'](_0x173035,'execute',()=>this['_toggleDialog']()),_0x173035;}['_hideDialogOnAnnotationEscape']=_0x115b9c=>{const _0x4e4d34=_0x115b9c['source'];if(!this['annotationViews']['has'](_0x4e4d34['view']))return;const _0x566f11=this['editor']['plugins']['get']('Dialog');_0x566f11['isOpen']&&'commentsArchive'===_0x566f11['id']&&(_0x566f11['hide'](),_0x115b9c['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(_0x385510){let _0x1f95f8='';for(const _0x52b0bd of _0x385510['getChildren']())_0x52b0bd instanceof ModelText&&(_0x1f95f8+=_0x52b0bd['data']);return _0x1f95f8;}function getDefaultFeatureHeadingNames(_0x17410a){const _0x1db877=_0x17410a['config']['get']('heading.options');return _0x1db877?_0x1db877['reduce']((_0x87859e,_0x11bb2d)=>('paragraph'!==_0x11bb2d['model']&&_0x87859e['push'](_0x11bb2d['model']),_0x87859e),[]):_0x17410a['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 _0x2a75d4=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x275593=[];_0x2a75d4['model']['document']['on']('change',debounce$1(()=>{const _0x4fd6bd=_0x275593;_0x275593=this['_getOutlineDefinitions']();const _0x4ad66d=_0x5d39f4(_0x4fd6bd,_0x275593,(_0x4ab851,_0x2d4605)=>_0x4ab851['level']===_0x2d4605['level']&&_0x4ab851['text']===_0x2d4605['text']&&_0x4ab851['modelElement']===_0x2d4605['modelElement']),_0x4aedbb=diffToChanges(_0x4ad66d,_0x275593),_0x176bf3=this['_getActiveHeading'](),_0x42d755=_0x275593['findIndex'](_0x234646=>_0x234646['modelElement']===_0x176bf3);_0x4aedbb['length']&&this['fire']('change',{'outlineDefinitions':_0x275593,'activeItemIndex':_0x42d755,'outlineChanges':_0x4aedbb}),this['fire']('activeItemIndex',{'index':_0x42d755});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x4487b5=this['editor'],_0x443927=[],_0x10307d=this['_headingNames'];for(const _0x398d98 of _0x4487b5['model']['document']['getRootNames']())_0x2413c9(_0x4487b5['model']['document']['getRoot'](_0x398d98));function _0x2413c9(_0x13a43e){for(const _0x47438f of _0x13a43e['getChildren']())_0x47438f['is']('element')&&(_0x10307d['includes'](_0x47438f['name'])&&_0x443927['push']({'level':_0x10307d['indexOf'](_0x47438f['name'])+0x1,'text':getElementText(_0x47438f),'modelElement':_0x47438f}),_0x2413c9(_0x47438f));}return _0x443927;}['_getActiveHeading'](){const _0x40e50e=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x1bdbe6=new ModelTreeWalker({'direction':'backward','startPosition':_0x40e50e});for(const _0x19805d of _0x1bdbe6)if(_0x19805d['item']['is']('element')&&this['_headingNames']['includes'](_0x19805d['item']['name']))return _0x19805d['item'];}['_getHeadingNames'](){const _0x427131=this['editor']['config']['get']('documentOutline.headings');return _0x427131||getDefaultFeatureHeadingNames(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x260c03=this['editor'],_0x11838b=['h1','h2','h3','h4','h5','h6'],_0x3a24c0=[];for(const _0x2b4662 of _0x11838b){const _0x4eea2d=_0x260c03['editing']['view']['domConverter']['domToView'](document['createElement'](_0x2b4662)),_0x28e0ef=_0x260c03['data']['toModel'](_0x4eea2d)['getChild'](0x0);_0x28e0ef?.['is']('element')&&_0x3a24c0['push'](_0x28e0ef['name']);}this['_headingNames']=_0x3a24c0;}}function getTranslation$e(_0x182eb9,_0x3fe0db){const t=_0x182eb9['t'];switch(_0x3fe0db){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 _0x3fe0db;}}class DocumentOutlineItemView extends View{constructor(_0x46456d,_0x5c04b1=!0x1){super(_0x46456d);const _0x57c794=this['bindTemplate'],_0x5395ac=_0x5c04b1?'['+getTranslation$e(_0x46456d,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x5e3463=>!_0x5e3463),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x57c794['to']('level',_0x4d29bb=>'ck-document-outline__item_level-'+_0x4d29bb),_0x57c794['if']('isActive','ck-document-outline__item_active'),_0x57c794['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x57c794['to']('text')},'children':[{'text':_0x57c794['to']('text',_0x2a0f5c=>_0x2a0f5c||_0x5395ac)}],'on':{'click':_0x57c794['to']('click')}});}}class DocumentOutlineView extends View{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x175ef8,_0x29bbb0=!0x1,_0x2f4194){super(_0x175ef8),this['showEmptyHeadingText']=_0x29bbb0,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x2f4194,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x5e99e6,_0xff57bb,_0x3a569a,_0x106c81)=>{this['_setActiveItem'](_0x106c81,_0x3a569a);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x175ef8['contentLanguageDirection'],'data-document-outline-empty-placeholder':getTranslation$e(_0x175ef8,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x3cf808){_0x3cf808['forEach'](_0x2adbcf=>{'insert'==_0x2adbcf['type']?this['_insertItem'](_0x2adbcf['index'],..._0x2adbcf['values']):'delete'==_0x2adbcf['type']&&this['_deleteItem'](_0x2adbcf['index'],_0x2adbcf['howMany']);});}['_setActiveItem'](_0x4e49bf,_0x3064bf){if(-0x1!==_0x4e49bf){const _0x5aa55c=this['items']['get'](_0x4e49bf);_0x5aa55c&&(_0x5aa55c['isActive']=!0x1);}-0x1!==_0x3064bf&&(this['items']['get'](_0x3064bf)['isActive']=!0x0,this['_scrollToItem'](_0x3064bf));}['_insertItem'](_0x131a79,..._0x4ff720){const _0x33d184=_0x4ff720['map']((_0x2015cd,_0x14ed8a)=>{const _0x5491d6=new DocumentOutlineItemView(this['locale'],this['showEmptyHeadingText']);return _0x5491d6['text']=_0x2015cd['text'],_0x5491d6['level']=_0x2015cd['level'],_0x131a79+_0x14ed8a===this['activeItemIndex']&&(_0x5491d6['isActive']=!0x0),_0x5491d6;});this['items']['addMany'](_0x33d184,_0x131a79);}['_deleteItem'](_0x363c02,_0x208ca3){do{this['items']['remove'](_0x363c02);}while(--_0x208ca3);}['_handleItemClick'](_0x26d8c8){const _0x2c1f0=this['items']['getIndex'](_0x26d8c8['source']);this['fire']('itemSelected',_0x2c1f0);}['_scrollToItem'](_0x3bc8e8){scrollAncestorsToShowTarget(this['items']['get'](_0x3bc8e8)['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(_0x6274ed){super(_0x6274ed),this['view']=new DocumentOutlineView(_0x6274ed['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 _0x127980=this['editor'],_0x14be73=_0x127980['plugins']['get']('DocumentOutlineUtils');let _0x4d66d1=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x127980['config']['get']('documentOutline.container'))throw new CKEditorError('document-outline-container-not-provided',{'editor':_0x127980});_0x127980['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x14be73['on']('change',this['_handleOutlineChange']['bind'](this)),_0x14be73['on']('activeItemIndex',(_0x20241d,{index:_0x3ea81b})=>this['_setActiveViewItem'](_0x3ea81b)),this['view']['on']('itemSelected',(_0x3a9ca8,_0x3f94eb)=>{_0x4d66d1=!0x0,this['_handleItemSelected'](_0x3f94eb);}),this['view']['listenTo'](_0x347e1e['document'],'scroll',()=>{_0x4d66d1?_0x4d66d1=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x347e1e['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){checkLicense$g(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x45dd66,{outlineDefinitions:_0x226b5d,outlineChanges:_0x197361}){this['_currentOutlineDefinitions']=_0x226b5d,this['view']['sync'](_0x197361);}['_setActiveViewItem'](_0x4840ac){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x4840ac]&&(this['view']['activeItemIndex']=_0x4840ac);}['_handleItemSelected'](_0x26c846){const _0x5f72cd=this['_currentOutlineDefinitions'][_0x26c846]['modelElement'];this['editor']['model']['change'](_0x62b133=>{_0x62b133['setSelection'](_0x5f72cd,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x26c846);}['_updateActiveDefinitionOnViewportChange'](){const _0x182511=this['editor'];let _0x4c0783;for(const _0x1cc73c of _0x182511['model']['document']['getRootNames']()){const _0x34b7bf=_0x182511['editing']['view']['getDomRoot'](_0x1cc73c),_0x38e404=_0x34b7bf&&new Rect(_0x34b7bf)['getVisible']();if(_0x38e404){const _0x33a53e=new Rect(_0x347e1e['window'])['getIntersection'](_0x38e404);_0x33a53e&&(_0x4c0783=_0x33a53e['top']+0.25*_0x33a53e['height']);}}if(void 0x0===_0x4c0783)return;const _0x28964b=binaryActiveDefinitionSearch(_0x182511['editing'],this['_currentOutlineDefinitions'],_0x4c0783);_0x28964b?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x28964b)):this['_setActiveViewItem'](-0x1);}}function binaryActiveDefinitionSearch(_0x3e0522,_0x2c0688,_0x182902,_0x4e26c4=0x0,_0x50cbf9=_0x2c0688['length']-0x1){const _0x5ad23b=Math['floor'](_0x4e26c4+(_0x50cbf9-_0x4e26c4)/0x2);if(_0x50cbf9>=_0x4e26c4){const _0x491b05=_0x2c0688[_0x5ad23b],_0x269e67=_0x3e0522['mapper']['toViewElement'](_0x491b05['modelElement']);if(!_0x269e67)return null;const _0x26d4f7=_0x3e0522['view']['domConverter']['mapViewToDom'](_0x269e67);return new Rect(_0x26d4f7)['bottom']>_0x182902?binaryActiveDefinitionSearch(_0x3e0522,_0x2c0688,_0x182902,_0x4e26c4,_0x5ad23b-0x1):binaryActiveDefinitionSearch(_0x3e0522,_0x2c0688,_0x182902,_0x5ad23b+0x1,_0x50cbf9);}return _0x5ad23b<0x0?null:_0x2c0688[_0x5ad23b];}async function checkLicense$g(_0xb03c8d){const _0x11f81c=_0x4e04b8([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]),_0x17787e=window[_0x4e04b8([0x44,0x61,0x74,0x65])][_0x4e04b8([0x6e,0x6f,0x77])](),_0x16eb5f=_0xb03c8d[_0x4e04b8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a0677=new window[(_0x4e04b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48a1d3=>{_0x16eb5f[_0x4e04b8([0x6f,0x6e,0x63,0x65])](_0x4e04b8([0x72,0x65,0x61,0x64,0x79]),_0x48a1d3);}),_0x432bfa={[_0x4e04b8([0x6b,0x74,0x79])]:_0x4e04b8([0x45,0x43]),[_0x4e04b8([0x75,0x73,0x65])]:_0x4e04b8([0x73,0x69,0x67]),[_0x4e04b8([0x63,0x72,0x76])]:_0x4e04b8([0x50,0x2d,0x32,0x35,0x36]),[_0x4e04b8([0x78])]:_0x4e04b8([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]),[_0x4e04b8([0x79])]:_0x4e04b8([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]),[_0x4e04b8([0x61,0x6c,0x67])]:_0x4e04b8([0x45,0x53,0x32,0x35,0x36])},_0x52ee62=_0x16eb5f[_0x4e04b8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4e04b8([0x67,0x65,0x74])](_0x4e04b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x33d9c3=await(async function(){let _0x29f5ae,_0x9e7ca6=null,_0x4b90e0=null;try{if(_0x52ee62==_0x4e04b8([0x47,0x50,0x4c]))return _0x4e04b8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x29f5ae=(function(){const _0x78eba3=_0x52ee62[_0x4e04b8([0x73,0x70,0x6c,0x69,0x74])](_0x4e04b8([0x2e]));if(0x3!=_0x78eba3[_0x4e04b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x24cecb=_0x78eba3[0x1];return _0x3ecbc4(_0x24cecb);function _0x3ecbc4(_0x4713a5){const _0x3b282f=_0x5495ea(_0x4713a5);return _0x3b282f&&_0x3eb878()?_0x3b282f:null;function _0x3eb878(){const _0x32e821=_0x3b282f[_0x4e04b8([0x6a,0x74,0x69])],_0x5558a3=window[_0x4e04b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32e821[_0x4e04b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32e821[_0x4e04b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b215d={..._0x3b282f,[_0x4e04b8([0x6a,0x74,0x69])]:_0x32e821[_0x4e04b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x32e821[_0x4e04b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b215d[_0x4e04b8([0x76,0x63])],_0x38e747(_0x2b215d)==_0x5558a3;}}}()),!_0x29f5ae)return _0x4e04b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x29f5ae[_0x4e04b8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4b90e0=function(_0x24be4d,_0x5cf388){return new window[(_0x4e04b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bd3d7=>{if(_0x55227c())return _0x1bd3d7(_0x4e04b8([0x56,0x61,0x6c,0x69,0x64]));_0xbec70f(),_0x16eb5f[_0x4e04b8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4e04b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x6fc8a9=!0x1;const _0x35260c=uid();function _0x29462(_0x4f65ff){return!!_0x4f65ff&&(typeof _0x4f65ff===_0x4e04b8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f65ff===_0x4e04b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f65ff[_0x4e04b8([0x74,0x68,0x65,0x6e])]===_0x4e04b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f65ff[_0x4e04b8([0x63,0x61,0x74,0x63,0x68])]===_0x4e04b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x11a9dc(_0x56b547){_0x342f47(_0x56b547)[_0x4e04b8([0x74,0x68,0x65,0x6e])](_0x5d5233=>{if(!_0x5d5233||_0x5d5233[_0x4e04b8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4e04b8([0x6f,0x6b]))return _0x4e04b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2fe20c(_0x38e747(_0x35260c+_0x5cf388))!=_0x5d5233[_0x4e04b8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4e04b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4e04b8([0x56,0x61,0x6c,0x69,0x64]);})[_0x4e04b8([0x74,0x68,0x65,0x6e])](_0x215abb=>(_0x1bf3c0(),_0x215abb),()=>{const _0x1cb189=_0x28a8ed();return null==_0x1cb189?(_0x1bf3c0(),_0x4e04b8([0x56,0x61,0x6c,0x69,0x64])):_0x4e04b8(_0x17787e-_0x1cb189>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4e04b8([0x74,0x68,0x65,0x6e])](_0x1bd3d7)[_0x4e04b8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1bd3d7(_0x4e04b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5daf71=0x36ee80;function _0x1bf3c0(){const _0x530f96=_0x4e04b8([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fe20c(_0x38e747(_0x24be4d)),_0x3f888c=_0x371c69(_0x2fe20c(window[_0x4e04b8([0x4d,0x61,0x74,0x68])][_0x4e04b8([0x63,0x65,0x69,0x6c])](_0x17787e/_0x5daf71)));window[_0x4e04b8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e04b8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x530f96,_0x3f888c);}function _0x28a8ed(){const _0x514c03=_0x4e04b8([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fe20c(_0x38e747(_0x24be4d)),_0x3b69a7=window[_0x4e04b8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e04b8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x514c03);return _0x3b69a7?window[_0x4e04b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x371c69(_0x3b69a7),0x10)*_0x5daf71:null;}function _0x342f47(_0x85cdbf){return new window[(_0x4e04b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a9997,_0x303446)=>{_0x85cdbf[_0x4e04b8([0x74,0x68,0x65,0x6e])](_0x5a9997,_0x303446),window[_0x4e04b8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x303446,0x1d4c0);});}}_0x16eb5f[_0x4e04b8([0x6f,0x6e])](_0x4e04b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2ba597,_0x5d9e1a)=>{if(_0x5d9e1a[0x0]!=_0x24be4d)return _0x1bd3d7(_0x4e04b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d9e1a[0x1]={..._0x5d9e1a[0x1],[_0x4e04b8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x35260c};},{[_0x4e04b8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e04b8([0x68,0x69,0x67,0x68])}),_0x16eb5f[_0x4e04b8([0x6f,0x6e])](_0x4e04b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f863c=>{_0x29462(_0x4f863c[_0x4e04b8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x6fc8a9=!0x0,_0x11a9dc(_0x4f863c[_0x4e04b8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4e04b8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e04b8([0x6c,0x6f,0x77])}),_0x4a0677[_0x4e04b8([0x74,0x68,0x65,0x6e])](()=>{_0x6fc8a9||_0x1bd3d7(_0x4e04b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55227c(){return _0x16eb5f[_0x4e04b8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e04b8([0x76,0x69,0x65,0x77])][_0x4e04b8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4e04b8([0x61,0x75,0x74,0x6f]);}function _0xbec70f(){_0x16eb5f[_0x4e04b8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e04b8([0x76,0x69,0x65,0x77])][_0x4e04b8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e04b8([0x61,0x75,0x74,0x6f]);}}(_0x29f5ae[_0x4e04b8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x29f5ae[_0x4e04b8([0x6a,0x74,0x69])]));const _0xdf3006=await(async function(){let _0x15b4e0=!0x0;try{const _0x98ceb=_0x52ee62[_0x4e04b8([0x73,0x70,0x6c,0x69,0x74])](_0x4e04b8([0x2e])),[_0x4e9ecc,_0x330d14,_0x4e05a5]=_0x98ceb;return _0x57cb66(_0x4e9ecc),await _0x28d45c(_0x4e9ecc,_0x330d14,_0x4e05a5),_0x15b4e0;}catch{return!0x1;}function _0x57cb66(_0x50bdd8){const _0x11d231=_0x5495ea(_0x50bdd8);_0x11d231&&_0x11d231[_0x4e04b8([0x61,0x6c,0x67])]==_0x4e04b8([0x45,0x53,0x32,0x35,0x36])||(_0x15b4e0=!0x1);}async function _0x28d45c(_0x3b9718,_0x260b48,_0x3384ef){const _0x509f84=window[_0x4e04b8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4e04b8([0x66,0x72,0x6f,0x6d])](_0xec307a(_0x3384ef),_0x53639c=>_0x53639c[_0x4e04b8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x13729c=new window[(_0x4e04b8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4e04b8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b9718+_0x4e04b8([0x2e])+_0x260b48),_0x5beb90=window[_0x4e04b8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4e04b8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5beb90)return;const _0x93c301=await _0x5beb90[_0x4e04b8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4e04b8([0x6a,0x77,0x6b]),_0x432bfa,{[_0x4e04b8([0x6e,0x61,0x6d,0x65])]:_0x4e04b8([0x45,0x43,0x44,0x53,0x41]),[_0x4e04b8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4e04b8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4e04b8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5beb90[_0x4e04b8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4e04b8([0x6e,0x61,0x6d,0x65])]:_0x4e04b8([0x45,0x43,0x44,0x53,0x41]),[_0x4e04b8([0x68,0x61,0x73,0x68])]:{[_0x4e04b8([0x6e,0x61,0x6d,0x65])]:_0x4e04b8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x93c301,_0x509f84,_0x13729c)||(_0x15b4e0=!0x1);}}());return _0xdf3006?(function(){const _0x274619=_0x29f5ae[_0x4e04b8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x274619)return!0x1;if(_0x274619[_0x4e04b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e04b8([0x2a])))return!0x0;if(_0x274619[_0x4e04b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e04b8([0x44,0x4f])))return!0x0;if(_0x274619[_0x4e04b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e04b8([0x50,0x50])))return!0x0;if(_0x274619[_0x4e04b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e04b8([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x4e04b8([0x67,0x6c,0x6f,0x62])]&&window[_0x4e04b8([0x67,0x6c,0x6f,0x62])][_0x4e04b8([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x59da51=[_0x4e04b8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4e04b8([0x74,0x72,0x69,0x61,0x6c])][_0x4e04b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29f5ae[_0x4e04b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x17787e/0x3e8:0x69e96100;return _0x29f5ae[_0x4e04b8([0x65,0x78,0x70])]<_0x59da51;}())?_0x4e04b8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0xdb29a=_0x29f5ae[_0x4e04b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xdb29a||0x0==_0xdb29a[_0x4e04b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1fb6d3}=new URL(window[_0x4e04b8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xdb29a[_0x4e04b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fb6d3))return!0x0;const _0x256fb6=_0x1fb6d3[_0x4e04b8([0x73,0x70,0x6c,0x69,0x74])](_0x4e04b8([0x2e]));return _0xdb29a[_0x4e04b8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1568d3=>_0x1568d3[_0x4e04b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e04b8([0x2a])))[_0x4e04b8([0x6d,0x61,0x70])](_0x1c5c43=>_0x1c5c43[_0x4e04b8([0x73,0x70,0x6c,0x69,0x74])](_0x4e04b8([0x2e])))[_0x4e04b8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x491943=>_0x491943[_0x4e04b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x256fb6[_0x4e04b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e04b8([0x6d,0x61,0x70])](_0x1c81ef=>Array(_0x256fb6[_0x4e04b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1c81ef[_0x4e04b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e04b8([0x66,0x69,0x6c,0x6c])](_0x1c81ef[0x0]===_0x4e04b8([0x2a])?_0x4e04b8([0x2a]):'')[_0x4e04b8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1c81ef))[_0x4e04b8([0x73,0x6f,0x6d,0x65])](_0x1d1eb6=>_0x256fb6[_0x4e04b8([0x65,0x76,0x65,0x72,0x79])]((_0x167e1d,_0x53bbb6)=>_0x1d1eb6[_0x53bbb6]===_0x167e1d||_0x1d1eb6[_0x53bbb6]===_0x4e04b8([0x2a])));}())?(_0x29f5ae[_0x4e04b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e04b8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x9e7ca6=function(_0x7421dc){const _0x1bd4d3=new window[(_0x4e04b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b89e=>setTimeout(_0x5b89e,0x93ecc)),_0x22ca02=_0x4a0677[_0x4e04b8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4e04b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x295dba=>{let _0x4decf6=0x0;_0x16eb5f[_0x4e04b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e04b8([0x6f,0x6e])](_0x4e04b8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xa85999,_0x5c07e3)=>{_0x5c07e3[0x0][_0x4e04b8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4decf6++,0x5e8==_0x4decf6&&(_0x295dba(),_0xa85999[_0x4e04b8([0x6f,0x66,0x66])]());});})),_0x3d8916=[_0x1bd4d3,_0x22ca02];return window[_0x4e04b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e04b8([0x72,0x61,0x63,0x65])](_0x3d8916)[_0x4e04b8([0x74,0x68,0x65,0x6e])](()=>_0x7421dc);}(_0x4e04b8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x9e7ca6&&_0x4b90e0)return new window[(_0x4e04b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ee202,_0x5bae55)=>{_0x9e7ca6[_0x4e04b8([0x74,0x68,0x65,0x6e])](_0x2ee202,_0x5bae55),_0x4b90e0[_0x4e04b8([0x74,0x68,0x65,0x6e])](_0x4d13bc=>{_0x4d13bc!=_0x4e04b8([0x56,0x61,0x6c,0x69,0x64])&&_0x2ee202(_0x4d13bc);},_0x5bae55);});return _0x9e7ca6||_0x4b90e0||_0x4e04b8([0x56,0x61,0x6c,0x69,0x64]);}())):_0x4e04b8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4e04b8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4e04b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4e04b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x5495ea(_0x2fc14e){return _0x2fc14e[_0x4e04b8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4e04b8([0x65,0x79]))?JSON[_0x4e04b8([0x70,0x61,0x72,0x73,0x65])](_0xec307a(_0x2fc14e)):null;}function _0xec307a(_0x594cc6){return window[_0x4e04b8([0x61,0x74,0x6f,0x62])](_0x594cc6[_0x4e04b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4e04b8([0x2b]))[_0x4e04b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4e04b8([0x2f])));}function _0x38e747(_0x192678){let _0x206c18=0x1505;function _0x3d4125(_0x12b6f1){for(let _0x214a50=0x0;_0x214a50<_0x12b6f1[_0x4e04b8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x214a50++){const _0x47ea29=_0x12b6f1[_0x4e04b8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x214a50);_0x206c18=(_0x206c18<<0x5)+_0x206c18+_0x47ea29,_0x206c18&=_0x206c18;}}return function _0x5cea26(_0x584556){Array[_0x4e04b8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x584556)?_0x584556[_0x4e04b8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5cea26):_0x584556&&typeof _0x584556==_0x4e04b8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4e04b8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x584556)[_0x4e04b8([0x73,0x6f,0x72,0x74])]()[_0x4e04b8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3b538a,_0x5e87aa])=>{_0x3d4125(_0x3b538a),_0x5cea26(_0x5e87aa);}):_0x3d4125(window[_0x4e04b8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x584556));}(_0x192678),_0x206c18>>>0x0;}function _0x2fe20c(_0x26832c){return _0x26832c[_0x4e04b8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4e04b8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4e04b8([0x30]));}function _0x371c69(_0x47c0df){return _0x47c0df[_0x4e04b8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4e04b8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4e04b8([0x6a,0x6f,0x69,0x6e])]('');}function _0x44b58b(){}function _0x4e04b8(_0x3de625){return _0x3de625['map'](_0x2ae6e7=>String['fromCharCode'](_0x2ae6e7))['join']('');}!function(_0x39d883){const _0x12ff0a=(function(){const _0x3c8dfd=window[_0x4e04b8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4e04b8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4e04b8([0x6e,0x6f,0x77])]())[_0x4e04b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4e04b8([0x2e]),'');let _0x1901db=_0x4e04b8([0x61]);for(let _0x2eea18=0x0;_0x2eea18<_0x3c8dfd[_0x4e04b8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2eea18+=0x2){let _0x1065a6=window[_0x4e04b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c8dfd[_0x4e04b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2eea18,_0x2eea18+0x2));_0x1065a6>=_0x11f81c[_0x4e04b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1065a6-=_0x11f81c[_0x4e04b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1901db+=_0x11f81c[_0x1065a6];}return _0x1901db;}());_0x16eb5f[_0x12ff0a]=_0x4e04b8([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])+_0x39d883,_0x39d883!=_0x4e04b8([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x4a0677,_0x16eb5f[_0x4e04b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e04b8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x44b58b,_0x16eb5f[_0x4e04b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e04b8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x44b58b,_0x16eb5f[_0x4e04b8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4e04b8([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x33d9c3);}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 _0x1e7fd7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x34c106;for(const _0x59f898 in _0x1e7fd7){const _0x416f0b=_0x59f898,_0x56c61a=_0x1e7fd7[_0x416f0b];if('documentOutlineLicenseKeyValid'==_0x56c61a||'documentOutlineLicenseKeyInvalid'==_0x56c61a||'documentOutlineLicenseKeyExpired'==_0x56c61a||'documentOutlineLicenseKeyDomainLimit'==_0x56c61a||'documentOutlineLicenseKeyNotAllowed'==_0x56c61a||'documentOutlineLicenseKeyEvaluationLimit'==_0x56c61a||'documentOutlineLicenseKeyUsageLimit'==_0x56c61a){delete _0x1e7fd7[_0x416f0b],_0x34c106=_0x56c61a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x34c106&&_0x1e7fd7['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x34c106&&_0x1e7fd7['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x34c106&&_0x1e7fd7['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x34c106&&_0x1e7fd7['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x34c106&&_0x1e7fd7['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x34c106&&_0x1e7fd7['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContentsCommand extends Command{['execute'](){this['editor']['model']['change'](_0xbbf6fe=>{this['editor']['model']['insertObject'](_0xbbf6fe['createElement']('tableOfContents'));});}['refresh'](){const _0x1db28a=this['editor']['model'],_0x3c21c9=_0x1db28a['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x3c21c9&&_0x1db28a['schema']['findAllowedParent'](_0x3c21c9,'tableOfContents'));}}class HeadingId extends Plugin{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0xacdcb9=this['editor'];if(_0xacdcb9['config']['get']('headingId.modelAttributeName'))return;getDefaultHeadingMapNames(this['editor']['config']['get']('heading.options'))['forEach']((_0x48ffa6,_0x2b836b)=>{this['_customUpcastHeadingsConversion'](_0x2b836b),this['_customDataDowncastHeadingsConversion'](_0x48ffa6),_0xacdcb9['model']['schema']['isRegistered'](_0x48ffa6)&&_0xacdcb9['model']['schema']['extend'](_0x48ffa6,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']();}['_customUpcastHeadingsConversion'](_0x5db3a0){this['editor']['conversion']['for']('upcast')['add'](_0x2b64ee=>_0x2b64ee['on']('element:'+_0x5db3a0,(_0x2fd0b4,_0x2c28b5,_0x4c07b9)=>{const {consumable:_0x526bb8,writer:_0x4bc9f5}=_0x4c07b9,_0x1d07b=_0x2c28b5['viewItem']['getAttribute']('id'),_0x1db598=_0x2c28b5['modelRange']['getContainedElement']();if(_0x1db598)return _0x1d07b&&_0x1d07b['length']||_0x1db598['hasAttribute']('headingId')?void(_0x526bb8['consume'](_0x2c28b5['viewItem'],{'attributes':['id']})&&_0x4bc9f5['setAttribute']('headingId',_0x1d07b,_0x1db598)):(_0x526bb8['consume'](_0x2c28b5['viewItem'],{'attributes':['id']}),void _0x4bc9f5['setAttribute']('headingId',uid(),_0x1db598));},{'priority':priorities['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x104f25){this['editor']['conversion']['for']('downcast')['add'](_0x158b66=>_0x158b66['on']('attribute:headingId:'+_0x104f25,(_0x5ebf9b,_0xa3460f,_0x106655)=>{if(!_0x106655['consumable']['consume'](_0xa3460f['item'],_0x5ebf9b['name']))return;const _0xd1e05e=_0xa3460f['item']['getAttribute']('headingId'),_0x57b086=_0x106655['mapper']['toViewElement'](_0xa3460f['item']);_0x106655['writer']['setAttribute']('id',_0xd1e05e,_0x57b086);}));}['_registerHeadingIdAttributePostfixer'](){const _0x2e48a1=this['editor'],_0x48c9c1=new Set(),_0x456050=new Set();function _0x51c2bd(_0x5e5437,_0x9031f4){const _0x46e422=uid();return _0x456050['add'](_0x46e422),_0x5e5437['setAttribute']('headingId',_0x46e422,_0x9031f4),_0x46e422;}function _0x282a03(_0x376477,_0x577cf4){_0x376477['removeAttribute']('headingId',_0x577cf4);}_0x2e48a1['model']['document']['registerPostFixer'](_0x409fb1=>{const _0x468f34=_0x2e48a1['model']['document']['differ']['getChanges']();let _0x269c52=!0x1;for(const _0x4e79b6 of _0x468f34)if('insert'==_0x4e79b6['type']&&_0x4e79b6['name']){if(isHeading$1(_0x4e79b6['name'])){const _0x4ce95e=_0x4e79b6['attributes']['get']('headingId');'string'==typeof _0x4ce95e?_0x48c9c1['has'](_0x4ce95e)?(_0x51c2bd(_0x409fb1,_0x4e79b6['position']['nodeAfter']),_0x269c52=!0x0):_0x456050['add'](_0x4ce95e):(_0x51c2bd(_0x409fb1,_0x4e79b6['position']['nodeAfter']),_0x269c52=!0x0);}else'string'==typeof _0x4e79b6['attributes']['get']('headingId')&&(_0x282a03(_0x409fb1,_0x4e79b6['position']['nodeAfter']),_0x269c52=!0x0);}else{if('remove'==_0x4e79b6['type']){const _0x5e005e=_0x4e79b6['attributes']['get']('headingId');'string'==typeof _0x5e005e&&_0x48c9c1['delete'](_0x5e005e);}}return _0x269c52;}),_0x2e48a1['model']['document']['on']('change',()=>{_0x456050['forEach'](_0x42d4f7=>_0x48c9c1['add'](_0x42d4f7)),_0x456050['clear']();});}}function isHeading$1(_0x102f28){return!!_0x102f28['match'](/heading\d/);}function getDefaultHeadingMapNames(_0x318659){const _0x461954=new Map();return _0x318659?(_0x318659['forEach'](_0x1070ee=>{'paragraph'!==_0x1070ee['model']&&_0x461954['set'](_0x1070ee['view'],_0x1070ee['model']);}),_0x461954['get']('h1')||_0x461954['set']('h1','heading1'),_0x461954):_0x461954;}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(_0x11e818){super(_0x11e818),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x43af33=this['editor'],_0x22c20c=_0x43af33['editing']['view']['document'];_0x43af33['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x43af33['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x22c20c,'click',(_0x1c14d4,_0xe0aa51)=>{if(!_0xe0aa51['target'])return;const _0x175698=_0xe0aa51['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x175698)&&(_0xe0aa51['domEvent']['preventDefault'](),_0x1c14d4['stop'](),this['_handleScrollToHeading'](_0x175698));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x43af33['commands']['add']('insertTableOfContents',new TableOfContentsCommand(_0x43af33)),(_0x43af33['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0xaa83fc,_0x35f0f9)=>{this['_currentOutlineDefinitions']=_0x35f0f9['outlineDefinitions'],this['_updateTableOfContentsElements']();}),this['listenTo'](_0x43af33['model']['document'],'change',()=>{this['_trackNewToCElements']();}));}['afterInit'](){checkLicense$f(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x40c170=>{'$graveyard'!==_0x40c170['rootName']&&this['editor']['editing']['reconvertItem'](_0x40c170);});}['_trackNewToCElements'](){for(const _0x61e59a of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x61e59a['type']||'tableOfContents'!==_0x61e59a['name'])return;this['_tableOfContentsElements']['add'](_0x61e59a['position']['nodeAfter']);}}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x2df412=this['editor']['conversion'];_0x2df412['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x2df412['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0xc929c2,{writer:_0x374eb1})=>this['_createTableOfContents'](_0x374eb1,!0x0)}),_0x2df412['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x555fe1,{writer:_0x190467})=>{this['_tableOfContentsElements']['add'](_0x555fe1);const _0xaf824e=this['_createTableOfContents'](_0x190467);return toWidget(_0xaf824e,_0x190467,{'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'](_0x5cfad1,_0x10935c=!0x1){const {locale:_0x4a3fd}=this['editor'],_0x3edceb=_0x5cfad1['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x10935c&&{'data-table-of-contents-label':getTranslation$e(_0x4a3fd,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x10935c&&_0x5cfad1['insert'](_0x5cfad1['createPositionAt'](_0x3edceb,'end'),_0x5cfad1['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x5cfad1['createText'](getTranslation$e(_0x4a3fd,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x5a2e64=_0x10935c?'':'['+getTranslation$e(_0x4a3fd,'Empty\x20heading')+']';let _0x54989a=_0x3edceb;return this['_currentOutlineDefinitions']['forEach']((_0x591d58,_0x5a8853,_0x42d186)=>{const _0x36ab95=this['editor']['model']['hasContent'](_0x591d58['modelElement'],{'ignoreWhitespaces':!0x0}),_0x2210ec=_0x36ab95?_0x591d58['text']:_0x5a2e64,_0x33d4c0=_0x591d58['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x5e6710=_0x5cfad1['createContainerElement']('a',{'href':'#'+_0x33d4c0,...!_0x10935c&&{'tabindex':'-1'}},[_0x5cfad1['createText'](_0x2210ec)]),_0x3b0970=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x5cfad1['setCustomProperty']('tableOfContentsHeadingIndex',_0x5a8853,_0x5e6710);const _0x1b8289=_0x5cfad1['createContainerElement']('li',null,[_0x36ab95||!_0x10935c&&_0x3b0970?_0x5e6710:_0x5cfad1['createText']('')]),_0x328a43=_0x5a8853?_0x42d186[_0x5a8853-0x1]['level']:0x0,_0x447ed4=Math['abs'](_0x591d58['level']-_0x328a43);if(_0x591d58['level']>_0x328a43){const _0x2329f2=wrapInList(_0x1b8289,_0x447ed4,_0x5cfad1);_0x5cfad1['insert'](_0x5cfad1['createPositionAt'](_0x54989a,'end'),_0x2329f2);}else{const _0x271779=getOuterListByLevelDifference(_0x54989a,_0x447ed4);_0x5cfad1['insert'](_0x5cfad1['createPositionAt'](_0x271779,'end'),_0x1b8289);}_0x54989a=_0x1b8289;}),_0x3edceb;}['_handleScrollToHeading'](_0x39aa4e){const _0x7584b2=this['_currentOutlineDefinitions'][_0x39aa4e]['modelElement'];this['editor']['model']['change'](_0x54ef97=>{_0x54ef97['setSelection'](_0x7584b2,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x5912ee,_0x20af54)=>{const _0x160ff7=_0x20af54['mapper'],_0x1ac0f2=_0x160ff7['findMappedViewAncestor'](_0x20af54['viewPosition']),_0x2d827b=_0x160ff7['toModelElement'](_0x1ac0f2);_0x2d827b['is']('element','tableOfContents')&&(_0x20af54['modelPosition']=this['editor']['model']['createPositionAt'](_0x2d827b,0x0),_0x5912ee['stop']());};}}function wrapInList(_0x14c322,_0x256a61,_0x235140){return 0x1===_0x256a61?_0x235140['createContainerElement']('ol',null,[_0x14c322]):_0x235140['createContainerElement']('ol',null,[_0x235140['createContainerElement']('li',null,[wrapInList(_0x14c322,_0x256a61-0x1,_0x235140)])]);}function getOuterListByLevelDifference(_0x543877,_0x4909ec){return _0x543877['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x430694=>_0x430694['is']('element','ol'))[_0x4909ec];}async function checkLicense$f(_0xff6381){const _0x4fadbe=_0x5b0b59([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]),_0x1c71f2=window[_0x5b0b59([0x44,0x61,0x74,0x65])][_0x5b0b59([0x6e,0x6f,0x77])](),_0x50dbd0=_0xff6381[_0x5b0b59([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc1928b=new window[(_0x5b0b59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aa288=>{_0x50dbd0[_0x5b0b59([0x6f,0x6e,0x63,0x65])](_0x5b0b59([0x72,0x65,0x61,0x64,0x79]),_0x3aa288);}),_0x1c278d={[_0x5b0b59([0x6b,0x74,0x79])]:_0x5b0b59([0x45,0x43]),[_0x5b0b59([0x75,0x73,0x65])]:_0x5b0b59([0x73,0x69,0x67]),[_0x5b0b59([0x63,0x72,0x76])]:_0x5b0b59([0x50,0x2d,0x32,0x35,0x36]),[_0x5b0b59([0x78])]:_0x5b0b59([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]),[_0x5b0b59([0x79])]:_0x5b0b59([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]),[_0x5b0b59([0x61,0x6c,0x67])]:_0x5b0b59([0x45,0x53,0x32,0x35,0x36])},_0x2bf1ac=_0x50dbd0[_0x5b0b59([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5b0b59([0x67,0x65,0x74])](_0x5b0b59([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x23d57d=await(async function(){let _0x27dbb0,_0x49321d=null,_0x19cfe5=null;try{if(_0x2bf1ac==_0x5b0b59([0x47,0x50,0x4c]))return _0x5b0b59([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x27dbb0=(function(){const _0x5a1056=_0x2bf1ac[_0x5b0b59([0x73,0x70,0x6c,0x69,0x74])](_0x5b0b59([0x2e]));if(0x3!=_0x5a1056[_0x5b0b59([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x5ae3da=_0x5a1056[0x1];return _0x5912d(_0x5ae3da);function _0x5912d(_0x57c3d8){const _0x3e6767=_0x1228fd(_0x57c3d8);return _0x3e6767&&_0x398490()?_0x3e6767:null;function _0x398490(){const _0x5d0673=_0x3e6767[_0x5b0b59([0x6a,0x74,0x69])],_0x1df2d7=window[_0x5b0b59([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d0673[_0x5b0b59([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d0673[_0x5b0b59([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1508a3={..._0x3e6767,[_0x5b0b59([0x6a,0x74,0x69])]:_0x5d0673[_0x5b0b59([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5d0673[_0x5b0b59([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1508a3[_0x5b0b59([0x76,0x63])],_0x2d236f(_0x1508a3)==_0x1df2d7;}}}()),!_0x27dbb0)return _0x5b0b59([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x27dbb0[_0x5b0b59([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x19cfe5=function(_0x28b651,_0x18d2e9){return new window[(_0x5b0b59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa0ea35=>{if(_0xca2fad())return _0xa0ea35(_0x5b0b59([0x56,0x61,0x6c,0x69,0x64]));_0x568467(),_0x50dbd0[_0x5b0b59([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5b0b59([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c64e9=!0x1;const _0x16f682=uid();function _0x21adaf(_0xc17c34){return!!_0xc17c34&&(typeof _0xc17c34===_0x5b0b59([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xc17c34===_0x5b0b59([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xc17c34[_0x5b0b59([0x74,0x68,0x65,0x6e])]===_0x5b0b59([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xc17c34[_0x5b0b59([0x63,0x61,0x74,0x63,0x68])]===_0x5b0b59([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3a63e1(_0x13c143){_0x59265a(_0x13c143)[_0x5b0b59([0x74,0x68,0x65,0x6e])](_0x13a10f=>{if(!_0x13a10f||_0x13a10f[_0x5b0b59([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5b0b59([0x6f,0x6b]))return _0x5b0b59([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xdb0bf3(_0x2d236f(_0x16f682+_0x18d2e9))!=_0x13a10f[_0x5b0b59([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5b0b59([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5b0b59([0x56,0x61,0x6c,0x69,0x64]);})[_0x5b0b59([0x74,0x68,0x65,0x6e])](_0x440470=>(_0x26dd61(),_0x440470),()=>{const _0x2ef1cf=_0x48882a();return null==_0x2ef1cf?(_0x26dd61(),_0x5b0b59([0x56,0x61,0x6c,0x69,0x64])):_0x5b0b59(_0x1c71f2-_0x2ef1cf>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5b0b59([0x74,0x68,0x65,0x6e])](_0xa0ea35)[_0x5b0b59([0x63,0x61,0x74,0x63,0x68])](()=>{_0xa0ea35(_0x5b0b59([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39fe10=0x36ee80;function _0x26dd61(){const _0x338091=_0x5b0b59([0x6c,0x6c,0x63,0x74,0x2d])+_0xdb0bf3(_0x2d236f(_0x28b651)),_0xefd87b=_0x32d9ec(_0xdb0bf3(window[_0x5b0b59([0x4d,0x61,0x74,0x68])][_0x5b0b59([0x63,0x65,0x69,0x6c])](_0x1c71f2/_0x39fe10)));window[_0x5b0b59([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b0b59([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x338091,_0xefd87b);}function _0x48882a(){const _0x4b116c=_0x5b0b59([0x6c,0x6c,0x63,0x74,0x2d])+_0xdb0bf3(_0x2d236f(_0x28b651)),_0x4a41de=window[_0x5b0b59([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b0b59([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b116c);return _0x4a41de?window[_0x5b0b59([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32d9ec(_0x4a41de),0x10)*_0x39fe10:null;}function _0x59265a(_0x565fe0){return new window[(_0x5b0b59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3281b9,_0x46af28)=>{_0x565fe0[_0x5b0b59([0x74,0x68,0x65,0x6e])](_0x3281b9,_0x46af28),window[_0x5b0b59([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46af28,0x1d4c0);});}}_0x50dbd0[_0x5b0b59([0x6f,0x6e])](_0x5b0b59([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x9302b5,_0x1f7c26)=>{if(_0x1f7c26[0x0]!=_0x28b651)return _0xa0ea35(_0x5b0b59([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1f7c26[0x1]={..._0x1f7c26[0x1],[_0x5b0b59([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x16f682};},{[_0x5b0b59([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b0b59([0x68,0x69,0x67,0x68])}),_0x50dbd0[_0x5b0b59([0x6f,0x6e])](_0x5b0b59([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xa9bb8=>{_0x21adaf(_0xa9bb8[_0x5b0b59([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c64e9=!0x0,_0x3a63e1(_0xa9bb8[_0x5b0b59([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5b0b59([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b0b59([0x6c,0x6f,0x77])}),_0xc1928b[_0x5b0b59([0x74,0x68,0x65,0x6e])](()=>{_0x5c64e9||_0xa0ea35(_0x5b0b59([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xca2fad(){return _0x50dbd0[_0x5b0b59([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b0b59([0x76,0x69,0x65,0x77])][_0x5b0b59([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5b0b59([0x61,0x75,0x74,0x6f]);}function _0x568467(){_0x50dbd0[_0x5b0b59([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b0b59([0x76,0x69,0x65,0x77])][_0x5b0b59([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b0b59([0x61,0x75,0x74,0x6f]);}}(_0x27dbb0[_0x5b0b59([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x27dbb0[_0x5b0b59([0x6a,0x74,0x69])]));const _0x17df81=await(async function(){let _0x56bd79=!0x0;try{const _0x499ae8=_0x2bf1ac[_0x5b0b59([0x73,0x70,0x6c,0x69,0x74])](_0x5b0b59([0x2e])),[_0x178505,_0x2650fe,_0x493d0a]=_0x499ae8;return _0x3665ac(_0x178505),await _0x338bea(_0x178505,_0x2650fe,_0x493d0a),_0x56bd79;}catch{return!0x1;}function _0x3665ac(_0x3f44fd){const _0x2c3abb=_0x1228fd(_0x3f44fd);_0x2c3abb&&_0x2c3abb[_0x5b0b59([0x61,0x6c,0x67])]==_0x5b0b59([0x45,0x53,0x32,0x35,0x36])||(_0x56bd79=!0x1);}async function _0x338bea(_0x1057be,_0x3ca706,_0x5f2c31){const _0x16112f=window[_0x5b0b59([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5b0b59([0x66,0x72,0x6f,0x6d])](_0x5cb958(_0x5f2c31),_0x58c2c6=>_0x58c2c6[_0x5b0b59([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2ebcfd=new window[(_0x5b0b59([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5b0b59([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1057be+_0x5b0b59([0x2e])+_0x3ca706),_0x291ecd=window[_0x5b0b59([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5b0b59([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x291ecd)return;const _0x53c150=await _0x291ecd[_0x5b0b59([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5b0b59([0x6a,0x77,0x6b]),_0x1c278d,{[_0x5b0b59([0x6e,0x61,0x6d,0x65])]:_0x5b0b59([0x45,0x43,0x44,0x53,0x41]),[_0x5b0b59([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5b0b59([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5b0b59([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x291ecd[_0x5b0b59([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5b0b59([0x6e,0x61,0x6d,0x65])]:_0x5b0b59([0x45,0x43,0x44,0x53,0x41]),[_0x5b0b59([0x68,0x61,0x73,0x68])]:{[_0x5b0b59([0x6e,0x61,0x6d,0x65])]:_0x5b0b59([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x53c150,_0x16112f,_0x2ebcfd)||(_0x56bd79=!0x1);}}());return _0x17df81?(function(){const _0x534b98=_0x27dbb0[_0x5b0b59([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x534b98)return!0x1;if(_0x534b98[_0x5b0b59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b0b59([0x2a])))return!0x0;if(_0x534b98[_0x5b0b59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b0b59([0x54,0x4f,0x43])))return!0x0;if(_0x534b98[_0x5b0b59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b0b59([0x50,0x50])))return!0x0;if(_0x534b98[_0x5b0b59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b0b59([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x5b0b59([0x67,0x6c,0x6f,0x62])]&&window[_0x5b0b59([0x67,0x6c,0x6f,0x62])][_0x5b0b59([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x516bf2=[_0x5b0b59([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5b0b59([0x74,0x72,0x69,0x61,0x6c])][_0x5b0b59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27dbb0[_0x5b0b59([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1c71f2/0x3e8:0x69e96100;return _0x27dbb0[_0x5b0b59([0x65,0x78,0x70])]<_0x516bf2;}())?_0x5b0b59([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x20383a=_0x27dbb0[_0x5b0b59([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20383a||0x0==_0x20383a[_0x5b0b59([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58c76c}=new URL(window[_0x5b0b59([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20383a[_0x5b0b59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58c76c))return!0x0;const _0x3640f2=_0x58c76c[_0x5b0b59([0x73,0x70,0x6c,0x69,0x74])](_0x5b0b59([0x2e]));return _0x20383a[_0x5b0b59([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1171e=>_0x1171e[_0x5b0b59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b0b59([0x2a])))[_0x5b0b59([0x6d,0x61,0x70])](_0x4fa971=>_0x4fa971[_0x5b0b59([0x73,0x70,0x6c,0x69,0x74])](_0x5b0b59([0x2e])))[_0x5b0b59([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e4c21=>_0x5e4c21[_0x5b0b59([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3640f2[_0x5b0b59([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5b0b59([0x6d,0x61,0x70])](_0x227c52=>Array(_0x3640f2[_0x5b0b59([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x227c52[_0x5b0b59([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5b0b59([0x66,0x69,0x6c,0x6c])](_0x227c52[0x0]===_0x5b0b59([0x2a])?_0x5b0b59([0x2a]):'')[_0x5b0b59([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x227c52))[_0x5b0b59([0x73,0x6f,0x6d,0x65])](_0x38986d=>_0x3640f2[_0x5b0b59([0x65,0x76,0x65,0x72,0x79])]((_0x560ded,_0xda61de)=>_0x38986d[_0xda61de]===_0x560ded||_0x38986d[_0xda61de]===_0x5b0b59([0x2a])));}())?(_0x27dbb0[_0x5b0b59([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b0b59([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x49321d=function(_0x8372f1){const _0x519579=new window[(_0x5b0b59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dbe76=>setTimeout(_0x5dbe76,0x93ecc)),_0x27f476=_0xc1928b[_0x5b0b59([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5b0b59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42dcde=>{let _0x659bd0=0x0;_0x50dbd0[_0x5b0b59([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b0b59([0x6f,0x6e])](_0x5b0b59([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3d22e1,_0x52870c)=>{_0x52870c[0x0][_0x5b0b59([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x659bd0++,0x5e8==_0x659bd0&&(_0x42dcde(),_0x3d22e1[_0x5b0b59([0x6f,0x66,0x66])]());});})),_0x5035d1=[_0x519579,_0x27f476];return window[_0x5b0b59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b0b59([0x72,0x61,0x63,0x65])](_0x5035d1)[_0x5b0b59([0x74,0x68,0x65,0x6e])](()=>_0x8372f1);}(_0x5b0b59([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x49321d&&_0x19cfe5)return new window[(_0x5b0b59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5139d9,_0x1b754a)=>{_0x49321d[_0x5b0b59([0x74,0x68,0x65,0x6e])](_0x5139d9,_0x1b754a),_0x19cfe5[_0x5b0b59([0x74,0x68,0x65,0x6e])](_0x1a283e=>{_0x1a283e!=_0x5b0b59([0x56,0x61,0x6c,0x69,0x64])&&_0x5139d9(_0x1a283e);},_0x1b754a);});return _0x49321d||_0x19cfe5||_0x5b0b59([0x56,0x61,0x6c,0x69,0x64]);}())):_0x5b0b59([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5b0b59([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5b0b59([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5b0b59([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x1228fd(_0x2fc424){return _0x2fc424[_0x5b0b59([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5b0b59([0x65,0x79]))?JSON[_0x5b0b59([0x70,0x61,0x72,0x73,0x65])](_0x5cb958(_0x2fc424)):null;}function _0x5cb958(_0x96c72f){return window[_0x5b0b59([0x61,0x74,0x6f,0x62])](_0x96c72f[_0x5b0b59([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5b0b59([0x2b]))[_0x5b0b59([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5b0b59([0x2f])));}function _0x2d236f(_0x48083e){let _0x4240b5=0x1505;function _0x791c1a(_0x579f78){for(let _0x9be018=0x0;_0x9be018<_0x579f78[_0x5b0b59([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9be018++){const _0x4eb39c=_0x579f78[_0x5b0b59([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x9be018);_0x4240b5=(_0x4240b5<<0x5)+_0x4240b5+_0x4eb39c,_0x4240b5&=_0x4240b5;}}return function _0x3a43a3(_0xf9291b){Array[_0x5b0b59([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xf9291b)?_0xf9291b[_0x5b0b59([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a43a3):_0xf9291b&&typeof _0xf9291b==_0x5b0b59([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5b0b59([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xf9291b)[_0x5b0b59([0x73,0x6f,0x72,0x74])]()[_0x5b0b59([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3ca197,_0x1c344b])=>{_0x791c1a(_0x3ca197),_0x3a43a3(_0x1c344b);}):_0x791c1a(window[_0x5b0b59([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xf9291b));}(_0x48083e),_0x4240b5>>>0x0;}function _0xdb0bf3(_0x3c9a92){return _0x3c9a92[_0x5b0b59([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5b0b59([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5b0b59([0x30]));}function _0x32d9ec(_0x58ed8a){return _0x58ed8a[_0x5b0b59([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5b0b59([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5b0b59([0x6a,0x6f,0x69,0x6e])]('');}function _0x5cabea(){}function _0x5b0b59(_0x39c036){return _0x39c036['map'](_0x13cc93=>String['fromCharCode'](_0x13cc93))['join']('');}!function(_0x5d7dcc){const _0x27a8ca=(function(){const _0x48fb2c=window[_0x5b0b59([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5b0b59([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5b0b59([0x6e,0x6f,0x77])]())[_0x5b0b59([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5b0b59([0x2e]),'');let _0x559b8d=_0x5b0b59([0x6d]);for(let _0x9ae28f=0x0;_0x9ae28f<_0x48fb2c[_0x5b0b59([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9ae28f+=0x2){let _0x3bf633=window[_0x5b0b59([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48fb2c[_0x5b0b59([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9ae28f,_0x9ae28f+0x2));_0x3bf633>=_0x4fadbe[_0x5b0b59([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3bf633-=_0x4fadbe[_0x5b0b59([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x559b8d+=_0x4fadbe[_0x3bf633];}return _0x559b8d;}());_0x50dbd0[_0x27a8ca]=_0x5b0b59([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])+_0x5d7dcc,_0x5d7dcc!=_0x5b0b59([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0xc1928b,_0x50dbd0[_0x5b0b59([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b0b59([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5cabea,_0x50dbd0[_0x5b0b59([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b0b59([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5cabea,_0x50dbd0[_0x5b0b59([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5b0b59([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x23d57d);}class TableOfContentsUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5e9f0c=this['editor'];_0x5e9f0c['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x108ed5=this['_createButton'](ButtonView);return _0x108ed5['tooltip']=!0x0,_0x108ed5;}),_0x5e9f0c['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](MenuBarMenuListItemButtonView)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1e7273=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1a1582;for(const _0x346b86 in _0x1e7273){const _0x46c4a1=_0x346b86,_0x4ecd1b=_0x1e7273[_0x46c4a1];if('tableOfContentsLicenseKeyValid'==_0x4ecd1b||'tableOfContentsLicenseKeyInvalid'==_0x4ecd1b||'tableOfContentsLicenseKeyExpired'==_0x4ecd1b||'tableOfContentsLicenseKeyDomainLimit'==_0x4ecd1b||'tableOfContentsLicenseKeyNotAllowed'==_0x4ecd1b||'tableOfContentsLicenseKeyEvaluationLimit'==_0x4ecd1b||'tableOfContentsLicenseKeyUsageLimit'==_0x4ecd1b){delete _0x1e7273[_0x46c4a1],_0x1a1582=_0x4ecd1b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x1a1582&&_0x1e7273['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x1a1582&&_0x1e7273['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x1a1582&&_0x1e7273['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x1a1582&&_0x1e7273['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x1a1582&&_0x1e7273['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x1a1582&&_0x1e7273['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x5d2328){const _0x3f8429=this['editor'],_0x5411e0=_0x3f8429['locale'],_0x26a925=_0x3f8429['commands']['get']('insertTableOfContents'),_0x219171=new _0x5d2328(_0x5411e0);return _0x219171['set']({'label':getTranslation$e(_0x5411e0,'Table\x20of\x20contents'),'icon':IconTableOfContents}),_0x219171['bind']('isEnabled')['to'](_0x26a925,'isEnabled'),this['listenTo'](_0x219171,'execute',()=>{_0x3f8429['execute']('insertTableOfContents'),_0x3f8429['editing']['view']['focus']();}),_0x219171;}['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(_0x940c94){super(_0x940c94),_0x940c94['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}['afterInit'](){checkLicense$e(this);}['_logSuppressibleWarning'](_0x59d63e,_0x32f6a6){if(this['_isSuppressedLog'](_0x59d63e,_0x32f6a6))return;const _0x3eee93=BASE_DOCUMENTATION_URL+'/support/error-codes.html#error-'+_0x59d63e;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x59d63e,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x32f6a6?[_0x32f6a6]:[],'\x0aRead\x20more:\x20'+_0x3eee93);}['_logSuppressibleInfo'](_0x2fdfdb,_0x42d580,_0x1569d7){if(this['_isSuppressedLog'](_0x2fdfdb))return;let _0x1f7a90=_0x42d580;_0x1569d7&&(_0x1f7a90+='\x0aRead\x20more:\x20'+(BASE_DOCUMENTATION_URL+'/'+_0x1569d7)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x2fdfdb,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x1f7a90);}['_checkUnsupportedPlugin'](_0x265275,_0xe1e70f){this['editor']['plugins']['has'](_0x265275)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x265275,..._0xe1e70f});}['_validateConfigColorValue'](_0x186b9d){const _0x386ce7=this['editor']['config']['get'](_0x186b9d);if(!_0x386ce7)return;const _0x1aba6f=Array['isArray'](_0x386ce7),_0x16d8b4=_0x1aba6f?_0x386ce7:[_0x386ce7];for(const [_0x5d1d26,_0x1a68de]of _0x16d8b4['entries']()){const _0x2cdbe6='string'==typeof _0x1a68de?_0x1a68de:_0x1a68de['color'];isUnsupportedEmailColorValue(_0x2cdbe6)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x1aba6f?_0x186b9d+'['+_0x5d1d26+']':_0x186b9d,'color':_0x2cdbe6});}}['_validateConfigColorFormat'](_0x27660e){const _0x250d3c=this['editor']['config']['get'](_0x27660e);_0x250d3c&&isUnsupportedEmailColorFormat(_0x250d3c)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x27660e,'format':_0x250d3c});}['_isSuppressedLog'](_0x20b625,_0x5e93d7){const _0x2f9c5c=this['editor']['config']['get']('email.logs');return!!_0x2f9c5c['suppressAll']||(!('function'!=typeof _0x2f9c5c['suppress']||!_0x2f9c5c['suppress'](_0x20b625,_0x5e93d7))||!(!Array['isArray'](_0x2f9c5c['suppress'])||!_0x2f9c5c['suppress']['includes'](_0x20b625)));}}const UNSUPPORTED_COLOR_FORMATS=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function isUnsupportedEmailColorValue(_0x390fd4){return!!_0x390fd4&&UNSUPPORTED_COLOR_FORMATS['some'](_0x28cd00=>_0x390fd4['includes'](_0x28cd00+'('));}function isUnsupportedEmailColorFormat(_0x4ae3bf){return!!_0x4ae3bf&&UNSUPPORTED_COLOR_FORMATS['includes'](_0x4ae3bf);}async function checkLicense$e(_0x5ae006){const _0x563d78=_0xfe4dd1([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]),_0x23ab46=window[_0xfe4dd1([0x44,0x61,0x74,0x65])][_0xfe4dd1([0x6e,0x6f,0x77])](),_0x514921=_0x5ae006[_0xfe4dd1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x52b3cd=new window[(_0xfe4dd1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x436503=>{_0x514921[_0xfe4dd1([0x6f,0x6e,0x63,0x65])](_0xfe4dd1([0x72,0x65,0x61,0x64,0x79]),_0x436503);}),_0x442346={[_0xfe4dd1([0x6b,0x74,0x79])]:_0xfe4dd1([0x45,0x43]),[_0xfe4dd1([0x75,0x73,0x65])]:_0xfe4dd1([0x73,0x69,0x67]),[_0xfe4dd1([0x63,0x72,0x76])]:_0xfe4dd1([0x50,0x2d,0x32,0x35,0x36]),[_0xfe4dd1([0x78])]:_0xfe4dd1([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]),[_0xfe4dd1([0x79])]:_0xfe4dd1([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]),[_0xfe4dd1([0x61,0x6c,0x67])]:_0xfe4dd1([0x45,0x53,0x32,0x35,0x36])},_0x5bc449=_0x514921[_0xfe4dd1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xfe4dd1([0x67,0x65,0x74])](_0xfe4dd1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x52495e=await(async function(){let _0x526873,_0x1af5cd=null,_0x398690=null;try{if(_0x5bc449==_0xfe4dd1([0x47,0x50,0x4c]))return _0xfe4dd1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x526873=(function(){const _0xf58bba=_0x5bc449[_0xfe4dd1([0x73,0x70,0x6c,0x69,0x74])](_0xfe4dd1([0x2e]));if(0x3!=_0xf58bba[_0xfe4dd1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x192672=_0xf58bba[0x1];return _0x43b161(_0x192672);function _0x43b161(_0x3b78f5){const _0x339948=_0x10bf4f(_0x3b78f5);return _0x339948&&_0x1e3be0()?_0x339948:null;function _0x1e3be0(){const _0x1d0aba=_0x339948[_0xfe4dd1([0x6a,0x74,0x69])],_0x1e1836=window[_0xfe4dd1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d0aba[_0xfe4dd1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d0aba[_0xfe4dd1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e020d={..._0x339948,[_0xfe4dd1([0x6a,0x74,0x69])]:_0x1d0aba[_0xfe4dd1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1d0aba[_0xfe4dd1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e020d[_0xfe4dd1([0x76,0x63])],_0x3a1480(_0x1e020d)==_0x1e1836;}}}()),!_0x526873)return _0xfe4dd1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x526873[_0xfe4dd1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x398690=function(_0x1e5244,_0x39736b){return new window[(_0xfe4dd1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c26fc=>{if(_0x45b844())return _0x3c26fc(_0xfe4dd1([0x56,0x61,0x6c,0x69,0x64]));_0x229452(),_0x514921[_0xfe4dd1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xfe4dd1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x20cf8d=!0x1;const _0x4afd1b=uid();function _0x1a1de9(_0xf5a9c9){return!!_0xf5a9c9&&(typeof _0xf5a9c9===_0xfe4dd1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf5a9c9===_0xfe4dd1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf5a9c9[_0xfe4dd1([0x74,0x68,0x65,0x6e])]===_0xfe4dd1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf5a9c9[_0xfe4dd1([0x63,0x61,0x74,0x63,0x68])]===_0xfe4dd1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x273e9a(_0x1527fb){_0x467c91(_0x1527fb)[_0xfe4dd1([0x74,0x68,0x65,0x6e])](_0x3de073=>{if(!_0x3de073||_0x3de073[_0xfe4dd1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xfe4dd1([0x6f,0x6b]))return _0xfe4dd1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x337b4e(_0x3a1480(_0x4afd1b+_0x39736b))!=_0x3de073[_0xfe4dd1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xfe4dd1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xfe4dd1([0x56,0x61,0x6c,0x69,0x64]);})[_0xfe4dd1([0x74,0x68,0x65,0x6e])](_0x3e75f0=>(_0x355930(),_0x3e75f0),()=>{const _0x3fc606=_0x38c6c6();return null==_0x3fc606?(_0x355930(),_0xfe4dd1([0x56,0x61,0x6c,0x69,0x64])):_0xfe4dd1(_0x23ab46-_0x3fc606>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xfe4dd1([0x74,0x68,0x65,0x6e])](_0x3c26fc)[_0xfe4dd1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c26fc(_0xfe4dd1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x45711f=0x36ee80;function _0x355930(){const _0x4801f1=_0xfe4dd1([0x6c,0x6c,0x63,0x74,0x2d])+_0x337b4e(_0x3a1480(_0x1e5244)),_0x1a4439=_0x114df4(_0x337b4e(window[_0xfe4dd1([0x4d,0x61,0x74,0x68])][_0xfe4dd1([0x63,0x65,0x69,0x6c])](_0x23ab46/_0x45711f)));window[_0xfe4dd1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xfe4dd1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4801f1,_0x1a4439);}function _0x38c6c6(){const _0x9e7af8=_0xfe4dd1([0x6c,0x6c,0x63,0x74,0x2d])+_0x337b4e(_0x3a1480(_0x1e5244)),_0x1c821d=window[_0xfe4dd1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xfe4dd1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x9e7af8);return _0x1c821d?window[_0xfe4dd1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x114df4(_0x1c821d),0x10)*_0x45711f:null;}function _0x467c91(_0x18e6a4){return new window[(_0xfe4dd1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ac0de,_0x2ac240)=>{_0x18e6a4[_0xfe4dd1([0x74,0x68,0x65,0x6e])](_0x3ac0de,_0x2ac240),window[_0xfe4dd1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ac240,0x1d4c0);});}}_0x514921[_0xfe4dd1([0x6f,0x6e])](_0xfe4dd1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x55c093,_0x1e424b)=>{if(_0x1e424b[0x0]!=_0x1e5244)return _0x3c26fc(_0xfe4dd1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1e424b[0x1]={..._0x1e424b[0x1],[_0xfe4dd1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4afd1b};},{[_0xfe4dd1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xfe4dd1([0x68,0x69,0x67,0x68])}),_0x514921[_0xfe4dd1([0x6f,0x6e])](_0xfe4dd1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5296fa=>{_0x1a1de9(_0x5296fa[_0xfe4dd1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x20cf8d=!0x0,_0x273e9a(_0x5296fa[_0xfe4dd1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xfe4dd1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xfe4dd1([0x6c,0x6f,0x77])}),_0x52b3cd[_0xfe4dd1([0x74,0x68,0x65,0x6e])](()=>{_0x20cf8d||_0x3c26fc(_0xfe4dd1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x45b844(){return _0x514921[_0xfe4dd1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xfe4dd1([0x76,0x69,0x65,0x77])][_0xfe4dd1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xfe4dd1([0x61,0x75,0x74,0x6f]);}function _0x229452(){_0x514921[_0xfe4dd1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xfe4dd1([0x76,0x69,0x65,0x77])][_0xfe4dd1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xfe4dd1([0x61,0x75,0x74,0x6f]);}}(_0x526873[_0xfe4dd1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x526873[_0xfe4dd1([0x6a,0x74,0x69])]));const _0xb384=await(async function(){let _0x19d50f=!0x0;try{const _0x5dfcfa=_0x5bc449[_0xfe4dd1([0x73,0x70,0x6c,0x69,0x74])](_0xfe4dd1([0x2e])),[_0x405dc8,_0x1d3d60,_0x4b5ddf]=_0x5dfcfa;return _0x3bfc75(_0x405dc8),await _0x3b1b61(_0x405dc8,_0x1d3d60,_0x4b5ddf),_0x19d50f;}catch{return!0x1;}function _0x3bfc75(_0xbbea1e){const _0x58a994=_0x10bf4f(_0xbbea1e);_0x58a994&&_0x58a994[_0xfe4dd1([0x61,0x6c,0x67])]==_0xfe4dd1([0x45,0x53,0x32,0x35,0x36])||(_0x19d50f=!0x1);}async function _0x3b1b61(_0x502cbd,_0x3c98cf,_0x15f53a){const _0x4f3926=window[_0xfe4dd1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xfe4dd1([0x66,0x72,0x6f,0x6d])](_0x1fa1c7(_0x15f53a),_0x475f37=>_0x475f37[_0xfe4dd1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x437ce6=new window[(_0xfe4dd1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xfe4dd1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x502cbd+_0xfe4dd1([0x2e])+_0x3c98cf),_0x1d6f38=window[_0xfe4dd1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xfe4dd1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d6f38)return;const _0x562e22=await _0x1d6f38[_0xfe4dd1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xfe4dd1([0x6a,0x77,0x6b]),_0x442346,{[_0xfe4dd1([0x6e,0x61,0x6d,0x65])]:_0xfe4dd1([0x45,0x43,0x44,0x53,0x41]),[_0xfe4dd1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xfe4dd1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xfe4dd1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d6f38[_0xfe4dd1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xfe4dd1([0x6e,0x61,0x6d,0x65])]:_0xfe4dd1([0x45,0x43,0x44,0x53,0x41]),[_0xfe4dd1([0x68,0x61,0x73,0x68])]:{[_0xfe4dd1([0x6e,0x61,0x6d,0x65])]:_0xfe4dd1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x562e22,_0x4f3926,_0x437ce6)||(_0x19d50f=!0x1);}}());return _0xb384?(function(){const _0x20f70c=_0x526873[_0xfe4dd1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x20f70c)return!0x1;if(_0x20f70c[_0xfe4dd1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfe4dd1([0x2a])))return!0x0;if(_0x20f70c[_0xfe4dd1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfe4dd1([0x45,0x43,0x48])))return!0x0;return!0x1;}())?(function(){const _0x3f6be1=[_0xfe4dd1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xfe4dd1([0x74,0x72,0x69,0x61,0x6c])][_0xfe4dd1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x526873[_0xfe4dd1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x23ab46/0x3e8:0x69e96100;return _0x526873[_0xfe4dd1([0x65,0x78,0x70])]<_0x3f6be1;}())?_0xfe4dd1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x2ebfbf=_0x526873[_0xfe4dd1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ebfbf||0x0==_0x2ebfbf[_0xfe4dd1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1bbbfc}=new URL(window[_0xfe4dd1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2ebfbf[_0xfe4dd1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bbbfc))return!0x0;const _0x170952=_0x1bbbfc[_0xfe4dd1([0x73,0x70,0x6c,0x69,0x74])](_0xfe4dd1([0x2e]));return _0x2ebfbf[_0xfe4dd1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4fa692=>_0x4fa692[_0xfe4dd1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfe4dd1([0x2a])))[_0xfe4dd1([0x6d,0x61,0x70])](_0x23fa41=>_0x23fa41[_0xfe4dd1([0x73,0x70,0x6c,0x69,0x74])](_0xfe4dd1([0x2e])))[_0xfe4dd1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3aa6dc=>_0x3aa6dc[_0xfe4dd1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x170952[_0xfe4dd1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xfe4dd1([0x6d,0x61,0x70])](_0x225e81=>Array(_0x170952[_0xfe4dd1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x225e81[_0xfe4dd1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xfe4dd1([0x66,0x69,0x6c,0x6c])](_0x225e81[0x0]===_0xfe4dd1([0x2a])?_0xfe4dd1([0x2a]):'')[_0xfe4dd1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x225e81))[_0xfe4dd1([0x73,0x6f,0x6d,0x65])](_0x536d81=>_0x170952[_0xfe4dd1([0x65,0x76,0x65,0x72,0x79])]((_0x31a669,_0x423c63)=>_0x536d81[_0x423c63]===_0x31a669||_0x536d81[_0x423c63]===_0xfe4dd1([0x2a])));}())?(_0x526873[_0xfe4dd1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xfe4dd1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1af5cd=function(_0x2f7a92){const _0x355e43=new window[(_0xfe4dd1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bcc2d=>setTimeout(_0x3bcc2d,0x93ecc)),_0x1bcd47=_0x52b3cd[_0xfe4dd1([0x74,0x68,0x65,0x6e])](()=>new window[(_0xfe4dd1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f04ec=>{let _0x40b7b3=0x0;_0x514921[_0xfe4dd1([0x6d,0x6f,0x64,0x65,0x6c])][_0xfe4dd1([0x6f,0x6e])](_0xfe4dd1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d2e26,_0x5d3d2f)=>{_0x5d3d2f[0x0][_0xfe4dd1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x40b7b3++,0x5e8==_0x40b7b3&&(_0x2f04ec(),_0x4d2e26[_0xfe4dd1([0x6f,0x66,0x66])]());});})),_0x2720e8=[_0x355e43,_0x1bcd47];return window[_0xfe4dd1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xfe4dd1([0x72,0x61,0x63,0x65])](_0x2720e8)[_0xfe4dd1([0x74,0x68,0x65,0x6e])](()=>_0x2f7a92);}(_0xfe4dd1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x1af5cd&&_0x398690)return new window[(_0xfe4dd1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4def9e,_0x431d48)=>{_0x1af5cd[_0xfe4dd1([0x74,0x68,0x65,0x6e])](_0x4def9e,_0x431d48),_0x398690[_0xfe4dd1([0x74,0x68,0x65,0x6e])](_0x238e82=>{_0x238e82!=_0xfe4dd1([0x56,0x61,0x6c,0x69,0x64])&&_0x4def9e(_0x238e82);},_0x431d48);});return _0x1af5cd||_0x398690||_0xfe4dd1([0x56,0x61,0x6c,0x69,0x64]);}())):_0xfe4dd1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xfe4dd1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xfe4dd1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xfe4dd1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x10bf4f(_0x1f2cbf){return _0x1f2cbf[_0xfe4dd1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xfe4dd1([0x65,0x79]))?JSON[_0xfe4dd1([0x70,0x61,0x72,0x73,0x65])](_0x1fa1c7(_0x1f2cbf)):null;}function _0x1fa1c7(_0x188416){return window[_0xfe4dd1([0x61,0x74,0x6f,0x62])](_0x188416[_0xfe4dd1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xfe4dd1([0x2b]))[_0xfe4dd1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xfe4dd1([0x2f])));}function _0x3a1480(_0x20af04){let _0x4a38b1=0x1505;function _0x8ada1b(_0x1eec99){for(let _0x33f4c6=0x0;_0x33f4c6<_0x1eec99[_0xfe4dd1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33f4c6++){const _0x43033f=_0x1eec99[_0xfe4dd1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x33f4c6);_0x4a38b1=(_0x4a38b1<<0x5)+_0x4a38b1+_0x43033f,_0x4a38b1&=_0x4a38b1;}}return function _0x3e6d36(_0x53fe72){Array[_0xfe4dd1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x53fe72)?_0x53fe72[_0xfe4dd1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3e6d36):_0x53fe72&&typeof _0x53fe72==_0xfe4dd1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xfe4dd1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x53fe72)[_0xfe4dd1([0x73,0x6f,0x72,0x74])]()[_0xfe4dd1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xa0d11,_0x5efcba])=>{_0x8ada1b(_0xa0d11),_0x3e6d36(_0x5efcba);}):_0x8ada1b(window[_0xfe4dd1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x53fe72));}(_0x20af04),_0x4a38b1>>>0x0;}function _0x337b4e(_0x5d375e){return _0x5d375e[_0xfe4dd1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xfe4dd1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xfe4dd1([0x30]));}function _0x114df4(_0x3cf10d){return _0x3cf10d[_0xfe4dd1([0x73,0x70,0x6c,0x69,0x74])]('')[_0xfe4dd1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xfe4dd1([0x6a,0x6f,0x69,0x6e])]('');}function _0x2f85a2(){}function _0xfe4dd1(_0x39ad09){return _0x39ad09['map'](_0x1083cd=>String['fromCharCode'](_0x1083cd))['join']('');}!function(_0x2b1229){const _0x4562b3=(function(){const _0x1adbb2=window[_0xfe4dd1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xfe4dd1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xfe4dd1([0x6e,0x6f,0x77])]())[_0xfe4dd1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xfe4dd1([0x2e]),'');let _0x589743=_0xfe4dd1([0x75]);for(let _0x5c3e28=0x0;_0x5c3e28<_0x1adbb2[_0xfe4dd1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c3e28+=0x2){let _0x2a6061=window[_0xfe4dd1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1adbb2[_0xfe4dd1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c3e28,_0x5c3e28+0x2));_0x2a6061>=_0x563d78[_0xfe4dd1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2a6061-=_0x563d78[_0xfe4dd1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x589743+=_0x563d78[_0x2a6061];}return _0x589743;}());_0x514921[_0x4562b3]=_0xfe4dd1([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])+_0x2b1229,_0x2b1229!=_0xfe4dd1([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x52b3cd,_0x514921[_0xfe4dd1([0x6d,0x6f,0x64,0x65,0x6c])][_0xfe4dd1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f85a2,_0x514921[_0xfe4dd1([0x6d,0x6f,0x64,0x65,0x6c])][_0xfe4dd1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f85a2,_0x514921[_0xfe4dd1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xfe4dd1([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x52495e);}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');}}var calculate=function(_0xa15b2d){var _0x2f3e23,_0x360b59,_0x57be17,_0x543e7e,_0x21a117=[];for(_0x57be17=0x0,_0x543e7e=(_0x2f3e23=_0xa15b2d['split'](','))['length'];_0x57be17<_0x543e7e;_0x57be17+=0x1)(_0x360b59=_0x2f3e23[_0x57be17])['length']>0x0&&_0x21a117['push'](calculateSingle(_0x360b59));return _0x21a117;},calculateSingle=function(_0x334daa){var _0x464b1a,_0x56c56a,_0x27aadc=_0x334daa,_0x2a81f7={'a':0x0,'b':0x0,'c':0x0},_0x369db7=[];return _0x464b1a=function(_0x5014fd,_0x58c995){var _0xcd3b8c,_0x1e3090,_0x29c39b,_0x42d9ae,_0x17b3ad,_0x1bda94;if(_0x5014fd['test'](_0x27aadc)){for(_0x1e3090=0x0,_0x29c39b=(_0xcd3b8c=_0x27aadc['match'](_0x5014fd))['length'];_0x1e3090<_0x29c39b;_0x1e3090+=0x1)_0x2a81f7[_0x58c995]+=0x1,_0x42d9ae=_0xcd3b8c[_0x1e3090],_0x17b3ad=_0x27aadc['indexOf'](_0x42d9ae),_0x1bda94=_0x42d9ae['length'],_0x369db7['push']({'selector':_0x334daa['substr'](_0x17b3ad,_0x1bda94),'type':_0x58c995,'index':_0x17b3ad,'length':_0x1bda94}),_0x27aadc=_0x27aadc['replace'](_0x42d9ae,Array(_0x1bda94+0x1)['join']('\x20'));}},_0x56c56a=function(_0x1a80d9){var _0x1ac8c6,_0x4df946,_0x163cb1,_0xc20fbb;if(_0x1a80d9['test'](_0x27aadc)){for(_0x4df946=0x0,_0x163cb1=(_0x1ac8c6=_0x27aadc['match'](_0x1a80d9))['length'];_0x4df946<_0x163cb1;_0x4df946+=0x1)_0xc20fbb=_0x1ac8c6[_0x4df946],_0x27aadc=_0x27aadc['replace'](_0xc20fbb,Array(_0xc20fbb['length']+0x1)['join']('A'));}},_0x56c56a(/\\[0-9A-Fa-f]{6}\s?/g),_0x56c56a(/\\[0-9A-Fa-f]{1,5}\s/g),_0x56c56a(/\\./g),(function(){var _0x1d3584,_0x5b07a1,_0x30613a,_0xb86587,_0x5da382=/{[^]*/gm;if(_0x5da382['test'](_0x27aadc)){for(_0x5b07a1=0x0,_0x30613a=(_0x1d3584=_0x27aadc['match'](_0x5da382))['length'];_0x5b07a1<_0x30613a;_0x5b07a1+=0x1)_0xb86587=_0x1d3584[_0x5b07a1],_0x27aadc=_0x27aadc['replace'](_0xb86587,Array(_0xb86587['length']+0x1)['join']('\x20'));}}()),_0x464b1a(/(\[[^\]]+\])/g,'b'),_0x464b1a(/(#[^\#\s\+>~\.\[:\)]+)/g,'a'),_0x464b1a(/(\.[^\s\+>~\.\[:\)]+)/g,'b'),_0x464b1a(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,'c'),_0x464b1a(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,'b'),_0x464b1a(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,'b'),_0x27aadc=(_0x27aadc=(_0x27aadc=(_0x27aadc=(_0x27aadc=(_0x27aadc=_0x27aadc['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'),_0x464b1a(/([^\s\+>~\.\[:]+)/g,'c'),_0x369db7['sort'](function(_0x175469,_0x67802d){return _0x175469['index']-_0x67802d['index'];}),{'selector':_0x334daa,'specificity':'0,'+_0x2a81f7['a']['toString']()+','+_0x2a81f7['b']['toString']()+','+_0x2a81f7['c']['toString'](),'specificityArray':[0x0,_0x2a81f7['a'],_0x2a81f7['b'],_0x2a81f7['c']],'parts':_0x369db7};},compare$1=function(_0x37999b,_0x103ba3){var _0x34173a,_0x32633d,_0x52a78a;if('string'==typeof _0x37999b){if(-0x1!==_0x37999b['indexOf'](','))throw'Invalid\x20CSS\x20selector';_0x34173a=calculateSingle(_0x37999b)['specificityArray'];}else{if(!Array['isArray'](_0x37999b))throw'Invalid\x20CSS\x20selector\x20or\x20specificity\x20array';if(0x4!==_0x37999b['filter'](function(_0x5c7f85){return'number'==typeof _0x5c7f85;})['length'])throw'Invalid\x20specificity\x20array';_0x34173a=_0x37999b;}if('string'==typeof _0x103ba3){if(-0x1!==_0x103ba3['indexOf'](','))throw'Invalid\x20CSS\x20selector';_0x32633d=calculateSingle(_0x103ba3)['specificityArray'];}else{if(!Array['isArray'](_0x103ba3))throw'Invalid\x20CSS\x20selector\x20or\x20specificity\x20array';if(0x4!==_0x103ba3['filter'](function(_0x5a1bf6){return'number'==typeof _0x5a1bf6;})['length'])throw'Invalid\x20specificity\x20array';_0x32633d=_0x103ba3;}for(_0x52a78a=0x0;_0x52a78a<0x4;_0x52a78a+=0x1){if(_0x34173a[_0x52a78a]<_0x32633d[_0x52a78a])return-0x1;if(_0x34173a[_0x52a78a]>_0x32633d[_0x52a78a])return 0x1;}return 0x0;};function splitByTopLevelComma(_0x4fefbc){const _0x31c269=[];let _0x154419='',_0x5ea9da=0x0;for(;_0x5ea9da<_0x4fefbc['length'];){const _0x31a431=_0x4fefbc[_0x5ea9da];if('('===_0x31a431){const _0x4fd355=findMatchingParenthesis(_0x4fefbc,_0x5ea9da+0x1);if(-0x1===_0x4fd355)return[];_0x154419+=_0x4fefbc['slice'](_0x5ea9da,_0x4fd355+0x1),_0x5ea9da=_0x4fd355+0x1;}else','!==_0x31a431||_0x154419['endsWith']('\x5c')?(_0x154419+=_0x31a431,_0x5ea9da++):(_0x31c269['push'](_0x154419['trim']()),_0x154419='',_0x5ea9da++);}return _0x154419['trim']()&&_0x31c269['push'](_0x154419['trim']()),_0x31c269['filter'](Boolean);}function findMatchingParenthesis(_0x54eb19,_0x5744cc){let _0x517f83=0x1;for(let _0x187ad5=_0x5744cc;_0x187ad5<_0x54eb19['length'];_0x187ad5++){const _0x57e205=_0x54eb19[_0x187ad5];if('('===_0x57e205)_0x517f83++;else{if(')'===_0x57e205&&(_0x517f83--,0x0===_0x517f83))return _0x187ad5;}}return-0x1;}function dropImportantStyleSuffix(_0x53652b){return _0x53652b['replace'](/!\s*important/i,'')['trim']();}function collectRootStylesheetsVariables(_0x1c6720){const _0x19992c=new Map();for(const {stylesMap:_0x573616,flatSelector:_0xc53d1e}of _0x1c6720){if(':root'!==_0xc53d1e)continue;const _0x1afc92=inlineStylesMapCSSVariables(_0x19992c['get']['bind'](_0x19992c),_0x573616);for(const [_0x1b4aa3,_0x29613f]of _0x1afc92)_0x19992c['set'](_0x1b4aa3,_0x29613f);}return _0x19992c;}function inlineStylesMapCSSVariables(_0x2d666a,_0x4322db){const _0x4c65b3=new Map(),_0x2258f5=_0x203add=>_0x4c65b3['has'](_0x203add)?_0x4c65b3['get'](_0x203add):_0x2d666a(_0x203add);for(const [_0x173f11,_0x409a92]of _0x4322db['getStylesEntries']())if(_0x409a92&&_0x173f11['startsWith']('--')){const _0x39ad48=inlineCSSVariablesInString(_0x2258f5,_0x409a92);_0x4c65b3['set'](_0x173f11,_0x39ad48),_0x4322db['remove'](_0x173f11);}for(const [_0xbbc047,_0x30959]of _0x4322db['getStylesEntries']())if(_0x30959){const _0x125d52=inlineCSSVariablesInString(_0x2258f5,_0x30959);_0x4322db['set'](_0xbbc047,_0x125d52);}return _0x4c65b3;}function inlineCSSVariablesInString(_0x54f19b,_0xd3db0e){return resolveCSSVariables(_0xd3db0e,_0x2cbf46=>{const [_0x13ec04,_0x42b571]=splitByTopLevelComma(_0x2cbf46),_0x58699e=_0x54f19b(_0x13ec04);return void 0x0!==_0x58699e?_0x58699e:_0x42b571?inlineCSSVariablesInString(_0x54f19b,_0x42b571):'var('+_0x13ec04+')';});}function resolveCSSVariables(_0x5bc9da,_0x20a442){let _0x4331cd='',_0x400ed8=0x0;for(;_0x400ed8<_0x5bc9da['length'];){const _0xd835ac=_0x5bc9da['indexOf']('var(',_0x400ed8);if(-0x1===_0xd835ac){_0x4331cd+=_0x5bc9da['slice'](_0x400ed8);break;}_0x4331cd+=_0x5bc9da['slice'](_0x400ed8,_0xd835ac);const _0x4e71fb=_0xd835ac+0x4,_0x199ab9=findMatchingParenthesis(_0x5bc9da,_0x4e71fb);_0x4331cd+=_0x20a442(_0x5bc9da['substring'](_0x4e71fb,_0x199ab9)),_0x400ed8=_0x199ab9+0x1;}return _0x4331cd;}async function collectAndProcessStylesheets(_0xa0e860){const _0x547e12=[await collectStylesheets(_0xa0e860['stylesheets']),_0xa0e860['inlineCss']]['filter'](_0x394982=>_0x394982&&_0x394982['length'])['join']('\x0a'),_0x1e9709=await convertRawStylesheetToParsedCSSRules(_0xa0e860['stylesProcessor'],_0x547e12);return{'parsedCssRules':_0x1e9709,'rootCssVariables':collectRootStylesheetsVariables(_0x1e9709)};}async function convertRawStylesheetToParsedCSSRules(_0x20b554,_0xffbf40){const _0x43386e=new CSSStyleSheet();return await _0x43386e['replace'](_0xffbf40),dropCSSNesting(Array['from'](_0x43386e['cssRules'])['filter'](_0x499195=>_0x499195 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x28fb4b,contentCssText:_0x49dc5a})=>{const _0x3a2fbe=splitByTopLevelComma(_0x28fb4b),_0x54ce8f=new StylesMap(_0x20b554)['setTo'](_0x49dc5a);return _0x3a2fbe['map'](_0x3a1b00=>{const _0xee6807=dropWherePseudoClasses(_0x3a1b00),_0xeeaea2=_0xee6807?calculate(_0xee6807)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x54ce8f,'flatSelector':_0x3a1b00,'specificity':_0xeeaea2};});})['sort']((_0x2c3d51,_0x210557)=>compare$1(_0x2c3d51['specificity'],_0x210557['specificity']));}function dropWherePseudoClasses(_0x46de1e){const _0x221537=':where(';let _0x106266=_0x46de1e,_0x111efb=0x0;for(let _0x1d2df6=0x0;_0x1d2df6<0x64;_0x1d2df6++){const _0x31e5ff=_0x106266['indexOf'](_0x221537,_0x111efb);if(-0x1===_0x31e5ff)break;let _0x26a43b=0x0;for(let _0x2e947d=0x0;_0x2e947d<_0x31e5ff;_0x2e947d++)'('===_0x106266[_0x2e947d]?_0x26a43b++:')'===_0x106266[_0x2e947d]&&_0x26a43b--;if(_0x26a43b>0x0){_0x111efb=_0x31e5ff+0x7;continue;}let _0x34a9e8=-0x1;for(let _0x5beffb=_0x31e5ff+0x7,_0x5439f6=0x1;_0x5beffb<_0x106266['length'];_0x5beffb++)if('('===_0x106266[_0x5beffb]?_0x5439f6++:')'===_0x106266[_0x5beffb]&&_0x5439f6--,!_0x5439f6){_0x34a9e8=_0x5beffb;break;}-0x1!==_0x34a9e8?(_0x106266=_0x106266['slice'](0x0,_0x31e5ff)+_0x106266['slice'](_0x34a9e8+0x1),_0x111efb=_0x31e5ff):_0x111efb=_0x31e5ff+0x7;}return _0x106266['replace'](/\s+/g,'\x20')['trim']();}function dropCSSNesting(_0x214441,_0x289a1d=''){return _0x214441['flatMap'](_0x232255=>{const {selectorText:_0x1763fd,cssText:_0x321196,cssRules:_0x1ede65}=_0x232255;if(!_0x1763fd)return[];const _0xa73669=_0x1763fd['replace'](/&/g,_0x289a1d);let _0x483d17=_0x321196['replace'](_0x1763fd,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x1ede65||!_0x1ede65['length'])return[{'selectorText':_0xa73669,'contentCssText':_0x483d17}];for(const _0x5e5a38 of _0x1ede65)_0x483d17=_0x483d17['replace'](_0x5e5a38['cssText'],'')['trim']();return[{'selectorText':_0xa73669,'contentCssText':_0x483d17},...dropCSSNesting(Array['from'](_0x1ede65),_0xa73669)];});}function getElementInlineStyles(_0x42a1e3){const _0x46cafc=_0x42a1e3['element']['getAttribute']('style')||'',_0x1ac527=_0x42a1e3['parsedCssRules']['filter'](_0x103692=>_0x42a1e3['element']['matches'](_0x103692['flatSelector']))['map'](_0x445728=>_0x445728['stylesMap']),_0x10d965=concatStylesMaps(_0x42a1e3['stylesProcessor'],[..._0x1ac527,_0x46cafc]);return{'localCSSVariables':inlineStylesMapCSSVariables(_0x42a1e3['fallbackCSSVariablesLookup'],_0x10d965),'stylesMap':_0x10d965};}function concatStylesMaps(_0x15d631,_0x3f973d){const _0x12944f=new StylesMap(_0x15d631);for(const _0x43008e of _0x3f973d){let _0x1e3235=null;if(_0x1e3235='string'==typeof _0x43008e?new StylesMap(_0x15d631)['setTo'](_0x43008e):_0x43008e,_0x1e3235){for(const [_0x46baf0,_0x1e656d]of _0x1e3235['getStylesEntries']())_0x12944f['set'](_0x46baf0,_0x1e656d);}}return _0x12944f;}class ExportInlineStylesCommand extends Command{['_stylesProcessor'];constructor(_0x2b7865){super(_0x2b7865),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'](_0x5ac0ac){const _0x2663fd=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x193d42}=this['editor']['locale'],{rootName:_0x736b4b='main',dataControllerDowncastOptions:_0x33ac14={},transformations:_0xe2f2e6=_0x2663fd['transformations']||[]}=_0x5ac0ac||{};this['isBusy']=!0x0,this['refresh']();const _0x35618f=this['_getRootDataHTMLFragment'](_0x736b4b,_0x33ac14),_0x3fc63=createElement(_0x35618f['ownerDocument'],'div',{'dir':_0x193d42,'class':'ck-content'},[_0x35618f]);return this['_collectAndApplyStyles'](_0xe2f2e6,_0x3fc63)['then'](()=>{const _0x111212=extractElementChildrenAsFragment(_0x3fc63),_0x3a597f=_0x3fc63['getAttribute']('style');if(_0x3a597f)for(const _0x54c6a4 of _0x111212['children']){const _0x5bc37c=_0x54c6a4['getAttribute']('style'),_0xffcb2c=concatStylesMaps(this['_stylesProcessor'],[_0x3a597f,_0x5bc37c]);_0x54c6a4['setAttribute']('style',dumpNonSortedStylesMap(_0xffcb2c));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x111212);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0xb366ce,_0x1be649){const {data:_0x29ca5e,model:_0x36767d}=this['editor'],_0x254878=_0x36767d['document']['getRoot'](_0xb366ce),_0x2ddc70=_0x29ca5e['toView'](_0x254878,_0x1be649);return _0x29ca5e['htmlProcessor']['domConverter']['viewToDom'](_0x2ddc70);}async['_collectAndApplyStyles'](_0x34fb0b,_0x2bcad4){const {stylesheets:_0x311597,inlineCss:_0x5338d2,stripCssClasses:_0x29fa1a}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x484c30,rootCssVariables:_0x1c77fe}=await collectAndProcessStylesheets({'stylesheets':_0x311597||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x5338d2});this['_processElementTree']({'transformations':_0x34fb0b,'parsedCssRules':_0x484c30,'element':_0x2bcad4,'stripCssClasses':_0x29fa1a,'parentCSSVariablesLookup':_0x1c77fe['get']['bind'](_0x1c77fe)});}['_processElementTree']({element:_0x2ae2fd,parsedCssRules:_0x8a7118,parentCSSVariablesLookup:_0x1271d5,stripCssClasses:_0x87f5e2,transformations:_0x1265b5}){const {stylesMap:_0x376577,localCSSVariables:_0x22074e}=getElementInlineStyles({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x1271d5,'parsedCssRules':_0x8a7118,'element':_0x2ae2fd});for(const _0x25ab8c of _0x1265b5){const _0x17a7e0=_0x25ab8c(_0x2ae2fd,_0x376577);_0x17a7e0&&_0x17a7e0 instanceof HTMLElement&&(_0x2ae2fd=_0x17a7e0);}_0x376577['size']?_0x2ae2fd['setAttribute']('style',dumpNonSortedStylesMap(_0x376577)):_0x2ae2fd['removeAttribute']('style');const _0x5f2951=_0x2f1dd8=>_0x22074e['has'](_0x2f1dd8)?_0x22074e['get'](_0x2f1dd8):_0x1271d5(_0x2f1dd8);for(const _0x31b5ee of _0x2ae2fd['children'])_0x31b5ee instanceof HTMLElement&&this['_processElementTree']({'element':_0x31b5ee,'parentCSSVariablesLookup':_0x5f2951,'parsedCssRules':_0x8a7118,'stripCssClasses':_0x87f5e2,'transformations':_0x1265b5});_0x87f5e2&&_0x2ae2fd['removeAttribute']('class');}}function dumpNonSortedStylesMap(_0x327ffd){return _0x327ffd['getStylesEntries']()['map'](_0x13129d=>_0x13129d['join'](':'))['join'](';')+';';}function extractElementChildrenAsFragment(_0x50a6b3){const _0x120621=_0x50a6b3['ownerDocument']['createDocumentFragment']();for(;_0x50a6b3['firstChild'];)_0x120621['appendChild'](_0x50a6b3['firstChild']);return _0x120621;}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$d(this);}}async function checkLicense$d(_0x1cbaa0){const _0x32cc33=_0x338669([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]),_0x4ec2ae=window[_0x338669([0x44,0x61,0x74,0x65])][_0x338669([0x6e,0x6f,0x77])](),_0x2aa3e4=_0x1cbaa0[_0x338669([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x10e788=new window[(_0x338669([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9253da=>{_0x2aa3e4[_0x338669([0x6f,0x6e,0x63,0x65])](_0x338669([0x72,0x65,0x61,0x64,0x79]),_0x9253da);}),_0x439a00={[_0x338669([0x6b,0x74,0x79])]:_0x338669([0x45,0x43]),[_0x338669([0x75,0x73,0x65])]:_0x338669([0x73,0x69,0x67]),[_0x338669([0x63,0x72,0x76])]:_0x338669([0x50,0x2d,0x32,0x35,0x36]),[_0x338669([0x78])]:_0x338669([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]),[_0x338669([0x79])]:_0x338669([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]),[_0x338669([0x61,0x6c,0x67])]:_0x338669([0x45,0x53,0x32,0x35,0x36])},_0x211c03=_0x2aa3e4[_0x338669([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x338669([0x67,0x65,0x74])](_0x338669([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0xdc25e0=await(async function(){let _0x3a6e86,_0x102f62=null,_0x5306fa=null;try{if(_0x211c03==_0x338669([0x47,0x50,0x4c]))return _0x338669([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3a6e86=(function(){const _0x3ebe0e=_0x211c03[_0x338669([0x73,0x70,0x6c,0x69,0x74])](_0x338669([0x2e]));if(0x3!=_0x3ebe0e[_0x338669([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x1c62a2=_0x3ebe0e[0x1];return _0x3c67ac(_0x1c62a2);function _0x3c67ac(_0x45c0a0){const _0x345ecf=_0x2da13d(_0x45c0a0);return _0x345ecf&&_0x32a2d7()?_0x345ecf:null;function _0x32a2d7(){const _0x3047ec=_0x345ecf[_0x338669([0x6a,0x74,0x69])],_0x45e586=window[_0x338669([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3047ec[_0x338669([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3047ec[_0x338669([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x47dd80={..._0x345ecf,[_0x338669([0x6a,0x74,0x69])]:_0x3047ec[_0x338669([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3047ec[_0x338669([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x47dd80[_0x338669([0x76,0x63])],_0x381f4b(_0x47dd80)==_0x45e586;}}}()),!_0x3a6e86)return _0x338669([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x3a6e86[_0x338669([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5306fa=function(_0xf1251b,_0xcf5cbd){return new window[(_0x338669([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x416e34=>{if(_0x2d97b2())return _0x416e34(_0x338669([0x56,0x61,0x6c,0x69,0x64]));_0x2bf194(),_0x2aa3e4[_0x338669([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x338669([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x41f2d6=!0x1;const _0x34ed69=uid();function _0x373d5e(_0x3a3758){return!!_0x3a3758&&(typeof _0x3a3758===_0x338669([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3a3758===_0x338669([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3a3758[_0x338669([0x74,0x68,0x65,0x6e])]===_0x338669([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3a3758[_0x338669([0x63,0x61,0x74,0x63,0x68])]===_0x338669([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4baeb9(_0x23e91f){_0x56f927(_0x23e91f)[_0x338669([0x74,0x68,0x65,0x6e])](_0x4c562e=>{if(!_0x4c562e||_0x4c562e[_0x338669([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x338669([0x6f,0x6b]))return _0x338669([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ff9d8(_0x381f4b(_0x34ed69+_0xcf5cbd))!=_0x4c562e[_0x338669([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x338669([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x338669([0x56,0x61,0x6c,0x69,0x64]);})[_0x338669([0x74,0x68,0x65,0x6e])](_0xd5bb29=>(_0x4aac07(),_0xd5bb29),()=>{const _0x5d2a16=_0x226d78();return null==_0x5d2a16?(_0x4aac07(),_0x338669([0x56,0x61,0x6c,0x69,0x64])):_0x338669(_0x4ec2ae-_0x5d2a16>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x338669([0x74,0x68,0x65,0x6e])](_0x416e34)[_0x338669([0x63,0x61,0x74,0x63,0x68])](()=>{_0x416e34(_0x338669([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x34507f=0x36ee80;function _0x4aac07(){const _0xb886d1=_0x338669([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ff9d8(_0x381f4b(_0xf1251b)),_0x50183f=_0x4a92c3(_0x4ff9d8(window[_0x338669([0x4d,0x61,0x74,0x68])][_0x338669([0x63,0x65,0x69,0x6c])](_0x4ec2ae/_0x34507f)));window[_0x338669([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x338669([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb886d1,_0x50183f);}function _0x226d78(){const _0x3bad89=_0x338669([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ff9d8(_0x381f4b(_0xf1251b)),_0x1f769d=window[_0x338669([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x338669([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3bad89);return _0x1f769d?window[_0x338669([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a92c3(_0x1f769d),0x10)*_0x34507f:null;}function _0x56f927(_0x8b6237){return new window[(_0x338669([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d2968,_0x1b2c75)=>{_0x8b6237[_0x338669([0x74,0x68,0x65,0x6e])](_0x4d2968,_0x1b2c75),window[_0x338669([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b2c75,0x1d4c0);});}}_0x2aa3e4[_0x338669([0x6f,0x6e])](_0x338669([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x15e722,_0x2a8fba)=>{if(_0x2a8fba[0x0]!=_0xf1251b)return _0x416e34(_0x338669([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2a8fba[0x1]={..._0x2a8fba[0x1],[_0x338669([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x34ed69};},{[_0x338669([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x338669([0x68,0x69,0x67,0x68])}),_0x2aa3e4[_0x338669([0x6f,0x6e])](_0x338669([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x42dbc0=>{_0x373d5e(_0x42dbc0[_0x338669([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x41f2d6=!0x0,_0x4baeb9(_0x42dbc0[_0x338669([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x338669([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x338669([0x6c,0x6f,0x77])}),_0x10e788[_0x338669([0x74,0x68,0x65,0x6e])](()=>{_0x41f2d6||_0x416e34(_0x338669([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2d97b2(){return _0x2aa3e4[_0x338669([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x338669([0x76,0x69,0x65,0x77])][_0x338669([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x338669([0x61,0x75,0x74,0x6f]);}function _0x2bf194(){_0x2aa3e4[_0x338669([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x338669([0x76,0x69,0x65,0x77])][_0x338669([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x338669([0x61,0x75,0x74,0x6f]);}}(_0x3a6e86[_0x338669([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3a6e86[_0x338669([0x6a,0x74,0x69])]));const _0x166eca=await(async function(){let _0x4942c7=!0x0;try{const _0x1c1e7d=_0x211c03[_0x338669([0x73,0x70,0x6c,0x69,0x74])](_0x338669([0x2e])),[_0x543ed8,_0x2dcff0,_0x4d0c6a]=_0x1c1e7d;return _0x3ed7fc(_0x543ed8),await _0x1c5a09(_0x543ed8,_0x2dcff0,_0x4d0c6a),_0x4942c7;}catch{return!0x1;}function _0x3ed7fc(_0x3330e0){const _0xa1f33c=_0x2da13d(_0x3330e0);_0xa1f33c&&_0xa1f33c[_0x338669([0x61,0x6c,0x67])]==_0x338669([0x45,0x53,0x32,0x35,0x36])||(_0x4942c7=!0x1);}async function _0x1c5a09(_0x5e9d91,_0x41ee30,_0x1ba3b4){const _0x4872d4=window[_0x338669([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x338669([0x66,0x72,0x6f,0x6d])](_0x91e3be(_0x1ba3b4),_0x521be5=>_0x521be5[_0x338669([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x350163=new window[(_0x338669([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x338669([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5e9d91+_0x338669([0x2e])+_0x41ee30),_0x3280e4=window[_0x338669([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x338669([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3280e4)return;const _0x368d2e=await _0x3280e4[_0x338669([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x338669([0x6a,0x77,0x6b]),_0x439a00,{[_0x338669([0x6e,0x61,0x6d,0x65])]:_0x338669([0x45,0x43,0x44,0x53,0x41]),[_0x338669([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x338669([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x338669([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3280e4[_0x338669([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x338669([0x6e,0x61,0x6d,0x65])]:_0x338669([0x45,0x43,0x44,0x53,0x41]),[_0x338669([0x68,0x61,0x73,0x68])]:{[_0x338669([0x6e,0x61,0x6d,0x65])]:_0x338669([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x368d2e,_0x4872d4,_0x350163)||(_0x4942c7=!0x1);}}());return _0x166eca?(function(){const _0x41652c=_0x3a6e86[_0x338669([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x41652c)return!0x1;if(_0x41652c[_0x338669([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x338669([0x2a])))return!0x0;if(_0x41652c[_0x338669([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x338669([0x45,0x49,0x53])))return!0x0;return!0x1;}())?(function(){const _0x6c0a3d=[_0x338669([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x338669([0x74,0x72,0x69,0x61,0x6c])][_0x338669([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a6e86[_0x338669([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4ec2ae/0x3e8:0x69e96100;return _0x3a6e86[_0x338669([0x65,0x78,0x70])]<_0x6c0a3d;}())?_0x338669([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x1a9fbb=_0x3a6e86[_0x338669([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a9fbb||0x0==_0x1a9fbb[_0x338669([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23327d}=new URL(window[_0x338669([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1a9fbb[_0x338669([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23327d))return!0x0;const _0x22354f=_0x23327d[_0x338669([0x73,0x70,0x6c,0x69,0x74])](_0x338669([0x2e]));return _0x1a9fbb[_0x338669([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4278d6=>_0x4278d6[_0x338669([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x338669([0x2a])))[_0x338669([0x6d,0x61,0x70])](_0x181b98=>_0x181b98[_0x338669([0x73,0x70,0x6c,0x69,0x74])](_0x338669([0x2e])))[_0x338669([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44c71b=>_0x44c71b[_0x338669([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x22354f[_0x338669([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x338669([0x6d,0x61,0x70])](_0x4d141e=>Array(_0x22354f[_0x338669([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4d141e[_0x338669([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x338669([0x66,0x69,0x6c,0x6c])](_0x4d141e[0x0]===_0x338669([0x2a])?_0x338669([0x2a]):'')[_0x338669([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4d141e))[_0x338669([0x73,0x6f,0x6d,0x65])](_0x218395=>_0x22354f[_0x338669([0x65,0x76,0x65,0x72,0x79])]((_0x246381,_0x1d2485)=>_0x218395[_0x1d2485]===_0x246381||_0x218395[_0x1d2485]===_0x338669([0x2a])));}())?(_0x3a6e86[_0x338669([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x338669([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x102f62=function(_0xd6db7e){const _0x5b061c=new window[(_0x338669([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d0255=>setTimeout(_0x1d0255,0x93ecc)),_0x223506=_0x10e788[_0x338669([0x74,0x68,0x65,0x6e])](()=>new window[(_0x338669([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdd9d25=>{let _0x254973=0x0;_0x2aa3e4[_0x338669([0x6d,0x6f,0x64,0x65,0x6c])][_0x338669([0x6f,0x6e])](_0x338669([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x48fee9,_0x3cdfc3)=>{_0x3cdfc3[0x0][_0x338669([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x254973++,0x5e8==_0x254973&&(_0xdd9d25(),_0x48fee9[_0x338669([0x6f,0x66,0x66])]());});})),_0x52115d=[_0x5b061c,_0x223506];return window[_0x338669([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x338669([0x72,0x61,0x63,0x65])](_0x52115d)[_0x338669([0x74,0x68,0x65,0x6e])](()=>_0xd6db7e);}(_0x338669([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x102f62&&_0x5306fa)return new window[(_0x338669([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fd527,_0x5e9836)=>{_0x102f62[_0x338669([0x74,0x68,0x65,0x6e])](_0x3fd527,_0x5e9836),_0x5306fa[_0x338669([0x74,0x68,0x65,0x6e])](_0xb57f0b=>{_0xb57f0b!=_0x338669([0x56,0x61,0x6c,0x69,0x64])&&_0x3fd527(_0xb57f0b);},_0x5e9836);});return _0x102f62||_0x5306fa||_0x338669([0x56,0x61,0x6c,0x69,0x64]);}())):_0x338669([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x338669([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x338669([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x338669([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x2da13d(_0x670e28){return _0x670e28[_0x338669([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x338669([0x65,0x79]))?JSON[_0x338669([0x70,0x61,0x72,0x73,0x65])](_0x91e3be(_0x670e28)):null;}function _0x91e3be(_0x1e7eab){return window[_0x338669([0x61,0x74,0x6f,0x62])](_0x1e7eab[_0x338669([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x338669([0x2b]))[_0x338669([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x338669([0x2f])));}function _0x381f4b(_0x2a203b){let _0x2a6332=0x1505;function _0x7a4f06(_0x41a23e){for(let _0x16df77=0x0;_0x16df77<_0x41a23e[_0x338669([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16df77++){const _0x324a4b=_0x41a23e[_0x338669([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x16df77);_0x2a6332=(_0x2a6332<<0x5)+_0x2a6332+_0x324a4b,_0x2a6332&=_0x2a6332;}}return function _0x3f5292(_0x34245e){Array[_0x338669([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x34245e)?_0x34245e[_0x338669([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f5292):_0x34245e&&typeof _0x34245e==_0x338669([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x338669([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x34245e)[_0x338669([0x73,0x6f,0x72,0x74])]()[_0x338669([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4f811a,_0x4c9088])=>{_0x7a4f06(_0x4f811a),_0x3f5292(_0x4c9088);}):_0x7a4f06(window[_0x338669([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x34245e));}(_0x2a203b),_0x2a6332>>>0x0;}function _0x4ff9d8(_0x3d3e71){return _0x3d3e71[_0x338669([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x338669([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x338669([0x30]));}function _0x4a92c3(_0x254b68){return _0x254b68[_0x338669([0x73,0x70,0x6c,0x69,0x74])]('')[_0x338669([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x338669([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a62b3(){}function _0x338669(_0x205305){return _0x205305['map'](_0x3ee8ca=>String['fromCharCode'](_0x3ee8ca))['join']('');}!function(_0x2a8e1b){const _0x458271=(function(){const _0x5f3f88=window[_0x338669([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x338669([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x338669([0x6e,0x6f,0x77])]())[_0x338669([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x338669([0x2e]),'');let _0x1040bc=_0x338669([0x44]);for(let _0x457baa=0x0;_0x457baa<_0x5f3f88[_0x338669([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x457baa+=0x2){let _0x5850b3=window[_0x338669([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f3f88[_0x338669([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x457baa,_0x457baa+0x2));_0x5850b3>=_0x32cc33[_0x338669([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5850b3-=_0x32cc33[_0x338669([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1040bc+=_0x32cc33[_0x5850b3];}return _0x1040bc;}());_0x2aa3e4[_0x458271]=_0x338669([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])+_0x2a8e1b,_0x2a8e1b!=_0x338669([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x10e788;const _0x4df48b=_0x2aa3e4['commands'][_0x338669([0x67,0x65,0x74])](_0x338669([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x4df48b&&_0x4df48b[_0x338669([0x6f,0x6e])](_0x338669([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x277cfd=>{_0x277cfd['stop']();},{'priority':_0x338669([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),(_0x2aa3e4[_0x338669([0x6d,0x6f,0x64,0x65,0x6c])][_0x338669([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1a62b3,_0x2aa3e4[_0x338669([0x6d,0x6f,0x64,0x65,0x6c])][_0x338669([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1a62b3,_0x2aa3e4[_0x338669([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x338669([0x6d,0x6f,0x64,0x65,0x6c])));}());}(_0xdc25e0);}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 _0x8884ae=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x15e74d;for(const _0x6d3472 in _0x8884ae){const _0x40b872=_0x6d3472,_0x23a287=_0x8884ae[_0x40b872];if('exportInlineStylesLicenseKeyValid'==_0x23a287||'exportInlineStylesLicenseKeyInvalid'==_0x23a287||'exportInlineStylesLicenseKeyExpired'==_0x23a287||'exportInlineStylesLicenseKeyDomainLimit'==_0x23a287||'exportInlineStylesLicenseKeyNotAllowed'==_0x23a287||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x23a287||'exportInlineStylesLicenseKeyUsageLimit'==_0x23a287){delete _0x8884ae[_0x40b872],_0x15e74d=_0x23a287,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x15e74d&&_0x8884ae['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x15e74d&&_0x8884ae['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x15e74d&&_0x8884ae['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x15e74d&&_0x8884ae['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x15e74d&&_0x8884ae['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x15e74d&&_0x8884ae['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getEmailInlineStylesTransformations(_0x4f1f70={}){const _0x141070=[transformEmailFloatToAlign,transformEmailMarginToAlign,transformEmailImageWidthAttributes];return _0x4f1f70['useFigureToTableFallback']&&_0x141070['push'](transformEmailFigureToTable,transformEmailFigcaptionToDiv),_0x141070;}function transformEmailFloatToAlign(_0x4baed6,_0x7c2f64){if(!['TABLE','IMG']['includes'](_0x4baed6['tagName']))return;const _0x24db1a=_0x7c2f64['getAsString']('float');if(_0x24db1a){const _0x19ca97=dropImportantStyleSuffix(_0x24db1a);'left'!==_0x19ca97&&'right'!==_0x19ca97||_0x4baed6['setAttribute']('align',_0x19ca97);}}function transformEmailMarginToAlign(_0x525434,_0x180797){if('TABLE'!==_0x525434['tagName']||_0x180797['has']('float'))return;const _0x399b47=getAlignFromMargins(_0x180797),_0x3d5e19=_0x180797['getAsString']('width');(_0x399b47||_0x3d5e19)&&(applyWrapperTable(_0x525434,_0x525434,{'align':_0x399b47,'width':_0x3d5e19}),_0x180797['remove']('width'),_0x180797['remove']('margin-left'),_0x180797['remove']('margin-right'),_0x180797['remove']('min-width'),_0x180797['remove']('max-width'));}function transformEmailImageWidthAttributes(_0x5e5b0f,_0x4abda7){if('IMG'!==_0x5e5b0f['tagName'])return;const _0x1ddf53=_0x4abda7['getAsString']('width');_0x1ddf53&&(_0x5e5b0f['setAttribute']('width',_0x1ddf53),_0x5e5b0f['setAttribute']('height','auto'));}function transformEmailFigureToTable(_0x44bf88,_0x5dda2b){if('FIGURE'!==_0x44bf88['tagName'])return;const _0x1b6626=getAlignFromMargins(_0x5dda2b),_0x1d8fae=_0x5dda2b['getAsString']('width');if(!_0x1b6626&&!_0x1d8fae)return;const _0xd50ad7=createReplacementElement(_0x44bf88,'div');return applyWrapperTable(_0x44bf88,_0xd50ad7,{'align':_0x1b6626,'width':_0x1d8fae}),_0x5dda2b['set']('width','100%'),_0x5dda2b['remove']('margin-left'),_0x5dda2b['remove']('margin-right'),_0x5dda2b['remove']('min-width'),_0x5dda2b['remove']('max-width'),_0xd50ad7;}function transformEmailFigcaptionToDiv(_0x84d4e1){if('FIGCAPTION'!==_0x84d4e1['tagName'])return;const _0x39e7ba=createReplacementElement(_0x84d4e1,'div');return _0x84d4e1['replaceWith'](_0x39e7ba),_0x39e7ba;}function applyWrapperTable(_0x1a5063,_0x29f79d,_0x227607){const _0xc080d7=_0x1a5063['ownerDocument'],{table:_0x5567a2,cell:_0x1eb309}=createWrapperTable(_0xc080d7,'100%');_0x227607['align']&&_0x1eb309['setAttribute']('align',dropImportantStyleSuffix(_0x227607['align']));let _0x23a8b8=_0x1eb309;if(_0x227607['width']){const {table:_0x291014,cell:_0x3c22fb}=createWrapperTable(_0xc080d7,dropImportantStyleSuffix(_0x227607['width']));_0x1eb309['appendChild'](_0x291014),_0x23a8b8=_0x3c22fb;}_0x1a5063['replaceWith'](_0x5567a2),_0x1a5063['removeAttribute']('align'),_0x1a5063['removeAttribute']('width'),_0x23a8b8['appendChild'](_0x29f79d);}function createWrapperTable(_0x74dff9,_0x196235){const _0x520d25=_0x74dff9['createElement']('table');_0x520d25['setAttribute']('width',_0x196235),_0x520d25['setAttribute']('cellpadding','0'),_0x520d25['setAttribute']('cellspacing','0'),_0x520d25['setAttribute']('border','0'),_0x520d25['setAttribute']('role','presentation');const _0xe60b31=_0x74dff9['createElement']('tbody'),_0x34f151=_0x74dff9['createElement']('tr'),_0x1f540f=_0x74dff9['createElement']('td');return _0x520d25['appendChild'](_0xe60b31),_0xe60b31['appendChild'](_0x34f151),_0x34f151['appendChild'](_0x1f540f),{'table':_0x520d25,'cell':_0x1f540f};}function getAlignFromMargins(_0x42b7fc){const _0x2b1618=_0x42b7fc['getAsString']('margin-left'),_0x115811=_0x42b7fc['getAsString']('margin-right'),_0x1d5752=_0x2b1618&&dropImportantStyleSuffix(_0x2b1618),_0x247eb0=_0x115811&&dropImportantStyleSuffix(_0x115811);return'auto'===_0x1d5752&&'auto'===_0x247eb0?'center':'auto'===_0x1d5752?'right':'auto'===_0x247eb0?'left':void 0x0;}function createReplacementElement(_0x1fd8d1,_0xedc093){const _0x3eaf76=_0x1fd8d1['ownerDocument']['createElement'](_0xedc093);for(const _0xa5f390 of Array['from'](_0x1fd8d1['attributes']))_0x3eaf76['setAttribute'](_0xa5f390['name'],_0xa5f390['value']);for(;_0x1fd8d1['firstChild'];)_0x3eaf76['appendChild'](_0x1fd8d1['firstChild']);return _0x3eaf76;}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'](){const {config:_0x21575c,plugins:_0x32debc}=this['editor'],_0x2b1e65=_0x21575c['get']('exportInlineStyles');if(_0x2b1e65?.['transformations']?.['includes'](transformEmailFigureToTable))return;_0x32debc['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('ImageBlock',{'description':'Block\x20images\x20are\x20unsupported\x20in\x20email\x20environments.\x20Consider\x20enabling\x20the\x20`transformEmailFigureToTable`\x20transformation\x20in\x20the\x20`exportInlineStyles`\x20in\x20order\x20to\x20make\x20block\x20images\x20work\x20in\x20email\x20clients.'});}}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 _0x2254ea=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('ExportInlineStyles')||_0x2254ea['_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 _0x2d6b2a=this['editor']['plugins']['get'](EmailConfigurationLogger),_0xdce900=this['editor']['config']['get']('list');_0xdce900&&_0xdce900['properties']&&_0xdce900['properties']['reversed']&&_0x2d6b2a['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0xdce900&&_0xdce900['enableListItemMarkerFormatting']&&_0x2d6b2a['_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:_0x562517}=this['editor'],_0x474bef=_0x562517['get'](EmailConfigurationLogger);_0x562517['has']('Table')&&(_0x562517['has']('PlainTableOutput')||_0x474bef['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x562517['has']('TableLayout')||_0x474bef['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x421e06,plugins:_0x6ca7da}=this['editor'];_0x421e06['get']('table')&&_0x6ca7da['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}['_checkTablePropertiesConfig'](_0x552f83){const _0x492d85=this['editor']['plugins']['get'](EmailConfigurationLogger);_0x492d85['_validateConfigColorValue']('table.'+_0x552f83+'.borderColors'),_0x492d85['_validateConfigColorValue']('table.'+_0x552f83+'.backgroundColors'),_0x492d85['_validateConfigColorValue']('table.'+_0x552f83+'.defaultProperties.borderColor'),_0x492d85['_validateConfigColorValue']('table.'+_0x552f83+'.defaultProperties'),_0x492d85['_validateConfigColorFormat']('table.'+_0x552f83+'.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 _0x3c0405=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('EmptyBlock')||_0x3c0405['_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:_0x10be62}=this['editor'];_0x10be62['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x10be62['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x20b9d1){const _0x384153=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['config']['get'](_0x20b9d1)&&(_0x384153['_validateConfigColorValue'](_0x20b9d1+'.colors'),_0x384153['_validateConfigColorValue'](_0x20b9d1+'.documentColors'),_0x384153['_validateConfigColorFormat'](_0x20b9d1+'.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:_0x1debd5}=this['editor'],_0x201c89=_0x1debd5['get'](EmailConfigurationLogger);_0x1debd5['has']('SourceEditing')||_0x1debd5['has']('SourceEditingEnhanced')||_0x201c89['_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:_0x558078}=this['editor'];if(!_0x558078['has']('DataFilter'))return;const _0x497240=_0x558078['get']('DataFilter'),_0x2ad511=_0x558078['get'](EmailConfigurationLogger);for(const _0x344d8e of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x497240['once']('register:'+_0x344d8e,(_0x4f1189,_0x2e9b20)=>{_0x2ad511['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x2e9b20['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 _0xe55036=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('MergeFields')||_0xe55036['_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 _0xc76bc2=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('Template')||_0xc76bc2['_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'](){const {config:_0x545579,plugins:_0x588ed3}=this['editor'],_0x22779d=_0x588ed3['get'](EmailConfigurationLogger),_0x15c1b4=_0x545579['get']('exportInlineStyles');_0x15c1b4?.['transformations']?.['includes'](transformEmailFigureToTable)||_0x22779d['_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.\x20Consider\x20enabling\x20the\x20`transformEmailFigureToTable`\x20transformation\x20in\x20the\x20`exportInlineStyles`\x20in\x20order\x20to\x20make\x20block\x20images\x20work\x20in\x20email\x20clients.'});}}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 _0x39a14d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x28562c;for(const _0x2c7b7d in _0x39a14d){const _0x1be3f9=_0x2c7b7d,_0x47859e=_0x39a14d[_0x1be3f9];if('emailConfigurationHelperLicenseKeyValid'==_0x47859e||'emailConfigurationHelperLicenseKeyInvalid'==_0x47859e||'emailConfigurationHelperLicenseKeyExpired'==_0x47859e||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x47859e||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x47859e||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x47859e||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x47859e){delete _0x39a14d[_0x1be3f9],_0x28562c=_0x47859e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x28562c&&_0x39a14d['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x28562c&&_0x39a14d['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x28562c&&_0x39a14d['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x28562c&&_0x39a14d['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x28562c&&_0x39a14d['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x28562c&&_0x39a14d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getTranslation$d(_0x3c6236,_0xec4f7a){const t=_0x3c6236['t'];switch(_0xec4f7a){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 _0xec4f7a;}}const PRODUCTION_URL$1='https://pdf-converter.cke-cs.com/v1/convert/';class ExportPdfCommand extends Command{constructor(_0x2bd7f3){super(_0x2bd7f3),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x20f288={}){const _0x575de7=this['editor'],_0x129bc0=_0x20f288['converterUrl']||PRODUCTION_URL$1,_0x4925ee=_0x20f288['dataCallback']||(_0x1f152d=>_0x1f152d['data']['get']()),_0x537121=_0x575de7['plugins']['get']('ExportPdf'),_0x303155=_0x20f288['token']||_0x537121['_token'];return this['isBusy']=!0x0,this['refresh'](),collectStylesheets(_0x20f288['stylesheets']||['EDITOR_STYLES'])['then'](async _0x396b78=>{if(_0x575de7['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x575de7['locale'],'PDF\x20export\x20started')),_0x575de7['plugins']['has']('MergeFields')){_0x20f288['converterOptions']||(_0x20f288['converterOptions']={});const _0x4fe9f4=_0x575de7['plugins']['get']('MergeFieldsEditing'),_0x5361be=_0x4fe9f4['previewMode'],{prefix:_0x11052d,suffix:_0xf9a090}=_0x575de7['config']['get']('mergeFields'),_0x4339d4='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88B8AAuUB8e2ujYwAAAAASUVORK5CYII=',_0x230f19={'prefix':_0x11052d,'suffix':_0xf9a090,'data':{}};if('$labels'===_0x5361be){for(const _0x4c5e2e of _0x4fe9f4['getMergeFieldsIds']())'image'===_0x4fe9f4['getMergeFieldType'](_0x4c5e2e)?_0x230f19['data'][_0x4c5e2e]=_0x4339d4:_0x230f19['data'][_0x4c5e2e]=_0x4fe9f4['wrapInAffixes'](_0x4fe9f4['getLabel'](_0x4c5e2e)||_0x4c5e2e);}else{const _0x443b8a='$defaultValues'===_0x5361be?_0x4fe9f4['getDefaultValues']():_0x4fe9f4['getDataSetValues'](_0x5361be,!0x0);for(const _0x3de333 of Object['entries'](_0x443b8a)){const [_0x1c393b,_0x2e4f96]=_0x3de333;'image'===_0x4fe9f4['getMergeFieldType'](_0x1c393b)?_0x230f19['data'][_0x1c393b]=null!==_0x2e4f96?_0x2e4f96:_0x4339d4:_0x230f19['data'][_0x1c393b]=null!==_0x2e4f96?_0x2e4f96:_0x4fe9f4['getLabel'](_0x1c393b)||_0x1c393b;}}_0x20f288['converterOptions']['merge_fields']=_0x230f19;}const _0x58d51f=0x2===_0x20f288['version']?prepareContentInlineStyleV2(_0x20f288['converterOptions']):prepareContentInlineStyle(_0x20f288['converterOptions']),_0x5783f7={'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'+_0x575de7['locale']['contentLanguageDirection']+'\x22\x20style=\x22'+_0x58d51f+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x4925ee(_0x575de7)+'\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':_0x396b78,[0x2===_0x20f288['version']?'config':'options']:_0x20f288['converterOptions']},_0x442a86={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x303155?{'Authorization':_0x303155['value']}:null,'x-cs-app-id':_0x20f288['appID']||'cke5'},'body':JSON['stringify'](_0x5783f7)};return window['fetch'](_0x129bc0,_0x442a86)['then'](_0x5bb004=>{if(0xc8!==_0x5bb004['status'])throw _0x5bb004;return _0x5bb004['blob']();})['then'](_0x2fb473=>{_0x575de7['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x575de7['locale'],'PDF\x20export\x20successful'));const _0x56c33b='function'==typeof _0x20f288['fileName']?_0x20f288['fileName']():_0x20f288['fileName'];this['_downloadFile'](_0x2fb473,_0x56c33b||'document.pdf');});})['catch'](_0x4ce9b6=>{const _0x911e75=_0x575de7['plugins']['get']('Notification');throw _0x575de7['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x575de7['locale'],'PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x911e75['showWarning'](getTranslation$d(_0x575de7['locale'],'An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x4ce9b6;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x447a6e,_0x5aef20){const _0x5bf1aa=document['createElement']('a');_0x5bf1aa['href']=window['URL']['createObjectURL'](_0x447a6e),_0x5bf1aa['download']=_0x5aef20,_0x5bf1aa['click'](),_0x5bf1aa['remove']();}}function prepareContentInlineStyle(_0x366acd){return generatePageWidthStyle({'pageWidth':pageFormatToWidth(_0x366acd?.['format']||'A4'),'marginLeft':_0x366acd?.['margin_left'],'marginRight':_0x366acd?.['margin_right']});}function prepareContentInlineStyleV2(_0x2aa515){const _0x4ceb42=_0x2aa515?.['document']?.['margins'];return generatePageWidthStyle({'pageWidth':pageFormatToWidth(_0x2aa515?.['document']?.['size']||'A4'),'marginLeft':_0x4ceb42?.['left'],'marginRight':_0x4ceb42?.['right']});}function generatePageWidthStyle({pageWidth:_0x27ed80,marginLeft:_0x43634a,marginRight:_0x50b4a4}){return'width:calc('+[_0x27ed80,_0x43634a,_0x50b4a4]['filter'](Boolean)['join']('\x20-\x20')+');';}function pageFormatToWidth(_0x4b9f6f){if('object'==typeof _0x4b9f6f&&'width'in _0x4b9f6f)return _0x4b9f6f['width'];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']}[_0x4b9f6f['toLowerCase']()][0x0];}class ExportPdfUI extends Plugin{static get['pluginName'](){return'ExportPdfUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x219a20=this['editor'];_0x219a20['ui']['componentFactory']['add']('exportPdf',()=>{const _0x434005=this['_createButton'](ButtonView),_0x26420c=_0x219a20['commands']['get']('exportPdf');return _0x434005['set']({'tooltip':!0x0}),_0x434005['bind']('isOn')['to'](_0x26420c,'isBusy'),_0x434005;}),_0x219a20['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](MenuBarMenuListItemButtonView));}['_createButton'](_0x22cbe9){const _0x19140b=this['editor'],_0x36cfe7=_0x19140b['config']['get']('exportPdf')||{},_0x46e80f=_0x19140b['commands']['get']('exportPdf'),_0x37c588=new _0x22cbe9(_0x19140b['locale']),_0x2e3350=new SpinnerView();return _0x37c588['children']['add'](_0x2e3350),_0x2e3350['bind']('isVisible')['to'](_0x46e80f,'isBusy'),_0x37c588['iconView']['bind']('isVisible')['to'](_0x46e80f,'isBusy',_0x4a0b91=>!_0x4a0b91),_0x37c588['set']({'icon':IconExportPdf}),_0x37c588['bind']('isEnabled')['to'](_0x46e80f,'isEnabled'),_0x37c588['bind']('label')['to'](_0x46e80f,'isBusy',_0x577859=>getTranslation$d(_0x19140b['locale'],_0x577859?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x37c588,'execute',()=>{_0x19140b['execute']('exportPdf',_0x36cfe7),_0x19140b['editing']['view']['focus']();}),_0x37c588;}}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 _0x3cd775=this['editor'],_0x3dc8ad=_0x3cd775['config']['get']('exportPdf')||{};_0x3cd775['commands']['add']('exportPdf',new ExportPdfCommand(_0x3cd775));const _0x1f652f=_0x3cd775['plugins']['get']('CloudServices');!0x1===_0x3dc8ad['tokenUrl']?this['_token']=null:_0x3dc8ad['tokenUrl']?_0x1f652f['registerTokenUrl'](_0x3dc8ad['tokenUrl'])['then'](_0x5080d8=>{this['_token']=_0x5080d8;}):this['_token']=_0x1f652f['token'];}}function getConverterOptions(_0x8331b3,_0x42b489={}){const _0x411af0=_0x8331b3['plugins']['has']('Users'),_0x1a7f32=_0x8331b3['plugins']['has']('CommentsRepository'),_0x4373bb=_0x8331b3['plugins']['has']('TrackChanges'),_0x3f2764=_0x42b489;if(_0x411af0&&_0x1a7f32){const _0x4acabe=getComments(_0x8331b3['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object['keys'](_0x4acabe)['length']&&(_0x3f2764['comments']=_0x4acabe);}if(_0x411af0&&_0x4373bb){const _0x4eae22=_0x8331b3['plugins']['get']('TrackChanges'),_0x55002a=_0x8331b3['plugins']['get']('Users'),_0x175427=getSuggestions(_0x4eae22['getSuggestions']({'toJSON':!0x0}),_0x55002a['users']);Object['keys'](_0x175427)['length']&&(_0x3f2764['suggestions']=_0x175427);}return(_0x3f2764['suggestions']||_0x3f2764['comments'])&&(_0x3f2764['timezone']=new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone']),_0x3f2764;}function getComments(_0xd36078){const _0x3f0307={};if(!_0xd36078['length'])return _0x3f0307;for(const _0x52b4b9 of _0xd36078)_0x52b4b9['comments']['map'](_0x429375=>{void 0x0===_0x3f0307[_0x52b4b9['id']]&&(_0x3f0307[_0x52b4b9['id']]=[]),_0x3f0307[_0x52b4b9['id']]['push']({'author':_0x429375['author']['name'],'content':_0x429375['content'],'created':_0x429375['createdAt'],'is_resolved':_0x52b4b9['isResolved']});});return _0x3f0307;}function getSuggestions(_0x2e88b9,_0x1e5d42){const _0x1b0998={};if(!_0x2e88b9['length']||!_0x1e5d42['length'])return _0x1b0998;for(const {id:_0x216e40,createdAt:_0x2cfdf0,authorId:_0x256dd8,attributes:_0x2241b2}of _0x2e88b9){const _0x21879d=_0x2241b2&&_0x2241b2['@external'],_0x4ae7b4=_0x21879d?_0x21879d['authorName']:_0x1e5d42['get'](_0x256dd8)['name'];_0x1b0998[_0x216e40]={'author':_0x4ae7b4,'created':_0x2cfdf0};}return _0x1b0998;}function getConverterOptionsV2(_0x1155b7,_0x470fa7={}){const _0x4b4f21=_0x1155b7['plugins']['has']('Users'),_0xfa90d4=_0x1155b7['plugins']['has']('CommentsRepository'),_0x4145e9=_0x1155b7['plugins']['has']('TrackChanges'),_0x5e4819=_0x1155b7['plugins']['has']('MergeFields'),_0x3b3a1f=_0x1155b7['locale']['contentLanguage'],_0x36acd0=_0x470fa7,_0x5aa3e0={};if(_0x36acd0['document']=_0x36acd0['document']||{},_0x36acd0['document']['language']=_0x36acd0['document']['language']||_0x3b3a1f,_0x4b4f21&&_0xfa90d4){const _0x638af1=getCommentsV2(_0x1155b7['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0x638af1['length']&&(_0x5aa3e0['comment_threads']=_0x638af1);}if(_0x4b4f21&&_0x4145e9){const _0x437fa4=_0x1155b7['plugins']['get']('TrackChanges'),_0x512dd3=_0x1155b7['plugins']['get']('Users'),_0x68592e=getSuggestionsV2(_0x437fa4['getSuggestions']({'toJSON':!0x0}),_0x512dd3['users']);_0x68592e['length']&&(_0x5aa3e0['suggestions']=_0x68592e);}if(_0x5e4819){const _0xab0da2=_0x1155b7['plugins']['get']('MergeFieldsEditing'),_0x53b23a=_0xab0da2['previewMode'],{prefix:_0x52dce4,suffix:_0x88518d}=_0x1155b7['config']['get']('mergeFields');if(_0x36acd0['merge_fields']={'prefix':_0x52dce4,'suffix':_0x88518d},'$labels'!==_0x53b23a){_0x36acd0['merge_fields']['data']={};const _0x4237ff='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88B8AAuUB8e2ujYwAAAAASUVORK5CYII=',_0x135493='$defaultValues'===_0x53b23a?_0xab0da2['getDefaultValues']():_0xab0da2['getDataSetValues'](_0x53b23a,!0x0);for(const _0x5454eb of Object['entries'](_0x135493)){const [_0x31c15d,_0x479f13]=_0x5454eb;'image'===_0xab0da2['getMergeFieldType'](_0x31c15d)?_0x36acd0['merge_fields']['data'][_0x31c15d]=null!==_0x479f13?_0x479f13:_0x4237ff:_0x36acd0['merge_fields']['data'][_0x31c15d]=null!==_0x479f13?_0x479f13:_0xab0da2['getLabel'](_0x31c15d)||_0x31c15d;}}}return(_0x5aa3e0['comment_threads']||_0x5aa3e0['suggestions'])&&(_0x36acd0['timezone']=new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'],_0x36acd0['collaboration_features']=_0x5aa3e0),_0x36acd0;}function getCommentsV2(_0x4fd1ac){const _0x42c99c=[];if(!_0x4fd1ac['length'])return _0x42c99c;for(const _0x22a63b of _0x4fd1ac){const _0x47df55=_0x22a63b['comments']['map'](_0x425331=>({'author':_0x425331['author']['name'],'content':_0x425331['content'],'created_at':_0x425331['createdAt']}));_0x42c99c['push']({'thread_id':_0x22a63b['id'],'is_resolved':_0x22a63b['isResolved'],'comments':_0x47df55});}return _0x42c99c;}function getSuggestionsV2(_0x204596,_0x26e957){return _0x204596['length']&&_0x26e957['length']?_0x204596['map'](({id:_0x4e0c71,createdAt:_0x23fa33,authorId:_0x319ca1,attributes:_0xd53010})=>{const _0x3fbefc=_0xd53010&&_0xd53010['@external'];return{'id':_0x4e0c71,'author':_0x3fbefc?_0x3fbefc['authorName']:_0x26e957['get'](_0x319ca1)['name'],'created_at':_0x23fa33};}):[];}function getTranslation$c(_0x3806d6,_0x562d2e){const t=_0x3806d6['t'];switch(_0x562d2e){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 _0x562d2e;}}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 Command{constructor(_0x12046e){super(_0x12046e),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x1c6d19={}){const _0x3071f2=this['editor'],_0x280a37=_0x1c6d19['version']||0x2,_0x10d73c=0x1===_0x280a37,_0x143a41=_0x1c6d19['converterUrl']||(_0x10d73c?PRODUCTION_URL:PRODUCTION_URL_V2),_0x5296de=_0x1c6d19['converterOptions']||{},_0x3935a4=_0x3071f2['plugins']['get']('ExportWord'),_0x157fcd=_0x1c6d19['token']||_0x3935a4['_token'],_0x157419=!0x0===_0x5296de['auto_pagination'],_0x245818=_0x1c6d19['dataCallback']||(_0x57e560=>_0x57e560['data']['get']({'pagination':_0x157419}));return 0x2===_0x280a37&&isV1ApiUsed(_0x5296de)&&logWarning('export-word-v1-api-is-deprecated'),this['isBusy']=!0x0,this['refresh'](),collectStylesheets(_0x1c6d19['stylesheets']||['EDITOR_STYLES'])['then'](async _0x1ca94c=>{_0x3071f2['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0x3071f2['locale'],'Word\x20document\x20export\x20started'));const _0x56a932=await _0x245818(_0x3071f2),_0x1e14cd={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x3071f2['locale']['contentLanguageDirection']+'\x22>'+_0x56a932+'</div>','css':_0x1ca94c,[_0x10d73c?'options':'config']:{..._0x5296de,..._0x10d73c?getConverterOptions(_0x3071f2,_0x5296de):getConverterOptionsV2(_0x3071f2,_0x5296de)}},_0x4df87b={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x157fcd?{'Authorization':_0x157fcd['value']}:null},'body':JSON['stringify'](_0x1e14cd)};return window['fetch'](_0x143a41,_0x4df87b)['then'](_0x2b2c1e=>{if(0xc8!==_0x2b2c1e['status'])throw _0x2b2c1e;return _0x2b2c1e['blob']();})['then'](_0x225dcd=>{_0x3071f2['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0x3071f2['locale'],'Word\x20document\x20export\x20successful'));const _0x57f93d='function'==typeof _0x1c6d19['fileName']?_0x1c6d19['fileName']():_0x1c6d19['fileName'];this['_downloadFile'](_0x225dcd,_0x57f93d||'document.docx');});})['catch'](_0x5d4f3e=>{const _0x4068cd=_0x3071f2['plugins']['get']('Notification');throw _0x3071f2['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0x3071f2['locale'],'Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x4068cd['showWarning'](getTranslation$c(_0x3071f2['locale'],'An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x5d4f3e;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x3457df,_0x1d6235){const _0x3bd0bb=document['createElement']('a');_0x3bd0bb['href']=window['URL']['createObjectURL'](_0x3457df),_0x3bd0bb['download']=_0x1d6235,_0x3bd0bb['click'](),_0x3bd0bb['remove']();}}function isV1ApiUsed(_0x46f70c){for(const _0x2624dd of firstVersionApiKeys)if(void 0x0!==_0x46f70c[_0x2624dd])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 _0x2baab5=this['editor'];_0x2baab5['ui']['componentFactory']['add']('exportWord',()=>{const _0x6f0b6f=_0x2baab5['commands']['get']('exportWord'),_0x166105=this['_createButton'](ButtonView);return _0x166105['set']({'tooltip':!0x0}),_0x166105['bind']('isOn')['to'](_0x6f0b6f,'isBusy'),_0x166105;}),_0x2baab5['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](MenuBarMenuListItemButtonView));}['_createButton'](_0x4a8468){const _0x1822a6=this['editor'],_0x113281=_0x1822a6['config']['get']('exportWord')||{},_0x1303f7=_0x1822a6['commands']['get']('exportWord'),_0x37d67e=new _0x4a8468(_0x1822a6['locale']),_0xc0787a=new SpinnerView();return _0x37d67e['children']['add'](_0xc0787a),_0xc0787a['bind']('isVisible')['to'](_0x1303f7,'isBusy'),_0x37d67e['iconView']['bind']('isVisible')['to'](_0x1303f7,'isBusy',_0x1b9e2b=>!_0x1b9e2b),_0x37d67e['set']({'icon':IconExportWord}),_0x37d67e['bind']('isEnabled')['to'](_0x1303f7,'isEnabled'),_0x37d67e['bind']('label')['to'](_0x1303f7,'isBusy',_0x169105=>getTranslation$c(_0x1822a6['locale'],_0x169105?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x37d67e,'execute',()=>{_0x1822a6['execute']('exportWord',_0x113281),_0x1822a6['editing']['view']['focus']();}),_0x37d67e;}}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 _0x10b2af=this['editor'],_0x4fd95f=_0x10b2af['config']['get']('exportWord')||{};_0x10b2af['commands']['add']('exportWord',new ExportWordCommand(_0x10b2af));const _0x2b9dac=_0x10b2af['plugins']['get']('CloudServices');!0x1===_0x4fd95f['tokenUrl']?this['_token']=null:_0x4fd95f['tokenUrl']?_0x2b9dac['registerTokenUrl'](_0x4fd95f['tokenUrl'])['then'](_0x1af853=>{this['_token']=_0x1af853;}):this['_token']=_0x2b9dac['token'];}}class ModelElementTracker{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x132e68,_0x5285b6){this['_model']=_0x132e68,this['_elementName']=_0x5285b6['elementName'],this['_getElementKey']=_0x5285b6['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0xabde3a){const _0xdf05bd=new Set(),_0x52efff=new Map();for(const _0x13d9ef of _0xabde3a){if('insert'===_0x13d9ef['type']&&'$text'!==_0x13d9ef['name']&&_0x13d9ef['position']['nodeAfter']){const _0x2e698d=this['_model']['createRangeOn'](_0x13d9ef['position']['nodeAfter']);for(const _0x5a0ddd of _0x2e698d['getItems']()){if(!_0x5a0ddd['is']('element',this['_elementName']))continue;const _0x3fe672=this['_getElementKey'](_0x5a0ddd);_0x52efff['has'](_0x3fe672)||_0x52efff['set'](_0x3fe672,[]),_0x52efff['get'](_0x3fe672)['push'](_0x5a0ddd);}}if('remove'===_0x13d9ef['type']&&_0x13d9ef['name']===this['_elementName']){const _0x4201ea=this['_getElementKey']({'getAttribute':_0x44b70f=>_0x13d9ef['attributes']['get'](_0x44b70f)});_0xdf05bd['add'](_0x4201ea);}}for(const [_0x49266c,_0x15320b]of this['_trackedElements'])'$graveyard'===_0x15320b['root']['rootName']&&_0xdf05bd['add'](_0x49266c);for(const _0x4d1672 of _0xdf05bd)this['_trackedElements']['delete'](_0x4d1672);for(const [_0x225e7e,_0xb93341]of _0x52efff)this['_trackedElements']['set'](_0x225e7e,_0xb93341[_0xb93341['length']-0x1]);const _0x2220e1=new Set();for(const [_0x5f17eb,_0x597b7a]of _0x52efff)_0xdf05bd['has'](_0x5f17eb)&&(_0x2220e1['add'](_0x597b7a[0x0]),_0x597b7a['length']>0x1?_0x52efff['set'](_0x5f17eb,_0x597b7a['slice'](0x1)):_0x52efff['delete'](_0x5f17eb),_0xdf05bd['delete'](_0x5f17eb));return{'removed':Array['from'](_0xdf05bd),'inserted':Array['from'](_0x52efff['values']())['flat'](),'moved':Array['from'](_0x2220e1)};}}class FootnotesTracker extends Plugin{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4fe57d){super(_0x4fe57d),this['_footnoteDefsContainerTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x4142ff=>_0x4142ff['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x29be5b=>_0x29be5b['getAttribute']('footnoteId')});}['init'](){const {editor:_0x5936d3}=this,{model:_0x1c2e9b,data:_0x40fb99}=_0x5936d3;_0x1c2e9b['document']['registerPostFixer'](_0x3d2a47=>{const _0x199f0e=_0x1c2e9b['document']['differ']['getChanges']();let _0x338137=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x3d2a47,_0x199f0e)&&(_0x338137=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x3d2a47,_0x199f0e)&&(_0x338137=!0x0),this['_handleFootnoteReferencesChanges'](_0x3d2a47,_0x199f0e)&&(_0x338137=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x3d2a47)&&(_0x338137=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x3d2a47)&&(_0x338137=!0x0),this['_sortFootnoteDefinitions'](_0x3d2a47)&&(_0x338137=!0x0),_0x338137;}),this['listenTo'](_0x1c2e9b['document'],'change:data',()=>{_0x1c2e9b['enqueueChange']({'isUndoable':!0x1},_0x44f375=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x44f375);});},{'priority':'low'}),this['listenTo'](_0x40fb99,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x130db6){return this['_footnotes']['find'](_0x326ae6=>_0x326ae6['id']===_0x130db6)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x1a8871){this['_footnoteFormatter']=_0x1a8871;}['_updateFootnotesCounters'](_0x54b527,_0x1bbe69=0x0){let _0x5ee60c=!0x1;for(let _0x1aa10b=_0x1bbe69;_0x1aa10b<this['_footnotes']['length'];_0x1aa10b++)this['_updateFootnoteRefCounter'](_0x54b527,_0x1aa10b)&&(_0x5ee60c=!0x0);return _0x5ee60c;}['_insertEmptyFootnotesDefinitionsContainer'](_0x34dcd9,_0x99fc50){const _0x3b461b=_0x34dcd9['createElement']('footnotesDefinitions',{});return _0x34dcd9['append'](_0x3b461b,_0x99fc50),this['_footnotesDefinitions']=_0x3b461b,_0x3b461b;}['_ensureFootnotesDefinitionsContainerExists'](_0x27928c){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x5434be=this['_footnotes'][0x0]['reference']['root'],_0x36ce47=this['_insertEmptyFootnotesDefinitionsContainer'](_0x27928c,_0x5434be);for(const _0x2d49e9 of this['_footnotes'])_0x2d49e9['definition']['parent']||_0x27928c['insert'](_0x2d49e9['definition'],_0x36ce47,'end');this['_updateFootnotesCounters'](_0x27928c);}['_handleFootnotesDefinitionsObjectChanges'](_0x986bd4,_0x198e7e){let _0xeb43d0=!0x1;const {inserted:_0xff398c,removed:_0xf00ce,moved:_0xfa8576}=this['_footnoteDefsContainerTracker']['getChanges'](_0x198e7e);if(_0xfa8576['length']&&(this['_footnotesDefinitions']=_0xfa8576[0x0]),_0xff398c['length']){if(_0xff398c['length']>0x1||this['_footnotesDefinitions']&&_0xff398c['some'](_0x1798a5=>_0x1798a5!==this['_footnotesDefinitions'])){const _0x2c6e2a=_0x986bd4['createElement']('footnotesDefinitions',{}),_0x2e4f37=[];this['_footnotesDefinitions']&&_0x2e4f37['push'](this['_footnotesDefinitions']),_0x2e4f37['push'](..._0xff398c),_0x986bd4['insert'](_0x2c6e2a,_0x2e4f37[0x0],'before');for(const _0x2bf66e of _0x2e4f37)_0x986bd4['move'](_0x986bd4['createRangeIn'](_0x2bf66e),_0x986bd4['createPositionAt'](_0x2c6e2a,'end')),_0x986bd4['remove'](_0x2bf66e);this['_footnotesDefinitions']=_0x2c6e2a,this['_updateFootnotesCounters'](_0x986bd4),_0xeb43d0=!0x0;}else this['_footnotesDefinitions']=_0xff398c[0x0];}if(_0xf00ce['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x18ff21 of this['_footnotes'])_0x986bd4['remove'](_0x18ff21['reference']),_0xeb43d0=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0xeb43d0;}['_handleFootnoteDefinitionsChanges'](_0x4672d7,_0x53fcee){let _0x17c073=!0x1;const _0xf02ff0=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x481770,moved:_0x5b30a9}=this['_footnoteDefsTracker']['getChanges'](_0x53fcee);for(const _0x144de7 of[..._0x5b30a9,..._0x481770]){const _0x279a91=_0x144de7['getAttribute']('footnoteId'),_0x6c7eef=this['getFootnote'](_0x279a91);_0x6c7eef&&(_0x6c7eef['definition']=_0x144de7),ensureDefinitionIsNotEmpty(_0x4672d7,_0xf02ff0,_0x144de7)&&(_0x17c073=!0x0);}return _0x17c073;}['_handleFootnoteReferencesChanges'](_0x2763dc,_0x2bd9a6){let _0x3d8dc9=!0x1;const {removed:_0x3727ce,inserted:_0x27b1b5,moved:_0x29cf0b}=this['_footnoteRefsTracker']['getChanges'](_0x2bd9a6);for(const _0x195a3e of _0x3727ce)this['_handleRemoveFootnoteReferenceById'](_0x2763dc,_0x195a3e)&&(_0x3d8dc9=!0x0);for(const _0x15789f of _0x27b1b5)this['_handleInsertedFootnoteReference'](_0x2763dc,_0x15789f)&&(_0x3d8dc9=!0x0);for(const _0x16a13f of _0x29cf0b)this['_handleMovedFootnoteReference'](_0x2763dc,_0x16a13f)&&(_0x3d8dc9=!0x0);return _0x3d8dc9;}['_handleFootnotesDefinitionsObjectSync'](_0x12d6b7){if(!this['_footnotesDefinitions'])return!0x1;let _0x50cb47=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x4e95a1=[];for(const _0x2a2a02 of this['_footnotesDefinitions']['getChildren']()){const _0x3a0911=_0x2a2a02['getAttribute']('footnoteId');this['getFootnote'](_0x3a0911)||(_0x4e95a1['unshift'](_0x2a2a02),_0x50cb47=!0x0);}for(const _0x1d92b2 of _0x4e95a1)_0x12d6b7['remove'](_0x1d92b2);}const _0x5d6e8c=new Set(),_0x46c3cf=[];for(const _0xe668ff of this['_footnotesDefinitions']['getChildren']()){const _0x9d0af0=_0xe668ff['getAttribute']('footnoteId');_0x5d6e8c['has'](_0x9d0af0)?(_0x46c3cf['unshift'](_0xe668ff),_0x50cb47=!0x0):_0x5d6e8c['add'](_0x9d0af0);}for(const _0x31fc9c of _0x46c3cf)_0x12d6b7['remove'](_0x31fc9c);return this['_footnotesDefinitions']['childCount']||(_0x12d6b7['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x50cb47=!0x0),_0x50cb47;}['_handleInsertedFootnoteReference'](_0x3a9c07,_0x4503bb){if(this['_footnotes']['find'](_0x3739e9=>_0x3739e9['reference']===_0x4503bb))return!0x1;let _0x8c926b=!0x1;const _0x1b7815=_0x4503bb['getAttribute']('footnoteId'),_0x1cf64d=this['_footnotes']['findIndex'](_0x16d33e=>_0x16d33e['id']===_0x1b7815);-0x1!==_0x1cf64d&&(_0x3a9c07['remove'](this['_footnotes'][_0x1cf64d]['reference']),this['_footnotes']['splice'](_0x1cf64d,0x1),_0x8c926b=!0x0);let _0x3d04c9=this['_footnotesDefinitions']?findFootnoteDefinitionInContainer(this['_footnotesDefinitions'],_0x1b7815):null;_0x3d04c9||(_0x3d04c9=_0x3a9c07['createElement']('footnoteDefinition',{'footnoteId':_0x1b7815}),this['_footnotesDefinitions']&&(_0x3a9c07['insert'](_0x3d04c9,this['_footnotesDefinitions'],'end'),_0x8c926b=!0x0));const _0x42b4aa={'id':_0x1b7815,'reference':_0x4503bb,'definition':_0x3d04c9},_0x198f52=findInsertFootnoteReferenceIndex(this['editor']['model'],this['_footnotes'],_0x4503bb);this['_footnotes']['splice'](_0x198f52,0x0,_0x42b4aa);let _0x3d7789=_0x198f52;return-0x1!==_0x1cf64d&&(_0x3d7789=Math['min'](_0x198f52,_0x1cf64d)),this['_updateFootnotesCounters'](_0x3a9c07,_0x3d7789)&&(_0x8c926b=!0x0),_0x8c926b;}['_handleRemoveFootnoteReferenceById'](_0x297fb4,_0x5a2bcf){const _0x60d184=this['_footnotes']['findIndex'](_0x3c2115=>_0x3c2115['id']===_0x5a2bcf);if(-0x1===_0x60d184)return!0x1;let _0x4e4732=!0x1;const _0x58f66f=this['_footnotes'][_0x60d184];return'$graveyard'!==_0x58f66f['definition']['root']['rootName']&&(_0x297fb4['remove'](_0x58f66f['definition']),_0x4e4732=!0x0),this['_footnotes']['splice'](_0x60d184,0x1),this['_updateFootnotesCounters'](_0x297fb4,_0x60d184)&&(_0x4e4732=!0x0),_0x4e4732;}['_handleMovedFootnoteReference'](_0x486b6e,_0x4fcb84){const _0x2c16bd=_0x4fcb84['getAttribute']('footnoteId'),_0x39c994=this['_footnotes']['findIndex'](_0x1957f9=>_0x1957f9['id']===_0x2c16bd),_0x5f0b7a=this['_footnotes'][_0x39c994];let _0x448523=!0x1;_0x5f0b7a['reference']=_0x4fcb84,this['_footnotes']['splice'](_0x39c994,0x1);const _0x16c2ce=findInsertFootnoteReferenceIndex(this['editor']['model'],this['_footnotes'],_0x4fcb84);return this['_footnotes']['splice'](_0x16c2ce,0x0,_0x5f0b7a),this['_updateFootnotesCounters'](_0x486b6e,Math['min'](_0x39c994,_0x16c2ce))&&(_0x448523=!0x0),_0x448523;}['_updateFootnoteRefCounter'](_0x141c1d,_0x1bb378){if(!this['_footnotesDefinitions'])return!0x1;const _0x3cee0f=this['_footnotes'][_0x1bb378];let _0x127882;return _0x127882=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x3cee0f,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x1bb378+0x1}):String(_0x1bb378+0x1),_0x3cee0f['reference']['getAttribute']('footnoteCounter')!=_0x127882&&(_0x141c1d['setAttribute']('footnoteCounter',_0x127882,_0x3cee0f['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x54700e){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(areArraysEqual(this['_footnotes']['map'](_0x57b19a=>_0x57b19a['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x18567a=>_0x18567a['getAttribute']('footnoteId'))))return!0x1;let _0x40e489=!0x1;for(let _0x331b6b=0x0;_0x331b6b<this['_footnotes']['length'];_0x331b6b++){const _0x292a4a=this['_footnotes'][_0x331b6b],_0x207191=_0x54700e['createPositionBefore'](_0x292a4a['definition']),_0xa6dcfc=_0x54700e['createPositionAt'](this['_footnotesDefinitions'],_0x331b6b);_0x207191['isEqual'](_0xa6dcfc)||(_0x54700e['move'](_0x54700e['createRangeOn'](_0x292a4a['definition']),_0xa6dcfc),_0x40e489=!0x0);}return _0x40e489;}['_ensureFootnotesReferencesHaveProperOrder'](_0x3332b8){if(!this['_footnotes']['length'])return!0x1;const {model:_0x4bece0}=this['editor'];let _0x57c219=!0x1;for(let _0x88780c=0x0;_0x88780c<this['_footnotes']['length']-0x1;_0x88780c++){const _0x5af0d1=this['_footnotes'][_0x88780c],_0x2a4e10=this['_footnotes'][_0x88780c+0x1],_0x59e1b0=_0x4bece0['createPositionBefore'](_0x5af0d1['reference']),_0x2da000=_0x4bece0['createPositionBefore'](_0x2a4e10['reference']);'after'===_0x59e1b0['compareWith'](_0x2da000)&&(this['_handleMovedFootnoteReference'](_0x3332b8,_0x5af0d1['reference']),_0x88780c=-0x1,_0x57c219=!0x0);}return _0x57c219;}}function ensureDefinitionIsNotEmpty(_0xdd778a,_0x10e669,_0x480fc0){if(_0x480fc0['childCount'])return!0x1;const _0x2fd86f=_0x10e669?'paragraph':'footnoteInlineContent';return _0xdd778a['insert'](_0xdd778a['createElement'](_0x2fd86f),_0x480fc0),!0x0;}function findFootnoteDefinitionInContainer(_0x301d4c,_0x421906){for(const _0x3b3153 of _0x301d4c['getChildren']())if(_0x3b3153['getAttribute']('footnoteId')===_0x421906)return _0x3b3153;return null;}function findInsertFootnoteReferenceIndex(_0x38ca39,_0x32c9bc,_0x3dae06){if(0x0===_0x32c9bc['length'])return 0x0;const _0x5eee74=_0x38ca39['createPositionBefore'](_0x3dae06);for(let _0x54a52e=0x0;_0x54a52e<_0x32c9bc['length'];_0x54a52e++){const _0x1ccf90=_0x32c9bc[_0x54a52e],_0x567390=_0x38ca39['createPositionBefore'](_0x1ccf90['reference']);if('before'===_0x5eee74['compareWith'](_0x567390))return _0x54a52e;}const _0xd4840d=_0x3dae06['root'];let _0x7252ab=-0x1;for(let _0x3ba67a=_0x32c9bc['length']-0x1;_0x3ba67a>=0x0;_0x3ba67a--)if(_0x32c9bc[_0x3ba67a]['reference']['root']===_0xd4840d){_0x7252ab=_0x3ba67a;break;}if(-0x1!==_0x7252ab)return _0x7252ab+0x1;const _0x4b2944=_0x38ca39['document']['getRootNames'](),_0xa4340d=_0x4b2944['indexOf'](_0xd4840d['rootName']),_0x285622=_0x4b2944[_0xa4340d+0x1];if(_0x285622){for(let _0x51dcad=0x0;_0x51dcad<_0x32c9bc['length'];_0x51dcad++)if(_0x32c9bc[_0x51dcad]['reference']['root']['rootName']===_0x285622)return _0x51dcad;}return _0x32c9bc['length'];}function areArraysEqual(_0xb1dd3e,_0x5d9908){if(_0xb1dd3e['length']!==_0x5d9908['length'])return!0x1;for(let _0xad9574=0x0;_0xad9574<_0xb1dd3e['length'];_0xad9574++)if(_0xb1dd3e[_0xad9574]!==_0x5d9908[_0xad9574])return!0x1;return!0x0;}class InsertFootnoteCommand extends Command{['refresh'](){const _0x4fd984=this['editor']['model']['document']['selection'],_0x212d7f=this['_getPositionToInsertFootnote'](_0x4fd984);this['isEnabled']=!!_0x212d7f;}['execute'](_0x40d5f6){const {editor:_0x7a7f59}=this,{model:_0xc762f0}=_0x7a7f59,{selection:_0x44d344}=_0xc762f0['document'],_0x3d0d6a=this['_getPositionToInsertFootnote'](_0x44d344);if(!_0x3d0d6a)return;const _0x3a185d=_0x7a7f59['plugins']['get']('FootnotesEditing'),_0x1355cd=_0x40d5f6?.['footnoteId']??uid();isFootnoteIdValid(_0x1355cd)?(_0xc762f0['change'](_0x2e0251=>{const _0x3d3624=_0x2e0251['createElement']('footnoteRef',{'footnoteId':_0x1355cd});_0xc762f0['insertObject'](_0x3d3624,_0x3d0d6a,null);}),_0x3a185d['_moveSelectionToFootnoteDefinition'](_0x1355cd)):logWarning('insert-footnote-command-executed-with-invalid-id');}['_getPositionToInsertFootnote'](_0x2945e2){const {model:_0x32ec41}=this['editor'],{schema:_0x4eec56}=_0x32ec41,_0xe73642=_0x2945e2['getFirstRange']();for(const _0x550a36 of _0xe73642['getItems']())if(_0x4eec56['isBlock'](_0x550a36)||_0x4eec56['isObject'](_0x550a36))return null;const _0x2cf055=_0xe73642['end'];return _0x4eec56['checkChild'](_0x2cf055,'footnoteRef')?_0x2cf055:null;}}function isFootnoteIdValid(_0x3457d9){return'string'==typeof _0x3457d9&&_0x3457d9['length']>0x0&&!/\s/['test'](_0x3457d9)&&!/^\d/['test'](_0x3457d9);}class FootnotesEditing extends Plugin{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[FootnotesTracker];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x558808}=this;_0x558808['config']['define']('footnotes.multiBlock',!0x0),_0x558808['commands']['add']('insertFootnote',new InsertFootnoteCommand(_0x558808)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){checkLicense$c(this);}['_moveSelectionToFootnoteDefinition'](_0x5dd53d){const {plugins:_0x2fae90,editing:_0x7f058,model:_0x292366}=this['editor'],_0x1ea68d=_0x2fae90['get'](FootnotesTracker)['getFootnote'](_0x5dd53d);return!!_0x1ea68d&&(_0x292366['change'](_0x1106b4=>{_0x1106b4['setSelection'](_0x1106b4['createPositionAt'](_0x1ea68d['definition'],'end'));}),_0x7f058['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0xbb68ae){const {plugins:_0x4b93e1,editing:_0x1f0e59,model:_0xcf8584}=this['editor'],_0x1afa78=_0x4b93e1['get'](FootnotesTracker)['getFootnote'](_0xbb68ae);return!!_0x1afa78&&(_0xcf8584['change'](_0x16a47d=>{_0x16a47d['setSelection'](_0x1afa78['reference'],'on');}),_0x1f0e59['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x1a1a48}=this['editor']['model'],_0x5962d8=this['editor']['config']['get']('footnotes.multiBlock');_0x1a1a48['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x1a1a48['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x1a1a48['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5962d8?_0x1a1a48['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x1a1a48['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x1a1a48['addChildCheck'](_0xa5301d=>{for(const _0x38f150 of _0xa5301d)if('footnoteDefinition'===_0x38f150['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xc4ec67}=this,{conversion:_0x4a338d,editing:_0x229e1e}=_0xc4ec67,{t:t}=_0xc4ec67['locale'];_0x4a338d['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2ec49c,{writer:_0x4cf579,consumable:_0xcfd511})=>{const _0x49a408=_0x2ec49c['getChild'](0x0);if(!_0x49a408||!_0x49a408['is']('element','a'))return null;const _0x2201a2=_0x49a408['getAttribute']('href')||'';if(!_0x2201a2['startsWith']('#'))return null;const _0x5e6036=_0x2201a2['replace'](/^#/,'');if(!_0x5e6036)return null;_0xcfd511['consume'](_0x49a408,{'name':!0x0,'attributes':['href']});for(const {item:_0x3bf7a7}of _0x229e1e['view']['createRangeIn'](_0x49a408))_0x3bf7a7['is']('$textProxy')?_0xcfd511['consume'](_0x3bf7a7['textNode'],{'name':!0x0}):_0x3bf7a7['is']('element')&&_0xcfd511['consume'](_0x3bf7a7,{'name':!0x0});return _0x4cf579['createElement']('footnoteRef',{'footnoteId':_0x5e6036});}}),_0x4a338d['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x296b23,{writer:_0x3416b5})=>createFootnoteRefView(_0x296b23,_0x3416b5)}),_0x4a338d['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x128ea0,{writer:_0x1db8d7})=>{const _0x2d01ed=_0x128ea0['getAttribute']('footnoteCounter');return toWidget(createFootnoteRefView(_0x128ea0,_0x1db8d7),_0x1db8d7,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2d01ed)});}});}['_defineDefinitionsConverters'](){const {editor:_0x48174d}=this,{t:t}=_0x48174d['locale'],{conversion:_0x526397}=_0x48174d;_0x526397['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x526397['for']('upcast')['add'](_0xb1ede2=>{_0xb1ede2['on']('element:ol',(_0x3da710,_0x4cf686,_0x5bd5cc)=>{const _0x38f835=_0x4cf686['viewItem'];if(!_0x38f835['hasClass']('footnotes-list')||!_0x4cf686['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x5bd5cc['consumable']['consume'](_0x38f835,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x3f3787,modelCursor:_0x1bf901}=_0x5bd5cc['convertChildren'](_0x4cf686['viewItem'],_0x4cf686['modelCursor']);_0x4cf686['modelRange']=_0x3f3787,_0x4cf686['modelCursor']=_0x1bf901;}),_0xb1ede2['on']('element:hr',(_0x41973b,_0x44f44e,_0x3f4316)=>{const _0x43c560=_0x44f44e['viewItem'];_0x43c560['hasClass']('footnotes-divider')&&_0x44f44e['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3f4316['consumable']['consume'](_0x43c560,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x526397['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x54594d,{writer:_0x554b49})=>createFootnotesWrapperView(_0x554b49)}),_0x526397['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x45b7ab,{writer:_0x3e7213})=>{const _0x852399=createFootnotesWrapperView(_0x3e7213,{'data-footnotes-list-label':t('Footnotes')}),_0x496b19=toWidget(_0x852399,_0x3e7213,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3e7213['setCustomProperty']('footnotesDefinitions',!0x0,_0x496b19),_0x496b19;}});}['_defineDefinitionConverters'](){const {editor:_0x1e1228}=this,{conversion:_0x364b38,locale:_0x39fee3}=_0x1e1228,_0x350012=_0x1e1228['config']['get']('footnotes.multiBlock');_0x364b38['for']('upcast')['add'](_0x442f3e=>{_0x442f3e['on']('element:li',(_0x1710f1,_0x521631,_0x159647)=>{const _0x5a462f=_0x521631['viewItem'];if(!_0x5a462f['hasClass']('footnote-definition')||!_0x5a462f['getAttribute']('id'))return;const _0x3f0888=_0x5a462f['parent'];if(!_0x3f0888['is']('element','ol')||!_0x3f0888['hasClass']('footnotes-list'))return;if(!_0x159647['consumable']['test'](_0x5a462f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x383873=_0x159647['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5a462f['getAttribute']('id')});if(!_0x159647['safeInsert'](_0x383873,_0x521631['modelCursor']))return;_0x159647['consumable']['consume'](_0x5a462f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1889b2=Array['from'](_0x5a462f['getChildren']())['find'](_0x54ffdc=>_0x54ffdc['is']('element')&&_0x54ffdc['hasClass']('footnote-content'));for(const _0xf61906 of _0x5a462f['getChildren']())_0xf61906['is']('element')&&(_0x159647['consumable']['consume'](_0xf61906,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x159647['consumable']['consume'](_0xf61906,{'name':!0x0,'classes':'footnote-content'}));if(_0x1889b2){if(_0x350012)_0x159647['convertChildren'](_0x1889b2,_0x383873);else{const _0x10a56d=_0x159647['writer']['createElement']('footnoteInlineContent');_0x159647['writer']['insert'](_0x10a56d,_0x383873),_0x159647['convertChildren'](_0x1889b2,_0x10a56d);}}_0x159647['updateConversionResult'](_0x383873,_0x521631);});}),_0x364b38['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x36200f,{writer:_0x36b631})=>createFootnoteDefinitionView(_0x36200f,_0x36b631,_0x39fee3,{'dataPipeline':!0x0})}),_0x364b38['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3d7f9f,{writer:_0xa3466d})=>createFootnoteDefinitionView(_0x3d7f9f,_0xa3466d,_0x39fee3)});}['_defineBogusParagraphConverters'](){const {editor:_0x302035}=this,{conversion:_0x48dea1}=_0x302035;_0x302035['config']['get']('footnotes.multiBlock')?(_0x48dea1['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':footnoteBogusParagraphCreator(),'converterPriority':'high'}),_0x48dea1['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':footnoteBogusParagraphCreator({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x302035['model']['document'],'change:data',()=>{footnoteDefinitionRefreshHandler(_0x302035['model'],_0x302035['editing']);})):(_0x48dea1['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':footnoteBogusParagraphCreator()}),_0x48dea1['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3134c3,{writer:_0x5012f4})=>{const _0x5316a4=_0x5012f4['createContainerElement']('span');return _0x5012f4['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5316a4),_0x5316a4;}}));}['_defineKeyboardHandlers'](){const {editor:_0xed9845}=this,{editing:_0x3974fe,t:t}=_0xed9845,_0x32fd6e=_0xed9845['model']['document']['selection'];_0xed9845['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0xed9845['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3974fe['view']['document'],'enter',(_0x44d617,_0x47f1da)=>{const _0x400dfc=getSelectedFootnoteRef(_0x32fd6e);if(_0x400dfc){const _0x16f27f=_0x400dfc['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x16f27f),_0x47f1da['preventDefault'](),_0x44d617['stop']();}},{'context':isWidget});}['_defineClickHandlers'](){const {editor:_0x37fb0d}=this,{editing:_0x50e2f8}=_0x37fb0d;_0x37fb0d['editing']['view']['addObserver'](PointerObserver),_0x37fb0d['editing']['view']['addObserver'](ClickObserver);let _0x425e78=!0x1;this['listenTo'](_0x50e2f8['view']['document'],'pointerdown',(_0x5b8cbd,_0x5bbecb)=>{const {target:_0x495032}=_0x5bbecb,_0x148c11=_0x50e2f8['view']['document']['selection'];_0x425e78=!!(_0x495032?.['is']('element','a')&&_0x495032['parent']?.['is']('element','sup')&&_0x495032['parent']['hasClass']('footnote'))&&_0x148c11['getSelectedElement']()===_0x495032['parent'];},{'priority':'high'}),this['listenTo'](_0x50e2f8['view']['document'],'click',(_0x119fdd,_0x201502)=>{const {target:_0x1fe48c}=_0x201502;if(!_0x1fe48c?.['is']('element','a'))return;if(_0x1fe48c['parent']?.['is']('element','sup')&&_0x1fe48c['parent']['hasClass']('footnote')&&!_0x425e78)return void _0x201502['preventDefault']();let _0x178857=_0x1fe48c['getAttribute']('href');if(!_0x178857?.['startsWith']('#'))return;_0x178857=_0x178857['slice'](0x1);let _0x2a6fd6=!0x1;(_0x178857['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x178857['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x178857))&&(_0x2a6fd6=!0x0),_0x2a6fd6&&(_0x201502['preventDefault'](),_0x119fdd['stop']());},{'priority':'high','context':'$capture'});}}function getSelectedFootnoteRef(_0xf872bb){const _0x21b249=_0xf872bb['getSelectedElement']();return _0x21b249?.['is']('element','footnoteRef')?_0x21b249:null;}function footnoteBogusParagraphCreator({dataPipeline:_0x4e4ca}={}){return(_0x118a05,{writer:_0x461a67})=>{if(!shouldUseBogusParagraphInFootnote(_0x118a05))return null;if(!_0x4e4ca)return _0x461a67['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x36c522=_0x461a67['createContainerElement']('p');return _0x461a67['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x36c522),_0x36c522;};}function shouldUseBogusParagraphInFootnote(_0x46bd2b){const {parent:_0x509ae2}=_0x46bd2b;if(!_0x509ae2?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x509ae2['childCount'])return!0x1;for(const _0x1c3433 of _0x46bd2b['getAttributeKeys']())if(!_0x1c3433['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1c3433)return!0x1;return!0x0;}function footnoteDefinitionRefreshHandler(_0x3ce775,_0x6de837){const _0x49e67a=_0x3ce775['document']['differ'],_0x166a87=new Set();for(const _0x454189 of _0x49e67a['getChanges']()){const _0x14b3de='attribute'==_0x454189['type']?_0x454189['range']['start']['parent']:_0x454189['position']['parent'];_0x14b3de['is']('element','footnoteDefinition')&&_0x166a87['add'](_0x14b3de);}for(const _0x32811f of _0x166a87['values']()){const _0x2ac31c=Array['from'](_0x32811f['getChildren']())['filter'](_0x2947f5=>shouldRefresh(_0x2947f5,_0x6de837['mapper']));for(const _0x5c50c4 of _0x2ac31c)_0x6de837['reconvertItem'](_0x5c50c4);}}function shouldRefresh(_0x51f7e5,_0xbddbf9){if(!_0x51f7e5['is']('element','paragraph'))return!0x1;const _0x4783cb=_0xbddbf9['toViewElement'](_0x51f7e5);return!!_0x4783cb&&shouldUseBogusParagraphInFootnote(_0x51f7e5)!==_0x4783cb['is']('element','span');}function isFootnotesDefinitionsWidget(_0x44f76f){return isWidget(_0x44f76f)&&_0x44f76f['is']('containerElement')&&!!_0x44f76f['getCustomProperty']('footnotesDefinitions');}function createFootnotesWrapperView(_0x447f72,_0xd68ac3={}){const _0x436c55=_0x447f72['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x138ab1=_0x447f72['createContainerElement']('ol',{'class':'footnotes-list'},_0x447f72['createSlot']());return _0x447f72['createContainerElement']('div',{'class':'footnotes',..._0xd68ac3},[_0x436c55,_0x138ab1]);}function createFootnoteRefView(_0x557ced,_0x1cab8d){const _0x343918=_0x557ced['getAttribute']('footnoteId'),_0x26b228=_0x557ced['getAttribute']('footnoteCounter'),_0x3f8be5=_0x1cab8d['createUIElement']('a',{'href':'#'+_0x343918},function(_0x3cf734){const _0x361f3a=this['toDomElement'](_0x3cf734);return _0x361f3a['textContent']=_0x26b228,_0x361f3a;}),_0x107d55=_0x1cab8d['createContainerElement']('sup',{'id':'ref-'+_0x343918,'class':'footnote'},[_0x3f8be5]);return _0x107d55['getFillerOffset']=()=>null,_0x107d55;}function createFootnoteDefinitionView(_0x228c75,_0x51c03b,_0x575c7a,{dataPipeline:_0x4491a5}={}){const {t:t}=_0x575c7a,_0x3ab009=_0x228c75['getAttribute']('footnoteId'),_0x1479af=_0x51c03b['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x3ab009},function(_0x388619){const _0x5104c9=this['toDomElement'](_0x388619);return _0x5104c9['innerText']='^',_0x5104c9;}),_0x3f1db0=_0x4491a5?_0x51c03b['createContainerElement']('div',{'class':'footnote-content'}):toWidgetEditable(_0x51c03b['createEditableElement']('div',{'class':'footnote-content'}),_0x51c03b,{'label':t('Footnote\x20content.')});return _0x51c03b['insert'](_0x51c03b['createPositionAt'](_0x3f1db0,0x0),_0x51c03b['createSlot']()),_0x51c03b['createContainerElement']('li',{'class':'footnote-definition','id':_0x3ab009},[_0x1479af,_0x3f1db0]);}async function checkLicense$c(_0x5a6cb6){const _0x1dbc26=_0x2718a6([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]),_0x407526=window[_0x2718a6([0x44,0x61,0x74,0x65])][_0x2718a6([0x6e,0x6f,0x77])](),_0x29b707=_0x5a6cb6[_0x2718a6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a2799=new window[(_0x2718a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f076c=>{_0x29b707[_0x2718a6([0x6f,0x6e,0x63,0x65])](_0x2718a6([0x72,0x65,0x61,0x64,0x79]),_0x2f076c);}),_0x138a1e={[_0x2718a6([0x6b,0x74,0x79])]:_0x2718a6([0x45,0x43]),[_0x2718a6([0x75,0x73,0x65])]:_0x2718a6([0x73,0x69,0x67]),[_0x2718a6([0x63,0x72,0x76])]:_0x2718a6([0x50,0x2d,0x32,0x35,0x36]),[_0x2718a6([0x78])]:_0x2718a6([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]),[_0x2718a6([0x79])]:_0x2718a6([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]),[_0x2718a6([0x61,0x6c,0x67])]:_0x2718a6([0x45,0x53,0x32,0x35,0x36])},_0x526156=_0x29b707[_0x2718a6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2718a6([0x67,0x65,0x74])](_0x2718a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x2655da=await(async function(){let _0x1527c7,_0x2a3d82=null,_0x323cbe=null;try{if(_0x526156==_0x2718a6([0x47,0x50,0x4c]))return _0x2718a6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1527c7=(function(){const _0x220394=_0x526156[_0x2718a6([0x73,0x70,0x6c,0x69,0x74])](_0x2718a6([0x2e]));if(0x3!=_0x220394[_0x2718a6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0xa77706=_0x220394[0x1];return _0x5c558e(_0xa77706);function _0x5c558e(_0x651f10){const _0x520ab2=_0x39410b(_0x651f10);return _0x520ab2&&_0x3d3cb3()?_0x520ab2:null;function _0x3d3cb3(){const _0x20665c=_0x520ab2[_0x2718a6([0x6a,0x74,0x69])],_0x5d1de8=window[_0x2718a6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20665c[_0x2718a6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20665c[_0x2718a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x15e45f={..._0x520ab2,[_0x2718a6([0x6a,0x74,0x69])]:_0x20665c[_0x2718a6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x20665c[_0x2718a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x15e45f[_0x2718a6([0x76,0x63])],_0x531b6a(_0x15e45f)==_0x5d1de8;}}}()),!_0x1527c7)return _0x2718a6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x1527c7[_0x2718a6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x323cbe=function(_0x1f34a1,_0x26383){return new window[(_0x2718a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f4104=>{if(_0x521367())return _0x5f4104(_0x2718a6([0x56,0x61,0x6c,0x69,0x64]));_0x425c3d(),_0x29b707[_0x2718a6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2718a6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5517a7=!0x1;const _0x217f6f=uid();function _0x17ad70(_0x14a754){return!!_0x14a754&&(typeof _0x14a754===_0x2718a6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x14a754===_0x2718a6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x14a754[_0x2718a6([0x74,0x68,0x65,0x6e])]===_0x2718a6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x14a754[_0x2718a6([0x63,0x61,0x74,0x63,0x68])]===_0x2718a6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3a5519(_0x1add6c){_0x24db89(_0x1add6c)[_0x2718a6([0x74,0x68,0x65,0x6e])](_0x22b685=>{if(!_0x22b685||_0x22b685[_0x2718a6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2718a6([0x6f,0x6b]))return _0x2718a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3bf42c(_0x531b6a(_0x217f6f+_0x26383))!=_0x22b685[_0x2718a6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2718a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2718a6([0x56,0x61,0x6c,0x69,0x64]);})[_0x2718a6([0x74,0x68,0x65,0x6e])](_0x2eda86=>(_0x2d701b(),_0x2eda86),()=>{const _0x515271=_0x1f172c();return null==_0x515271?(_0x2d701b(),_0x2718a6([0x56,0x61,0x6c,0x69,0x64])):_0x2718a6(_0x407526-_0x515271>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2718a6([0x74,0x68,0x65,0x6e])](_0x5f4104)[_0x2718a6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5f4104(_0x2718a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x52ae94=0x36ee80;function _0x2d701b(){const _0x1ca2cb=_0x2718a6([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bf42c(_0x531b6a(_0x1f34a1)),_0x108560=_0x179af9(_0x3bf42c(window[_0x2718a6([0x4d,0x61,0x74,0x68])][_0x2718a6([0x63,0x65,0x69,0x6c])](_0x407526/_0x52ae94)));window[_0x2718a6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2718a6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ca2cb,_0x108560);}function _0x1f172c(){const _0x4b30ff=_0x2718a6([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bf42c(_0x531b6a(_0x1f34a1)),_0xb7712=window[_0x2718a6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2718a6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b30ff);return _0xb7712?window[_0x2718a6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x179af9(_0xb7712),0x10)*_0x52ae94:null;}function _0x24db89(_0x38dc07){return new window[(_0x2718a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f8430,_0x38ba0e)=>{_0x38dc07[_0x2718a6([0x74,0x68,0x65,0x6e])](_0x3f8430,_0x38ba0e),window[_0x2718a6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x38ba0e,0x1d4c0);});}}_0x29b707[_0x2718a6([0x6f,0x6e])](_0x2718a6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1bf8e4,_0x11d571)=>{if(_0x11d571[0x0]!=_0x1f34a1)return _0x5f4104(_0x2718a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x11d571[0x1]={..._0x11d571[0x1],[_0x2718a6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x217f6f};},{[_0x2718a6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2718a6([0x68,0x69,0x67,0x68])}),_0x29b707[_0x2718a6([0x6f,0x6e])](_0x2718a6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3a4ed2=>{_0x17ad70(_0x3a4ed2[_0x2718a6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5517a7=!0x0,_0x3a5519(_0x3a4ed2[_0x2718a6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2718a6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2718a6([0x6c,0x6f,0x77])}),_0x2a2799[_0x2718a6([0x74,0x68,0x65,0x6e])](()=>{_0x5517a7||_0x5f4104(_0x2718a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x521367(){return _0x29b707[_0x2718a6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2718a6([0x76,0x69,0x65,0x77])][_0x2718a6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2718a6([0x61,0x75,0x74,0x6f]);}function _0x425c3d(){_0x29b707[_0x2718a6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2718a6([0x76,0x69,0x65,0x77])][_0x2718a6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2718a6([0x61,0x75,0x74,0x6f]);}}(_0x1527c7[_0x2718a6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1527c7[_0x2718a6([0x6a,0x74,0x69])]));const _0x22d8e7=await(async function(){let _0x2e09ff=!0x0;try{const _0x25e18f=_0x526156[_0x2718a6([0x73,0x70,0x6c,0x69,0x74])](_0x2718a6([0x2e])),[_0x405c92,_0x35caee,_0x576b08]=_0x25e18f;return _0x43d9aa(_0x405c92),await _0x3f7be4(_0x405c92,_0x35caee,_0x576b08),_0x2e09ff;}catch{return!0x1;}function _0x43d9aa(_0xfe5ff8){const _0x37d13e=_0x39410b(_0xfe5ff8);_0x37d13e&&_0x37d13e[_0x2718a6([0x61,0x6c,0x67])]==_0x2718a6([0x45,0x53,0x32,0x35,0x36])||(_0x2e09ff=!0x1);}async function _0x3f7be4(_0x50489b,_0x36915c,_0x4c13ce){const _0x50f11e=window[_0x2718a6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2718a6([0x66,0x72,0x6f,0x6d])](_0x52700d(_0x4c13ce),_0x3a7284=>_0x3a7284[_0x2718a6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2e9ae0=new window[(_0x2718a6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2718a6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x50489b+_0x2718a6([0x2e])+_0x36915c),_0x55cfbb=window[_0x2718a6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2718a6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55cfbb)return;const _0x3df8c8=await _0x55cfbb[_0x2718a6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2718a6([0x6a,0x77,0x6b]),_0x138a1e,{[_0x2718a6([0x6e,0x61,0x6d,0x65])]:_0x2718a6([0x45,0x43,0x44,0x53,0x41]),[_0x2718a6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2718a6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2718a6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55cfbb[_0x2718a6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2718a6([0x6e,0x61,0x6d,0x65])]:_0x2718a6([0x45,0x43,0x44,0x53,0x41]),[_0x2718a6([0x68,0x61,0x73,0x68])]:{[_0x2718a6([0x6e,0x61,0x6d,0x65])]:_0x2718a6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3df8c8,_0x50f11e,_0x2e9ae0)||(_0x2e09ff=!0x1);}}());return _0x22d8e7?(function(){const _0x2e1251=_0x1527c7[_0x2718a6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2e1251)return!0x1;if(_0x2e1251[_0x2718a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2718a6([0x2a])))return!0x0;if(_0x2e1251[_0x2718a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2718a6([0x46,0x4f,0x4f])))return!0x0;return!0x1;}())?(function(){const _0x49e417=[_0x2718a6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2718a6([0x74,0x72,0x69,0x61,0x6c])][_0x2718a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1527c7[_0x2718a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x407526/0x3e8:0x69e96100;return _0x1527c7[_0x2718a6([0x65,0x78,0x70])]<_0x49e417;}())?_0x2718a6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0xed1731=_0x1527c7[_0x2718a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xed1731||0x0==_0xed1731[_0x2718a6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x72662d}=new URL(window[_0x2718a6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xed1731[_0x2718a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x72662d))return!0x0;const _0x1ed365=_0x72662d[_0x2718a6([0x73,0x70,0x6c,0x69,0x74])](_0x2718a6([0x2e]));return _0xed1731[_0x2718a6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5f4608=>_0x5f4608[_0x2718a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2718a6([0x2a])))[_0x2718a6([0x6d,0x61,0x70])](_0x2efdd1=>_0x2efdd1[_0x2718a6([0x73,0x70,0x6c,0x69,0x74])](_0x2718a6([0x2e])))[_0x2718a6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4540a7=>_0x4540a7[_0x2718a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ed365[_0x2718a6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2718a6([0x6d,0x61,0x70])](_0x29f1c0=>Array(_0x1ed365[_0x2718a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x29f1c0[_0x2718a6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2718a6([0x66,0x69,0x6c,0x6c])](_0x29f1c0[0x0]===_0x2718a6([0x2a])?_0x2718a6([0x2a]):'')[_0x2718a6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x29f1c0))[_0x2718a6([0x73,0x6f,0x6d,0x65])](_0x74e4de=>_0x1ed365[_0x2718a6([0x65,0x76,0x65,0x72,0x79])]((_0x258336,_0x46e78a)=>_0x74e4de[_0x46e78a]===_0x258336||_0x74e4de[_0x46e78a]===_0x2718a6([0x2a])));}())?(_0x1527c7[_0x2718a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2718a6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2a3d82=function(_0x359194){const _0x5a5989=new window[(_0x2718a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f878e=>setTimeout(_0x1f878e,0x93ecc)),_0x51c273=_0x2a2799[_0x2718a6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2718a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1db9a5=>{let _0x162b25=0x0;_0x29b707[_0x2718a6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2718a6([0x6f,0x6e])](_0x2718a6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3e0c66,_0x4d8531)=>{_0x4d8531[0x0][_0x2718a6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x162b25++,0x5e8==_0x162b25&&(_0x1db9a5(),_0x3e0c66[_0x2718a6([0x6f,0x66,0x66])]());});})),_0x4bfc18=[_0x5a5989,_0x51c273];return window[_0x2718a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2718a6([0x72,0x61,0x63,0x65])](_0x4bfc18)[_0x2718a6([0x74,0x68,0x65,0x6e])](()=>_0x359194);}(_0x2718a6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x2a3d82&&_0x323cbe)return new window[(_0x2718a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a9c7f,_0x361ff5)=>{_0x2a3d82[_0x2718a6([0x74,0x68,0x65,0x6e])](_0x3a9c7f,_0x361ff5),_0x323cbe[_0x2718a6([0x74,0x68,0x65,0x6e])](_0x5804c6=>{_0x5804c6!=_0x2718a6([0x56,0x61,0x6c,0x69,0x64])&&_0x3a9c7f(_0x5804c6);},_0x361ff5);});return _0x2a3d82||_0x323cbe||_0x2718a6([0x56,0x61,0x6c,0x69,0x64]);}())):_0x2718a6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2718a6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2718a6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2718a6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x39410b(_0x56c1a0){return _0x56c1a0[_0x2718a6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2718a6([0x65,0x79]))?JSON[_0x2718a6([0x70,0x61,0x72,0x73,0x65])](_0x52700d(_0x56c1a0)):null;}function _0x52700d(_0x48b5ed){return window[_0x2718a6([0x61,0x74,0x6f,0x62])](_0x48b5ed[_0x2718a6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2718a6([0x2b]))[_0x2718a6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2718a6([0x2f])));}function _0x531b6a(_0x6ed97b){let _0x639b63=0x1505;function _0x2c0253(_0x533ca5){for(let _0x351962=0x0;_0x351962<_0x533ca5[_0x2718a6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x351962++){const _0x12c429=_0x533ca5[_0x2718a6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x351962);_0x639b63=(_0x639b63<<0x5)+_0x639b63+_0x12c429,_0x639b63&=_0x639b63;}}return function _0x47256d(_0x37327e){Array[_0x2718a6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x37327e)?_0x37327e[_0x2718a6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47256d):_0x37327e&&typeof _0x37327e==_0x2718a6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2718a6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x37327e)[_0x2718a6([0x73,0x6f,0x72,0x74])]()[_0x2718a6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x31e21f,_0xfa30ec])=>{_0x2c0253(_0x31e21f),_0x47256d(_0xfa30ec);}):_0x2c0253(window[_0x2718a6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x37327e));}(_0x6ed97b),_0x639b63>>>0x0;}function _0x3bf42c(_0x14988b){return _0x14988b[_0x2718a6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2718a6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2718a6([0x30]));}function _0x179af9(_0x3b9bd7){return _0x3b9bd7[_0x2718a6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2718a6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2718a6([0x6a,0x6f,0x69,0x6e])]('');}function _0x13b2c0(){}function _0x2718a6(_0x44a5a5){return _0x44a5a5['map'](_0x2538dd=>String['fromCharCode'](_0x2538dd))['join']('');}!function(_0x35b27a){const _0x46d351=(function(){const _0x4a5249=window[_0x2718a6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2718a6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2718a6([0x6e,0x6f,0x77])]())[_0x2718a6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2718a6([0x2e]),'');let _0x5b9aca=_0x2718a6([0x75]);for(let _0x485461=0x0;_0x485461<_0x4a5249[_0x2718a6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x485461+=0x2){let _0x52bcee=window[_0x2718a6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a5249[_0x2718a6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x485461,_0x485461+0x2));_0x52bcee>=_0x1dbc26[_0x2718a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x52bcee-=_0x1dbc26[_0x2718a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5b9aca+=_0x1dbc26[_0x52bcee];}return _0x5b9aca;}());_0x29b707[_0x46d351]=_0x2718a6([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x35b27a,_0x35b27a!=_0x2718a6([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x2a2799,_0x29b707[_0x2718a6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2718a6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x13b2c0,_0x29b707[_0x2718a6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2718a6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x13b2c0,_0x29b707[_0x2718a6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2718a6([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x2655da);}class FootnotesClipboard extends Plugin{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[FootnotesEditing,ClipboardPipeline];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x37b037}=this,{plugins:_0x1460ec,model:_0x46df45}=_0x37b037,_0x272416=_0x1460ec['get'](ClipboardPipeline),_0x44fb80=_0x1460ec['get'](FootnotesTracker);this['listenTo'](_0x272416,'outputTransformation',(_0x5efc12,_0x5c9e4e)=>{const _0xcce1ed=pickAllFootnotesRefsIdsFromRange(_0x46df45['createRangeIn'](_0x5c9e4e['content']));if(!_0xcce1ed['length'])return;const _0x553b7d=_0x44fb80['getFootnotes'](),_0xfa0587=_0xcce1ed['reduce']((_0x2ecc61,_0x37035e)=>{const _0x14ef81=_0x553b7d['find'](_0x460fc3=>_0x460fc3['id']===_0x37035e);if(_0x14ef81){const _0x25f4bd=_0x37b037['data']['toView'](_0x14ef81['definition'],{'isClipboardPipeline':!0x0}),_0x46d7a9=_0x37b037['data']['htmlProcessor']['toData'](_0x25f4bd);_0x2ecc61[_0x14ef81['id']]=_0x46d7a9;}return _0x2ecc61;},Object['create'](null));_0x5c9e4e['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0xfa0587));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x394bcb}=this,{model:_0x18f537,plugins:_0x5884d3}=_0x394bcb,{view:_0x4e4fdf}=_0x394bcb['editing'],_0x272c75=_0x5884d3['get'](ClipboardPipeline),_0x417e26=_0x5884d3['get'](FootnotesTracker),_0x4d0975=_0x394bcb['config']['get']('footnotes.multiBlock');let _0x2813c4=null;this['listenTo'](_0x4e4fdf['document'],'clipboardInput',(_0x1696cf,_0x416568)=>{const _0x14846b=_0x416568['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x2813c4=_0x14846b?JSON['parse'](_0x14846b):null;}),this['listenTo'](_0x272c75,'contentInsertion',(_0x40e56a,_0x1277ef)=>{const _0x129b9b=_0x1277ef['sourceEditorId']===this['editor']['id'];_0x129b9b&&'drop'===_0x1277ef['method']||_0x18f537['change'](_0x35efca=>{let _0x4f64ea=_0x417e26['getFootnotesDefinitionsObjectElement']();const _0x5caf51=!!_0x4f64ea&&Array['from'](_0x18f537['document']['selection']['getSelectedBlocks']())['includes'](_0x4f64ea);if(!_0x2813c4&&areThereFootnotesRefsInRange(_0x18f537['createRangeIn'](_0x1277ef['content']))&&(_0x2813c4=extractFootnotesDefinitionsFromContent(_0x35efca,_0x1277ef['content'])),(_0x4f64ea&&!_0x5caf51||!_0x4f64ea&&!_0x2813c4)&&removeFootnoteDefinitionsFromFragment(_0x35efca,_0x1277ef['content']),!_0x2813c4)return;const {selection:_0x254888}=_0x18f537['document'],_0x38e6c6=_0x254888['getFirstRange']()['root'];_0x4f64ea&&!_0x5caf51||(_0x4f64ea=findFootnoteDefinitionsElementInFragment(_0x35efca,_0x1277ef['content']),_0x4f64ea||=_0x417e26['_insertEmptyFootnotesDefinitionsContainer'](_0x35efca,_0x38e6c6));const _0x5f5e4=Array['from'](_0x254888['getRanges']())['flatMap'](pickAllFootnotesRefsIdsFromRange),_0x2aa92=regenerateFootnoteIdsInFragment(_0x35efca,_0x1277ef['content'],_0x6af887=>{if(!_0x129b9b)return!0x0;return!!_0x417e26['getFootnote'](_0x6af887)&&!_0x5f5e4['includes'](_0x6af887);});for(const [_0x2c2024,_0x5bda23]of Object['entries'](_0x2813c4)){const _0x4e6219=_0x2aa92[_0x2c2024]||_0x2c2024;let _0x1174e8;if('string'!=typeof _0x5bda23)_0x1174e8=_0x5bda23,_0x4e6219!==_0x2c2024&&_0x35efca['setAttribute']('footnoteId',_0x4e6219,_0x1174e8);else{_0x1174e8=_0x35efca['createElement']('footnoteDefinition',{'footnoteId':_0x4e6219});const _0x519d3c=_0x394bcb['data']['htmlProcessor']['toView'](_0x5bda23);let _0x396335;if(_0x4d0975)_0x396335=_0x394bcb['data']['toModel'](_0x519d3c,_0x1174e8);else{_0x396335=_0x35efca['createElement']('footnoteInlineContent');const _0x5682f1=_0x394bcb['data']['toModel'](_0x519d3c,_0x396335);_0x35efca['insert'](_0x5682f1,_0x396335);}_0x35efca['append'](_0x396335,_0x1174e8);}_0x35efca['insert'](_0x1174e8,_0x4f64ea,'end');}_0x2813c4=null;});});}}function removeFootnoteDefinitionsFromFragment(_0x4c4850,_0xe34193){const _0x4d2ee8=[];for(const {item:_0x213160}of _0x4c4850['createRangeIn'](_0xe34193))_0x213160['is']('element','footnotesDefinitions')&&_0x4d2ee8['push'](_0x213160);for(const _0x53bc3a of _0x4d2ee8)_0x4c4850['remove'](_0x53bc3a);}function findFootnoteDefinitionsElementInFragment(_0xd1b9a6,_0x1378c2){for(const {item:_0x440eb8}of _0xd1b9a6['createRangeIn'](_0x1378c2))if(_0x440eb8['is']('element','footnotesDefinitions'))return _0x440eb8;return null;}function pickAllFootnotesRefsIdsFromRange(_0x412d73){const _0x212305=new Set();for(const {item:_0x1de125}of _0x412d73)_0x1de125['is']('element','footnoteRef')&&_0x212305['add'](_0x1de125['getAttribute']('footnoteId'));return Array['from'](_0x212305);}function areThereFootnotesRefsInRange(_0x310f92){for(const {item:_0x251b35}of _0x310f92)if(_0x251b35['is']('element','footnoteRef'))return!0x0;return!0x1;}function extractFootnotesDefinitionsFromContent(_0x8bb322,_0x583abf){const _0x27ce03=findFootnoteDefinitionsElementInFragment(_0x8bb322,_0x583abf);if(!_0x27ce03)return null;const _0x4f1d7a=Object['create'](null);for(const _0x4840fc of _0x27ce03['getChildren']())_0x4840fc['is']('element','footnoteDefinition')&&_0x4840fc['hasAttribute']('footnoteId')&&(_0x4f1d7a[_0x4840fc['getAttribute']('footnoteId')]=_0x8bb322['cloneElement'](_0x4840fc,!0x0));return Object['keys'](_0x4f1d7a)['length']?_0x4f1d7a:null;}function regenerateFootnoteIdsInFragment(_0x217068,_0x2ccce5,_0x36ab48){const _0x53aeb3=Object['create'](null);for(const {item:_0x112dcd}of _0x217068['createRangeIn'](_0x2ccce5))if(_0x112dcd['is']('element','footnoteRef')){const _0x1eb19c=_0x112dcd['getAttribute']('footnoteId');if(!_0x36ab48(_0x1eb19c))continue;_0x53aeb3[_0x1eb19c]||(_0x53aeb3[_0x1eb19c]=uid()),_0x217068['setAttribute']('footnoteId',_0x53aeb3[_0x1eb19c],_0x112dcd);}return _0x53aeb3;}class FootnotesUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3da5c6}=this,{componentFactory:_0x687ffa}=_0x3da5c6['ui'];_0x687ffa['add']('insertFootnote',getInsertFootnoteButtonCreator(_0x3da5c6,ButtonView)),_0x687ffa['add']('menuBar:insertFootnote',getInsertFootnoteButtonCreator(_0x3da5c6,MenuBarMenuListItemButtonView)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xb80faf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xd0cf92;for(const _0x28be3d in _0xb80faf){const _0x50acad=_0x28be3d,_0x4dcbc1=_0xb80faf[_0x50acad];if('footnotesLicenseKeyValid'==_0x4dcbc1||'footnotesLicenseKeyInvalid'==_0x4dcbc1||'footnotesLicenseKeyExpired'==_0x4dcbc1||'footnotesLicenseKeyDomainLimit'==_0x4dcbc1||'footnotesLicenseKeyNotAllowed'==_0x4dcbc1||'footnotesLicenseKeyEvaluationLimit'==_0x4dcbc1||'footnotesLicenseKeyUsageLimit'==_0x4dcbc1){delete _0xb80faf[_0x50acad],_0xd0cf92=_0x4dcbc1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xd0cf92&&_0xb80faf['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xd0cf92&&_0xb80faf['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xd0cf92&&_0xb80faf['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xd0cf92&&_0xb80faf['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xd0cf92&&_0xb80faf['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0xd0cf92&&_0xb80faf['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getInsertFootnoteButtonCreator(_0x51ca61,_0x4c24ab){const _0x1d6521=_0x51ca61['commands']['get']('insertFootnote');return _0x337afb=>{const {t:t}=_0x337afb,_0x4b773d=new _0x4c24ab(_0x337afb),_0xa276be=_0x4b773d instanceof MenuBarMenuListItemButtonView;return _0x4b773d['bind']('isEnabled')['to'](_0x1d6521,'isEnabled'),_0x4b773d['set']({'label':t(_0xa276be?'Footnote':'Insert\x20footnote'),'icon':IconFootnote,'tooltip':!0x0}),_0x4b773d['on']('execute',()=>{_0x1d6521['execute'](),_0x51ca61['editing']['view']['focus']();}),_0x4b773d;};}class Footnotes extends Plugin{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[FootnotesEditing,FootnotesClipboard,FootnotesUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const FOOTNOTES_DEFINITIONS_STYLES=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class FootnotesStyleCommand extends Command{['refresh'](){const {editor:_0x1aa421}=this,_0x5a0424=_0x1aa421['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5a0424,this['value']=_0x5a0424?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x7dadd9}){const {editor:_0x9821ad}=this,_0x5614a4=_0x9821ad['plugins']['get'](FootnotesTracker),_0x2b4ee3=_0x5614a4['getFootnotesDefinitionsObjectElement']();_0x2b4ee3&&FOOTNOTES_DEFINITIONS_STYLES['includes'](_0x7dadd9)&&_0x9821ad['model']['change'](_0x5e0a2d=>{_0x5e0a2d['setAttribute']('footnotesListStyle',_0x7dadd9,_0x2b4ee3),_0x5614a4['_updateFootnotesCounters'](_0x5e0a2d);});}}class FootnotesStartCommand extends Command{['refresh'](){const {editor:_0xd8bfcf}=this,_0x3f9db8=_0xd8bfcf['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3f9db8,this['value']=_0x3f9db8?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x1704e4}){const {editor:_0x3a76a0}=this,_0x32b35b=_0x3a76a0['plugins']['get'](FootnotesTracker),_0x118619=_0x32b35b['getFootnotesDefinitionsObjectElement']();_0x118619&&Number['isInteger'](_0x1704e4)&&_0x3a76a0['model']['change'](_0x478a8b=>{_0x478a8b['setAttribute']('footnotesListStart',_0x1704e4,_0x118619),_0x32b35b['_updateFootnotesCounters'](_0x478a8b);});}}class FootnotesPropertiesEditing extends Plugin{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[FootnotesEditing,FootnotesTracker];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x48dd3e}=this;_0x48dd3e['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x48dd3e['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x48dd3e['commands']['add']('footnotesStyle',new FootnotesStyleCommand(_0x48dd3e)),_0x48dd3e['commands']['add']('footnotesStart',new FootnotesStartCommand(_0x48dd3e)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x58d856}=this,{schema:_0x3f5598}=_0x58d856['model'];_0x3f5598['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x2d5f2d}=this,{conversion:_0x87f0ef,model:_0x35e0ff}=_0x2d5f2d,{schema:_0x5b24d9}=_0x35e0ff;_0x87f0ef['for']('upcast')['add'](_0x50e7f1=>{_0x50e7f1['on']('element:ol',(_0x30481a,_0x12aee,_0x1a81fc)=>{const _0x4c4f3a=_0x12aee['viewItem'],_0x14c8d6=_0x12aee['modelCursor']?.['parent'];_0x4c4f3a['hasClass']('footnotes-list')&&_0x14c8d6?.['is']('element','footnotesDefinitions')&&(upcastFootnotesListStart(_0x4c4f3a,_0x14c8d6,_0x1a81fc,_0x5b24d9),upcastFootnotesListStyle(_0x4c4f3a,_0x14c8d6,_0x1a81fc,_0x5b24d9));});}),_0x87f0ef['for']('downcast')['add'](_0x4f5843=>{_0x4f5843['on']('attribute:footnotesListStart:footnotesDefinitions',downcastFootnotesListStart()),_0x4f5843['on']('attribute:footnotesListStyle:footnotesDefinitions',downcastFootnotesListStyle());});}['_definePostfixer'](){const {editor:_0x32c863}=this,{model:_0xdf7449}=_0x32c863,_0x26606f=_0x32c863['plugins']['get'](FootnotesTracker),_0x313603=this['_getDefaultListStyle'](),_0x24fa50=this['_getDefaultStartIndex']();_0xdf7449['document']['registerPostFixer'](_0x92718a=>{const _0x4401aa=_0xdf7449['document']['differ']['getChanges']();let _0x5ce14e=!0x1;for(const _0x1b5425 of _0x4401aa){if('insert'!==_0x1b5425['type']||'$text'===_0x1b5425['name'])continue;const _0x4d2e6c=_0xdf7449['createRangeOn'](_0x1b5425['position']['nodeAfter']);for(const _0x545f10 of _0x4d2e6c['getItems']())_0x545f10['is']('element','footnotesDefinitions')&&(!_0x545f10['hasAttribute']('footnotesListStart')&&_0xdf7449['schema']['checkAttribute'](_0x545f10,'footnotesListStart')&&(_0x92718a['setAttribute']('footnotesListStart',_0x24fa50,_0x545f10),_0x5ce14e=!0x0),!_0x545f10['hasAttribute']('footnotesListStyle')&&_0xdf7449['schema']['checkAttribute'](_0x545f10,'footnotesListStyle')&&(_0x92718a['setAttribute']('footnotesListStyle',_0x313603,_0x545f10),_0x5ce14e=!0x0));}return _0x5ce14e&&_0x26606f['_updateFootnotesCounters'](_0x92718a),_0x5ce14e;});}['_defineFormatter'](){const {editor:_0x55c5f8}=this;_0x55c5f8['plugins']['get'](FootnotesTracker)['setFootnoteFormatter'](_0x150a07=>this['_formatFootnoteListValue'](_0x150a07));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x4ed8e0,value:_0x56b379,digits:_0x40511e}){const _0x10c1a2=_0x4ed8e0['getAttribute']('footnotesListStyle'),_0x554e78=_0x4ed8e0['getAttribute']('footnotesListStart'),_0x146bc0=Math['floor'](_0x56b379)+(_0x554e78??0x1)-0x1;switch(_0x10c1a2){case'decimal-leading-zero':return formatDecimalLeadingZero(_0x146bc0,Math['max'](0x2,_0x40511e));case'lower-alpha':case'lower-latin':return toLatin(_0x146bc0,!0x1);case'upper-alpha':case'upper-latin':return toLatin(_0x146bc0,!0x0);case'lower-roman':return toRoman(_0x146bc0,!0x1);case'upper-roman':return toRoman(_0x146bc0,!0x0);default:return String(_0x146bc0);}}}function upcastFootnotesListStart(_0x2c5b55,_0x30dccc,_0xd07b30,_0x309a25){if(!_0x309a25['checkAttribute'](_0x30dccc,'footnotesListStart'))return;let _0x169a57=0x1;const _0x413dcf=_0xd07b30['consumable']['consume'](_0x2c5b55,{'attributes':'start'});if(_0x413dcf){const _0x5ce3a4=Number['parseInt'](_0x2c5b55['getAttribute']('start'),0xa);Number['isNaN'](_0x5ce3a4)||(_0x169a57=_0x5ce3a4);}!_0x413dcf&&_0x30dccc['hasAttribute']('footnotesListStart')||_0xd07b30['writer']['setAttribute']('footnotesListStart',_0x169a57,_0x30dccc);}function upcastFootnotesListStyle(_0x3eedec,_0x2c4eb7,_0x3472ac,_0x3a7719){if(!_0x3a7719['checkAttribute'](_0x2c4eb7,'footnotesListStyle'))return;let _0x58c98d='decimal',_0x2a7786=!0x1;if(_0x3472ac['consumable']['consume'](_0x3eedec,{'attributes':'type'})){const _0x5e4d36={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x3eedec['getAttribute']('type')];_0x5e4d36&&(_0x58c98d=_0x5e4d36),_0x2a7786=!0x0;}_0x3472ac['consumable']['consume'](_0x3eedec,{'styles':'list-style-type'})&&(_0x58c98d=normalizeFootnotesListStyle(_0x3eedec['getStyle']('list-style-type')),_0x2a7786=!0x0),!_0x2a7786&&_0x2c4eb7['hasAttribute']('footnotesListStyle')||_0x3472ac['writer']['setAttribute']('footnotesListStyle',_0x58c98d,_0x2c4eb7);}function normalizeFootnotesListStyle(_0x294600){switch(_0x294600){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x294600;}}function downcastFootnotesListStart(){return(_0x2f72bf,_0x12ec98,_0x5d0efb)=>{if(!_0x5d0efb['consumable']['consume'](_0x12ec98['item'],_0x2f72bf['name']))return;const _0x2975b0=getOlElementFromFootnotesDefinitions(_0x12ec98['item'],_0x5d0efb['mapper']),{attributeNewValue:_0x2cc719}=_0x12ec98;null==_0x2cc719||0x1===_0x2cc719?_0x5d0efb['writer']['removeAttribute']('start',_0x2975b0):_0x5d0efb['writer']['setAttribute']('start',String(_0x2cc719),_0x2975b0);};}function downcastFootnotesListStyle(){return(_0x2d660b,_0x50f26c,_0x22247b)=>{if(!_0x22247b['consumable']['consume'](_0x50f26c['item'],_0x2d660b['name']))return;const _0x1d1242=getOlElementFromFootnotesDefinitions(_0x50f26c['item'],_0x22247b['mapper']),{attributeNewValue:_0x3bf155}=_0x50f26c;_0x3bf155&&'decimal'!==_0x3bf155?_0x22247b['writer']['setStyle']('list-style-type',_0x3bf155,_0x1d1242):_0x22247b['writer']['removeStyle']('list-style-type',_0x1d1242);};}function getOlElementFromFootnotesDefinitions(_0x2efcfb,_0x3ce800){const _0x1b5c8a=_0x3ce800['toViewElement'](_0x2efcfb);return Array['from'](_0x1b5c8a['getChildren']())['find'](_0xe0b83c=>_0xe0b83c['is']('element','ol')&&_0xe0b83c['hasClass']('footnotes-list'));}function formatDecimalLeadingZero(_0x53e751,_0x4fb1b){return String(_0x53e751)['padStart'](_0x4fb1b,'0');}function toLatin(_0x4ecf4c,_0x51bfbf){let _0x456047='',_0x40570b=_0x4ecf4c;for(;_0x40570b>0x0;){const _0x44a3aa=(_0x40570b-0x1)%0x1a;_0x456047=String['fromCharCode'](0x61+_0x44a3aa)+_0x456047,_0x40570b=Math['floor']((_0x40570b-0x1)/0x1a);}return _0x51bfbf?_0x456047['toUpperCase']():_0x456047;}const ROMAN_MAP=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function toRoman(_0x2d70f9,_0x2510f7){let _0x2ba128='',_0x15283a=_0x2d70f9;for(const {value:_0x50851f,numeral:_0x56e8ea}of ROMAN_MAP)for(;_0x15283a>=_0x50851f;)_0x2ba128+=_0x56e8ea,_0x15283a-=_0x50851f;return _0x2510f7?_0x2ba128:_0x2ba128['toLowerCase']();}class FootnotesDefinitionsPropertiesView extends View{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new FocusTracker();['keystrokes']=new KeystrokeHandler();['focusables']=new ViewCollection();['focusCycler'];constructor(_0x1fc5eb,{styleButtonViews:_0x21af49,styleGridAriaLabel:_0x302092}){super(_0x1fc5eb),(this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x21af49,_0x302092),[this['startIndexFieldView'],this['additionalProperties']]=this['_appendAdditionalPropertiesCollapsibleView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-footnotes-definitions-properties']},'children':this['children']}));}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']);for(const _0x1c7a96 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x1c7a96['element']);addKeyboardHandlingForGrid({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x347e1e['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 _0x497b45=_0x5e0d5c=>_0x5e0d5c['stopPropagation']();this['keystrokes']['set']('arrowright',_0x497b45),this['keystrokes']['set']('arrowleft',_0x497b45),this['keystrokes']['set']('arrowup',_0x497b45),this['keystrokes']['set']('arrowdown',_0x497b45);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x340d6c,_0x356321){const _0x3bf701=new View(this['locale']);return _0x3bf701['children']=_0x3bf701['createCollection'](),_0x3bf701['children']['addMany'](_0x340d6c),_0x3bf701['setTemplate']({'tag':'div','attributes':{'aria-label':_0x356321,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3bf701['children']}),_0x3bf701['children']['delegate']('execute')['to'](this),_0x3bf701['focus']=function(){for(const _0x2d3879 of this['children'])if(_0x2d3879 instanceof ButtonView&&_0x2d3879['isOn'])return void _0x2d3879['focus']();this['children']['first']['focus']();},_0x3bf701['focusTracker']=new FocusTracker(),_0x3bf701['keystrokes']=new KeystrokeHandler(),_0x3bf701['render'](),_0x3bf701['keystrokes']['listenTo'](_0x3bf701['element']),this['children']['add'](_0x3bf701),_0x3bf701;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x29711a=this['_createStartIndexPropertyView'](),_0x14d00b=[_0x29711a],_0x5d1d99=new CollapsibleView(this['locale'],_0x14d00b);return _0x5d1d99['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x5d1d99['buttonView']['bind']('isEnabled')['toMany'](_0x14d00b,'isEnabled',(..._0x365017)=>_0x365017['some'](_0x458143=>_0x458143)),_0x5d1d99['buttonView']['on']('change:isEnabled',(_0x56e3f3,_0x2d35be,_0x3bbe02)=>{_0x3bbe02||(_0x5d1d99['isCollapsed']=!0x0);}),this['children']['add'](_0x5d1d99),[_0x29711a,_0x5d1d99];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x405c84=new LabeledFieldView(this['locale'],createLabeledInputNumber);return _0x405c84['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x405c84['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x405c84['fieldView']['on']('input',()=>{const _0x4a0670=_0x405c84['fieldView']['element'],_0x4cc7c=_0x4a0670['valueAsNumber'];Number['isNaN'](_0x4cc7c)?_0x405c84['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x4a0670['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x4cc7c}):_0x405c84['errorText']=t(_0x4cc7c<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x405c84;}}class FootnotesPropertiesUI extends Plugin{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[ContextualBalloon,WidgetToolbarRepository];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x184756}=this,{componentFactory:_0x69c704}=_0x184756['ui'];_0x184756['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x69c704['add']('footnotesStyle',getFootnotesStyleDropdownViewCreator(_0x184756));}['afterInit'](){const {editor:_0x18ed28}=this,{t:t}=_0x18ed28['locale'],_0xa7735a=_0x18ed28['plugins']['get'](WidgetToolbarRepository),{defaultPositions:_0x391695}=BalloonPanelView;_0xa7735a['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x18ed28['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x50053a=>{let _0xc6f414=_0x50053a['getFirstPosition']()?.['parent'];return _0xc6f414?.['is']('$text')&&(_0xc6f414=_0xc6f414['parent']),_0xc6f414?.['is']('element')?_0xc6f414['findAncestor'](isFootnotesDefinitionsWidget):null;},'positions':[_0x391695['southArrowNorth'],_0x391695['southArrowNorthMiddleWest'],_0x391695['southArrowNorthMiddleEast'],_0x391695['southArrowNorthWest'],_0x391695['southArrowNorthEast'],_0x391695['northArrowSouth'],_0x391695['northArrowSouthMiddleWest'],_0x391695['northArrowSouthMiddleEast'],_0x391695['northArrowSouthWest'],_0x391695['northArrowSouthEast'],_0x391695['viewportStickyNorth']]});}}function getFootnotesStyleDropdownViewCreator(_0x5e70d1){return _0x246548=>{const {t:t}=_0x246548,_0x2c37e4=_0x5e70d1['commands']['get']('footnotesStyle'),_0x51677a=createDropdown(_0x246548),{buttonView:_0x2ced9e}=_0x51677a;return _0x51677a['class']='ck-footnotes-styles-dropdown',_0x51677a['bind']('isEnabled')['to'](_0x2c37e4,'isEnabled'),_0x2ced9e['set']({'label':t('Footnotes\x20style'),'icon':IconFootnote,'tooltip':!0x0}),_0x51677a['once']('change:isOpen',()=>{const _0x2d8361=createFootnotesDefinitionsPropertiesView({'editor':_0x5e70d1,'dropdownView':_0x51677a});_0x51677a['panelView']['children']['add'](_0x2d8361);}),_0x51677a;};}function createFootnotesDefinitionsPropertiesView({editor:_0x2ee1f8,dropdownView:_0x3a6978}){const {t:t}=_0x2ee1f8['locale'],_0x31f343=t('Footnotes\x20definitions\x20styles'),_0x5b338a=createFootnotesDefinitionStyleButtons(_0x2ee1f8),_0x4f221d=new FootnotesDefinitionsPropertiesView(_0x2ee1f8['locale'],{'styleGridAriaLabel':_0x31f343,'styleButtonViews':_0x5b338a}),_0x3df224=_0x2ee1f8['commands']['get']('footnotesStart');return _0x4f221d['startIndexFieldView']['bind']('isEnabled')['to'](_0x3df224),_0x4f221d['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x3df224),_0x4f221d['on']('footnotesListStart',(_0x53e374,_0x4f8cdb)=>{_0x2ee1f8['execute']('footnotesStart',{'value':_0x4f8cdb['startIndex']});}),_0x4f221d['delegate']('execute')['to'](_0x3a6978),_0x4f221d;}function createFootnotesDefinitionStyleButtons(_0xf639a7){const t=_0xf639a7['locale']['t'];return[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':IconListStyleDecimal},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':IconListStyleDecimalLeadingZero},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':IconListStyleLowerRoman},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':IconListStyleUpperRoman},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':IconListStyleLowerLatin},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':IconListStyleUpperLatin}]['map'](getFootnoteStyleButtonCreator(_0xf639a7));}function getFootnoteStyleButtonCreator(_0x1aa402){const _0x1a4241=_0x1aa402['locale'];return({label:_0x5dd627,icon:_0x4dafde,tooltip:_0x4df646,style:_0x1edc08})=>{const _0x53f65d=_0x1aa402['commands']['get']('footnotesStyle'),_0x4c2b8d=new ButtonView(_0x1a4241);return _0x4c2b8d['set']({'label':_0x5dd627,'icon':_0x4dafde,'tooltip':_0x4df646}),_0x4c2b8d['bind']('isOn')['to'](_0x53f65d,'value',_0xcfa38f=>_0xcfa38f===_0x1edc08),_0x4c2b8d['bind']('isEnabled')['to'](_0x53f65d,'isEnabled'),_0x4c2b8d['on']('execute',()=>{_0x1aa402['execute']('footnotesStyle',{'value':_0x1edc08}),_0x1aa402['editing']['view']['focus']();}),_0x4c2b8d;};}class FootnotesProperties extends Plugin{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[FootnotesPropertiesEditing,FootnotesPropertiesUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const COPY_FORMAT_COMMAND_NAME='copyFormat',PASTE_FORMAT_COMMAND_NAME='pasteFormat',CURSOR_ACTIVE_CSS_CLASS='ck-format-painter-active';class CopyFormatCommand extends Command{constructor(_0x10e2fd){super(_0x10e2fd),this['value']=void 0x0,this['on']('change:isEnabled',(_0x5a338d,_0xa563e,_0x5eac86)=>{_0x5eac86||this['reset']();}),this['on']('change:value',()=>_0x10e2fd['commands']['get'](PASTE_FORMAT_COMMAND_NAME)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0x28792f=this['editor']['model'],_0x4a1f2d=_0x28792f['document']['selection'];return Object['fromEntries'](Array['from'](_0x4a1f2d['getAttributes']())['filter'](([_0x2cd6c7])=>_0x28792f['schema']['getAttributeProperties'](_0x2cd6c7)['isFormatting']));}}class PasteFormatCommand extends Command{constructor(_0x2f4720){super(_0x2f4720),this['_removeFormatCommand']=new RemoveFormatCommandAlias(_0x2f4720);}['execute'](_0x16e395={}){const _0x37f4f1=this['editor']['model'],_0x5aebbe=_0x37f4f1['document']['selection'],_0x1fe3dd=Array['from'](_0x5aebbe['getRanges']()),_0x4c5562=_0x5aebbe['isCollapsed']?[this['_createRangeOnEntireWord'](_0x37f4f1,_0x5aebbe)]:_0x1fe3dd;_0x37f4f1['change'](_0x1ff93b=>{_0x1ff93b['setSelection'](_0x4c5562),this['_removeFormatCommand']['execute']();for(const _0x11a3f9 in _0x16e395)for(const _0x1931d9 of _0x37f4f1['schema']['getValidRanges'](_0x4c5562,_0x11a3f9))_0x1ff93b['setAttribute'](_0x11a3f9,_0x16e395[_0x11a3f9],_0x1931d9);_0x1ff93b['setSelection'](_0x1fe3dd);});}['_createRangeOnEntireWord'](_0x1ebce4,_0x54a914){const _0x1cbec9=_0x1ebce4['createSelection'](_0x54a914);_0x1ebce4['modifySelection'](_0x1cbec9,{'unit':'word','direction':'backward'});const _0x295038=_0x1cbec9['getFirstPosition']();_0x1ebce4['modifySelection'](_0x1cbec9,{'unit':'word','direction':'forward'});const _0x1ffe0f=_0x1cbec9['getLastPosition']();return _0x1ebce4['createRange'](_0x295038,_0x1ffe0f);}}class RemoveFormatCommandAlias extends Command{['execute'](){const _0x36f5f7=this['editor']['model'],_0x30f9f1=_0x36f5f7['schema'];_0x36f5f7['change'](_0x1d4445=>{for(const _0x319833 of this['_getFormattingItems'](_0x36f5f7['document']['selection'],_0x30f9f1))if(_0x319833['is']('selection')){for(const _0x159b8d of this['_getFormattingAttributes'](_0x319833,_0x30f9f1))_0x1d4445['removeSelectionAttribute'](_0x159b8d);}else{const _0x55de70=_0x1d4445['createRangeOn'](_0x319833);for(const _0x5e2151 of this['_getFormattingAttributes'](_0x319833,_0x30f9f1))_0x1d4445['removeAttribute'](_0x5e2151,_0x55de70);}});}*['_getFormattingItems'](_0x2cca1c,_0x3d939d){const _0xbfe77e=_0x4413fc=>!!first(this['_getFormattingAttributes'](_0x4413fc,_0x3d939d));for(const _0x5c6548 of _0x2cca1c['getRanges']())for(const _0xd858af of _0x5c6548['getItems']())!_0x3d939d['isBlock'](_0xd858af)&&_0xbfe77e(_0xd858af)&&(yield _0xd858af);for(const _0x2ab335 of _0x2cca1c['getSelectedBlocks']())_0xbfe77e(_0x2ab335)&&(yield _0x2ab335);_0xbfe77e(_0x2cca1c)&&(yield _0x2cca1c);}*['_getFormattingAttributes'](_0x52a752,_0x24149a){for(const [_0x3e974b]of _0x52a752['getAttributes']()){const _0x594cde=_0x24149a['getAttributeProperties'](_0x3e974b);_0x594cde&&_0x594cde['isFormatting']&&(yield _0x3e974b);}}}class FormatPainterEditing extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1d5163=this['editor'];_0x1d5163['commands']['add'](COPY_FORMAT_COMMAND_NAME,new CopyFormatCommand(_0x1d5163)),_0x1d5163['commands']['add'](PASTE_FORMAT_COMMAND_NAME,new PasteFormatCommand(_0x1d5163)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x258fcd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x418a76;for(const _0x44d57c in _0x258fcd){const _0x4cd251=_0x44d57c,_0x3a918a=_0x258fcd[_0x4cd251];if('formatPainterLicenseKeyValid'==_0x3a918a||'formatPainterLicenseKeyInvalid'==_0x3a918a||'formatPainterLicenseKeyExpired'==_0x3a918a||'formatPainterLicenseKeyDomainLimit'==_0x3a918a||'formatPainterLicenseKeyNotAllowed'==_0x3a918a||'formatPainterLicenseKeyEvaluationLimit'==_0x3a918a||'formatPainterLicenseKeyUsageLimit'==_0x3a918a){delete _0x258fcd[_0x4cd251],_0x418a76=_0x3a918a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x418a76&&_0x258fcd['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x418a76&&_0x258fcd['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x418a76&&_0x258fcd['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x418a76&&_0x258fcd['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x418a76&&_0x258fcd['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x418a76&&_0x258fcd['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getTranslation$b(_0x1aa763,_0x2c6379){const t=_0x1aa763['t'];switch(_0x2c6379){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 _0x2c6379;}}class FormatPainterUI extends/* #__PURE__ -- @preserve */
DomEmitterMixin(Plugin){static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x524f97=this['editor'];_0x524f97['editing']['view']['addObserver'](ClickObserver),_0x524f97['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':getTranslation$b(_0x524f97['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':getTranslation$b(_0x524f97['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x524f97['ui']['componentFactory']['add']('formatPainter',_0xa1c8c4=>{const _0x1ae243=createDropdown(_0xa1c8c4,SplitButtonView),_0x44395e=_0x524f97['commands']['get'](COPY_FORMAT_COMMAND_NAME);_0x1ae243['buttonView']['set']({'label':getTranslation$b(_0x524f97['locale'],'Paint\x20formatting'),'icon':IconPaintRoller,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x1ae243['class']='ck-format-painter-dropdown',_0x44395e&&(_0x1ae243['bind']('isEnabled')['to'](_0x44395e,'isEnabled'),this['listenTo'](_0x44395e,'change:isEnabled',(_0x151c64,_0x110c2c,_0x1d8a83)=>{_0x1d8a83||this['_finishPainting']();}),_0x1ae243['buttonView']['bind']('isOn')['to'](_0x44395e,'value',_0x4adeeb=>!!_0x4adeeb),this['listenTo'](_0x524f97,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x44395e,'change:value',(_0x460140,_0x32f905,_0x1313da)=>{this['_toggleSpecialCursor'](!!_0x1313da);}));const _0x405b48=new UIModel({'withText':!0x0,'label':getTranslation$b(_0x524f97['locale'],'Continuous\x20painting'),'tooltip':getTranslation$b(_0x524f97['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});addListToDropdown(_0x1ae243,new Collection([{'type':'switchbutton','model':_0x405b48}]),{'role':'menu'});const _0x4a1216=()=>{this['_copyFormatting'](),this['listenTo'](_0x347e1e['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x405b48['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x1ae243,'execute',()=>{_0x405b48['isOn']=!_0x405b48['isOn'];}),this['listenTo'](_0x1ae243['buttonView'],'execute',()=>{_0x524f97['editing']['view']['focus'](),_0x1ae243['buttonView']['isOn']?this['_finishPainting']():_0x4a1216();}),_0x524f97['keystrokes']['set']('Ctrl+Alt+C',(_0x1a1e6c,_0x285d28)=>{_0x4a1216(),_0x405b48['isOn']=!0x0,_0x285d28();},{'priority':'high'}),_0x524f97['keystrokes']['set']('Ctrl+Alt+V',(_0x521e08,_0x40f2b4)=>{_0x1ae243['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x405b48['isOn']||this['_finishPainting'](),_0x40f2b4());},{'priority':'high'}),_0x524f97['keystrokes']['set']('Esc',(_0x42bb97,_0x1a07a5)=>{_0x1ae243['buttonView']['isOn']&&(_0x405b48['isOn']=!0x1,this['_finishPainting'](),_0x1a07a5());}),_0x1ae243;});}['afterInit'](){checkLicense$b(this);}['_toggleSpecialCursor'](_0x4b91ee){this['editor']['editing']['view']['change'](_0x310612=>{for(const _0x21cc8d of this['editor']['editing']['view']['document']['roots'])_0x4b91ee?_0x310612['addClass'](CURSOR_ACTIVE_CSS_CLASS,_0x21cc8d):_0x310612['removeClass'](CURSOR_ACTIVE_CSS_CLASS,_0x21cc8d);});}['_copyFormatting'](){const {editor:_0x33a41d}=this;_0x33a41d['execute'](COPY_FORMAT_COMMAND_NAME),_0x33a41d['ui']['ariaLiveAnnouncer']['announce'](getTranslation$b(_0x33a41d['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x4d7c13}=this,_0xf0bea9=_0x4d7c13['commands']['get'](COPY_FORMAT_COMMAND_NAME)['value'];_0x4d7c13['execute'](PASTE_FORMAT_COMMAND_NAME,_0xf0bea9),_0x4d7c13['ui']['ariaLiveAnnouncer']['announce'](getTranslation$b(_0x4d7c13['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](COPY_FORMAT_COMMAND_NAME)['reset'](),this['stopListening'](_0x347e1e['window']['document'],'mouseup');}}async function checkLicense$b(_0x199668){const _0x16e32f=_0x1ef32b([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]),_0x37997b=window[_0x1ef32b([0x44,0x61,0x74,0x65])][_0x1ef32b([0x6e,0x6f,0x77])](),_0x28b552=_0x199668[_0x1ef32b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2c9de7=new window[(_0x1ef32b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x358083=>{_0x28b552[_0x1ef32b([0x6f,0x6e,0x63,0x65])](_0x1ef32b([0x72,0x65,0x61,0x64,0x79]),_0x358083);}),_0x3b25e4={[_0x1ef32b([0x6b,0x74,0x79])]:_0x1ef32b([0x45,0x43]),[_0x1ef32b([0x75,0x73,0x65])]:_0x1ef32b([0x73,0x69,0x67]),[_0x1ef32b([0x63,0x72,0x76])]:_0x1ef32b([0x50,0x2d,0x32,0x35,0x36]),[_0x1ef32b([0x78])]:_0x1ef32b([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]),[_0x1ef32b([0x79])]:_0x1ef32b([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]),[_0x1ef32b([0x61,0x6c,0x67])]:_0x1ef32b([0x45,0x53,0x32,0x35,0x36])},_0x5a902c=_0x28b552[_0x1ef32b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ef32b([0x67,0x65,0x74])](_0x1ef32b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x3341a3=await(async function(){let _0x2eee46,_0x261add=null,_0xf94cd4=null;try{if(_0x5a902c==_0x1ef32b([0x47,0x50,0x4c]))return _0x1ef32b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2eee46=(function(){const _0x43fff7=_0x5a902c[_0x1ef32b([0x73,0x70,0x6c,0x69,0x74])](_0x1ef32b([0x2e]));if(0x3!=_0x43fff7[_0x1ef32b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x5404b6=_0x43fff7[0x1];return _0x5d53b3(_0x5404b6);function _0x5d53b3(_0x5edc0a){const _0x34697a=_0xb2e828(_0x5edc0a);return _0x34697a&&_0x2e4264()?_0x34697a:null;function _0x2e4264(){const _0x5baed2=_0x34697a[_0x1ef32b([0x6a,0x74,0x69])],_0x325c1e=window[_0x1ef32b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5baed2[_0x1ef32b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5baed2[_0x1ef32b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e91bb={..._0x34697a,[_0x1ef32b([0x6a,0x74,0x69])]:_0x5baed2[_0x1ef32b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5baed2[_0x1ef32b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e91bb[_0x1ef32b([0x76,0x63])],_0x507c27(_0x1e91bb)==_0x325c1e;}}}()),!_0x2eee46)return _0x1ef32b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x2eee46[_0x1ef32b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf94cd4=function(_0x2e5087,_0x3434ef){return new window[(_0x1ef32b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12de4e=>{if(_0x532c8d())return _0x12de4e(_0x1ef32b([0x56,0x61,0x6c,0x69,0x64]));_0x56d09a(),_0x28b552[_0x1ef32b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ef32b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x56ea8a=!0x1;const _0x19a60b=uid();function _0x395677(_0x503adc){return!!_0x503adc&&(typeof _0x503adc===_0x1ef32b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x503adc===_0x1ef32b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x503adc[_0x1ef32b([0x74,0x68,0x65,0x6e])]===_0x1ef32b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x503adc[_0x1ef32b([0x63,0x61,0x74,0x63,0x68])]===_0x1ef32b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x28165b(_0x516b83){_0x3655b0(_0x516b83)[_0x1ef32b([0x74,0x68,0x65,0x6e])](_0x30bb74=>{if(!_0x30bb74||_0x30bb74[_0x1ef32b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ef32b([0x6f,0x6b]))return _0x1ef32b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1dbc2a(_0x507c27(_0x19a60b+_0x3434ef))!=_0x30bb74[_0x1ef32b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ef32b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ef32b([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ef32b([0x74,0x68,0x65,0x6e])](_0x280ccc=>(_0x2dcd41(),_0x280ccc),()=>{const _0x51cb6a=_0x414193();return null==_0x51cb6a?(_0x2dcd41(),_0x1ef32b([0x56,0x61,0x6c,0x69,0x64])):_0x1ef32b(_0x37997b-_0x51cb6a>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ef32b([0x74,0x68,0x65,0x6e])](_0x12de4e)[_0x1ef32b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x12de4e(_0x1ef32b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xad8c4=0x36ee80;function _0x2dcd41(){const _0xdfbe34=_0x1ef32b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1dbc2a(_0x507c27(_0x2e5087)),_0x462c44=_0x2f655c(_0x1dbc2a(window[_0x1ef32b([0x4d,0x61,0x74,0x68])][_0x1ef32b([0x63,0x65,0x69,0x6c])](_0x37997b/_0xad8c4)));window[_0x1ef32b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ef32b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xdfbe34,_0x462c44);}function _0x414193(){const _0x4ad3d5=_0x1ef32b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1dbc2a(_0x507c27(_0x2e5087)),_0x1bf35d=window[_0x1ef32b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ef32b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ad3d5);return _0x1bf35d?window[_0x1ef32b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f655c(_0x1bf35d),0x10)*_0xad8c4:null;}function _0x3655b0(_0x51ccbd){return new window[(_0x1ef32b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14715f,_0x3cd257)=>{_0x51ccbd[_0x1ef32b([0x74,0x68,0x65,0x6e])](_0x14715f,_0x3cd257),window[_0x1ef32b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3cd257,0x1d4c0);});}}_0x28b552[_0x1ef32b([0x6f,0x6e])](_0x1ef32b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x9a1ae0,_0x478663)=>{if(_0x478663[0x0]!=_0x2e5087)return _0x12de4e(_0x1ef32b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x478663[0x1]={..._0x478663[0x1],[_0x1ef32b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x19a60b};},{[_0x1ef32b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ef32b([0x68,0x69,0x67,0x68])}),_0x28b552[_0x1ef32b([0x6f,0x6e])](_0x1ef32b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x959f5e=>{_0x395677(_0x959f5e[_0x1ef32b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x56ea8a=!0x0,_0x28165b(_0x959f5e[_0x1ef32b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ef32b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ef32b([0x6c,0x6f,0x77])}),_0x2c9de7[_0x1ef32b([0x74,0x68,0x65,0x6e])](()=>{_0x56ea8a||_0x12de4e(_0x1ef32b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x532c8d(){return _0x28b552[_0x1ef32b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ef32b([0x76,0x69,0x65,0x77])][_0x1ef32b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ef32b([0x61,0x75,0x74,0x6f]);}function _0x56d09a(){_0x28b552[_0x1ef32b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ef32b([0x76,0x69,0x65,0x77])][_0x1ef32b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ef32b([0x61,0x75,0x74,0x6f]);}}(_0x2eee46[_0x1ef32b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2eee46[_0x1ef32b([0x6a,0x74,0x69])]));const _0x4f6149=await(async function(){let _0x54c4fd=!0x0;try{const _0x372fbb=_0x5a902c[_0x1ef32b([0x73,0x70,0x6c,0x69,0x74])](_0x1ef32b([0x2e])),[_0x506956,_0x51e6da,_0x24a583]=_0x372fbb;return _0x5572d4(_0x506956),await _0x4412b5(_0x506956,_0x51e6da,_0x24a583),_0x54c4fd;}catch{return!0x1;}function _0x5572d4(_0x440e5c){const _0x1c091e=_0xb2e828(_0x440e5c);_0x1c091e&&_0x1c091e[_0x1ef32b([0x61,0x6c,0x67])]==_0x1ef32b([0x45,0x53,0x32,0x35,0x36])||(_0x54c4fd=!0x1);}async function _0x4412b5(_0xb8bfe6,_0x24fe27,_0x30a321){const _0xaa8048=window[_0x1ef32b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ef32b([0x66,0x72,0x6f,0x6d])](_0x5f1d33(_0x30a321),_0x57b86b=>_0x57b86b[_0x1ef32b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1baf41=new window[(_0x1ef32b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ef32b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xb8bfe6+_0x1ef32b([0x2e])+_0x24fe27),_0x3c7ace=window[_0x1ef32b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ef32b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c7ace)return;const _0x495488=await _0x3c7ace[_0x1ef32b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ef32b([0x6a,0x77,0x6b]),_0x3b25e4,{[_0x1ef32b([0x6e,0x61,0x6d,0x65])]:_0x1ef32b([0x45,0x43,0x44,0x53,0x41]),[_0x1ef32b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ef32b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ef32b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c7ace[_0x1ef32b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ef32b([0x6e,0x61,0x6d,0x65])]:_0x1ef32b([0x45,0x43,0x44,0x53,0x41]),[_0x1ef32b([0x68,0x61,0x73,0x68])]:{[_0x1ef32b([0x6e,0x61,0x6d,0x65])]:_0x1ef32b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x495488,_0xaa8048,_0x1baf41)||(_0x54c4fd=!0x1);}}());return _0x4f6149?(function(){const _0x4e9d8b=_0x2eee46[_0x1ef32b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4e9d8b)return!0x1;if(_0x4e9d8b[_0x1ef32b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ef32b([0x2a])))return!0x0;if(_0x4e9d8b[_0x1ef32b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ef32b([0x46,0x50])))return!0x0;if(_0x4e9d8b[_0x1ef32b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ef32b([0x50,0x50])))return!0x0;if(_0x4e9d8b[_0x1ef32b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ef32b([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x1ef32b([0x67,0x6c,0x6f,0x62])]&&window[_0x1ef32b([0x67,0x6c,0x6f,0x62])][_0x1ef32b([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x583e51=[_0x1ef32b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ef32b([0x74,0x72,0x69,0x61,0x6c])][_0x1ef32b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eee46[_0x1ef32b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x37997b/0x3e8:0x69e96100;return _0x2eee46[_0x1ef32b([0x65,0x78,0x70])]<_0x583e51;}())?_0x1ef32b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x126657=_0x2eee46[_0x1ef32b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x126657||0x0==_0x126657[_0x1ef32b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4abd1d}=new URL(window[_0x1ef32b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x126657[_0x1ef32b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4abd1d))return!0x0;const _0x31046e=_0x4abd1d[_0x1ef32b([0x73,0x70,0x6c,0x69,0x74])](_0x1ef32b([0x2e]));return _0x126657[_0x1ef32b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xbba34f=>_0xbba34f[_0x1ef32b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ef32b([0x2a])))[_0x1ef32b([0x6d,0x61,0x70])](_0x4f0555=>_0x4f0555[_0x1ef32b([0x73,0x70,0x6c,0x69,0x74])](_0x1ef32b([0x2e])))[_0x1ef32b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x448134=>_0x448134[_0x1ef32b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x31046e[_0x1ef32b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1ef32b([0x6d,0x61,0x70])](_0x252ce1=>Array(_0x31046e[_0x1ef32b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x252ce1[_0x1ef32b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1ef32b([0x66,0x69,0x6c,0x6c])](_0x252ce1[0x0]===_0x1ef32b([0x2a])?_0x1ef32b([0x2a]):'')[_0x1ef32b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x252ce1))[_0x1ef32b([0x73,0x6f,0x6d,0x65])](_0x4f9c12=>_0x31046e[_0x1ef32b([0x65,0x76,0x65,0x72,0x79])]((_0x1fb28d,_0x1db77b)=>_0x4f9c12[_0x1db77b]===_0x1fb28d||_0x4f9c12[_0x1db77b]===_0x1ef32b([0x2a])));}())?(_0x2eee46[_0x1ef32b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ef32b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x261add=function(_0x3fe448){const _0x330746=new window[(_0x1ef32b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x371245=>setTimeout(_0x371245,0x93ecc)),_0x14b188=_0x2c9de7[_0x1ef32b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ef32b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6603b9=>{let _0x2db2ba=0x0;_0x28b552[_0x1ef32b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ef32b([0x6f,0x6e])](_0x1ef32b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1b46cf,_0x7264f7)=>{_0x7264f7[0x0][_0x1ef32b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2db2ba++,0x5e8==_0x2db2ba&&(_0x6603b9(),_0x1b46cf[_0x1ef32b([0x6f,0x66,0x66])]());});})),_0x5204af=[_0x330746,_0x14b188];return window[_0x1ef32b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ef32b([0x72,0x61,0x63,0x65])](_0x5204af)[_0x1ef32b([0x74,0x68,0x65,0x6e])](()=>_0x3fe448);}(_0x1ef32b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x261add&&_0xf94cd4)return new window[(_0x1ef32b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46f89,_0xe4b5ed)=>{_0x261add[_0x1ef32b([0x74,0x68,0x65,0x6e])](_0x46f89,_0xe4b5ed),_0xf94cd4[_0x1ef32b([0x74,0x68,0x65,0x6e])](_0x258625=>{_0x258625!=_0x1ef32b([0x56,0x61,0x6c,0x69,0x64])&&_0x46f89(_0x258625);},_0xe4b5ed);});return _0x261add||_0xf94cd4||_0x1ef32b([0x56,0x61,0x6c,0x69,0x64]);}())):_0x1ef32b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ef32b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ef32b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1ef32b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0xb2e828(_0x2cc46b){return _0x2cc46b[_0x1ef32b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ef32b([0x65,0x79]))?JSON[_0x1ef32b([0x70,0x61,0x72,0x73,0x65])](_0x5f1d33(_0x2cc46b)):null;}function _0x5f1d33(_0x4f3ce0){return window[_0x1ef32b([0x61,0x74,0x6f,0x62])](_0x4f3ce0[_0x1ef32b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ef32b([0x2b]))[_0x1ef32b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ef32b([0x2f])));}function _0x507c27(_0x50ad33){let _0x2ead64=0x1505;function _0x1113b6(_0x5a9075){for(let _0x5c57c8=0x0;_0x5c57c8<_0x5a9075[_0x1ef32b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c57c8++){const _0x26d40c=_0x5a9075[_0x1ef32b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c57c8);_0x2ead64=(_0x2ead64<<0x5)+_0x2ead64+_0x26d40c,_0x2ead64&=_0x2ead64;}}return function _0x471832(_0x5deeef){Array[_0x1ef32b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5deeef)?_0x5deeef[_0x1ef32b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x471832):_0x5deeef&&typeof _0x5deeef==_0x1ef32b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ef32b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5deeef)[_0x1ef32b([0x73,0x6f,0x72,0x74])]()[_0x1ef32b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x39f626,_0x442ec1])=>{_0x1113b6(_0x39f626),_0x471832(_0x442ec1);}):_0x1113b6(window[_0x1ef32b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5deeef));}(_0x50ad33),_0x2ead64>>>0x0;}function _0x1dbc2a(_0x2fa3e4){return _0x2fa3e4[_0x1ef32b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ef32b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ef32b([0x30]));}function _0x2f655c(_0x291ade){return _0x291ade[_0x1ef32b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ef32b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ef32b([0x6a,0x6f,0x69,0x6e])]('');}function _0x38b2fa(){}function _0x1ef32b(_0x324106){return _0x324106['map'](_0x2979f6=>String['fromCharCode'](_0x2979f6))['join']('');}!function(_0x3955af){const _0x4f9014=(function(){const _0x480647=window[_0x1ef32b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ef32b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ef32b([0x6e,0x6f,0x77])]())[_0x1ef32b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ef32b([0x2e]),'');let _0x314b08=_0x1ef32b([0x51]);for(let _0x920785=0x0;_0x920785<_0x480647[_0x1ef32b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x920785+=0x2){let _0x39d72d=window[_0x1ef32b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x480647[_0x1ef32b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x920785,_0x920785+0x2));_0x39d72d>=_0x16e32f[_0x1ef32b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x39d72d-=_0x16e32f[_0x1ef32b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x314b08+=_0x16e32f[_0x39d72d];}return _0x314b08;}());_0x28b552[_0x4f9014]=_0x1ef32b([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3955af,_0x3955af!=_0x1ef32b([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x2c9de7,_0x28b552[_0x1ef32b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ef32b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38b2fa,_0x28b552[_0x1ef32b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ef32b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38b2fa,_0x28b552[_0x1ef32b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ef32b([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x3341a3);}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(_0x2c1658,_0x4215e7){const t=_0x2c1658['t'];switch(_0x4215e7){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 _0x4215e7;}}class ImportWordUI extends Plugin{static get['pluginName'](){return'ImportWordUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x454f68=this['editor'];_0x454f68['ui']['componentFactory']['add']('importWord',()=>{const _0x2317cf=this['_createButton'](FileDialogButtonView),_0x283745=_0x454f68['commands']['get']('importWord');return _0x2317cf['bind']('isOn')['to'](_0x283745,'isBusy'),_0x2317cf['tooltip']=!0x0,_0x2317cf;}),_0x454f68['ui']['componentFactory']['add']('menuBar:importWord',()=>this['_createButton'](MenuBarMenuListItemFileDialogButtonView));}['_createButton'](_0x23162f){const _0x59642e=this['editor'],_0x2a32a3=_0x59642e['commands']['get']('importWord'),_0x4337d8=new _0x23162f(_0x59642e['locale']),_0x4d84ee=new SpinnerView();return _0x4337d8['set']({'acceptedType':'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template'}),_0x4337d8['set']({'icon':IconImportWord}),_0x4337d8['bind']('isEnabled')['to'](_0x2a32a3),_0x4337d8['bind']('label')['to'](_0x2a32a3,'isBusy',_0x31e9fc=>getTranslation$a(_0x59642e['locale'],_0x31e9fc?'Importing\x20Word\x20document':'Import\x20from\x20Word')),_0x4d84ee['bind']('isVisible')['to'](_0x2a32a3,'isBusy'),_0x4337d8['iconView']['bind']('isVisible')['to'](_0x2a32a3,'isBusy',_0x35827d=>!_0x35827d),_0x4337d8['children']['add'](_0x4d84ee),_0x4337d8['on']('done',(_0x301d2,_0x365be2)=>{_0x59642e['execute']('importWord',_0x365be2[0x0],{}),_0x59642e['editing']['view']['focus']();}),_0x4337d8;}}class ImportWordCommand extends Command{['_importMarker'];['_undoStepBatch'];['_abortController'];constructor(_0xd57bf4){super(_0xd57bf4),this['set']('isBusy',!0x1),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['on']('dataInsert',(_0x3cc7b6,_0x56993e)=>{const _0x21536a=new DataTransfer();_0x21536a['setData']('text/html',_0x56993e['html']);const _0x5a503a=this['_importMarker']['getRange']();this['editor']['model']['enqueueChange'](this['_undoStepBatch'],_0x300dc4=>{this['_importMarker']['stopListening'](),_0x300dc4['setSelection'](_0x5a503a),_0xd57bf4['editing']['view']['document']['fire']('clipboardInput',{'dataTransfer':_0x21536a});});},{'priority':'low'});}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4e18ae,_0x20ff82={}){if(this['isBusy'])return Promise['resolve']();const _0xc9ad74=this['editor']['config']['get']('importWord');if(this['editor']['plugins']['has']('MergeFields')){const {prefix:_0xf0996f,suffix:_0x157c48}=this['editor']['config']['get']('mergeFields');_0x20ff82['merge_fields']={'prefix':_0xf0996f,'suffix':_0x157c48};}const _0x35aa86={'url':_0xc9ad74['converterUrl'],'file':_0x4e18ae,'serviceConfig':{..._0x20ff82,'formatting':_0xc9ad74['formatting'],'timezone':new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone']}};return this['_prepareForImport'](),this['_sendImportRequest'](_0x35aa86)['then'](this['_handleImportResponse']['bind'](this))['catch'](this['_handleImportFailure']['bind'](this))['finally'](this['_cleanUpAfterImport']['bind'](this));}['_checkEnabled'](){if(this['isBusy'])return!0x1;const _0xb730e9=this['editor']['model'],_0x424fb4=_0xb730e9['schema'],_0x2ecd06=_0xb730e9['document']['selection'],_0x1164df=first(_0x2ecd06['getSelectedBlocks']());return!!_0x1164df&&_0x424fb4['checkChild'](_0x1164df['parent'],'paragraph');}['_prepareForImport'](){const _0x2fbb25=this['editor'],_0x5af18f=_0x2fbb25['model'],_0x173ee6=_0x5af18f['document']['selection'];this['_abortController']=new AbortController(),this['_undoStepBatch']=_0x2fbb25['model']['createBatch']({'isUndoable':!0x0}),_0x5af18f['enqueueChange'](this['_undoStepBatch'],_0x2f11df=>{_0x173ee6['isCollapsed']||_0x5af18f['deleteContent'](_0x173ee6,{'leaveUnmerged':!0x0});const _0x2c4d58=_0x173ee6['getFirstPosition'](),_0x327ebb=first(_0x173ee6['getSelectedBlocks']());let _0x14560c;_0x14560c=_0x327ebb['is']('element','paragraph')&&_0x327ebb['isEmpty']?_0x2c4d58:_0x2c4d58['isAtStart']?_0x5af18f['createPositionBefore'](_0x327ebb):_0x2c4d58['isAtEnd']?_0x5af18f['createPositionAfter'](_0x327ebb):_0x2f11df['split'](_0x2c4d58)['position'],this['_importMarker']=_0x2f11df['addMarker']('importWord:'+uid(),{'usingOperation':!0x1,'affectsData':!0x1,'range':new ModelRange(_0x14560c)}),this['_importMarker']['on']('change:range',()=>{'$graveyard'===this['_importMarker']['getRange']()['root']['rootName']&&this['_abortController']['abort']();});}),this['isBusy']=!0x0,this['refresh']();}['_cleanUpAfterImport'](){const _0x32a8b2=this['editor']['model'];_0x32a8b2['markers']['has'](this['_importMarker'])&&_0x32a8b2['enqueueChange'](this['_undoStepBatch'],_0xf01c04=>{_0xf01c04['removeMarker'](this['_importMarker']);}),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['isBusy']=!0x1,this['refresh']();}['_sendImportRequest']({url:_0x2fe0d5,file:_0xfb6eb9,serviceConfig:_0x449c77}){const _0x4cfb78=this['editor']['plugins']['get']('ImportWordEditing')['getToken'](),_0x5d27dc=new FormData();_0x5d27dc['set']('config',JSON['stringify'](_0x449c77)),_0x5d27dc['set']('file',_0xfb6eb9);const _0x3c2b7b={'method':'POST','headers':{},'body':_0x5d27dc,'signal':this['_abortController']['signal']};return _0x4cfb78&&(_0x3c2b7b['headers']['Authorization']=_0x4cfb78['value']),fetch(_0x2fe0d5,_0x3c2b7b);}['_handleImportResponse'](_0x46f58e){return _0x46f58e['ok']?_0x46f58e['json']()['then'](_0x280961=>{if(!this['editor']['model']['markers']['has'](this['_importMarker']))return;'$graveyard'!==this['_importMarker']['getRange']()['root']['rootName']&&this['fire']('dataInsert',{..._0x280961,'undoStepBatch':this['_undoStepBatch']});}):Promise['reject']();}['_handleImportFailure'](){if(this['_abortController']['signal']['aborted'])return void logWarning('import-word-plugin-import-cancelled');const _0x2f8434=this['editor'],_0x372b88=getTranslation$a(_0x2f8434['locale'],'An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');_0x2f8434['plugins']['get']('Notification')['showWarning'](_0x372b88),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(_0x5b3fa4){super(_0x5b3fa4),this['_token']=null;}async['init'](){const _0x2874fa=this['editor'];_0x2874fa['config']['define']('importWord',{'converterUrl':'https://docx-converter.cke-cs.com/v2/convert/docx-html','tokenUrl':(_0x2874fa['config']['get']('cloudServices')||{})['tokenUrl'],'formatting':{'resets':'none','defaults':'none','styles':'inline'}}),_0x2874fa['commands']['add']('importWord',new ImportWordCommand(_0x2874fa));const {tokenUrl:_0x204318}=_0x2874fa['config']['get']('importWord');if(_0x204318){const {tokenUrl:_0xe417d3}=_0x2874fa['config']['get']('cloudServices')||{};this['_token']=_0x204318===_0xe417d3?_0x2874fa['plugins']['get']('CloudServices')['token']:await _0x2874fa['plugins']['get']('CloudServices')['registerTokenUrl'](_0x204318);}}['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 Command{['refresh'](){const _0x2096c6=this['editor']['model']['document'],_0x1bf7ee=first(_0x2096c6['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x1bf7ee)&&this['_canHaveLineHeight'](_0x1bf7ee),this['value']=this['isEnabled']&&_0x1bf7ee['getAttribute']('lineHeight');}['execute'](_0x4b48e8={}){const _0x4360aa=this['editor']['model'],_0xb5fcef=_0x4360aa['document']['selection'],_0x2df63f=_0x4b48e8['value'];_0x4360aa['change'](_0x33507e=>{const _0x252ef0=Array['from'](_0xb5fcef['getSelectedBlocks']())['filter'](_0x4aca81=>this['_canHaveLineHeight'](_0x4aca81));for(const _0x55902f of _0x252ef0)_0x2df63f?_0x33507e['setAttribute']('lineHeight',_0x2df63f,_0x55902f):_0x33507e['removeAttribute']('lineHeight',_0x55902f);});}['_canHaveLineHeight'](_0x3f4670){return this['editor']['model']['schema']['checkAttribute'](_0x3f4670,'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(_0xa7044d){return'string'==typeof _0xa7044d&&'default'===_0xa7044d['toLowerCase']();}function normalizeOptions(_0x32caf9){return _0x32caf9['options']['map'](_0x24d0e8=>isLineHeightDefaultValue(_0x24d0e8)?{'title':String(_0x32caf9['defaultValue']),'model':'default'}:('number'==typeof _0x24d0e8&&(_0x24d0e8=String(_0x24d0e8)),'string'!=typeof _0x24d0e8?_0x24d0e8:parseFloat(_0x24d0e8)?{'title':_0x24d0e8,'model':_0x24d0e8,'view':{'name':'span','styles':{'line-height':_0x24d0e8}}}:findPreset(_0x24d0e8)))['filter'](_0x2719e0=>void 0x0!==_0x2719e0);}function findPreset(_0x48fcf8){return'string'==typeof _0x48fcf8?namedPresets[_0x48fcf8]:namedPresets[_0x48fcf8['model']];}function buildDefinition(_0x5d68b7,_0x215f7e){const _0x5feb06={'model':{'key':_0x5d68b7,'values':[]},'view':{}};for(const _0x2c061e of _0x215f7e)'class'===_0x2c061e['view']?.['key']?(_0x5feb06['model']['values']['push'](_0x2c061e['model']),_0x5feb06['view'][_0x2c061e['model']]={'key':'class','value':_0x2c061e['view']['value']}):(_0x5feb06['model']['values']['push'](_0x2c061e['model']),_0x5feb06['view'][_0x2c061e['model']]={'key':'style','value':'line-height:'+_0x2c061e['model']+';'});return _0x5feb06;}class LineHeightTodoListIntegration extends Plugin{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x5e38f0,conversion:_0x3d26d6}=this['editor'];if(!_0x5e38f0['has']('ListEditing')||!_0x5e38f0['has']('TodoListEditing'))return;_0x5e38f0['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x1e18cd,_0x35bdc1,_0x4968bc,_0x40c8c5,_0x23a889){'todo'==_0x23a889['getAttribute']('listType')&&_0x35bdc1&&(_0x1e18cd['addClass']('ck-list-marker-line-height',_0x4968bc),_0x1e18cd['setStyle']('--ck-content-list-marker-line-height',_0x35bdc1,_0x4968bc));}}),_0x3d26d6['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x3d26d6['for']('upcast')['add'](_0x5b6801=>{_0x5b6801['on']('element:li',attributeUpcastConsumingConverter({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}function attributeUpcastConsumingConverter(_0x42607d){const _0x1605f6=new Matcher(_0x42607d);return(_0x1b807c,_0x165ae5,_0xe1ae5e)=>{const _0x236509=_0x1605f6['match'](_0x165ae5['viewItem']);if(!_0x236509)return;const _0x32b157=_0x236509['match'];_0x32b157['name']=!0x1,_0xe1ae5e['consumable']['consume'](_0x165ae5['viewItem'],_0x32b157);};}class LineHeightEditing extends Plugin{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[LineHeightTodoListIntegration];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41fd12){super(_0x41fd12),_0x41fd12['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x935430=this['editor'];this['_validateConfig'](),_0x935430['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x935430['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x935430['commands']['add']('lineHeight',new LineHeightCommand(_0x935430)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){checkLicense$a(this);}['_validateConfig'](){const _0x538bff=this['editor'];if(!_0x538bff['config']['get']('lineHeight.supportAllValues'))return;const _0x17af74=_0x538bff['config']['get']('lineHeight.options')['filter'](_0x27989f=>'string'==typeof _0x27989f&&(!isLineHeightDefaultValue(_0x27989f)&&isNaN(Number(_0x27989f))));if(_0x17af74['length'])throw new CKEditorError('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x17af74});}['_prepareAnyValueConverters'](){const _0x121d65=this['editor'],_0x2aa02a=this['editor']['config']['get']('lineHeight.defaultValue');_0x121d65['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x1098a5=>String(_0x1098a5)===String(_0x2aa02a)?null:{'key':'style','value':{'line-height':_0x1098a5}}}),_0x121d65['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x3e68ec=>{let _0x457c01=_0x3e68ec['getStyle']('line-height');return isPercentageStyleValue(_0x457c01)&&(_0x457c01=String(Number(_0x457c01['slice'](0x0,-0x1))/0x64)),String(_0x457c01)===String(_0x2aa02a)?null:_0x457c01;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x5ba1e6=this['editor'],_0x1aedb5=this['editor']['config']['get']('lineHeight.defaultValue'),_0x460fe4=buildDefinition('lineHeight',normalizeOptions(this['editor']['config']['get']('lineHeight'))['filter'](_0x5e35ff=>_0x5e35ff['model']));_0x5ba1e6['conversion']['attributeToAttribute'](_0x460fe4),_0x5ba1e6['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x2723cd=>{let _0x3d2c29=_0x2723cd['getStyle']('line-height');return isPercentageStyleValue(_0x3d2c29)&&(_0x3d2c29=String(Number(_0x3d2c29['slice'](0x0,-0x1))/0x64)),_0x3d2c29===String(_0x1aedb5)?null:_0x460fe4['model']['values']['includes'](_0x3d2c29)?_0x3d2c29:null;}}});}}async function checkLicense$a(_0x55ca7a){const _0x6bce43=_0x28b7fa([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]),_0x4c4554=window[_0x28b7fa([0x44,0x61,0x74,0x65])][_0x28b7fa([0x6e,0x6f,0x77])](),_0x2ea81f=_0x55ca7a[_0x28b7fa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x195976=new window[(_0x28b7fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x110380=>{_0x2ea81f[_0x28b7fa([0x6f,0x6e,0x63,0x65])](_0x28b7fa([0x72,0x65,0x61,0x64,0x79]),_0x110380);}),_0x433678={[_0x28b7fa([0x6b,0x74,0x79])]:_0x28b7fa([0x45,0x43]),[_0x28b7fa([0x75,0x73,0x65])]:_0x28b7fa([0x73,0x69,0x67]),[_0x28b7fa([0x63,0x72,0x76])]:_0x28b7fa([0x50,0x2d,0x32,0x35,0x36]),[_0x28b7fa([0x78])]:_0x28b7fa([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]),[_0x28b7fa([0x79])]:_0x28b7fa([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]),[_0x28b7fa([0x61,0x6c,0x67])]:_0x28b7fa([0x45,0x53,0x32,0x35,0x36])},_0x3d5546=_0x2ea81f[_0x28b7fa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x28b7fa([0x67,0x65,0x74])](_0x28b7fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x5d99a0=await(async function(){let _0x56ea88,_0xf96f41=null,_0x29198c=null;try{if(_0x3d5546==_0x28b7fa([0x47,0x50,0x4c]))return _0x28b7fa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x56ea88=(function(){const _0x1623dc=_0x3d5546[_0x28b7fa([0x73,0x70,0x6c,0x69,0x74])](_0x28b7fa([0x2e]));if(0x3!=_0x1623dc[_0x28b7fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x3809b6=_0x1623dc[0x1];return _0x402cd3(_0x3809b6);function _0x402cd3(_0x3eb388){const _0x431574=_0x2ce84d(_0x3eb388);return _0x431574&&_0x5b43de()?_0x431574:null;function _0x5b43de(){const _0x3e33c9=_0x431574[_0x28b7fa([0x6a,0x74,0x69])],_0x5da41f=window[_0x28b7fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e33c9[_0x28b7fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e33c9[_0x28b7fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x392b04={..._0x431574,[_0x28b7fa([0x6a,0x74,0x69])]:_0x3e33c9[_0x28b7fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e33c9[_0x28b7fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x392b04[_0x28b7fa([0x76,0x63])],_0x36e5d6(_0x392b04)==_0x5da41f;}}}()),!_0x56ea88)return _0x28b7fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x56ea88[_0x28b7fa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x29198c=function(_0x594115,_0x3c7bce){return new window[(_0x28b7fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52ea22=>{if(_0x23f856())return _0x52ea22(_0x28b7fa([0x56,0x61,0x6c,0x69,0x64]));_0x27d51b(),_0x2ea81f[_0x28b7fa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x28b7fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18af02=!0x1;const _0x12e83e=uid();function _0x197eb8(_0x229baa){return!!_0x229baa&&(typeof _0x229baa===_0x28b7fa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x229baa===_0x28b7fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x229baa[_0x28b7fa([0x74,0x68,0x65,0x6e])]===_0x28b7fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x229baa[_0x28b7fa([0x63,0x61,0x74,0x63,0x68])]===_0x28b7fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c775c(_0xd5ee3c){_0x5b8abf(_0xd5ee3c)[_0x28b7fa([0x74,0x68,0x65,0x6e])](_0x427d5a=>{if(!_0x427d5a||_0x427d5a[_0x28b7fa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x28b7fa([0x6f,0x6b]))return _0x28b7fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4bebf2(_0x36e5d6(_0x12e83e+_0x3c7bce))!=_0x427d5a[_0x28b7fa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x28b7fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x28b7fa([0x56,0x61,0x6c,0x69,0x64]);})[_0x28b7fa([0x74,0x68,0x65,0x6e])](_0x2dedbb=>(_0x4c793c(),_0x2dedbb),()=>{const _0x3b8f62=_0x1375fa();return null==_0x3b8f62?(_0x4c793c(),_0x28b7fa([0x56,0x61,0x6c,0x69,0x64])):_0x28b7fa(_0x4c4554-_0x3b8f62>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x28b7fa([0x74,0x68,0x65,0x6e])](_0x52ea22)[_0x28b7fa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x52ea22(_0x28b7fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x634a3e=0x36ee80;function _0x4c793c(){const _0x3f577f=_0x28b7fa([0x6c,0x6c,0x63,0x74,0x2d])+_0x4bebf2(_0x36e5d6(_0x594115)),_0x18e22d=_0x1150bc(_0x4bebf2(window[_0x28b7fa([0x4d,0x61,0x74,0x68])][_0x28b7fa([0x63,0x65,0x69,0x6c])](_0x4c4554/_0x634a3e)));window[_0x28b7fa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28b7fa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f577f,_0x18e22d);}function _0x1375fa(){const _0x10ed31=_0x28b7fa([0x6c,0x6c,0x63,0x74,0x2d])+_0x4bebf2(_0x36e5d6(_0x594115)),_0x196cdb=window[_0x28b7fa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28b7fa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10ed31);return _0x196cdb?window[_0x28b7fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1150bc(_0x196cdb),0x10)*_0x634a3e:null;}function _0x5b8abf(_0x1e4106){return new window[(_0x28b7fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54db32,_0xc8e15d)=>{_0x1e4106[_0x28b7fa([0x74,0x68,0x65,0x6e])](_0x54db32,_0xc8e15d),window[_0x28b7fa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc8e15d,0x1d4c0);});}}_0x2ea81f[_0x28b7fa([0x6f,0x6e])](_0x28b7fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x363702,_0x180e99)=>{if(_0x180e99[0x0]!=_0x594115)return _0x52ea22(_0x28b7fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x180e99[0x1]={..._0x180e99[0x1],[_0x28b7fa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x12e83e};},{[_0x28b7fa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28b7fa([0x68,0x69,0x67,0x68])}),_0x2ea81f[_0x28b7fa([0x6f,0x6e])](_0x28b7fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3cf439=>{_0x197eb8(_0x3cf439[_0x28b7fa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18af02=!0x0,_0x4c775c(_0x3cf439[_0x28b7fa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x28b7fa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28b7fa([0x6c,0x6f,0x77])}),_0x195976[_0x28b7fa([0x74,0x68,0x65,0x6e])](()=>{_0x18af02||_0x52ea22(_0x28b7fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x23f856(){return _0x2ea81f[_0x28b7fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28b7fa([0x76,0x69,0x65,0x77])][_0x28b7fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x28b7fa([0x61,0x75,0x74,0x6f]);}function _0x27d51b(){_0x2ea81f[_0x28b7fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28b7fa([0x76,0x69,0x65,0x77])][_0x28b7fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x28b7fa([0x61,0x75,0x74,0x6f]);}}(_0x56ea88[_0x28b7fa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x56ea88[_0x28b7fa([0x6a,0x74,0x69])]));const _0x27b6b6=await(async function(){let _0x49209c=!0x0;try{const _0x32f03d=_0x3d5546[_0x28b7fa([0x73,0x70,0x6c,0x69,0x74])](_0x28b7fa([0x2e])),[_0x5c79e8,_0xa60648,_0x260cd0]=_0x32f03d;return _0xf6603d(_0x5c79e8),await _0xf532a5(_0x5c79e8,_0xa60648,_0x260cd0),_0x49209c;}catch{return!0x1;}function _0xf6603d(_0x322f7e){const _0x42aae0=_0x2ce84d(_0x322f7e);_0x42aae0&&_0x42aae0[_0x28b7fa([0x61,0x6c,0x67])]==_0x28b7fa([0x45,0x53,0x32,0x35,0x36])||(_0x49209c=!0x1);}async function _0xf532a5(_0x6f53a1,_0x2f3d86,_0x57f557){const _0x496f59=window[_0x28b7fa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x28b7fa([0x66,0x72,0x6f,0x6d])](_0x59431f(_0x57f557),_0x45eced=>_0x45eced[_0x28b7fa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x17551f=new window[(_0x28b7fa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x28b7fa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x6f53a1+_0x28b7fa([0x2e])+_0x2f3d86),_0x1e8543=window[_0x28b7fa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x28b7fa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1e8543)return;const _0x253a64=await _0x1e8543[_0x28b7fa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x28b7fa([0x6a,0x77,0x6b]),_0x433678,{[_0x28b7fa([0x6e,0x61,0x6d,0x65])]:_0x28b7fa([0x45,0x43,0x44,0x53,0x41]),[_0x28b7fa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x28b7fa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x28b7fa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1e8543[_0x28b7fa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x28b7fa([0x6e,0x61,0x6d,0x65])]:_0x28b7fa([0x45,0x43,0x44,0x53,0x41]),[_0x28b7fa([0x68,0x61,0x73,0x68])]:{[_0x28b7fa([0x6e,0x61,0x6d,0x65])]:_0x28b7fa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x253a64,_0x496f59,_0x17551f)||(_0x49209c=!0x1);}}());return _0x27b6b6?(function(){const _0x233863=_0x56ea88[_0x28b7fa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x233863)return!0x1;if(_0x233863[_0x28b7fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28b7fa([0x2a])))return!0x0;if(_0x233863[_0x28b7fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28b7fa([0x4c,0x48])))return!0x0;return!0x1;}())?(function(){const _0x253ba7=[_0x28b7fa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x28b7fa([0x74,0x72,0x69,0x61,0x6c])][_0x28b7fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56ea88[_0x28b7fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4c4554/0x3e8:0x69e96100;return _0x56ea88[_0x28b7fa([0x65,0x78,0x70])]<_0x253ba7;}())?_0x28b7fa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x345e59=_0x56ea88[_0x28b7fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x345e59||0x0==_0x345e59[_0x28b7fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9f7677}=new URL(window[_0x28b7fa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x345e59[_0x28b7fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f7677))return!0x0;const _0x20408e=_0x9f7677[_0x28b7fa([0x73,0x70,0x6c,0x69,0x74])](_0x28b7fa([0x2e]));return _0x345e59[_0x28b7fa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4253ec=>_0x4253ec[_0x28b7fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28b7fa([0x2a])))[_0x28b7fa([0x6d,0x61,0x70])](_0x492d8f=>_0x492d8f[_0x28b7fa([0x73,0x70,0x6c,0x69,0x74])](_0x28b7fa([0x2e])))[_0x28b7fa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5531d1=>_0x5531d1[_0x28b7fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x20408e[_0x28b7fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28b7fa([0x6d,0x61,0x70])](_0xa918a2=>Array(_0x20408e[_0x28b7fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xa918a2[_0x28b7fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28b7fa([0x66,0x69,0x6c,0x6c])](_0xa918a2[0x0]===_0x28b7fa([0x2a])?_0x28b7fa([0x2a]):'')[_0x28b7fa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xa918a2))[_0x28b7fa([0x73,0x6f,0x6d,0x65])](_0x461dab=>_0x20408e[_0x28b7fa([0x65,0x76,0x65,0x72,0x79])]((_0x1e8188,_0x5ac28f)=>_0x461dab[_0x5ac28f]===_0x1e8188||_0x461dab[_0x5ac28f]===_0x28b7fa([0x2a])));}())?(_0x56ea88[_0x28b7fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28b7fa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xf96f41=function(_0x182476){const _0x1c68c6=new window[(_0x28b7fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8e4713=>setTimeout(_0x8e4713,0x93ecc)),_0x2efa9d=_0x195976[_0x28b7fa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x28b7fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcadf7=>{let _0x574ba5=0x0;_0x2ea81f[_0x28b7fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x28b7fa([0x6f,0x6e])](_0x28b7fa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2403ff,_0x2f18b1)=>{_0x2f18b1[0x0][_0x28b7fa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x574ba5++,0x5e8==_0x574ba5&&(_0xcadf7(),_0x2403ff[_0x28b7fa([0x6f,0x66,0x66])]());});})),_0x439f66=[_0x1c68c6,_0x2efa9d];return window[_0x28b7fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x28b7fa([0x72,0x61,0x63,0x65])](_0x439f66)[_0x28b7fa([0x74,0x68,0x65,0x6e])](()=>_0x182476);}(_0x28b7fa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0xf96f41&&_0x29198c)return new window[(_0x28b7fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9eb35e,_0x4c0597)=>{_0xf96f41[_0x28b7fa([0x74,0x68,0x65,0x6e])](_0x9eb35e,_0x4c0597),_0x29198c[_0x28b7fa([0x74,0x68,0x65,0x6e])](_0x4410c3=>{_0x4410c3!=_0x28b7fa([0x56,0x61,0x6c,0x69,0x64])&&_0x9eb35e(_0x4410c3);},_0x4c0597);});return _0xf96f41||_0x29198c||_0x28b7fa([0x56,0x61,0x6c,0x69,0x64]);}())):_0x28b7fa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x28b7fa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x28b7fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x28b7fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x2ce84d(_0x47e1d5){return _0x47e1d5[_0x28b7fa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x28b7fa([0x65,0x79]))?JSON[_0x28b7fa([0x70,0x61,0x72,0x73,0x65])](_0x59431f(_0x47e1d5)):null;}function _0x59431f(_0x7c9f4){return window[_0x28b7fa([0x61,0x74,0x6f,0x62])](_0x7c9f4[_0x28b7fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x28b7fa([0x2b]))[_0x28b7fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x28b7fa([0x2f])));}function _0x36e5d6(_0x4e9630){let _0x2fdeea=0x1505;function _0x5f0c3a(_0x4886c8){for(let _0x38fe7a=0x0;_0x38fe7a<_0x4886c8[_0x28b7fa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38fe7a++){const _0x49e664=_0x4886c8[_0x28b7fa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x38fe7a);_0x2fdeea=(_0x2fdeea<<0x5)+_0x2fdeea+_0x49e664,_0x2fdeea&=_0x2fdeea;}}return function _0x3e4424(_0x2b4fb5){Array[_0x28b7fa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b4fb5)?_0x2b4fb5[_0x28b7fa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3e4424):_0x2b4fb5&&typeof _0x2b4fb5==_0x28b7fa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x28b7fa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b4fb5)[_0x28b7fa([0x73,0x6f,0x72,0x74])]()[_0x28b7fa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x459c12,_0x28697c])=>{_0x5f0c3a(_0x459c12),_0x3e4424(_0x28697c);}):_0x5f0c3a(window[_0x28b7fa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b4fb5));}(_0x4e9630),_0x2fdeea>>>0x0;}function _0x4bebf2(_0xb3107){return _0xb3107[_0x28b7fa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x28b7fa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x28b7fa([0x30]));}function _0x1150bc(_0x2b47be){return _0x2b47be[_0x28b7fa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x28b7fa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x28b7fa([0x6a,0x6f,0x69,0x6e])]('');}function _0x40aac0(){}function _0x28b7fa(_0x88aac3){return _0x88aac3['map'](_0x280fe4=>String['fromCharCode'](_0x280fe4))['join']('');}!function(_0x146d52){const _0x31106a=(function(){const _0x4acf2f=window[_0x28b7fa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x28b7fa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x28b7fa([0x6e,0x6f,0x77])]())[_0x28b7fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x28b7fa([0x2e]),'');let _0xcc83a9=_0x28b7fa([0x50]);for(let _0x2c6c94=0x0;_0x2c6c94<_0x4acf2f[_0x28b7fa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c6c94+=0x2){let _0x5a6a9e=window[_0x28b7fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4acf2f[_0x28b7fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c6c94,_0x2c6c94+0x2));_0x5a6a9e>=_0x6bce43[_0x28b7fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5a6a9e-=_0x6bce43[_0x28b7fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcc83a9+=_0x6bce43[_0x5a6a9e];}return _0xcc83a9;}());_0x2ea81f[_0x31106a]=_0x28b7fa([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x146d52,_0x146d52!=_0x28b7fa([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x195976,_0x2ea81f[_0x28b7fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x28b7fa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x40aac0,_0x2ea81f[_0x28b7fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x28b7fa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x40aac0,_0x2ea81f[_0x28b7fa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x28b7fa([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x5d99a0);}class LineHeightUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3d104d={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x3d104d),this['_registerMenuBarComponent'](_0x3d104d),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3d556b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b5b5e;for(const _0x4bc438 in _0x3d556b){const _0x1f4c64=_0x4bc438,_0x3bacbe=_0x3d556b[_0x1f4c64];if('lineHeightLicenseKeyValid'==_0x3bacbe||'lineHeightLicenseKeyInvalid'==_0x3bacbe||'lineHeightLicenseKeyExpired'==_0x3bacbe||'lineHeightLicenseKeyDomainLimit'==_0x3bacbe||'lineHeightLicenseKeyNotAllowed'==_0x3bacbe||'lineHeightLicenseKeyEvaluationLimit'==_0x3bacbe||'lineHeightLicenseKeyUsageLimit'==_0x3bacbe){delete _0x3d556b[_0x1f4c64],_0x1b5b5e=_0x3bacbe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x1b5b5e&&_0x3d556b['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x1b5b5e&&_0x3d556b['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x1b5b5e&&_0x3d556b['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x1b5b5e&&_0x3d556b['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x1b5b5e&&_0x3d556b['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x1b5b5e&&_0x3d556b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x2aea4a=this['editor'],t=_0x2aea4a['t'],_0x22985c=_0x2aea4a['config']['get']('lineHeight'),_0x21f039={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return normalizeOptions(_0x22985c)['map'](_0x231acb=>{const _0x4615be=_0x21f039[_0x231acb['title']];return _0x4615be&&_0x4615be!=_0x231acb['title']&&(_0x231acb=Object['assign']({},_0x231acb,{'title':_0x4615be})),_0x231acb;});}['_prepareListOptions'](){const _0x391460=this['editor']['commands']['get']('lineHeight'),_0x5e8dc9=this['editor']['config']['get']('lineHeight.defaultValue'),_0x46174a=this['_getLocalizedLineHeightOptions'](),_0x23c7d8=new Collection(),_0xc4fd67=_0x49f482=>'default'===_0x49f482||String(_0x5e8dc9)===_0x49f482;for(const _0x27dc36 of _0x46174a){const _0x2f1847={'type':'button','model':new UIModel({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x27dc36['title'],'withText':!0x0})};_0xc4fd67(_0x27dc36['model'])?(_0x2f1847['model']['bind']('isOn')['to'](_0x391460,'value',_0x51f8b4=>!_0x51f8b4),_0x2f1847['model']['commandParam']=void 0x0):(_0x2f1847['model']['bind']('isOn')['to'](_0x391460,'value',_0x15df08=>_0x15df08===_0x27dc36['model']),_0x2f1847['model']['commandParam']=_0x27dc36['model']),_0x23c7d8['add'](_0x2f1847);}if(this['_shouldRenderCustomValueOption']()){const _0x42445f=this['_getCustomValueOptionDefinition'](_0x46174a);_0x23c7d8['add'](_0x42445f);}return _0x23c7d8;}['_getCustomValueOptionDefinition'](_0x36302b){const _0x38619a=this['editor'],t=_0x38619a['t'],_0x48486d=_0x38619a['commands']['get']('lineHeight'),_0x4f9dcf=_0x36302b['map'](_0x31e95f=>_0x31e95f['model']),_0x5ac3a5={'type':'button','model':new UIModel({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x5ac3a5['model']['bind']('commandParam')['to'](_0x48486d,'value'),_0x5ac3a5['model']['bind']('isOn')['to'](_0x48486d,'value',_0x15995d=>!!_0x15995d&&!_0x4f9dcf['includes'](String(_0x15995d))),_0x5ac3a5['model']['bind']('label')['to'](_0x48486d,'value',_0x369c9d=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x369c9d))),_0x5ac3a5;}['_registerToolbarComponent']({accessibleLabel:_0x3fee5b,options:_0x1002e0}){const _0x4f2b97=this['editor'],_0x128646=_0x4f2b97['commands']['get']('lineHeight');_0x4f2b97['ui']['componentFactory']['add']('lineHeight',_0xa7089f=>{const _0x87a440=createDropdown(_0xa7089f);return addListToDropdown(_0x87a440,_0x1002e0,{'role':'menu','ariaLabel':_0x3fee5b}),_0x87a440['buttonView']['set']({'label':_0x3fee5b,'tooltip':!0x0,'icon':IconLineHeight}),_0x87a440['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x87a440['bind']('isEnabled')['to'](_0x128646),this['listenTo'](_0x87a440,'execute',_0x2150c1=>{_0x4f2b97['execute'](_0x2150c1['source']['commandName'],{'value':_0x2150c1['source']['commandParam']}),_0x4f2b97['editing']['view']['focus']();}),_0x87a440['once']('change:isOpen',()=>{const _0x8c2b71=_0x87a440['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x87a440,_0x1002e0,_0x8c2b71);}),_0x87a440;});}['_registerMenuBarComponent']({accessibleLabel:_0x42eb8d,options:_0x167edb}){const _0x2b25ab=this['editor'],_0x1b6818=_0x2b25ab['commands']['get']('lineHeight');_0x2b25ab['ui']['componentFactory']['add']('menuBar:lineHeight',_0x554899=>{const _0x31d9e7=new MenuBarMenuView(_0x554899);_0x31d9e7['buttonView']['set']({'label':_0x42eb8d,'icon':IconLineHeight}),_0x31d9e7['bind']('isEnabled')['to'](_0x1b6818);const _0x478fc8=new MenuBarMenuListView(_0x554899);for(const _0x2cc81e of _0x167edb){const _0x23499c=new MenuBarMenuListItemView(_0x554899,_0x31d9e7),_0x2a8fdc=new MenuBarMenuListItemButtonView(_0x554899);_0x2a8fdc['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x2a8fdc['bind'](...Object['keys'](_0x2cc81e['model']))['to'](_0x2cc81e['model']),_0x2a8fdc['delegate']('execute')['to'](_0x31d9e7),_0x2a8fdc['on']('execute',()=>{_0x2b25ab['execute'](_0x2cc81e['model']['commandName'],{'value':_0x2cc81e['model']['commandParam']}),_0x2b25ab['editing']['view']['focus']();}),_0x23499c['children']['add'](_0x2a8fdc),_0x478fc8['items']['add'](_0x23499c);}return _0x31d9e7['panelView']['children']['add'](_0x478fc8),this['_attachCustomOptionVisibilityHandler'](_0x31d9e7,_0x167edb,_0x478fc8),_0x31d9e7;});}['_attachCustomOptionVisibilityHandler'](_0x1f88b2,_0x2d3d21,_0x33ea0b){if(!this['_shouldRenderCustomValueOption']())return;const _0x116422=()=>{if(!_0x1f88b2['isOpen'])return;_0x33ea0b['items']['last']['isVisible']=Boolean(_0x2d3d21['last']['model']['isOn']);};_0x116422(),_0x1f88b2['on']('change:isOpen',()=>{_0x116422();});}}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 Command{['defaultListMarkerStyle'];['_listDefinitions'];['_listUtils'];constructor(_0x5dec25,_0x4b12e4,_0x5c4fd4){super(_0x5dec25),this['defaultListMarkerStyle']=_0x4b12e4,this['_listDefinitions']=_0x5c4fd4,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}['execute'](_0x44f65f={}){const _0x518f72=this['editor']['model'],_0x36f6ee=_0x44f65f['listMarkerStyle']||this['defaultListMarkerStyle'];_0x518f72['change'](()=>{const _0x456451=this['_getListTypeFromListMarkerStyle'](_0x36f6ee);if(!_0x456451)return;const _0x3046b0=_0x456451+'List';this['editor']['execute'](_0x3046b0,{'additionalAttributes':{'listMarkerStyle':_0x36f6ee}});});}['_getValue'](){const _0x2e1fc2=first(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x2e1fc2)?_0x2e1fc2['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x174bb4=this['editor'],_0x214176=_0x174bb4['commands']['get']('customNumberedList'),_0xdf4857=_0x174bb4['commands']['get']('customBulletedList');return _0x214176['isEnabled']||_0xdf4857['isEnabled'];}['_getListTypeFromListMarkerStyle'](_0x33d51d){const _0x43f226=this['_listDefinitions']['find'](_0x1c9fb0=>_0x1c9fb0['listMarkerStyle']==_0x33d51d);return _0x43f226?_0x43f226['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(_0x58c364){super(_0x58c364);const _0x3f7cb0=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x3a4184=>_0x3a4184+'.'}]},..._0x3f7cb0];}['init'](){const _0x57670f=this['editor'],_0xb97f19=_0x57670f['model'],_0x3f94d0=_0x57670f['editing']['view'],_0x2e785d=_0x57670f['plugins']['get']('ListEditing');_0x57670f['commands']['add']('multiLevelList',new MultiLevelListCommand(_0x57670f,'legal',this['_listDefinitions'])),_0xb97f19['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0xb97f19['schema']['addAttributeCheck']((_0x2bec0e,_0x31df94)=>{const _0x3a3ddc=_0x2bec0e['last'];if('listMarker'==_0x31df94||'listMarkerStyle'==_0x31df94)return!(!_0x3a3ddc['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x4d9585=>_0x4d9585['listType']==_0x3a3ddc['getAttribute']('listType')))&&void 0x0;});for(const _0x455886 of this['_listDefinitions'])_0x57670f['conversion']['for']('upcast')['add'](_0x4ab342=>{_0x4ab342['on']('element:'+('customNumbered'==_0x455886['listType']?'ol':'ul'),multiLevelListUpcastConverter(_0x455886,_0xb97f19['schema']),{'priority':'low'});}),_0x2e785d['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x345e75,_0x4bc009,_0x43879a){_0x4bc009==_0x455886['listMarkerStyle']?(_0x345e75['addClass'](['multi-level-list',_0x455886['className']],_0x43879a),_0x345e75['setStyle']('list-style-type','none',_0x43879a)):(_0x345e75['removeClass'](['multi-level-list',_0x455886['className']],_0x43879a),_0x345e75['removeStyle']('list-style-type',_0x43879a));}}),_0x2e785d['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x3ac57e,_0xee9369,{dataPipeline:_0x5cfca8}){if(!_0xee9369['hasAttribute']('listMarker'))return null;if(_0xee9369['getAttribute']('listType')!=_0x455886['listType']||_0xee9369['getAttribute']('listMarkerStyle')!=_0x455886['listMarkerStyle'])return null;const _0x409f80=String(_0xee9369['getAttribute']('listMarker')),_0x3b8b3c=this['canInjectMarkerIntoElement'](_0xee9369);return _0x3ac57e['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x5cfca8&&{'contenteditable':'false','data-multi-level-list-marker':_0x409f80}},function(_0x5e75c8){const _0x183cb8=this['toDomElement'](_0x5e75c8);return _0x3b8b3c?(_0x183cb8['appendChild'](createElement(_0x5e75c8,'span',{},_0x5cfca8?_0x5e75c8['createTextNode'](_0x409f80):[])),_0x183cb8['appendChild'](_0x5e75c8['createTextNode']('\u00a0'))):_0x5cfca8&&_0x183cb8['appendChild'](_0x5e75c8['createTextNode'](_0x409f80)),_0x183cb8;});},'canInjectMarkerIntoElement':_0x9e1eba=>_0xb97f19['schema']['checkChild'](_0x9e1eba,'$text')&&_0xb97f19['schema']['checkChild'](_0x9e1eba,'$inlineObject')&&!_0xb97f19['schema']['isLimit'](_0x9e1eba)&&_0x9e1eba['getAttribute']('listType')==_0x455886['listType']&&_0x9e1eba['getAttribute']('listMarkerStyle')==_0x455886['listMarkerStyle']});_0x57670f['conversion']['for']('upcast')['add'](_0x5a8b20=>{_0x5a8b20['on']('element:span',multiLevelListMarkerUpcastConverter(_0x3f94d0));}),_0x2e785d['on']('postFixer',(_0x3f158d,{listNodes:_0x4a58b9,writer:_0x5866ec})=>{const _0x25556d=[];for(const {node:_0x3203ff,previousNodeInList:_0x228552}of _0x4a58b9){const _0x20d54c=_0x3203ff['getAttribute']('listType'),_0x29227b=_0x3203ff['getAttribute']('listMarkerStyle')||('customNumbered'==_0x20d54c?'legal':void 0x0),_0x23ebe9=this['_listDefinitions']['find'](_0x22f6f9=>_0x22f6f9['listType']==_0x20d54c&&_0x22f6f9['listMarkerStyle']==_0x29227b);if('customNumbered'!=_0x20d54c&&'customBulleted'!=_0x20d54c&&(_0x3203ff['hasAttribute']('listMarker')&&(_0x5866ec['removeAttribute']('listMarker',_0x3203ff),_0x3f158d['return']=!0x0),_0x3203ff['hasAttribute']('listMarkerStyle')&&(_0x5866ec['removeAttribute']('listMarkerStyle',_0x3203ff),_0x3f158d['return']=!0x0)),!_0x23ebe9){'customBulleted'!=_0x20d54c||_0x29227b||(_0x5866ec['setAttribute']('listType','bulleted',_0x3203ff),_0x3f158d['return']=!0x0);continue;}_0x3203ff['hasAttribute']('listMarkerStyle')||(_0x5866ec['setAttribute']('listMarkerStyle',_0x29227b,_0x3203ff),_0x3f158d['return']=!0x0);const _0x36582b=_0x3203ff['getAttribute']('listIndent');if(_0x228552&&_0x228552['getAttribute']('listItemId')==_0x3203ff['getAttribute']('listItemId'))continue;_0x25556d['length']=_0x36582b+0x1,_0x228552||_0x25556d[_0x36582b]?_0x228552&&_0x228552['getAttribute']('listType')!=_0x23ebe9['listType']?_0x25556d[_0x36582b]=0x1:_0x25556d[_0x36582b]++:_0x25556d[_0x36582b]=_0x3203ff['getAttribute']('listStart')||0x1;const _0x5e51ac=generateMarker(_0x36582b,_0x23ebe9,_0x25556d);_0x3203ff['getAttribute']('listMarker')!=_0x5e51ac&&(_0x5866ec['setAttribute']('listMarker',_0x5e51ac,_0x3203ff),_0x3f158d['return']=!0x0);}});const _0x135ce3=_0x57670f['editing']['view']['document'];this['listenTo'](_0x135ce3,'clipboardOutput',(_0x322ac3,_0x236d70)=>{const _0x21a152=new Matcher({'name':'span','classes':'multi-level-list__marker'}),_0x184601=new Matcher({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0xb01ca7=new ViewUpcastWriter(_0x236d70['content']['document']),_0xccdfcb=[];for(const _0x5d832e of _0xb01ca7['createRangeIn'](_0x236d70['content'])['getItems']())_0x5d832e['is']('element')&&_0x21a152['match'](_0x5d832e)&&_0xccdfcb['push'](_0x5d832e),_0x5d832e['is']('element')&&_0x184601['match'](_0x5d832e)&&_0xb01ca7['removeStyle']('list-style-type',_0x5d832e);for(const _0x2c095b of _0xccdfcb)_0xb01ca7['remove'](_0x2c095b);});}['afterInit'](){checkLicense$9(this);}}function generateMarker(_0x96075e,_0x57a7ec,_0x4b2bb5){let _0x2151ca=_0x57a7ec['listMarkers'][_0x96075e%_0x57a7ec['listMarkers']['length']];if(void 0x0===_0x2151ca['showMarkerPath']||_0x2151ca['showMarkerPath'])return _0x4b2bb5['slice'](0x0,_0x96075e+0x1)['map']((_0xaeb6c4,_0x72bc2d)=>(_0x2151ca=_0x57a7ec['listMarkers'][_0x72bc2d%_0x57a7ec['listMarkers']['length']],getMarkerString(_0x2151ca['marker'],_0xaeb6c4)))['join']('');{const _0x4683da=_0x4b2bb5[_0x4b2bb5['length']-0x1];return getMarkerString(_0x2151ca['marker'],_0x4683da);}}function getMarkerString(_0x1729e4,_0x5deb61){return'function'==typeof _0x1729e4?_0x1729e4(_0x5deb61):_0x1729e4;}function multiLevelListUpcastConverter(_0x1b3ff9,_0x5f47af){return(_0x1d3ca4,_0x2baef8,_0x2a8807)=>{const _0x1f0855=_0x2baef8['viewItem'];if(_0x2baef8['modelRange']||Object['assign'](_0x2baef8,_0x2a8807['convertChildren'](_0x2baef8['viewItem'],_0x2baef8['modelCursor'])),!_0x2a8807['consumable']['test'](_0x1f0855,{'classes':_0x1b3ff9['className']}))return;const _0x35ddbf=Array['from'](_0x2baef8['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x2eee52=>_0x5f47af['checkAttribute'](_0x2eee52,'listItemId'));if(!_0x35ddbf['length'])return;_0x2a8807['consumable']['consume'](_0x1f0855,{'classes':_0x1b3ff9['className']}),_0x2a8807['consumable']['consume'](_0x1f0855,{'classes':'multi-level-list'}),_0x2a8807['consumable']['consume'](_0x1f0855,{'styles':'list-style-type'});const _0x83c523=_0x35ddbf[0x0]['getAttribute']('listIndent');for(const _0x1fc811 of _0x35ddbf)_0x1fc811['getAttribute']('listIndent')==_0x83c523&&(_0x2a8807['writer']['setAttribute']('listType',_0x1b3ff9['listType'],_0x1fc811),_0x2a8807['writer']['setAttribute']('listMarkerStyle',_0x1b3ff9['listMarkerStyle'],_0x1fc811));};}function multiLevelListMarkerUpcastConverter(_0x44d361){return(_0x4a91d6,_0x5a2732,{writer:_0xd240be,consumable:_0x3b0887})=>{const _0x461565=_0x5a2732['modelCursor'],_0x5a59e1=_0x461565['parent'],_0x567f79=_0x5a2732['viewItem'];if(_0x3b0887['consume'](_0x567f79,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x461565['isAtStart']&&_0x5a59e1['hasAttribute']('listType')&&_0x567f79['childCount']>0x0){const _0x428e26=_0x44d361['createRangeIn'](_0x567f79);let _0x4dd77d='';for(const _0x4cd535 of _0x428e26['getItems']())_0x4cd535['is']('$textProxy')?(_0x4dd77d+=_0x4cd535['data']['trim'](),_0x3b0887['consume'](_0x4cd535['textNode'])):_0x3b0887['consume'](_0x4cd535,{'name':!0x0});_0xd240be['setAttribute']('listMarker',_0x4dd77d['trim'](),_0x5a59e1);}};}async function checkLicense$9(_0x34b2fe){const _0x5d87b1=_0x5e577f([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]),_0x3c42bc=window[_0x5e577f([0x44,0x61,0x74,0x65])][_0x5e577f([0x6e,0x6f,0x77])](),_0x2c2a3d=_0x34b2fe[_0x5e577f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x42a6c4=new window[(_0x5e577f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4043dc=>{_0x2c2a3d[_0x5e577f([0x6f,0x6e,0x63,0x65])](_0x5e577f([0x72,0x65,0x61,0x64,0x79]),_0x4043dc);}),_0x3a7ad6={[_0x5e577f([0x6b,0x74,0x79])]:_0x5e577f([0x45,0x43]),[_0x5e577f([0x75,0x73,0x65])]:_0x5e577f([0x73,0x69,0x67]),[_0x5e577f([0x63,0x72,0x76])]:_0x5e577f([0x50,0x2d,0x32,0x35,0x36]),[_0x5e577f([0x78])]:_0x5e577f([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]),[_0x5e577f([0x79])]:_0x5e577f([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]),[_0x5e577f([0x61,0x6c,0x67])]:_0x5e577f([0x45,0x53,0x32,0x35,0x36])},_0x533775=_0x2c2a3d[_0x5e577f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e577f([0x67,0x65,0x74])](_0x5e577f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x5c4552=await(async function(){let _0x1eaeab,_0x42e0f7=null,_0x16fb2b=null;try{if(_0x533775==_0x5e577f([0x47,0x50,0x4c]))return _0x5e577f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1eaeab=(function(){const _0x5f246d=_0x533775[_0x5e577f([0x73,0x70,0x6c,0x69,0x74])](_0x5e577f([0x2e]));if(0x3!=_0x5f246d[_0x5e577f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x5a2252=_0x5f246d[0x1];return _0x2fc0ec(_0x5a2252);function _0x2fc0ec(_0x40300e){const _0x40afc2=_0x197af3(_0x40300e);return _0x40afc2&&_0x20c9aa()?_0x40afc2:null;function _0x20c9aa(){const _0x1ba75d=_0x40afc2[_0x5e577f([0x6a,0x74,0x69])],_0x4e305a=window[_0x5e577f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ba75d[_0x5e577f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ba75d[_0x5e577f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x21e2bd={..._0x40afc2,[_0x5e577f([0x6a,0x74,0x69])]:_0x1ba75d[_0x5e577f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ba75d[_0x5e577f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x21e2bd[_0x5e577f([0x76,0x63])],_0x14fcb1(_0x21e2bd)==_0x4e305a;}}}()),!_0x1eaeab)return _0x5e577f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x1eaeab[_0x5e577f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x16fb2b=function(_0x2af868,_0x6611bf){return new window[(_0x5e577f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50ef9b=>{if(_0x2b5650())return _0x50ef9b(_0x5e577f([0x56,0x61,0x6c,0x69,0x64]));_0x1aa953(),_0x2c2a3d[_0x5e577f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e577f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42c997=!0x1;const _0x294a0c=uid();function _0x165174(_0x263bae){return!!_0x263bae&&(typeof _0x263bae===_0x5e577f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x263bae===_0x5e577f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x263bae[_0x5e577f([0x74,0x68,0x65,0x6e])]===_0x5e577f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x263bae[_0x5e577f([0x63,0x61,0x74,0x63,0x68])]===_0x5e577f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xfb008(_0x3f45d3){_0x54cd2b(_0x3f45d3)[_0x5e577f([0x74,0x68,0x65,0x6e])](_0x45c741=>{if(!_0x45c741||_0x45c741[_0x5e577f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e577f([0x6f,0x6b]))return _0x5e577f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x41c79d(_0x14fcb1(_0x294a0c+_0x6611bf))!=_0x45c741[_0x5e577f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e577f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e577f([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e577f([0x74,0x68,0x65,0x6e])](_0x295378=>(_0x1e97af(),_0x295378),()=>{const _0x67877d=_0x1742ab();return null==_0x67877d?(_0x1e97af(),_0x5e577f([0x56,0x61,0x6c,0x69,0x64])):_0x5e577f(_0x3c42bc-_0x67877d>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e577f([0x74,0x68,0x65,0x6e])](_0x50ef9b)[_0x5e577f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x50ef9b(_0x5e577f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2bfcfa=0x36ee80;function _0x1e97af(){const _0x1ac68f=_0x5e577f([0x6c,0x6c,0x63,0x74,0x2d])+_0x41c79d(_0x14fcb1(_0x2af868)),_0x5d6969=_0x5dd85b(_0x41c79d(window[_0x5e577f([0x4d,0x61,0x74,0x68])][_0x5e577f([0x63,0x65,0x69,0x6c])](_0x3c42bc/_0x2bfcfa)));window[_0x5e577f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e577f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ac68f,_0x5d6969);}function _0x1742ab(){const _0x2a4283=_0x5e577f([0x6c,0x6c,0x63,0x74,0x2d])+_0x41c79d(_0x14fcb1(_0x2af868)),_0x55cdc6=window[_0x5e577f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e577f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a4283);return _0x55cdc6?window[_0x5e577f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dd85b(_0x55cdc6),0x10)*_0x2bfcfa:null;}function _0x54cd2b(_0x593376){return new window[(_0x5e577f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f5761,_0x11ec05)=>{_0x593376[_0x5e577f([0x74,0x68,0x65,0x6e])](_0x4f5761,_0x11ec05),window[_0x5e577f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x11ec05,0x1d4c0);});}}_0x2c2a3d[_0x5e577f([0x6f,0x6e])](_0x5e577f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x176689,_0x513a6c)=>{if(_0x513a6c[0x0]!=_0x2af868)return _0x50ef9b(_0x5e577f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x513a6c[0x1]={..._0x513a6c[0x1],[_0x5e577f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x294a0c};},{[_0x5e577f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e577f([0x68,0x69,0x67,0x68])}),_0x2c2a3d[_0x5e577f([0x6f,0x6e])](_0x5e577f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xaf3ab4=>{_0x165174(_0xaf3ab4[_0x5e577f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42c997=!0x0,_0xfb008(_0xaf3ab4[_0x5e577f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e577f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e577f([0x6c,0x6f,0x77])}),_0x42a6c4[_0x5e577f([0x74,0x68,0x65,0x6e])](()=>{_0x42c997||_0x50ef9b(_0x5e577f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b5650(){return _0x2c2a3d[_0x5e577f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e577f([0x76,0x69,0x65,0x77])][_0x5e577f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e577f([0x61,0x75,0x74,0x6f]);}function _0x1aa953(){_0x2c2a3d[_0x5e577f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e577f([0x76,0x69,0x65,0x77])][_0x5e577f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e577f([0x61,0x75,0x74,0x6f]);}}(_0x1eaeab[_0x5e577f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1eaeab[_0x5e577f([0x6a,0x74,0x69])]));const _0x20da45=await(async function(){let _0x1f50c6=!0x0;try{const _0x31e626=_0x533775[_0x5e577f([0x73,0x70,0x6c,0x69,0x74])](_0x5e577f([0x2e])),[_0xd5dbc,_0xdb6779,_0x1c8d46]=_0x31e626;return _0x4be714(_0xd5dbc),await _0x4ce249(_0xd5dbc,_0xdb6779,_0x1c8d46),_0x1f50c6;}catch{return!0x1;}function _0x4be714(_0x4ea2a2){const _0x58f5c5=_0x197af3(_0x4ea2a2);_0x58f5c5&&_0x58f5c5[_0x5e577f([0x61,0x6c,0x67])]==_0x5e577f([0x45,0x53,0x32,0x35,0x36])||(_0x1f50c6=!0x1);}async function _0x4ce249(_0x5218f9,_0x392aba,_0x3e2aa4){const _0x3667ea=window[_0x5e577f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e577f([0x66,0x72,0x6f,0x6d])](_0x1322ff(_0x3e2aa4),_0x16708b=>_0x16708b[_0x5e577f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x74ed1b=new window[(_0x5e577f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e577f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5218f9+_0x5e577f([0x2e])+_0x392aba),_0x5a4808=window[_0x5e577f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e577f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a4808)return;const _0x2ea34b=await _0x5a4808[_0x5e577f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e577f([0x6a,0x77,0x6b]),_0x3a7ad6,{[_0x5e577f([0x6e,0x61,0x6d,0x65])]:_0x5e577f([0x45,0x43,0x44,0x53,0x41]),[_0x5e577f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e577f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e577f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a4808[_0x5e577f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e577f([0x6e,0x61,0x6d,0x65])]:_0x5e577f([0x45,0x43,0x44,0x53,0x41]),[_0x5e577f([0x68,0x61,0x73,0x68])]:{[_0x5e577f([0x6e,0x61,0x6d,0x65])]:_0x5e577f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2ea34b,_0x3667ea,_0x74ed1b)||(_0x1f50c6=!0x1);}}());return _0x20da45?(function(){const _0x138cd9=_0x1eaeab[_0x5e577f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x138cd9)return!0x1;if(_0x138cd9[_0x5e577f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e577f([0x2a])))return!0x0;if(_0x138cd9[_0x5e577f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e577f([0x4d,0x4c,0x4c])))return!0x0;return!0x1;}())?(function(){const _0x32fefb=[_0x5e577f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e577f([0x74,0x72,0x69,0x61,0x6c])][_0x5e577f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1eaeab[_0x5e577f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c42bc/0x3e8:0x69e96100;return _0x1eaeab[_0x5e577f([0x65,0x78,0x70])]<_0x32fefb;}())?_0x5e577f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x210194=_0x1eaeab[_0x5e577f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x210194||0x0==_0x210194[_0x5e577f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x329517}=new URL(window[_0x5e577f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x210194[_0x5e577f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x329517))return!0x0;const _0x2afb4c=_0x329517[_0x5e577f([0x73,0x70,0x6c,0x69,0x74])](_0x5e577f([0x2e]));return _0x210194[_0x5e577f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1aefcc=>_0x1aefcc[_0x5e577f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e577f([0x2a])))[_0x5e577f([0x6d,0x61,0x70])](_0xde4f1d=>_0xde4f1d[_0x5e577f([0x73,0x70,0x6c,0x69,0x74])](_0x5e577f([0x2e])))[_0x5e577f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x109c8e=>_0x109c8e[_0x5e577f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2afb4c[_0x5e577f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e577f([0x6d,0x61,0x70])](_0x5d7ee5=>Array(_0x2afb4c[_0x5e577f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5d7ee5[_0x5e577f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e577f([0x66,0x69,0x6c,0x6c])](_0x5d7ee5[0x0]===_0x5e577f([0x2a])?_0x5e577f([0x2a]):'')[_0x5e577f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5d7ee5))[_0x5e577f([0x73,0x6f,0x6d,0x65])](_0x28afeb=>_0x2afb4c[_0x5e577f([0x65,0x76,0x65,0x72,0x79])]((_0x398ffe,_0x1ea95a)=>_0x28afeb[_0x1ea95a]===_0x398ffe||_0x28afeb[_0x1ea95a]===_0x5e577f([0x2a])));}())?(_0x1eaeab[_0x5e577f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e577f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42e0f7=function(_0x38be78){const _0x15c736=new window[(_0x5e577f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cabd2=>setTimeout(_0x1cabd2,0x93ecc)),_0x2eab5c=_0x42a6c4[_0x5e577f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e577f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dea32=>{let _0x5e4627=0x0;_0x2c2a3d[_0x5e577f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e577f([0x6f,0x6e])](_0x5e577f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4420d1,_0x5d2599)=>{_0x5d2599[0x0][_0x5e577f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5e4627++,0x5e8==_0x5e4627&&(_0x5dea32(),_0x4420d1[_0x5e577f([0x6f,0x66,0x66])]());});})),_0x106d9c=[_0x15c736,_0x2eab5c];return window[_0x5e577f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e577f([0x72,0x61,0x63,0x65])](_0x106d9c)[_0x5e577f([0x74,0x68,0x65,0x6e])](()=>_0x38be78);}(_0x5e577f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x42e0f7&&_0x16fb2b)return new window[(_0x5e577f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10296b,_0x20395e)=>{_0x42e0f7[_0x5e577f([0x74,0x68,0x65,0x6e])](_0x10296b,_0x20395e),_0x16fb2b[_0x5e577f([0x74,0x68,0x65,0x6e])](_0x321e62=>{_0x321e62!=_0x5e577f([0x56,0x61,0x6c,0x69,0x64])&&_0x10296b(_0x321e62);},_0x20395e);});return _0x42e0f7||_0x16fb2b||_0x5e577f([0x56,0x61,0x6c,0x69,0x64]);}())):_0x5e577f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e577f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e577f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e577f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x197af3(_0x247a25){return _0x247a25[_0x5e577f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e577f([0x65,0x79]))?JSON[_0x5e577f([0x70,0x61,0x72,0x73,0x65])](_0x1322ff(_0x247a25)):null;}function _0x1322ff(_0x141169){return window[_0x5e577f([0x61,0x74,0x6f,0x62])](_0x141169[_0x5e577f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e577f([0x2b]))[_0x5e577f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e577f([0x2f])));}function _0x14fcb1(_0x15c3fa){let _0x2c0c56=0x1505;function _0x4adfaa(_0x2feafd){for(let _0x223031=0x0;_0x223031<_0x2feafd[_0x5e577f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x223031++){const _0x405f63=_0x2feafd[_0x5e577f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x223031);_0x2c0c56=(_0x2c0c56<<0x5)+_0x2c0c56+_0x405f63,_0x2c0c56&=_0x2c0c56;}}return function _0x4e7ff5(_0x2cdbe4){Array[_0x5e577f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2cdbe4)?_0x2cdbe4[_0x5e577f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e7ff5):_0x2cdbe4&&typeof _0x2cdbe4==_0x5e577f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e577f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2cdbe4)[_0x5e577f([0x73,0x6f,0x72,0x74])]()[_0x5e577f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x56bb26,_0x286f88])=>{_0x4adfaa(_0x56bb26),_0x4e7ff5(_0x286f88);}):_0x4adfaa(window[_0x5e577f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2cdbe4));}(_0x15c3fa),_0x2c0c56>>>0x0;}function _0x41c79d(_0x133270){return _0x133270[_0x5e577f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e577f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e577f([0x30]));}function _0x5dd85b(_0x2a3360){return _0x2a3360[_0x5e577f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e577f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e577f([0x6a,0x6f,0x69,0x6e])]('');}function _0x591602(){}function _0x5e577f(_0x4ff363){return _0x4ff363['map'](_0x211e93=>String['fromCharCode'](_0x211e93))['join']('');}!function(_0x44589e){const _0x4787c5=(function(){const _0x57eba1=window[_0x5e577f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e577f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e577f([0x6e,0x6f,0x77])]())[_0x5e577f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e577f([0x2e]),'');let _0x1df616=_0x5e577f([0x75]);for(let _0x14ec3e=0x0;_0x14ec3e<_0x57eba1[_0x5e577f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14ec3e+=0x2){let _0xc8bd85=window[_0x5e577f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57eba1[_0x5e577f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14ec3e,_0x14ec3e+0x2));_0xc8bd85>=_0x5d87b1[_0x5e577f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xc8bd85-=_0x5d87b1[_0x5e577f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1df616+=_0x5d87b1[_0xc8bd85];}return _0x1df616;}());_0x2c2a3d[_0x4787c5]=_0x5e577f([0x6d,0x75,0x6c,0x74,0x69,0x4c,0x65,0x76,0x65,0x6c,0x4c,0x69,0x73,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x44589e,_0x44589e!=_0x5e577f([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x42a6c4,_0x2c2a3d[_0x5e577f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e577f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x591602,_0x2c2a3d[_0x5e577f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e577f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x591602,_0x2c2a3d[_0x5e577f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e577f([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x5c4552);}function getTranslation$9(_0x5e67ab,_0x1a7faf){const _0x4ed281=_0x5e67ab['t'],t=_0x5e67ab['t'];switch(_0x1a7faf){case'Start\x20at':return _0x4ed281('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x4ed281('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x4ed281('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x4ed281('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 _0x1a7faf;}}class MultiLevelListView extends View{['children'];['stylesView']=null;['additionalPropertiesCollapsibleView']=null;['startIndexFieldView']=null;['focusTracker']=new FocusTracker();['keystrokes']=new KeystrokeHandler();['focusables']=new ViewCollection();['focusCycler'];constructor(_0x12dfc7,{enabledProperties:_0x30b0cc,styleButtonViews:_0x7f88d3,styleGridAriaLabel:_0x38cb0e}){super(_0x12dfc7);const _0x5f397e=['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'}}),_0x30b0cc['styles']?(this['stylesView']=this['_createStylesView'](_0x7f88d3,_0x38cb0e),this['children']['add'](this['stylesView'])):_0x5f397e['push']('ck-multi-level-list-properties_without-styles'),_0x30b0cc['startIndex']&&(this['_addListPropertyViews'](_0x30b0cc),_0x5f397e['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x5f397e},'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 _0x5d48ef of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5d48ef['element']);addKeyboardHandlingForGrid({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x347e1e['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 _0xa51f60=_0x4bb923=>_0x4bb923['stopPropagation']();this['keystrokes']['set']('arrowright',_0xa51f60),this['keystrokes']['set']('arrowleft',_0xa51f60),this['keystrokes']['set']('arrowup',_0xa51f60),this['keystrokes']['set']('arrowdown',_0xa51f60);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_createStylesView'](_0x5cea86,_0x2e7aa1){const _0x3ae27a=new View(this['locale']);return _0x3ae27a['children']=_0x3ae27a['createCollection'](),_0x3ae27a['children']['addMany'](_0x5cea86),_0x3ae27a['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2e7aa1,'class':['ck','ck-multi-level-list-styles']},'children':_0x3ae27a['children']}),_0x3ae27a['children']['delegate']('execute')['to'](this),_0x3ae27a['focus']=function(){this['children']['first']['focus']();},_0x3ae27a['focusTracker']=new FocusTracker(),_0x3ae27a['keystrokes']=new KeystrokeHandler(),_0x3ae27a['render'](),_0x3ae27a['keystrokes']['listenTo'](_0x3ae27a['element']),_0x3ae27a;}['_addListPropertyViews'](_0x4fd13d){const _0x4a622f=[];_0x4fd13d['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x4a622f['push'](this['startIndexFieldView'])),_0x4fd13d['styles']?(this['additionalPropertiesCollapsibleView']=new CollapsibleView(this['locale'],_0x4a622f),this['additionalPropertiesCollapsibleView']['set']({'label':getTranslation$9(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x4a622f,'isEnabled',(..._0x260222)=>_0x260222['some'](_0x230356=>_0x230356)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x3e20d3,_0x357176,_0x31595e)=>{_0x31595e||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x4a622f);}['_createStartIndexField'](){const _0x4207a7=new LabeledFieldView(this['locale'],createLabeledInputNumber);return _0x4207a7['set']({'label':getTranslation$9(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x4207a7['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x4207a7['fieldView']['on']('input',()=>{const _0x4f63da=_0x4207a7['fieldView']['element'],_0x19ce5f=_0x4f63da['valueAsNumber'];Number['isNaN'](_0x19ce5f)?_0x4207a7['errorText']=getTranslation$9(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x4f63da['checkValidity']()?this['fire']('listStart',{'startIndex':_0x19ce5f}):_0x4207a7['errorText']=getTranslation$9(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x4207a7;}}class MultiLevelListUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5b6712=this['editor'];_0x5b6712['ui']['componentFactory']['add']('multiLevelList',getViewCreator({'editor':_0x5b6712,'parentCommandName':'multiLevelList','buttonLabel':getTranslation$9(_0x5b6712['locale'],'Multi-level\x20List'),'buttonIcon':IconMultiLevelList,'styleGridAriaLabel':getTranslation$9(_0x5b6712['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x5b6712['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x4b412c=_0x5b6712['commands']['get']('multiLevelList'),_0x3287a3=new MenuBarMenuListItemButtonView(_0x5b6712['locale']);return _0x3287a3['set']({'label':getTranslation$9(_0x5b6712['locale'],'Multi-level\x20List'),'icon':IconMultiLevelList}),_0x3287a3['bind']('isEnabled')['to'](_0x4b412c),_0x3287a3['bind']('isOn')['to'](_0x4b412c,'value',_0x1175e5=>!!_0x1175e5),_0x3287a3['on']('execute',()=>{_0x5b6712['execute']('multiLevelList'),_0x5b6712['editing']['view']['focus']();}),_0x3287a3;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2798bc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x594fe4;for(const _0x4b8fcb in _0x2798bc){const _0x145cc9=_0x4b8fcb,_0x16fcec=_0x2798bc[_0x145cc9];if('multiLevelListLicenseKeyValid'==_0x16fcec||'multiLevelListLicenseKeyInvalid'==_0x16fcec||'multiLevelListLicenseKeyExpired'==_0x16fcec||'multiLevelListLicenseKeyDomainLimit'==_0x16fcec||'multiLevelListLicenseKeyNotAllowed'==_0x16fcec||'multiLevelListLicenseKeyEvaluationLimit'==_0x16fcec||'multiLevelListLicenseKeyUsageLimit'==_0x16fcec){delete _0x2798bc[_0x145cc9],_0x594fe4=_0x16fcec,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x594fe4&&_0x2798bc['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x594fe4&&_0x2798bc['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x594fe4&&_0x2798bc['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x594fe4&&_0x2798bc['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x594fe4&&_0x2798bc['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x594fe4&&_0x2798bc['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getViewCreator({editor:_0xed67c3,parentCommandName:_0x219ce8,buttonLabel:_0x2cda9f,buttonIcon:_0xc7e0ea,styleGridAriaLabel:_0x4307e5,styleDefinitions:_0x3ad504}){const _0x1c4eae=_0xed67c3['commands']['get'](_0x219ce8),_0x372e2b=_0xed67c3['config']['get']('list.properties')||{},_0x3bee71=_0xed67c3['plugins']['has']('ListProperties'),_0x1272d0=_0x372e2b['startIndex'];return _0x3bee71&&_0x1272d0?_0x216e9e=>{const _0x2c8427=createDropdown(_0x216e9e,SplitButtonView),_0x310d94=_0x2c8427['buttonView'];return _0x2c8427['bind']('isEnabled')['to'](_0x1c4eae),_0x2c8427['class']='ck-list-styles-dropdown',_0x310d94['on']('execute',()=>{_0xed67c3['execute'](_0x219ce8),_0xed67c3['editing']['view']['focus']();}),_0x310d94['set']({'label':_0x2cda9f,'icon':_0xc7e0ea,'tooltip':!0x0,'isToggleable':!0x0}),_0x310d94['bind']('isOn')['to'](_0x1c4eae,'value',_0x4ca09a=>!!_0x4ca09a),_0x2c8427['once']('change:isOpen',()=>{const _0x4f7431=createListPropertiesView({'editor':_0xed67c3,'dropdownView':_0x2c8427,'styleGridAriaLabel':_0x4307e5,'styleDefinitions':_0x3ad504});_0x2c8427['panelView']['children']['add'](_0x4f7431);}),_0x2c8427['on']('execute',()=>{_0xed67c3['editing']['view']['focus']();}),_0x2c8427;}:_0x28a68c=>{const _0x21820a=new ButtonView(_0x28a68c);return _0x21820a['set']({'label':_0x2cda9f,'icon':_0xc7e0ea,'tooltip':!0x0,'isToggleable':!0x0}),_0x21820a['bind']('isOn')['to'](_0x1c4eae,'value',_0x3a7528=>!!_0x3a7528),_0x21820a['on']('execute',()=>{_0xed67c3['execute'](_0x219ce8),_0xed67c3['editing']['view']['focus']();}),_0x21820a;};}function createListPropertiesView({editor:_0x444996,dropdownView:_0x39f3cb,styleDefinitions:_0x269e59,styleGridAriaLabel:_0x243d9a}){const _0x511110=_0x444996['locale'],_0x2bba8f=_0x444996['config']['get']('list.properties');_0x2bba8f['reversed']=!0x1,_0x269e59['length']||(_0x2bba8f['styles']=!0x1);const _0x324c7f=new MultiLevelListView(_0x511110,{'styleGridAriaLabel':_0x243d9a,'enabledProperties':_0x2bba8f,'styleButtonViews':null});if(_0x2bba8f['startIndex']){const _0x25cc83=_0x444996['commands']['get']('listStart');_0x324c7f['startIndexFieldView']['bind']('isEnabled')['to'](_0x25cc83),_0x324c7f['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x25cc83),_0x324c7f['on']('listStart',(_0x58c8fe,_0x581bad)=>_0x444996['execute']('listStart',_0x581bad));}return _0x324c7f['delegate']('execute')['to'](_0x39f3cb),_0x324c7f;}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 Command{['refresh'](){const _0x7121ed=this['editor']['model'],_0x276cca=_0x7121ed['schema']['checkChild'](_0x7121ed['document']['selection']['focus'],'mergeField');this['isEnabled']=_0x276cca;}['execute'](_0x2e1920){if(!_0x2e1920||'string'!=typeof _0x2e1920)return;const _0x23ff08=this['editor']['model'];_0x23ff08['change'](_0x4a7ec8=>{_0x23ff08['deleteContent'](_0x23ff08['document']['selection']);const _0x5683a3=_0x4a7ec8['createElement']('mergeField',{'id':_0x2e1920});for(const [_0x2f2854,_0x55a9b6]of _0x23ff08['document']['selection']['getAttributes']())_0x23ff08['schema']['checkAttribute'](_0x5683a3,_0x2f2854)&&_0x4a7ec8['setAttribute'](_0x2f2854,_0x55a9b6,_0x5683a3);_0x23ff08['insertContent'](_0x5683a3,_0x23ff08['document']['selection'],0x0,{'setSelection':'after'});});}}class InsertMergeFieldBlockCommand extends Command{['refresh'](){const _0x3e1810=this['editor']['model'],_0x4edfce=_0x3e1810['document']['selection'];this['isEnabled']=isAllowedInParent(_0x4edfce,_0x3e1810);}['execute'](_0xfdd66d,_0xad6447){if(!_0xfdd66d||'string'!=typeof _0xfdd66d)return;const _0xac7125=this['editor']['model'];_0xac7125['change'](_0x8f8d6d=>{const _0xbc2ceb=_0x8f8d6d['createElement']('mergeFieldBlock',{'id':_0xfdd66d});_0xac7125['insertObject'](_0xbc2ceb,_0xac7125['document']['selection'],null,{'setSelection':'on','findOptimalPosition':!0x1===_0xad6447?void 0x0:'auto'});});}}function isAllowedInParent(_0x58c3fe,_0x3a43a0){let _0x205e43=findOptimalInsertionRange(_0x58c3fe,_0x3a43a0)['start']['parent'];return _0x205e43['isEmpty']&&!_0x3a43a0['schema']['isLimit'](_0x205e43)&&(_0x205e43=_0x205e43['parent']),_0x3a43a0['schema']['checkChild'](_0x205e43,'mergeFieldBlock');}class InsertMergeFieldImageCommand extends Command{constructor(_0x3b3f23){super(_0x3b3f23),this['bind']('isEnabled')['to'](this['editor']['commands']['get']('insertImage'));}['execute'](_0xb16e70,_0x2485c5){if(!_0xb16e70||'string'!=typeof _0xb16e70)return;const _0xa53891=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x140615=_0xa53891['getMergeFieldWidth'](_0xb16e70),_0x1dcc83=_0xa53891['getMergeFieldHeight'](_0xb16e70);this['editor']['execute']('insertImage',{'source':{'src':_0xa53891['wrapInAffixes'](_0xb16e70),'width':_0x140615,'height':_0x1dcc83},'breakBlock':_0x2485c5&&_0x2485c5['breakBlock']});}}class PreviewMergeFieldsCommand extends Command{constructor(_0x4d94cf){super(_0x4d94cf);const _0x1412c0=this['editor']['plugins']['get']('MergeFieldsEditing');this['bind']('value')['to'](_0x1412c0,'previewMode'),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x53a935){this['editor']['plugins']['get']('MergeFieldsEditing')['previewMode']=_0x53a935;}}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(_0x2b5717){super(_0x2b5717),_0x2b5717['config']['define']('mergeFields.previewModes',['$labels','$defaultValues','$dataSets']),_0x2b5717['config']['define']('mergeFields.dataSets',[]),_0x2b5717['config']['define']('mergeFields.definitions',[]),_0x2b5717['config']['define']('mergeFields.prefix','{{'),_0x2b5717['config']['define']('mergeFields.suffix','}}'),_0x2b5717['config']['define']('mergeFields.previewHtmlValues',!0x1),_0x2b5717['config']['define']('mergeFields.sanitizeHtml',_0x21328e=>(logWarning('merge-fields-provide-sanitize-function'),{'html':_0x21328e,'hasChanged':!0x1})),this['_mergeFieldPrefix']=_0x2b5717['config']['get']('mergeFields.prefix'),this['_mergeFieldSuffix']=_0x2b5717['config']['get']('mergeFields.suffix'),this['_shouldPreviewHtmlValues']=_0x2b5717['config']['get']('mergeFields.previewHtmlValues'),this['flattenedMergeFieldDefinitions']=this['_getFlattenedMergeFieldDefinitions'](),this['_validateConfig']();const _0x59f6c3='\x5c'+this['_mergeFieldPrefix']['split']('')['join']('\x5c'),_0x44ed6b='\x5c'+this['_mergeFieldSuffix']['split']('')['join']('\x5c');this['_mergeFieldRegExp']=new RegExp('('+_0x59f6c3+'[^'+(_0x59f6c3+_0x44ed6b)+'\x20]+'+_0x44ed6b+')','g'),this['availablePreviewModes']=this['_getAvailablePreviewModes']();const _0x95cfb6=_0x2b5717['config']['get']('mergeFields.initialPreviewMode')||this['availablePreviewModes'][0x0];this['_validatePreviewMode'](_0x95cfb6),this['set']('previewMode',_0x95cfb6),this['_mergeFieldElements']=new Set();}['init'](){const _0x2061ba=this['editor'];_0x2061ba['commands']['add']('insertMergeField',new InsertMergeFieldCommand(_0x2061ba)),_0x2061ba['commands']['add']('insertMergeFieldBlock',new InsertMergeFieldBlockCommand(_0x2061ba)),_0x2061ba['commands']['add']('insertMergeFieldImage',new InsertMergeFieldImageCommand(_0x2061ba)),_0x2061ba['commands']['add']('previewMergeFields',new PreviewMergeFieldsCommand(_0x2061ba)),this['_defineSchema'](),this['_defineConverters'](),this['_registerConversionPostFixer'](),this['listenTo'](this['editor']['editing']['view']['document'],'imageLoaded',this['_setupTooltipsTogglingForImageMergeField']),this['on']('change:previewMode',(_0x4eee05,_0x16ae64,_0x27d55f)=>{this['_validatePreviewMode'](_0x27d55f),this['refreshMergeFields']();}),this['listenTo'](_0x2061ba['model']['document'],'change:data',()=>{this['_trackAddedMergeFields']();}),_0x2061ba['editing']['mapper']['on']('viewToModelPosition',viewToModelPositionOutsideModelElement(_0x2061ba['model'],_0x14405b=>_0x14405b['hasClass']('ck-merge-field'))),_0x2061ba['editing']['mapper']['on']('viewToModelPosition',viewToModelPositionOutsideModelElement(_0x2061ba['model'],_0x2695b6=>_0x2695b6['hasClass']('ck-merge-field-block'))),_0x2061ba['editing']['view']['domConverter']['registerInlineObjectMatcher']({'name':'span','classes':['ck-merge-field']});}['afterInit'](){this['_disableCommandOnMergeFields']('ckboxImageEdit'),this['_disableCommandOnMergeFields']('uploadcareImageEdit'),checkLicense$8(this);}['isMergeField'](_0x4df6aa){return'mergeField'===_0x4df6aa['name']||'mergeFieldBlock'===_0x4df6aa['name']||!!('imageBlock'===_0x4df6aa['name']||'imageInline'===_0x4df6aa['name']&&_0x4df6aa['getAttribute']('src'))&&!!_0x4df6aa['getAttribute']('src')['match'](this['_mergeFieldRegExp']);}['getDefaultValues'](){const _0x167e1f={},_0x492943=this['getMergeFieldsIds']();for(const _0x2b43a9 of _0x492943)_0x167e1f[_0x2b43a9]=this['getMergeFieldDefaultValue'](_0x2b43a9);return _0x167e1f;}['getDataSetValues'](_0x45c254,_0x577d98=!0x1){const _0x35ee4e={},_0x209049=this['getMergeFieldsIds']();for(const _0x3b478b of _0x209049){let _0x1d1238=this['getMergeFieldValue'](_0x3b478b,_0x45c254);null===_0x1d1238&&_0x577d98&&(_0x1d1238=this['getMergeFieldDefaultValue'](_0x3b478b)),_0x35ee4e[_0x3b478b]=_0x1d1238;}return _0x35ee4e;}['getLabel'](_0x52ef55){const _0x4fe447=this['getDefinition'](_0x52ef55);return _0x4fe447&&_0x4fe447['label']?_0x4fe447['label']:null;}['getMergeFieldDefaultValue'](_0x2a225f){const _0xfd28b5=this['getDefinition'](_0x2a225f);if(!_0xfd28b5||void 0x0===_0xfd28b5['defaultValue'])return null;const _0x17b9e6='function'==typeof _0xfd28b5['defaultValue']?_0xfd28b5['defaultValue'](this['editor']):_0xfd28b5['defaultValue'];return String(_0x17b9e6);}['getMergeFieldValue'](_0x5ef134,_0x1ed055){const _0x366703=this['editor']['config']['get']('mergeFields.dataSets')['find'](_0x132c04=>_0x132c04['id']===_0x1ed055);if(!_0x366703)throw new CKEditorError('merge-fields-data-set-not-found',null);const _0x1a380c=_0x366703['values'][_0x5ef134];if(void 0x0===_0x1a380c)return null;const _0x31aef9='function'==typeof _0x1a380c?_0x1a380c(this['editor']):_0x1a380c;return String(_0x31aef9);}['getMergeFieldType'](_0x148312){if('string'!=typeof _0x148312){const _0x414b57=_0x148312;return'mergeField'===_0x414b57['name']?'text':'mergeFieldBlock'===_0x414b57['name']?'block':'imageBlock'!==_0x414b57['name']&&'imageInline'!==_0x414b57['name']||!_0x414b57['getAttribute']('src')?null:_0x414b57['getAttribute']('src')['match'](this['_mergeFieldRegExp'])?'image':null;}const _0x2bf462=this['getDefinition'](_0x148312);return _0x2bf462&&_0x2bf462['type']?_0x2bf462['type']:'text';}['getMergeFieldHeight'](_0x423db1){const _0x403d58=this['getDefinition'](_0x423db1);return _0x403d58&&'block'===_0x403d58['type']?_0x403d58['height']||DEFAULT_MERGE_FIELD_BLOCK_HEIGHT:_0x403d58&&'image'===_0x403d58['type']?_0x403d58['height']||DEFAULT_MERGE_FIELD_IMAGE_HEIGHT:null;}['getMergeFieldWidth'](_0x544725){const _0x4b78f1=this['getDefinition'](_0x544725);return _0x4b78f1&&'image'===_0x4b78f1['type']?_0x4b78f1['width']||DEFAULT_MERGE_FIELD_IMAGE_WIDTH:null;}['getDocumentMergeFieldsIds'](){const _0x26cda0=new Set();for(const _0x149e9e of this['_mergeFieldElements'])'$graveyard'!==_0x149e9e['root']['rootName']&&('image'===this['getMergeFieldType'](_0x149e9e)?_0x26cda0['add'](this['unwrapAffixes'](_0x149e9e['getAttribute']('src'))):_0x26cda0['add'](_0x149e9e['getAttribute']('id')));return Array['from'](_0x26cda0);}['getMergeFieldsIds'](){const _0x46b257=this['flattenedMergeFieldDefinitions']['map'](_0x17ee66=>_0x17ee66['id']),_0x58e67d=this['getDocumentMergeFieldsIds']();return Array['from'](new Set([..._0x46b257,..._0x58e67d]));}['getDefinition'](_0x4ebf27){return this['flattenedMergeFieldDefinitions']['find'](_0x40748f=>_0x40748f['id']===_0x4ebf27)||null;}['refreshMergeFields'](){this['_mergeFieldElements']['forEach'](_0x1bacc5=>{'$graveyard'!==_0x1bacc5['root']['rootName']&&this['editor']['editing']['reconvertItem'](_0x1bacc5);});}['wrapInAffixes'](_0x824c8f){return this['_mergeFieldPrefix']+_0x824c8f+this['_mergeFieldSuffix'];}['unwrapAffixes'](_0x29d4ae){return _0x29d4ae['slice'](this['_mergeFieldPrefix']['length'],_0x29d4ae['length']-this['_mergeFieldSuffix']['length']);}['_getFlattenedMergeFieldDefinitions'](){const _0x108c81=new Set(),_0x27c6e5=this['editor'];return _0x27c6e5['config']['get']('mergeFields.definitions')['reduce']((_0x5e6f6f,_0x598cf1)=>{if('groupId'in _0x598cf1){if(_0x108c81['has'](_0x598cf1['groupId']))throw new CKEditorError('merge-fields-duplicate-group-id',_0x27c6e5,{'duplicateId':_0x598cf1['groupId']});_0x108c81['add'](_0x598cf1['groupId']);}return'groupId'in _0x598cf1?function(_0x22612d,_0x317cfc){for(const _0x109af5 of _0x317cfc['definitions'])_0x22612d=_0x22612d['concat'](_0x109af5);return _0x22612d;}['bind'](_0x27c6e5)(_0x5e6f6f,_0x598cf1):_0x5e6f6f['concat'](_0x598cf1);},new Array());}['_validateConfig'](){const _0x22545c=/^['"`!#%:;=@{}~$()*+/?[\\\]^|]+$/;if(!_0x22545c['test'](this['_mergeFieldPrefix'])||!_0x22545c['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 _0x5394b2=new Set();if(this['flattenedMergeFieldDefinitions']['map'](_0x45ca94=>{if(!ALLOWED_IN_IDS['test'](_0x45ca94['id']))throw new CKEditorError('merge-fields-invalid-id',this,{'incorrectId':_0x45ca94['id']});if(_0x5394b2['has'](_0x45ca94['id']))throw new CKEditorError('merge-fields-duplicate-merge-field-id',this,{'duplicateId':_0x45ca94['id']});_0x5394b2['add'](_0x45ca94['id']);}),this['_mergeFieldPrefix']===this['_mergeFieldSuffix'])throw new CKEditorError('merge-fields-prefix-and-suffix-must-differ',this);const _0x55a253=this['editor']['config']['get']('mergeFields.previewModes'),_0xaae3c6=['$labels','$defaultValues','$dataSets'];if(!_0x55a253['length']||!_0x55a253['every'](_0x44b620=>_0xaae3c6['includes'](_0x44b620)))throw new CKEditorError('merge-fields-invalid-preview-modes-configuration',this,{'invalidConfig':_0x55a253});const _0x28d82b=new Set(),_0x56ca89=this['editor']['config']['get']('mergeFields.dataSets');for(const _0x10e5bf of _0x56ca89){if(_0x28d82b['has'](_0x10e5bf['id']))throw new CKEditorError('merge-fields-duplicate-data-set-id',this,{'duplicateId':_0x10e5bf['id']});_0x28d82b['add'](_0x10e5bf['id']);}}['_getAvailablePreviewModes'](){const _0xf47eeb=this['editor']['config']['get']('mergeFields.previewModes'),_0x4a9ced=[];if(_0xf47eeb['includes']('$labels')&&_0x4a9ced['push']('$labels'),_0xf47eeb['includes']('$defaultValues')&&_0x4a9ced['push']('$defaultValues'),_0xf47eeb['includes']('$dataSets')){const _0x505856=this['editor']['config']['get']('mergeFields.dataSets');_0x4a9ced['push'](..._0x505856['map'](_0x5403d4=>_0x5403d4['id']));}return _0x4a9ced;}['_defineSchema'](){const _0x1b9aab=this['editor']['model']['schema'];_0x1b9aab['register']('mergeField',{'inheritAllFrom':'$inlineObject','allowAttributes':['id'],'allowWhere':'$text'}),_0x1b9aab['register']('mergeFieldBlock',{'inheritAllFrom':'$blockObject','allowAttributes':['id']});}['_defineConverters'](){const _0x1e1336=this['editor']['conversion'];_0x1e1336['for']('upcast')['add'](_0x27e741=>{_0x27e741['on']('text',(_0x2f8458,_0x191121,_0x13646f)=>{const {writer:_0x4a70d8,safeInsert:_0x205ef2}=_0x13646f,{viewItem:_0x40e970}=_0x191121,_0x14befb=_0x40e970['data']['split'](this['_mergeFieldRegExp'])['filter'](_0x4cf9c4=>_0x4cf9c4);if(0x1===_0x14befb['length']&&!_0x14befb[0x0]['match'](this['_mergeFieldRegExp']))return;if(!_0x191121['modelRange'])return;const _0x5a7e29=_0x4a70d8['createElement']('$cursor');_0x4a70d8['insert'](_0x5a7e29,_0x191121['modelCursor']);const _0x2caafc=[];for(const _0xd4e826 of _0x191121['modelRange']['getItems']()){if(!_0xd4e826['is']('$textProxy'))continue;const _0x7256c0=_0xd4e826['textNode']['data']['matchAll'](this['_mergeFieldRegExp']),_0x37f246=_0xd4e826['parent'],_0x5bd535=_0xd4e826['textNode']['startOffset'];for(const _0x2264cd of[..._0x7256c0]['reverse']()){const _0x1904fe=_0x2264cd[0x0],_0x36c1c2=_0x4a70d8['createPositionAt'](_0x37f246,_0x2264cd['index']+_0x5bd535),_0x36bc94=_0x36c1c2['getShiftedBy'](_0x1904fe['length']),_0x201b17=_0x4a70d8['createRange'](_0x36c1c2,_0x36bc94),_0x25e299=this['unwrapAffixes'](_0x1904fe),_0x14ff57=this['getMergeFieldType'](_0x25e299),_0xabcf02='block'==_0x14ff57?'mergeFieldBlock':'mergeField',_0x2f5b99=_0x4a70d8['createElement'](_0xabcf02,{'id':_0x25e299});_0x4a70d8['remove'](_0x201b17),_0x4a70d8['insert'](_0x2f5b99,_0x36c1c2),'block'==_0x14ff57&&_0x2caafc['push'](_0x2f5b99);}}_0x2caafc['reverse']();for(const _0x165a75 of _0x2caafc){const _0x257b64=_0x4a70d8['createPositionBefore'](_0x165a75),_0x4ee946=_0x165a75['nextSibling']==_0x5a7e29;_0x4a70d8['remove'](_0x165a75),_0x205ef2(_0x165a75,_0x257b64)&&_0x4ee946&&_0x4a70d8['move'](_0x4a70d8['createRangeOn'](_0x5a7e29),_0x4a70d8['createPositionAfter'](_0x165a75));}_0x191121['modelCursor']=_0x4a70d8['createPositionBefore'](_0x5a7e29),_0x191121['modelRange']=_0x4a70d8['createRange'](_0x191121['modelRange']['start'],_0x191121['modelCursor']),_0x4a70d8['remove'](_0x5a7e29);},{'priority':priorities['get']('lowest')-0x1});}),_0x1e1336['for']('upcast')['elementToElement']({'view':{'name':'span','attributes':'data-ck-merge-field'},'model':(_0xda90f8,{writer:_0x325b54})=>_0x325b54['createElement']('mergeField',{'id':_0xda90f8['getAttribute']('data-ck-merge-field')})}),_0x1e1336['for']('upcast')['elementToElement']({'view':{'name':'div','attributes':'data-ck-merge-field'},'model':(_0x2ff2e1,{writer:_0x4a6f8f})=>_0x4a6f8f['createElement']('mergeFieldBlock',{'id':_0x2ff2e1['getAttribute']('data-ck-merge-field')})}),_0x1e1336['for']('upcast')['add'](this['_upcastSrcAttributeFromClipboard']()),_0x1e1336['for']('editingDowncast')['elementToElement']({'model':'mergeField','view':(_0x2a6924,{writer:_0x3f15aa})=>this['_createMergeFieldWidget'](_0x2a6924,_0x3f15aa,'text')}),_0x1e1336['for']('dataDowncast')['elementToElement']({'model':'mergeField','view':(_0x25b924,{writer:_0x131d75,options:_0x58c849})=>this['_createTextualMergeField'](_0x25b924,_0x131d75,_0x58c849)}),_0x1e1336['for']('editingDowncast')['elementToElement']({'model':'mergeFieldBlock','view':(_0xc125d,{writer:_0x1a90d6})=>this['_createMergeFieldWidget'](_0xc125d,_0x1a90d6,'block')}),_0x1e1336['for']('dataDowncast')['elementToElement']({'model':'mergeFieldBlock','view':(_0x591c94,{writer:_0x41ef21,options:_0x128a18})=>this['_createTextualMergeField'](_0x591c94,_0x41ef21,_0x128a18)}),_0x1e1336['for']('editingDowncast')['add'](this['_downcastSrcAttributeToEditing']('imageBlock'))['add'](this['_downcastSrcAttributeToEditing']('imageInline')),_0x1e1336['for']('dataDowncast')['add'](this['_downcastSrcAttributeToData']('imageBlock'))['add'](this['_downcastSrcAttributeToData']('imageInline'));}['_upcastSrcAttributeFromClipboard'](){return _0x4862b9=>{_0x4862b9['on']('element:img',(_0x3b2960,_0x4e990c,_0x5eb65b)=>{_0x5eb65b['consumable']['test'](_0x4e990c['viewItem'],{'attributes':'data-ck-merge-field'})&&(_0x5eb65b['writer']['setAttribute']('src',this['wrapInAffixes'](_0x4e990c['viewItem']['getAttribute']('data-ck-merge-field')),_0x4e990c['modelCursor']['nodeBefore']),_0x5eb65b['consumable']['consume'](_0x4e990c['viewItem'],{'attributes':'data-ck-merge-field'}));},{'priority':'low'});};}['_downcastSrcAttributeToData'](_0x1af19d){const _0x17cb73=this['editor']['plugins']['get']('ImageUtils'),_0x5b2531=(_0x59c710,_0x104fa,_0x2b19b2)=>{if(!0x1!==_0x2b19b2['consumable']['test'](_0x104fa['item'],_0x59c710['name']))return;if(!String(_0x104fa['attributeNewValue'])['match'](this['_mergeFieldRegExp']))return;const _0x6e505e=_0x2b19b2['writer'],_0x4396a7=_0x2b19b2['mapper']['toViewElement'](_0x104fa['item']),_0x20bb09=_0x17cb73['findViewImgElement'](_0x4396a7),_0xe9f2d8=String(_0x104fa['attributeNewValue']),_0x6e54cd=this['unwrapAffixes'](_0xe9f2d8),_0x29271d=_0x2b19b2['options']['mergeFieldsData'];if(_0x2b19b2['options']['isClipboardPipeline']&&'$labels'!==this['previewMode']){let _0x5b7639;return _0x5b7639='$defaultValues'===this['previewMode']?this['getMergeFieldDefaultValue'](_0x6e54cd)||this['getLabel'](_0x6e54cd)||this['wrapInAffixes'](_0x6e54cd):this['getMergeFieldValue'](_0x6e54cd,this['previewMode'])||this['getMergeFieldDefaultValue'](_0x6e54cd)||this['getLabel'](_0x6e54cd)||this['wrapInAffixes'](_0x6e54cd),_0x6e505e['setAttribute']('data-ck-merge-field',_0x6e54cd,_0x20bb09),void _0x6e505e['setAttribute'](_0x104fa['attributeKey'],_0x5b7639,_0x20bb09);}const _0x493975=_0x29271d&&_0x29271d[_0x6e54cd]?_0x29271d[_0x6e54cd]:_0xe9f2d8;_0x6e505e['setAttribute'](_0x104fa['attributeKey'],_0x493975,_0x20bb09);};return _0x142206=>{_0x142206['on']('attribute:src:'+_0x1af19d,_0x5b2531,{'priority':'low'});};}['_downcastSrcAttributeToEditing'](_0x474cab){const _0x3b080c=this['editor']['plugins']['get']('ImageUtils'),_0x4ab541=(_0x49fc71,_0x5f24b9,_0x148a02)=>{if(!0x1!==_0x148a02['consumable']['test'](_0x5f24b9['item'],_0x49fc71['name']))return;if(!String(_0x5f24b9['attributeNewValue'])['match'](this['_mergeFieldRegExp']))return;const _0x53e292=_0x148a02['writer'],_0x368a5b=_0x148a02['mapper']['toViewElement'](_0x5f24b9['item']),_0x41ebe7=_0x3b080c['findViewImgElement'](_0x368a5b),_0xc0f9aa=String(_0x5f24b9['attributeNewValue']),_0x2bbb39=this['unwrapAffixes'](_0xc0f9aa),_0xe07b84=this['getMergeFieldDefaultValue'](_0x2bbb39),_0x5bfeeb='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAtJREFUGFdjYAACAAAFAAGq1chRAAAAAElFTkSuQmCC';let _0x599240,_0x4bb983='',_0x5f0639='';if('$labels'===this['previewMode'])_0x599240=_0x5bfeeb;else{if('$defaultValues'===this['previewMode'])_0xe07b84?(_0x599240=_0xe07b84,_0x5f0639='\x20ck-merge-field-image_with-value'):(_0x599240=_0x5bfeeb,_0x4bb983='WARNING_MISSING_DEFAULT_VALUE',_0x5f0639='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_no-default');else{const _0x356338=this['getMergeFieldValue'](_0x2bbb39,this['previewMode']);_0x356338?(_0x599240=_0x356338,_0x5f0639='\x20ck-merge-field-image_with-value'):_0xe07b84?(_0x599240=_0xe07b84,_0x5f0639='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_default-value-used',_0x4bb983='WARNING_MISSING_DATA_USED_DEFAULT_VALUE'):(_0x599240=_0x5bfeeb,_0x5f0639='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_missing-data',_0x4bb983='WARNING_MISSING_DATA');}}if(_0x53e292['addClass']('ck-merge-field-image'+_0x5f0639,_0x368a5b),_0x53e292['setAttribute'](_0x5f24b9['attributeKey'],_0x599240,_0x41ebe7),'$labels'===this['previewMode']){const _0x45f7cc='imageInline'===_0x474cab?'span':'div',_0x907581=this['_mergeFieldPrefix'],_0x573007=this['_mergeFieldSuffix'],_0x1d971b=_0x53e292['createContainerElement'](_0x45f7cc,{'class':'ck-merge-field','data-cke-tooltip-instant':'true'},[_0x53e292['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x3643f3){const _0x384bd3=this['toDomElement'](_0x3643f3);return _0x384bd3['innerHTML']=_0x907581,_0x384bd3;}),_0x53e292['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x53e292['createText'](this['getLabel'](_0x2bbb39)||_0x2bbb39)),_0x53e292['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x379f75){const _0x175b0c=this['toDomElement'](_0x379f75);return _0x175b0c['innerHTML']=_0x573007,_0x175b0c;})]);_0x53e292['insert'](_0x53e292['createPositionAt'](_0x368a5b,'end'),_0x1d971b),_0x53e292['setAttribute']('data-cke-tooltip-text',this['getLabel'](_0x2bbb39)||_0x2bbb39,_0x1d971b);}else{if(_0x4bb983&&['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x4bb983)){const _0x273f5e='imageInline'===_0x474cab?'span':'div',_0x1b816c=_0x5f0639['replace'](/ck-merge-field-image/g,'ck-merge-field'),_0x53cb2a=_0x53e292['createContainerElement'](_0x273f5e,{'class':'ck-merge-field'+_0x1b816c,'data-cke-tooltip-instant':'true'},[_0x53e292['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x53e292['createText'](this['getLabel'](_0x2bbb39)||_0x2bbb39))]),_0x5ba54b=_0x53e292['createUIElement']('span',{'class':'ck-merge-field__icon'},function(_0xaa8d5f){const _0x1e5fda=this['toDomElement'](_0xaa8d5f),_0x1dd6cc=new IconView();return _0x1dd6cc['set']({'content':IconWarning}),_0x1dd6cc['render'](),_0x1e5fda['appendChild'](_0x1dd6cc['element']),_0x1e5fda;});_0x53e292['insert'](_0x53e292['createPositionAt'](_0x53cb2a,'end'),_0x5ba54b),_0x53e292['insert'](_0x53e292['createPositionAt'](_0x368a5b,'end'),_0x53cb2a),_0x53e292['setCustomProperty']('mergeFieldStatus',_0x4bb983,_0x53cb2a),_0x53e292['setAttribute']('data-cke-tooltip-text',this['getLabel'](_0x2bbb39)||_0x2bbb39,_0x53cb2a);}}_0x53e292['setAttribute']('data-merge-field-name',_0x2bbb39,_0x368a5b),_0x4bb983&&_0x53e292['setCustomProperty']('mergeFieldStatus',_0x4bb983,_0x368a5b);};return _0x48b928=>{_0x48b928['on']('attribute:src:'+_0x474cab,_0x4ab541,{'priority':'low'});};}['_setupTooltipsTogglingForImageMergeField'](_0x1ed24d,_0x3af36d){if(!_0x3af36d['target'])return null;const _0x4fb301=_0x3af36d['target']['parentElement'];return _0x4fb301&&_0x4fb301['classList']['contains']('ck-merge-field-image')?new _0x14bc1d(_0x4fb301,_0x4764dc=>{const _0x15d785=_0x4764dc['target'],_0x3edb45=_0x15d785['querySelector']('.ck-merge-field'),_0x223e69=_0x15d785['querySelector']('.ck-merge-field__content');_0x3edb45&&_0x223e69&&(_0x223e69['scrollWidth']>_0x223e69['getBoundingClientRect']()['width']?_0x3edb45['removeAttribute']('data-cke-tooltip-disabled'):_0x3edb45['setAttribute']('data-cke-tooltip-disabled','true'));}):null;}['_createMergeFieldWidget'](_0x1c2e4b,_0x9f3b89,_0x3d4aae){const {label:_0x4c993a,classes:_0xaefdf3,status:_0x44ae28,height:_0x5e83d6}=this['_prepareViewElementData'](_0x1c2e4b),_0x34c02b=this['_mergeFieldPrefix'],_0x50569d=this['_mergeFieldSuffix'],_0x4f5ed0=this['editor']['config']['get']('mergeFields.sanitizeHtml'),_0x5b6bf3='text'===_0x3d4aae?'span':'div';let _0xa22c60;if('$labels'===this['previewMode'])_0xa22c60=_0x9f3b89['createContainerElement'](_0x5b6bf3,{'class':_0xaefdf3},[_0x9f3b89['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x5506f7){const _0x94daa9=this['toDomElement'](_0x5506f7);return _0x94daa9['innerHTML']=_0x34c02b,_0x94daa9;}),_0x9f3b89['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x9f3b89['createText'](String(_0x4c993a))),_0x9f3b89['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x310755){const _0x2aeae9=this['toDomElement'](_0x310755);return _0x2aeae9['innerHTML']=_0x50569d,_0x2aeae9;})]);else{if(_0x44ae28){const _0x3b3525=this['_shouldPreviewHtmlValues']?_0x9f3b89['createRawElement']('span',{'class':'ck-merge-field__content'},function(_0x11e59b,_0x256b57){_0x256b57['setContentOf'](_0x11e59b,_0x4f5ed0(_0x4c993a)['html']);}):_0x9f3b89['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x9f3b89['createText'](_0x4c993a));if(_0xa22c60=_0x9f3b89['createContainerElement'](_0x5b6bf3,{'class':_0xaefdf3},[_0x3b3525]),'text'===_0x3d4aae||['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x44ae28)){const _0x19e44f=_0x9f3b89['createUIElement']('span',{'class':'ck-merge-field__icon'},function(_0x84c172){const _0x3a8c4b=this['toDomElement'](_0x84c172),_0x34d6b7=new IconView();return _0x34d6b7['set']({'content':IconWarning}),_0x34d6b7['render'](),_0x3a8c4b['appendChild'](_0x34d6b7['element']),_0x3a8c4b;});_0x9f3b89['insert'](_0x9f3b89['createPositionAt'](_0xa22c60,'end'),_0x19e44f);}_0x9f3b89['setCustomProperty']('mergeFieldStatus',_0x44ae28,_0xa22c60);}else{const _0x519254=this['_shouldPreviewHtmlValues']?_0x9f3b89['createRawElement'](_0x5b6bf3,{},function(_0x11e93f,_0x2b25ca){_0x2b25ca['setContentOf'](_0x11e93f,_0x4f5ed0(_0x4c993a)['html']);}):_0x9f3b89['createText'](_0x4c993a);_0xa22c60=_0x9f3b89['createContainerElement'](_0x5b6bf3,{'class':_0xaefdf3},_0x519254);}}if('block'===_0x3d4aae){const _0x48183e=_0x9f3b89['createContainerElement']('div',{'class':'ck-merge-field-block'},[_0xa22c60]);if(('$labels'===this['previewMode']||_0x44ae28&&['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x44ae28))&&_0x9f3b89['setAttribute']('style','height:\x20'+_0x5e83d6+'px',_0x48183e),_0xa22c60['hasClass']('ck-merge-field_with-value'))_0x9f3b89['addClass']('ck-merge-field-block_with-value',_0x48183e);else{if(_0xa22c60['hasClass']('ck-merge-field_with-warning')){for(const _0x5a26c6 of _0xa22c60['getClassNames']())if('ck-merge-field'!==_0x5a26c6){const _0x68242b=_0x5a26c6['replace']('ck-merge-field','ck-merge-field-block');_0x9f3b89['addClass'](_0x68242b,_0x48183e);}_0x9f3b89['setCustomProperty']('mergeFieldStatus',_0x44ae28,_0x48183e);}}return _0x9f3b89['setCustomProperty']('mergeFieldBlock',!0x0,_0x48183e),_0x9f3b89['setAttribute']('data-merge-field-name',_0x1c2e4b['getAttribute']('id'),_0x48183e),toWidget(_0x48183e,_0x9f3b89,{'hasSelectionHandle':!0x0});}return _0x9f3b89['setCustomProperty']('mergeField',!0x0,_0xa22c60),_0x9f3b89['setAttribute']('data-merge-field-name',_0x1c2e4b['getAttribute']('id'),_0xa22c60),toWidget(_0xa22c60,_0x9f3b89);}['_prepareViewElementData'](_0x16551c){const _0x912dd4=_0x16551c['getAttribute']('id'),_0x46b337=this['getDefinition'](_0x912dd4);if(!_0x46b337)return'$labels'===this['previewMode']?{'label':_0x912dd4,'classes':'ck-merge-field'}:{'label':_0x912dd4,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-definition','status':'WARNING_MISSING_DATA'};const _0x2141a5=this['getLabel'](_0x912dd4)||_0x912dd4,_0x569eae=this['getMergeFieldDefaultValue'](_0x912dd4),_0x4c138b=this['getMergeFieldHeight'](_0x912dd4);if('$labels'===this['previewMode'])return{'label':_0x2141a5,'height':_0x4c138b,'classes':'ck-merge-field'};if('$defaultValues'===this['previewMode'])return _0x569eae?{'label':_0x569eae,'height':_0x4c138b,'classes':'ck-merge-field\x20ck-merge-field_with-value'}:{'label':_0x2141a5,'height':_0x4c138b,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_no-default','status':'WARNING_MISSING_DEFAULT_VALUE'};const _0x5b49fa=this['getMergeFieldValue'](_0x46b337['id'],this['previewMode']);return _0x5b49fa?{'label':_0x5b49fa,'height':_0x4c138b,'classes':'ck-merge-field\x20ck-merge-field_with-value'}:_0x569eae?{'label':_0x569eae,'height':_0x4c138b,'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':_0x2141a5,'height':_0x4c138b,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-data','status':'WARNING_MISSING_DATA'};}['_createTextualMergeField'](_0x52c04a,_0x2c4a8e,_0x7c1bce){const _0x4b8772=_0x52c04a['getAttribute']('id');let _0x51beb2;if(_0x7c1bce['isClipboardPipeline']&&'$labels'!==this['previewMode'])return this['_downcastForClipboard'](_0x4b8772,_0x2c4a8e);const _0x1cae37=_0x7c1bce['mergeFieldsData'],_0x4d3ffa=_0x1cae37&&_0x1cae37[_0x4b8772]?_0x1cae37[_0x4b8772]:this['wrapInAffixes'](_0x4b8772);if(_0x1cae37)_0x51beb2=_0x2c4a8e['createRawElement']('span',{},function(_0x4756f1,_0x2b619f){_0x2b619f['setContentOf'](_0x4756f1,String(_0x4d3ffa));});else{_0x51beb2=_0x2c4a8e['createContainerElement']('span');const _0x15bfa1=_0x2c4a8e['createText'](_0x4d3ffa);_0x2c4a8e['insert'](_0x2c4a8e['createPositionAt'](_0x51beb2,'end'),_0x15bfa1);}return _0x2c4a8e['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x51beb2),_0x51beb2;}['_downcastForClipboard'](_0x368dca,_0x73316c){const _0x5e63e7='block'===this['getMergeFieldType'](_0x368dca)?'div':'span';let _0x173b15,_0x278343;_0x173b15='$defaultValues'===this['previewMode']?this['getMergeFieldDefaultValue'](_0x368dca)||this['getLabel'](_0x368dca)||this['wrapInAffixes'](_0x368dca):this['getMergeFieldValue'](_0x368dca,this['previewMode'])||this['getMergeFieldDefaultValue'](_0x368dca)||this['getLabel'](_0x368dca)||this['wrapInAffixes'](_0x368dca);const _0x45e9c0=this['editor']['config']['get']('mergeFields.sanitizeHtml');return _0x278343=this['_shouldPreviewHtmlValues']?_0x73316c['createRawElement'](_0x5e63e7,{'data-ck-merge-field':_0x368dca},function(_0x2712d8,_0x28e789){_0x28e789['setContentOf'](_0x2712d8,_0x45e9c0(_0x173b15)['html']);}):_0x73316c['createContainerElement'](_0x5e63e7,{'data-ck-merge-field':_0x368dca},_0x73316c['createText'](_0x173b15)),_0x278343;}['_validatePreviewMode'](_0x264ad0){if(!this['availablePreviewModes']['includes'](_0x264ad0))throw new CKEditorError('merge-fields-invalid-preview-mode-set',this,{'availablePreviewModes':this['availablePreviewModes'],'previewMode':_0x264ad0});}['_trackAddedMergeFields'](){for(const _0x793d5a of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x793d5a['type']||'$text'===_0x793d5a['name'])continue;if('mergeField'===_0x793d5a['name']||'mergeFieldBlock'===_0x793d5a['name']){this['_mergeFieldElements']['add'](_0x793d5a['position']['nodeAfter']);continue;}if('imageInline'===_0x793d5a['name']||'imageBlock'===_0x793d5a['name']&&_0x793d5a['attributes']['get']('src')&&String(_0x793d5a['attributes']['get']('src'))['match'](this['_mergeFieldRegExp'])){this['_mergeFieldElements']['add'](_0x793d5a['position']['nodeAfter']);continue;}const _0x4d5c5d=this['editor']['model']['createRangeIn'](_0x793d5a['position']['nodeAfter']);for(const _0x12dfce of _0x4d5c5d['getItems']())_0x12dfce['is']('element')&&this['isMergeField'](_0x12dfce)&&this['_mergeFieldElements']['add'](_0x12dfce);}}['_registerConversionPostFixer'](){const _0x528c15=this['editor'];_0x528c15['model']['document']['registerPostFixer'](_0x19892b=>{if(!_0x19892b['batch']['isLocal'])return!0x1;const _0x5d991c=[],_0x12f87b=new Set(),_0x263c95=this['_mergeFieldRegExp'];let _0xd0ef3d=!0x1;for(const _0x2b4517 of _0x528c15['model']['document']['differ']['getChanges']())if('insert'===_0x2b4517['type']||'remove'===_0x2b4517['type']){let _0x4b8042='$text'==_0x2b4517['name']?_0x2b4517['position']['parent']:_0x2b4517['position']['nodeAfter'];if(!_0x4b8042)continue;_0x4b8042['is']('$text')&&(_0x4b8042=_0x4b8042['parent']),_0x37cabd(_0x4b8042);}for(const _0x23c497 of _0x5d991c['reverse']()){const {match:_0x583927,item:_0x45834b}=_0x23c497,_0x160b68=_0x19892b['createPositionAt'](_0x45834b,_0x583927['index']),_0x1d2e49=_0x160b68['getShiftedBy'](_0x583927[0x0]['length']),_0x17e13d=_0x19892b['createRange'](_0x160b68,_0x1d2e49),_0x173429=_0x583927[0x0],_0x253f68=this['unwrapAffixes'](_0x173429),_0x5a06dc=_0x2161d6(_0x17e13d),_0x55728d=this['getMergeFieldType'](_0x253f68);if(ALLOWED_IN_IDS['test'](_0x253f68)){if(_0x5a06dc['set']('id',_0x253f68),'block'===_0x55728d){const _0x4b2761=_0x19892b['createElement']('mergeFieldBlock',{'id':_0x253f68});_0x19892b['remove'](_0x17e13d),_0x528c15['model']['insertObject'](_0x4b2761,null,null,{'setSelection':'on','findOptimalPosition':void 0x0});}else{if('image'===_0x55728d){const _0x214d17=_0x19892b['createElement']('imageBlock',{'src':this['wrapInAffixes'](_0x253f68)});_0x19892b['remove'](_0x17e13d),_0x528c15['model']['insertObject'](_0x214d17,null,null,{'setSelection':'on','findOptimalPosition':void 0x0});}else{const _0x7aef90=_0x19892b['createElement']('mergeField',_0x5a06dc);_0x528c15['model']['schema']['checkChild'](_0x17e13d['start'],'mergeField')?_0x528c15['model']['insertObject'](_0x7aef90,_0x17e13d):_0x19892b['remove'](_0x17e13d);}}_0xd0ef3d=!0x0;}}return _0xd0ef3d;function _0x37cabd(_0x5c92b1){let _0x173bfb='',_0x27f037=0x0;if(!_0x12f87b['has'](_0x5c92b1))for(const _0x47f587 of _0x5c92b1['getChildren']()){const _0x5a652c=_0x47f587['nextSibling'];if(_0x47f587['is']('$text')&&(''===_0x173bfb&&_0x47f587['startOffset']&&(_0x27f037=_0x47f587['startOffset']),_0x173bfb+=_0x47f587['data']),!_0x5a652c||_0x5a652c['is']('element')){for(const _0x18171b of _0x173bfb['matchAll'](_0x263c95))_0x18171b['index']=_0x18171b['index']+_0x27f037,_0x5d991c['push']({'match':_0x18171b,'item':_0x5c92b1});_0x12f87b['add'](_0x5c92b1),_0x173bfb='';}_0x47f587['is']('element')&&_0x37cabd(_0x47f587);}}function _0x2161d6(_0xda9fbc){const _0x2bf2e4=_0xda9fbc['getItems'](),_0x45b17c=_0x2bf2e4['next']()['value'],_0x2bbcec=new Map(_0x45b17c['getAttributes']());for(const _0x208b79 of _0x2bf2e4)for(const [_0x22e0f7,_0x3a13f6]of _0x2bbcec)_0x208b79['getAttribute'](_0x22e0f7)!==_0x3a13f6&&_0x2bbcec['delete'](_0x22e0f7);return _0x2bbcec;}});}['_disableCommandOnMergeFields'](_0x20ffe4){const _0x3a7b98=this['editor'],_0x27dc5a=_0x3a7b98['commands']['get'](_0x20ffe4);_0x27dc5a&&_0x27dc5a['on']('set:isEnabled',(_0x5026e2,_0x6b66ab,_0x90e597)=>{if(0x1==_0x90e597){const _0x37ddbe=_0x3a7b98['model']['document']['selection']['getSelectedElement']();_0x37ddbe&&this['isMergeField'](_0x37ddbe)&&(_0x5026e2['return']=!0x1,_0x5026e2['stop']());}});}}async function checkLicense$8(_0x156d35){const _0x32c6da=_0x49c594([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]),_0x9d48d5=window[_0x49c594([0x44,0x61,0x74,0x65])][_0x49c594([0x6e,0x6f,0x77])](),_0x32e7f1=_0x156d35[_0x49c594([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x33db3c=new window[(_0x49c594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f269d=>{_0x32e7f1[_0x49c594([0x6f,0x6e,0x63,0x65])](_0x49c594([0x72,0x65,0x61,0x64,0x79]),_0x4f269d);}),_0x3b3ec7={[_0x49c594([0x6b,0x74,0x79])]:_0x49c594([0x45,0x43]),[_0x49c594([0x75,0x73,0x65])]:_0x49c594([0x73,0x69,0x67]),[_0x49c594([0x63,0x72,0x76])]:_0x49c594([0x50,0x2d,0x32,0x35,0x36]),[_0x49c594([0x78])]:_0x49c594([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]),[_0x49c594([0x79])]:_0x49c594([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]),[_0x49c594([0x61,0x6c,0x67])]:_0x49c594([0x45,0x53,0x32,0x35,0x36])},_0x10f50d=_0x32e7f1[_0x49c594([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x49c594([0x67,0x65,0x74])](_0x49c594([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x1471f5=await(async function(){let _0xf21057,_0x20ac89=null,_0x1ae541=null;try{if(_0x10f50d==_0x49c594([0x47,0x50,0x4c]))return _0x49c594([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf21057=(function(){const _0x4cb1a9=_0x10f50d[_0x49c594([0x73,0x70,0x6c,0x69,0x74])](_0x49c594([0x2e]));if(0x3!=_0x4cb1a9[_0x49c594([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x30087c=_0x4cb1a9[0x1];return _0x2d2fb4(_0x30087c);function _0x2d2fb4(_0x249f12){const _0x20919d=_0x273090(_0x249f12);return _0x20919d&&_0x370ba3()?_0x20919d:null;function _0x370ba3(){const _0x3c7bab=_0x20919d[_0x49c594([0x6a,0x74,0x69])],_0x3c2499=window[_0x49c594([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c7bab[_0x49c594([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c7bab[_0x49c594([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x108daa={..._0x20919d,[_0x49c594([0x6a,0x74,0x69])]:_0x3c7bab[_0x49c594([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c7bab[_0x49c594([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x108daa[_0x49c594([0x76,0x63])],_0x3ce025(_0x108daa)==_0x3c2499;}}}()),!_0xf21057)return _0x49c594([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0xf21057[_0x49c594([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1ae541=function(_0x4616e9,_0x261424){return new window[(_0x49c594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b1ad2=>{if(_0x210876())return _0x3b1ad2(_0x49c594([0x56,0x61,0x6c,0x69,0x64]));_0x1bfa22(),_0x32e7f1[_0x49c594([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x49c594([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x349094=!0x1;const _0x233d01=uid();function _0x1b425e(_0xc7d4b6){return!!_0xc7d4b6&&(typeof _0xc7d4b6===_0x49c594([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xc7d4b6===_0x49c594([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xc7d4b6[_0x49c594([0x74,0x68,0x65,0x6e])]===_0x49c594([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xc7d4b6[_0x49c594([0x63,0x61,0x74,0x63,0x68])]===_0x49c594([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3bdfb6(_0x161477){_0x232e57(_0x161477)[_0x49c594([0x74,0x68,0x65,0x6e])](_0x329f40=>{if(!_0x329f40||_0x329f40[_0x49c594([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x49c594([0x6f,0x6b]))return _0x49c594([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x99cd8f(_0x3ce025(_0x233d01+_0x261424))!=_0x329f40[_0x49c594([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x49c594([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x49c594([0x56,0x61,0x6c,0x69,0x64]);})[_0x49c594([0x74,0x68,0x65,0x6e])](_0x3461d6=>(_0x1f2989(),_0x3461d6),()=>{const _0x295861=_0x586b93();return null==_0x295861?(_0x1f2989(),_0x49c594([0x56,0x61,0x6c,0x69,0x64])):_0x49c594(_0x9d48d5-_0x295861>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x49c594([0x74,0x68,0x65,0x6e])](_0x3b1ad2)[_0x49c594([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b1ad2(_0x49c594([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1c3adc=0x36ee80;function _0x1f2989(){const _0x238e05=_0x49c594([0x6c,0x6c,0x63,0x74,0x2d])+_0x99cd8f(_0x3ce025(_0x4616e9)),_0x257ee8=_0x3eb5a4(_0x99cd8f(window[_0x49c594([0x4d,0x61,0x74,0x68])][_0x49c594([0x63,0x65,0x69,0x6c])](_0x9d48d5/_0x1c3adc)));window[_0x49c594([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49c594([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x238e05,_0x257ee8);}function _0x586b93(){const _0x1a32b1=_0x49c594([0x6c,0x6c,0x63,0x74,0x2d])+_0x99cd8f(_0x3ce025(_0x4616e9)),_0x15fef6=window[_0x49c594([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49c594([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a32b1);return _0x15fef6?window[_0x49c594([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3eb5a4(_0x15fef6),0x10)*_0x1c3adc:null;}function _0x232e57(_0x15f572){return new window[(_0x49c594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2fa5b7,_0x39a01f)=>{_0x15f572[_0x49c594([0x74,0x68,0x65,0x6e])](_0x2fa5b7,_0x39a01f),window[_0x49c594([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39a01f,0x1d4c0);});}}_0x32e7f1[_0x49c594([0x6f,0x6e])](_0x49c594([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ce49a,_0x389925)=>{if(_0x389925[0x0]!=_0x4616e9)return _0x3b1ad2(_0x49c594([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x389925[0x1]={..._0x389925[0x1],[_0x49c594([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x233d01};},{[_0x49c594([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49c594([0x68,0x69,0x67,0x68])}),_0x32e7f1[_0x49c594([0x6f,0x6e])](_0x49c594([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x108f20=>{_0x1b425e(_0x108f20[_0x49c594([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x349094=!0x0,_0x3bdfb6(_0x108f20[_0x49c594([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x49c594([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49c594([0x6c,0x6f,0x77])}),_0x33db3c[_0x49c594([0x74,0x68,0x65,0x6e])](()=>{_0x349094||_0x3b1ad2(_0x49c594([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x210876(){return _0x32e7f1[_0x49c594([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49c594([0x76,0x69,0x65,0x77])][_0x49c594([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x49c594([0x61,0x75,0x74,0x6f]);}function _0x1bfa22(){_0x32e7f1[_0x49c594([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49c594([0x76,0x69,0x65,0x77])][_0x49c594([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49c594([0x61,0x75,0x74,0x6f]);}}(_0xf21057[_0x49c594([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf21057[_0x49c594([0x6a,0x74,0x69])]));const _0x207c3b=await(async function(){let _0xf02ea6=!0x0;try{const _0x48625e=_0x10f50d[_0x49c594([0x73,0x70,0x6c,0x69,0x74])](_0x49c594([0x2e])),[_0x6c0057,_0x4a9964,_0x571c48]=_0x48625e;return _0x40d158(_0x6c0057),await _0xf35e11(_0x6c0057,_0x4a9964,_0x571c48),_0xf02ea6;}catch{return!0x1;}function _0x40d158(_0x4de671){const _0x1fe140=_0x273090(_0x4de671);_0x1fe140&&_0x1fe140[_0x49c594([0x61,0x6c,0x67])]==_0x49c594([0x45,0x53,0x32,0x35,0x36])||(_0xf02ea6=!0x1);}async function _0xf35e11(_0x1a1f1f,_0x45a841,_0x390f96){const _0x436980=window[_0x49c594([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x49c594([0x66,0x72,0x6f,0x6d])](_0x5ae7a4(_0x390f96),_0x2f567d=>_0x2f567d[_0x49c594([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b24b1=new window[(_0x49c594([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x49c594([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1a1f1f+_0x49c594([0x2e])+_0x45a841),_0x3741ab=window[_0x49c594([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x49c594([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3741ab)return;const _0x4042cf=await _0x3741ab[_0x49c594([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x49c594([0x6a,0x77,0x6b]),_0x3b3ec7,{[_0x49c594([0x6e,0x61,0x6d,0x65])]:_0x49c594([0x45,0x43,0x44,0x53,0x41]),[_0x49c594([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x49c594([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x49c594([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3741ab[_0x49c594([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x49c594([0x6e,0x61,0x6d,0x65])]:_0x49c594([0x45,0x43,0x44,0x53,0x41]),[_0x49c594([0x68,0x61,0x73,0x68])]:{[_0x49c594([0x6e,0x61,0x6d,0x65])]:_0x49c594([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4042cf,_0x436980,_0x2b24b1)||(_0xf02ea6=!0x1);}}());return _0x207c3b?(function(){const _0x12b4ab=_0xf21057[_0x49c594([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x12b4ab)return!0x1;if(_0x12b4ab[_0x49c594([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c594([0x2a])))return!0x0;if(_0x12b4ab[_0x49c594([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c594([0x4d,0x46])))return!0x0;return!0x1;}())?(function(){const _0x20752b=[_0x49c594([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x49c594([0x74,0x72,0x69,0x61,0x6c])][_0x49c594([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf21057[_0x49c594([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9d48d5/0x3e8:0x69e96100;return _0xf21057[_0x49c594([0x65,0x78,0x70])]<_0x20752b;}())?_0x49c594([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x899be2=_0xf21057[_0x49c594([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x899be2||0x0==_0x899be2[_0x49c594([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1675bb}=new URL(window[_0x49c594([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x899be2[_0x49c594([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1675bb))return!0x0;const _0x60880e=_0x1675bb[_0x49c594([0x73,0x70,0x6c,0x69,0x74])](_0x49c594([0x2e]));return _0x899be2[_0x49c594([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5af42c=>_0x5af42c[_0x49c594([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c594([0x2a])))[_0x49c594([0x6d,0x61,0x70])](_0x54e80b=>_0x54e80b[_0x49c594([0x73,0x70,0x6c,0x69,0x74])](_0x49c594([0x2e])))[_0x49c594([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38e4b1=>_0x38e4b1[_0x49c594([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x60880e[_0x49c594([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49c594([0x6d,0x61,0x70])](_0x29b428=>Array(_0x60880e[_0x49c594([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x29b428[_0x49c594([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49c594([0x66,0x69,0x6c,0x6c])](_0x29b428[0x0]===_0x49c594([0x2a])?_0x49c594([0x2a]):'')[_0x49c594([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x29b428))[_0x49c594([0x73,0x6f,0x6d,0x65])](_0x4b3b37=>_0x60880e[_0x49c594([0x65,0x76,0x65,0x72,0x79])]((_0xf326e,_0x1493da)=>_0x4b3b37[_0x1493da]===_0xf326e||_0x4b3b37[_0x1493da]===_0x49c594([0x2a])));}())?(_0xf21057[_0x49c594([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49c594([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x20ac89=function(_0x4aab6b){const _0x3aaeba=new window[(_0x49c594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bcbaf=>setTimeout(_0x1bcbaf,0x93ecc)),_0x20de00=_0x33db3c[_0x49c594([0x74,0x68,0x65,0x6e])](()=>new window[(_0x49c594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4719e9=>{let _0x4df722=0x0;_0x32e7f1[_0x49c594([0x6d,0x6f,0x64,0x65,0x6c])][_0x49c594([0x6f,0x6e])](_0x49c594([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f1ef3,_0x350bff)=>{_0x350bff[0x0][_0x49c594([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4df722++,0x5e8==_0x4df722&&(_0x4719e9(),_0x3f1ef3[_0x49c594([0x6f,0x66,0x66])]());});})),_0x26acb9=[_0x3aaeba,_0x20de00];return window[_0x49c594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49c594([0x72,0x61,0x63,0x65])](_0x26acb9)[_0x49c594([0x74,0x68,0x65,0x6e])](()=>_0x4aab6b);}(_0x49c594([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x20ac89&&_0x1ae541)return new window[(_0x49c594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ee530,_0x32aad9)=>{_0x20ac89[_0x49c594([0x74,0x68,0x65,0x6e])](_0x1ee530,_0x32aad9),_0x1ae541[_0x49c594([0x74,0x68,0x65,0x6e])](_0xb7c0bc=>{_0xb7c0bc!=_0x49c594([0x56,0x61,0x6c,0x69,0x64])&&_0x1ee530(_0xb7c0bc);},_0x32aad9);});return _0x20ac89||_0x1ae541||_0x49c594([0x56,0x61,0x6c,0x69,0x64]);}())):_0x49c594([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x49c594([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x49c594([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x49c594([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x273090(_0x5682fc){return _0x5682fc[_0x49c594([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x49c594([0x65,0x79]))?JSON[_0x49c594([0x70,0x61,0x72,0x73,0x65])](_0x5ae7a4(_0x5682fc)):null;}function _0x5ae7a4(_0x4287b7){return window[_0x49c594([0x61,0x74,0x6f,0x62])](_0x4287b7[_0x49c594([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x49c594([0x2b]))[_0x49c594([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x49c594([0x2f])));}function _0x3ce025(_0x45a74d){let _0x44dfe1=0x1505;function _0x14b21e(_0x1151da){for(let _0x572608=0x0;_0x572608<_0x1151da[_0x49c594([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x572608++){const _0x7fdb0b=_0x1151da[_0x49c594([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x572608);_0x44dfe1=(_0x44dfe1<<0x5)+_0x44dfe1+_0x7fdb0b,_0x44dfe1&=_0x44dfe1;}}return function _0x388b83(_0x4bbf16){Array[_0x49c594([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4bbf16)?_0x4bbf16[_0x49c594([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x388b83):_0x4bbf16&&typeof _0x4bbf16==_0x49c594([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x49c594([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4bbf16)[_0x49c594([0x73,0x6f,0x72,0x74])]()[_0x49c594([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2676e7,_0x53feed])=>{_0x14b21e(_0x2676e7),_0x388b83(_0x53feed);}):_0x14b21e(window[_0x49c594([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4bbf16));}(_0x45a74d),_0x44dfe1>>>0x0;}function _0x99cd8f(_0x9cdd4d){return _0x9cdd4d[_0x49c594([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x49c594([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x49c594([0x30]));}function _0x3eb5a4(_0x54106e){return _0x54106e[_0x49c594([0x73,0x70,0x6c,0x69,0x74])]('')[_0x49c594([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x49c594([0x6a,0x6f,0x69,0x6e])]('');}function _0x45be37(){}function _0x49c594(_0x31b05f){return _0x31b05f['map'](_0x2f28c3=>String['fromCharCode'](_0x2f28c3))['join']('');}!function(_0x31ef5f){const _0x44bf83=(function(){const _0x4f229e=window[_0x49c594([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x49c594([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x49c594([0x6e,0x6f,0x77])]())[_0x49c594([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x49c594([0x2e]),'');let _0x4da921=_0x49c594([0x63]);for(let _0xbddd3d=0x0;_0xbddd3d<_0x4f229e[_0x49c594([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbddd3d+=0x2){let _0x43f8ea=window[_0x49c594([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f229e[_0x49c594([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbddd3d,_0xbddd3d+0x2));_0x43f8ea>=_0x32c6da[_0x49c594([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x43f8ea-=_0x32c6da[_0x49c594([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4da921+=_0x32c6da[_0x43f8ea];}return _0x4da921;}());_0x32e7f1[_0x44bf83]=_0x49c594([0x6d,0x65,0x72,0x67,0x65,0x46,0x69,0x65,0x6c,0x64,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x31ef5f,_0x31ef5f!=_0x49c594([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x33db3c,_0x32e7f1[_0x49c594([0x6d,0x6f,0x64,0x65,0x6c])][_0x49c594([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x45be37,_0x32e7f1[_0x49c594([0x6d,0x6f,0x64,0x65,0x6c])][_0x49c594([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x45be37,_0x32e7f1[_0x49c594([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x49c594([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x1471f5);}class MergeFieldsListView extends ListView{['filter'](_0x493f3f){return filterGroupAndItemNames(_0x493f3f,this['items']);}}class MergeFieldsPanelView extends View{constructor(_0x424b42){super(_0x424b42),this['set']('text','');const _0x172bc1=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':_0x172bc1['to']('text')}]}]});}}function getTranslation$8(_0x3579c7,_0x1d7970){const t=_0x3579c7['t'];switch(_0x1d7970){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 _0x1d7970;}}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(_0x2dbf37){super(_0x2dbf37),this['_removeDefaultValuesPreviewIfUnnecessary'](),this['_removeMenuBarButtonIfUnnecessary'](),this['_setupMentionConfiguration']();}['init'](){const _0x5aa86e=this['editor'];_0x5aa86e['ui']['componentFactory']['add']('insertMergeField',_0x1eb998=>{const _0x2fc0bd=createInsertMergeFieldDropdown(_0x1eb998);return _0x2fc0bd['bind']('isEnabled')['toMany']([_0x5aa86e['commands']['get']('insertMergeField'),_0x5aa86e['commands']['get']('insertMergeFieldBlock'),_0x5aa86e['commands']['get']('insertMergeFieldImage')],'isEnabled',(..._0x35b00b)=>_0x35b00b['some'](_0x28b0c2=>_0x28b0c2)),_0x2fc0bd['once']('change:isOpen',()=>{const _0x3ff612={'insertInline':_0x5aa86e['commands']['get']('insertMergeField'),'insertBlock':_0x5aa86e['commands']['get']('insertMergeFieldBlock'),'insertImage':_0x5aa86e['commands']['get']('insertMergeFieldImage')},_0x34dceb=createMergeFieldsListView(_0x1eb998,_0x5aa86e['config']['get']('mergeFields.definitions'),_0x3ff612);_0x34dceb['delegate']('execute')['to'](_0x2fc0bd),_0x2fc0bd['on']('execute',(_0x2030ef,_0x25d4a8)=>{const _0x4a1768=_0x5aa86e['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x25d4a8);'image'===_0x4a1768?_0x5aa86e['execute']('insertMergeFieldImage',_0x25d4a8):'block'===_0x4a1768?_0x5aa86e['execute']('insertMergeFieldBlock',_0x25d4a8):_0x5aa86e['execute']('insertMergeField',_0x25d4a8),_0x5aa86e['editing']['view']['focus']();});const _0x5be34f=createMergeFieldsSearchTextView(_0x1eb998,_0x34dceb);_0x2fc0bd['panelView']['children']['add'](_0x5be34f),_0x2fc0bd['on']('change:isOpen',(_0x3287e9,_0x36d0a9,_0x45d627)=>{_0x45d627&&_0x5be34f['reset']();});}),_0x2fc0bd;}),_0x5aa86e['ui']['componentFactory']['add']('menuBar:insertMergeField',_0x21b66d=>{const _0x43b701=new MenuBarMenuView(_0x21b66d),_0x506a8b={'insertInline':_0x5aa86e['commands']['get']('insertMergeField'),'insertBlock':_0x5aa86e['commands']['get']('insertMergeFieldBlock'),'insertImage':_0x5aa86e['commands']['get']('insertMergeFieldImage')};_0x43b701['buttonView']['set']({'label':getTranslation$8(_0x21b66d,'Merge\x20field'),'icon':IconInsertMergeField}),_0x43b701['bind']('isEnabled')['toMany']([...Object['values'](_0x506a8b)],'isEnabled',(..._0xc6eced)=>_0xc6eced['some'](_0x405a22=>_0x405a22));const _0x1c15e8=[],_0x25d675=new MenuBarMenuListView(_0x21b66d);for(const _0x141c36 of _0x5aa86e['config']['get']('mergeFields.definitions'))if('groupId'in _0x141c36){const _0x3914a7=new MenuBarMenuListItemView(_0x21b66d,_0x43b701),_0x2b2810=createMenuBarSubmenu(_0x21b66d,_0x141c36,_0x506a8b);_0x3914a7['children']['add'](_0x2b2810),_0x2b2810['delegate']('execute')['to'](_0x43b701),_0x25d675['items']['add'](_0x3914a7);}else _0x1c15e8['push'](_0x141c36);if(_0x1c15e8['length']){if(0x0===_0x25d675['items']['length'])for(const _0x46c1c9 of _0x1c15e8){let _0x15120f;_0x15120f='block'===_0x46c1c9['type']?_0x506a8b['insertBlock']:'image'===_0x46c1c9['type']?_0x506a8b['insertImage']:_0x506a8b['insertInline'];const _0x4ad747=createMenuBarListItem(_0x21b66d,_0x46c1c9,_0x43b701,_0x15120f);_0x25d675['items']['add'](_0x4ad747);}else{const _0x1a19d6=new MenuBarMenuListItemView(_0x21b66d,_0x43b701),_0x55a998=createMenuBarSubmenu(_0x21b66d,{'groupId':'Other','definitions':_0x1c15e8},_0x506a8b);_0x1a19d6['children']['add'](_0x55a998),_0x55a998['delegate']('execute')['to'](_0x43b701),_0x25d675['items']['add'](_0x1a19d6);}}return _0x43b701['panelView']['children']['add'](_0x25d675),_0x43b701['on']('execute',(_0x1bebcb,_0x1f53af)=>{const _0x103c78=_0x5aa86e['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x1f53af);'image'===_0x103c78?_0x5aa86e['execute']('insertMergeFieldImage',_0x1f53af):'block'===_0x103c78?_0x5aa86e['execute']('insertMergeFieldBlock',_0x1f53af):_0x5aa86e['execute']('insertMergeField',_0x1f53af),_0x5aa86e['editing']['view']['focus']();}),_0x43b701;});const _0x37ae1b=_0x5aa86e['config']['get']('mergeFields.previewModes'),_0x34c548=[];if(_0x37ae1b['includes']('$labels')&&_0x34c548['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':getTranslation$8(this['editor']['locale'],'Labels'),'commandValue':'$labels'})}),_0x37ae1b['includes']('$defaultValues')&&_0x34c548['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':getTranslation$8(this['editor']['locale'],'Default\x20values'),'commandValue':'$defaultValues'})}),_0x37ae1b['includes']('$dataSets')){const _0x44042b=_0x5aa86e['config']['get']('mergeFields.dataSets');if(_0x44042b['length']){for(const _0x131ad1 of _0x44042b)_0x34c548['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':_0x131ad1['label']||_0x131ad1['id'],'commandValue':_0x131ad1['id']})});}}_0x5aa86e['ui']['componentFactory']['add']('previewMergeFields',_0x43f9c6=>{const _0xddb84=_0x5aa86e['commands']['get']('previewMergeFields'),_0x2acfe9=new Collection();for(const _0x480cca of cloneDeep(_0x34c548))_0x480cca['model']['bind']('isOn')['to'](_0xddb84,'value',_0xbe45d3=>_0xbe45d3===_0x480cca['model']['commandValue']),_0x2acfe9['add'](_0x480cca);const _0x1f4a55=createDropdown(_0x43f9c6),_0x5a1d6d=getTranslation$8(_0x43f9c6,'Merge\x20fields\x20preview');return _0x1f4a55['bind']('isEnabled')['to'](_0xddb84),addListToDropdown(_0x1f4a55,_0x2acfe9,{'ariaLabel':_0x5a1d6d,'role':'menu'}),_0x1f4a55['set']({'class':'ck-merge-fields-preview-dropdown'}),_0x1f4a55['buttonView']['set']({'label':_0x5a1d6d,'ariaLabel':_0x5a1d6d,'ariaLabelledBy':void 0x0,'isOn':!0x1,'icon':IconPreviewMergeFields,'tooltip':!0x0}),this['listenTo'](_0x1f4a55,'execute',_0x322d7d=>{const {commandValue:_0x4067a2}=_0x322d7d['source'];_0x5aa86e['execute']('previewMergeFields',_0x4067a2),_0x5aa86e['editing']['view']['focus']();}),_0x1f4a55;}),_0x5aa86e['ui']['componentFactory']['add']('menuBar:previewMergeFields',_0x3713a2=>{const _0x11cecd=new MenuBarMenuView(_0x3713a2),_0x52d549=_0x5aa86e['commands']['get']('previewMergeFields');_0x11cecd['buttonView']['set']({'label':getTranslation$8(_0x3713a2,'Merge\x20fields\x20preview'),'icon':IconPreviewMergeFields}),_0x11cecd['bind']('isEnabled')['to'](_0x52d549);const _0x4b024f=new MenuBarMenuListView(_0x3713a2);_0x4b024f['set']({'ariaLabel':getTranslation$8(_0x3713a2,'Merge\x20fields\x20preview')});for(const _0x2f4cfe of cloneDeep(_0x34c548)){const _0x47b201=new MenuBarMenuListItemView(_0x3713a2,_0x11cecd),_0x54cec2=new MenuBarMenuListItemButtonView(_0x3713a2);_0x2f4cfe['model']['bind']('isOn')['to'](_0x52d549,'value',_0x2eaacb=>_0x2eaacb===_0x2f4cfe['model']['commandValue']),_0x54cec2['isToggleable']=!0x0,_0x54cec2['bind'](...Object['keys'](_0x2f4cfe['model']))['to'](_0x2f4cfe['model']),_0x54cec2['delegate']('execute')['to'](_0x11cecd),_0x54cec2['on']('execute',_0x23f7bf=>{const {commandValue:_0x1b843b}=_0x23f7bf['source'];_0x5aa86e['execute']('previewMergeFields',_0x1b843b),_0x5aa86e['editing']['view']['focus']();}),_0x47b201['children']['add'](_0x54cec2),_0x4b024f['items']['add'](_0x47b201);}return _0x11cecd['panelView']['children']['add'](_0x4b024f),_0x11cecd;}),this['_balloon']=_0x5aa86e['plugins']['get'](ContextualBalloon),this['listenTo'](_0x5aa86e['ui'],'update',()=>{this['_updateBalloonVisibility']();},{'priority':'low'}),this['listenTo'](_0x5aa86e['ui']['focusTracker'],'change:isFocused',(_0x101b15,_0x76ca73,_0x2fbc5f)=>{this['_balloon']['visibleView']&&this['_balloon']['visibleView']===this['_balloonPanelView']&&(_0x2fbc5f?this['_updateBalloonVisibility']():this['_hideBalloon']());},{'priority':'low'}),this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x52afdd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1dd607;for(const _0x33d7b3 in _0x52afdd){const _0x18d95e=_0x33d7b3,_0xb7ca0d=_0x52afdd[_0x18d95e];if('mergeFieldsLicenseKeyValid'==_0xb7ca0d||'mergeFieldsLicenseKeyInvalid'==_0xb7ca0d||'mergeFieldsLicenseKeyExpired'==_0xb7ca0d||'mergeFieldsLicenseKeyDomainLimit'==_0xb7ca0d||'mergeFieldsLicenseKeyNotAllowed'==_0xb7ca0d||'mergeFieldsLicenseKeyEvaluationLimit'==_0xb7ca0d||'mergeFieldsLicenseKeyUsageLimit'==_0xb7ca0d){delete _0x52afdd[_0x18d95e],_0x1dd607=_0xb7ca0d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'mergeFieldsLicenseKeyInvalid'==_0x1dd607&&_0x52afdd['_showLicenseError']('invalid'),'mergeFieldsLicenseKeyExpired'==_0x1dd607&&_0x52afdd['_showLicenseError']('expired'),'mergeFieldsLicenseKeyDomainLimit'==_0x1dd607&&_0x52afdd['_showLicenseError']('domainLimit'),'mergeFieldsLicenseKeyNotAllowed'==_0x1dd607&&_0x52afdd['_showLicenseError']('featureNotAllowed','MergeFields'),'mergeFieldsLicenseKeyEvaluationLimit'==_0x1dd607&&_0x52afdd['_showLicenseError']('evaluationLimit'),'mergeFieldsLicenseKeyUsageLimit'==_0x1dd607&&_0x52afdd['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_updateBalloonVisibility'](){const _0x2ad326=this['editor']['editing']['view']['document']['selection']['getSelectedElement'](),_0x242397=!(!_0x2ad326||!_0x2ad326['getCustomProperty']('mergeFieldStatus'));if(this['_balloon']['hasView'](this['_balloonPanelView'])&&this['_balloon']['visibleView']===this['_balloonPanelView']){if(_0x242397){const _0x261c9c=_0x2ad326['getCustomProperty']('mergeFieldStatus');this['_balloonPanelView']['text']=getTranslation$8(this['editor']['locale'],_0x261c9c),this['_balloon']['updatePosition'](this['_getBalloonPositionData']());}else this['_hideBalloon']();}else{if(_0x242397){const _0x1592b0=_0x2ad326['getCustomProperty']('mergeFieldStatus');this['_showBalloon'](getTranslation$8(this['editor']['locale'],_0x1592b0));}}}['_showBalloon'](_0x3bcf58){this['_balloonPanelView']||(this['_balloonPanelView']=new MergeFieldsPanelView(this['editor']['locale']),this['_balloonPanelView']['text']=_0x3bcf58),this['_balloon']['hasView'](this['_balloonPanelView'])||(this['_balloon']['add']({'stackId':'mergeFieldsStatus','view':this['_balloonPanelView'],'position':this['_getBalloonPositionData']()}),this['_balloon']['showStack']('mergeFieldsStatus'));}['_getBalloonPositionData'](){const _0x5892b8=this['editor']['editing']['view'];return{'target':()=>{const _0x2906c3=_0x5892b8['document']['selection']['getFirstRange'](),_0x38ec1b=_0x5892b8['domConverter']['mapViewToDom'](_0x2906c3['getContainedElement']());return _0x38ec1b?Array['from'](_0x38ec1b['getClientRects']())[0x0]:_0x5892b8['domConverter']['viewRangeToDom'](_0x2906c3);}};}['_hideBalloon'](){this['_balloon']['remove'](this['_balloonPanelView']);}['_removeDefaultValuesPreviewIfUnnecessary'](){if(Object['values'](this['editor']['plugins']['get']('MergeFieldsEditing')['getDefaultValues']())['some'](_0x159d78=>_0x159d78))return;const _0x4a63b7=this['editor']['config']['get']('mergeFields.previewModes');_0x4a63b7['indexOf']('$defaultValues')>-0x1&&_0x4a63b7['length']>0x1&&(_0x4a63b7['splice'](_0x4a63b7['indexOf']('$defaultValues'),0x1),this['editor']['config']['set']('mergeFields.previewModes',_0x4a63b7));}['_removeMenuBarButtonIfUnnecessary'](){const _0x3731b1=this['editor']['config'];if(_0x3731b1['get']('mergeFields.previewModes')){const _0x5b56f7=_0x3731b1['get']('mergeFields.previewModes');if(0x1===_0x5b56f7['length']){if(_0x5b56f7['includes']('$dataSets'))0x1===_0x3731b1['get']('mergeFields.dataSets')['length']&&_0x1028ec();else _0x1028ec();}}function _0x1028ec(){const _0x26dcf4=_0x3731b1['get']('menuBar.removeItems');_0x26dcf4?(_0x26dcf4['push']('menuBar:previewMergeFields'),_0x3731b1['set']('menuBar.removeItems',_0x26dcf4)):_0x3731b1['set']('menuBar.removeItems',['menuBar:previewMergeFields']);}}['_setupMentionConfiguration'](){const _0x21d4fa=this['editor'],_0xc2edaf=_0x21d4fa['config']['get']('mention.feeds'),_0x216362=_0x21d4fa['config']['get']('mergeFields.prefix');_0xc2edaf['push']({'marker':_0x216362,'dropdownLimit':0xa,'feed':_0x67c19b=>_0x21d4fa['plugins']['get']('MergeFieldsEditing')['flattenedMergeFieldDefinitions']['filter'](_0x118079=>{const _0x36444b=_0x21d4fa['commands']['get']('insertMergeField')['isEnabled'],_0x27345c=_0x21d4fa['commands']['get']('insertMergeFieldBlock')['isEnabled'],_0xfdf4fb=_0x21d4fa['commands']['get']('insertMergeFieldImage')['isEnabled'],_0x17876d=_0x21d4fa['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x118079['id']);if('text'===_0x17876d&&!_0x36444b)return!0x1;if('block'===_0x17876d&&!_0x27345c)return!0x1;if('image'===_0x17876d&&!_0xfdf4fb)return!0x1;return(_0x21d4fa['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x118079['id'])||_0x118079['id'])['toLowerCase']()['includes'](_0x67c19b['toLowerCase']());}),'itemRenderer':_0x1bfa4d=>{const _0x5b8aaa=document['createElement']('button');return _0x5b8aaa['innerHTML']=''+(_0x1bfa4d['label']||_0x1bfa4d['id']),_0x5b8aaa;}}),_0x21d4fa['config']['set']('mention.feeds',_0xc2edaf);}['_overrideMentionExecuteListener'](){const _0x245963=this['editor'];_0x245963['commands']['get']('mention')['on']('execute',(_0x3bb815,_0x59f34a)=>{const _0x34fded=_0x59f34a[0x0];_0x34fded['marker']===_0x245963['config']['get']('mergeFields.prefix')&&_0x245963['model']['change'](_0x345daa=>{_0x345daa['remove'](_0x34fded['range']);const _0x4218bf=_0x34fded['mention']['id'],_0x2547a1=_0x245963['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x4218bf);'text'===_0x2547a1?_0x245963['execute']('insertMergeField',_0x4218bf):'block'===_0x2547a1?_0x245963['execute']('insertMergeFieldBlock',_0x4218bf,!0x1):_0x245963['execute']('insertMergeFieldImage',_0x4218bf,{'breakBlock':!0x0}),_0x3bb815['stop']();});},{'priority':'high'});}}function createInsertMergeFieldDropdown(_0x529f2c){const _0x1dc935=createDropdown(_0x529f2c);return _0x1dc935['set']({'class':'ck-insert-merge-field-dropdown','isEnabled':!0x0}),_0x1dc935['buttonView']['set']({'label':getTranslation$8(_0x529f2c,'Insert\x20merge\x20field'),'icon':IconInsertMergeField,'tooltip':!0x0}),_0x1dc935;}function createMergeFieldsListView(_0x2f0dfc,_0x4a8110,_0x4f1024){const _0x5d952d=new MergeFieldsListView(_0x2f0dfc),_0x33b22c=[],_0x531f94=[];for(const _0x579027 of _0x4a8110)if('groupId'in _0x579027){const _0x1a581f=createMergeFieldsGroupView(_0x2f0dfc,_0x579027['groupLabel']||_0x579027['groupId'],_0x579027['definitions'],_0x4f1024);_0x1a581f['delegate']('execute')['to'](_0x5d952d),_0x531f94['push'](_0x1a581f);}else _0x33b22c['push'](_0x579027);if(_0x33b22c['length']){const _0xcd431a=createMergeFieldsGroupView(_0x2f0dfc,'Other',_0x33b22c,_0x4f1024);_0xcd431a['delegate']('execute')['to'](_0x5d952d),_0x531f94['push'](_0xcd431a);}return _0x5d952d['items']['addMany'](_0x531f94),_0x5d952d;}function createMergeFieldsGroupView(_0x407e94,_0x56604a,_0x499c58,_0xafb2a3){const _0x3694e5=new ListItemGroupView(_0x407e94,new LabelWithHighlightView());_0x3694e5['label']=_0x56604a;for(const _0x31fe28 of _0x499c58){let _0x3329c8;_0x3329c8='block'===_0x31fe28['type']?_0xafb2a3['insertBlock']:'image'===_0x31fe28['type']?_0xafb2a3['insertImage']:_0xafb2a3['insertInline'];const _0x4437c0=createMergeFieldListItemView(_0x407e94,_0x31fe28,_0x3329c8);_0x4437c0['delegate']('execute')['to'](_0x3694e5),_0x3694e5['items']['add'](_0x4437c0);}return _0x3694e5;}function createMergeFieldListItemView(_0x4aa9a0,_0xe7563c,_0x1c6793){const _0x417e61=new ListItemView(_0x4aa9a0),_0x439171=new ButtonLabelWithHighlightView(),_0x583ea0=new ButtonView(_0x4aa9a0,_0x439171);return _0x417e61['children']['add'](_0x583ea0),_0x583ea0['set']({'label':_0xe7563c['label']||_0xe7563c['id'],'withText':!0x0}),_0x583ea0['bind']('isEnabled')['to'](_0x1c6793),_0x583ea0['on']('execute',()=>{_0x417e61['fire']('execute',_0xe7563c['id']);}),_0x417e61;}function createMergeFieldsSearchTextView(_0x53fdf4,_0x5d6be7){return new SearchTextView(_0x53fdf4,{'filteredView':_0x5d6be7,'queryView':{'label':getTranslation$8(_0x53fdf4,'Search\x20merge\x20field')},'class':'ck-merge-fields-search','infoView':{'text':{'notFound':{'primary':getTranslation$8(_0x53fdf4,'No\x20merge\x20fields\x20found')},'noSearchableItems':{'primary':getTranslation$8(_0x53fdf4,'No\x20merge\x20fields\x20available')}}}});}function createMenuBarSubmenu(_0x5a3a1b,_0x32b495,_0x37f856){const _0x7dc9e1=new MenuBarMenuView(_0x5a3a1b),_0xeea8cf=new MenuBarMenuListView(_0x5a3a1b);for(const _0x491485 of _0x32b495['definitions']){let _0x49284f;_0x49284f='block'===_0x491485['type']?_0x37f856['insertBlock']:'image'===_0x491485['type']?_0x37f856['insertImage']:_0x37f856['insertInline'];const _0x386eeb=createMenuBarListItem(_0x5a3a1b,_0x491485,_0x7dc9e1,_0x49284f);_0xeea8cf['items']['add'](_0x386eeb);}return _0x7dc9e1['set']({'class':'ck-menu-bar__merge-fields-submenu'}),_0x7dc9e1['buttonView']['set']({'label':_0x32b495['groupLabel']||_0x32b495['groupId']}),_0x7dc9e1['panelView']['children']['add'](_0xeea8cf),_0x7dc9e1;}function createMenuBarListItem(_0x5d9dbe,_0x1e7c41,_0x3468c2,_0x16056a){const _0x1c29d4=new MenuBarMenuListItemView(_0x5d9dbe,_0x3468c2),_0x307ba5=new MenuBarMenuListItemButtonView(_0x5d9dbe);return _0x307ba5['set']({'label':_0x1e7c41['label']||_0x1e7c41['id']}),_0x1c29d4['delegate']('execute')['to'](_0x3468c2),_0x1c29d4['children']['add'](_0x307ba5),_0x307ba5['bind']('isEnabled')['to'](_0x16056a),_0x307ba5['on']('execute',()=>{_0x1c29d4['fire']('execute',_0x1e7c41['id']);}),_0x1c29d4;}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 _0x2e7aee=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x2e7aee),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x124b24,_0xf3c1f9,_0x543573)=>{_0x543573&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){checkLicense$7(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x906764=this['editor'],_0x25bc25=_0x906764['editing']['view'],_0x19d11c=this['_getAttachedDomRoot']();if(!_0x19d11c||0x0===_0x19d11c['childElementCount'])return void _0x906764['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x51d70a,pageHeight:_0x38d59e}=_0x906764['config']['get']('pagination'),{top:_0xabff5,left:_0x4925e2,bottom:_0x5246cf,right:_0x4c7cfd}=this['_configuredPaddings'];this['_pagesContainer']=new View(_0x906764['locale']);const _0xfdb9b7=this['_pagesContainer'];_0xfdb9b7['set']('class',''),_0xfdb9b7['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x51d70a,'width':_0x51d70a,'height':'calc(\x20'+_0x38d59e+'\x20-\x20'+_0xabff5+'\x20-\x20'+_0x5246cf+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x4c7cfd+'\x200\x20'+_0x4925e2,'columnGap':'calc('+_0x4925e2+'\x20+\x20'+_0x4c7cfd+'\x20+\x20'+COLUMN_GAP+'px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0xfdb9b7['bindTemplate']['to']('class')}}),_0xfdb9b7['render'](),_0x19d11c['parentNode']['insertBefore'](_0xfdb9b7['element'],_0x19d11c['nextSibling']),this['listenTo'](_0x25bc25,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x3251e7 of this['editor']['editing']['view']['domRoots']['values']())if(_0x3251e7['ownerDocument']['body']['contains'](_0x3251e7))return _0x3251e7;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x416d3a=this['editor']['editing']['view'],_0x1a8e9f=this['_pagesContainer'],_0x3275ec=this['_getAttachedDomRoot']();if(!_0x3275ec)return Promise['resolve']();for(_0x1a8e9f['class']=['ck-reset','ck-pagination-view',..._0x3275ec['classList']]['join']('\x20');_0x1a8e9f['element']['firstChild'];)_0x1a8e9f['element']['firstChild']['remove']();const _0x29677f=Array['from'](_0x416d3a['domRoots']);_0x29677f['sort'](([,_0x291fa8],[,_0x12705d])=>_0x291fa8['compareDocumentPosition'](_0x12705d)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x261632,_0x133f5e]of _0x29677f){const _0x17b018=_0x133f5e['cloneNode'](!0x0);'attributeStyleMap'in _0x17b018&&_0x17b018['attributeStyleMap']['clear'](),_0x17b018['dataset']['rootName']=_0x261632,_0x17b018['className']='ck-content\x20ck-pagination_enabled',_0x17b018['removeAttribute']('id'),_0x17b018['tabIndex']=-0x1,_0x1a8e9f['element']['append'](_0x17b018);}const _0x394158=Array['from'](_0x1a8e9f['element']['querySelectorAll']('img'));return allImagesAreReady(_0x394158)['then'](()=>{for(const _0x202875 of _0x394158['filter'](_0x327ba3=>!_0x327ba3['closest']('table')))if(_0x202875['offsetParent']){const _0x5a7dd0=_0x347e1e['window']['getComputedStyle'](_0x202875),_0x1c10f5=_0x347e1e['document']['createElement']('span');for(const _0xb98829 of _0x5a7dd0)_0x1c10f5['style']['setProperty'](_0xb98829,_0x5a7dd0[_0xb98829]);_0x1c10f5['style']['backgroundImage']='url(\x20'+_0x202875['src']+'\x20)',_0x1c10f5['style']['breakInside']='avoid','PICTURE'==_0x202875['parentElement']?.['tagName']?_0x202875['parentElement']['replaceWith'](_0x1c10f5):_0x202875['replaceWith'](_0x1c10f5);}return nextAnimationFrame();})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0xeac040=this['_pagesContainer']['element'];if(!_0xeac040['ownerDocument']['body']['contains'](_0xeac040))return;const _0x2dcf0b=new Rect(_0xeac040)['excludeScrollbarsAndBorders'](),_0x50ef44=Math['floor'](_0x2dcf0b['width']+COLUMN_GAP),_0x46dd33=findPageStarterInfos(_0xeac040,Math['floor'](_0x2dcf0b['left']-_0xeac040['scrollLeft']),_0x50ef44,_0x2dcf0b['height'])['map'](_0xa44ff0=>this['_mapPageStarterInfoToPageBreakInfo'](_0xa44ff0))['filter'](_0x2d98a9=>!0x1!==_0x2d98a9);_0x46dd33['every'](_0x341801=>!!_0x341801)&&(this['pageBreaks']=_0x46dd33);}['_mapPageStarterInfoToPageBreakInfo'](_0x5d98ce){const _0x17a386=this['editor']['editing']['view'],_0xaecf65=this['editor']['editing']['mapper'],_0x39e4ca=_0x17a386['domConverter'],_0x4143ad=_0x5d98ce['path']['shift'](),_0x128869=this['_pagesContainer']['element']['childNodes'][_0x4143ad]['dataset']['rootName'],_0x45c8a0=_0x17a386['getDomRoot'](_0x128869);if(!_0x45c8a0)return null;const _0xe470f2=pageElementToViewElement(_0x45c8a0,_0x5d98ce);if(!_0xe470f2)return null;const _0x3451d7=_0x39e4ca['domPositionToView'](_0xe470f2,_0x5d98ce['textOffset']||0x0);return _0x3451d7?'manual'==_0x5d98ce['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x3451d7,_0xe470f2):'text'==_0x5d98ce['type']&&_0xaecf65['toModelPosition'](_0x3451d7)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x3451d7,_0xe470f2,_0x5d98ce['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x3451d7,_0xe470f2,_0x5d98ce['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x1de383,_0x240977){const _0x359e15=this['editor']['model'],_0x5ce6c2=this['editor']['editing']['mapper']['toModelElement'](_0x1de383['parent']),_0x461b28=_0x359e15['createRangeOn'](_0x5ce6c2);return new PageBreakInfo({'type':'manual','modelRange':_0x461b28,'domNode':_0x240977,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x18f360,_0x2be42c,_0x5b229e){const _0x532c86=this['editor']['model'],_0x1a7d81=this['editor']['editing']['mapper'],_0x2fe93f=this['editor']['editing']['view']['domConverter'];if(_0x5b229e>=_0x2be42c['length'])return null;const _0x1f581a=_0x1a7d81['toModelPosition'](_0x18f360),_0xb5f6c8=_0x532c86['createRange'](_0x1f581a),_0x3f49f4=_0x1a7d81['findMappedViewAncestor'](_0x18f360),_0x3078ca=_0x2fe93f['mapViewToDom'](_0x3f49f4);return new PageBreakInfo({'type':'text','modelRange':_0xb5f6c8,'domNode':_0x2be42c,'offset':findOffsetTopForTextOffset(_0x2be42c,_0x5b229e,_0x3078ca)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x4a40f6,_0x1230e7,_0x5ee193){const _0x10328a=this['editor']['model'],_0x1e8c43=this['editor']['editing'],_0xedd796=_0x1e8c43['mapper'],_0x2341ef=_0x1e8c43['view']['domConverter'],_0x51933b=_0xedd796['findMappedViewAncestor'](_0x4a40f6),_0x5192f6=_0xedd796['toModelElement'](_0x51933b);if(!_0x5192f6||_0x5192f6['is']('element','$root'))return!0x1;const _0xd72d20=getTopMostParentBlockTouchingPosition(_0x10328a['createPositionBefore'](_0x5192f6))||_0x5192f6;let _0x48b27a=_0xedd796['toViewElement'](_0xd72d20),_0x4c98dd=_0x10328a['createRangeOn'](_0xd72d20);const _0x1da938=_0x10328a['createPositionBefore'](_0xd72d20)['nodeBefore'];if(_0x1da938&&_0x1da938['is']('element','imageBlock')){const _0x2e1710=_0xedd796['toViewElement'](_0x1da938),_0x4b2e16=_0x2341ef['mapViewToDom'](_0x2e1710),_0x27c7d2=_0x347e1e['window']['getComputedStyle'](_0x4b2e16)['float'];'left'!=_0x27c7d2&&'right'!=_0x27c7d2||(_0x4c98dd=_0x10328a['createRangeOn'](_0x1da938));}for(;_0x48b27a['parent']!==_0x48b27a['root']&&0x0===_0x48b27a['index'];)_0x48b27a=_0x48b27a['parent'];const _0x2b0721=new Rect(isHTMLElement(_0x1230e7)?_0x1230e7:createDomRangeOn(_0x1230e7)),_0x8386ae=_0x5ee193?_0x2b0721['height']-_0x5ee193:0x0,_0x17cb96=_0x2341ef['mapViewToDom'](_0x48b27a),_0xf6b848=new Rect(_0x17cb96);return new PageBreakInfo({'type':'element','modelRange':_0x4c98dd,'domNode':_0x17cb96,'offset':Math['round'](_0x8386ae)||_0x51933b!=findBlockAncestor(_0x4a40f6)?_0x8386ae+_0x2b0721['top']-_0xf6b848['top']:0x0});}get['_configuredPaddings'](){const _0x3e52cc=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x3e52cc);}static['_findPageStarterInfos'](_0x1ad355,_0x27554c,_0x183316,_0x358bfa,_0x3ae725){return findPageStarterInfos(_0x1ad355,_0x27554c,_0x183316,_0x358bfa,_0x3ae725);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x166e7e,modelRange:_0x56af3d,domNode:_0x5f2332,offset:_0x196d28}){this['type']=_0x166e7e,this['modelRange']=_0x56af3d,this['_domNode']=_0x5f2332,this['_offset']=_0x196d28;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x1bd625=new Rect(isHTMLElement(this['_domNode'])?this['_domNode']:createDomRangeOn(this['_domNode']));return'manual'==this['type']?_0x1bd625['top']+_0x1bd625['height']/0x2:_0x1bd625['top']+this['_offset'];}}function isPageBreak(_0x467a10){return!(!_0x467a10||!isHTMLElement(_0x467a10))&&Boolean(_0x467a10['classList']['contains']('page-break')||_0x467a10['closest']('.page-break'));}function pageElementToViewElement(_0x4a0df7,_0x2fbdf7){let _0x3287b6=_0x4a0df7;for(const _0x2af6fe of _0x2fbdf7['path']){if(!_0x3287b6)return null;_0x3287b6=_0x3287b6['childNodes'][_0x2af6fe];}return _0x3287b6;}function findOffsetTopForTextOffset(_0x183da,_0x1ec6e1,_0x379361){const _0x4c4dc3=createDomRangeOn(_0x183da),_0x414651=createDomRangeIn(_0x379361);let _0x920c7f;_0x920c7f=0x0==_0x1ec6e1?createDomRangeMultiNode(_0x414651['startContainer'],_0x414651['startOffset'],_0x183da['parentNode'],Array['from'](_0x183da['parentNode']['childNodes'])['indexOf'](_0x183da)):createDomRangeMultiNode(_0x414651['startContainer'],_0x414651['startOffset'],_0x183da,_0x1ec6e1);const _0x2ec059=createDomRangeMultiNode(_0x183da,_0x1ec6e1,_0x414651['endContainer'],_0x414651['endOffset']),_0xe40367=new Rect(_0x920c7f)['bottom'];return(new Rect(_0x2ec059)['top']+_0xe40367)/0x2-new Rect(_0x4c4dc3)['top'];}function getTopMostParentBlockTouchingPosition(_0x31f7d8){const _0x4b4eaa=_0x31f7d8['parent'],_0x3a831a=_0x4b4eaa['root']['document']['model'],_0x13d865=_0x4b4eaa['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x13e176=null;for(const _0x59f6be of _0x13d865){if(_0x59f6be['is']('rootElement'))return _0x13e176;if(!_0x3a831a['createPositionBefore'](_0x59f6be)['isTouching'](_0x31f7d8))return _0x13e176;_0x13e176=_0x59f6be;}}function findBlockAncestor(_0x35e1e3){let _0x15b0bc=_0x35e1e3['parent'];for(;_0x15b0bc['is']('$text')||_0x15b0bc['is']('attributeElement');)_0x15b0bc=_0x15b0bc['parent'];return _0x15b0bc;}function allImagesAreReady(_0x403899){return Promise['all'](_0x403899['map'](_0x35f487=>Promise['race']([imageReady(_0x35f487),timeout(0x3e8)])));}function imageReady(_0x1fc864){return _0x1fc864['hasAttribute']('width')&&_0x1fc864['hasAttribute']('height')?Promise['resolve']():new Promise(_0x52bd5b=>{function _0x40e03a(){_0x1fc864['removeEventListener']('load',_0x40e03a),_0x1fc864['removeEventListener']('error',_0x40e03a),_0x52bd5b();}_0x1fc864['complete']?_0x52bd5b():(_0x1fc864['addEventListener']('load',_0x40e03a),_0x1fc864['addEventListener']('error',_0x40e03a));});}function timeout(_0x161bf7){return new Promise(_0x59758e=>setTimeout(_0x59758e,_0x161bf7));}function nextAnimationFrame(){return new Promise(_0x56bfbd=>_0x347e1e['window']['requestAnimationFrame'](()=>_0x56bfbd()));}function createDomRangeOn(_0x1dabc9){const _0x511eba=_0x347e1e['document']['createRange']();return _0x511eba['selectNode'](_0x1dabc9),_0x511eba;}function createDomRangeIn(_0x1b0d03){const _0x345185=_0x347e1e['document']['createRange']();return _0x345185['selectNodeContents'](_0x1b0d03),_0x345185;}function createDomRange(_0xcc1b9b,_0x30264b,_0x102614){const _0x1d3130=_0x347e1e['document']['createRange']();return _0x1d3130['setStart'](_0xcc1b9b,_0x30264b),_0x1d3130['setEnd'](_0xcc1b9b,_0x102614),_0x1d3130;}function createDomRangeMultiNode(_0x157974,_0x2f642d,_0x203951,_0x342853){const _0x522e31=_0x347e1e['document']['createRange']();return _0x522e31['setStart'](_0x157974,_0x2f642d),_0x522e31['setEnd'](_0x203951,_0x342853),_0x522e31;}function findPageStarterInfos(_0x2b6d0d,_0x31c1bc,_0x286af6,_0x58a0c5,_0x3262e5){const _0x2111b4=[];for(const [_0x13d2a8,_0x43a704]of _0x2b6d0d['childNodes']['entries']()){let _0x4f8c77=[];isHTMLElement(_0x43a704)&&_0x43a704['offsetParent']&&['static','relative']['includes'](_0x347e1e['window']['getComputedStyle'](_0x43a704)['position'])?_0x4f8c77=findPageStartersInElementNode(_0x43a704,_0x13d2a8,_0x31c1bc,_0x286af6,_0x58a0c5,_0x3262e5):isText(_0x43a704)&&(_0x4f8c77=findPageStartersInTextNode(_0x43a704,_0x13d2a8,_0x31c1bc,_0x286af6,_0x3262e5)),_0x4f8c77['length']&&(_0x2111b4['push'](..._0x4f8c77),_0x31c1bc+=_0x4f8c77['length']*_0x286af6,_0x3262e5=!0x1);}return _0x2111b4;}function findPageStartersInElementNode(_0x99e945,_0x492a16,_0x2a2985,_0x1f282a,_0x25f0ec,_0x1802f8){const _0x346e24=[];if(isPageBreak(_0x99e945['previousSibling'])&&(_0x346e24['push']({'type':'manual','offset':0x0,'path':[_0x492a16-0x1]}),_0x1802f8=!0x0),'table-row'==_0x347e1e['window']['getComputedStyle'](_0x99e945)['display']){let _0x5bb988=0x0,_0x5d1287=!0x1;for(const _0x239adc of _0x99e945['getClientRects']())_0x5bb988+=_0x239adc['height'],_0x239adc['left']>=_0x2a2985&&(_0x5d1287=!0x0);if(_0x5bb988<_0x25f0ec&&_0x5d1287)return _0x1802f8||_0x346e24['push']({'type':'element','offset':0x0,'path':[_0x492a16]}),_0x346e24;}const _0x393080=_0x99e945['closest']('figure.image');if(_0x393080&&shouldIgnoreFigure(_0x393080)){const _0x3b4fb2=_0x347e1e['window']['getComputedStyle'](_0x393080)['float'];if('left'==_0x3b4fb2||'right'==_0x3b4fb2)return _0x346e24;}const _0x28339c=findPageStarterInfos(_0x99e945,_0x2a2985,_0x1f282a,_0x25f0ec,_0x1802f8);if(_0x28339c['length']){for(const _0x1478e5 of _0x28339c)_0x346e24['push']({'type':_0x1478e5['type'],'offset':_0x1478e5['offset'],'textOffset':_0x1478e5['textOffset'],'path':[_0x492a16,..._0x1478e5['path']]}),_0x2a2985+=_0x1f282a,_0x1802f8=!0x1;return _0x346e24;}return _0x346e24['push'](...findPageStartersInLeafElementNode(_0x99e945,_0x492a16,_0x2a2985,_0x1f282a,_0x1802f8)),_0x346e24;}function findPageStartersInLeafElementNode(_0x414709,_0x3e5e57,_0x2378cc,_0x3a2dd,_0xe6309c){const _0x2311bf=[];if('table-cell'==_0x347e1e['window']['getComputedStyle'](_0x414709)['display'])return[];const _0x4e2a5f=[];for(const _0x47ab12 of _0x414709['getClientRects']())if(_0x47ab12['left']>=_0x2378cc){for(const _0x2ca09c of _0x4e2a5f)_0x2ca09c['height']+=_0x47ab12['height'];_0x4e2a5f['push']({'height':_0x47ab12['height']}),_0x2378cc+=_0x3a2dd;}for(const _0x101406 of _0x4e2a5f)_0xe6309c||_0x2311bf['push']({'type':'element','offset':_0x101406['height'],'textOffset':0x0,'path':[_0x3e5e57]}),_0xe6309c=!0x1;return _0x2311bf;}function findPageStartersInTextNode(_0x49fc41,_0x5eae9f,_0x244440,_0x194bd8,_0x535ed1){const _0x13be92=createDomRangeOn(_0x49fc41),_0x5d43c3=[];let _0x54a779=0x0;for(const _0x3875ea of _0x13be92['getClientRects']())if(_0x3875ea['left']>=_0x244440){const _0x35dc44=findLastTextOffsetOnPage(_0x49fc41,_0x54a779,_0x244440,_0x194bd8);_0x535ed1||_0x5d43c3['push']({'type':'text','path':[_0x5eae9f],'textOffset':_0x35dc44}),_0x54a779=_0x35dc44,_0x244440+=_0x194bd8,_0x535ed1=!0x1;}return _0x5d43c3;}function findLastTextOffsetOnPage(_0x2c315b,_0x2c06cf,_0x564323,_0xbc238d){let _0x431a6d=_0x2c06cf,_0x484782=_0x2c315b['length'];for(;_0x484782-_0x431a6d>0x1;){const _0x27de1a=Math['ceil']((_0x431a6d+_0x484782)/0x2);domRangeContainsPageBreak(createDomRange(_0x2c315b,_0x431a6d,_0x27de1a),_0x564323,_0xbc238d)?_0x484782=_0x27de1a:_0x431a6d=_0x27de1a;}return _0x431a6d;}function domRangeContainsPageBreak(_0x5087fd,_0x4bc0f1,_0x3b914f){for(const _0x4a272a of _0x5087fd['getClientRects']())if(_0x4a272a['left']>=_0x4bc0f1&&_0x4a272a['left']<_0x4bc0f1+_0x3b914f)return!0x0;return!0x1;}function shouldIgnoreFigure(_0x549709){let _0x318769=!0x1;const _0x3888c5=_0x549709['parentElement']['dataset']['rootName'],_0xe4b8d5=_0x549709['nextElementSibling'],_0x513acc=_0x549709['previousElementSibling'],_0x7f3df4=_0xe4b8d5&&_0x347e1e['window']['getComputedStyle'](_0xe4b8d5)['float'],_0x1279fb=_0xe4b8d5&&'ck-fake-selection-container'===_0xe4b8d5['className'];return!_0x3888c5||_0xe4b8d5||_0x513acc||(_0x318769=!0x0),_0x3888c5&&!_0x513acc&&_0x1279fb&&(_0x318769=!0x0),_0x3888c5&&!_0x513acc&&'none'!==_0x7f3df4&&(_0x318769=!0x0),!_0x318769;}function isHTMLElement(_0x518f8c){return _0x518f8c['nodeType']==Node['ELEMENT_NODE'];}function isText(_0x11cbd0){return _0x11cbd0['nodeType']==Node['TEXT_NODE'];}async function checkLicense$7(_0x51208e){const _0x4f490a=_0x1576c2([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]),_0x22d2ec=window[_0x1576c2([0x44,0x61,0x74,0x65])][_0x1576c2([0x6e,0x6f,0x77])](),_0x41d534=_0x51208e[_0x1576c2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xebb9d0=new window[(_0x1576c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x557670=>{_0x41d534[_0x1576c2([0x6f,0x6e,0x63,0x65])](_0x1576c2([0x72,0x65,0x61,0x64,0x79]),_0x557670);}),_0x4e7e85={[_0x1576c2([0x6b,0x74,0x79])]:_0x1576c2([0x45,0x43]),[_0x1576c2([0x75,0x73,0x65])]:_0x1576c2([0x73,0x69,0x67]),[_0x1576c2([0x63,0x72,0x76])]:_0x1576c2([0x50,0x2d,0x32,0x35,0x36]),[_0x1576c2([0x78])]:_0x1576c2([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]),[_0x1576c2([0x79])]:_0x1576c2([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]),[_0x1576c2([0x61,0x6c,0x67])]:_0x1576c2([0x45,0x53,0x32,0x35,0x36])},_0x499821=_0x41d534[_0x1576c2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1576c2([0x67,0x65,0x74])](_0x1576c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x3f78cb=await(async function(){let _0x1a0173,_0x2b2355=null,_0x5b26f8=null;try{if(_0x499821==_0x1576c2([0x47,0x50,0x4c]))return _0x1576c2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1a0173=(function(){const _0x3ff2c8=_0x499821[_0x1576c2([0x73,0x70,0x6c,0x69,0x74])](_0x1576c2([0x2e]));if(0x3!=_0x3ff2c8[_0x1576c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x5907ad=_0x3ff2c8[0x1];return _0x145367(_0x5907ad);function _0x145367(_0x3dc5b5){const _0x270e77=_0x399299(_0x3dc5b5);return _0x270e77&&_0x58ba3a()?_0x270e77:null;function _0x58ba3a(){const _0x53a88c=_0x270e77[_0x1576c2([0x6a,0x74,0x69])],_0x33e699=window[_0x1576c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53a88c[_0x1576c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53a88c[_0x1576c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5eddb5={..._0x270e77,[_0x1576c2([0x6a,0x74,0x69])]:_0x53a88c[_0x1576c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53a88c[_0x1576c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5eddb5[_0x1576c2([0x76,0x63])],_0x5d6a21(_0x5eddb5)==_0x33e699;}}}()),!_0x1a0173)return _0x1576c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x1a0173[_0x1576c2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b26f8=function(_0x2de016,_0x4a6642){return new window[(_0x1576c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dee57=>{if(_0x22b154())return _0x5dee57(_0x1576c2([0x56,0x61,0x6c,0x69,0x64]));_0x2f3f30(),_0x41d534[_0x1576c2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1576c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1dab1f=!0x1;const _0x2706e8=uid();function _0x229355(_0x12da40){return!!_0x12da40&&(typeof _0x12da40===_0x1576c2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x12da40===_0x1576c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x12da40[_0x1576c2([0x74,0x68,0x65,0x6e])]===_0x1576c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x12da40[_0x1576c2([0x63,0x61,0x74,0x63,0x68])]===_0x1576c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5784be(_0x82745b){_0x1dfc9c(_0x82745b)[_0x1576c2([0x74,0x68,0x65,0x6e])](_0x527734=>{if(!_0x527734||_0x527734[_0x1576c2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1576c2([0x6f,0x6b]))return _0x1576c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x545d5a(_0x5d6a21(_0x2706e8+_0x4a6642))!=_0x527734[_0x1576c2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1576c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1576c2([0x56,0x61,0x6c,0x69,0x64]);})[_0x1576c2([0x74,0x68,0x65,0x6e])](_0x2ee6bc=>(_0x47a5cd(),_0x2ee6bc),()=>{const _0x4b32d2=_0x4255f0();return null==_0x4b32d2?(_0x47a5cd(),_0x1576c2([0x56,0x61,0x6c,0x69,0x64])):_0x1576c2(_0x22d2ec-_0x4b32d2>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1576c2([0x74,0x68,0x65,0x6e])](_0x5dee57)[_0x1576c2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5dee57(_0x1576c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x106f74=0x36ee80;function _0x47a5cd(){const _0xf87b6f=_0x1576c2([0x6c,0x6c,0x63,0x74,0x2d])+_0x545d5a(_0x5d6a21(_0x2de016)),_0x5b74ff=_0x2e3e02(_0x545d5a(window[_0x1576c2([0x4d,0x61,0x74,0x68])][_0x1576c2([0x63,0x65,0x69,0x6c])](_0x22d2ec/_0x106f74)));window[_0x1576c2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1576c2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf87b6f,_0x5b74ff);}function _0x4255f0(){const _0x3952c3=_0x1576c2([0x6c,0x6c,0x63,0x74,0x2d])+_0x545d5a(_0x5d6a21(_0x2de016)),_0xf1bd72=window[_0x1576c2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1576c2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3952c3);return _0xf1bd72?window[_0x1576c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e3e02(_0xf1bd72),0x10)*_0x106f74:null;}function _0x1dfc9c(_0x323028){return new window[(_0x1576c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ab637,_0x171a4c)=>{_0x323028[_0x1576c2([0x74,0x68,0x65,0x6e])](_0x2ab637,_0x171a4c),window[_0x1576c2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x171a4c,0x1d4c0);});}}_0x41d534[_0x1576c2([0x6f,0x6e])](_0x1576c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5cb6c0,_0x35c4ad)=>{if(_0x35c4ad[0x0]!=_0x2de016)return _0x5dee57(_0x1576c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35c4ad[0x1]={..._0x35c4ad[0x1],[_0x1576c2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2706e8};},{[_0x1576c2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1576c2([0x68,0x69,0x67,0x68])}),_0x41d534[_0x1576c2([0x6f,0x6e])](_0x1576c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x809c07=>{_0x229355(_0x809c07[_0x1576c2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1dab1f=!0x0,_0x5784be(_0x809c07[_0x1576c2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1576c2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1576c2([0x6c,0x6f,0x77])}),_0xebb9d0[_0x1576c2([0x74,0x68,0x65,0x6e])](()=>{_0x1dab1f||_0x5dee57(_0x1576c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x22b154(){return _0x41d534[_0x1576c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1576c2([0x76,0x69,0x65,0x77])][_0x1576c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1576c2([0x61,0x75,0x74,0x6f]);}function _0x2f3f30(){_0x41d534[_0x1576c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1576c2([0x76,0x69,0x65,0x77])][_0x1576c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1576c2([0x61,0x75,0x74,0x6f]);}}(_0x1a0173[_0x1576c2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1a0173[_0x1576c2([0x6a,0x74,0x69])]));const _0x56a0d3=await(async function(){let _0x3ad4a2=!0x0;try{const _0x217635=_0x499821[_0x1576c2([0x73,0x70,0x6c,0x69,0x74])](_0x1576c2([0x2e])),[_0x37dbe5,_0x48d1b2,_0xfbf427]=_0x217635;return _0x26b967(_0x37dbe5),await _0x4b63c3(_0x37dbe5,_0x48d1b2,_0xfbf427),_0x3ad4a2;}catch{return!0x1;}function _0x26b967(_0x156f47){const _0x5ea9a6=_0x399299(_0x156f47);_0x5ea9a6&&_0x5ea9a6[_0x1576c2([0x61,0x6c,0x67])]==_0x1576c2([0x45,0x53,0x32,0x35,0x36])||(_0x3ad4a2=!0x1);}async function _0x4b63c3(_0x375556,_0x17275e,_0x1907ac){const _0x4d8b8e=window[_0x1576c2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1576c2([0x66,0x72,0x6f,0x6d])](_0x4995a6(_0x1907ac),_0x304546=>_0x304546[_0x1576c2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2e0a28=new window[(_0x1576c2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1576c2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x375556+_0x1576c2([0x2e])+_0x17275e),_0x1b63c4=window[_0x1576c2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1576c2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b63c4)return;const _0x156d1f=await _0x1b63c4[_0x1576c2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1576c2([0x6a,0x77,0x6b]),_0x4e7e85,{[_0x1576c2([0x6e,0x61,0x6d,0x65])]:_0x1576c2([0x45,0x43,0x44,0x53,0x41]),[_0x1576c2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1576c2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1576c2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b63c4[_0x1576c2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1576c2([0x6e,0x61,0x6d,0x65])]:_0x1576c2([0x45,0x43,0x44,0x53,0x41]),[_0x1576c2([0x68,0x61,0x73,0x68])]:{[_0x1576c2([0x6e,0x61,0x6d,0x65])]:_0x1576c2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x156d1f,_0x4d8b8e,_0x2e0a28)||(_0x3ad4a2=!0x1);}}());return _0x56a0d3?(function(){const _0x442b71=_0x1a0173[_0x1576c2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x442b71)return!0x1;if(_0x442b71[_0x1576c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1576c2([0x2a])))return!0x0;if(_0x442b71[_0x1576c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1576c2([0x50,0x41,0x47])))return!0x0;return!0x1;}())?(function(){const _0x2a69eb=[_0x1576c2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1576c2([0x74,0x72,0x69,0x61,0x6c])][_0x1576c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a0173[_0x1576c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x22d2ec/0x3e8:0x69e96100;return _0x1a0173[_0x1576c2([0x65,0x78,0x70])]<_0x2a69eb;}())?_0x1576c2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x3635df=_0x1a0173[_0x1576c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3635df||0x0==_0x3635df[_0x1576c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x16997f}=new URL(window[_0x1576c2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3635df[_0x1576c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16997f))return!0x0;const _0x2504f1=_0x16997f[_0x1576c2([0x73,0x70,0x6c,0x69,0x74])](_0x1576c2([0x2e]));return _0x3635df[_0x1576c2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a19a8=>_0x3a19a8[_0x1576c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1576c2([0x2a])))[_0x1576c2([0x6d,0x61,0x70])](_0x46bf77=>_0x46bf77[_0x1576c2([0x73,0x70,0x6c,0x69,0x74])](_0x1576c2([0x2e])))[_0x1576c2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x575f7f=>_0x575f7f[_0x1576c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2504f1[_0x1576c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1576c2([0x6d,0x61,0x70])](_0x98960b=>Array(_0x2504f1[_0x1576c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x98960b[_0x1576c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1576c2([0x66,0x69,0x6c,0x6c])](_0x98960b[0x0]===_0x1576c2([0x2a])?_0x1576c2([0x2a]):'')[_0x1576c2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x98960b))[_0x1576c2([0x73,0x6f,0x6d,0x65])](_0x254568=>_0x2504f1[_0x1576c2([0x65,0x76,0x65,0x72,0x79])]((_0xac2b6f,_0x16548c)=>_0x254568[_0x16548c]===_0xac2b6f||_0x254568[_0x16548c]===_0x1576c2([0x2a])));}())?(_0x1a0173[_0x1576c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1576c2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2b2355=function(_0x530f5e){const _0x4917ac=new window[(_0x1576c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcb39a0=>setTimeout(_0xcb39a0,0x93ecc)),_0x3b2264=_0xebb9d0[_0x1576c2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1576c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f3dca=>{let _0x17ff46=0x0;_0x41d534[_0x1576c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1576c2([0x6f,0x6e])](_0x1576c2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x164c69,_0x42439a)=>{_0x42439a[0x0][_0x1576c2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x17ff46++,0x5e8==_0x17ff46&&(_0x3f3dca(),_0x164c69[_0x1576c2([0x6f,0x66,0x66])]());});})),_0x1dae95=[_0x4917ac,_0x3b2264];return window[_0x1576c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1576c2([0x72,0x61,0x63,0x65])](_0x1dae95)[_0x1576c2([0x74,0x68,0x65,0x6e])](()=>_0x530f5e);}(_0x1576c2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x2b2355&&_0x5b26f8)return new window[(_0x1576c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x427227,_0x327295)=>{_0x2b2355[_0x1576c2([0x74,0x68,0x65,0x6e])](_0x427227,_0x327295),_0x5b26f8[_0x1576c2([0x74,0x68,0x65,0x6e])](_0x3e00bd=>{_0x3e00bd!=_0x1576c2([0x56,0x61,0x6c,0x69,0x64])&&_0x427227(_0x3e00bd);},_0x327295);});return _0x2b2355||_0x5b26f8||_0x1576c2([0x56,0x61,0x6c,0x69,0x64]);}())):_0x1576c2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1576c2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1576c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1576c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x399299(_0x44e5be){return _0x44e5be[_0x1576c2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1576c2([0x65,0x79]))?JSON[_0x1576c2([0x70,0x61,0x72,0x73,0x65])](_0x4995a6(_0x44e5be)):null;}function _0x4995a6(_0x256b63){return window[_0x1576c2([0x61,0x74,0x6f,0x62])](_0x256b63[_0x1576c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1576c2([0x2b]))[_0x1576c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1576c2([0x2f])));}function _0x5d6a21(_0x255232){let _0x463da8=0x1505;function _0x1f0f00(_0x216861){for(let _0x40c2bf=0x0;_0x40c2bf<_0x216861[_0x1576c2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40c2bf++){const _0x49f05f=_0x216861[_0x1576c2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x40c2bf);_0x463da8=(_0x463da8<<0x5)+_0x463da8+_0x49f05f,_0x463da8&=_0x463da8;}}return function _0x41355b(_0x219752){Array[_0x1576c2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x219752)?_0x219752[_0x1576c2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x41355b):_0x219752&&typeof _0x219752==_0x1576c2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1576c2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x219752)[_0x1576c2([0x73,0x6f,0x72,0x74])]()[_0x1576c2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x7c7270,_0x4554ee])=>{_0x1f0f00(_0x7c7270),_0x41355b(_0x4554ee);}):_0x1f0f00(window[_0x1576c2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x219752));}(_0x255232),_0x463da8>>>0x0;}function _0x545d5a(_0x5b25e3){return _0x5b25e3[_0x1576c2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1576c2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1576c2([0x30]));}function _0x2e3e02(_0x250ce9){return _0x250ce9[_0x1576c2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1576c2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1576c2([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e5059(){}function _0x1576c2(_0x7c8db7){return _0x7c8db7['map'](_0x432299=>String['fromCharCode'](_0x432299))['join']('');}!function(_0x176fd3){const _0x5cbf39=(function(){const _0x1064f3=window[_0x1576c2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1576c2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1576c2([0x6e,0x6f,0x77])]())[_0x1576c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1576c2([0x2e]),'');let _0x19465c=_0x1576c2([0x49]);for(let _0x1c4dc3=0x0;_0x1c4dc3<_0x1064f3[_0x1576c2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c4dc3+=0x2){let _0x12d141=window[_0x1576c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1064f3[_0x1576c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c4dc3,_0x1c4dc3+0x2));_0x12d141>=_0x4f490a[_0x1576c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x12d141-=_0x4f490a[_0x1576c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x19465c+=_0x4f490a[_0x12d141];}return _0x19465c;}());_0x41d534[_0x5cbf39]=_0x1576c2([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x176fd3,_0x176fd3!=_0x1576c2([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0xebb9d0,_0x41d534[_0x1576c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1576c2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e5059,_0x41d534[_0x1576c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1576c2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e5059,_0x41d534[_0x1576c2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1576c2([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x3f78cb);}const toPx=/* #__PURE__ -- @preserve */
toUnit('px');let LineView$1=class extends View{constructor(){super();const _0x4c9414=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x4c9414['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x4c9414['if']('isVisible','ck-hidden',_0x5c755c=>!_0x5c755c)],'style':{'left':_0x4c9414['to']('left',_0x27f718=>toPx(_0x27f718)),'top':_0x4c9414['to']('top',_0x33cd98=>toPx(_0x33cd98)),'width':_0x4c9414['to']('width',_0x89a760=>toPx(_0x89a760))}}});}};class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x53c055){this['_viewCollection']=_0x53c055['ui']['view']['body'];}['destroy'](){for(const _0xdeb765 of this['_hiddenLines'])_0xdeb765['destroy']();}['cleanLines'](){for(const _0x542e9c of this['_visibleLines'])_0x542e9c['isVisible']=!0x1,this['_hiddenLines']['add'](_0x542e9c);this['_visibleLines']['clear']();}['showLine'](_0x187240,_0xa6febe,_0x334b6f,_0x42c597){let _0x4bfc7a;this['_hiddenLines']['size']?(_0x4bfc7a=first(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x4bfc7a)):_0x4bfc7a=new LineView$1(),_0x4bfc7a['set']({'pageNumber':_0x42c597,'left':_0x187240,'top':_0xa6febe,'width':_0x334b6f}),_0x4bfc7a['isVisible']=!0x0,this['_viewCollection']['has'](_0x4bfc7a)||this['_viewCollection']['add'](_0x4bfc7a),this['_visibleLines']['add'](_0x4bfc7a);}['setViewCollection'](_0x3a3087){for(const _0x28885f of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x28885f)&&this['_viewCollection']['remove'](_0x28885f);this['_viewCollection']=_0x3a3087;}}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',(_0x526f3a,_0x50201e,_0x5df045)=>{_0x5df045||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](PLUGIN_ENABLED_CLASS,_0x5df045);});}['destroy'](){this['_toggleEditingRootsClass'](PLUGIN_ENABLED_CLASS,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x3e8379){if(!this['isEnabled'])return;const _0x5676cb=_0x3e8379>0x1?this['_getPageBreakLineOffset'](_0x3e8379-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x5676cb-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':env['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x225de2=this['editor'],_0x135acc=this['_getAttachedDomRoot']();_0x135acc?(this['_scrollableEditingRootDomAncestor']&&_0x225de2['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=findScrollableElement(_0x135acc),_0x225de2['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x14bc1d(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x225de2['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x100a7e=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x100a7e['ui']['view']['listenTo'](_0x347e1e['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x100a7e['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x55204d of this['editor']['editing']['view']['domRoots']['values']())if(_0x55204d['ownerDocument']['body']['contains'](_0x55204d))return _0x55204d;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x513e67=this['_getAttachedDomRoot'](),_0x583ef8=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x513e67||0x1==_0x583ef8['length'])return void(this['pageNumber']=0x1);const _0x540a3c=new Rect(_0x513e67)['excludeScrollbarsAndBorders'](),_0x1fc510=new Rect(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x4cde6f=_0x1fc510['top']+_0x1fc510['height']/0x3;let _0x5d35ca=!0x1;const _0x23e800=[];for(let _0xd8fddb=0x1;_0xd8fddb<_0x583ef8['length'];_0xd8fddb++){const _0x797f97=this['_getPageBreakLineOffset'](_0xd8fddb,_0x1fc510);if(!_0x797f97)continue;const _0x543f02=_0x1fc510['top']+_0x797f97-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x23e800['push']({'pageOffsetTop':_0x543f02,'domRootRect':_0x540a3c,'domScrollableRect':_0x1fc510,'pageNumber':_0xd8fddb}),_0x543f02>_0x4cde6f&&!_0x5d35ca&&(this['pageNumber']=_0xd8fddb,_0x5d35ca=!0x0);}this['_renderPageBreakLines'](_0x23e800),_0x5d35ca||(this['pageNumber']=_0x583ef8['length']);}['_renderPageBreakLines'](_0x538564){const {scrollX:_0x12993f,scrollY:_0x36f2cc}=_0x347e1e['window'];if(_0x538564['length']){for(const {domScrollableRect:_0x33e45a,pageOffsetTop:_0x1a9c67,domRootRect:_0x394ab6,pageNumber:_0xd91fcb}of _0x538564)_0x33e45a['top']<_0x1a9c67&&_0x1a9c67<_0x33e45a['bottom']&&this['linesRepository']['showLine'](_0x394ab6['left']+_0x12993f,_0x1a9c67+_0x36f2cc,_0x394ab6['width'],_0xd91fcb+0x1);}}['_getPageBreakLineOffset'](_0x54c7b6,_0x4685de=null){const _0x4ea089=this['_paginationLookupPlugin']['pageBreaks'][_0x54c7b6]['offset'];return _0x4ea089?(_0x4685de||(_0x4685de=new Rect(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x4ea089-_0x4685de['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x1a4b19,_0x500a61=!0x0){const _0x4e2d2c=this['editor']['editing']['view'];_0x4e2d2c['change'](_0x1c4565=>{for(const _0x2c39ed of _0x4e2d2c['document']['roots'])_0x500a61?_0x1c4565['addClass'](_0x1a4b19,_0x2c39ed):_0x1c4565['removeClass'](_0x1a4b19,_0x2c39ed);});}}function findScrollableElement(_0xafbe05){let _0xb05965=_0xafbe05;do{_0xb05965=_0xb05965['parentElement'];const _0x420eba=_0x347e1e['window']['getComputedStyle'](_0xb05965)['overflowY'];if('auto'==_0x420eba||'scroll'==_0x420eba)break;}while('BODY'!=_0xb05965['tagName']);return _0xb05965;}function getTranslation$7(_0x6d7372,_0x1e537c,..._0x283e4c){const t=_0x6d7372['t'];switch(_0x1e537c){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)',..._0x283e4c);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 _0x1e537c;}}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 _0x129cc4=this['editor']['plugins']['get']('Pagination'),_0x1979cd=this['editor']['plugins']['get'](PaginationLookup),_0x1a13f4=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x129cc4),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x1a13f4),this['listenTo'](_0x1979cd,'change:pageBreaks',(_0x4ba26b,_0x21925c,_0x57aea6,_0x38a9ac)=>{this['totalPages']=_0x57aea6['length'],this['_updatePageBreakMarkers'](_0x57aea6,_0x38a9ac);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x410cd5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x212890;for(const _0x22b5d4 in _0x410cd5){const _0x28f84e=_0x22b5d4,_0x539589=_0x410cd5[_0x28f84e];if('paginationLicenseKeyValid'==_0x539589||'paginationLicenseKeyInvalid'==_0x539589||'paginationLicenseKeyExpired'==_0x539589||'paginationLicenseKeyDomainLimit'==_0x539589||'paginationLicenseKeyNotAllowed'==_0x539589||'paginationLicenseKeyEvaluationLimit'==_0x539589||'paginationLicenseKeyUsageLimit'==_0x539589){delete _0x410cd5[_0x28f84e],_0x212890=_0x539589,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x212890&&_0x410cd5['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x212890&&_0x410cd5['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x212890&&_0x410cd5['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x212890&&_0x410cd5['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x212890&&_0x410cd5['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x212890&&_0x410cd5['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x2572bd){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x2572bd));}['moveSelectionToPage'](_0x56a828){if(!this['isEnabled'])return;const _0x22bf82=this['editor'],_0x90eacc=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x56a828-0x1];_0x90eacc&&_0x22bf82['model']['change'](_0x3e18d4=>{switch(_0x90eacc['type']){case'manual':{const _0x506f89=_0x22bf82['model']['schema']['getNearestSelectionRange'](_0x90eacc['modelRange']['end'],'forward');_0x3e18d4['setSelection'](_0x506f89);break;}case'element':{const _0x2fbbef=_0x22bf82['model']['schema']['getNearestSelectionRange'](_0x90eacc['modelRange']['start'],'forward');_0x3e18d4['setSelection'](_0x2fbbef);break;}case'text':{const _0x40c201=_0x90eacc['modelRange']['start'];if(_0x40c201['textNode']&&'\x20'===_0x40c201['textNode']['data'][_0x40c201['offset']]){const _0x150324=_0x3e18d4['createPositionAt'](_0x40c201['parent'],_0x40c201['offset']+0x1);_0x3e18d4['setSelection'](_0x150324);}else _0x3e18d4['setSelection'](_0x90eacc['modelRange']);}}_0x22bf82['editing']['view']['focus']();});}['goToNextPage'](){const _0x3f5945=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x3f5945),this['scrollToPage'](_0x3f5945);}['goToPreviousPage'](){const _0x36ef11=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x36ef11),this['scrollToPage'](_0x36ef11);}['_updatePageBreakMarkers'](_0x2aa9f8,_0x7793b2){const _0x21077d=this['editor']['model'];this['isEnabled']&&_0x21077d['change'](_0x326b3c=>{for(let _0x5a2f6b=0x1;_0x5a2f6b<_0x2aa9f8['length'];_0x5a2f6b++){const _0x1c4555=_0x2aa9f8[_0x5a2f6b]['modelRange'],_0x1b87f7='pagination:'+(_0x5a2f6b+0x1);_0x21077d['markers']['has'](_0x1b87f7)?_0x326b3c['updateMarker'](_0x1b87f7,{'range':_0x1c4555}):_0x326b3c['addMarker'](_0x1b87f7,{'range':_0x1c4555,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x1465b9=_0x2aa9f8['length'];_0x1465b9<_0x7793b2['length'];_0x1465b9++){const _0xf088cc='pagination:'+(_0x1465b9+0x1);_0x21077d['markers']['has'](_0xf088cc)&&_0x326b3c['removeMarker'](_0xf088cc);}});}['_setUpDataDowncastConversion'](){const _0x2c700b='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x44260f=>{_0x44260f['on']('addMarker:'+_0x2c700b,(_0x2c25ac,{markerRange:_0x39e898,markerName:_0x1b199f},_0x57219c)=>{if(!_0x57219c['options']['pagination'])return;if(!_0x57219c['consumable']['consume'](_0x39e898,_0x2c25ac['name']))return;const _0x28361e=_0x39e898['getContainedElement']();let _0x430911=_0x28361e?_0x57219c['mapper']['toViewElement'](_0x28361e):null;if(!_0x430911){const _0x52be5a=_0x39e898['start'];if(_0x57219c['schema']['checkChild'](_0x52be5a,'$text')){const _0x1b491e=_0x57219c['mapper']['toViewPosition'](_0x52be5a);_0x430911=_0x57219c['writer']['createContainerElement']('span'),_0x430911['getFillerOffset']=()=>null,_0x57219c['writer']['insert'](_0x1b491e,_0x430911);}else{const _0x5bf220=_0x52be5a['nodeAfter'];_0x430911=_0x57219c['mapper']['toViewElement'](_0x5bf220);}}for(;_0x430911['parent']!==_0x430911['root']&&0x0===_0x430911['index'];)_0x430911=_0x430911['parent'];const _0x3b7ccb=_0x1b199f['substring'](0xb);_0x430911['hasClass']('page-break')||(_0x57219c['writer']['setStyle']('page-break-before','always',_0x430911),_0x57219c['writer']['setAttribute']('data-pagination-page',_0x3b7ccb,_0x430911),_0x57219c['mapper']['bindElementToMarker'](_0x430911,_0x1b199f)),_0x2c25ac['stop']();});});}['_setupKeystrokes'](){const _0xf4ba04=this['editor'];_0xf4ba04['keystrokes']['set']('Shift+Pageup',(_0x523e01,_0x4365ba)=>{this['goToPreviousPage'](),_0x4365ba();}),_0xf4ba04['keystrokes']['set']('Shift+Pagedown',(_0x8d4062,_0x1a7385)=>{this['goToNextPage'](),_0x1a7385();}),_0xf4ba04['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':getTranslation$7(_0xf4ba04['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':getTranslation$7(_0xf4ba04['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':getTranslation$7(_0xf4ba04['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x370b13){return _0x370b13<0x1&&(_0x370b13=0x1),_0x370b13>this['totalPages']&&(_0x370b13=this['totalPages']),_0x370b13;}}class PageNavigatorView extends View{['pageNumberView'];constructor(_0xff74bc){super(_0xff74bc);const _0x30dbc8=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new InputNumberView(_0xff74bc,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x1da559=>getTranslation$7(_0xff74bc,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x1da559)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x304790=>!_0x304790),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x30dbc8['if']('isEnabled','ck-disabled',_0x32c506=>!_0x32c506)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x30dbc8['to']('totalPages')}]}]});}['render'](){super['render']();const _0x1f2b3e=this['pageNumberView']['element'],_0x3f98ca=_0x311dcc=>{this['pageNumberView']['element']['value']=String(_0x311dcc);};_0x3f98ca(this['pageNumber']),this['on']('change:pageNumber',(_0x3d7276,_0x33fea7,_0x31059a)=>{_0x3f98ca(_0x31059a);}),this['listenTo'](_0x1f2b3e,'keydown',(_0x4dacaa,_0x48f7fa)=>{if('ArrowUp'===_0x48f7fa['key']||'ArrowDown'===_0x48f7fa['key'])return void _0x48f7fa['stopPropagation']();if(_0x48f7fa['keyCode']!==keyCodes['enter'])return;_0x48f7fa['preventDefault']();const _0x4a13d9=_0x1f2b3e['valueAsNumber'];Number['isNaN'](_0x4a13d9)?_0x1f2b3e['value']=String(this['pageNumber']):(_0x1f2b3e['checkValidity']()?this['pageNumber']=_0x4a13d9:_0x4a13d9>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x1f2b3e['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x1f2b3e['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x1f2b3e,'blur',()=>{_0x1f2b3e['value']=String(this['pageNumber']);}),this['listenTo'](_0x1f2b3e,'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 _0x355a8e=this['editor'],_0x39d303=_0x355a8e['plugins']['get']('PaginationEditing');_0x355a8e['ui']['componentFactory']['add']('pageNavigation',_0x3879a0=>{const _0x4f6670=new PageNavigatorView(_0x3879a0);return _0x4f6670['bind']('pageNumber')['to'](_0x39d303),_0x4f6670['bind']('totalPages')['to'](_0x39d303),_0x4f6670['bind']('isEnabled')['to'](_0x39d303),_0x4f6670['on']('navigation',(_0x354e94,_0x32897c)=>{_0x39d303['moveSelectionToPage'](_0x32897c),_0x39d303['scrollToPage'](_0x32897c);}),_0x4f6670;}),_0x355a8e['ui']['componentFactory']['add']('nextPage',_0x3d47b8=>{const _0x303a60=new ButtonView(_0x3d47b8);return _0x303a60['isEnabled']=!0x0,_0x303a60['label']=getTranslation$7(_0x355a8e['locale'],'Go\x20to\x20next\x20page'),_0x303a60['icon']=IconArrowDown,_0x303a60['tooltip']=!0x0,_0x303a60['keystroke']='Shift+PageDown',_0x303a60['bind']('isEnabled')['to'](_0x39d303),this['listenTo'](_0x303a60,'execute',()=>{_0x39d303['goToNextPage']();}),_0x303a60;}),_0x355a8e['ui']['componentFactory']['add']('previousPage',_0x2c7d7c=>{const _0xeebf37=new ButtonView(_0x2c7d7c);return _0xeebf37['isEnabled']=!0x0,_0xeebf37['label']=getTranslation$7(_0x355a8e['locale'],'Go\x20to\x20previous\x20page'),_0xeebf37['icon']=IconArrowUp,_0xeebf37['tooltip']=!0x0,_0xeebf37['keystroke']='Shift+PageUp',_0xeebf37['bind']('isEnabled')['to'](_0x39d303),this['listenTo'](_0xeebf37,'execute',()=>{_0x39d303['goToPreviousPage']();}),_0xeebf37;});}}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(_0x4318d7){super(_0x4318d7),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x2f5bc0=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x2f5bc0),this['bind']('totalPages')['to'](_0x2f5bc0),env['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x1ae99f){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x1ae99f);}}const MS_EXCEL_META_REGEX=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function isMSExcelContent(_0x5d657e){return MS_EXCEL_META_REGEX['test'](_0x5d657e);}const CSS_SELECTOR_REGEX=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function getMatchingStyles(_0x26b400,_0xb2914){const _0x282841=new Map();for(const [_0x5c20dd,_0x3d1495]of _0xb2914){if(!_0x5c20dd['tagName']&&!_0x5c20dd['className'])continue;const _0x36a318=!_0x5c20dd['tagName']||_0x26b400['name']===_0x5c20dd['tagName'],_0x1a61d7=!_0x5c20dd['className']||_0x26b400['hasClass'](_0x5c20dd['className']);_0x36a318&&_0x1a61d7&&_0x282841['set'](_0x5c20dd,_0x3d1495);}return _0x282841;}function extractStyles(_0x3c6bab){const _0x481d0f={};for(const _0xe8061e of _0x3c6bab)for(const _0x17a10b of _0xe8061e['cssRules'])if(_0x17a10b instanceof CSSStyleRule){const _0x788d7a=parseCSSStyleDeclaration(_0x17a10b['style']);_0x481d0f[_0x17a10b['selectorText']]=Object['assign']({},_0x481d0f[_0x17a10b['selectorText']]||{},_0x788d7a);}return _0x481d0f;}function expandStyles(_0x5ed743){const _0x328ca6=new Map();for(const _0x3d9df8 in _0x5ed743){const _0x31b7a1=parseCSSSelector(_0x3d9df8),_0x16bff1=_0x5ed743[_0x3d9df8];for(const _0x5f35a7 of _0x31b7a1)_0x328ca6['set'](_0x5f35a7,_0x16bff1);}return _0x328ca6;}function parseCSSStyleDeclaration(_0x407532){const _0x5b2f03={};for(let _0x2ac59c=0x0;_0x2ac59c<_0x407532['length'];_0x2ac59c++){const _0x44bc8c=_0x407532[_0x2ac59c],_0x54d8b2=_0x407532['getPropertyValue'](_0x44bc8c);'initial'!==_0x54d8b2&&(_0x5b2f03[_0x44bc8c]=_0x54d8b2);}return _0x5b2f03;}function parseCSSSelector(_0x4f562a){const _0x3c8710=_0x4f562a['split'](',')['map'](_0x117177=>_0x117177['trim']()),_0x1b6198=[];for(const _0x50fcfe of _0x3c8710){const _0x4d7312=CSS_SELECTOR_REGEX['exec'](_0x50fcfe);_0x4d7312&&_0x1b6198['push'](_0x4d7312['groups']);}return _0x1b6198;}function flattenStyleDefinitions(_0x24da06){const _0x12f5e9={};for(const _0x430b2b of _0x24da06)Object['assign'](_0x12f5e9,_0x430b2b);return _0x12f5e9;}class MSOfficeStylesInliner extends PasteFromOfficeMSWordNormalizer{['execute'](_0xbc26a5){const {body:_0x2fe5f2,styles:_0x519245}=_0xbc26a5['_parsedData'],_0x3da11e=new ViewUpcastWriter(_0x2fe5f2['document']),_0x459645=_0x3da11e['createRangeIn'](_0x2fe5f2),_0x559442=expandStyles(extractStyles(_0x519245));for(const _0x315b73 of _0x459645){if('elementStart'!==_0x315b73['type'])continue;const _0x3025e4=getMatchingStyles(_0x315b73['item'],_0x559442);if(_0x3025e4['size']){const _0x4e6f01=flattenStyleDefinitions(Array['from'](_0x3025e4['values']()));for(const _0x22a9db in _0x4e6f01){const _0x2f6346=_0x315b73['item'];_0x2f6346['hasStyle'](_0x22a9db)||_0x3da11e['setStyle'](_0x22a9db,_0x4e6f01[_0x22a9db],_0x2f6346);}}}_0xbc26a5['content']=_0x2fe5f2;}['isActive'](_0x3c4466){return super['isActive'](_0x3c4466)||isMSExcelContent(_0x3c4466);}}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 _0x4a8156=this['editor'],_0x384c03=_0x4a8156['plugins']['get']('ClipboardPipeline'),_0x161801=_0x4a8156['editing']['view']['document'],_0xfa3449=new MSOfficeStylesInliner(_0x161801);_0x384c03['on']('inputTransformation',(_0x55afe8,_0x4f0445)=>{const _0x391be9=_0x4f0445['dataTransfer']['getData']('text/html');_0xfa3449['isActive'](_0x391be9)&&(_0x4f0445['_parsedData']||(_0x4f0445['_parsedData']=parsePasteOfficeHtml(_0x391be9,_0x161801['stylesProcessor'])),_0xfa3449['execute'](_0x4f0445));},{'priority':priorities['get']('high')+0xb});}['afterInit'](){checkLicense$6(this);}}async function checkLicense$6(_0x604ad){const _0x3faed1=_0x336325([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]),_0x4cad80=window[_0x336325([0x44,0x61,0x74,0x65])][_0x336325([0x6e,0x6f,0x77])](),_0x3d238e=_0x604ad[_0x336325([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3108ce=new window[(_0x336325([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50d896=>{_0x3d238e[_0x336325([0x6f,0x6e,0x63,0x65])](_0x336325([0x72,0x65,0x61,0x64,0x79]),_0x50d896);}),_0x535e17={[_0x336325([0x6b,0x74,0x79])]:_0x336325([0x45,0x43]),[_0x336325([0x75,0x73,0x65])]:_0x336325([0x73,0x69,0x67]),[_0x336325([0x63,0x72,0x76])]:_0x336325([0x50,0x2d,0x32,0x35,0x36]),[_0x336325([0x78])]:_0x336325([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]),[_0x336325([0x79])]:_0x336325([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]),[_0x336325([0x61,0x6c,0x67])]:_0x336325([0x45,0x53,0x32,0x35,0x36])},_0x3f8ea2=_0x3d238e[_0x336325([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x336325([0x67,0x65,0x74])](_0x336325([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x4d0e86=await(async function(){let _0x59d38e,_0x45a1f3=null,_0x350954=null;try{if(_0x3f8ea2==_0x336325([0x47,0x50,0x4c]))return _0x336325([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x59d38e=(function(){const _0x117349=_0x3f8ea2[_0x336325([0x73,0x70,0x6c,0x69,0x74])](_0x336325([0x2e]));if(0x3!=_0x117349[_0x336325([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0xc94a03=_0x117349[0x1];return _0x41d136(_0xc94a03);function _0x41d136(_0x55fdc2){const _0x2439bd=_0x1f0bc1(_0x55fdc2);return _0x2439bd&&_0x11faf6()?_0x2439bd:null;function _0x11faf6(){const _0x145bc9=_0x2439bd[_0x336325([0x6a,0x74,0x69])],_0x251848=window[_0x336325([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x145bc9[_0x336325([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x145bc9[_0x336325([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x19b6c7={..._0x2439bd,[_0x336325([0x6a,0x74,0x69])]:_0x145bc9[_0x336325([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x145bc9[_0x336325([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x19b6c7[_0x336325([0x76,0x63])],_0x41605d(_0x19b6c7)==_0x251848;}}}()),!_0x59d38e)return _0x336325([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x59d38e[_0x336325([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x350954=function(_0x30784f,_0x235b11){return new window[(_0x336325([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21142a=>{if(_0x3a60ec())return _0x21142a(_0x336325([0x56,0x61,0x6c,0x69,0x64]));_0x2f2bc1(),_0x3d238e[_0x336325([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x336325([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x54b253=!0x1;const _0x74bc2f=uid();function _0x19c860(_0x55568b){return!!_0x55568b&&(typeof _0x55568b===_0x336325([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x55568b===_0x336325([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x55568b[_0x336325([0x74,0x68,0x65,0x6e])]===_0x336325([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x55568b[_0x336325([0x63,0x61,0x74,0x63,0x68])]===_0x336325([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x28ef7c(_0x2fb657){_0x4f0818(_0x2fb657)[_0x336325([0x74,0x68,0x65,0x6e])](_0x414b24=>{if(!_0x414b24||_0x414b24[_0x336325([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x336325([0x6f,0x6b]))return _0x336325([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x45d835(_0x41605d(_0x74bc2f+_0x235b11))!=_0x414b24[_0x336325([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x336325([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x336325([0x56,0x61,0x6c,0x69,0x64]);})[_0x336325([0x74,0x68,0x65,0x6e])](_0x52c241=>(_0x54147b(),_0x52c241),()=>{const _0x5c3783=_0x1cc9ed();return null==_0x5c3783?(_0x54147b(),_0x336325([0x56,0x61,0x6c,0x69,0x64])):_0x336325(_0x4cad80-_0x5c3783>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x336325([0x74,0x68,0x65,0x6e])](_0x21142a)[_0x336325([0x63,0x61,0x74,0x63,0x68])](()=>{_0x21142a(_0x336325([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ba64e=0x36ee80;function _0x54147b(){const _0x2c5721=_0x336325([0x6c,0x6c,0x63,0x74,0x2d])+_0x45d835(_0x41605d(_0x30784f)),_0x5bfc96=_0x3c5ff9(_0x45d835(window[_0x336325([0x4d,0x61,0x74,0x68])][_0x336325([0x63,0x65,0x69,0x6c])](_0x4cad80/_0x3ba64e)));window[_0x336325([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x336325([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c5721,_0x5bfc96);}function _0x1cc9ed(){const _0x13a01b=_0x336325([0x6c,0x6c,0x63,0x74,0x2d])+_0x45d835(_0x41605d(_0x30784f)),_0x37b664=window[_0x336325([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x336325([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13a01b);return _0x37b664?window[_0x336325([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c5ff9(_0x37b664),0x10)*_0x3ba64e:null;}function _0x4f0818(_0x5cf7e9){return new window[(_0x336325([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30c5f1,_0x361b9a)=>{_0x5cf7e9[_0x336325([0x74,0x68,0x65,0x6e])](_0x30c5f1,_0x361b9a),window[_0x336325([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x361b9a,0x1d4c0);});}}_0x3d238e[_0x336325([0x6f,0x6e])](_0x336325([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x493eef,_0x4fea89)=>{if(_0x4fea89[0x0]!=_0x30784f)return _0x21142a(_0x336325([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4fea89[0x1]={..._0x4fea89[0x1],[_0x336325([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x74bc2f};},{[_0x336325([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x336325([0x68,0x69,0x67,0x68])}),_0x3d238e[_0x336325([0x6f,0x6e])](_0x336325([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2e27bf=>{_0x19c860(_0x2e27bf[_0x336325([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x54b253=!0x0,_0x28ef7c(_0x2e27bf[_0x336325([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x336325([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x336325([0x6c,0x6f,0x77])}),_0x3108ce[_0x336325([0x74,0x68,0x65,0x6e])](()=>{_0x54b253||_0x21142a(_0x336325([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3a60ec(){return _0x3d238e[_0x336325([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x336325([0x76,0x69,0x65,0x77])][_0x336325([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x336325([0x61,0x75,0x74,0x6f]);}function _0x2f2bc1(){_0x3d238e[_0x336325([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x336325([0x76,0x69,0x65,0x77])][_0x336325([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x336325([0x61,0x75,0x74,0x6f]);}}(_0x59d38e[_0x336325([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x59d38e[_0x336325([0x6a,0x74,0x69])]));const _0x46ddd7=await(async function(){let _0x501663=!0x0;try{const _0x4ade71=_0x3f8ea2[_0x336325([0x73,0x70,0x6c,0x69,0x74])](_0x336325([0x2e])),[_0x17a23a,_0xe656f,_0x11b10c]=_0x4ade71;return _0x378dfa(_0x17a23a),await _0x3c0b2a(_0x17a23a,_0xe656f,_0x11b10c),_0x501663;}catch{return!0x1;}function _0x378dfa(_0x21bd93){const _0x47516d=_0x1f0bc1(_0x21bd93);_0x47516d&&_0x47516d[_0x336325([0x61,0x6c,0x67])]==_0x336325([0x45,0x53,0x32,0x35,0x36])||(_0x501663=!0x1);}async function _0x3c0b2a(_0x3bb4b9,_0x4483c9,_0x5ab0a7){const _0x84e111=window[_0x336325([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x336325([0x66,0x72,0x6f,0x6d])](_0x359740(_0x5ab0a7),_0x19f20f=>_0x19f20f[_0x336325([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x20f7fd=new window[(_0x336325([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x336325([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3bb4b9+_0x336325([0x2e])+_0x4483c9),_0x4fc6da=window[_0x336325([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x336325([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4fc6da)return;const _0x222e94=await _0x4fc6da[_0x336325([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x336325([0x6a,0x77,0x6b]),_0x535e17,{[_0x336325([0x6e,0x61,0x6d,0x65])]:_0x336325([0x45,0x43,0x44,0x53,0x41]),[_0x336325([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x336325([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x336325([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4fc6da[_0x336325([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x336325([0x6e,0x61,0x6d,0x65])]:_0x336325([0x45,0x43,0x44,0x53,0x41]),[_0x336325([0x68,0x61,0x73,0x68])]:{[_0x336325([0x6e,0x61,0x6d,0x65])]:_0x336325([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x222e94,_0x84e111,_0x20f7fd)||(_0x501663=!0x1);}}());return _0x46ddd7?(function(){const _0x20dd65=_0x59d38e[_0x336325([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x20dd65)return!0x1;if(_0x20dd65[_0x336325([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x336325([0x2a])))return!0x0;if(_0x20dd65[_0x336325([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x336325([0x50,0x4f,0x45])))return!0x0;if(_0x20dd65[_0x336325([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x336325([0x50,0x50])))return!0x0;if(_0x20dd65[_0x336325([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x336325([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x336325([0x67,0x6c,0x6f,0x62])]&&window[_0x336325([0x67,0x6c,0x6f,0x62])][_0x336325([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x448790=[_0x336325([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x336325([0x74,0x72,0x69,0x61,0x6c])][_0x336325([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59d38e[_0x336325([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4cad80/0x3e8:0x69e96100;return _0x59d38e[_0x336325([0x65,0x78,0x70])]<_0x448790;}())?_0x336325([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x1c853a=_0x59d38e[_0x336325([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c853a||0x0==_0x1c853a[_0x336325([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d553f}=new URL(window[_0x336325([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c853a[_0x336325([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d553f))return!0x0;const _0x1d7c27=_0x2d553f[_0x336325([0x73,0x70,0x6c,0x69,0x74])](_0x336325([0x2e]));return _0x1c853a[_0x336325([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47aa2f=>_0x47aa2f[_0x336325([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x336325([0x2a])))[_0x336325([0x6d,0x61,0x70])](_0x9b0097=>_0x9b0097[_0x336325([0x73,0x70,0x6c,0x69,0x74])](_0x336325([0x2e])))[_0x336325([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x463a91=>_0x463a91[_0x336325([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1d7c27[_0x336325([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x336325([0x6d,0x61,0x70])](_0x3dda1b=>Array(_0x1d7c27[_0x336325([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3dda1b[_0x336325([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x336325([0x66,0x69,0x6c,0x6c])](_0x3dda1b[0x0]===_0x336325([0x2a])?_0x336325([0x2a]):'')[_0x336325([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3dda1b))[_0x336325([0x73,0x6f,0x6d,0x65])](_0x241663=>_0x1d7c27[_0x336325([0x65,0x76,0x65,0x72,0x79])]((_0x1983b7,_0x3eb8eb)=>_0x241663[_0x3eb8eb]===_0x1983b7||_0x241663[_0x3eb8eb]===_0x336325([0x2a])));}())?(_0x59d38e[_0x336325([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x336325([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x45a1f3=function(_0x1a6ec9){const _0x1c85a5=new window[(_0x336325([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40c8dc=>setTimeout(_0x40c8dc,0x93ecc)),_0x492e07=_0x3108ce[_0x336325([0x74,0x68,0x65,0x6e])](()=>new window[(_0x336325([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x191f33=>{let _0x5ea805=0x0;_0x3d238e[_0x336325([0x6d,0x6f,0x64,0x65,0x6c])][_0x336325([0x6f,0x6e])](_0x336325([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x129cee,_0x283825)=>{_0x283825[0x0][_0x336325([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5ea805++,0x5e8==_0x5ea805&&(_0x191f33(),_0x129cee[_0x336325([0x6f,0x66,0x66])]());});})),_0x288319=[_0x1c85a5,_0x492e07];return window[_0x336325([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x336325([0x72,0x61,0x63,0x65])](_0x288319)[_0x336325([0x74,0x68,0x65,0x6e])](()=>_0x1a6ec9);}(_0x336325([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x45a1f3&&_0x350954)return new window[(_0x336325([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x422b7d,_0x12a707)=>{_0x45a1f3[_0x336325([0x74,0x68,0x65,0x6e])](_0x422b7d,_0x12a707),_0x350954[_0x336325([0x74,0x68,0x65,0x6e])](_0x2e9e41=>{_0x2e9e41!=_0x336325([0x56,0x61,0x6c,0x69,0x64])&&_0x422b7d(_0x2e9e41);},_0x12a707);});return _0x45a1f3||_0x350954||_0x336325([0x56,0x61,0x6c,0x69,0x64]);}())):_0x336325([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x336325([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x336325([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x336325([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x1f0bc1(_0x26eba5){return _0x26eba5[_0x336325([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x336325([0x65,0x79]))?JSON[_0x336325([0x70,0x61,0x72,0x73,0x65])](_0x359740(_0x26eba5)):null;}function _0x359740(_0x22e9ee){return window[_0x336325([0x61,0x74,0x6f,0x62])](_0x22e9ee[_0x336325([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x336325([0x2b]))[_0x336325([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x336325([0x2f])));}function _0x41605d(_0x264856){let _0x194df3=0x1505;function _0x393d45(_0x5482c8){for(let _0x5ad0f3=0x0;_0x5ad0f3<_0x5482c8[_0x336325([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ad0f3++){const _0x239cd5=_0x5482c8[_0x336325([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ad0f3);_0x194df3=(_0x194df3<<0x5)+_0x194df3+_0x239cd5,_0x194df3&=_0x194df3;}}return function _0x52e089(_0x3e0d94){Array[_0x336325([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3e0d94)?_0x3e0d94[_0x336325([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x52e089):_0x3e0d94&&typeof _0x3e0d94==_0x336325([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x336325([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3e0d94)[_0x336325([0x73,0x6f,0x72,0x74])]()[_0x336325([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23387e,_0x5f4a9d])=>{_0x393d45(_0x23387e),_0x52e089(_0x5f4a9d);}):_0x393d45(window[_0x336325([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3e0d94));}(_0x264856),_0x194df3>>>0x0;}function _0x45d835(_0x152c52){return _0x152c52[_0x336325([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x336325([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x336325([0x30]));}function _0x3c5ff9(_0x313168){return _0x313168[_0x336325([0x73,0x70,0x6c,0x69,0x74])]('')[_0x336325([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x336325([0x6a,0x6f,0x69,0x6e])]('');}function _0x5aa599(){}function _0x336325(_0x33a724){return _0x33a724['map'](_0x571529=>String['fromCharCode'](_0x571529))['join']('');}!function(_0x5661a9){const _0x2b3bf4=(function(){const _0x537991=window[_0x336325([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x336325([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x336325([0x6e,0x6f,0x77])]())[_0x336325([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x336325([0x2e]),'');let _0x163d09=_0x336325([0x73]);for(let _0x1ca344=0x0;_0x1ca344<_0x537991[_0x336325([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ca344+=0x2){let _0x11ede6=window[_0x336325([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x537991[_0x336325([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ca344,_0x1ca344+0x2));_0x11ede6>=_0x3faed1[_0x336325([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x11ede6-=_0x3faed1[_0x336325([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x163d09+=_0x3faed1[_0x11ede6];}return _0x163d09;}());_0x3d238e[_0x2b3bf4]=_0x336325([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])+_0x5661a9,_0x5661a9!=_0x336325([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x3108ce,_0x3d238e[_0x336325([0x6d,0x6f,0x64,0x65,0x6c])][_0x336325([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5aa599,_0x3d238e[_0x336325([0x6d,0x6f,0x64,0x65,0x6c])][_0x336325([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5aa599,_0x3d238e[_0x336325([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x336325([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x4d0e86);}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'],[_0xe2f9ca=>Number(_0xe2f9ca)>=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(_0x5acaa5){return CSS_PROPERTIES_TO_PROPAGATE['includes'](_0x5acaa5);}function isPropertyToBePropagatedAsSpan(_0x51b38d){return CSS_PROPERTIES_TO_BE_SPANS['includes'](_0x51b38d);}function isPropertyToBePropagatedAsHTMLElement(_0x3e2773){return _0x3e2773 in CSS_PROPERTIES_TO_BE_HTML_ELEMENTS;}function getStylePropertyNamesToPropagate(_0x194698){return Array['from'](_0x194698['getStyleNames']())['filter'](isPropertyToBePropagated);}function propagateStyleProperties(_0x5013ee,_0x106279,_0x2e94b0){const {spanStyles:_0x2db739,stylesToBeHtmlElements:_0x1eacc7}=getStylesToPropagate(_0x5013ee,_0x2e94b0);propagateStylesAsHTMLElements(_0x5013ee,_0x106279,_0x1eacc7),propagateStylesAsSpan(_0x5013ee,_0x106279,_0x2db739);}function propagateStylesAsHTMLElements(_0x389593,_0x23a1fb,_0x3ecd0d){for(const _0x4ee990 in _0x3ecd0d){_0x3ecd0d[_0x4ee990]['forEach'](([,_0x457c52])=>{const _0x65e245=_0x23a1fb['createElement'](_0x457c52,[],_0x389593['getChildren']());_0x23a1fb['insertChild'](0x0,_0x65e245,_0x389593);}),_0x23a1fb['removeStyle'](_0x4ee990,_0x389593);}}function propagateStylesAsSpan(_0x1ec92b,_0x1530c7,_0x236239){if(!Object['keys'](_0x236239)['length'])return;const _0x5dff3d=_0x1530c7['createElement']('span',[],_0x1ec92b['getChildren']());_0x1530c7['setStyle'](_0x236239,_0x5dff3d),_0x1530c7['insertChild'](0x0,_0x5dff3d,_0x1ec92b),_0x1530c7['removeStyle'](Object['keys'](_0x236239),_0x1ec92b);}function getStylesToPropagate(_0x189634,_0x548f40){const _0x1bc059={},_0x51f7f8={};return _0x548f40['forEach'](_0x5db2d4=>{const _0x2df4fb=_0x189634['getStyle'](_0x5db2d4);if(_0x2df4fb){if(isPropertyToBePropagatedAsSpan(_0x5db2d4))_0x1bc059[_0x5db2d4]=_0x2df4fb;else{if(isPropertyToBePropagatedAsHTMLElement(_0x5db2d4)){const _0x441862=_0x2df4fb['split']('\x20');CSS_PROPERTIES_TO_BE_HTML_ELEMENTS[_0x5db2d4]['forEach'](([_0x4c3d8b,_0x359a2a])=>{for(const _0x3340b5 of _0x441862){('function'==typeof _0x4c3d8b&&_0x4c3d8b(_0x3340b5)||_0x4c3d8b===_0x3340b5)&&(_0x51f7f8[_0x5db2d4]=[..._0x51f7f8[_0x5db2d4]||[],[_0x4c3d8b,_0x359a2a]]);}});}}}}),{'spanStyles':_0x1bc059,'stylesToBeHtmlElements':_0x51f7f8};}class MSOfficeInlineStylePropagator extends PasteFromOfficeMSWordNormalizer{['execute'](_0x2df081){const {body:_0x4712a4}=_0x2df081['_parsedData'],_0x4919da=new ViewUpcastWriter(_0x4712a4['document']),_0x4ba015=_0x4919da['createRangeIn'](_0x4712a4),_0xae92d9=new ViewDocument(_0x4919da['document']['stylesProcessor']),_0xd30ffb=[...new ViewDomConverter(_0xae92d9)['blockElements'],'font'],_0x3354df=_0x4ba015['getItems']();for(const _0xd67145 of _0x3354df)_0xd67145['is']('element')&&_0xd30ffb['includes'](_0xd67145['name'])&&propagateStyleProperties(_0xd67145,_0x4919da,getStylePropertyNamesToPropagate(_0xd67145));_0x2df081['content']=_0x4712a4;}['isActive'](_0x300680){return super['isActive'](_0x300680)||isMSExcelContent(_0x300680);}}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 _0x5960e7=this['editor'],_0x7d77d9=_0x5960e7['plugins']['get']('ClipboardPipeline'),_0x343540=_0x5960e7['editing']['view']['document'],_0x4d75e5=new MSOfficeInlineStylePropagator(_0x343540);_0x7d77d9['on']('inputTransformation',(_0xcf9cec,_0x15d9a7)=>{const _0x3adaea=_0x15d9a7['dataTransfer']['getData']('text/html');_0x4d75e5['isActive'](_0x3adaea)&&(_0x15d9a7['_parsedData']||(_0x15d9a7['_parsedData']=parsePasteOfficeHtml(_0x3adaea,_0x343540['stylesProcessor'])),_0x4d75e5['execute'](_0x15d9a7));},{'priority':priorities['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3ff519=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x113efd;for(const _0x4f40f0 in _0x3ff519){const _0x5e35bf=_0x4f40f0,_0xc50ab7=_0x3ff519[_0x5e35bf];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0xc50ab7||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0xc50ab7||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0xc50ab7||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0xc50ab7||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0xc50ab7||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0xc50ab7||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0xc50ab7){delete _0x3ff519[_0x5e35bf],_0x113efd=_0xc50ab7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x113efd&&_0x3ff519['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x113efd&&_0x3ff519['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x113efd&&_0x3ff519['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x113efd&&_0x3ff519['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x113efd&&_0x3ff519['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x113efd&&_0x3ff519['_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 commonjsGlobal='undefined'!=typeof globalThis?globalThis:'undefined'!=typeof window?window:'undefined'!=typeof global?global:'undefined'!=typeof self?self:{},indexMinimal={},minimal$1={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;return hasRequiredAspromise=0x1,aspromise=function(_0x2b694c,_0x2181be){var _0x13b0b4=new Array(arguments['length']-0x1),_0x47b07f=0x0,_0x32116a=0x2,_0x2f391a=!0x0;for(;_0x32116a<arguments['length'];)_0x13b0b4[_0x47b07f++]=arguments[_0x32116a++];return new Promise(function(_0x342f55,_0x50e54e){_0x13b0b4[_0x47b07f]=function(_0x36785f){if(_0x2f391a){if(_0x2f391a=!0x1,_0x36785f)_0x50e54e(_0x36785f);else{for(var _0x4f86f9=new Array(arguments['length']-0x1),_0x2853d5=0x0;_0x2853d5<_0x4f86f9['length'];)_0x4f86f9[_0x2853d5++]=arguments[_0x2853d5];_0x342f55['apply'](null,_0x4f86f9);}}};try{_0x2b694c['apply'](_0x2181be||null,_0x13b0b4);}catch(_0x37caa2){_0x2f391a&&(_0x2f391a=!0x1,_0x50e54e(_0x37caa2));}});},aspromise;}var base64={},hasRequiredBase64,eventemitter,hasRequiredEventemitter,float,hasRequiredFloat,inquire_1,hasRequiredInquire;function requireBase64(){return hasRequiredBase64||(hasRequiredBase64=0x1,function(_0x4ad8d8){var _0x5cd6e5=_0x4ad8d8;_0x5cd6e5['length']=function(_0x1372ed){var _0x493a63=_0x1372ed['length'];if(!_0x493a63)return 0x0;for(var _0x289092=0x0;--_0x493a63%0x4>0x1&&'='===_0x1372ed['charAt'](_0x493a63);)++_0x289092;return Math['ceil'](0x3*_0x1372ed['length'])/0x4-_0x289092;};for(var _0xd843b5=new Array(0x40),_0x45eafa=new Array(0x7b),_0xf1441a=0x0;_0xf1441a<0x40;)_0x45eafa[_0xd843b5[_0xf1441a]=_0xf1441a<0x1a?_0xf1441a+0x41:_0xf1441a<0x34?_0xf1441a+0x47:_0xf1441a<0x3e?_0xf1441a-0x4:_0xf1441a-0x3b|0x2b]=_0xf1441a++;_0x5cd6e5['encode']=function(_0x4c8857,_0x51d6e2,_0x44b67f){for(var t,_0x5c663a=null,_0x1778c4=[],_0x1f52cc=0x0,_0x512217=0x0;_0x51d6e2<_0x44b67f;){var _0x3464bf=_0x4c8857[_0x51d6e2++];switch(_0x512217){case 0x0:_0x1778c4[_0x1f52cc++]=_0xd843b5[_0x3464bf>>0x2],t=(0x3&_0x3464bf)<<0x4,_0x512217=0x1;break;case 0x1:_0x1778c4[_0x1f52cc++]=_0xd843b5[t|_0x3464bf>>0x4],t=(0xf&_0x3464bf)<<0x2,_0x512217=0x2;break;case 0x2:_0x1778c4[_0x1f52cc++]=_0xd843b5[t|_0x3464bf>>0x6],_0x1778c4[_0x1f52cc++]=_0xd843b5[0x3f&_0x3464bf],_0x512217=0x0;}_0x1f52cc>0x1fff&&((_0x5c663a||(_0x5c663a=[]))['push'](String['fromCharCode']['apply'](String,_0x1778c4)),_0x1f52cc=0x0);}return _0x512217&&(_0x1778c4[_0x1f52cc++]=_0xd843b5[t],_0x1778c4[_0x1f52cc++]=0x3d,0x1===_0x512217&&(_0x1778c4[_0x1f52cc++]=0x3d)),_0x5c663a?(_0x1f52cc&&_0x5c663a['push'](String['fromCharCode']['apply'](String,_0x1778c4['slice'](0x0,_0x1f52cc))),_0x5c663a['join']('')):String['fromCharCode']['apply'](String,_0x1778c4['slice'](0x0,_0x1f52cc));};var _0x222fc6='invalid\x20encoding';_0x5cd6e5['decode']=function(_0x2b81f3,_0x341270,_0x1215e5){for(var t,_0x2bba3e=_0x1215e5,_0x538df7=0x0,_0x59b5db=0x0;_0x59b5db<_0x2b81f3['length'];){var _0x296f40=_0x2b81f3['charCodeAt'](_0x59b5db++);if(0x3d===_0x296f40&&_0x538df7>0x1)break;if(void 0x0===(_0x296f40=_0x45eafa[_0x296f40]))throw Error(_0x222fc6);switch(_0x538df7){case 0x0:t=_0x296f40,_0x538df7=0x1;break;case 0x1:_0x341270[_0x1215e5++]=t<<0x2|(0x30&_0x296f40)>>0x4,t=_0x296f40,_0x538df7=0x2;break;case 0x2:_0x341270[_0x1215e5++]=(0xf&t)<<0x4|(0x3c&_0x296f40)>>0x2,t=_0x296f40,_0x538df7=0x3;break;case 0x3:_0x341270[_0x1215e5++]=(0x3&t)<<0x6|_0x296f40,_0x538df7=0x0;}}if(0x1===_0x538df7)throw Error(_0x222fc6);return _0x1215e5-_0x2bba3e;},_0x5cd6e5['test']=function(_0x23955f){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/['test'](_0x23955f);};}(base64)),base64;}function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;function _0x34cabb(){this['_listeners']={};}return hasRequiredEventemitter=0x1,eventemitter=_0x34cabb,_0x34cabb['prototype']['on']=function(_0x2bf080,_0x5e9576,_0x45df2f){return(this['_listeners'][_0x2bf080]||(this['_listeners'][_0x2bf080]=[]))['push']({'fn':_0x5e9576,'ctx':_0x45df2f||this}),this;},_0x34cabb['prototype']['off']=function(_0x2cf2fd,_0x3b3891){if(void 0x0===_0x2cf2fd)this['_listeners']={};else{if(void 0x0===_0x3b3891)this['_listeners'][_0x2cf2fd]=[];else{for(var _0x4d0dea=this['_listeners'][_0x2cf2fd],_0x260b85=0x0;_0x260b85<_0x4d0dea['length'];)_0x4d0dea[_0x260b85]['fn']===_0x3b3891?_0x4d0dea['splice'](_0x260b85,0x1):++_0x260b85;}}return this;},_0x34cabb['prototype']['emit']=function(_0x3b494f){var _0x25f417=this['_listeners'][_0x3b494f];if(_0x25f417){for(var _0xf91e92=[],_0x437050=0x1;_0x437050<arguments['length'];)_0xf91e92['push'](arguments[_0x437050++]);for(_0x437050=0x0;_0x437050<_0x25f417['length'];)_0x25f417[_0x437050]['fn']['apply'](_0x25f417[_0x437050++]['ctx'],_0xf91e92);}return this;},eventemitter;}function requireFloat(){if(hasRequiredFloat)return float;function _0x3b4450(_0x5ef712){return'undefined'!=typeof Float32Array?(function(){var _0x38c7c6=new Float32Array([-0x0]),_0x1b21ef=new Uint8Array(_0x38c7c6['buffer']),_0x58d99a=0x80===_0x1b21ef[0x3];function _0x143560(_0x2af3d4,_0x3d80f0,_0x307c33){_0x38c7c6[0x0]=_0x2af3d4,_0x3d80f0[_0x307c33]=_0x1b21ef[0x0],_0x3d80f0[_0x307c33+0x1]=_0x1b21ef[0x1],_0x3d80f0[_0x307c33+0x2]=_0x1b21ef[0x2],_0x3d80f0[_0x307c33+0x3]=_0x1b21ef[0x3];}function _0x4c68c6(_0x1c3530,_0x2eea07,_0x153e18){_0x38c7c6[0x0]=_0x1c3530,_0x2eea07[_0x153e18]=_0x1b21ef[0x3],_0x2eea07[_0x153e18+0x1]=_0x1b21ef[0x2],_0x2eea07[_0x153e18+0x2]=_0x1b21ef[0x1],_0x2eea07[_0x153e18+0x3]=_0x1b21ef[0x0];}function _0x38e4b0(_0x4c85e7,_0x2408af){return _0x1b21ef[0x0]=_0x4c85e7[_0x2408af],_0x1b21ef[0x1]=_0x4c85e7[_0x2408af+0x1],_0x1b21ef[0x2]=_0x4c85e7[_0x2408af+0x2],_0x1b21ef[0x3]=_0x4c85e7[_0x2408af+0x3],_0x38c7c6[0x0];}function _0x4e6928(_0x4078d3,_0x214522){return _0x1b21ef[0x3]=_0x4078d3[_0x214522],_0x1b21ef[0x2]=_0x4078d3[_0x214522+0x1],_0x1b21ef[0x1]=_0x4078d3[_0x214522+0x2],_0x1b21ef[0x0]=_0x4078d3[_0x214522+0x3],_0x38c7c6[0x0];}_0x5ef712['writeFloatLE']=_0x58d99a?_0x143560:_0x4c68c6,_0x5ef712['writeFloatBE']=_0x58d99a?_0x4c68c6:_0x143560,_0x5ef712['readFloatLE']=_0x58d99a?_0x38e4b0:_0x4e6928,_0x5ef712['readFloatBE']=_0x58d99a?_0x4e6928:_0x38e4b0;}()):(function(){function _0x56afd2(_0x2e9ef2,_0x3840d5,_0x3cb2f7,_0x1b3872){var _0x4312b9=_0x3840d5<0x0?0x1:0x0;if(_0x4312b9&&(_0x3840d5=-_0x3840d5),0x0===_0x3840d5)_0x2e9ef2(0x1/_0x3840d5>0x0?0x0:0x80000000,_0x3cb2f7,_0x1b3872);else{if(isNaN(_0x3840d5))_0x2e9ef2(0x7fc00000,_0x3cb2f7,_0x1b3872);else{if(_0x3840d5>0xffffff00000000000000000000000000)_0x2e9ef2((_0x4312b9<<0x1f|0x7f800000)>>>0x0,_0x3cb2f7,_0x1b3872);else{if(_0x3840d5<1.1754943508222875e-38)_0x2e9ef2((_0x4312b9<<0x1f|Math['round'](_0x3840d5/1.401298464324817e-45))>>>0x0,_0x3cb2f7,_0x1b3872);else{var _0x43360f=Math['floor'](Math['log'](_0x3840d5)/Math['LN2']);_0x2e9ef2((_0x4312b9<<0x1f|_0x43360f+0x7f<<0x17|0x7fffff&Math['round'](_0x3840d5*Math['pow'](0x2,-_0x43360f)*0x800000))>>>0x0,_0x3cb2f7,_0x1b3872);}}}}}function _0x5dcc7f(_0xda582,_0x47330c,_0x200694){var _0x1b9772=_0xda582(_0x47330c,_0x200694),_0x599735=0x2*(_0x1b9772>>0x1f)+0x1,_0x40cc32=_0x1b9772>>>0x17&0xff,_0xba85e2=0x7fffff&_0x1b9772;return 0xff===_0x40cc32?_0xba85e2?NaN:_0x599735*(0x1/0x0):0x0===_0x40cc32?1.401298464324817e-45*_0x599735*_0xba85e2:_0x599735*Math['pow'](0x2,_0x40cc32-0x96)*(_0xba85e2+0x800000);}_0x5ef712['writeFloatLE']=_0x56afd2['bind'](null,_0x434bbb),_0x5ef712['writeFloatBE']=_0x56afd2['bind'](null,_0x1a1c36),_0x5ef712['readFloatLE']=_0x5dcc7f['bind'](null,_0x27709f),_0x5ef712['readFloatBE']=_0x5dcc7f['bind'](null,_0x33ee19);}()),'undefined'!=typeof Float64Array?(function(){var _0x9b5a01=new Float64Array([-0x0]),_0x1edd34=new Uint8Array(_0x9b5a01['buffer']),_0xc2a2fb=0x80===_0x1edd34[0x7];function _0x25ee6e(_0x35bafc,_0x498a03,_0x1e4090){_0x9b5a01[0x0]=_0x35bafc,_0x498a03[_0x1e4090]=_0x1edd34[0x0],_0x498a03[_0x1e4090+0x1]=_0x1edd34[0x1],_0x498a03[_0x1e4090+0x2]=_0x1edd34[0x2],_0x498a03[_0x1e4090+0x3]=_0x1edd34[0x3],_0x498a03[_0x1e4090+0x4]=_0x1edd34[0x4],_0x498a03[_0x1e4090+0x5]=_0x1edd34[0x5],_0x498a03[_0x1e4090+0x6]=_0x1edd34[0x6],_0x498a03[_0x1e4090+0x7]=_0x1edd34[0x7];}function _0x2de47f(_0x4b39fe,_0x6d39f4,_0x5ad9bc){_0x9b5a01[0x0]=_0x4b39fe,_0x6d39f4[_0x5ad9bc]=_0x1edd34[0x7],_0x6d39f4[_0x5ad9bc+0x1]=_0x1edd34[0x6],_0x6d39f4[_0x5ad9bc+0x2]=_0x1edd34[0x5],_0x6d39f4[_0x5ad9bc+0x3]=_0x1edd34[0x4],_0x6d39f4[_0x5ad9bc+0x4]=_0x1edd34[0x3],_0x6d39f4[_0x5ad9bc+0x5]=_0x1edd34[0x2],_0x6d39f4[_0x5ad9bc+0x6]=_0x1edd34[0x1],_0x6d39f4[_0x5ad9bc+0x7]=_0x1edd34[0x0];}function _0x5c6a10(_0x46174b,_0x3e30a2){return _0x1edd34[0x0]=_0x46174b[_0x3e30a2],_0x1edd34[0x1]=_0x46174b[_0x3e30a2+0x1],_0x1edd34[0x2]=_0x46174b[_0x3e30a2+0x2],_0x1edd34[0x3]=_0x46174b[_0x3e30a2+0x3],_0x1edd34[0x4]=_0x46174b[_0x3e30a2+0x4],_0x1edd34[0x5]=_0x46174b[_0x3e30a2+0x5],_0x1edd34[0x6]=_0x46174b[_0x3e30a2+0x6],_0x1edd34[0x7]=_0x46174b[_0x3e30a2+0x7],_0x9b5a01[0x0];}function _0x27994a(_0x1ddf9b,_0x43f6f3){return _0x1edd34[0x7]=_0x1ddf9b[_0x43f6f3],_0x1edd34[0x6]=_0x1ddf9b[_0x43f6f3+0x1],_0x1edd34[0x5]=_0x1ddf9b[_0x43f6f3+0x2],_0x1edd34[0x4]=_0x1ddf9b[_0x43f6f3+0x3],_0x1edd34[0x3]=_0x1ddf9b[_0x43f6f3+0x4],_0x1edd34[0x2]=_0x1ddf9b[_0x43f6f3+0x5],_0x1edd34[0x1]=_0x1ddf9b[_0x43f6f3+0x6],_0x1edd34[0x0]=_0x1ddf9b[_0x43f6f3+0x7],_0x9b5a01[0x0];}_0x5ef712['writeDoubleLE']=_0xc2a2fb?_0x25ee6e:_0x2de47f,_0x5ef712['writeDoubleBE']=_0xc2a2fb?_0x2de47f:_0x25ee6e,_0x5ef712['readDoubleLE']=_0xc2a2fb?_0x5c6a10:_0x27994a,_0x5ef712['readDoubleBE']=_0xc2a2fb?_0x27994a:_0x5c6a10;}()):(function(){function _0x5259f5(_0x17be44,_0x1e34e2,_0x477400,_0x583cd1,_0x23b0c4,_0x555e1e){var _0x54f29c=_0x583cd1<0x0?0x1:0x0;if(_0x54f29c&&(_0x583cd1=-_0x583cd1),0x0===_0x583cd1)_0x17be44(0x0,_0x23b0c4,_0x555e1e+_0x1e34e2),_0x17be44(0x1/_0x583cd1>0x0?0x0:0x80000000,_0x23b0c4,_0x555e1e+_0x477400);else{if(isNaN(_0x583cd1))_0x17be44(0x0,_0x23b0c4,_0x555e1e+_0x1e34e2),_0x17be44(0x7ff80000,_0x23b0c4,_0x555e1e+_0x477400);else{if(_0x583cd1>0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)_0x17be44(0x0,_0x23b0c4,_0x555e1e+_0x1e34e2),_0x17be44((_0x54f29c<<0x1f|0x7ff00000)>>>0x0,_0x23b0c4,_0x555e1e+_0x477400);else{var _0xd51260;if(_0x583cd1<2.2250738585072014e-308)_0x17be44((_0xd51260=_0x583cd1/5e-324)>>>0x0,_0x23b0c4,_0x555e1e+_0x1e34e2),_0x17be44((_0x54f29c<<0x1f|_0xd51260/0x100000000)>>>0x0,_0x23b0c4,_0x555e1e+_0x477400);else{var _0x4d0813=Math['floor'](Math['log'](_0x583cd1)/Math['LN2']);0x400===_0x4d0813&&(_0x4d0813=0x3ff),_0x17be44(0x10000000000000*(_0xd51260=_0x583cd1*Math['pow'](0x2,-_0x4d0813))>>>0x0,_0x23b0c4,_0x555e1e+_0x1e34e2),_0x17be44((_0x54f29c<<0x1f|_0x4d0813+0x3ff<<0x14|0x100000*_0xd51260&0xfffff)>>>0x0,_0x23b0c4,_0x555e1e+_0x477400);}}}}}function _0x40ee35(_0x14e274,_0x2ce593,_0x4eb262,_0x14a996,_0x1c95c4){var _0x57e687=_0x14e274(_0x14a996,_0x1c95c4+_0x2ce593),_0x1086e8=_0x14e274(_0x14a996,_0x1c95c4+_0x4eb262),_0x261964=0x2*(_0x1086e8>>0x1f)+0x1,_0x1055f9=_0x1086e8>>>0x14&0x7ff,_0x512ce2=0x100000000*(0xfffff&_0x1086e8)+_0x57e687;return 0x7ff===_0x1055f9?_0x512ce2?NaN:_0x261964*(0x1/0x0):0x0===_0x1055f9?5e-324*_0x261964*_0x512ce2:_0x261964*Math['pow'](0x2,_0x1055f9-0x433)*(_0x512ce2+0x10000000000000);}_0x5ef712['writeDoubleLE']=_0x5259f5['bind'](null,_0x434bbb,0x0,0x4),_0x5ef712['writeDoubleBE']=_0x5259f5['bind'](null,_0x1a1c36,0x4,0x0),_0x5ef712['readDoubleLE']=_0x40ee35['bind'](null,_0x27709f,0x0,0x4),_0x5ef712['readDoubleBE']=_0x40ee35['bind'](null,_0x33ee19,0x4,0x0);}()),_0x5ef712;}function _0x434bbb(_0x5e24d2,_0x5f288f,_0x503e94){_0x5f288f[_0x503e94]=0xff&_0x5e24d2,_0x5f288f[_0x503e94+0x1]=_0x5e24d2>>>0x8&0xff,_0x5f288f[_0x503e94+0x2]=_0x5e24d2>>>0x10&0xff,_0x5f288f[_0x503e94+0x3]=_0x5e24d2>>>0x18;}function _0x1a1c36(_0x12fc48,_0x242b09,_0x5e740e){_0x242b09[_0x5e740e]=_0x12fc48>>>0x18,_0x242b09[_0x5e740e+0x1]=_0x12fc48>>>0x10&0xff,_0x242b09[_0x5e740e+0x2]=_0x12fc48>>>0x8&0xff,_0x242b09[_0x5e740e+0x3]=0xff&_0x12fc48;}function _0x27709f(_0xce897f,_0x3b97e8){return(_0xce897f[_0x3b97e8]|_0xce897f[_0x3b97e8+0x1]<<0x8|_0xce897f[_0x3b97e8+0x2]<<0x10|_0xce897f[_0x3b97e8+0x3]<<0x18)>>>0x0;}function _0x33ee19(_0x107605,_0x5f4255){return(_0x107605[_0x5f4255]<<0x18|_0x107605[_0x5f4255+0x1]<<0x10|_0x107605[_0x5f4255+0x2]<<0x8|_0x107605[_0x5f4255+0x3])>>>0x0;}return hasRequiredFloat=0x1,float=_0x3b4450(_0x3b4450);}function requireInquire(){if(hasRequiredInquire)return inquire_1;function _0x3f869c(_0x3dd47b){try{var _0x295252=eval('quire'['replace'](/^/,'re'))(_0x3dd47b);if(_0x295252&&(_0x295252['length']||Object['keys'](_0x295252)['length']))return _0x295252;}catch(_0xfaeba0){}return null;}return hasRequiredInquire=0x1,inquire_1=_0x3f869c,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(_0x307751){var _0x4494db=_0x307751;_0x4494db['length']=function(_0x3c3d40){for(var _0xb2d0=0x0,_0x12bee2=0x0,_0x57114a=0x0;_0x57114a<_0x3c3d40['length'];++_0x57114a)(_0x12bee2=_0x3c3d40['charCodeAt'](_0x57114a))<0x80?_0xb2d0+=0x1:_0x12bee2<0x800?_0xb2d0+=0x2:0xd800==(0xfc00&_0x12bee2)&&0xdc00==(0xfc00&_0x3c3d40['charCodeAt'](_0x57114a+0x1))?(++_0x57114a,_0xb2d0+=0x4):_0xb2d0+=0x3;return _0xb2d0;},_0x4494db['read']=function(_0x1519d6,_0x5c5eda,_0x2857b8){if(_0x2857b8-_0x5c5eda<0x1)return'';for(var t,_0x2ac3ff=null,_0x50b875=[],_0xe30c4e=0x0;_0x5c5eda<_0x2857b8;)(t=_0x1519d6[_0x5c5eda++])<0x80?_0x50b875[_0xe30c4e++]=t:t>0xbf&&t<0xe0?_0x50b875[_0xe30c4e++]=(0x1f&t)<<0x6|0x3f&_0x1519d6[_0x5c5eda++]:t>0xef&&t<0x16d?(t=((0x7&t)<<0x12|(0x3f&_0x1519d6[_0x5c5eda++])<<0xc|(0x3f&_0x1519d6[_0x5c5eda++])<<0x6|0x3f&_0x1519d6[_0x5c5eda++])-0x10000,_0x50b875[_0xe30c4e++]=0xd800+(t>>0xa),_0x50b875[_0xe30c4e++]=0xdc00+(0x3ff&t)):_0x50b875[_0xe30c4e++]=(0xf&t)<<0xc|(0x3f&_0x1519d6[_0x5c5eda++])<<0x6|0x3f&_0x1519d6[_0x5c5eda++],_0xe30c4e>0x1fff&&((_0x2ac3ff||(_0x2ac3ff=[]))['push'](String['fromCharCode']['apply'](String,_0x50b875)),_0xe30c4e=0x0);return _0x2ac3ff?(_0xe30c4e&&_0x2ac3ff['push'](String['fromCharCode']['apply'](String,_0x50b875['slice'](0x0,_0xe30c4e))),_0x2ac3ff['join']('')):String['fromCharCode']['apply'](String,_0x50b875['slice'](0x0,_0xe30c4e));},_0x4494db['write']=function(_0xe903b7,_0x38c444,_0x3fc5a2){for(var _0x351132,_0x360096,_0x17cc8d=_0x3fc5a2,_0x2fbc72=0x0;_0x2fbc72<_0xe903b7['length'];++_0x2fbc72)(_0x351132=_0xe903b7['charCodeAt'](_0x2fbc72))<0x80?_0x38c444[_0x3fc5a2++]=_0x351132:_0x351132<0x800?(_0x38c444[_0x3fc5a2++]=_0x351132>>0x6|0xc0,_0x38c444[_0x3fc5a2++]=0x3f&_0x351132|0x80):0xd800==(0xfc00&_0x351132)&&0xdc00==(0xfc00&(_0x360096=_0xe903b7['charCodeAt'](_0x2fbc72+0x1)))?(_0x351132=0x10000+((0x3ff&_0x351132)<<0xa)+(0x3ff&_0x360096),++_0x2fbc72,_0x38c444[_0x3fc5a2++]=_0x351132>>0x12|0xf0,_0x38c444[_0x3fc5a2++]=_0x351132>>0xc&0x3f|0x80,_0x38c444[_0x3fc5a2++]=_0x351132>>0x6&0x3f|0x80,_0x38c444[_0x3fc5a2++]=0x3f&_0x351132|0x80):(_0x38c444[_0x3fc5a2++]=_0x351132>>0xc|0xe0,_0x38c444[_0x3fc5a2++]=_0x351132>>0x6&0x3f|0x80,_0x38c444[_0x3fc5a2++]=0x3f&_0x351132|0x80);return _0x3fc5a2-_0x17cc8d;};}(utf8)),utf8;}function requirePool(){if(hasRequiredPool)return pool_1;return hasRequiredPool=0x1,pool_1=function(_0x26b2a0,_0x576ed1,_0x473405){var _0x4c64ab=_0x473405||0x2000,_0xd2de2c=_0x4c64ab>>>0x1,_0x743222=null,_0x1c659f=_0x4c64ab;return function(_0x543f8d){if(_0x543f8d<0x1||_0x543f8d>_0xd2de2c)return _0x26b2a0(_0x543f8d);_0x1c659f+_0x543f8d>_0x4c64ab&&(_0x743222=_0x26b2a0(_0x4c64ab),_0x1c659f=0x0);var _0x47ef1c=_0x576ed1['call'](_0x743222,_0x1c659f,_0x1c659f+=_0x543f8d);return 0x7&_0x1c659f&&(_0x1c659f=0x1+(0x7|_0x1c659f)),_0x47ef1c;};},pool_1;}function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=0x1,longbits=_0x38bb08;var _0x52f711=requireMinimal$1();function _0x38bb08(_0x191ecf,_0x31ebf6){this['lo']=_0x191ecf>>>0x0,this['hi']=_0x31ebf6>>>0x0;}var _0x3786b8=_0x38bb08['zero']=new _0x38bb08(0x0,0x0);_0x3786b8['toNumber']=function(){return 0x0;},_0x3786b8['zzEncode']=_0x3786b8['zzDecode']=function(){return this;},_0x3786b8['length']=function(){return 0x1;};var _0x20cdf4=_0x38bb08['zeroHash']='\x00\x00\x00\x00\x00\x00\x00\x00';_0x38bb08['fromNumber']=function(_0x3c7f7c){if(0x0===_0x3c7f7c)return _0x3786b8;var _0x4139c5=_0x3c7f7c<0x0;_0x4139c5&&(_0x3c7f7c=-_0x3c7f7c);var _0x405cfb=_0x3c7f7c>>>0x0,_0x18c14f=(_0x3c7f7c-_0x405cfb)/0x100000000>>>0x0;return _0x4139c5&&(_0x18c14f=~_0x18c14f>>>0x0,_0x405cfb=~_0x405cfb>>>0x0,++_0x405cfb>0xffffffff&&(_0x405cfb=0x0,++_0x18c14f>0xffffffff&&(_0x18c14f=0x0))),new _0x38bb08(_0x405cfb,_0x18c14f);},_0x38bb08['from']=function(_0x562c5d){if('number'==typeof _0x562c5d)return _0x38bb08['fromNumber'](_0x562c5d);if(_0x52f711['isString'](_0x562c5d)){if(!_0x52f711['Long'])return _0x38bb08['fromNumber'](parseInt(_0x562c5d,0xa));_0x562c5d=_0x52f711['Long']['fromString'](_0x562c5d);}return _0x562c5d['low']||_0x562c5d['high']?new _0x38bb08(_0x562c5d['low']>>>0x0,_0x562c5d['high']>>>0x0):_0x3786b8;},_0x38bb08['prototype']['toNumber']=function(_0x426e2f){if(!_0x426e2f&&this['hi']>>>0x1f){var _0x5183bf=0x1+~this['lo']>>>0x0,_0x4f5d56=~this['hi']>>>0x0;return _0x5183bf||(_0x4f5d56=_0x4f5d56+0x1>>>0x0),-(_0x5183bf+0x100000000*_0x4f5d56);}return this['lo']+0x100000000*this['hi'];},_0x38bb08['prototype']['toLong']=function(_0x350d0b){return _0x52f711['Long']?new _0x52f711['Long'](0x0|this['lo'],0x0|this['hi'],Boolean(_0x350d0b)):{'low':0x0|this['lo'],'high':0x0|this['hi'],'unsigned':Boolean(_0x350d0b)};};var _0x18e2ac=String['prototype']['charCodeAt'];return _0x38bb08['fromHash']=function(_0xc9e45b){return _0xc9e45b===_0x20cdf4?_0x3786b8:new _0x38bb08((_0x18e2ac['call'](_0xc9e45b,0x0)|_0x18e2ac['call'](_0xc9e45b,0x1)<<0x8|_0x18e2ac['call'](_0xc9e45b,0x2)<<0x10|_0x18e2ac['call'](_0xc9e45b,0x3)<<0x18)>>>0x0,(_0x18e2ac['call'](_0xc9e45b,0x4)|_0x18e2ac['call'](_0xc9e45b,0x5)<<0x8|_0x18e2ac['call'](_0xc9e45b,0x6)<<0x10|_0x18e2ac['call'](_0xc9e45b,0x7)<<0x18)>>>0x0);},_0x38bb08['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);},_0x38bb08['prototype']['zzEncode']=function(){var _0x30e978=this['hi']>>0x1f;return this['hi']=((this['hi']<<0x1|this['lo']>>>0x1f)^_0x30e978)>>>0x0,this['lo']=(this['lo']<<0x1^_0x30e978)>>>0x0,this;},_0x38bb08['prototype']['zzDecode']=function(){var _0xf0234b=-(0x1&this['lo']);return this['lo']=((this['lo']>>>0x1|this['hi']<<0x1f)^_0xf0234b)>>>0x0,this['hi']=(this['hi']>>>0x1^_0xf0234b)>>>0x0,this;},_0x38bb08['prototype']['length']=function(){var _0x3376d8=this['lo'],_0x283b3f=(this['lo']>>>0x1c|this['hi']<<0x4)>>>0x0,_0x5fb4ef=this['hi']>>>0x18;return 0x0===_0x5fb4ef?0x0===_0x283b3f?_0x3376d8<0x4000?_0x3376d8<0x80?0x1:0x2:_0x3376d8<0x200000?0x3:0x4:_0x283b3f<0x4000?_0x283b3f<0x80?0x5:0x6:_0x283b3f<0x200000?0x7:0x8:_0x5fb4ef<0x80?0x9:0xa;},longbits;}function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=0x1,(function(){var _0x503c16=minimal$1;function _0x2e7c31(_0xe4780a,_0x42e02c,_0x1eca02){for(var _0xff42e0=Object['keys'](_0x42e02c),_0x350997=0x0;_0x350997<_0xff42e0['length'];++_0x350997)void 0x0!==_0xe4780a[_0xff42e0[_0x350997]]&&_0x1eca02||(_0xe4780a[_0xff42e0[_0x350997]]=_0x42e02c[_0xff42e0[_0x350997]]);return _0xe4780a;}function _0x3472cf(_0x543a7f){function _0x399087(_0x522b38,_0x49e777){if(!(this instanceof _0x399087))return new _0x399087(_0x522b38,_0x49e777);Object['defineProperty'](this,'message',{'get':function(){return _0x522b38;}}),Error['captureStackTrace']?Error['captureStackTrace'](this,_0x399087):Object['defineProperty'](this,'stack',{'value':new Error()['stack']||''}),_0x49e777&&_0x2e7c31(this,_0x49e777);}return _0x399087['prototype']=Object['create'](Error['prototype'],{'constructor':{'value':_0x399087,'writable':!0x0,'enumerable':!0x1,'configurable':!0x0},'name':{'get':function(){return _0x543a7f;},'set':void 0x0,'enumerable':!0x1,'configurable':!0x0},'toString':{'value':function(){return this['name']+':\x20'+this['message'];},'writable':!0x0,'enumerable':!0x1,'configurable':!0x0}}),_0x399087;}_0x503c16['asPromise']=requireAspromise(),_0x503c16['base64']=requireBase64(),_0x503c16['EventEmitter']=requireEventemitter(),_0x503c16['float']=requireFloat(),_0x503c16['inquire']=requireInquire(),_0x503c16['utf8']=requireUtf8(),_0x503c16['pool']=requirePool(),_0x503c16['LongBits']=requireLongbits(),_0x503c16['isNode']=Boolean(void 0x0!==commonjsGlobal&&commonjsGlobal&&commonjsGlobal['process']&&commonjsGlobal['process']['versions']&&commonjsGlobal['process']['versions']['node']),_0x503c16['global']=_0x503c16['isNode']&&commonjsGlobal||'undefined'!=typeof window&&window||'undefined'!=typeof self&&self||minimal$1,_0x503c16['emptyArray']=Object['freeze']?Object['freeze']([]):[],_0x503c16['emptyObject']=Object['freeze']?Object['freeze']({}):{},_0x503c16['isInteger']=Number['isInteger']||function(_0x3e420f){return'number'==typeof _0x3e420f&&isFinite(_0x3e420f)&&Math['floor'](_0x3e420f)===_0x3e420f;},_0x503c16['isString']=function(_0x5e8c95){return'string'==typeof _0x5e8c95||_0x5e8c95 instanceof String;},_0x503c16['isObject']=function(_0x4bf123){return _0x4bf123&&'object'==typeof _0x4bf123;},_0x503c16['isset']=_0x503c16['isSet']=function(_0x3b60c1,_0x57373e){var _0x406218=_0x3b60c1[_0x57373e];return!(null==_0x406218||!_0x3b60c1['hasOwnProperty'](_0x57373e))&&('object'!=typeof _0x406218||(Array['isArray'](_0x406218)?_0x406218['length']:Object['keys'](_0x406218)['length'])>0x0);},_0x503c16['Buffer']=(function(){try{var _0x37b02d=_0x503c16['inquire']('buffer')['Buffer'];return _0x37b02d['prototype']['utf8Write']?_0x37b02d:null;}catch(_0x11a70c){return null;}}()),_0x503c16['_Buffer_from']=null,_0x503c16['_Buffer_allocUnsafe']=null,_0x503c16['newBuffer']=function(_0x5b92fa){return'number'==typeof _0x5b92fa?_0x503c16['Buffer']?_0x503c16['_Buffer_allocUnsafe'](_0x5b92fa):new _0x503c16['Array'](_0x5b92fa):_0x503c16['Buffer']?_0x503c16['_Buffer_from'](_0x5b92fa):'undefined'==typeof Uint8Array?_0x5b92fa:new Uint8Array(_0x5b92fa);},_0x503c16['Array']='undefined'!=typeof Uint8Array?Uint8Array:Array,_0x503c16['Long']=_0x503c16['global']['dcodeIO']&&_0x503c16['global']['dcodeIO']['Long']||_0x503c16['global']['Long']||_0x503c16['inquire']('long'),_0x503c16['key2Re']=/^true|false|0|1$/,_0x503c16['key32Re']=/^-?(?:0|[1-9][0-9]*)$/,_0x503c16['key64Re']=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,_0x503c16['longToHash']=function(_0x2c294e){return _0x2c294e?_0x503c16['LongBits']['from'](_0x2c294e)['toHash']():_0x503c16['LongBits']['zeroHash'];},_0x503c16['longFromHash']=function(_0x32a405,_0x2babb3){var _0x29fedc=_0x503c16['LongBits']['fromHash'](_0x32a405);return _0x503c16['Long']?_0x503c16['Long']['fromBits'](_0x29fedc['lo'],_0x29fedc['hi'],_0x2babb3):_0x29fedc['toNumber'](Boolean(_0x2babb3));},_0x503c16['merge']=_0x2e7c31,_0x503c16['lcFirst']=function(_0xbbe468){return _0xbbe468['charAt'](0x0)['toLowerCase']()+_0xbbe468['substring'](0x1);},_0x503c16['newError']=_0x3472cf,_0x503c16['ProtocolError']=_0x3472cf('ProtocolError'),_0x503c16['oneOfGetter']=function(_0x17a2cb){for(var _0x493eb1={},_0x5b87e0=0x0;_0x5b87e0<_0x17a2cb['length'];++_0x5b87e0)_0x493eb1[_0x17a2cb[_0x5b87e0]]=0x1;return function(){for(var _0x157d5e=Object['keys'](this),_0x4ef94a=_0x157d5e['length']-0x1;_0x4ef94a>-0x1;--_0x4ef94a)if(0x1===_0x493eb1[_0x157d5e[_0x4ef94a]]&&void 0x0!==this[_0x157d5e[_0x4ef94a]]&&null!==this[_0x157d5e[_0x4ef94a]])return _0x157d5e[_0x4ef94a];};},_0x503c16['oneOfSetter']=function(_0x3db61d){return function(_0xef01a0){for(var _0x3b4f55=0x0;_0x3b4f55<_0x3db61d['length'];++_0x3b4f55)_0x3db61d[_0x3b4f55]!==_0xef01a0&&delete this[_0x3db61d[_0x3b4f55]];};},_0x503c16['toJSONOptions']={'longs':String,'enums':String,'bytes':String,'json':!0x0},_0x503c16['_configure']=function(){var _0x6d20d4=_0x503c16['Buffer'];_0x6d20d4?(_0x503c16['_Buffer_from']=_0x6d20d4['from']!==Uint8Array['from']&&_0x6d20d4['from']||function(_0x4e0af9,_0x9bd2c7){return new _0x6d20d4(_0x4e0af9,_0x9bd2c7);},_0x503c16['_Buffer_allocUnsafe']=_0x6d20d4['allocUnsafe']||function(_0x209a47){return new _0x6d20d4(_0x209a47);}):_0x503c16['_Buffer_from']=_0x503c16['_Buffer_allocUnsafe']=null;};}())),minimal$1;}function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=0x1,writer=_0x582dc6;var _0x246a1e,_0x5c299c=requireMinimal$1(),_0x3471b4=_0x5c299c['LongBits'],_0x31c1af=_0x5c299c['base64'],_0x14742c=_0x5c299c['utf8'];function _0x11aec2(_0x5007f6,_0x2ac0b9,_0x2f73f1){this['fn']=_0x5007f6,this['len']=_0x2ac0b9,this['next']=void 0x0,this['val']=_0x2f73f1;}function _0x30047f(){}function _0x45cbe8(_0x35600e){this['head']=_0x35600e['head'],this['tail']=_0x35600e['tail'],this['len']=_0x35600e['len'],this['next']=_0x35600e['states'];}function _0x582dc6(){this['len']=0x0,this['head']=new _0x11aec2(_0x30047f,0x0,0x0),this['tail']=this['head'],this['states']=null;}var _0x1b0e53=function(){return _0x5c299c['Buffer']?function(){return(_0x582dc6['create']=function(){return new _0x246a1e();})();}:function(){return new _0x582dc6();};};function _0x4a681a(_0x5d7a66,_0x2e3aaf,_0x5073d7){_0x2e3aaf[_0x5073d7]=0xff&_0x5d7a66;}function _0x57af37(_0x147841,_0x202ee0){this['len']=_0x147841,this['next']=void 0x0,this['val']=_0x202ee0;}function _0xcaf693(_0xb71866,_0x1e87ab,_0xda4064){for(;_0xb71866['hi'];)_0x1e87ab[_0xda4064++]=0x7f&_0xb71866['lo']|0x80,_0xb71866['lo']=(_0xb71866['lo']>>>0x7|_0xb71866['hi']<<0x19)>>>0x0,_0xb71866['hi']>>>=0x7;for(;_0xb71866['lo']>0x7f;)_0x1e87ab[_0xda4064++]=0x7f&_0xb71866['lo']|0x80,_0xb71866['lo']=_0xb71866['lo']>>>0x7;_0x1e87ab[_0xda4064++]=_0xb71866['lo'];}function _0x32203c(_0x51ae09,_0x457f7c,_0x5c5722){_0x457f7c[_0x5c5722]=0xff&_0x51ae09,_0x457f7c[_0x5c5722+0x1]=_0x51ae09>>>0x8&0xff,_0x457f7c[_0x5c5722+0x2]=_0x51ae09>>>0x10&0xff,_0x457f7c[_0x5c5722+0x3]=_0x51ae09>>>0x18;}_0x582dc6['create']=_0x1b0e53(),_0x582dc6['alloc']=function(_0x1db45a){return new _0x5c299c['Array'](_0x1db45a);},_0x5c299c['Array']!==Array&&(_0x582dc6['alloc']=_0x5c299c['pool'](_0x582dc6['alloc'],_0x5c299c['Array']['prototype']['subarray'])),_0x582dc6['prototype']['_push']=function(_0x21fa63,_0x2588c8,_0x5ab4a3){return this['tail']=this['tail']['next']=new _0x11aec2(_0x21fa63,_0x2588c8,_0x5ab4a3),this['len']+=_0x2588c8,this;},_0x57af37['prototype']=Object['create'](_0x11aec2['prototype']),_0x57af37['prototype']['fn']=function(_0x580ad8,_0x16cc23,_0xa68b03){for(;_0x580ad8>0x7f;)_0x16cc23[_0xa68b03++]=0x7f&_0x580ad8|0x80,_0x580ad8>>>=0x7;_0x16cc23[_0xa68b03]=_0x580ad8;},_0x582dc6['prototype']['uint32']=function(_0x5672bc){return this['len']+=(this['tail']=this['tail']['next']=new _0x57af37((_0x5672bc>>>=0x0)<0x80?0x1:_0x5672bc<0x4000?0x2:_0x5672bc<0x200000?0x3:_0x5672bc<0x10000000?0x4:0x5,_0x5672bc))['len'],this;},_0x582dc6['prototype']['int32']=function(_0x12ef24){return _0x12ef24<0x0?this['_push'](_0xcaf693,0xa,_0x3471b4['fromNumber'](_0x12ef24)):this['uint32'](_0x12ef24);},_0x582dc6['prototype']['sint32']=function(_0x47cb56){return this['uint32']((_0x47cb56<<0x1^_0x47cb56>>0x1f)>>>0x0);},_0x582dc6['prototype']['uint64']=function(_0x57de62){var _0x319dee=_0x3471b4['from'](_0x57de62);return this['_push'](_0xcaf693,_0x319dee['length'](),_0x319dee);},_0x582dc6['prototype']['int64']=_0x582dc6['prototype']['uint64'],_0x582dc6['prototype']['sint64']=function(_0x494541){var _0x324768=_0x3471b4['from'](_0x494541)['zzEncode']();return this['_push'](_0xcaf693,_0x324768['length'](),_0x324768);},_0x582dc6['prototype']['bool']=function(_0xc92c90){return this['_push'](_0x4a681a,0x1,_0xc92c90?0x1:0x0);},_0x582dc6['prototype']['fixed32']=function(_0x4d6317){return this['_push'](_0x32203c,0x4,_0x4d6317>>>0x0);},_0x582dc6['prototype']['sfixed32']=_0x582dc6['prototype']['fixed32'],_0x582dc6['prototype']['fixed64']=function(_0x2e1ff2){var _0x418690=_0x3471b4['from'](_0x2e1ff2);return this['_push'](_0x32203c,0x4,_0x418690['lo'])['_push'](_0x32203c,0x4,_0x418690['hi']);},_0x582dc6['prototype']['sfixed64']=_0x582dc6['prototype']['fixed64'],_0x582dc6['prototype']['float']=function(_0x2ea3f7){return this['_push'](_0x5c299c['float']['writeFloatLE'],0x4,_0x2ea3f7);},_0x582dc6['prototype']['double']=function(_0x520980){return this['_push'](_0x5c299c['float']['writeDoubleLE'],0x8,_0x520980);};var _0x5e77c7=_0x5c299c['Array']['prototype']['set']?function(_0xdd6691,_0x47d92b,_0x2b4373){_0x47d92b['set'](_0xdd6691,_0x2b4373);}:function(_0x110e1f,_0x14a86a,_0x1e9877){for(var _0x462605=0x0;_0x462605<_0x110e1f['length'];++_0x462605)_0x14a86a[_0x1e9877+_0x462605]=_0x110e1f[_0x462605];};return _0x582dc6['prototype']['bytes']=function(_0x19065b){var _0x54d2a3=_0x19065b['length']>>>0x0;if(!_0x54d2a3)return this['_push'](_0x4a681a,0x1,0x0);if(_0x5c299c['isString'](_0x19065b)){var _0x3955ad=_0x582dc6['alloc'](_0x54d2a3=_0x31c1af['length'](_0x19065b));_0x31c1af['decode'](_0x19065b,_0x3955ad,0x0),_0x19065b=_0x3955ad;}return this['uint32'](_0x54d2a3)['_push'](_0x5e77c7,_0x54d2a3,_0x19065b);},_0x582dc6['prototype']['string']=function(_0x39776b){var _0x3dbc1a=_0x14742c['length'](_0x39776b);return _0x3dbc1a?this['uint32'](_0x3dbc1a)['_push'](_0x14742c['write'],_0x3dbc1a,_0x39776b):this['_push'](_0x4a681a,0x1,0x0);},_0x582dc6['prototype']['fork']=function(){return this['states']=new _0x45cbe8(this),this['head']=this['tail']=new _0x11aec2(_0x30047f,0x0,0x0),this['len']=0x0,this;},_0x582dc6['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 _0x11aec2(_0x30047f,0x0,0x0),this['len']=0x0),this;},_0x582dc6['prototype']['ldelim']=function(){var _0x467e5c=this['head'],_0x3e7a05=this['tail'],_0x486099=this['len'];return this['reset']()['uint32'](_0x486099),_0x486099&&(this['tail']['next']=_0x467e5c['next'],this['tail']=_0x3e7a05,this['len']+=_0x486099),this;},_0x582dc6['prototype']['finish']=function(){for(var _0x21ba7d=this['head']['next'],_0x4b34bf=this['constructor']['alloc'](this['len']),_0x1b7a2f=0x0;_0x21ba7d;)_0x21ba7d['fn'](_0x21ba7d['val'],_0x4b34bf,_0x1b7a2f),_0x1b7a2f+=_0x21ba7d['len'],_0x21ba7d=_0x21ba7d['next'];return _0x4b34bf;},_0x582dc6['_configure']=function(_0x135aed){_0x246a1e=_0x135aed,_0x582dc6['create']=_0x1b0e53(),_0x246a1e['_configure']();},writer;}function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=0x1,writer_buffer=_0x24c914;var _0x3293b5=requireWriter();(_0x24c914['prototype']=Object['create'](_0x3293b5['prototype']))['constructor']=_0x24c914;var _0x3da15b=requireMinimal$1();function _0x24c914(){_0x3293b5['call'](this);}function _0x5f8d78(_0x152353,_0x49b981,_0x4a5aa1){_0x152353['length']<0x28?_0x3da15b['utf8']['write'](_0x152353,_0x49b981,_0x4a5aa1):_0x49b981['utf8Write']?_0x49b981['utf8Write'](_0x152353,_0x4a5aa1):_0x49b981['write'](_0x152353,_0x4a5aa1);}return _0x24c914['_configure']=function(){_0x24c914['alloc']=_0x3da15b['_Buffer_allocUnsafe'],_0x24c914['writeBytesBuffer']=_0x3da15b['Buffer']&&_0x3da15b['Buffer']['prototype']instanceof Uint8Array&&'set'===_0x3da15b['Buffer']['prototype']['set']['name']?function(_0x141e1f,_0x3a56c7,_0x542fe5){_0x3a56c7['set'](_0x141e1f,_0x542fe5);}:function(_0x59aec5,_0x35cef8,_0x2796c1){if(_0x59aec5['copy'])_0x59aec5['copy'](_0x35cef8,_0x2796c1,0x0,_0x59aec5['length']);else{for(var _0x58251f=0x0;_0x58251f<_0x59aec5['length'];)_0x35cef8[_0x2796c1++]=_0x59aec5[_0x58251f++];}};},_0x24c914['prototype']['bytes']=function(_0x355fca){_0x3da15b['isString'](_0x355fca)&&(_0x355fca=_0x3da15b['_Buffer_from'](_0x355fca,'base64'));var _0x39604d=_0x355fca['length']>>>0x0;return this['uint32'](_0x39604d),_0x39604d&&this['_push'](_0x24c914['writeBytesBuffer'],_0x39604d,_0x355fca),this;},_0x24c914['prototype']['string']=function(_0x4cd050){var _0x5d87bd=_0x3da15b['Buffer']['byteLength'](_0x4cd050);return this['uint32'](_0x5d87bd),_0x5d87bd&&this['_push'](_0x5f8d78,_0x5d87bd,_0x4cd050),this;},_0x24c914['_configure'](),writer_buffer;}function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=0x1,reader=_0x268082;var _0x2d1fb5,_0x1e49a6=requireMinimal$1(),_0x49ef02=_0x1e49a6['LongBits'],_0x4a049f=_0x1e49a6['utf8'];function _0x10762f(_0x5f02a2,_0x4294c3){return RangeError('index\x20out\x20of\x20range:\x20'+_0x5f02a2['pos']+'\x20+\x20'+(_0x4294c3||0x1)+'\x20>\x20'+_0x5f02a2['len']);}function _0x268082(_0x384dd5){this['buf']=_0x384dd5,this['pos']=0x0,this['len']=_0x384dd5['length'];}var _0x188311='undefined'!=typeof Uint8Array?function(_0x28191d){if(_0x28191d instanceof Uint8Array||Array['isArray'](_0x28191d))return new _0x268082(_0x28191d);throw Error('illegal\x20buffer');}:function(_0x1868f6){if(Array['isArray'](_0x1868f6))return new _0x268082(_0x1868f6);throw Error('illegal\x20buffer');},_0x33d834=function(){return _0x1e49a6['Buffer']?function(_0x4d235f){return(_0x268082['create']=function(_0x10dd7f){return _0x1e49a6['Buffer']['isBuffer'](_0x10dd7f)?new _0x2d1fb5(_0x10dd7f):_0x188311(_0x10dd7f);})(_0x4d235f);}:_0x188311;};function _0x162eed(){var _0x37145e=new _0x49ef02(0x0,0x0),_0x378f08=0x0;if(!(this['len']-this['pos']>0x4)){for(;_0x378f08<0x3;++_0x378f08){if(this['pos']>=this['len'])throw _0x10762f(this);if(_0x37145e['lo']=(_0x37145e['lo']|(0x7f&this['buf'][this['pos']])<<0x7*_0x378f08)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x37145e;}return _0x37145e['lo']=(_0x37145e['lo']|(0x7f&this['buf'][this['pos']++])<<0x7*_0x378f08)>>>0x0,_0x37145e;}for(;_0x378f08<0x4;++_0x378f08)if(_0x37145e['lo']=(_0x37145e['lo']|(0x7f&this['buf'][this['pos']])<<0x7*_0x378f08)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x37145e;if(_0x37145e['lo']=(_0x37145e['lo']|(0x7f&this['buf'][this['pos']])<<0x1c)>>>0x0,_0x37145e['hi']=(_0x37145e['hi']|(0x7f&this['buf'][this['pos']])>>0x4)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x37145e;if(_0x378f08=0x0,this['len']-this['pos']>0x4){for(;_0x378f08<0x5;++_0x378f08)if(_0x37145e['hi']=(_0x37145e['hi']|(0x7f&this['buf'][this['pos']])<<0x7*_0x378f08+0x3)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x37145e;}else for(;_0x378f08<0x5;++_0x378f08){if(this['pos']>=this['len'])throw _0x10762f(this);if(_0x37145e['hi']=(_0x37145e['hi']|(0x7f&this['buf'][this['pos']])<<0x7*_0x378f08+0x3)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x37145e;}throw Error('invalid\x20varint\x20encoding');}function _0x31af5b(_0xc38ba4,_0x2992a4){return(_0xc38ba4[_0x2992a4-0x4]|_0xc38ba4[_0x2992a4-0x3]<<0x8|_0xc38ba4[_0x2992a4-0x2]<<0x10|_0xc38ba4[_0x2992a4-0x1]<<0x18)>>>0x0;}function _0x4b3a99(){if(this['pos']+0x8>this['len'])throw _0x10762f(this,0x8);return new _0x49ef02(_0x31af5b(this['buf'],this['pos']+=0x4),_0x31af5b(this['buf'],this['pos']+=0x4));}return _0x268082['create']=_0x33d834(),_0x268082['prototype']['_slice']=_0x1e49a6['Array']['prototype']['subarray']||_0x1e49a6['Array']['prototype']['slice'],_0x268082['prototype']['uint32']=(function(){var _0x508b49=0xffffffff;return function(){if(_0x508b49=(0x7f&this['buf'][this['pos']])>>>0x0,this['buf'][this['pos']++]<0x80)return _0x508b49;if(_0x508b49=(_0x508b49|(0x7f&this['buf'][this['pos']])<<0x7)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x508b49;if(_0x508b49=(_0x508b49|(0x7f&this['buf'][this['pos']])<<0xe)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x508b49;if(_0x508b49=(_0x508b49|(0x7f&this['buf'][this['pos']])<<0x15)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x508b49;if(_0x508b49=(_0x508b49|(0xf&this['buf'][this['pos']])<<0x1c)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x508b49;if((this['pos']+=0x5)>this['len'])throw this['pos']=this['len'],_0x10762f(this,0xa);return _0x508b49;};}()),_0x268082['prototype']['int32']=function(){return 0x0|this['uint32']();},_0x268082['prototype']['sint32']=function(){var _0x4c5291=this['uint32']();return _0x4c5291>>>0x1^-(0x1&_0x4c5291);},_0x268082['prototype']['bool']=function(){return 0x0!==this['uint32']();},_0x268082['prototype']['fixed32']=function(){if(this['pos']+0x4>this['len'])throw _0x10762f(this,0x4);return _0x31af5b(this['buf'],this['pos']+=0x4);},_0x268082['prototype']['sfixed32']=function(){if(this['pos']+0x4>this['len'])throw _0x10762f(this,0x4);return 0x0|_0x31af5b(this['buf'],this['pos']+=0x4);},_0x268082['prototype']['float']=function(){if(this['pos']+0x4>this['len'])throw _0x10762f(this,0x4);var _0x2cca52=_0x1e49a6['float']['readFloatLE'](this['buf'],this['pos']);return this['pos']+=0x4,_0x2cca52;},_0x268082['prototype']['double']=function(){if(this['pos']+0x8>this['len'])throw _0x10762f(this,0x4);var _0x5f1672=_0x1e49a6['float']['readDoubleLE'](this['buf'],this['pos']);return this['pos']+=0x8,_0x5f1672;},_0x268082['prototype']['bytes']=function(){var _0x534197=this['uint32'](),_0x11b3a3=this['pos'],_0x54e284=this['pos']+_0x534197;if(_0x54e284>this['len'])throw _0x10762f(this,_0x534197);if(this['pos']+=_0x534197,Array['isArray'](this['buf']))return this['buf']['slice'](_0x11b3a3,_0x54e284);if(_0x11b3a3===_0x54e284){var _0x3896dc=_0x1e49a6['Buffer'];return _0x3896dc?_0x3896dc['alloc'](0x0):new this['buf']['constructor'](0x0);}return this['_slice']['call'](this['buf'],_0x11b3a3,_0x54e284);},_0x268082['prototype']['string']=function(){var _0xbbc801=this['bytes']();return _0x4a049f['read'](_0xbbc801,0x0,_0xbbc801['length']);},_0x268082['prototype']['skip']=function(_0x291096){if('number'==typeof _0x291096){if(this['pos']+_0x291096>this['len'])throw _0x10762f(this,_0x291096);this['pos']+=_0x291096;}else do{if(this['pos']>=this['len'])throw _0x10762f(this);}while(0x80&this['buf'][this['pos']++]);return this;},_0x268082['prototype']['skipType']=function(_0x39c19a){switch(_0x39c19a){case 0x0:this['skip']();break;case 0x1:this['skip'](0x8);break;case 0x2:this['skip'](this['uint32']());break;case 0x3:for(;0x4!=(_0x39c19a=0x7&this['uint32']());)this['skipType'](_0x39c19a);break;case 0x5:this['skip'](0x4);break;default:throw Error('invalid\x20wire\x20type\x20'+_0x39c19a+'\x20at\x20offset\x20'+this['pos']);}return this;},_0x268082['_configure']=function(_0x1dbf7d){_0x2d1fb5=_0x1dbf7d,_0x268082['create']=_0x33d834(),_0x2d1fb5['_configure']();var _0x33a7d6=_0x1e49a6['Long']?'toLong':'toNumber';_0x1e49a6['merge'](_0x268082['prototype'],{'int64':function(){return _0x162eed['call'](this)[_0x33a7d6](!0x1);},'uint64':function(){return _0x162eed['call'](this)[_0x33a7d6](!0x0);},'sint64':function(){return _0x162eed['call'](this)['zzDecode']()[_0x33a7d6](!0x1);},'fixed64':function(){return _0x4b3a99['call'](this)[_0x33a7d6](!0x0);},'sfixed64':function(){return _0x4b3a99['call'](this)[_0x33a7d6](!0x1);}});},reader;}function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=0x1,reader_buffer=_0x19a082;var _0x382531=requireReader();(_0x19a082['prototype']=Object['create'](_0x382531['prototype']))['constructor']=_0x19a082;var _0xfcb31b=requireMinimal$1();function _0x19a082(_0x5ddba8){_0x382531['call'](this,_0x5ddba8);}return _0x19a082['_configure']=function(){_0xfcb31b['Buffer']&&(_0x19a082['prototype']['_slice']=_0xfcb31b['Buffer']['prototype']['slice']);},_0x19a082['prototype']['string']=function(){var _0x369d7f=this['uint32']();return this['buf']['utf8Slice']?this['buf']['utf8Slice'](this['pos'],this['pos']=Math['min'](this['pos']+_0x369d7f,this['len'])):this['buf']['toString']('utf-8',this['pos'],this['pos']=Math['min'](this['pos']+_0x369d7f,this['len']));},_0x19a082['_configure'](),reader_buffer;}var rpc={},service,hasRequiredService,hasRequiredRpc,roots,hasRequiredRoots,hasRequiredIndexMinimal,minimal,hasRequiredMinimal;function requireService(){if(hasRequiredService)return service;hasRequiredService=0x1,service=_0x2391c8;var _0x10d5cd=requireMinimal$1();function _0x2391c8(_0x2fdfdc,_0x1ed917,_0x5103ca){if('function'!=typeof _0x2fdfdc)throw TypeError('rpcImpl\x20must\x20be\x20a\x20function');_0x10d5cd['EventEmitter']['call'](this),this['rpcImpl']=_0x2fdfdc,this['requestDelimited']=Boolean(_0x1ed917),this['responseDelimited']=Boolean(_0x5103ca);}return(_0x2391c8['prototype']=Object['create'](_0x10d5cd['EventEmitter']['prototype']))['constructor']=_0x2391c8,_0x2391c8['prototype']['rpcCall']=function _0x350b42(_0x4e7a08,_0x39851a,_0xf1724,_0x3546a2,_0x39a839){if(!_0x3546a2)throw TypeError('request\x20must\x20be\x20specified');var _0x4112ab=this;if(!_0x39a839)return _0x10d5cd['asPromise'](_0x350b42,_0x4112ab,_0x4e7a08,_0x39851a,_0xf1724,_0x3546a2);if(_0x4112ab['rpcImpl'])try{return _0x4112ab['rpcImpl'](_0x4e7a08,_0x39851a[_0x4112ab['requestDelimited']?'encodeDelimited':'encode'](_0x3546a2)['finish'](),function(_0x5d8652,_0xf03bb0){if(_0x5d8652)return _0x4112ab['emit']('error',_0x5d8652,_0x4e7a08),_0x39a839(_0x5d8652);if(null!==_0xf03bb0){if(!(_0xf03bb0 instanceof _0xf1724))try{_0xf03bb0=_0xf1724[_0x4112ab['responseDelimited']?'decodeDelimited':'decode'](_0xf03bb0);}catch(_0x164390){return _0x4112ab['emit']('error',_0x164390,_0x4e7a08),_0x39a839(_0x164390);}return _0x4112ab['emit']('data',_0xf03bb0,_0x4e7a08),_0x39a839(null,_0xf03bb0);}_0x4112ab['end'](!0x0);});}catch(_0x28b06d){return _0x4112ab['emit']('error',_0x28b06d,_0x4e7a08),void setTimeout(function(){_0x39a839(_0x28b06d);},0x0);}else setTimeout(function(){_0x39a839(Error('already\x20ended'));},0x0);},_0x2391c8['prototype']['end']=function(_0x3ddf3a){return this['rpcImpl']&&(_0x3ddf3a||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 _0x51025c=indexMinimal;function _0x201b1c(){_0x51025c['util']['_configure'](),_0x51025c['Writer']['_configure'](_0x51025c['BufferWriter']),_0x51025c['Reader']['_configure'](_0x51025c['BufferReader']);}_0x51025c['build']='minimal',_0x51025c['Writer']=requireWriter(),_0x51025c['BufferWriter']=requireWriter_buffer(),_0x51025c['Reader']=requireReader(),_0x51025c['BufferReader']=requireReader_buffer(),_0x51025c['util']=requireMinimal$1(),_0x51025c['rpc']=requireRpc(),_0x51025c['roots']=requireRoots(),_0x51025c['configure']=_0x201b1c,_0x201b1c();}())),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'](_0x56cfe1=>{PACKET_TYPES_REVERSE[PACKET_TYPES[_0x56cfe1]]=_0x56cfe1;});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=_0x22593e=>'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x22593e):_0x22593e&&_0x22593e['buffer']instanceof ArrayBuffer,encodePacket=({type:_0x46a71f,data:_0x826f05},_0x4329c9,_0x327a01)=>withNativeBlob$1&&_0x826f05 instanceof Blob?_0x4329c9?_0x327a01(_0x826f05):encodeBlobAsBase64(_0x826f05,_0x327a01):withNativeArrayBuffer$2&&(_0x826f05 instanceof ArrayBuffer||isView$1(_0x826f05))?_0x4329c9?_0x327a01(_0x826f05):encodeBlobAsBase64(new Blob([_0x826f05]),_0x327a01):_0x327a01(PACKET_TYPES[_0x46a71f]+(_0x826f05||'')),encodeBlobAsBase64=(_0x289f70,_0x1aaa19)=>{const _0x18056e=new FileReader();return _0x18056e['onload']=function(){const _0x3661e6=_0x18056e['result']['split'](',')[0x1];_0x1aaa19('b'+(_0x3661e6||''));},_0x18056e['readAsDataURL'](_0x289f70);};function toArray(_0x3dc9c3){return _0x3dc9c3 instanceof Uint8Array?_0x3dc9c3:_0x3dc9c3 instanceof ArrayBuffer?new Uint8Array(_0x3dc9c3):new Uint8Array(_0x3dc9c3['buffer'],_0x3dc9c3['byteOffset'],_0x3dc9c3['byteLength']);}let TEXT_ENCODER;function encodePacketToBinary(_0xdd6995,_0x311b96){return withNativeBlob$1&&_0xdd6995['data']instanceof Blob?_0xdd6995['data']['arrayBuffer']()['then'](toArray)['then'](_0x311b96):withNativeArrayBuffer$2&&(_0xdd6995['data']instanceof ArrayBuffer||isView$1(_0xdd6995['data']))?_0x311b96(toArray(_0xdd6995['data'])):void encodePacket(_0xdd6995,!0x1,_0x47d6ab=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder()),_0x311b96(TEXT_ENCODER['encode'](_0x47d6ab));});}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=_0x4d4981=>{let _0x86b73f,_0xb70dd8,_0x85b66c,_0x23a103,_0x481a77,_0x360cd6=0.75*_0x4d4981['length'],_0x3a7923=_0x4d4981['length'],_0x456da0=0x0;'='===_0x4d4981[_0x4d4981['length']-0x1]&&(_0x360cd6--,'='===_0x4d4981[_0x4d4981['length']-0x2]&&_0x360cd6--);const _0x2e0b8d=new ArrayBuffer(_0x360cd6),_0x44a84a=new Uint8Array(_0x2e0b8d);for(_0x86b73f=0x0;_0x86b73f<_0x3a7923;_0x86b73f+=0x4)_0xb70dd8=lookup$1[_0x4d4981['charCodeAt'](_0x86b73f)],_0x85b66c=lookup$1[_0x4d4981['charCodeAt'](_0x86b73f+0x1)],_0x23a103=lookup$1[_0x4d4981['charCodeAt'](_0x86b73f+0x2)],_0x481a77=lookup$1[_0x4d4981['charCodeAt'](_0x86b73f+0x3)],_0x44a84a[_0x456da0++]=_0xb70dd8<<0x2|_0x85b66c>>0x4,_0x44a84a[_0x456da0++]=(0xf&_0x85b66c)<<0x4|_0x23a103>>0x2,_0x44a84a[_0x456da0++]=(0x3&_0x23a103)<<0x6|0x3f&_0x481a77;return _0x2e0b8d;},withNativeArrayBuffer$1='function'==typeof ArrayBuffer,decodePacket=(_0x48f2ab,_0x1cb45b)=>{if('string'!=typeof _0x48f2ab)return{'type':'message','data':mapBinary(_0x48f2ab,_0x1cb45b)};const _0x3f83c8=_0x48f2ab['charAt'](0x0);if('b'===_0x3f83c8)return{'type':'message','data':decodeBase64Packet(_0x48f2ab['substring'](0x1),_0x1cb45b)};return PACKET_TYPES_REVERSE[_0x3f83c8]?_0x48f2ab['length']>0x1?{'type':PACKET_TYPES_REVERSE[_0x3f83c8],'data':_0x48f2ab['substring'](0x1)}:{'type':PACKET_TYPES_REVERSE[_0x3f83c8]}:ERROR_PACKET;},decodeBase64Packet=(_0x347462,_0x121e4c)=>{if(withNativeArrayBuffer$1){const _0x5780bb=decode$1(_0x347462);return mapBinary(_0x5780bb,_0x121e4c);}return{'base64':!0x0,'data':_0x347462};},mapBinary=(_0x54192c,_0x5c424a)=>'blob'===_0x5c424a?_0x54192c instanceof Blob?_0x54192c:new Blob([_0x54192c]):_0x54192c instanceof ArrayBuffer?_0x54192c:_0x54192c['buffer'],SEPARATOR$2=String['fromCharCode'](0x1e),encodePayload=(_0x299a38,_0x4c986e)=>{const _0x2674ad=_0x299a38['length'],_0x1a0a5b=new Array(_0x2674ad);let _0x4c5845=0x0;_0x299a38['forEach']((_0x391fdb,_0x4cd1ea)=>{encodePacket(_0x391fdb,!0x1,_0x553598=>{_0x1a0a5b[_0x4cd1ea]=_0x553598,++_0x4c5845===_0x2674ad&&_0x4c986e(_0x1a0a5b['join'](SEPARATOR$2));});});},decodePayload=(_0x37361f,_0x17a8eb)=>{const _0x3740ec=_0x37361f['split'](SEPARATOR$2),_0x30c787=[];for(let _0x22001f=0x0;_0x22001f<_0x3740ec['length'];_0x22001f++){const _0x5ac267=decodePacket(_0x3740ec[_0x22001f],_0x17a8eb);if(_0x30c787['push'](_0x5ac267),'error'===_0x5ac267['type'])break;}return _0x30c787;};function createPacketEncoderStream(){return new TransformStream({'transform'(_0x22754e,_0x1fe72e){encodePacketToBinary(_0x22754e,_0xa95eda=>{const _0x16bccf=_0xa95eda['length'];let _0x3d1fec;if(_0x16bccf<0x7e)_0x3d1fec=new Uint8Array(0x1),new DataView(_0x3d1fec['buffer'])['setUint8'](0x0,_0x16bccf);else{if(_0x16bccf<0x10000){_0x3d1fec=new Uint8Array(0x3);const _0x57b7ab=new DataView(_0x3d1fec['buffer']);_0x57b7ab['setUint8'](0x0,0x7e),_0x57b7ab['setUint16'](0x1,_0x16bccf);}else{_0x3d1fec=new Uint8Array(0x9);const _0x3563cc=new DataView(_0x3d1fec['buffer']);_0x3563cc['setUint8'](0x0,0x7f),_0x3563cc['setBigUint64'](0x1,BigInt(_0x16bccf));}}_0x22754e['data']&&'string'!=typeof _0x22754e['data']&&(_0x3d1fec[0x0]|=0x80),_0x1fe72e['enqueue'](_0x3d1fec),_0x1fe72e['enqueue'](_0xa95eda);});}});}let TEXT_DECODER;function totalLength(_0x350db4){return _0x350db4['reduce']((_0x37ff3d,_0x6c1e6d)=>_0x37ff3d+_0x6c1e6d['length'],0x0);}function concatChunks(_0x20e3cf,_0x135ea9){if(_0x20e3cf[0x0]['length']===_0x135ea9)return _0x20e3cf['shift']();const _0x4b035a=new Uint8Array(_0x135ea9);let _0x51a40b=0x0;for(let _0x413523=0x0;_0x413523<_0x135ea9;_0x413523++)_0x4b035a[_0x413523]=_0x20e3cf[0x0][_0x51a40b++],_0x51a40b===_0x20e3cf[0x0]['length']&&(_0x20e3cf['shift'](),_0x51a40b=0x0);return _0x20e3cf['length']&&_0x51a40b<_0x20e3cf[0x0]['length']&&(_0x20e3cf[0x0]=_0x20e3cf[0x0]['slice'](_0x51a40b)),_0x4b035a;}function createPacketDecoderStream(_0x1b40a,_0x7cd89e){TEXT_DECODER||(TEXT_DECODER=new TextDecoder());const _0x36fd3b=[];let _0x22be5e=0x0,_0x118579=-0x1,_0x151c1e=!0x1;return new TransformStream({'transform'(_0x19867e,_0x5ef828){for(_0x36fd3b['push'](_0x19867e);;){if(0x0===_0x22be5e){if(totalLength(_0x36fd3b)<0x1)break;const _0x4cbcc2=concatChunks(_0x36fd3b,0x1);_0x151c1e=!(0x80&~_0x4cbcc2[0x0]),_0x118579=0x7f&_0x4cbcc2[0x0],_0x22be5e=_0x118579<0x7e?0x3:0x7e===_0x118579?0x1:0x2;}else{if(0x1===_0x22be5e){if(totalLength(_0x36fd3b)<0x2)break;const _0x23b610=concatChunks(_0x36fd3b,0x2);_0x118579=new DataView(_0x23b610['buffer'],_0x23b610['byteOffset'],_0x23b610['length'])['getUint16'](0x0),_0x22be5e=0x3;}else{if(0x2===_0x22be5e){if(totalLength(_0x36fd3b)<0x8)break;const _0x2328d7=concatChunks(_0x36fd3b,0x8),_0x7875ab=new DataView(_0x2328d7['buffer'],_0x2328d7['byteOffset'],_0x2328d7['length']),_0x2e575a=_0x7875ab['getUint32'](0x0);if(_0x2e575a>Math['pow'](0x2,0x15)-0x1){_0x5ef828['enqueue'](ERROR_PACKET);break;}_0x118579=_0x2e575a*Math['pow'](0x2,0x20)+_0x7875ab['getUint32'](0x4),_0x22be5e=0x3;}else{if(totalLength(_0x36fd3b)<_0x118579)break;const _0x405240=concatChunks(_0x36fd3b,_0x118579);_0x5ef828['enqueue'](decodePacket(_0x151c1e?_0x405240:TEXT_DECODER['decode'](_0x405240),_0x7cd89e)),_0x22be5e=0x0;}}}if(0x0===_0x118579||_0x118579>_0x1b40a){_0x5ef828['enqueue'](ERROR_PACKET);break;}}}});}const protocol=0x4;function Emitter(_0x37c312){if(_0x37c312)return mixin(_0x37c312);}function mixin(_0x5add5a){for(var _0x4ccfc5 in Emitter['prototype'])_0x5add5a[_0x4ccfc5]=Emitter['prototype'][_0x4ccfc5];return _0x5add5a;}Emitter['prototype']['on']=Emitter['prototype']['addEventListener']=function(_0x3ab226,_0xef5aa5){return this['_callbacks']=this['_callbacks']||{},(this['_callbacks']['$'+_0x3ab226]=this['_callbacks']['$'+_0x3ab226]||[])['push'](_0xef5aa5),this;},Emitter['prototype']['once']=function(_0x68fa6b,_0x2651ca){function _0x13b81e(){this['off'](_0x68fa6b,_0x13b81e),_0x2651ca['apply'](this,arguments);}return _0x13b81e['fn']=_0x2651ca,this['on'](_0x68fa6b,_0x13b81e),this;},Emitter['prototype']['off']=Emitter['prototype']['removeListener']=Emitter['prototype']['removeAllListeners']=Emitter['prototype']['removeEventListener']=function(_0x3c1018,_0x4cecfe){if(this['_callbacks']=this['_callbacks']||{},0x0==arguments['length'])return this['_callbacks']={},this;var _0x2156b9,_0x5ebd09=this['_callbacks']['$'+_0x3c1018];if(!_0x5ebd09)return this;if(0x1==arguments['length'])return delete this['_callbacks']['$'+_0x3c1018],this;for(var _0x286d57=0x0;_0x286d57<_0x5ebd09['length'];_0x286d57++)if((_0x2156b9=_0x5ebd09[_0x286d57])===_0x4cecfe||_0x2156b9['fn']===_0x4cecfe){_0x5ebd09['splice'](_0x286d57,0x1);break;}return 0x0===_0x5ebd09['length']&&delete this['_callbacks']['$'+_0x3c1018],this;},Emitter['prototype']['emit']=function(_0xe83511){this['_callbacks']=this['_callbacks']||{};for(var _0x2e7dc9=new Array(arguments['length']-0x1),_0x451c44=this['_callbacks']['$'+_0xe83511],_0x21d6c6=0x1;_0x21d6c6<arguments['length'];_0x21d6c6++)_0x2e7dc9[_0x21d6c6-0x1]=arguments[_0x21d6c6];if(_0x451c44){_0x21d6c6=0x0;for(var _0x3a8de3=(_0x451c44=_0x451c44['slice'](0x0))['length'];_0x21d6c6<_0x3a8de3;++_0x21d6c6)_0x451c44[_0x21d6c6]['apply'](this,_0x2e7dc9);}return this;},Emitter['prototype']['emitReserved']=Emitter['prototype']['emit'],Emitter['prototype']['listeners']=function(_0x4e765d){return this['_callbacks']=this['_callbacks']||{},this['_callbacks']['$'+_0x4e765d]||[];},Emitter['prototype']['hasListeners']=function(_0x49d03a){return!!this['listeners'](_0x49d03a)['length'];};const globalThisShim='undefined'!=typeof self?self:'undefined'!=typeof window?window:Function('return\x20this')();function pick$1(_0x3d9b5d,..._0x175061){return _0x175061['reduce']((_0x512b0b,_0x42f92a)=>(_0x3d9b5d['hasOwnProperty'](_0x42f92a)&&(_0x512b0b[_0x42f92a]=_0x3d9b5d[_0x42f92a]),_0x512b0b),{});}const NATIVE_SET_TIMEOUT=globalThisShim['setTimeout'],NATIVE_CLEAR_TIMEOUT=globalThisShim['clearTimeout'];function installTimerFunctions(_0x347422,_0x3eb0dc){_0x3eb0dc['useNativeTimers']?(_0x347422['setTimeoutFn']=NATIVE_SET_TIMEOUT['bind'](globalThisShim),_0x347422['clearTimeoutFn']=NATIVE_CLEAR_TIMEOUT['bind'](globalThisShim)):(_0x347422['setTimeoutFn']=globalThisShim['setTimeout']['bind'](globalThisShim),_0x347422['clearTimeoutFn']=globalThisShim['clearTimeout']['bind'](globalThisShim));}const BASE64_OVERHEAD=1.33;function byteLength(_0x46fd56){return'string'==typeof _0x46fd56?utf8Length(_0x46fd56):Math['ceil']((_0x46fd56['byteLength']||_0x46fd56['size'])*BASE64_OVERHEAD);}function utf8Length(_0x91635d){let _0x2f8ed3=0x0,_0x13a259=0x0;for(let _0xca06a7=0x0,_0x363c37=_0x91635d['length'];_0xca06a7<_0x363c37;_0xca06a7++)_0x2f8ed3=_0x91635d['charCodeAt'](_0xca06a7),_0x2f8ed3<0x80?_0x13a259+=0x1:_0x2f8ed3<0x800?_0x13a259+=0x2:_0x2f8ed3<0xd800||_0x2f8ed3>=0xe000?_0x13a259+=0x3:(_0xca06a7++,_0x13a259+=0x4);return _0x13a259;}function encode$1(_0x294d6a){let _0xa3ddd6='';for(let _0x48fdec in _0x294d6a)_0x294d6a['hasOwnProperty'](_0x48fdec)&&(_0xa3ddd6['length']&&(_0xa3ddd6+='&'),_0xa3ddd6+=encodeURIComponent(_0x48fdec)+'='+encodeURIComponent(_0x294d6a[_0x48fdec]));return _0xa3ddd6;}function decode(_0x29f87c){let _0x1fffe0={},_0x4e5d3e=_0x29f87c['split']('&');for(let _0x23490a=0x0,_0x32967a=_0x4e5d3e['length'];_0x23490a<_0x32967a;_0x23490a++){let _0x5dee13=_0x4e5d3e[_0x23490a]['split']('=');_0x1fffe0[decodeURIComponent(_0x5dee13[0x0])]=decodeURIComponent(_0x5dee13[0x1]);}return _0x1fffe0;}class TransportError extends Error{constructor(_0x21afed,_0x708f56,_0x1565b8){super(_0x21afed),this['description']=_0x708f56,this['context']=_0x1565b8,this['type']='TransportError';}}class Transport extends Emitter{constructor(_0x23c027){super(),this['writable']=!0x1,installTimerFunctions(this,_0x23c027),this['opts']=_0x23c027,this['query']=_0x23c027['query'],this['socket']=_0x23c027['socket'];}['onError'](_0x2506d3,_0x38af6b,_0x1da93a){return super['emitReserved']('error',new TransportError(_0x2506d3,_0x38af6b,_0x1da93a)),this;}['open'](){return this['readyState']='opening',this['doOpen'](),this;}['close'](){return'opening'!==this['readyState']&&'open'!==this['readyState']||(this['doClose'](),this['onClose']()),this;}['send'](_0x5bd991){'open'===this['readyState']&&this['write'](_0x5bd991);}['onOpen'](){this['readyState']='open',this['writable']=!0x0,super['emitReserved']('open');}['onData'](_0x11c692){const _0x5c23c7=decodePacket(_0x11c692,this['socket']['binaryType']);this['onPacket'](_0x5c23c7);}['onPacket'](_0xf32302){super['emitReserved']('packet',_0xf32302);}['onClose'](_0x1ae50a){this['readyState']='closed',super['emitReserved']('close',_0x1ae50a);}['pause'](_0x219d42){}['createUri'](_0x46c806,_0x512cd9={}){return _0x46c806+'://'+this['_hostname']()+this['_port']()+this['opts']['path']+this['_query'](_0x512cd9);}['_hostname'](){const _0x39bcd1=this['opts']['hostname'];return-0x1===_0x39bcd1['indexOf'](':')?_0x39bcd1:'['+_0x39bcd1+']';}['_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'](_0x1131e5){const _0x3e7a68=encode$1(_0x1131e5);return _0x3e7a68['length']?'?'+_0x3e7a68:'';}}const alphabet='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'['split'](''),length=0x40,map={};let seed=0x0,i$3=0x0,prev;function encode(_0x55908d){let _0x245f79='';do{_0x245f79=alphabet[_0x55908d%length]+_0x245f79,_0x55908d=Math['floor'](_0x55908d/length);}while(_0x55908d>0x0);return _0x245f79;}function yeast(){const _0x57dab0=encode(+new Date());return _0x57dab0!==prev?(seed=0x0,prev=_0x57dab0):_0x57dab0+'.'+encode(seed++);}for(;i$3<length;i$3++)map[alphabet[i$3]]=i$3;let value=!0x1;try{value='undefined'!=typeof XMLHttpRequest&&'withCredentials'in new XMLHttpRequest();}catch(_0x33b6a5){}const hasCORS=value;function XHR(_0x1d5ac6){const _0x4fe07a=_0x1d5ac6['xdomain'];try{if('undefined'!=typeof XMLHttpRequest&&(!_0x4fe07a||hasCORS))return new XMLHttpRequest();}catch(_0x5cc9f0){}if(!_0x4fe07a)try{return new globalThisShim[(['Active']['concat']('Object')['join']('X'))]('Microsoft.XMLHTTP');}catch(_0x5bec33){}}function createCookieJar(){}function empty(){}const hasXHR2=null!=new XHR({'xdomain':!0x1})['responseType'];class Polling extends Transport{constructor(_0x39d6a3){if(super(_0x39d6a3),this['polling']=!0x1,'undefined'!=typeof location){const _0x46b8ce='https:'===location['protocol'];let _0x88fea1=location['port'];_0x88fea1||(_0x88fea1=_0x46b8ce?'443':'80'),this['xd']='undefined'!=typeof location&&_0x39d6a3['hostname']!==location['hostname']||_0x88fea1!==_0x39d6a3['port'];}const _0xb8dde7=_0x39d6a3&&_0x39d6a3['forceBase64'];this['supportsBinary']=hasXHR2&&!_0xb8dde7,this['opts']['withCredentials']&&(this['cookieJar']=createCookieJar());}get['name'](){return'polling';}['doOpen'](){this['poll']();}['pause'](_0x1c70d9){this['readyState']='pausing';const _0x17e9ce=()=>{this['readyState']='paused',_0x1c70d9();};if(this['polling']||!this['writable']){let _0x26fc49=0x0;this['polling']&&(_0x26fc49++,this['once']('pollComplete',function(){--_0x26fc49||_0x17e9ce();})),this['writable']||(_0x26fc49++,this['once']('drain',function(){--_0x26fc49||_0x17e9ce();}));}else _0x17e9ce();}['poll'](){this['polling']=!0x0,this['doPoll'](),this['emitReserved']('poll');}['onData'](_0x4480f){decodePayload(_0x4480f,this['socket']['binaryType'])['forEach'](_0x1069e4=>{if('opening'===this['readyState']&&'open'===_0x1069e4['type']&&this['onOpen'](),'close'===_0x1069e4['type'])return this['onClose']({'description':'transport\x20closed\x20by\x20the\x20server'}),!0x1;this['onPacket'](_0x1069e4);}),'closed'!==this['readyState']&&(this['polling']=!0x1,this['emitReserved']('pollComplete'),'open'===this['readyState']&&this['poll']());}['doClose'](){const _0x1194d6=()=>{this['write']([{'type':'close'}]);};'open'===this['readyState']?_0x1194d6():this['once']('open',_0x1194d6);}['write'](_0x186a9c){this['writable']=!0x1,encodePayload(_0x186a9c,_0xbda188=>{this['doWrite'](_0xbda188,()=>{this['writable']=!0x0,this['emitReserved']('drain');});});}['uri'](){const _0x2fd50a=this['opts']['secure']?'https':'http',_0xa46e9c=this['query']||{};return!0x1!==this['opts']['timestampRequests']&&(_0xa46e9c[this['opts']['timestampParam']]=yeast()),this['supportsBinary']||_0xa46e9c['sid']||(_0xa46e9c['b64']=0x1),this['createUri'](_0x2fd50a,_0xa46e9c);}['request'](_0x1ba341={}){return Object['assign'](_0x1ba341,{'xd':this['xd'],'cookieJar':this['cookieJar']},this['opts']),new Request(this['uri'](),_0x1ba341);}['doWrite'](_0x3edb50,_0x8115c6){const _0x54618f=this['request']({'method':'POST','data':_0x3edb50});_0x54618f['on']('success',_0x8115c6),_0x54618f['on']('error',(_0x546740,_0x5a0dd7)=>{this['onError']('xhr\x20post\x20error',_0x546740,_0x5a0dd7);});}['doPoll'](){const _0x26e067=this['request']();_0x26e067['on']('data',this['onData']['bind'](this)),_0x26e067['on']('error',(_0x3e84e6,_0x458d0c)=>{this['onError']('xhr\x20poll\x20error',_0x3e84e6,_0x458d0c);}),this['pollXhr']=_0x26e067;}}class Request extends Emitter{constructor(_0x5c1915,_0x389b70){super(),installTimerFunctions(this,_0x389b70),this['opts']=_0x389b70,this['method']=_0x389b70['method']||'GET',this['uri']=_0x5c1915,this['data']=void 0x0!==_0x389b70['data']?_0x389b70['data']:null,this['create']();}['create'](){var _0x4f85f5;const _0x4b9a4f=pick$1(this['opts'],'agent','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','autoUnref');_0x4b9a4f['xdomain']=!!this['opts']['xd'];const _0x429cef=this['xhr']=new XHR(_0x4b9a4f);try{_0x429cef['open'](this['method'],this['uri'],!0x0);try{if(this['opts']['extraHeaders']){_0x429cef['setDisableHeaderCheck']&&_0x429cef['setDisableHeaderCheck'](!0x0);for(let _0x451e50 in this['opts']['extraHeaders'])this['opts']['extraHeaders']['hasOwnProperty'](_0x451e50)&&_0x429cef['setRequestHeader'](_0x451e50,this['opts']['extraHeaders'][_0x451e50]);}}catch(_0x5596ca){}if('POST'===this['method'])try{_0x429cef['setRequestHeader']('Content-type','text/plain;charset=UTF-8');}catch(_0x64033b){}try{_0x429cef['setRequestHeader']('Accept','*/*');}catch(_0xe3ff3c){}null===(_0x4f85f5=this['opts']['cookieJar'])||void 0x0===_0x4f85f5||_0x4f85f5['addCookies'](_0x429cef),'withCredentials'in _0x429cef&&(_0x429cef['withCredentials']=this['opts']['withCredentials']),this['opts']['requestTimeout']&&(_0x429cef['timeout']=this['opts']['requestTimeout']),_0x429cef['onreadystatechange']=()=>{var _0x2f2bf4;0x3===_0x429cef['readyState']&&(null===(_0x2f2bf4=this['opts']['cookieJar'])||void 0x0===_0x2f2bf4||_0x2f2bf4['parseCookies'](_0x429cef)),0x4===_0x429cef['readyState']&&(0xc8===_0x429cef['status']||0x4c7===_0x429cef['status']?this['onLoad']():this['setTimeoutFn'](()=>{this['onError']('number'==typeof _0x429cef['status']?_0x429cef['status']:0x0);},0x0));},_0x429cef['send'](this['data']);}catch(_0x12e370){return void this['setTimeoutFn'](()=>{this['onError'](_0x12e370);},0x0);}'undefined'!=typeof document&&(this['index']=Request['requestsCount']++,Request['requests'][this['index']]=this);}['onError'](_0x4a0023){this['emitReserved']('error',_0x4a0023,this['xhr']),this['cleanup'](!0x0);}['cleanup'](_0x5be061){if(void 0x0!==this['xhr']&&null!==this['xhr']){if(this['xhr']['onreadystatechange']=empty,_0x5be061)try{this['xhr']['abort']();}catch(_0x415537){}'undefined'!=typeof document&&delete Request['requests'][this['index']],this['xhr']=null;}}['onLoad'](){const _0xe112b8=this['xhr']['responseText'];null!==_0xe112b8&&(this['emitReserved']('data',_0xe112b8),this['emitReserved']('success'),this['cleanup']());}['abort'](){this['cleanup']();}}if(Request['requestsCount']=0x0,Request['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 _0x42ac83 in Request['requests'])Request['requests']['hasOwnProperty'](_0x42ac83)&&Request['requests'][_0x42ac83]['abort']();}const nextTick='function'==typeof Promise&&'function'==typeof Promise['resolve']?_0x1a3241=>Promise['resolve']()['then'](_0x1a3241):(_0x3a7394,_0x56c94f)=>_0x56c94f(_0x3a7394,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(_0x3f8437){super(_0x3f8437),this['supportsBinary']=!_0x3f8437['forceBase64'];}get['name'](){return'websocket';}['doOpen'](){if(!this['check']())return;const _0x4c3828=this['uri'](),_0x1e53f3=this['opts']['protocols'],_0x12f35b=isReactNative?{}:pick$1(this['opts'],'agent','perMessageDeflate','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','localAddress','protocolVersion','origin','maxPayload','family','checkServerIdentity');this['opts']['extraHeaders']&&(_0x12f35b['headers']=this['opts']['extraHeaders']);try{this['ws']=usingBrowserWebSocket&&!isReactNative?_0x1e53f3?new WebSocket$2(_0x4c3828,_0x1e53f3):new WebSocket$2(_0x4c3828):new WebSocket$2(_0x4c3828,_0x1e53f3,_0x12f35b);}catch(_0x24cf0e){return this['emitReserved']('error',_0x24cf0e);}this['ws']['binaryType']=this['socket']['binaryType'],this['addEventListeners']();}['addEventListeners'](){this['ws']['onopen']=()=>{this['opts']['autoUnref']&&this['ws']['_socket']['unref'](),this['onOpen']();},this['ws']['onclose']=_0x1d7507=>this['onClose']({'description':'websocket\x20connection\x20closed','context':_0x1d7507}),this['ws']['onmessage']=_0x2a8209=>this['onData'](_0x2a8209['data']),this['ws']['onerror']=_0x26cbc7=>this['onError']('websocket\x20error',_0x26cbc7);}['write'](_0x4a5f59){this['writable']=!0x1;for(let _0x5e15e5=0x0;_0x5e15e5<_0x4a5f59['length'];_0x5e15e5++){const _0x3c01f3=_0x4a5f59[_0x5e15e5],_0x164d69=_0x5e15e5===_0x4a5f59['length']-0x1;encodePacket(_0x3c01f3,this['supportsBinary'],_0x2ebb29=>{try{usingBrowserWebSocket&&this['ws']['send'](_0x2ebb29);}catch(_0x18f432){}_0x164d69&&nextTick(()=>{this['writable']=!0x0,this['emitReserved']('drain');},this['setTimeoutFn']);});}}['doClose'](){void 0x0!==this['ws']&&(this['ws']['close'](),this['ws']=null);}['uri'](){const _0x4a4daa=this['opts']['secure']?'wss':'ws',_0x55d62c=this['query']||{};return this['opts']['timestampRequests']&&(_0x55d62c[this['opts']['timestampParam']]=yeast()),this['supportsBinary']||(_0x55d62c['b64']=0x1),this['createUri'](_0x4a4daa,_0x55d62c);}['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'](_0x4cf213=>{this['onError']('webtransport\x20error',_0x4cf213);}),this['transport']['ready']['then'](()=>{this['transport']['createBidirectionalStream']()['then'](_0x3c6c7f=>{const _0x109e93=createPacketDecoderStream(Number['MAX_SAFE_INTEGER'],this['socket']['binaryType']),_0x1c67eb=_0x3c6c7f['readable']['pipeThrough'](_0x109e93)['getReader'](),_0x284687=createPacketEncoderStream();_0x284687['readable']['pipeTo'](_0x3c6c7f['writable']),this['writer']=_0x284687['writable']['getWriter']();const _0x4b3981=()=>{_0x1c67eb['read']()['then'](({done:_0x5aacd5,value:_0x22cd12})=>{_0x5aacd5||(this['onPacket'](_0x22cd12),_0x4b3981());})['catch'](_0xb2c553=>{});};_0x4b3981();const _0x230ba3={'type':'open'};this['query']['sid']&&(_0x230ba3['data']='{\x22sid\x22:\x22'+this['query']['sid']+'\x22}'),this['writer']['write'](_0x230ba3)['then'](()=>this['onOpen']());});}));}['write'](_0xa6c8b5){this['writable']=!0x1;for(let _0x3eff8e=0x0;_0x3eff8e<_0xa6c8b5['length'];_0x3eff8e++){const _0x467602=_0xa6c8b5[_0x3eff8e],_0x313a83=_0x3eff8e===_0xa6c8b5['length']-0x1;this['writer']['write'](_0x467602)['then'](()=>{_0x313a83&&nextTick(()=>{this['writable']=!0x0,this['emitReserved']('drain');},this['setTimeoutFn']);});}}['doClose'](){var _0x43260f;null===(_0x43260f=this['transport'])||void 0x0===_0x43260f||_0x43260f['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(_0x579b65){if(_0x579b65['length']>0x7d0)throw'URI\x20too\x20long';const _0x889993=_0x579b65,_0x11f779=_0x579b65['indexOf']('['),_0x1d691b=_0x579b65['indexOf'](']');-0x1!=_0x11f779&&-0x1!=_0x1d691b&&(_0x579b65=_0x579b65['substring'](0x0,_0x11f779)+_0x579b65['substring'](_0x11f779,_0x1d691b)['replace'](/:/g,';')+_0x579b65['substring'](_0x1d691b,_0x579b65['length']));let _0xdb53f2=re['exec'](_0x579b65||''),_0x4e0c22={},_0x132654=0xe;for(;_0x132654--;)_0x4e0c22[parts[_0x132654]]=_0xdb53f2[_0x132654]||'';return-0x1!=_0x11f779&&-0x1!=_0x1d691b&&(_0x4e0c22['source']=_0x889993,_0x4e0c22['host']=_0x4e0c22['host']['substring'](0x1,_0x4e0c22['host']['length']-0x1)['replace'](/;/g,':'),_0x4e0c22['authority']=_0x4e0c22['authority']['replace']('[','')['replace'](']','')['replace'](/;/g,':'),_0x4e0c22['ipv6uri']=!0x0),_0x4e0c22['pathNames']=pathNames(_0x4e0c22,_0x4e0c22['path']),_0x4e0c22['queryKey']=queryKey(_0x4e0c22,_0x4e0c22['query']),_0x4e0c22;}function pathNames(_0x2d1830,_0x12941c){const _0x107493=_0x12941c['replace'](/\/{2,9}/g,'/')['split']('/');return'/'!=_0x12941c['slice'](0x0,0x1)&&0x0!==_0x12941c['length']||_0x107493['splice'](0x0,0x1),'/'==_0x12941c['slice'](-0x1)&&_0x107493['splice'](_0x107493['length']-0x1,0x1),_0x107493;}function queryKey(_0x597a32,_0x15a9ee){const _0x3d9a81={};return _0x15a9ee['replace'](/(?:^|&)([^&=]*)=?([^&]*)/g,function(_0x3e8cb9,_0x109b04,_0x42123b){_0x109b04&&(_0x3d9a81[_0x109b04]=_0x42123b);}),_0x3d9a81;}let Socket$1=class e extends Emitter{constructor(_0x2f5577,_0x12bf4e={}){super(),this['binaryType']=defaultBinaryType,this['writeBuffer']=[],_0x2f5577&&'object'==typeof _0x2f5577&&(_0x12bf4e=_0x2f5577,_0x2f5577=null),_0x2f5577?(_0x2f5577=parse(_0x2f5577),_0x12bf4e['hostname']=_0x2f5577['host'],_0x12bf4e['secure']='https'===_0x2f5577['protocol']||'wss'===_0x2f5577['protocol'],_0x12bf4e['port']=_0x2f5577['port'],_0x2f5577['query']&&(_0x12bf4e['query']=_0x2f5577['query'])):_0x12bf4e['host']&&(_0x12bf4e['hostname']=parse(_0x12bf4e['host'])['host']),installTimerFunctions(this,_0x12bf4e),this['secure']=null!=_0x12bf4e['secure']?_0x12bf4e['secure']:'undefined'!=typeof location&&'https:'===location['protocol'],_0x12bf4e['hostname']&&!_0x12bf4e['port']&&(_0x12bf4e['port']=this['secure']?'443':'80'),this['hostname']=_0x12bf4e['hostname']||('undefined'!=typeof location?location['hostname']:'localhost'),this['port']=_0x12bf4e['port']||('undefined'!=typeof location&&location['port']?location['port']:this['secure']?'443':'80'),this['transports']=_0x12bf4e['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},_0x12bf4e),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'](_0x323a1f){const _0xce73df=Object['assign']({},this['opts']['query']);_0xce73df['EIO']=protocol,_0xce73df['transport']=_0x323a1f,this['id']&&(_0xce73df['sid']=this['id']);const _0x173ce1=Object['assign']({},this['opts'],{'query':_0xce73df,'socket':this,'hostname':this['hostname'],'secure':this['secure'],'port':this['port']},this['opts']['transportOptions'][_0x323a1f]);return new transports[_0x323a1f](_0x173ce1);}['open'](){let _0x1d1af1;if(this['opts']['rememberUpgrade']&&e['priorWebsocketSuccess']&&-0x1!==this['transports']['indexOf']('websocket'))_0x1d1af1='websocket';else{if(0x0===this['transports']['length'])return void this['setTimeoutFn'](()=>{this['emitReserved']('error','No\x20transports\x20available');},0x0);_0x1d1af1=this['transports'][0x0];}this['readyState']='opening';try{_0x1d1af1=this['createTransport'](_0x1d1af1);}catch(_0x4be87c){return this['transports']['shift'](),void this['open']();}_0x1d1af1['open'](),this['setTransport'](_0x1d1af1);}['setTransport'](_0x52b045){this['transport']&&this['transport']['removeAllListeners'](),this['transport']=_0x52b045,_0x52b045['on']('drain',this['onDrain']['bind'](this))['on']('packet',this['onPacket']['bind'](this))['on']('error',this['onError']['bind'](this))['on']('close',_0x2c71dd=>this['onClose']('transport\x20close',_0x2c71dd));}['probe'](_0x5ab0cf){let _0x180fcc=this['createTransport'](_0x5ab0cf),_0x188a45=!0x1;e['priorWebsocketSuccess']=!0x1;const _0x20619b=()=>{_0x188a45||(_0x180fcc['send']([{'type':'ping','data':'probe'}]),_0x180fcc['once']('packet',_0x45b4ce=>{if(!_0x188a45){if('pong'===_0x45b4ce['type']&&'probe'===_0x45b4ce['data']){if(this['upgrading']=!0x0,this['emitReserved']('upgrading',_0x180fcc),!_0x180fcc)return;e['priorWebsocketSuccess']='websocket'===_0x180fcc['name'],this['transport']['pause'](()=>{_0x188a45||'closed'!==this['readyState']&&(_0x9761a9(),this['setTransport'](_0x180fcc),_0x180fcc['send']([{'type':'upgrade'}]),this['emitReserved']('upgrade',_0x180fcc),_0x180fcc=null,this['upgrading']=!0x1,this['flush']());});}else{const _0x2b2070=new Error('probe\x20error');_0x2b2070['transport']=_0x180fcc['name'],this['emitReserved']('upgradeError',_0x2b2070);}}}));};function _0x3d032e(){_0x188a45||(_0x188a45=!0x0,_0x9761a9(),_0x180fcc['close'](),_0x180fcc=null);}const _0x3379d5=_0x2360a6=>{const _0x2c6324=new Error('probe\x20error:\x20'+_0x2360a6);_0x2c6324['transport']=_0x180fcc['name'],_0x3d032e(),this['emitReserved']('upgradeError',_0x2c6324);};function _0x2d8c17(){_0x3379d5('transport\x20closed');}function _0x4709eb(){_0x3379d5('socket\x20closed');}function _0x220b3d(_0xe4f014){_0x180fcc&&_0xe4f014['name']!==_0x180fcc['name']&&_0x3d032e();}const _0x9761a9=()=>{_0x180fcc['removeListener']('open',_0x20619b),_0x180fcc['removeListener']('error',_0x3379d5),_0x180fcc['removeListener']('close',_0x2d8c17),this['off']('close',_0x4709eb),this['off']('upgrading',_0x220b3d);};_0x180fcc['once']('open',_0x20619b),_0x180fcc['once']('error',_0x3379d5),_0x180fcc['once']('close',_0x2d8c17),this['once']('close',_0x4709eb),this['once']('upgrading',_0x220b3d),-0x1!==this['upgrades']['indexOf']('webtransport')&&'webtransport'!==_0x5ab0cf?this['setTimeoutFn'](()=>{_0x188a45||_0x180fcc['open']();},0xc8):_0x180fcc['open']();}['onOpen'](){if(this['readyState']='open',e['priorWebsocketSuccess']='websocket'===this['transport']['name'],this['emitReserved']('open'),this['flush'](),'open'===this['readyState']&&this['opts']['upgrade']){let _0x128b25=0x0;const _0x1e1237=this['upgrades']['length'];for(;_0x128b25<_0x1e1237;_0x128b25++)this['probe'](this['upgrades'][_0x128b25]);}}['onPacket'](_0x3cf42e){if('opening'===this['readyState']||'open'===this['readyState']||'closing'===this['readyState'])switch(this['emitReserved']('packet',_0x3cf42e),this['emitReserved']('heartbeat'),this['resetPingTimeout'](),_0x3cf42e['type']){case'open':this['onHandshake'](JSON['parse'](_0x3cf42e['data']));break;case'ping':this['sendPacket']('pong'),this['emitReserved']('ping'),this['emitReserved']('pong');break;case'error':const _0x5eab34=new Error('server\x20error');_0x5eab34['code']=_0x3cf42e['data'],this['onError'](_0x5eab34);break;case'message':this['emitReserved']('data',_0x3cf42e['data']),this['emitReserved']('message',_0x3cf42e['data']);}}['onHandshake'](_0x237bd){this['emitReserved']('handshake',_0x237bd),this['id']=_0x237bd['sid'],this['transport']['query']['sid']=_0x237bd['sid'],this['upgrades']=this['filterUpgrades'](_0x237bd['upgrades']),this['pingInterval']=_0x237bd['pingInterval'],this['pingTimeout']=_0x237bd['pingTimeout'],this['maxPayload']=_0x237bd['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 _0x3cacc6=this['getWritablePackets']();this['transport']['send'](_0x3cacc6),this['prevBufferLen']=_0x3cacc6['length'],this['emitReserved']('flush');}}['getWritablePackets'](){if(!(this['maxPayload']&&'polling'===this['transport']['name']&&this['writeBuffer']['length']>0x1))return this['writeBuffer'];let _0xb9853=0x1;for(let _0x48b47d=0x0;_0x48b47d<this['writeBuffer']['length'];_0x48b47d++){const _0x32c798=this['writeBuffer'][_0x48b47d]['data'];if(_0x32c798&&(_0xb9853+=byteLength(_0x32c798)),_0x48b47d>0x0&&_0xb9853>this['maxPayload'])return this['writeBuffer']['slice'](0x0,_0x48b47d);_0xb9853+=0x2;}return this['writeBuffer'];}['write'](_0x425aed,_0x3e595b,_0x3452b8){return this['sendPacket']('message',_0x425aed,_0x3e595b,_0x3452b8),this;}['send'](_0x565c04,_0x366162,_0x38fd9f){return this['sendPacket']('message',_0x565c04,_0x366162,_0x38fd9f),this;}['sendPacket'](_0x9ae99b,_0x153ecc,_0x4978b7,_0x306510){if('function'==typeof _0x153ecc&&(_0x306510=_0x153ecc,_0x153ecc=void 0x0),'function'==typeof _0x4978b7&&(_0x306510=_0x4978b7,_0x4978b7=null),'closing'===this['readyState']||'closed'===this['readyState'])return;(_0x4978b7=_0x4978b7||{})['compress']=!0x1!==_0x4978b7['compress'];const _0x292655={'type':_0x9ae99b,'data':_0x153ecc,'options':_0x4978b7};this['emitReserved']('packetCreate',_0x292655),this['writeBuffer']['push'](_0x292655),_0x306510&&this['once']('flush',_0x306510),this['flush']();}['close'](){const _0x17fde6=()=>{this['onClose']('forced\x20close'),this['transport']['close']();},_0x22e20d=()=>{this['off']('upgrade',_0x22e20d),this['off']('upgradeError',_0x22e20d),_0x17fde6();},_0x17f225=()=>{this['once']('upgrade',_0x22e20d),this['once']('upgradeError',_0x22e20d);};return'opening'!==this['readyState']&&'open'!==this['readyState']||(this['readyState']='closing',this['writeBuffer']['length']?this['once']('drain',()=>{this['upgrading']?_0x17f225():_0x17fde6();}):this['upgrading']?_0x17f225():_0x17fde6()),this;}['onError'](_0x34f7ba){e['priorWebsocketSuccess']=!0x1,this['emitReserved']('error',_0x34f7ba),this['onClose']('transport\x20error',_0x34f7ba);}['onClose'](_0x199e03,_0xa824d){'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',_0x199e03,_0xa824d),this['writeBuffer']=[],this['prevBufferLen']=0x0);}['filterUpgrades'](_0x2b7860){const _0x389936=[];let _0x260841=0x0;const _0x108da8=_0x2b7860['length'];for(;_0x260841<_0x108da8;_0x260841++)~this['transports']['indexOf'](_0x2b7860[_0x260841])&&_0x389936['push'](_0x2b7860[_0x260841]);return _0x389936;}};function url(_0xd20d74,_0x22f609='',_0x2d9f9f){let _0x5aafcc=_0xd20d74;_0x2d9f9f=_0x2d9f9f||'undefined'!=typeof location&&location,null==_0xd20d74&&(_0xd20d74=_0x2d9f9f['protocol']+'//'+_0x2d9f9f['host']),'string'==typeof _0xd20d74&&('/'===_0xd20d74['charAt'](0x0)&&(_0xd20d74='/'===_0xd20d74['charAt'](0x1)?_0x2d9f9f['protocol']+_0xd20d74:_0x2d9f9f['host']+_0xd20d74),/^(https?|wss?):\/\//['test'](_0xd20d74)||(_0xd20d74=void 0x0!==_0x2d9f9f?_0x2d9f9f['protocol']+'//'+_0xd20d74:'https://'+_0xd20d74),_0x5aafcc=parse(_0xd20d74)),_0x5aafcc['port']||(/^(http|ws)$/['test'](_0x5aafcc['protocol'])?_0x5aafcc['port']='80':/^(http|ws)s$/['test'](_0x5aafcc['protocol'])&&(_0x5aafcc['port']='443')),_0x5aafcc['path']=_0x5aafcc['path']||'/';const _0xd02ee3=-0x1!==_0x5aafcc['host']['indexOf'](':')?'['+_0x5aafcc['host']+']':_0x5aafcc['host'];return _0x5aafcc['id']=_0x5aafcc['protocol']+'://'+_0xd02ee3+':'+_0x5aafcc['port']+_0x22f609,_0x5aafcc['href']=_0x5aafcc['protocol']+'://'+_0xd02ee3+(_0x2d9f9f&&_0x2d9f9f['port']===_0x5aafcc['port']?'':':'+_0x5aafcc['port']),_0x5aafcc;}Socket$1['protocol']=protocol;const withNativeArrayBuffer='function'==typeof ArrayBuffer,isView=_0x59dc42=>'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x59dc42):_0x59dc42['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(_0x4d1475){return withNativeArrayBuffer&&(_0x4d1475 instanceof ArrayBuffer||isView(_0x4d1475))||withNativeBlob&&_0x4d1475 instanceof Blob||withNativeFile&&_0x4d1475 instanceof File;}function hasBinary(_0x592dff,_0x4e1611){if(!_0x592dff||'object'!=typeof _0x592dff)return!0x1;if(Array['isArray'](_0x592dff)){for(let _0x5c9646=0x0,_0x4e974c=_0x592dff['length'];_0x5c9646<_0x4e974c;_0x5c9646++)if(hasBinary(_0x592dff[_0x5c9646]))return!0x0;return!0x1;}if(isBinary(_0x592dff))return!0x0;if(_0x592dff['toJSON']&&'function'==typeof _0x592dff['toJSON']&&0x1===arguments['length'])return hasBinary(_0x592dff['toJSON'](),!0x0);for(const _0x1be128 in _0x592dff)if(Object['prototype']['hasOwnProperty']['call'](_0x592dff,_0x1be128)&&hasBinary(_0x592dff[_0x1be128]))return!0x0;return!0x1;}function deconstructPacket(_0x27b345){const _0x55f1ec=[],_0x1c55be=_0x27b345['data'],_0x450f11=_0x27b345;return _0x450f11['data']=_deconstructPacket(_0x1c55be,_0x55f1ec),_0x450f11['attachments']=_0x55f1ec['length'],{'packet':_0x450f11,'buffers':_0x55f1ec};}function _deconstructPacket(_0x4a0bfa,_0x5ceae6){if(!_0x4a0bfa)return _0x4a0bfa;if(isBinary(_0x4a0bfa)){const _0x436d15={'_placeholder':!0x0,'num':_0x5ceae6['length']};return _0x5ceae6['push'](_0x4a0bfa),_0x436d15;}if(Array['isArray'](_0x4a0bfa)){const _0xc2214d=new Array(_0x4a0bfa['length']);for(let _0x52c9a5=0x0;_0x52c9a5<_0x4a0bfa['length'];_0x52c9a5++)_0xc2214d[_0x52c9a5]=_deconstructPacket(_0x4a0bfa[_0x52c9a5],_0x5ceae6);return _0xc2214d;}if('object'==typeof _0x4a0bfa&&!(_0x4a0bfa instanceof Date)){const _0x3b72aa={};for(const _0x944c01 in _0x4a0bfa)Object['prototype']['hasOwnProperty']['call'](_0x4a0bfa,_0x944c01)&&(_0x3b72aa[_0x944c01]=_deconstructPacket(_0x4a0bfa[_0x944c01],_0x5ceae6));return _0x3b72aa;}return _0x4a0bfa;}function reconstructPacket(_0xef863c,_0x440a3e){return _0xef863c['data']=_reconstructPacket(_0xef863c['data'],_0x440a3e),delete _0xef863c['attachments'],_0xef863c;}function _reconstructPacket(_0x13d975,_0x4ff872){if(!_0x13d975)return _0x13d975;if(_0x13d975&&!0x0===_0x13d975['_placeholder']){if('number'==typeof _0x13d975['num']&&_0x13d975['num']>=0x0&&_0x13d975['num']<_0x4ff872['length'])return _0x4ff872[_0x13d975['num']];throw new Error('illegal\x20attachments');}if(Array['isArray'](_0x13d975)){for(let _0x39bf68=0x0;_0x39bf68<_0x13d975['length'];_0x39bf68++)_0x13d975[_0x39bf68]=_reconstructPacket(_0x13d975[_0x39bf68],_0x4ff872);}else{if('object'==typeof _0x13d975){for(const _0x5205f2 in _0x13d975)Object['prototype']['hasOwnProperty']['call'](_0x13d975,_0x5205f2)&&(_0x13d975[_0x5205f2]=_reconstructPacket(_0x13d975[_0x5205f2],_0x4ff872));}}return _0x13d975;}const RESERVED_EVENTS$1=['connect','connect_error','disconnect','disconnecting','newListener','removeListener'];var PacketType;!function(_0x5c1957){_0x5c1957[_0x5c1957['CONNECT']=0x0]='CONNECT',_0x5c1957[_0x5c1957['DISCONNECT']=0x1]='DISCONNECT',_0x5c1957[_0x5c1957['EVENT']=0x2]='EVENT',_0x5c1957[_0x5c1957['ACK']=0x3]='ACK',_0x5c1957[_0x5c1957['CONNECT_ERROR']=0x4]='CONNECT_ERROR',_0x5c1957[_0x5c1957['BINARY_EVENT']=0x5]='BINARY_EVENT',_0x5c1957[_0x5c1957['BINARY_ACK']=0x6]='BINARY_ACK';}(PacketType||(PacketType={}));let Encoder$1=class{constructor(_0x2f7af1){this['replacer']=_0x2f7af1;}['encode'](_0x184b03){return _0x184b03['type']!==PacketType['EVENT']&&_0x184b03['type']!==PacketType['ACK']||!hasBinary(_0x184b03)?[this['encodeAsString'](_0x184b03)]:this['encodeAsBinary']({'type':_0x184b03['type']===PacketType['EVENT']?PacketType['BINARY_EVENT']:PacketType['BINARY_ACK'],'nsp':_0x184b03['nsp'],'data':_0x184b03['data'],'id':_0x184b03['id']});}['encodeAsString'](_0x59c8f9){let _0x27a07c=''+_0x59c8f9['type'];return _0x59c8f9['type']!==PacketType['BINARY_EVENT']&&_0x59c8f9['type']!==PacketType['BINARY_ACK']||(_0x27a07c+=_0x59c8f9['attachments']+'-'),_0x59c8f9['nsp']&&'/'!==_0x59c8f9['nsp']&&(_0x27a07c+=_0x59c8f9['nsp']+','),null!=_0x59c8f9['id']&&(_0x27a07c+=_0x59c8f9['id']),null!=_0x59c8f9['data']&&(_0x27a07c+=JSON['stringify'](_0x59c8f9['data'],this['replacer'])),_0x27a07c;}['encodeAsBinary'](_0x5cf9c7){const _0x15e996=deconstructPacket(_0x5cf9c7),_0x55e639=this['encodeAsString'](_0x15e996['packet']),_0x2e59ba=_0x15e996['buffers'];return _0x2e59ba['unshift'](_0x55e639),_0x2e59ba;}},Decoder$1=class e extends Emitter{constructor(_0x5e586b){super(),this['opts']=Object['assign']({'reviver':void 0x0,'maxAttachments':0xa},'function'==typeof _0x5e586b?{'reviver':_0x5e586b}:_0x5e586b);}['add'](_0x4f8869){let _0x2ad021;if('string'==typeof _0x4f8869){if(this['reconstructor'])throw new Error('got\x20plaintext\x20data\x20when\x20reconstructing\x20a\x20packet');_0x2ad021=this['decodeString'](_0x4f8869);const _0x29f793=_0x2ad021['type']===PacketType['BINARY_EVENT'];_0x29f793||_0x2ad021['type']===PacketType['BINARY_ACK']?(_0x2ad021['type']=_0x29f793?PacketType['EVENT']:PacketType['ACK'],this['reconstructor']=new BinaryReconstructor(_0x2ad021),0x0===_0x2ad021['attachments']&&super['emitReserved']('decoded',_0x2ad021)):super['emitReserved']('decoded',_0x2ad021);}else{if(!isBinary(_0x4f8869)&&!_0x4f8869['base64'])throw new Error('Unknown\x20type:\x20'+_0x4f8869);if(!this['reconstructor'])throw new Error('got\x20binary\x20data\x20when\x20not\x20reconstructing\x20a\x20packet');_0x2ad021=this['reconstructor']['takeBinaryData'](_0x4f8869),_0x2ad021&&(this['reconstructor']=null,super['emitReserved']('decoded',_0x2ad021));}}['decodeString'](_0x5b28d4){let _0x569cd4=0x0;const _0x523b14={'type':Number(_0x5b28d4['charAt'](0x0))};if(void 0x0===PacketType[_0x523b14['type']])throw new Error('unknown\x20packet\x20type\x20'+_0x523b14['type']);if(_0x523b14['type']===PacketType['BINARY_EVENT']||_0x523b14['type']===PacketType['BINARY_ACK']){const _0x53ad89=_0x569cd4+0x1;for(;'-'!==_0x5b28d4['charAt'](++_0x569cd4)&&_0x569cd4!=_0x5b28d4['length'];);const _0x2bf99b=_0x5b28d4['substring'](_0x53ad89,_0x569cd4);if(_0x2bf99b!=Number(_0x2bf99b)||'-'!==_0x5b28d4['charAt'](_0x569cd4))throw new Error('Illegal\x20attachments');const _0x53dccd=Number(_0x2bf99b);if(!isInteger(_0x53dccd)||_0x53dccd<0x0)throw new Error('Illegal\x20attachments');if(_0x53dccd>this['opts']['maxAttachments'])throw new Error('too\x20many\x20attachments');_0x523b14['attachments']=_0x53dccd;}if('/'===_0x5b28d4['charAt'](_0x569cd4+0x1)){const _0x499aff=_0x569cd4+0x1;for(;++_0x569cd4;){if(','===_0x5b28d4['charAt'](_0x569cd4))break;if(_0x569cd4===_0x5b28d4['length'])break;}_0x523b14['nsp']=_0x5b28d4['substring'](_0x499aff,_0x569cd4);}else _0x523b14['nsp']='/';const _0xea1607=_0x5b28d4['charAt'](_0x569cd4+0x1);if(''!==_0xea1607&&Number(_0xea1607)==_0xea1607){const _0x331faa=_0x569cd4+0x1;for(;++_0x569cd4;){const _0x1bada9=_0x5b28d4['charAt'](_0x569cd4);if(null==_0x1bada9||Number(_0x1bada9)!=_0x1bada9){--_0x569cd4;break;}if(_0x569cd4===_0x5b28d4['length'])break;}_0x523b14['id']=Number(_0x5b28d4['substring'](_0x331faa,_0x569cd4+0x1));}if(_0x5b28d4['charAt'](++_0x569cd4)){const _0x34a5f0=this['tryParse'](_0x5b28d4['substr'](_0x569cd4));if(!e['isPayloadValid'](_0x523b14['type'],_0x34a5f0))throw new Error('invalid\x20payload');_0x523b14['data']=_0x34a5f0;}return _0x523b14;}['tryParse'](_0x160210){try{return JSON['parse'](_0x160210,this['opts']['reviver']);}catch(_0xbaae2e){return!0x1;}}static['isPayloadValid'](_0x1e58a2,_0x3ad3a2){switch(_0x1e58a2){case PacketType['CONNECT']:return isObject$2(_0x3ad3a2);case PacketType['DISCONNECT']:return void 0x0===_0x3ad3a2;case PacketType['CONNECT_ERROR']:return'string'==typeof _0x3ad3a2||isObject$2(_0x3ad3a2);case PacketType['EVENT']:case PacketType['BINARY_EVENT']:return Array['isArray'](_0x3ad3a2)&&('number'==typeof _0x3ad3a2[0x0]||'string'==typeof _0x3ad3a2[0x0]&&-0x1===RESERVED_EVENTS$1['indexOf'](_0x3ad3a2[0x0]));case PacketType['ACK']:case PacketType['BINARY_ACK']:return Array['isArray'](_0x3ad3a2);}}['destroy'](){this['reconstructor']&&(this['reconstructor']['finishedReconstruction'](),this['reconstructor']=null);}};class BinaryReconstructor{constructor(_0x3cb31f){this['packet']=_0x3cb31f,this['buffers']=[],this['reconPack']=_0x3cb31f;}['takeBinaryData'](_0x377fb7){if(this['buffers']['push'](_0x377fb7),this['buffers']['length']===this['reconPack']['attachments']){const _0x2ba81a=reconstructPacket(this['reconPack'],this['buffers']);return this['finishedReconstruction'](),_0x2ba81a;}return null;}['finishedReconstruction'](){this['reconPack']=null,this['buffers']=[];}}const isInteger=Number['isInteger']||function(_0x4c1bc1){return'number'==typeof _0x4c1bc1&&isFinite(_0x4c1bc1)&&Math['floor'](_0x4c1bc1)===_0x4c1bc1;};function isObject$2(_0x3be97f){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x3be97f);}var parser$4=Object['freeze']({'__proto__':null,'Decoder':Decoder$1,'Encoder':Encoder$1,get 'PacketType'(){return PacketType;}});function on(_0x3854a1,_0x52485f,_0x96fc96){return _0x3854a1['on'](_0x52485f,_0x96fc96),function(){_0x3854a1['off'](_0x52485f,_0x96fc96);};}const RESERVED_EVENTS=Object['freeze']({'connect':0x1,'connect_error':0x1,'disconnect':0x1,'disconnecting':0x1,'newListener':0x1,'removeListener':0x1});class Socket extends Emitter{constructor(_0x13bd3f,_0x184f1b,_0xb8abc8){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']=_0x13bd3f,this['nsp']=_0x184f1b,_0xb8abc8&&_0xb8abc8['auth']&&(this['auth']=_0xb8abc8['auth']),this['_opts']=Object['assign']({},_0xb8abc8),this['io']['_autoConnect']&&this['open']();}get['disconnected'](){return!this['connected'];}['subEvents'](){if(this['subs'])return;const _0x5699c0=this['io'];this['subs']=[on(_0x5699c0,'open',this['onopen']['bind'](this)),on(_0x5699c0,'packet',this['onpacket']['bind'](this)),on(_0x5699c0,'error',this['onerror']['bind'](this)),on(_0x5699c0,'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'](..._0x469aa4){return _0x469aa4['unshift']('message'),this['emit']['apply'](this,_0x469aa4),this;}['emit'](_0x516eb4,..._0x218fe1){if(RESERVED_EVENTS['hasOwnProperty'](_0x516eb4))throw new Error('\x22'+_0x516eb4['toString']()+'\x22\x20is\x20a\x20reserved\x20event\x20name');if(_0x218fe1['unshift'](_0x516eb4),this['_opts']['retries']&&!this['flags']['fromQueue']&&!this['flags']['volatile'])return this['_addToQueue'](_0x218fe1),this;const _0x4601cf={'type':PacketType['EVENT'],'data':_0x218fe1,'options':{}};if(_0x4601cf['options']['compress']=!0x1!==this['flags']['compress'],'function'==typeof _0x218fe1[_0x218fe1['length']-0x1]){const _0x3cc2fb=this['ids']++,_0x5d874c=_0x218fe1['pop']();this['_registerAckCallback'](_0x3cc2fb,_0x5d874c),_0x4601cf['id']=_0x3cc2fb;}const _0x5c60c8=this['io']['engine']&&this['io']['engine']['transport']&&this['io']['engine']['transport']['writable'];return this['flags']['volatile']&&(!_0x5c60c8||!this['connected'])||(this['connected']?(this['notifyOutgoingListeners'](_0x4601cf),this['packet'](_0x4601cf)):this['sendBuffer']['push'](_0x4601cf)),this['flags']={},this;}['_registerAckCallback'](_0x139e34,_0x4cce99){var _0x3337d2;const _0x159bc5=null!==(_0x3337d2=this['flags']['timeout'])&&void 0x0!==_0x3337d2?_0x3337d2:this['_opts']['ackTimeout'];if(void 0x0===_0x159bc5)return void(this['acks'][_0x139e34]=_0x4cce99);const _0x572fbd=this['io']['setTimeoutFn'](()=>{delete this['acks'][_0x139e34];for(let _0x57fab7=0x0;_0x57fab7<this['sendBuffer']['length'];_0x57fab7++)this['sendBuffer'][_0x57fab7]['id']===_0x139e34&&this['sendBuffer']['splice'](_0x57fab7,0x1);_0x4cce99['call'](this,new Error('operation\x20has\x20timed\x20out'));},_0x159bc5);this['acks'][_0x139e34]=(..._0x131a25)=>{this['io']['clearTimeoutFn'](_0x572fbd),_0x4cce99['apply'](this,[null,..._0x131a25]);};}['emitWithAck'](_0x5c9583,..._0x422f47){const _0x5f4ffc=void 0x0!==this['flags']['timeout']||void 0x0!==this['_opts']['ackTimeout'];return new Promise((_0x322fd7,_0x51c82e)=>{_0x422f47['push']((_0x1be943,_0xda3551)=>_0x5f4ffc?_0x1be943?_0x51c82e(_0x1be943):_0x322fd7(_0xda3551):_0x322fd7(_0x1be943)),this['emit'](_0x5c9583,..._0x422f47);});}['_addToQueue'](_0x648c8){let _0x5de1bf;'function'==typeof _0x648c8[_0x648c8['length']-0x1]&&(_0x5de1bf=_0x648c8['pop']());const _0x18d324={'id':this['_queueSeq']++,'tryCount':0x0,'pending':!0x1,'args':_0x648c8,'flags':Object['assign']({'fromQueue':!0x0},this['flags'])};_0x648c8['push']((_0x5f0ce4,..._0x296ee9)=>{if(_0x18d324!==this['_queue'][0x0])return;return null!==_0x5f0ce4?_0x18d324['tryCount']>this['_opts']['retries']&&(this['_queue']['shift'](),_0x5de1bf&&_0x5de1bf(_0x5f0ce4)):(this['_queue']['shift'](),_0x5de1bf&&_0x5de1bf(null,..._0x296ee9)),_0x18d324['pending']=!0x1,this['_drainQueue']();}),this['_queue']['push'](_0x18d324),this['_drainQueue']();}['_drainQueue'](_0x38c341=!0x1){if(!this['connected']||0x0===this['_queue']['length'])return;const _0x248ed8=this['_queue'][0x0];_0x248ed8['pending']&&!_0x38c341||(_0x248ed8['pending']=!0x0,_0x248ed8['tryCount']++,this['flags']=_0x248ed8['flags'],this['emit']['apply'](this,_0x248ed8['args']));}['packet'](_0x13bc69){_0x13bc69['nsp']=this['nsp'],this['io']['_packet'](_0x13bc69);}['onopen'](){'function'==typeof this['auth']?this['auth'](_0x1a0162=>{this['_sendConnectPacket'](_0x1a0162);}):this['_sendConnectPacket'](this['auth']);}['_sendConnectPacket'](_0x299055){this['packet']({'type':PacketType['CONNECT'],'data':this['_pid']?Object['assign']({'pid':this['_pid'],'offset':this['_lastOffset']},_0x299055):_0x299055});}['onerror'](_0x5cc367){this['connected']||this['emitReserved']('connect_error',_0x5cc367);}['onclose'](_0x370656,_0x543815){this['connected']=!0x1,delete this['id'],this['emitReserved']('disconnect',_0x370656,_0x543815);}['onpacket'](_0x420cb3){if(_0x420cb3['nsp']===this['nsp'])switch(_0x420cb3['type']){case PacketType['CONNECT']:_0x420cb3['data']&&_0x420cb3['data']['sid']?this['onconnect'](_0x420cb3['data']['sid'],_0x420cb3['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'](_0x420cb3);break;case PacketType['ACK']:case PacketType['BINARY_ACK']:this['onack'](_0x420cb3);break;case PacketType['DISCONNECT']:this['ondisconnect']();break;case PacketType['CONNECT_ERROR']:this['destroy']();const _0x359c7d=new Error(_0x420cb3['data']['message']);_0x359c7d['data']=_0x420cb3['data']['data'],this['emitReserved']('connect_error',_0x359c7d);}}['onevent'](_0x2a620e){const _0x580553=_0x2a620e['data']||[];null!=_0x2a620e['id']&&_0x580553['push'](this['ack'](_0x2a620e['id'])),this['connected']?this['emitEvent'](_0x580553):this['receiveBuffer']['push'](Object['freeze'](_0x580553));}['emitEvent'](_0x17eabc){if(this['_anyListeners']&&this['_anyListeners']['length']){const _0x2221ee=this['_anyListeners']['slice']();for(const _0x1ae80a of _0x2221ee)_0x1ae80a['apply'](this,_0x17eabc);}super['emit']['apply'](this,_0x17eabc),this['_pid']&&_0x17eabc['length']&&'string'==typeof _0x17eabc[_0x17eabc['length']-0x1]&&(this['_lastOffset']=_0x17eabc[_0x17eabc['length']-0x1]);}['ack'](_0x4fc9f5){const _0x1ae33f=this;let _0xb1a3e7=!0x1;return function(..._0xaa318b){_0xb1a3e7||(_0xb1a3e7=!0x0,_0x1ae33f['packet']({'type':PacketType['ACK'],'id':_0x4fc9f5,'data':_0xaa318b}));};}['onack'](_0x3b417a){const _0x1680aa=this['acks'][_0x3b417a['id']];'function'==typeof _0x1680aa&&(_0x1680aa['apply'](this,_0x3b417a['data']),delete this['acks'][_0x3b417a['id']]);}['onconnect'](_0x4fb3ba,_0x4ad432){this['id']=_0x4fb3ba,this['recovered']=_0x4ad432&&this['_pid']===_0x4ad432,this['_pid']=_0x4ad432,this['connected']=!0x0,this['emitBuffered'](),this['emitReserved']('connect'),this['_drainQueue'](!0x0);}['emitBuffered'](){this['receiveBuffer']['forEach'](_0x366751=>this['emitEvent'](_0x366751)),this['receiveBuffer']=[],this['sendBuffer']['forEach'](_0x5c27fd=>{this['notifyOutgoingListeners'](_0x5c27fd),this['packet'](_0x5c27fd);}),this['sendBuffer']=[];}['ondisconnect'](){this['destroy'](),this['onclose']('io\x20server\x20disconnect');}['destroy'](){this['subs']&&(this['subs']['forEach'](_0xcadea=>_0xcadea()),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'](_0x35f77f){return this['flags']['compress']=_0x35f77f,this;}get['volatile'](){return this['flags']['volatile']=!0x0,this;}['timeout'](_0x11214f){return this['flags']['timeout']=_0x11214f,this;}['onAny'](_0x52740f){return this['_anyListeners']=this['_anyListeners']||[],this['_anyListeners']['push'](_0x52740f),this;}['prependAny'](_0x40de5d){return this['_anyListeners']=this['_anyListeners']||[],this['_anyListeners']['unshift'](_0x40de5d),this;}['offAny'](_0x5df6f7){if(!this['_anyListeners'])return this;if(_0x5df6f7){const _0x48bf65=this['_anyListeners'];for(let _0x41afa3=0x0;_0x41afa3<_0x48bf65['length'];_0x41afa3++)if(_0x5df6f7===_0x48bf65[_0x41afa3])return _0x48bf65['splice'](_0x41afa3,0x1),this;}else this['_anyListeners']=[];return this;}['listenersAny'](){return this['_anyListeners']||[];}['onAnyOutgoing'](_0x239a3e){return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners']['push'](_0x239a3e),this;}['prependAnyOutgoing'](_0x30236c){return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners']['unshift'](_0x30236c),this;}['offAnyOutgoing'](_0x2f6c60){if(!this['_anyOutgoingListeners'])return this;if(_0x2f6c60){const _0x41b13a=this['_anyOutgoingListeners'];for(let _0x44503=0x0;_0x44503<_0x41b13a['length'];_0x44503++)if(_0x2f6c60===_0x41b13a[_0x44503])return _0x41b13a['splice'](_0x44503,0x1),this;}else this['_anyOutgoingListeners']=[];return this;}['listenersAnyOutgoing'](){return this['_anyOutgoingListeners']||[];}['notifyOutgoingListeners'](_0x37e727){if(this['_anyOutgoingListeners']&&this['_anyOutgoingListeners']['length']){const _0x239c91=this['_anyOutgoingListeners']['slice']();for(const _0x5b37bc of _0x239c91)_0x5b37bc['apply'](this,_0x37e727['data']);}}}function Backoff(_0x147ff3){_0x147ff3=_0x147ff3||{},this['ms']=_0x147ff3['min']||0x64,this['max']=_0x147ff3['max']||0x2710,this['factor']=_0x147ff3['factor']||0x2,this['jitter']=_0x147ff3['jitter']>0x0&&_0x147ff3['jitter']<=0x1?_0x147ff3['jitter']:0x0,this['attempts']=0x0;}Backoff['prototype']['duration']=function(){var _0x4d338e=this['ms']*Math['pow'](this['factor'],this['attempts']++);if(this['jitter']){var _0x37588b=Math['random'](),_0x3f9d85=Math['floor'](_0x37588b*this['jitter']*_0x4d338e);_0x4d338e=0x1&Math['floor'](0xa*_0x37588b)?_0x4d338e+_0x3f9d85:_0x4d338e-_0x3f9d85;}return 0x0|Math['min'](_0x4d338e,this['max']);},Backoff['prototype']['reset']=function(){this['attempts']=0x0;},Backoff['prototype']['setMin']=function(_0x6c21c7){this['ms']=_0x6c21c7;},Backoff['prototype']['setMax']=function(_0x20cf62){this['max']=_0x20cf62;},Backoff['prototype']['setJitter']=function(_0x7b7371){this['jitter']=_0x7b7371;};class Manager extends Emitter{constructor(_0x4690c3,_0x58a7bc){var _0x131802;super(),this['nsps']={},this['subs']=[],_0x4690c3&&'object'==typeof _0x4690c3&&(_0x58a7bc=_0x4690c3,_0x4690c3=void 0x0),(_0x58a7bc=_0x58a7bc||{})['path']=_0x58a7bc['path']||'/socket.io',this['opts']=_0x58a7bc,installTimerFunctions(this,_0x58a7bc),this['reconnection'](!0x1!==_0x58a7bc['reconnection']),this['reconnectionAttempts'](_0x58a7bc['reconnectionAttempts']||0x1/0x0),this['reconnectionDelay'](_0x58a7bc['reconnectionDelay']||0x3e8),this['reconnectionDelayMax'](_0x58a7bc['reconnectionDelayMax']||0x1388),this['randomizationFactor'](null!==(_0x131802=_0x58a7bc['randomizationFactor'])&&void 0x0!==_0x131802?_0x131802:0.5),this['backoff']=new Backoff({'min':this['reconnectionDelay'](),'max':this['reconnectionDelayMax'](),'jitter':this['randomizationFactor']()}),this['timeout'](null==_0x58a7bc['timeout']?0x4e20:_0x58a7bc['timeout']),this['_readyState']='closed',this['uri']=_0x4690c3;const _0x3d41a2=_0x58a7bc['parser']||parser$4;this['encoder']=new _0x3d41a2['Encoder'](),this['decoder']=new _0x3d41a2['Decoder'](),this['_autoConnect']=!0x1!==_0x58a7bc['autoConnect'],this['_autoConnect']&&this['open']();}['reconnection'](_0x543c98){return arguments['length']?(this['_reconnection']=!!_0x543c98,this):this['_reconnection'];}['reconnectionAttempts'](_0x410f6b){return void 0x0===_0x410f6b?this['_reconnectionAttempts']:(this['_reconnectionAttempts']=_0x410f6b,this);}['reconnectionDelay'](_0x553aaf){var _0x3e08b5;return void 0x0===_0x553aaf?this['_reconnectionDelay']:(this['_reconnectionDelay']=_0x553aaf,null===(_0x3e08b5=this['backoff'])||void 0x0===_0x3e08b5||_0x3e08b5['setMin'](_0x553aaf),this);}['randomizationFactor'](_0x598a9d){var _0x5a75a8;return void 0x0===_0x598a9d?this['_randomizationFactor']:(this['_randomizationFactor']=_0x598a9d,null===(_0x5a75a8=this['backoff'])||void 0x0===_0x5a75a8||_0x5a75a8['setJitter'](_0x598a9d),this);}['reconnectionDelayMax'](_0x1bd9c4){var _0x32685a;return void 0x0===_0x1bd9c4?this['_reconnectionDelayMax']:(this['_reconnectionDelayMax']=_0x1bd9c4,null===(_0x32685a=this['backoff'])||void 0x0===_0x32685a||_0x32685a['setMax'](_0x1bd9c4),this);}['timeout'](_0x3d7e7){return arguments['length']?(this['_timeout']=_0x3d7e7,this):this['_timeout'];}['maybeReconnectOnOpen'](){!this['_reconnecting']&&this['_reconnection']&&0x0===this['backoff']['attempts']&&this['reconnect']();}['open'](_0x1fceb4){if(~this['_readyState']['indexOf']('open'))return this;this['engine']=new Socket$1(this['uri'],this['opts']);const _0x21967e=this['engine'],_0x3439d3=this;this['_readyState']='opening',this['skipReconnect']=!0x1;const _0x567514=on(_0x21967e,'open',function(){_0x3439d3['onopen'](),_0x1fceb4&&_0x1fceb4();}),_0x156c89=_0x20f222=>{this['cleanup'](),this['_readyState']='closed',this['emitReserved']('error',_0x20f222),_0x1fceb4?_0x1fceb4(_0x20f222):this['maybeReconnectOnOpen']();},_0x13a09d=on(_0x21967e,'error',_0x156c89);if(!0x1!==this['_timeout']){const _0x4ac609=this['_timeout'],_0x1e62ef=this['setTimeoutFn'](()=>{_0x567514(),_0x156c89(new Error('timeout')),_0x21967e['close']();},_0x4ac609);this['opts']['autoUnref']&&_0x1e62ef['unref'](),this['subs']['push'](()=>{this['clearTimeoutFn'](_0x1e62ef);});}return this['subs']['push'](_0x567514),this['subs']['push'](_0x13a09d),this;}['connect'](_0x142bd4){return this['open'](_0x142bd4);}['onopen'](){this['cleanup'](),this['_readyState']='open',this['emitReserved']('open');const _0x27b483=this['engine'];this['subs']['push'](on(_0x27b483,'ping',this['onping']['bind'](this)),on(_0x27b483,'data',this['ondata']['bind'](this)),on(_0x27b483,'error',this['onerror']['bind'](this)),on(_0x27b483,'close',this['onclose']['bind'](this)),on(this['decoder'],'decoded',this['ondecoded']['bind'](this)));}['onping'](){this['emitReserved']('ping');}['ondata'](_0x55a741){try{this['decoder']['add'](_0x55a741);}catch(_0x320b96){this['onclose']('parse\x20error',_0x320b96);}}['ondecoded'](_0x5d782b){nextTick(()=>{this['emitReserved']('packet',_0x5d782b);},this['setTimeoutFn']);}['onerror'](_0x4b57a0){this['emitReserved']('error',_0x4b57a0);}['socket'](_0x1a61d4,_0x335742){let _0x5f4cfc=this['nsps'][_0x1a61d4];return _0x5f4cfc?this['_autoConnect']&&!_0x5f4cfc['active']&&_0x5f4cfc['connect']():(_0x5f4cfc=new Socket(this,_0x1a61d4,_0x335742),this['nsps'][_0x1a61d4]=_0x5f4cfc),_0x5f4cfc;}['_destroy'](_0x225143){const _0x3748d7=Object['keys'](this['nsps']);for(const _0x28b887 of _0x3748d7){if(this['nsps'][_0x28b887]['active'])return;}this['_close']();}['_packet'](_0x37bebc){const _0xdf9405=this['encoder']['encode'](_0x37bebc);for(let _0x31e11a=0x0;_0x31e11a<_0xdf9405['length'];_0x31e11a++)this['engine']['write'](_0xdf9405[_0x31e11a],_0x37bebc['options']);}['cleanup'](){this['subs']['forEach'](_0x197db8=>_0x197db8()),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'](_0x3fb103,_0x36c1dd){this['cleanup'](),this['backoff']['reset'](),this['_readyState']='closed',this['emitReserved']('close',_0x3fb103,_0x36c1dd),this['_reconnection']&&!this['skipReconnect']&&this['reconnect']();}['reconnect'](){if(this['_reconnecting']||this['skipReconnect'])return this;const _0x58a9e4=this;if(this['backoff']['attempts']>=this['_reconnectionAttempts'])this['backoff']['reset'](),this['emitReserved']('reconnect_failed'),this['_reconnecting']=!0x1;else{const _0x51f7df=this['backoff']['duration']();this['_reconnecting']=!0x0;const _0x1806df=this['setTimeoutFn'](()=>{_0x58a9e4['skipReconnect']||(this['emitReserved']('reconnect_attempt',_0x58a9e4['backoff']['attempts']),_0x58a9e4['skipReconnect']||_0x58a9e4['open'](_0x576559=>{_0x576559?(_0x58a9e4['_reconnecting']=!0x1,_0x58a9e4['reconnect'](),this['emitReserved']('reconnect_error',_0x576559)):_0x58a9e4['onreconnect']();}));},_0x51f7df);this['opts']['autoUnref']&&_0x1806df['unref'](),this['subs']['push'](()=>{this['clearTimeoutFn'](_0x1806df);});}}['onreconnect'](){const _0x2b1fb5=this['backoff']['attempts'];this['_reconnecting']=!0x1,this['backoff']['reset'](),this['emitReserved']('reconnect',_0x2b1fb5);}}const cache$1={};function lookup(_0xce9c65,_0xa4b42b){'object'==typeof _0xce9c65&&(_0xa4b42b=_0xce9c65,_0xce9c65=void 0x0);const _0x4c28d6=url(_0xce9c65,(_0xa4b42b=_0xa4b42b||{})['path']||'/socket.io'),_0x4f6ae7=_0x4c28d6['source'],_0x41d281=_0x4c28d6['id'],_0x24a782=_0x4c28d6['path'],_0x38af46=cache$1[_0x41d281]&&_0x24a782 in cache$1[_0x41d281]['nsps'];let _0x3c30b7;return _0xa4b42b['forceNew']||_0xa4b42b['force\x20new\x20connection']||!0x1===_0xa4b42b['multiplex']||_0x38af46?_0x3c30b7=new Manager(_0x4f6ae7,_0xa4b42b):(cache$1[_0x41d281]||(cache$1[_0x41d281]=new Manager(_0x4f6ae7,_0xa4b42b)),_0x3c30b7=cache$1[_0x41d281]),_0x4c28d6['query']&&!_0xa4b42b['query']&&(_0xa4b42b['query']=_0x4c28d6['queryKey']),_0x3c30b7['socket'](_0x4c28d6['path'],_0xa4b42b);}var requiresPort,hasRequiredRequiresPort;function requireRequiresPort(){return hasRequiredRequiresPort||(hasRequiredRequiresPort=0x1,requiresPort=function(_0x59dc45,_0x4ff549){if(_0x4ff549=_0x4ff549['split'](':')[0x0],!(_0x59dc45=+_0x59dc45))return!0x1;switch(_0x4ff549){case'http':case'ws':return 0x50!==_0x59dc45;case'https':case'wss':return 0x1bb!==_0x59dc45;case'ftp':return 0x15!==_0x59dc45;case'gopher':return 0x46!==_0x59dc45;case'file':return!0x1;}return 0x0!==_0x59dc45;}),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 _0x1d3c35=Object['prototype']['hasOwnProperty'];function _0x416ea5(_0x3e097c){try{return decodeURIComponent(_0x3e097c['replace'](/\+/g,'\x20'));}catch(_0x4a9f71){return null;}}function _0x917eb9(_0x533c81){try{return encodeURIComponent(_0x533c81);}catch(_0x2255e4){return null;}}return querystringify['stringify']=function(_0x36d31d,_0x4c9f07){_0x4c9f07=_0x4c9f07||'';var _0x10073b,_0x2f1c7c,_0x5a238b=[];for(_0x2f1c7c in('string'!=typeof _0x4c9f07&&(_0x4c9f07='?'),_0x36d31d))if(_0x1d3c35['call'](_0x36d31d,_0x2f1c7c)){if((_0x10073b=_0x36d31d[_0x2f1c7c])||null!=_0x10073b&&!isNaN(_0x10073b)||(_0x10073b=''),_0x2f1c7c=_0x917eb9(_0x2f1c7c),_0x10073b=_0x917eb9(_0x10073b),null===_0x2f1c7c||null===_0x10073b)continue;_0x5a238b['push'](_0x2f1c7c+'='+_0x10073b);}return _0x5a238b['length']?_0x4c9f07+_0x5a238b['join']('&'):'';},querystringify['parse']=function(_0x4b9dc6){for(var _0x4d4b3a,_0x178264=/([^=?#&]+)=?([^&]*)/g,_0x5a1f4a={};_0x4d4b3a=_0x178264['exec'](_0x4b9dc6);){var _0x5cd82f=_0x416ea5(_0x4d4b3a[0x1]),_0x595b0f=_0x416ea5(_0x4d4b3a[0x2]);null===_0x5cd82f||null===_0x595b0f||_0x5cd82f in _0x5a1f4a||(_0x5a1f4a[_0x5cd82f]=_0x595b0f);}return _0x5a1f4a;},querystringify;}function requireUrlParse(){if(hasRequiredUrlParse)return urlParse;hasRequiredUrlParse=0x1;var _0x427575=requireRequiresPort(),_0x51cced=requireQuerystringify(),_0x16d9c6=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,_0x23e619=/[\n\r\t]/g,_0x35766c=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,_0x4dc9c7=/:\d+$/,_0x68c14a=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,_0x5d1ade=/^[a-zA-Z]:/;function _0x561640(_0x4475cc){return(_0x4475cc||'')['toString']()['replace'](_0x16d9c6,'');}var _0x6ac3da=[['#','hash'],['?','query'],function(_0x24966a,_0x2b79d4){return _0x14b883(_0x2b79d4['protocol'])?_0x24966a['replace'](/\\/g,'/'):_0x24966a;},['/','pathname'],['@','auth',0x1],[NaN,'host',void 0x0,0x1,0x1],[/:(\d*)$/,'port',void 0x0,0x1],[NaN,'hostname',void 0x0,0x1,0x1]],_0x15da42={'hash':0x1,'query':0x1};function _0x38e14f(_0x1c0800){var _0x1c747c,_0x50f99f=('undefined'!=typeof window?window:void 0x0!==commonjsGlobal?commonjsGlobal:'undefined'!=typeof self?self:{})['location']||{},_0x3bf9f9={},_0x2bcb63=typeof(_0x1c0800=_0x1c0800||_0x50f99f);if('blob:'===_0x1c0800['protocol'])_0x3bf9f9=new _0x18b87e(unescape(_0x1c0800['pathname']),{});else{if('string'===_0x2bcb63){for(_0x1c747c in(_0x3bf9f9=new _0x18b87e(_0x1c0800,{}),_0x15da42))delete _0x3bf9f9[_0x1c747c];}else{if('object'===_0x2bcb63){for(_0x1c747c in _0x1c0800)_0x1c747c in _0x15da42||(_0x3bf9f9[_0x1c747c]=_0x1c0800[_0x1c747c]);void 0x0===_0x3bf9f9['slashes']&&(_0x3bf9f9['slashes']=_0x35766c['test'](_0x1c0800['href']));}}}return _0x3bf9f9;}function _0x14b883(_0x157db4){return'file:'===_0x157db4||'ftp:'===_0x157db4||'http:'===_0x157db4||'https:'===_0x157db4||'ws:'===_0x157db4||'wss:'===_0x157db4;}function _0x5d0191(_0x139225,_0x4297db){_0x139225=(_0x139225=_0x561640(_0x139225))['replace'](_0x23e619,''),_0x4297db=_0x4297db||{};var _0x13ff64,_0x498449=_0x68c14a['exec'](_0x139225),_0x506941=_0x498449[0x1]?_0x498449[0x1]['toLowerCase']():'',_0x31146a=!!_0x498449[0x2],_0x26f9dd=!!_0x498449[0x3],_0x2e3b4f=0x0;return _0x31146a?_0x26f9dd?(_0x13ff64=_0x498449[0x2]+_0x498449[0x3]+_0x498449[0x4],_0x2e3b4f=_0x498449[0x2]['length']+_0x498449[0x3]['length']):(_0x13ff64=_0x498449[0x2]+_0x498449[0x4],_0x2e3b4f=_0x498449[0x2]['length']):_0x26f9dd?(_0x13ff64=_0x498449[0x3]+_0x498449[0x4],_0x2e3b4f=_0x498449[0x3]['length']):_0x13ff64=_0x498449[0x4],'file:'===_0x506941?_0x2e3b4f>=0x2&&(_0x13ff64=_0x13ff64['slice'](0x2)):_0x14b883(_0x506941)?_0x13ff64=_0x498449[0x4]:_0x506941?_0x31146a&&(_0x13ff64=_0x13ff64['slice'](0x2)):_0x2e3b4f>=0x2&&_0x14b883(_0x4297db['protocol'])&&(_0x13ff64=_0x498449[0x4]),{'protocol':_0x506941,'slashes':_0x31146a||_0x14b883(_0x506941),'slashesCount':_0x2e3b4f,'rest':_0x13ff64};}function _0x18b87e(_0x32a852,_0x5111b1,_0x5e8f4c){if(_0x32a852=(_0x32a852=_0x561640(_0x32a852))['replace'](_0x23e619,''),!(this instanceof _0x18b87e))return new _0x18b87e(_0x32a852,_0x5111b1,_0x5e8f4c);var _0x40742b,_0x33fb1a,_0x480ed2,_0x1d5063,_0x462dc5,_0x3e34cc,_0x2f227a=_0x6ac3da['slice'](),_0x213fba=typeof _0x5111b1,_0x2441bd=this,_0x148279=0x0;for('object'!==_0x213fba&&'string'!==_0x213fba&&(_0x5e8f4c=_0x5111b1,_0x5111b1=null),_0x5e8f4c&&'function'!=typeof _0x5e8f4c&&(_0x5e8f4c=_0x51cced['parse']),_0x40742b=!(_0x33fb1a=_0x5d0191(_0x32a852||'',_0x5111b1=_0x38e14f(_0x5111b1)))['protocol']&&!_0x33fb1a['slashes'],_0x2441bd['slashes']=_0x33fb1a['slashes']||_0x40742b&&_0x5111b1['slashes'],_0x2441bd['protocol']=_0x33fb1a['protocol']||_0x5111b1['protocol']||'',_0x32a852=_0x33fb1a['rest'],('file:'===_0x33fb1a['protocol']&&(0x2!==_0x33fb1a['slashesCount']||_0x5d1ade['test'](_0x32a852))||!_0x33fb1a['slashes']&&(_0x33fb1a['protocol']||_0x33fb1a['slashesCount']<0x2||!_0x14b883(_0x2441bd['protocol'])))&&(_0x2f227a[0x3]=[/(.*)/,'pathname']);_0x148279<_0x2f227a['length'];_0x148279++)'function'!=typeof(_0x1d5063=_0x2f227a[_0x148279])?(_0x480ed2=_0x1d5063[0x0],_0x3e34cc=_0x1d5063[0x1],_0x480ed2!=_0x480ed2?_0x2441bd[_0x3e34cc]=_0x32a852:'string'==typeof _0x480ed2?~(_0x462dc5='@'===_0x480ed2?_0x32a852['lastIndexOf'](_0x480ed2):_0x32a852['indexOf'](_0x480ed2))&&('number'==typeof _0x1d5063[0x2]?(_0x2441bd[_0x3e34cc]=_0x32a852['slice'](0x0,_0x462dc5),_0x32a852=_0x32a852['slice'](_0x462dc5+_0x1d5063[0x2])):(_0x2441bd[_0x3e34cc]=_0x32a852['slice'](_0x462dc5),_0x32a852=_0x32a852['slice'](0x0,_0x462dc5))):(_0x462dc5=_0x480ed2['exec'](_0x32a852))&&(_0x2441bd[_0x3e34cc]=_0x462dc5[0x1],_0x32a852=_0x32a852['slice'](0x0,_0x462dc5['index'])),_0x2441bd[_0x3e34cc]=_0x2441bd[_0x3e34cc]||_0x40742b&&_0x1d5063[0x3]&&_0x5111b1[_0x3e34cc]||'',_0x1d5063[0x4]&&(_0x2441bd[_0x3e34cc]=_0x2441bd[_0x3e34cc]['toLowerCase']())):_0x32a852=_0x1d5063(_0x32a852,_0x2441bd);_0x5e8f4c&&(_0x2441bd['query']=_0x5e8f4c(_0x2441bd['query'])),_0x40742b&&_0x5111b1['slashes']&&'/'!==_0x2441bd['pathname']['charAt'](0x0)&&(''!==_0x2441bd['pathname']||''!==_0x5111b1['pathname'])&&(_0x2441bd['pathname']=function(_0x3c171b,_0x41d958){if(''===_0x3c171b)return _0x41d958;for(var _0x3890bb=(_0x41d958||'/')['split']('/')['slice'](0x0,-0x1)['concat'](_0x3c171b['split']('/')),_0xb61476=_0x3890bb['length'],_0x5f38f1=_0x3890bb[_0xb61476-0x1],_0x51e237=!0x1,_0x307494=0x0;_0xb61476--;)'.'===_0x3890bb[_0xb61476]?_0x3890bb['splice'](_0xb61476,0x1):'..'===_0x3890bb[_0xb61476]?(_0x3890bb['splice'](_0xb61476,0x1),_0x307494++):_0x307494&&(0x0===_0xb61476&&(_0x51e237=!0x0),_0x3890bb['splice'](_0xb61476,0x1),_0x307494--);return _0x51e237&&_0x3890bb['unshift'](''),'.'!==_0x5f38f1&&'..'!==_0x5f38f1||_0x3890bb['push'](''),_0x3890bb['join']('/');}(_0x2441bd['pathname'],_0x5111b1['pathname'])),'/'!==_0x2441bd['pathname']['charAt'](0x0)&&_0x14b883(_0x2441bd['protocol'])&&(_0x2441bd['pathname']='/'+_0x2441bd['pathname']),_0x427575(_0x2441bd['port'],_0x2441bd['protocol'])||(_0x2441bd['host']=_0x2441bd['hostname'],_0x2441bd['port']=''),_0x2441bd['username']=_0x2441bd['password']='',_0x2441bd['auth']&&(~(_0x462dc5=_0x2441bd['auth']['indexOf'](':'))?(_0x2441bd['username']=_0x2441bd['auth']['slice'](0x0,_0x462dc5),_0x2441bd['username']=encodeURIComponent(decodeURIComponent(_0x2441bd['username'])),_0x2441bd['password']=_0x2441bd['auth']['slice'](_0x462dc5+0x1),_0x2441bd['password']=encodeURIComponent(decodeURIComponent(_0x2441bd['password']))):_0x2441bd['username']=encodeURIComponent(decodeURIComponent(_0x2441bd['auth'])),_0x2441bd['auth']=_0x2441bd['password']?_0x2441bd['username']+':'+_0x2441bd['password']:_0x2441bd['username']),_0x2441bd['origin']='file:'!==_0x2441bd['protocol']&&_0x14b883(_0x2441bd['protocol'])&&_0x2441bd['host']?_0x2441bd['protocol']+'//'+_0x2441bd['host']:'null',_0x2441bd['href']=_0x2441bd['toString']();}return _0x18b87e['prototype']={'set':function(_0x1987bb,_0x5a4b5c,_0x41fd4e){var _0x1f6a3c=this;switch(_0x1987bb){case'query':'string'==typeof _0x5a4b5c&&_0x5a4b5c['length']&&(_0x5a4b5c=(_0x41fd4e||_0x51cced['parse'])(_0x5a4b5c)),_0x1f6a3c[_0x1987bb]=_0x5a4b5c;break;case'port':_0x1f6a3c[_0x1987bb]=_0x5a4b5c,_0x427575(_0x5a4b5c,_0x1f6a3c['protocol'])?_0x5a4b5c&&(_0x1f6a3c['host']=_0x1f6a3c['hostname']+':'+_0x5a4b5c):(_0x1f6a3c['host']=_0x1f6a3c['hostname'],_0x1f6a3c[_0x1987bb]='');break;case'hostname':_0x1f6a3c[_0x1987bb]=_0x5a4b5c,_0x1f6a3c['port']&&(_0x5a4b5c+=':'+_0x1f6a3c['port']),_0x1f6a3c['host']=_0x5a4b5c;break;case'host':_0x1f6a3c[_0x1987bb]=_0x5a4b5c,_0x4dc9c7['test'](_0x5a4b5c)?(_0x5a4b5c=_0x5a4b5c['split'](':'),_0x1f6a3c['port']=_0x5a4b5c['pop'](),_0x1f6a3c['hostname']=_0x5a4b5c['join'](':')):(_0x1f6a3c['hostname']=_0x5a4b5c,_0x1f6a3c['port']='');break;case'protocol':_0x1f6a3c['protocol']=_0x5a4b5c['toLowerCase'](),_0x1f6a3c['slashes']=!_0x41fd4e;break;case'pathname':case'hash':if(_0x5a4b5c){var _0x19d4d3='pathname'===_0x1987bb?'/':'#';_0x1f6a3c[_0x1987bb]=_0x5a4b5c['charAt'](0x0)!==_0x19d4d3?_0x19d4d3+_0x5a4b5c:_0x5a4b5c;}else _0x1f6a3c[_0x1987bb]=_0x5a4b5c;break;case'username':case'password':_0x1f6a3c[_0x1987bb]=encodeURIComponent(_0x5a4b5c);break;case'auth':var _0x31a9c5=_0x5a4b5c['indexOf'](':');~_0x31a9c5?(_0x1f6a3c['username']=_0x5a4b5c['slice'](0x0,_0x31a9c5),_0x1f6a3c['username']=encodeURIComponent(decodeURIComponent(_0x1f6a3c['username'])),_0x1f6a3c['password']=_0x5a4b5c['slice'](_0x31a9c5+0x1),_0x1f6a3c['password']=encodeURIComponent(decodeURIComponent(_0x1f6a3c['password']))):_0x1f6a3c['username']=encodeURIComponent(decodeURIComponent(_0x5a4b5c));}for(var _0x3aa475=0x0;_0x3aa475<_0x6ac3da['length'];_0x3aa475++){var _0x892e74=_0x6ac3da[_0x3aa475];_0x892e74[0x4]&&(_0x1f6a3c[_0x892e74[0x1]]=_0x1f6a3c[_0x892e74[0x1]]['toLowerCase']());}return _0x1f6a3c['auth']=_0x1f6a3c['password']?_0x1f6a3c['username']+':'+_0x1f6a3c['password']:_0x1f6a3c['username'],_0x1f6a3c['origin']='file:'!==_0x1f6a3c['protocol']&&_0x14b883(_0x1f6a3c['protocol'])&&_0x1f6a3c['host']?_0x1f6a3c['protocol']+'//'+_0x1f6a3c['host']:'null',_0x1f6a3c['href']=_0x1f6a3c['toString'](),_0x1f6a3c;},'toString':function(_0x117a8f){_0x117a8f&&'function'==typeof _0x117a8f||(_0x117a8f=_0x51cced['stringify']);var _0x32899a,_0x17176c=this,_0x5eb805=_0x17176c['host'],_0x5685b5=_0x17176c['protocol'];_0x5685b5&&':'!==_0x5685b5['charAt'](_0x5685b5['length']-0x1)&&(_0x5685b5+=':');var _0x14884d=_0x5685b5+(_0x17176c['protocol']&&_0x17176c['slashes']||_0x14b883(_0x17176c['protocol'])?'//':'');return _0x17176c['username']?(_0x14884d+=_0x17176c['username'],_0x17176c['password']&&(_0x14884d+=':'+_0x17176c['password']),_0x14884d+='@'):_0x17176c['password']?(_0x14884d+=':'+_0x17176c['password'],_0x14884d+='@'):'file:'!==_0x17176c['protocol']&&_0x14b883(_0x17176c['protocol'])&&!_0x5eb805&&'/'!==_0x17176c['pathname']&&(_0x14884d+='@'),(':'===_0x5eb805[_0x5eb805['length']-0x1]||_0x4dc9c7['test'](_0x17176c['hostname'])&&!_0x17176c['port'])&&(_0x5eb805+=':'),_0x14884d+=_0x5eb805+_0x17176c['pathname'],(_0x32899a='object'==typeof _0x17176c['query']?_0x117a8f(_0x17176c['query']):_0x17176c['query'])&&(_0x14884d+='?'!==_0x32899a['charAt'](0x0)?'?'+_0x32899a:_0x32899a),_0x17176c['hash']&&(_0x14884d+=_0x17176c['hash']),_0x14884d;}},_0x18b87e['extractProtocol']=_0x5d0191,_0x18b87e['location']=_0x38e14f,_0x18b87e['trimLeft']=_0x561640,_0x18b87e['qs']=_0x51cced,urlParse=_0x18b87e;}var urlParseExports=requireUrlParse();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(_0x168ffb,_0x37d35c=0x0){return byteToHex[_0x168ffb[_0x37d35c+0x0]]+byteToHex[_0x168ffb[_0x37d35c+0x1]]+byteToHex[_0x168ffb[_0x37d35c+0x2]]+byteToHex[_0x168ffb[_0x37d35c+0x3]]+'-'+byteToHex[_0x168ffb[_0x37d35c+0x4]]+byteToHex[_0x168ffb[_0x37d35c+0x5]]+'-'+byteToHex[_0x168ffb[_0x37d35c+0x6]]+byteToHex[_0x168ffb[_0x37d35c+0x7]]+'-'+byteToHex[_0x168ffb[_0x37d35c+0x8]]+byteToHex[_0x168ffb[_0x37d35c+0x9]]+'-'+byteToHex[_0x168ffb[_0x37d35c+0xa]]+byteToHex[_0x168ffb[_0x37d35c+0xb]]+byteToHex[_0x168ffb[_0x37d35c+0xc]]+byteToHex[_0x168ffb[_0x37d35c+0xd]]+byteToHex[_0x168ffb[_0x37d35c+0xe]]+byteToHex[_0x168ffb[_0x37d35c+0xf]];}const randomUUID='undefined'!=typeof crypto&&crypto['randomUUID']&&crypto['randomUUID']['bind'](crypto);var native$1={'randomUUID':randomUUID};function v4(_0x41c800,_0x2a8f08,_0x58c034){if(native$1['randomUUID']&&!_0x41c800)return native$1['randomUUID']();const _0x2ed218=(_0x41c800=_0x41c800||{})['random']||(_0x41c800['rng']||rng)();return _0x2ed218[0x6]=0xf&_0x2ed218[0x6]|0x40,_0x2ed218[0x8]=0x3f&_0x2ed218[0x8]|0x80,unsafeStringify(_0x2ed218);}class Descriptor{static ['DESCRIPTOR_NAME'];static ['DESCRIPTOR'];constructor(..._0x3a9c9f){}}class Message extends Descriptor{static ['TYPE']='1000';static ['READABLE_TYPE_NAME'];constructor(..._0x1380cc){super();}static['fromJSON'](_0x4fa950){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(_0x37e7be){super(),this['id']=_0x37e7be;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](_0x505577){return new GetUserMessage(_0x505577['id']);}}class GetUserResponse extends Message{['attributes'];static ['DESCRIPTOR_NAME']='GetUserResponse';static ['DESCRIPTOR']={'fields':{'attributes':{'rule':'repeated','type':'KeyValueDescriptor','id':0x1}}};constructor(_0x53f543){super(),this['attributes']=_0x53f543;}['toJSON'](){return{'attributes':Object['keys'](this['attributes'])['map'](_0x988ea4=>({'key':_0x988ea4,'value':JSON['stringify'](this['attributes'][_0x988ea4])}))};}static['fromJSON'](_0x3be0db){const _0x5ee19b=_0x3be0db['attributes']['reduce']((_0x11e8f9,_0x541e09)=>(_0x11e8f9[_0x541e09['key']]=_0x541e09['value']?JSON['parse'](_0x541e09['value']):null,_0x11e8f9),{});return new GetUserResponse(_0x5ee19b);}}const messages$1=/* #__PURE__ -- @preserve */
((()=>{var _0x19f3ea=minimalExports['Reader'],_0x3cb188=minimalExports['Writer'],_0x3861b6=minimalExports['util'],_0xefac1b=minimalExports['roots']['default']||(minimalExports['roots']['default']={});return _0xefac1b['StringStringPacketDataMessage']=(function(){function _0x55e63a(_0x53d30e){if(_0x53d30e){for(var _0x21aa8d=Object['keys'](_0x53d30e),_0x5e22f7=0x0;_0x5e22f7<_0x21aa8d['length'];++_0x5e22f7)null!=_0x53d30e[_0x21aa8d[_0x5e22f7]]&&(this[_0x21aa8d[_0x5e22f7]]=_0x53d30e[_0x21aa8d[_0x5e22f7]]);}}return _0x55e63a['prototype']['data']='',_0x55e63a['prototype']['data1']='',_0x55e63a['create']=function(_0x343997){return new _0x55e63a(_0x343997);},_0x55e63a['encode']=function(_0x5d9619,_0xcba484){return _0xcba484||(_0xcba484=_0x3cb188['create']()),null!=_0x5d9619['data']&&Object['hasOwnProperty']['call'](_0x5d9619,'data')&&_0xcba484['uint32'](0xa)['string'](_0x5d9619['data']),null!=_0x5d9619['data1']&&Object['hasOwnProperty']['call'](_0x5d9619,'data1')&&_0xcba484['uint32'](0x12)['string'](_0x5d9619['data1']),_0xcba484;},_0x55e63a['encodeDelimited']=function(_0xb1c8bb,_0x488ff2){return this['encode'](_0xb1c8bb,_0x488ff2)['ldelim']();},_0x55e63a['decode']=function(_0x577041,_0x2242d3,_0x585606){_0x577041 instanceof _0x19f3ea||(_0x577041=_0x19f3ea['create'](_0x577041));for(var _0x4cd886=void 0x0===_0x2242d3?_0x577041['len']:_0x577041['pos']+_0x2242d3,_0x2f46ee=new _0xefac1b['StringStringPacketDataMessage']();_0x577041['pos']<_0x4cd886;){var _0x2ab8c4=_0x577041['uint32']();if(_0x2ab8c4===_0x585606)break;switch(_0x2ab8c4>>>0x3){case 0x1:_0x2f46ee['data']=_0x577041['string']();break;case 0x2:_0x2f46ee['data1']=_0x577041['string']();break;default:_0x577041['skipType'](0x7&_0x2ab8c4);}}return _0x2f46ee;},_0x55e63a['decodeDelimited']=function(_0x3f0656){return _0x3f0656 instanceof _0x19f3ea||(_0x3f0656=new _0x19f3ea(_0x3f0656)),this['decode'](_0x3f0656,_0x3f0656['uint32']());},_0x55e63a['verify']=function(_0x26d04f){return'object'!=typeof _0x26d04f||null===_0x26d04f?'object\x20expected':null!=_0x26d04f['data']&&_0x26d04f['hasOwnProperty']('data')&&!_0x3861b6['isString'](_0x26d04f['data'])?'data:\x20string\x20expected':null!=_0x26d04f['data1']&&_0x26d04f['hasOwnProperty']('data1')&&!_0x3861b6['isString'](_0x26d04f['data1'])?'data1:\x20string\x20expected':null;},_0x55e63a['fromObject']=function(_0x392049){if(_0x392049 instanceof _0xefac1b['StringStringPacketDataMessage'])return _0x392049;var _0xe7a052=new _0xefac1b['StringStringPacketDataMessage']();return null!=_0x392049['data']&&(_0xe7a052['data']=String(_0x392049['data'])),null!=_0x392049['data1']&&(_0xe7a052['data1']=String(_0x392049['data1'])),_0xe7a052;},_0x55e63a['toObject']=function(_0x1da7b4,_0x56a3b4){_0x56a3b4||(_0x56a3b4={});var _0x56e261={};return _0x56a3b4['defaults']&&(_0x56e261['data']='',_0x56e261['data1']=''),null!=_0x1da7b4['data']&&_0x1da7b4['hasOwnProperty']('data')&&(_0x56e261['data']=_0x1da7b4['data']),null!=_0x1da7b4['data1']&&_0x1da7b4['hasOwnProperty']('data1')&&(_0x56e261['data1']=_0x1da7b4['data1']),_0x56e261;},_0x55e63a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x55e63a['getTypeUrl']=function(_0x5a6e77){return void 0x0===_0x5a6e77&&(_0x5a6e77='type.googleapis.com'),_0x5a6e77+'/StringStringPacketDataMessage';},_0x55e63a;}()),_0xefac1b['StringObjectPacketDataMessage']=(function(){function _0x556a90(_0x5b59ec){if(_0x5b59ec){for(var _0x168cec=Object['keys'](_0x5b59ec),_0x326056=0x0;_0x326056<_0x168cec['length'];++_0x326056)null!=_0x5b59ec[_0x168cec[_0x326056]]&&(this[_0x168cec[_0x326056]]=_0x5b59ec[_0x168cec[_0x326056]]);}}return _0x556a90['prototype']['data']='',_0x556a90['prototype']['data1']='',_0x556a90['create']=function(_0x1a78d5){return new _0x556a90(_0x1a78d5);},_0x556a90['encode']=function(_0x104ce0,_0x27e04f){return _0x27e04f||(_0x27e04f=_0x3cb188['create']()),null!=_0x104ce0['data']&&Object['hasOwnProperty']['call'](_0x104ce0,'data')&&_0x27e04f['uint32'](0xa)['string'](_0x104ce0['data']),null!=_0x104ce0['data1']&&Object['hasOwnProperty']['call'](_0x104ce0,'data1')&&_0x27e04f['uint32'](0x12)['string'](_0x104ce0['data1']),_0x27e04f;},_0x556a90['encodeDelimited']=function(_0x52c169,_0x51b5c5){return this['encode'](_0x52c169,_0x51b5c5)['ldelim']();},_0x556a90['decode']=function(_0x26970a,_0x515475,_0x35030e){_0x26970a instanceof _0x19f3ea||(_0x26970a=_0x19f3ea['create'](_0x26970a));for(var _0x5c8f89=void 0x0===_0x515475?_0x26970a['len']:_0x26970a['pos']+_0x515475,_0x42a26e=new _0xefac1b['StringObjectPacketDataMessage']();_0x26970a['pos']<_0x5c8f89;){var _0x142949=_0x26970a['uint32']();if(_0x142949===_0x35030e)break;switch(_0x142949>>>0x3){case 0x1:_0x42a26e['data']=_0x26970a['string']();break;case 0x2:_0x42a26e['data1']=_0x26970a['string']();break;default:_0x26970a['skipType'](0x7&_0x142949);}}return _0x42a26e;},_0x556a90['decodeDelimited']=function(_0x147f51){return _0x147f51 instanceof _0x19f3ea||(_0x147f51=new _0x19f3ea(_0x147f51)),this['decode'](_0x147f51,_0x147f51['uint32']());},_0x556a90['verify']=function(_0x95d405){return'object'!=typeof _0x95d405||null===_0x95d405?'object\x20expected':null!=_0x95d405['data']&&_0x95d405['hasOwnProperty']('data')&&!_0x3861b6['isString'](_0x95d405['data'])?'data:\x20string\x20expected':null!=_0x95d405['data1']&&_0x95d405['hasOwnProperty']('data1')&&!_0x3861b6['isString'](_0x95d405['data1'])?'data1:\x20string\x20expected':null;},_0x556a90['fromObject']=function(_0x2b2c8f){if(_0x2b2c8f instanceof _0xefac1b['StringObjectPacketDataMessage'])return _0x2b2c8f;var _0x2d310b=new _0xefac1b['StringObjectPacketDataMessage']();return null!=_0x2b2c8f['data']&&(_0x2d310b['data']=String(_0x2b2c8f['data'])),null!=_0x2b2c8f['data1']&&(_0x2d310b['data1']=String(_0x2b2c8f['data1'])),_0x2d310b;},_0x556a90['toObject']=function(_0x486d4c,_0x362cbe){_0x362cbe||(_0x362cbe={});var _0x1c2291={};return _0x362cbe['defaults']&&(_0x1c2291['data']='',_0x1c2291['data1']=''),null!=_0x486d4c['data']&&_0x486d4c['hasOwnProperty']('data')&&(_0x1c2291['data']=_0x486d4c['data']),null!=_0x486d4c['data1']&&_0x486d4c['hasOwnProperty']('data1')&&(_0x1c2291['data1']=_0x486d4c['data1']),_0x1c2291;},_0x556a90['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x556a90['getTypeUrl']=function(_0x415bb7){return void 0x0===_0x415bb7&&(_0x415bb7='type.googleapis.com'),_0x415bb7+'/StringObjectPacketDataMessage';},_0x556a90;}()),_0xefac1b['StringNumberPacketDataMessage']=(function(){function _0x1d06a2(_0x2d2a5c){if(_0x2d2a5c){for(var _0xc4a298=Object['keys'](_0x2d2a5c),_0x15d420=0x0;_0x15d420<_0xc4a298['length'];++_0x15d420)null!=_0x2d2a5c[_0xc4a298[_0x15d420]]&&(this[_0xc4a298[_0x15d420]]=_0x2d2a5c[_0xc4a298[_0x15d420]]);}}return _0x1d06a2['prototype']['data']='',_0x1d06a2['prototype']['data1']=0x0,_0x1d06a2['create']=function(_0xacb371){return new _0x1d06a2(_0xacb371);},_0x1d06a2['encode']=function(_0x4ea339,_0xc8bdae){return _0xc8bdae||(_0xc8bdae=_0x3cb188['create']()),null!=_0x4ea339['data']&&Object['hasOwnProperty']['call'](_0x4ea339,'data')&&_0xc8bdae['uint32'](0xa)['string'](_0x4ea339['data']),null!=_0x4ea339['data1']&&Object['hasOwnProperty']['call'](_0x4ea339,'data1')&&_0xc8bdae['uint32'](0x10)['uint32'](_0x4ea339['data1']),_0xc8bdae;},_0x1d06a2['encodeDelimited']=function(_0xbe0a4d,_0x1c0a34){return this['encode'](_0xbe0a4d,_0x1c0a34)['ldelim']();},_0x1d06a2['decode']=function(_0x140d03,_0x224433,_0x39cc32){_0x140d03 instanceof _0x19f3ea||(_0x140d03=_0x19f3ea['create'](_0x140d03));for(var _0x467aab=void 0x0===_0x224433?_0x140d03['len']:_0x140d03['pos']+_0x224433,_0x2d03e0=new _0xefac1b['StringNumberPacketDataMessage']();_0x140d03['pos']<_0x467aab;){var _0x2e7bcf=_0x140d03['uint32']();if(_0x2e7bcf===_0x39cc32)break;switch(_0x2e7bcf>>>0x3){case 0x1:_0x2d03e0['data']=_0x140d03['string']();break;case 0x2:_0x2d03e0['data1']=_0x140d03['uint32']();break;default:_0x140d03['skipType'](0x7&_0x2e7bcf);}}return _0x2d03e0;},_0x1d06a2['decodeDelimited']=function(_0x54ec65){return _0x54ec65 instanceof _0x19f3ea||(_0x54ec65=new _0x19f3ea(_0x54ec65)),this['decode'](_0x54ec65,_0x54ec65['uint32']());},_0x1d06a2['verify']=function(_0x14b4a5){return'object'!=typeof _0x14b4a5||null===_0x14b4a5?'object\x20expected':null!=_0x14b4a5['data']&&_0x14b4a5['hasOwnProperty']('data')&&!_0x3861b6['isString'](_0x14b4a5['data'])?'data:\x20string\x20expected':null!=_0x14b4a5['data1']&&_0x14b4a5['hasOwnProperty']('data1')&&!_0x3861b6['isInteger'](_0x14b4a5['data1'])?'data1:\x20integer\x20expected':null;},_0x1d06a2['fromObject']=function(_0x87e271){if(_0x87e271 instanceof _0xefac1b['StringNumberPacketDataMessage'])return _0x87e271;var _0x54a3fc=new _0xefac1b['StringNumberPacketDataMessage']();return null!=_0x87e271['data']&&(_0x54a3fc['data']=String(_0x87e271['data'])),null!=_0x87e271['data1']&&(_0x54a3fc['data1']=_0x87e271['data1']>>>0x0),_0x54a3fc;},_0x1d06a2['toObject']=function(_0x307260,_0x355dba){_0x355dba||(_0x355dba={});var _0x30c0f2={};return _0x355dba['defaults']&&(_0x30c0f2['data']='',_0x30c0f2['data1']=0x0),null!=_0x307260['data']&&_0x307260['hasOwnProperty']('data')&&(_0x30c0f2['data']=_0x307260['data']),null!=_0x307260['data1']&&_0x307260['hasOwnProperty']('data1')&&(_0x30c0f2['data1']=_0x307260['data1']),_0x30c0f2;},_0x1d06a2['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1d06a2['getTypeUrl']=function(_0xc3e493){return void 0x0===_0xc3e493&&(_0xc3e493='type.googleapis.com'),_0xc3e493+'/StringNumberPacketDataMessage';},_0x1d06a2;}()),_0xefac1b['StringBytesPacketDataMessage']=(function(){function _0x5851ae(_0x2f947e){if(_0x2f947e){for(var _0x382cc2=Object['keys'](_0x2f947e),_0x563a42=0x0;_0x563a42<_0x382cc2['length'];++_0x563a42)null!=_0x2f947e[_0x382cc2[_0x563a42]]&&(this[_0x382cc2[_0x563a42]]=_0x2f947e[_0x382cc2[_0x563a42]]);}}return _0x5851ae['prototype']['data']='',_0x5851ae['prototype']['data1']=_0x3861b6['newBuffer']([]),_0x5851ae['create']=function(_0x5c0e48){return new _0x5851ae(_0x5c0e48);},_0x5851ae['encode']=function(_0x5a61c3,_0x380c22){return _0x380c22||(_0x380c22=_0x3cb188['create']()),null!=_0x5a61c3['data']&&Object['hasOwnProperty']['call'](_0x5a61c3,'data')&&_0x380c22['uint32'](0xa)['string'](_0x5a61c3['data']),null!=_0x5a61c3['data1']&&Object['hasOwnProperty']['call'](_0x5a61c3,'data1')&&_0x380c22['uint32'](0x12)['bytes'](_0x5a61c3['data1']),_0x380c22;},_0x5851ae['encodeDelimited']=function(_0x2d0119,_0x3be95c){return this['encode'](_0x2d0119,_0x3be95c)['ldelim']();},_0x5851ae['decode']=function(_0x290428,_0xd2180b,_0x3a2495){_0x290428 instanceof _0x19f3ea||(_0x290428=_0x19f3ea['create'](_0x290428));for(var _0x4d1b3d=void 0x0===_0xd2180b?_0x290428['len']:_0x290428['pos']+_0xd2180b,_0x22ed25=new _0xefac1b['StringBytesPacketDataMessage']();_0x290428['pos']<_0x4d1b3d;){var _0x5b06cc=_0x290428['uint32']();if(_0x5b06cc===_0x3a2495)break;switch(_0x5b06cc>>>0x3){case 0x1:_0x22ed25['data']=_0x290428['string']();break;case 0x2:_0x22ed25['data1']=_0x290428['bytes']();break;default:_0x290428['skipType'](0x7&_0x5b06cc);}}return _0x22ed25;},_0x5851ae['decodeDelimited']=function(_0x44dda6){return _0x44dda6 instanceof _0x19f3ea||(_0x44dda6=new _0x19f3ea(_0x44dda6)),this['decode'](_0x44dda6,_0x44dda6['uint32']());},_0x5851ae['verify']=function(_0x18c95a){return'object'!=typeof _0x18c95a||null===_0x18c95a?'object\x20expected':null!=_0x18c95a['data']&&_0x18c95a['hasOwnProperty']('data')&&!_0x3861b6['isString'](_0x18c95a['data'])?'data:\x20string\x20expected':null!=_0x18c95a['data1']&&_0x18c95a['hasOwnProperty']('data1')&&!(_0x18c95a['data1']&&'number'==typeof _0x18c95a['data1']['length']||_0x3861b6['isString'](_0x18c95a['data1']))?'data1:\x20buffer\x20expected':null;},_0x5851ae['fromObject']=function(_0x29cadb){if(_0x29cadb instanceof _0xefac1b['StringBytesPacketDataMessage'])return _0x29cadb;var _0x466369=new _0xefac1b['StringBytesPacketDataMessage']();return null!=_0x29cadb['data']&&(_0x466369['data']=String(_0x29cadb['data'])),null!=_0x29cadb['data1']&&('string'==typeof _0x29cadb['data1']?_0x3861b6['base64']['decode'](_0x29cadb['data1'],_0x466369['data1']=_0x3861b6['newBuffer'](_0x3861b6['base64']['length'](_0x29cadb['data1'])),0x0):_0x29cadb['data1']['length']>=0x0&&(_0x466369['data1']=_0x29cadb['data1'])),_0x466369;},_0x5851ae['toObject']=function(_0x204c03,_0x49d50e){_0x49d50e||(_0x49d50e={});var _0x2e21e2={};return _0x49d50e['defaults']&&(_0x2e21e2['data']='',_0x49d50e['bytes']===String?_0x2e21e2['data1']='':(_0x2e21e2['data1']=[],_0x49d50e['bytes']!==Array&&(_0x2e21e2['data1']=_0x3861b6['newBuffer'](_0x2e21e2['data1'])))),null!=_0x204c03['data']&&_0x204c03['hasOwnProperty']('data')&&(_0x2e21e2['data']=_0x204c03['data']),null!=_0x204c03['data1']&&_0x204c03['hasOwnProperty']('data1')&&(_0x2e21e2['data1']=_0x49d50e['bytes']===String?_0x3861b6['base64']['encode'](_0x204c03['data1'],0x0,_0x204c03['data1']['length']):_0x49d50e['bytes']===Array?Array['prototype']['slice']['call'](_0x204c03['data1']):_0x204c03['data1']),_0x2e21e2;},_0x5851ae['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5851ae['getTypeUrl']=function(_0x202713){return void 0x0===_0x202713&&(_0x202713='type.googleapis.com'),_0x202713+'/StringBytesPacketDataMessage';},_0x5851ae;}()),_0xefac1b['PacketOptionsMessage']=(function(){function _0x5ea1c8(_0x5c2373){if(this['rooms']=[],this['except']=[],_0x5c2373){for(var _0x512c9c=Object['keys'](_0x5c2373),_0x430545=0x0;_0x430545<_0x512c9c['length'];++_0x430545)null!=_0x5c2373[_0x512c9c[_0x430545]]&&(this[_0x512c9c[_0x430545]]=_0x5c2373[_0x512c9c[_0x430545]]);}}return _0x5ea1c8['prototype']['flags']='',_0x5ea1c8['prototype']['rooms']=_0x3861b6['emptyArray'],_0x5ea1c8['prototype']['except']=_0x3861b6['emptyArray'],_0x5ea1c8['create']=function(_0x262693){return new _0x5ea1c8(_0x262693);},_0x5ea1c8['encode']=function(_0x59fd55,_0x52d557){if(_0x52d557||(_0x52d557=_0x3cb188['create']()),null!=_0x59fd55['flags']&&Object['hasOwnProperty']['call'](_0x59fd55,'flags')&&_0x52d557['uint32'](0xa)['string'](_0x59fd55['flags']),null!=_0x59fd55['rooms']&&_0x59fd55['rooms']['length']){for(var _0x192456=0x0;_0x192456<_0x59fd55['rooms']['length'];++_0x192456)_0x52d557['uint32'](0x12)['string'](_0x59fd55['rooms'][_0x192456]);}if(null!=_0x59fd55['except']&&_0x59fd55['except']['length']){for(_0x192456=0x0;_0x192456<_0x59fd55['except']['length'];++_0x192456)_0x52d557['uint32'](0x1a)['string'](_0x59fd55['except'][_0x192456]);}return _0x52d557;},_0x5ea1c8['encodeDelimited']=function(_0x3519ed,_0x36fc98){return this['encode'](_0x3519ed,_0x36fc98)['ldelim']();},_0x5ea1c8['decode']=function(_0x1759e6,_0x10f2f3,_0x3f3b14){_0x1759e6 instanceof _0x19f3ea||(_0x1759e6=_0x19f3ea['create'](_0x1759e6));for(var _0x1955f9=void 0x0===_0x10f2f3?_0x1759e6['len']:_0x1759e6['pos']+_0x10f2f3,_0x4f661b=new _0xefac1b['PacketOptionsMessage']();_0x1759e6['pos']<_0x1955f9;){var _0x1993f5=_0x1759e6['uint32']();if(_0x1993f5===_0x3f3b14)break;switch(_0x1993f5>>>0x3){case 0x1:_0x4f661b['flags']=_0x1759e6['string']();break;case 0x2:_0x4f661b['rooms']&&_0x4f661b['rooms']['length']||(_0x4f661b['rooms']=[]),_0x4f661b['rooms']['push'](_0x1759e6['string']());break;case 0x3:_0x4f661b['except']&&_0x4f661b['except']['length']||(_0x4f661b['except']=[]),_0x4f661b['except']['push'](_0x1759e6['string']());break;default:_0x1759e6['skipType'](0x7&_0x1993f5);}}return _0x4f661b;},_0x5ea1c8['decodeDelimited']=function(_0x1a059a){return _0x1a059a instanceof _0x19f3ea||(_0x1a059a=new _0x19f3ea(_0x1a059a)),this['decode'](_0x1a059a,_0x1a059a['uint32']());},_0x5ea1c8['verify']=function(_0x226832){if('object'!=typeof _0x226832||null===_0x226832)return'object\x20expected';if(null!=_0x226832['flags']&&_0x226832['hasOwnProperty']('flags')&&!_0x3861b6['isString'](_0x226832['flags']))return'flags:\x20string\x20expected';if(null!=_0x226832['rooms']&&_0x226832['hasOwnProperty']('rooms')){if(!Array['isArray'](_0x226832['rooms']))return'rooms:\x20array\x20expected';for(var _0x5ba6ca=0x0;_0x5ba6ca<_0x226832['rooms']['length'];++_0x5ba6ca)if(!_0x3861b6['isString'](_0x226832['rooms'][_0x5ba6ca]))return'rooms:\x20string[]\x20expected';}if(null!=_0x226832['except']&&_0x226832['hasOwnProperty']('except')){if(!Array['isArray'](_0x226832['except']))return'except:\x20array\x20expected';for(_0x5ba6ca=0x0;_0x5ba6ca<_0x226832['except']['length'];++_0x5ba6ca)if(!_0x3861b6['isString'](_0x226832['except'][_0x5ba6ca]))return'except:\x20string[]\x20expected';}return null;},_0x5ea1c8['fromObject']=function(_0xb703f){if(_0xb703f instanceof _0xefac1b['PacketOptionsMessage'])return _0xb703f;var _0x4d3149=new _0xefac1b['PacketOptionsMessage']();if(null!=_0xb703f['flags']&&(_0x4d3149['flags']=String(_0xb703f['flags'])),_0xb703f['rooms']){if(!Array['isArray'](_0xb703f['rooms']))throw TypeError('.PacketOptionsMessage.rooms:\x20array\x20expected');_0x4d3149['rooms']=[];for(var _0x5f5af2=0x0;_0x5f5af2<_0xb703f['rooms']['length'];++_0x5f5af2)_0x4d3149['rooms'][_0x5f5af2]=String(_0xb703f['rooms'][_0x5f5af2]);}if(_0xb703f['except']){if(!Array['isArray'](_0xb703f['except']))throw TypeError('.PacketOptionsMessage.except:\x20array\x20expected');for(_0x4d3149['except']=[],_0x5f5af2=0x0;_0x5f5af2<_0xb703f['except']['length'];++_0x5f5af2)_0x4d3149['except'][_0x5f5af2]=String(_0xb703f['except'][_0x5f5af2]);}return _0x4d3149;},_0x5ea1c8['toObject']=function(_0x19b917,_0x16c277){_0x16c277||(_0x16c277={});var _0x56b340={};if((_0x16c277['arrays']||_0x16c277['defaults'])&&(_0x56b340['rooms']=[],_0x56b340['except']=[]),_0x16c277['defaults']&&(_0x56b340['flags']=''),null!=_0x19b917['flags']&&_0x19b917['hasOwnProperty']('flags')&&(_0x56b340['flags']=_0x19b917['flags']),_0x19b917['rooms']&&_0x19b917['rooms']['length']){_0x56b340['rooms']=[];for(var _0x35e5e0=0x0;_0x35e5e0<_0x19b917['rooms']['length'];++_0x35e5e0)_0x56b340['rooms'][_0x35e5e0]=_0x19b917['rooms'][_0x35e5e0];}if(_0x19b917['except']&&_0x19b917['except']['length']){for(_0x56b340['except']=[],_0x35e5e0=0x0;_0x35e5e0<_0x19b917['except']['length'];++_0x35e5e0)_0x56b340['except'][_0x35e5e0]=_0x19b917['except'][_0x35e5e0];}return _0x56b340;},_0x5ea1c8['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5ea1c8['getTypeUrl']=function(_0x1a498a){return void 0x0===_0x1a498a&&(_0x1a498a='type.googleapis.com'),_0x1a498a+'/PacketOptionsMessage';},_0x5ea1c8;}()),_0xefac1b['PacketMessage']=(function(){function _0x272760(_0x20e36e){if(_0x20e36e){for(var _0x39cc72=Object['keys'](_0x20e36e),_0x258e8e=0x0;_0x258e8e<_0x39cc72['length'];++_0x258e8e)null!=_0x20e36e[_0x39cc72[_0x258e8e]]&&(this[_0x39cc72[_0x258e8e]]=_0x20e36e[_0x39cc72[_0x258e8e]]);}}return _0x272760['prototype']['type']=0x0,_0x272760['prototype']['id']=0x0,_0x272760['prototype']['nsp']='',_0x272760['prototype']['data']=_0x3861b6['newBuffer']([]),_0x272760['prototype']['options']=_0x3861b6['newBuffer']([]),_0x272760['create']=function(_0xbf9ebb){return new _0x272760(_0xbf9ebb);},_0x272760['encode']=function(_0x5c8efa,_0x1fcbc0){return _0x1fcbc0||(_0x1fcbc0=_0x3cb188['create']()),null!=_0x5c8efa['type']&&Object['hasOwnProperty']['call'](_0x5c8efa,'type')&&_0x1fcbc0['uint32'](0x8)['uint32'](_0x5c8efa['type']),null!=_0x5c8efa['id']&&Object['hasOwnProperty']['call'](_0x5c8efa,'id')&&_0x1fcbc0['uint32'](0x10)['uint32'](_0x5c8efa['id']),null!=_0x5c8efa['nsp']&&Object['hasOwnProperty']['call'](_0x5c8efa,'nsp')&&_0x1fcbc0['uint32'](0x1a)['string'](_0x5c8efa['nsp']),null!=_0x5c8efa['data']&&Object['hasOwnProperty']['call'](_0x5c8efa,'data')&&_0x1fcbc0['uint32'](0x22)['bytes'](_0x5c8efa['data']),null!=_0x5c8efa['options']&&Object['hasOwnProperty']['call'](_0x5c8efa,'options')&&_0x1fcbc0['uint32'](0x2a)['bytes'](_0x5c8efa['options']),_0x1fcbc0;},_0x272760['encodeDelimited']=function(_0x2b97b9,_0x8b2a9b){return this['encode'](_0x2b97b9,_0x8b2a9b)['ldelim']();},_0x272760['decode']=function(_0x26c77e,_0x534c6c,_0xa6c087){_0x26c77e instanceof _0x19f3ea||(_0x26c77e=_0x19f3ea['create'](_0x26c77e));for(var _0x179064=void 0x0===_0x534c6c?_0x26c77e['len']:_0x26c77e['pos']+_0x534c6c,_0x498305=new _0xefac1b['PacketMessage']();_0x26c77e['pos']<_0x179064;){var _0x29d398=_0x26c77e['uint32']();if(_0x29d398===_0xa6c087)break;switch(_0x29d398>>>0x3){case 0x1:_0x498305['type']=_0x26c77e['uint32']();break;case 0x2:_0x498305['id']=_0x26c77e['uint32']();break;case 0x3:_0x498305['nsp']=_0x26c77e['string']();break;case 0x4:_0x498305['data']=_0x26c77e['bytes']();break;case 0x5:_0x498305['options']=_0x26c77e['bytes']();break;default:_0x26c77e['skipType'](0x7&_0x29d398);}}return _0x498305;},_0x272760['decodeDelimited']=function(_0x208839){return _0x208839 instanceof _0x19f3ea||(_0x208839=new _0x19f3ea(_0x208839)),this['decode'](_0x208839,_0x208839['uint32']());},_0x272760['verify']=function(_0x2b10aa){return'object'!=typeof _0x2b10aa||null===_0x2b10aa?'object\x20expected':null!=_0x2b10aa['type']&&_0x2b10aa['hasOwnProperty']('type')&&!_0x3861b6['isInteger'](_0x2b10aa['type'])?'type:\x20integer\x20expected':null!=_0x2b10aa['id']&&_0x2b10aa['hasOwnProperty']('id')&&!_0x3861b6['isInteger'](_0x2b10aa['id'])?'id:\x20integer\x20expected':null!=_0x2b10aa['nsp']&&_0x2b10aa['hasOwnProperty']('nsp')&&!_0x3861b6['isString'](_0x2b10aa['nsp'])?'nsp:\x20string\x20expected':null!=_0x2b10aa['data']&&_0x2b10aa['hasOwnProperty']('data')&&!(_0x2b10aa['data']&&'number'==typeof _0x2b10aa['data']['length']||_0x3861b6['isString'](_0x2b10aa['data']))?'data:\x20buffer\x20expected':null!=_0x2b10aa['options']&&_0x2b10aa['hasOwnProperty']('options')&&!(_0x2b10aa['options']&&'number'==typeof _0x2b10aa['options']['length']||_0x3861b6['isString'](_0x2b10aa['options']))?'options:\x20buffer\x20expected':null;},_0x272760['fromObject']=function(_0x26ce99){if(_0x26ce99 instanceof _0xefac1b['PacketMessage'])return _0x26ce99;var _0x196330=new _0xefac1b['PacketMessage']();return null!=_0x26ce99['type']&&(_0x196330['type']=_0x26ce99['type']>>>0x0),null!=_0x26ce99['id']&&(_0x196330['id']=_0x26ce99['id']>>>0x0),null!=_0x26ce99['nsp']&&(_0x196330['nsp']=String(_0x26ce99['nsp'])),null!=_0x26ce99['data']&&('string'==typeof _0x26ce99['data']?_0x3861b6['base64']['decode'](_0x26ce99['data'],_0x196330['data']=_0x3861b6['newBuffer'](_0x3861b6['base64']['length'](_0x26ce99['data'])),0x0):_0x26ce99['data']['length']>=0x0&&(_0x196330['data']=_0x26ce99['data'])),null!=_0x26ce99['options']&&('string'==typeof _0x26ce99['options']?_0x3861b6['base64']['decode'](_0x26ce99['options'],_0x196330['options']=_0x3861b6['newBuffer'](_0x3861b6['base64']['length'](_0x26ce99['options'])),0x0):_0x26ce99['options']['length']>=0x0&&(_0x196330['options']=_0x26ce99['options'])),_0x196330;},_0x272760['toObject']=function(_0x5120c0,_0x5db87f){_0x5db87f||(_0x5db87f={});var _0x3a34f0={};return _0x5db87f['defaults']&&(_0x3a34f0['type']=0x0,_0x3a34f0['id']=0x0,_0x3a34f0['nsp']='',_0x5db87f['bytes']===String?_0x3a34f0['data']='':(_0x3a34f0['data']=[],_0x5db87f['bytes']!==Array&&(_0x3a34f0['data']=_0x3861b6['newBuffer'](_0x3a34f0['data']))),_0x5db87f['bytes']===String?_0x3a34f0['options']='':(_0x3a34f0['options']=[],_0x5db87f['bytes']!==Array&&(_0x3a34f0['options']=_0x3861b6['newBuffer'](_0x3a34f0['options'])))),null!=_0x5120c0['type']&&_0x5120c0['hasOwnProperty']('type')&&(_0x3a34f0['type']=_0x5120c0['type']),null!=_0x5120c0['id']&&_0x5120c0['hasOwnProperty']('id')&&(_0x3a34f0['id']=_0x5120c0['id']),null!=_0x5120c0['nsp']&&_0x5120c0['hasOwnProperty']('nsp')&&(_0x3a34f0['nsp']=_0x5120c0['nsp']),null!=_0x5120c0['data']&&_0x5120c0['hasOwnProperty']('data')&&(_0x3a34f0['data']=_0x5db87f['bytes']===String?_0x3861b6['base64']['encode'](_0x5120c0['data'],0x0,_0x5120c0['data']['length']):_0x5db87f['bytes']===Array?Array['prototype']['slice']['call'](_0x5120c0['data']):_0x5120c0['data']),null!=_0x5120c0['options']&&_0x5120c0['hasOwnProperty']('options')&&(_0x3a34f0['options']=_0x5db87f['bytes']===String?_0x3861b6['base64']['encode'](_0x5120c0['options'],0x0,_0x5120c0['options']['length']):_0x5db87f['bytes']===Array?Array['prototype']['slice']['call'](_0x5120c0['options']):_0x5120c0['options']),_0x3a34f0;},_0x272760['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x272760['getTypeUrl']=function(_0x36e115){return void 0x0===_0x36e115&&(_0x36e115='type.googleapis.com'),_0x36e115+'/PacketMessage';},_0x272760;}()),_0xefac1b['ObjectObjectPacketDataMessage']=(function(){function _0x281611(_0x1e3082){if(_0x1e3082){for(var _0x23294e=Object['keys'](_0x1e3082),_0x1e97e4=0x0;_0x1e97e4<_0x23294e['length'];++_0x1e97e4)null!=_0x1e3082[_0x23294e[_0x1e97e4]]&&(this[_0x23294e[_0x1e97e4]]=_0x1e3082[_0x23294e[_0x1e97e4]]);}}return _0x281611['prototype']['data']='',_0x281611['prototype']['data1']='',_0x281611['create']=function(_0x3dd6d6){return new _0x281611(_0x3dd6d6);},_0x281611['encode']=function(_0x40bc5c,_0x7dee9c){return _0x7dee9c||(_0x7dee9c=_0x3cb188['create']()),null!=_0x40bc5c['data']&&Object['hasOwnProperty']['call'](_0x40bc5c,'data')&&_0x7dee9c['uint32'](0xa)['string'](_0x40bc5c['data']),null!=_0x40bc5c['data1']&&Object['hasOwnProperty']['call'](_0x40bc5c,'data1')&&_0x7dee9c['uint32'](0x12)['string'](_0x40bc5c['data1']),_0x7dee9c;},_0x281611['encodeDelimited']=function(_0x1cd94c,_0x31513a){return this['encode'](_0x1cd94c,_0x31513a)['ldelim']();},_0x281611['decode']=function(_0x2605d7,_0x4b0de0,_0xd8684c){_0x2605d7 instanceof _0x19f3ea||(_0x2605d7=_0x19f3ea['create'](_0x2605d7));for(var _0x17d02c=void 0x0===_0x4b0de0?_0x2605d7['len']:_0x2605d7['pos']+_0x4b0de0,_0x2c72d2=new _0xefac1b['ObjectObjectPacketDataMessage']();_0x2605d7['pos']<_0x17d02c;){var _0xca59e7=_0x2605d7['uint32']();if(_0xca59e7===_0xd8684c)break;switch(_0xca59e7>>>0x3){case 0x1:_0x2c72d2['data']=_0x2605d7['string']();break;case 0x2:_0x2c72d2['data1']=_0x2605d7['string']();break;default:_0x2605d7['skipType'](0x7&_0xca59e7);}}return _0x2c72d2;},_0x281611['decodeDelimited']=function(_0x369804){return _0x369804 instanceof _0x19f3ea||(_0x369804=new _0x19f3ea(_0x369804)),this['decode'](_0x369804,_0x369804['uint32']());},_0x281611['verify']=function(_0x56064f){return'object'!=typeof _0x56064f||null===_0x56064f?'object\x20expected':null!=_0x56064f['data']&&_0x56064f['hasOwnProperty']('data')&&!_0x3861b6['isString'](_0x56064f['data'])?'data:\x20string\x20expected':null!=_0x56064f['data1']&&_0x56064f['hasOwnProperty']('data1')&&!_0x3861b6['isString'](_0x56064f['data1'])?'data1:\x20string\x20expected':null;},_0x281611['fromObject']=function(_0x2ed435){if(_0x2ed435 instanceof _0xefac1b['ObjectObjectPacketDataMessage'])return _0x2ed435;var _0x46efe6=new _0xefac1b['ObjectObjectPacketDataMessage']();return null!=_0x2ed435['data']&&(_0x46efe6['data']=String(_0x2ed435['data'])),null!=_0x2ed435['data1']&&(_0x46efe6['data1']=String(_0x2ed435['data1'])),_0x46efe6;},_0x281611['toObject']=function(_0xb50cf7,_0x37aa3a){_0x37aa3a||(_0x37aa3a={});var _0x5916a5={};return _0x37aa3a['defaults']&&(_0x5916a5['data']='',_0x5916a5['data1']=''),null!=_0xb50cf7['data']&&_0xb50cf7['hasOwnProperty']('data')&&(_0x5916a5['data']=_0xb50cf7['data']),null!=_0xb50cf7['data1']&&_0xb50cf7['hasOwnProperty']('data1')&&(_0x5916a5['data1']=_0xb50cf7['data1']),_0x5916a5;},_0x281611['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x281611['getTypeUrl']=function(_0x1bb6cd){return void 0x0===_0x1bb6cd&&(_0x1bb6cd='type.googleapis.com'),_0x1bb6cd+'/ObjectObjectPacketDataMessage';},_0x281611;}()),_0xefac1b['ObjectBufferPacketDataMessage']=(function(){function _0x5d1003(_0x4dc0fd){if(_0x4dc0fd){for(var _0x3d33ba=Object['keys'](_0x4dc0fd),_0x281d86=0x0;_0x281d86<_0x3d33ba['length'];++_0x281d86)null!=_0x4dc0fd[_0x3d33ba[_0x281d86]]&&(this[_0x3d33ba[_0x281d86]]=_0x4dc0fd[_0x3d33ba[_0x281d86]]);}}return _0x5d1003['prototype']['data']='',_0x5d1003['prototype']['data1']=_0x3861b6['newBuffer']([]),_0x5d1003['create']=function(_0x290636){return new _0x5d1003(_0x290636);},_0x5d1003['encode']=function(_0x175615,_0x34a4c0){return _0x34a4c0||(_0x34a4c0=_0x3cb188['create']()),null!=_0x175615['data']&&Object['hasOwnProperty']['call'](_0x175615,'data')&&_0x34a4c0['uint32'](0xa)['string'](_0x175615['data']),null!=_0x175615['data1']&&Object['hasOwnProperty']['call'](_0x175615,'data1')&&_0x34a4c0['uint32'](0x12)['bytes'](_0x175615['data1']),_0x34a4c0;},_0x5d1003['encodeDelimited']=function(_0x11ffd7,_0x56a261){return this['encode'](_0x11ffd7,_0x56a261)['ldelim']();},_0x5d1003['decode']=function(_0x22fb26,_0x2d2cca,_0x69c6c4){_0x22fb26 instanceof _0x19f3ea||(_0x22fb26=_0x19f3ea['create'](_0x22fb26));for(var _0x31abf4=void 0x0===_0x2d2cca?_0x22fb26['len']:_0x22fb26['pos']+_0x2d2cca,_0x3cef16=new _0xefac1b['ObjectBufferPacketDataMessage']();_0x22fb26['pos']<_0x31abf4;){var _0x10ee7f=_0x22fb26['uint32']();if(_0x10ee7f===_0x69c6c4)break;switch(_0x10ee7f>>>0x3){case 0x1:_0x3cef16['data']=_0x22fb26['string']();break;case 0x2:_0x3cef16['data1']=_0x22fb26['bytes']();break;default:_0x22fb26['skipType'](0x7&_0x10ee7f);}}return _0x3cef16;},_0x5d1003['decodeDelimited']=function(_0x5bb940){return _0x5bb940 instanceof _0x19f3ea||(_0x5bb940=new _0x19f3ea(_0x5bb940)),this['decode'](_0x5bb940,_0x5bb940['uint32']());},_0x5d1003['verify']=function(_0x30f4e5){return'object'!=typeof _0x30f4e5||null===_0x30f4e5?'object\x20expected':null!=_0x30f4e5['data']&&_0x30f4e5['hasOwnProperty']('data')&&!_0x3861b6['isString'](_0x30f4e5['data'])?'data:\x20string\x20expected':null!=_0x30f4e5['data1']&&_0x30f4e5['hasOwnProperty']('data1')&&!(_0x30f4e5['data1']&&'number'==typeof _0x30f4e5['data1']['length']||_0x3861b6['isString'](_0x30f4e5['data1']))?'data1:\x20buffer\x20expected':null;},_0x5d1003['fromObject']=function(_0xc5111c){if(_0xc5111c instanceof _0xefac1b['ObjectBufferPacketDataMessage'])return _0xc5111c;var _0x4b854c=new _0xefac1b['ObjectBufferPacketDataMessage']();return null!=_0xc5111c['data']&&(_0x4b854c['data']=String(_0xc5111c['data'])),null!=_0xc5111c['data1']&&('string'==typeof _0xc5111c['data1']?_0x3861b6['base64']['decode'](_0xc5111c['data1'],_0x4b854c['data1']=_0x3861b6['newBuffer'](_0x3861b6['base64']['length'](_0xc5111c['data1'])),0x0):_0xc5111c['data1']['length']>=0x0&&(_0x4b854c['data1']=_0xc5111c['data1'])),_0x4b854c;},_0x5d1003['toObject']=function(_0xb08a37,_0x9b6946){_0x9b6946||(_0x9b6946={});var _0x4a0e78={};return _0x9b6946['defaults']&&(_0x4a0e78['data']='',_0x9b6946['bytes']===String?_0x4a0e78['data1']='':(_0x4a0e78['data1']=[],_0x9b6946['bytes']!==Array&&(_0x4a0e78['data1']=_0x3861b6['newBuffer'](_0x4a0e78['data1'])))),null!=_0xb08a37['data']&&_0xb08a37['hasOwnProperty']('data')&&(_0x4a0e78['data']=_0xb08a37['data']),null!=_0xb08a37['data1']&&_0xb08a37['hasOwnProperty']('data1')&&(_0x4a0e78['data1']=_0x9b6946['bytes']===String?_0x3861b6['base64']['encode'](_0xb08a37['data1'],0x0,_0xb08a37['data1']['length']):_0x9b6946['bytes']===Array?Array['prototype']['slice']['call'](_0xb08a37['data1']):_0xb08a37['data1']),_0x4a0e78;},_0x5d1003['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5d1003['getTypeUrl']=function(_0x115d60){return void 0x0===_0x115d60&&(_0x115d60='type.googleapis.com'),_0x115d60+'/ObjectBufferPacketDataMessage';},_0x5d1003;}()),_0xefac1b['NumberStringPacketDataMessage']=(function(){function _0x1a73ba(_0xdd3305){if(_0xdd3305){for(var _0x320d3a=Object['keys'](_0xdd3305),_0x3b959b=0x0;_0x3b959b<_0x320d3a['length'];++_0x3b959b)null!=_0xdd3305[_0x320d3a[_0x3b959b]]&&(this[_0x320d3a[_0x3b959b]]=_0xdd3305[_0x320d3a[_0x3b959b]]);}}return _0x1a73ba['prototype']['data']=0x0,_0x1a73ba['prototype']['data1']='',_0x1a73ba['create']=function(_0x42946e){return new _0x1a73ba(_0x42946e);},_0x1a73ba['encode']=function(_0x138a90,_0x3aef4d){return _0x3aef4d||(_0x3aef4d=_0x3cb188['create']()),null!=_0x138a90['data']&&Object['hasOwnProperty']['call'](_0x138a90,'data')&&_0x3aef4d['uint32'](0x8)['uint32'](_0x138a90['data']),null!=_0x138a90['data1']&&Object['hasOwnProperty']['call'](_0x138a90,'data1')&&_0x3aef4d['uint32'](0x12)['string'](_0x138a90['data1']),_0x3aef4d;},_0x1a73ba['encodeDelimited']=function(_0x179e57,_0x2cac40){return this['encode'](_0x179e57,_0x2cac40)['ldelim']();},_0x1a73ba['decode']=function(_0x2a51bf,_0x24c548,_0x57d91e){_0x2a51bf instanceof _0x19f3ea||(_0x2a51bf=_0x19f3ea['create'](_0x2a51bf));for(var _0x3d36a4=void 0x0===_0x24c548?_0x2a51bf['len']:_0x2a51bf['pos']+_0x24c548,_0x178fa5=new _0xefac1b['NumberStringPacketDataMessage']();_0x2a51bf['pos']<_0x3d36a4;){var _0x149aa4=_0x2a51bf['uint32']();if(_0x149aa4===_0x57d91e)break;switch(_0x149aa4>>>0x3){case 0x1:_0x178fa5['data']=_0x2a51bf['uint32']();break;case 0x2:_0x178fa5['data1']=_0x2a51bf['string']();break;default:_0x2a51bf['skipType'](0x7&_0x149aa4);}}return _0x178fa5;},_0x1a73ba['decodeDelimited']=function(_0x99450b){return _0x99450b instanceof _0x19f3ea||(_0x99450b=new _0x19f3ea(_0x99450b)),this['decode'](_0x99450b,_0x99450b['uint32']());},_0x1a73ba['verify']=function(_0x7791e0){return'object'!=typeof _0x7791e0||null===_0x7791e0?'object\x20expected':null!=_0x7791e0['data']&&_0x7791e0['hasOwnProperty']('data')&&!_0x3861b6['isInteger'](_0x7791e0['data'])?'data:\x20integer\x20expected':null!=_0x7791e0['data1']&&_0x7791e0['hasOwnProperty']('data1')&&!_0x3861b6['isString'](_0x7791e0['data1'])?'data1:\x20string\x20expected':null;},_0x1a73ba['fromObject']=function(_0x1670bd){if(_0x1670bd instanceof _0xefac1b['NumberStringPacketDataMessage'])return _0x1670bd;var _0x4671bc=new _0xefac1b['NumberStringPacketDataMessage']();return null!=_0x1670bd['data']&&(_0x4671bc['data']=_0x1670bd['data']>>>0x0),null!=_0x1670bd['data1']&&(_0x4671bc['data1']=String(_0x1670bd['data1'])),_0x4671bc;},_0x1a73ba['toObject']=function(_0x295492,_0x6b1734){_0x6b1734||(_0x6b1734={});var _0x5a0ec2={};return _0x6b1734['defaults']&&(_0x5a0ec2['data']=0x0,_0x5a0ec2['data1']=''),null!=_0x295492['data']&&_0x295492['hasOwnProperty']('data')&&(_0x5a0ec2['data']=_0x295492['data']),null!=_0x295492['data1']&&_0x295492['hasOwnProperty']('data1')&&(_0x5a0ec2['data1']=_0x295492['data1']),_0x5a0ec2;},_0x1a73ba['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1a73ba['getTypeUrl']=function(_0x1c8188){return void 0x0===_0x1c8188&&(_0x1c8188='type.googleapis.com'),_0x1c8188+'/NumberStringPacketDataMessage';},_0x1a73ba;}()),_0xefac1b['NumberObjectPacketDataMessage']=(function(){function _0x5a5d09(_0x423cb6){if(_0x423cb6){for(var _0x187793=Object['keys'](_0x423cb6),_0x2c0063=0x0;_0x2c0063<_0x187793['length'];++_0x2c0063)null!=_0x423cb6[_0x187793[_0x2c0063]]&&(this[_0x187793[_0x2c0063]]=_0x423cb6[_0x187793[_0x2c0063]]);}}return _0x5a5d09['prototype']['data']=0x0,_0x5a5d09['prototype']['data1']='',_0x5a5d09['create']=function(_0x147953){return new _0x5a5d09(_0x147953);},_0x5a5d09['encode']=function(_0x3a57dc,_0x9d2a29){return _0x9d2a29||(_0x9d2a29=_0x3cb188['create']()),null!=_0x3a57dc['data']&&Object['hasOwnProperty']['call'](_0x3a57dc,'data')&&_0x9d2a29['uint32'](0x8)['uint32'](_0x3a57dc['data']),null!=_0x3a57dc['data1']&&Object['hasOwnProperty']['call'](_0x3a57dc,'data1')&&_0x9d2a29['uint32'](0x12)['string'](_0x3a57dc['data1']),_0x9d2a29;},_0x5a5d09['encodeDelimited']=function(_0x1699e0,_0x184996){return this['encode'](_0x1699e0,_0x184996)['ldelim']();},_0x5a5d09['decode']=function(_0x1419bd,_0x4fee0a,_0x1d3f17){_0x1419bd instanceof _0x19f3ea||(_0x1419bd=_0x19f3ea['create'](_0x1419bd));for(var _0x4b9d87=void 0x0===_0x4fee0a?_0x1419bd['len']:_0x1419bd['pos']+_0x4fee0a,_0x2c4cb2=new _0xefac1b['NumberObjectPacketDataMessage']();_0x1419bd['pos']<_0x4b9d87;){var _0x3f7c80=_0x1419bd['uint32']();if(_0x3f7c80===_0x1d3f17)break;switch(_0x3f7c80>>>0x3){case 0x1:_0x2c4cb2['data']=_0x1419bd['uint32']();break;case 0x2:_0x2c4cb2['data1']=_0x1419bd['string']();break;default:_0x1419bd['skipType'](0x7&_0x3f7c80);}}return _0x2c4cb2;},_0x5a5d09['decodeDelimited']=function(_0x12f382){return _0x12f382 instanceof _0x19f3ea||(_0x12f382=new _0x19f3ea(_0x12f382)),this['decode'](_0x12f382,_0x12f382['uint32']());},_0x5a5d09['verify']=function(_0x5ea509){return'object'!=typeof _0x5ea509||null===_0x5ea509?'object\x20expected':null!=_0x5ea509['data']&&_0x5ea509['hasOwnProperty']('data')&&!_0x3861b6['isInteger'](_0x5ea509['data'])?'data:\x20integer\x20expected':null!=_0x5ea509['data1']&&_0x5ea509['hasOwnProperty']('data1')&&!_0x3861b6['isString'](_0x5ea509['data1'])?'data1:\x20string\x20expected':null;},_0x5a5d09['fromObject']=function(_0x15bda5){if(_0x15bda5 instanceof _0xefac1b['NumberObjectPacketDataMessage'])return _0x15bda5;var _0x27862a=new _0xefac1b['NumberObjectPacketDataMessage']();return null!=_0x15bda5['data']&&(_0x27862a['data']=_0x15bda5['data']>>>0x0),null!=_0x15bda5['data1']&&(_0x27862a['data1']=String(_0x15bda5['data1'])),_0x27862a;},_0x5a5d09['toObject']=function(_0x11bd5d,_0x1fe2cf){_0x1fe2cf||(_0x1fe2cf={});var _0x223c4c={};return _0x1fe2cf['defaults']&&(_0x223c4c['data']=0x0,_0x223c4c['data1']=''),null!=_0x11bd5d['data']&&_0x11bd5d['hasOwnProperty']('data')&&(_0x223c4c['data']=_0x11bd5d['data']),null!=_0x11bd5d['data1']&&_0x11bd5d['hasOwnProperty']('data1')&&(_0x223c4c['data1']=_0x11bd5d['data1']),_0x223c4c;},_0x5a5d09['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5a5d09['getTypeUrl']=function(_0x3e5cf1){return void 0x0===_0x3e5cf1&&(_0x3e5cf1='type.googleapis.com'),_0x3e5cf1+'/NumberObjectPacketDataMessage';},_0x5a5d09;}()),_0xefac1b['NumberNumberPacketDataMessage']=(function(){function _0x49cb8c(_0xf5f22d){if(_0xf5f22d){for(var _0xd7b8d9=Object['keys'](_0xf5f22d),_0x21733d=0x0;_0x21733d<_0xd7b8d9['length'];++_0x21733d)null!=_0xf5f22d[_0xd7b8d9[_0x21733d]]&&(this[_0xd7b8d9[_0x21733d]]=_0xf5f22d[_0xd7b8d9[_0x21733d]]);}}return _0x49cb8c['prototype']['data']=0x0,_0x49cb8c['prototype']['data1']=0x0,_0x49cb8c['create']=function(_0x108f57){return new _0x49cb8c(_0x108f57);},_0x49cb8c['encode']=function(_0xde4f29,_0x282322){return _0x282322||(_0x282322=_0x3cb188['create']()),null!=_0xde4f29['data']&&Object['hasOwnProperty']['call'](_0xde4f29,'data')&&_0x282322['uint32'](0x8)['uint32'](_0xde4f29['data']),null!=_0xde4f29['data1']&&Object['hasOwnProperty']['call'](_0xde4f29,'data1')&&_0x282322['uint32'](0x10)['uint32'](_0xde4f29['data1']),_0x282322;},_0x49cb8c['encodeDelimited']=function(_0x2b7b6b,_0x58f8b4){return this['encode'](_0x2b7b6b,_0x58f8b4)['ldelim']();},_0x49cb8c['decode']=function(_0x2206a6,_0x1a5d0b,_0x1b6ba6){_0x2206a6 instanceof _0x19f3ea||(_0x2206a6=_0x19f3ea['create'](_0x2206a6));for(var _0x23fdb2=void 0x0===_0x1a5d0b?_0x2206a6['len']:_0x2206a6['pos']+_0x1a5d0b,_0x441fc8=new _0xefac1b['NumberNumberPacketDataMessage']();_0x2206a6['pos']<_0x23fdb2;){var _0x59a349=_0x2206a6['uint32']();if(_0x59a349===_0x1b6ba6)break;switch(_0x59a349>>>0x3){case 0x1:_0x441fc8['data']=_0x2206a6['uint32']();break;case 0x2:_0x441fc8['data1']=_0x2206a6['uint32']();break;default:_0x2206a6['skipType'](0x7&_0x59a349);}}return _0x441fc8;},_0x49cb8c['decodeDelimited']=function(_0x47e848){return _0x47e848 instanceof _0x19f3ea||(_0x47e848=new _0x19f3ea(_0x47e848)),this['decode'](_0x47e848,_0x47e848['uint32']());},_0x49cb8c['verify']=function(_0x469a45){return'object'!=typeof _0x469a45||null===_0x469a45?'object\x20expected':null!=_0x469a45['data']&&_0x469a45['hasOwnProperty']('data')&&!_0x3861b6['isInteger'](_0x469a45['data'])?'data:\x20integer\x20expected':null!=_0x469a45['data1']&&_0x469a45['hasOwnProperty']('data1')&&!_0x3861b6['isInteger'](_0x469a45['data1'])?'data1:\x20integer\x20expected':null;},_0x49cb8c['fromObject']=function(_0x3b64b8){if(_0x3b64b8 instanceof _0xefac1b['NumberNumberPacketDataMessage'])return _0x3b64b8;var _0x4e3703=new _0xefac1b['NumberNumberPacketDataMessage']();return null!=_0x3b64b8['data']&&(_0x4e3703['data']=_0x3b64b8['data']>>>0x0),null!=_0x3b64b8['data1']&&(_0x4e3703['data1']=_0x3b64b8['data1']>>>0x0),_0x4e3703;},_0x49cb8c['toObject']=function(_0x2c9007,_0x1b15cd){_0x1b15cd||(_0x1b15cd={});var _0x2591fe={};return _0x1b15cd['defaults']&&(_0x2591fe['data']=0x0,_0x2591fe['data1']=0x0),null!=_0x2c9007['data']&&_0x2c9007['hasOwnProperty']('data')&&(_0x2591fe['data']=_0x2c9007['data']),null!=_0x2c9007['data1']&&_0x2c9007['hasOwnProperty']('data1')&&(_0x2591fe['data1']=_0x2c9007['data1']),_0x2591fe;},_0x49cb8c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x49cb8c['getTypeUrl']=function(_0x2c8b52){return void 0x0===_0x2c8b52&&(_0x2c8b52='type.googleapis.com'),_0x2c8b52+'/NumberNumberPacketDataMessage';},_0x49cb8c;}()),_0xefac1b['NumberBytesPacketDataMessage']=(function(){function _0x52b9c0(_0x13d3e6){if(_0x13d3e6){for(var _0x1cb5c0=Object['keys'](_0x13d3e6),_0x9f2e95=0x0;_0x9f2e95<_0x1cb5c0['length'];++_0x9f2e95)null!=_0x13d3e6[_0x1cb5c0[_0x9f2e95]]&&(this[_0x1cb5c0[_0x9f2e95]]=_0x13d3e6[_0x1cb5c0[_0x9f2e95]]);}}return _0x52b9c0['prototype']['data']=0x0,_0x52b9c0['prototype']['data1']=_0x3861b6['newBuffer']([]),_0x52b9c0['create']=function(_0x446d7f){return new _0x52b9c0(_0x446d7f);},_0x52b9c0['encode']=function(_0x19f7df,_0x4657d5){return _0x4657d5||(_0x4657d5=_0x3cb188['create']()),null!=_0x19f7df['data']&&Object['hasOwnProperty']['call'](_0x19f7df,'data')&&_0x4657d5['uint32'](0x8)['uint32'](_0x19f7df['data']),null!=_0x19f7df['data1']&&Object['hasOwnProperty']['call'](_0x19f7df,'data1')&&_0x4657d5['uint32'](0x12)['bytes'](_0x19f7df['data1']),_0x4657d5;},_0x52b9c0['encodeDelimited']=function(_0x3651b0,_0x58b5ee){return this['encode'](_0x3651b0,_0x58b5ee)['ldelim']();},_0x52b9c0['decode']=function(_0x229720,_0x3527ab,_0x2b273f){_0x229720 instanceof _0x19f3ea||(_0x229720=_0x19f3ea['create'](_0x229720));for(var _0x45c9cf=void 0x0===_0x3527ab?_0x229720['len']:_0x229720['pos']+_0x3527ab,_0x34087c=new _0xefac1b['NumberBytesPacketDataMessage']();_0x229720['pos']<_0x45c9cf;){var _0x1e7d61=_0x229720['uint32']();if(_0x1e7d61===_0x2b273f)break;switch(_0x1e7d61>>>0x3){case 0x1:_0x34087c['data']=_0x229720['uint32']();break;case 0x2:_0x34087c['data1']=_0x229720['bytes']();break;default:_0x229720['skipType'](0x7&_0x1e7d61);}}return _0x34087c;},_0x52b9c0['decodeDelimited']=function(_0x1f0818){return _0x1f0818 instanceof _0x19f3ea||(_0x1f0818=new _0x19f3ea(_0x1f0818)),this['decode'](_0x1f0818,_0x1f0818['uint32']());},_0x52b9c0['verify']=function(_0x411c10){return'object'!=typeof _0x411c10||null===_0x411c10?'object\x20expected':null!=_0x411c10['data']&&_0x411c10['hasOwnProperty']('data')&&!_0x3861b6['isInteger'](_0x411c10['data'])?'data:\x20integer\x20expected':null!=_0x411c10['data1']&&_0x411c10['hasOwnProperty']('data1')&&!(_0x411c10['data1']&&'number'==typeof _0x411c10['data1']['length']||_0x3861b6['isString'](_0x411c10['data1']))?'data1:\x20buffer\x20expected':null;},_0x52b9c0['fromObject']=function(_0x1e40b2){if(_0x1e40b2 instanceof _0xefac1b['NumberBytesPacketDataMessage'])return _0x1e40b2;var _0x1f3aba=new _0xefac1b['NumberBytesPacketDataMessage']();return null!=_0x1e40b2['data']&&(_0x1f3aba['data']=_0x1e40b2['data']>>>0x0),null!=_0x1e40b2['data1']&&('string'==typeof _0x1e40b2['data1']?_0x3861b6['base64']['decode'](_0x1e40b2['data1'],_0x1f3aba['data1']=_0x3861b6['newBuffer'](_0x3861b6['base64']['length'](_0x1e40b2['data1'])),0x0):_0x1e40b2['data1']['length']>=0x0&&(_0x1f3aba['data1']=_0x1e40b2['data1'])),_0x1f3aba;},_0x52b9c0['toObject']=function(_0x5eaa50,_0x4383e1){_0x4383e1||(_0x4383e1={});var _0x2e67b4={};return _0x4383e1['defaults']&&(_0x2e67b4['data']=0x0,_0x4383e1['bytes']===String?_0x2e67b4['data1']='':(_0x2e67b4['data1']=[],_0x4383e1['bytes']!==Array&&(_0x2e67b4['data1']=_0x3861b6['newBuffer'](_0x2e67b4['data1'])))),null!=_0x5eaa50['data']&&_0x5eaa50['hasOwnProperty']('data')&&(_0x2e67b4['data']=_0x5eaa50['data']),null!=_0x5eaa50['data1']&&_0x5eaa50['hasOwnProperty']('data1')&&(_0x2e67b4['data1']=_0x4383e1['bytes']===String?_0x3861b6['base64']['encode'](_0x5eaa50['data1'],0x0,_0x5eaa50['data1']['length']):_0x4383e1['bytes']===Array?Array['prototype']['slice']['call'](_0x5eaa50['data1']):_0x5eaa50['data1']),_0x2e67b4;},_0x52b9c0['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x52b9c0['getTypeUrl']=function(_0x1058da){return void 0x0===_0x1058da&&(_0x1058da='type.googleapis.com'),_0x1058da+'/NumberBytesPacketDataMessage';},_0x52b9c0;}()),_0xefac1b['BytesBytesPacketDataMessage']=(function(){function _0x3d1c2c(_0x35a554){if(_0x35a554){for(var _0x2d88d4=Object['keys'](_0x35a554),_0x180ae0=0x0;_0x180ae0<_0x2d88d4['length'];++_0x180ae0)null!=_0x35a554[_0x2d88d4[_0x180ae0]]&&(this[_0x2d88d4[_0x180ae0]]=_0x35a554[_0x2d88d4[_0x180ae0]]);}}return _0x3d1c2c['prototype']['data']=_0x3861b6['newBuffer']([]),_0x3d1c2c['prototype']['data1']=_0x3861b6['newBuffer']([]),_0x3d1c2c['create']=function(_0x1cdbde){return new _0x3d1c2c(_0x1cdbde);},_0x3d1c2c['encode']=function(_0x18d700,_0x557a7e){return _0x557a7e||(_0x557a7e=_0x3cb188['create']()),null!=_0x18d700['data']&&Object['hasOwnProperty']['call'](_0x18d700,'data')&&_0x557a7e['uint32'](0xa)['bytes'](_0x18d700['data']),null!=_0x18d700['data1']&&Object['hasOwnProperty']['call'](_0x18d700,'data1')&&_0x557a7e['uint32'](0x12)['bytes'](_0x18d700['data1']),_0x557a7e;},_0x3d1c2c['encodeDelimited']=function(_0x594fcc,_0x1e2252){return this['encode'](_0x594fcc,_0x1e2252)['ldelim']();},_0x3d1c2c['decode']=function(_0x304690,_0xb9d70,_0xe91957){_0x304690 instanceof _0x19f3ea||(_0x304690=_0x19f3ea['create'](_0x304690));for(var _0x39092b=void 0x0===_0xb9d70?_0x304690['len']:_0x304690['pos']+_0xb9d70,_0xdc7af2=new _0xefac1b['BytesBytesPacketDataMessage']();_0x304690['pos']<_0x39092b;){var _0x21a24a=_0x304690['uint32']();if(_0x21a24a===_0xe91957)break;switch(_0x21a24a>>>0x3){case 0x1:_0xdc7af2['data']=_0x304690['bytes']();break;case 0x2:_0xdc7af2['data1']=_0x304690['bytes']();break;default:_0x304690['skipType'](0x7&_0x21a24a);}}return _0xdc7af2;},_0x3d1c2c['decodeDelimited']=function(_0x3af2ce){return _0x3af2ce instanceof _0x19f3ea||(_0x3af2ce=new _0x19f3ea(_0x3af2ce)),this['decode'](_0x3af2ce,_0x3af2ce['uint32']());},_0x3d1c2c['verify']=function(_0x88a138){return'object'!=typeof _0x88a138||null===_0x88a138?'object\x20expected':null!=_0x88a138['data']&&_0x88a138['hasOwnProperty']('data')&&!(_0x88a138['data']&&'number'==typeof _0x88a138['data']['length']||_0x3861b6['isString'](_0x88a138['data']))?'data:\x20buffer\x20expected':null!=_0x88a138['data1']&&_0x88a138['hasOwnProperty']('data1')&&!(_0x88a138['data1']&&'number'==typeof _0x88a138['data1']['length']||_0x3861b6['isString'](_0x88a138['data1']))?'data1:\x20buffer\x20expected':null;},_0x3d1c2c['fromObject']=function(_0x976792){if(_0x976792 instanceof _0xefac1b['BytesBytesPacketDataMessage'])return _0x976792;var _0x3bf950=new _0xefac1b['BytesBytesPacketDataMessage']();return null!=_0x976792['data']&&('string'==typeof _0x976792['data']?_0x3861b6['base64']['decode'](_0x976792['data'],_0x3bf950['data']=_0x3861b6['newBuffer'](_0x3861b6['base64']['length'](_0x976792['data'])),0x0):_0x976792['data']['length']>=0x0&&(_0x3bf950['data']=_0x976792['data'])),null!=_0x976792['data1']&&('string'==typeof _0x976792['data1']?_0x3861b6['base64']['decode'](_0x976792['data1'],_0x3bf950['data1']=_0x3861b6['newBuffer'](_0x3861b6['base64']['length'](_0x976792['data1'])),0x0):_0x976792['data1']['length']>=0x0&&(_0x3bf950['data1']=_0x976792['data1'])),_0x3bf950;},_0x3d1c2c['toObject']=function(_0x4a6533,_0x4820d9){_0x4820d9||(_0x4820d9={});var _0x4c24a2={};return _0x4820d9['defaults']&&(_0x4820d9['bytes']===String?_0x4c24a2['data']='':(_0x4c24a2['data']=[],_0x4820d9['bytes']!==Array&&(_0x4c24a2['data']=_0x3861b6['newBuffer'](_0x4c24a2['data']))),_0x4820d9['bytes']===String?_0x4c24a2['data1']='':(_0x4c24a2['data1']=[],_0x4820d9['bytes']!==Array&&(_0x4c24a2['data1']=_0x3861b6['newBuffer'](_0x4c24a2['data1'])))),null!=_0x4a6533['data']&&_0x4a6533['hasOwnProperty']('data')&&(_0x4c24a2['data']=_0x4820d9['bytes']===String?_0x3861b6['base64']['encode'](_0x4a6533['data'],0x0,_0x4a6533['data']['length']):_0x4820d9['bytes']===Array?Array['prototype']['slice']['call'](_0x4a6533['data']):_0x4a6533['data']),null!=_0x4a6533['data1']&&_0x4a6533['hasOwnProperty']('data1')&&(_0x4c24a2['data1']=_0x4820d9['bytes']===String?_0x3861b6['base64']['encode'](_0x4a6533['data1'],0x0,_0x4a6533['data1']['length']):_0x4820d9['bytes']===Array?Array['prototype']['slice']['call'](_0x4a6533['data1']):_0x4a6533['data1']),_0x4c24a2;},_0x3d1c2c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3d1c2c['getTypeUrl']=function(_0x35a761){return void 0x0===_0x35a761&&(_0x35a761='type.googleapis.com'),_0x35a761+'/BytesBytesPacketDataMessage';},_0x3d1c2c;}()),_0xefac1b['ChannelMessage']=(function(){function _0x1264ec(_0x2bd1a9){if(_0x2bd1a9){for(var _0x4d9fa5=Object['keys'](_0x2bd1a9),_0x485080=0x0;_0x485080<_0x4d9fa5['length'];++_0x485080)null!=_0x2bd1a9[_0x4d9fa5[_0x485080]]&&(this[_0x4d9fa5[_0x485080]]=_0x2bd1a9[_0x4d9fa5[_0x485080]]);}}return _0x1264ec['prototype']['type']=0x0,_0x1264ec['prototype']['socketId']='',_0x1264ec['prototype']['data']=_0x3861b6['newBuffer']([]),_0x1264ec['create']=function(_0x4a33fb){return new _0x1264ec(_0x4a33fb);},_0x1264ec['encode']=function(_0x435640,_0xfaf9d1){return _0xfaf9d1||(_0xfaf9d1=_0x3cb188['create']()),null!=_0x435640['type']&&Object['hasOwnProperty']['call'](_0x435640,'type')&&_0xfaf9d1['uint32'](0x8)['uint32'](_0x435640['type']),null!=_0x435640['socketId']&&Object['hasOwnProperty']['call'](_0x435640,'socketId')&&_0xfaf9d1['uint32'](0x12)['string'](_0x435640['socketId']),null!=_0x435640['data']&&Object['hasOwnProperty']['call'](_0x435640,'data')&&_0xfaf9d1['uint32'](0x1a)['bytes'](_0x435640['data']),_0xfaf9d1;},_0x1264ec['encodeDelimited']=function(_0x312d9f,_0xc6bc45){return this['encode'](_0x312d9f,_0xc6bc45)['ldelim']();},_0x1264ec['decode']=function(_0x3c19f4,_0x270fed,_0x39f4a7){_0x3c19f4 instanceof _0x19f3ea||(_0x3c19f4=_0x19f3ea['create'](_0x3c19f4));for(var _0x1dde04=void 0x0===_0x270fed?_0x3c19f4['len']:_0x3c19f4['pos']+_0x270fed,_0x38957e=new _0xefac1b['ChannelMessage']();_0x3c19f4['pos']<_0x1dde04;){var _0xe24fe2=_0x3c19f4['uint32']();if(_0xe24fe2===_0x39f4a7)break;switch(_0xe24fe2>>>0x3){case 0x1:_0x38957e['type']=_0x3c19f4['uint32']();break;case 0x2:_0x38957e['socketId']=_0x3c19f4['string']();break;case 0x3:_0x38957e['data']=_0x3c19f4['bytes']();break;default:_0x3c19f4['skipType'](0x7&_0xe24fe2);}}return _0x38957e;},_0x1264ec['decodeDelimited']=function(_0x105c97){return _0x105c97 instanceof _0x19f3ea||(_0x105c97=new _0x19f3ea(_0x105c97)),this['decode'](_0x105c97,_0x105c97['uint32']());},_0x1264ec['verify']=function(_0x213634){return'object'!=typeof _0x213634||null===_0x213634?'object\x20expected':null!=_0x213634['type']&&_0x213634['hasOwnProperty']('type')&&!_0x3861b6['isInteger'](_0x213634['type'])?'type:\x20integer\x20expected':null!=_0x213634['socketId']&&_0x213634['hasOwnProperty']('socketId')&&!_0x3861b6['isString'](_0x213634['socketId'])?'socketId:\x20string\x20expected':null!=_0x213634['data']&&_0x213634['hasOwnProperty']('data')&&!(_0x213634['data']&&'number'==typeof _0x213634['data']['length']||_0x3861b6['isString'](_0x213634['data']))?'data:\x20buffer\x20expected':null;},_0x1264ec['fromObject']=function(_0x337e31){if(_0x337e31 instanceof _0xefac1b['ChannelMessage'])return _0x337e31;var _0x47ece7=new _0xefac1b['ChannelMessage']();return null!=_0x337e31['type']&&(_0x47ece7['type']=_0x337e31['type']>>>0x0),null!=_0x337e31['socketId']&&(_0x47ece7['socketId']=String(_0x337e31['socketId'])),null!=_0x337e31['data']&&('string'==typeof _0x337e31['data']?_0x3861b6['base64']['decode'](_0x337e31['data'],_0x47ece7['data']=_0x3861b6['newBuffer'](_0x3861b6['base64']['length'](_0x337e31['data'])),0x0):_0x337e31['data']['length']>=0x0&&(_0x47ece7['data']=_0x337e31['data'])),_0x47ece7;},_0x1264ec['toObject']=function(_0x319b67,_0x5a04aa){_0x5a04aa||(_0x5a04aa={});var _0x290161={};return _0x5a04aa['defaults']&&(_0x290161['type']=0x0,_0x290161['socketId']='',_0x5a04aa['bytes']===String?_0x290161['data']='':(_0x290161['data']=[],_0x5a04aa['bytes']!==Array&&(_0x290161['data']=_0x3861b6['newBuffer'](_0x290161['data'])))),null!=_0x319b67['type']&&_0x319b67['hasOwnProperty']('type')&&(_0x290161['type']=_0x319b67['type']),null!=_0x319b67['socketId']&&_0x319b67['hasOwnProperty']('socketId')&&(_0x290161['socketId']=_0x319b67['socketId']),null!=_0x319b67['data']&&_0x319b67['hasOwnProperty']('data')&&(_0x290161['data']=_0x5a04aa['bytes']===String?_0x3861b6['base64']['encode'](_0x319b67['data'],0x0,_0x319b67['data']['length']):_0x5a04aa['bytes']===Array?Array['prototype']['slice']['call'](_0x319b67['data']):_0x319b67['data']),_0x290161;},_0x1264ec['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1264ec['getTypeUrl']=function(_0x5b0d72){return void 0x0===_0x5b0d72&&(_0x5b0d72='type.googleapis.com'),_0x5b0d72+'/ChannelMessage';},_0x1264ec;}()),_0xefac1b['GetUserResponse']=(function(){function _0x49448c(_0x518f90){if(this['attributes']=[],_0x518f90){for(var _0x4e7c88=Object['keys'](_0x518f90),_0x5cec73=0x0;_0x5cec73<_0x4e7c88['length'];++_0x5cec73)null!=_0x518f90[_0x4e7c88[_0x5cec73]]&&(this[_0x4e7c88[_0x5cec73]]=_0x518f90[_0x4e7c88[_0x5cec73]]);}}return _0x49448c['prototype']['attributes']=_0x3861b6['emptyArray'],_0x49448c['create']=function(_0x223dcb){return new _0x49448c(_0x223dcb);},_0x49448c['encode']=function(_0x2d42a4,_0x320d51){if(_0x320d51||(_0x320d51=_0x3cb188['create']()),null!=_0x2d42a4['attributes']&&_0x2d42a4['attributes']['length']){for(var _0x90941f=0x0;_0x90941f<_0x2d42a4['attributes']['length'];++_0x90941f)_0xefac1b['KeyValueDescriptor']['encode'](_0x2d42a4['attributes'][_0x90941f],_0x320d51['uint32'](0xa)['fork']())['ldelim']();}return _0x320d51;},_0x49448c['encodeDelimited']=function(_0x1a1825,_0x4d0678){return this['encode'](_0x1a1825,_0x4d0678)['ldelim']();},_0x49448c['decode']=function(_0x472677,_0x550534,_0x2148a8){_0x472677 instanceof _0x19f3ea||(_0x472677=_0x19f3ea['create'](_0x472677));for(var _0x41581d=void 0x0===_0x550534?_0x472677['len']:_0x472677['pos']+_0x550534,_0x298042=new _0xefac1b['GetUserResponse']();_0x472677['pos']<_0x41581d;){var _0xccf9b9=_0x472677['uint32']();if(_0xccf9b9===_0x2148a8)break;_0xccf9b9>>>0x3==0x1?(_0x298042['attributes']&&_0x298042['attributes']['length']||(_0x298042['attributes']=[]),_0x298042['attributes']['push'](_0xefac1b['KeyValueDescriptor']['decode'](_0x472677,_0x472677['uint32']()))):_0x472677['skipType'](0x7&_0xccf9b9);}return _0x298042;},_0x49448c['decodeDelimited']=function(_0x4ede25){return _0x4ede25 instanceof _0x19f3ea||(_0x4ede25=new _0x19f3ea(_0x4ede25)),this['decode'](_0x4ede25,_0x4ede25['uint32']());},_0x49448c['verify']=function(_0x533540){if('object'!=typeof _0x533540||null===_0x533540)return'object\x20expected';if(null!=_0x533540['attributes']&&_0x533540['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x533540['attributes']))return'attributes:\x20array\x20expected';for(var _0x12f053=0x0;_0x12f053<_0x533540['attributes']['length'];++_0x12f053){var _0x59bff7=_0xefac1b['KeyValueDescriptor']['verify'](_0x533540['attributes'][_0x12f053]);if(_0x59bff7)return'attributes.'+_0x59bff7;}}return null;},_0x49448c['fromObject']=function(_0x57a9a4){if(_0x57a9a4 instanceof _0xefac1b['GetUserResponse'])return _0x57a9a4;var _0x1967b1=new _0xefac1b['GetUserResponse']();if(_0x57a9a4['attributes']){if(!Array['isArray'](_0x57a9a4['attributes']))throw TypeError('.GetUserResponse.attributes:\x20array\x20expected');_0x1967b1['attributes']=[];for(var _0x1d8d15=0x0;_0x1d8d15<_0x57a9a4['attributes']['length'];++_0x1d8d15){if('object'!=typeof _0x57a9a4['attributes'][_0x1d8d15])throw TypeError('.GetUserResponse.attributes:\x20object\x20expected');_0x1967b1['attributes'][_0x1d8d15]=_0xefac1b['KeyValueDescriptor']['fromObject'](_0x57a9a4['attributes'][_0x1d8d15]);}}return _0x1967b1;},_0x49448c['toObject']=function(_0x23926d,_0x160609){_0x160609||(_0x160609={});var _0x55bc66={};if((_0x160609['arrays']||_0x160609['defaults'])&&(_0x55bc66['attributes']=[]),_0x23926d['attributes']&&_0x23926d['attributes']['length']){_0x55bc66['attributes']=[];for(var _0x51f079=0x0;_0x51f079<_0x23926d['attributes']['length'];++_0x51f079)_0x55bc66['attributes'][_0x51f079]=_0xefac1b['KeyValueDescriptor']['toObject'](_0x23926d['attributes'][_0x51f079],_0x160609);}return _0x55bc66;},_0x49448c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x49448c['getTypeUrl']=function(_0x43d3f8){return void 0x0===_0x43d3f8&&(_0x43d3f8='type.googleapis.com'),_0x43d3f8+'/GetUserResponse';},_0x49448c;}()),_0xefac1b['GetManyUsersResponse']=(function(){function _0x2c803e(_0x2b54e6){if(this['users']=[],_0x2b54e6){for(var _0x9f6ad4=Object['keys'](_0x2b54e6),_0x3b7837=0x0;_0x3b7837<_0x9f6ad4['length'];++_0x3b7837)null!=_0x2b54e6[_0x9f6ad4[_0x3b7837]]&&(this[_0x9f6ad4[_0x3b7837]]=_0x2b54e6[_0x9f6ad4[_0x3b7837]]);}}return _0x2c803e['prototype']['users']=_0x3861b6['emptyArray'],_0x2c803e['create']=function(_0x343b8c){return new _0x2c803e(_0x343b8c);},_0x2c803e['encode']=function(_0x13c1f0,_0x272e3d){if(_0x272e3d||(_0x272e3d=_0x3cb188['create']()),null!=_0x13c1f0['users']&&_0x13c1f0['users']['length']){for(var _0xa39d6d=0x0;_0xa39d6d<_0x13c1f0['users']['length'];++_0xa39d6d)_0xefac1b['UserDescriptor']['encode'](_0x13c1f0['users'][_0xa39d6d],_0x272e3d['uint32'](0xa)['fork']())['ldelim']();}return _0x272e3d;},_0x2c803e['encodeDelimited']=function(_0x1bf9ac,_0x56dfd1){return this['encode'](_0x1bf9ac,_0x56dfd1)['ldelim']();},_0x2c803e['decode']=function(_0x3ed0e1,_0x538ba3,_0x2963b0){_0x3ed0e1 instanceof _0x19f3ea||(_0x3ed0e1=_0x19f3ea['create'](_0x3ed0e1));for(var _0x3b1c6f=void 0x0===_0x538ba3?_0x3ed0e1['len']:_0x3ed0e1['pos']+_0x538ba3,_0xe5a7f9=new _0xefac1b['GetManyUsersResponse']();_0x3ed0e1['pos']<_0x3b1c6f;){var _0x14c8ab=_0x3ed0e1['uint32']();if(_0x14c8ab===_0x2963b0)break;_0x14c8ab>>>0x3==0x1?(_0xe5a7f9['users']&&_0xe5a7f9['users']['length']||(_0xe5a7f9['users']=[]),_0xe5a7f9['users']['push'](_0xefac1b['UserDescriptor']['decode'](_0x3ed0e1,_0x3ed0e1['uint32']()))):_0x3ed0e1['skipType'](0x7&_0x14c8ab);}return _0xe5a7f9;},_0x2c803e['decodeDelimited']=function(_0x59729c){return _0x59729c instanceof _0x19f3ea||(_0x59729c=new _0x19f3ea(_0x59729c)),this['decode'](_0x59729c,_0x59729c['uint32']());},_0x2c803e['verify']=function(_0x22adfc){if('object'!=typeof _0x22adfc||null===_0x22adfc)return'object\x20expected';if(null!=_0x22adfc['users']&&_0x22adfc['hasOwnProperty']('users')){if(!Array['isArray'](_0x22adfc['users']))return'users:\x20array\x20expected';for(var _0x52ff4c=0x0;_0x52ff4c<_0x22adfc['users']['length'];++_0x52ff4c){var _0x4c4736=_0xefac1b['UserDescriptor']['verify'](_0x22adfc['users'][_0x52ff4c]);if(_0x4c4736)return'users.'+_0x4c4736;}}return null;},_0x2c803e['fromObject']=function(_0xc3f37e){if(_0xc3f37e instanceof _0xefac1b['GetManyUsersResponse'])return _0xc3f37e;var _0x1f6ee8=new _0xefac1b['GetManyUsersResponse']();if(_0xc3f37e['users']){if(!Array['isArray'](_0xc3f37e['users']))throw TypeError('.GetManyUsersResponse.users:\x20array\x20expected');_0x1f6ee8['users']=[];for(var _0x4be52d=0x0;_0x4be52d<_0xc3f37e['users']['length'];++_0x4be52d){if('object'!=typeof _0xc3f37e['users'][_0x4be52d])throw TypeError('.GetManyUsersResponse.users:\x20object\x20expected');_0x1f6ee8['users'][_0x4be52d]=_0xefac1b['UserDescriptor']['fromObject'](_0xc3f37e['users'][_0x4be52d]);}}return _0x1f6ee8;},_0x2c803e['toObject']=function(_0x15c44e,_0x3b6e74){_0x3b6e74||(_0x3b6e74={});var _0x393676={};if((_0x3b6e74['arrays']||_0x3b6e74['defaults'])&&(_0x393676['users']=[]),_0x15c44e['users']&&_0x15c44e['users']['length']){_0x393676['users']=[];for(var _0x44f5a8=0x0;_0x44f5a8<_0x15c44e['users']['length'];++_0x44f5a8)_0x393676['users'][_0x44f5a8]=_0xefac1b['UserDescriptor']['toObject'](_0x15c44e['users'][_0x44f5a8],_0x3b6e74);}return _0x393676;},_0x2c803e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2c803e['getTypeUrl']=function(_0x5dcdd4){return void 0x0===_0x5dcdd4&&(_0x5dcdd4='type.googleapis.com'),_0x5dcdd4+'/GetManyUsersResponse';},_0x2c803e;}()),_0xefac1b['GetUserMessage']=(function(){function _0xf28af0(_0x2f455e){if(_0x2f455e){for(var _0x1020ca=Object['keys'](_0x2f455e),_0x4e277b=0x0;_0x4e277b<_0x1020ca['length'];++_0x4e277b)null!=_0x2f455e[_0x1020ca[_0x4e277b]]&&(this[_0x1020ca[_0x4e277b]]=_0x2f455e[_0x1020ca[_0x4e277b]]);}}return _0xf28af0['prototype']['id']='',_0xf28af0['create']=function(_0x591bc1){return new _0xf28af0(_0x591bc1);},_0xf28af0['encode']=function(_0x40211f,_0x9da1fc){return _0x9da1fc||(_0x9da1fc=_0x3cb188['create']()),null!=_0x40211f['id']&&Object['hasOwnProperty']['call'](_0x40211f,'id')&&_0x9da1fc['uint32'](0xa)['string'](_0x40211f['id']),_0x9da1fc;},_0xf28af0['encodeDelimited']=function(_0x3ae5e8,_0x2e25f6){return this['encode'](_0x3ae5e8,_0x2e25f6)['ldelim']();},_0xf28af0['decode']=function(_0x59188f,_0x19f8b3,_0x4cc5a1){_0x59188f instanceof _0x19f3ea||(_0x59188f=_0x19f3ea['create'](_0x59188f));for(var _0x24e425=void 0x0===_0x19f8b3?_0x59188f['len']:_0x59188f['pos']+_0x19f8b3,_0x5f437e=new _0xefac1b['GetUserMessage']();_0x59188f['pos']<_0x24e425;){var _0x1f1c12=_0x59188f['uint32']();if(_0x1f1c12===_0x4cc5a1)break;_0x1f1c12>>>0x3==0x1?_0x5f437e['id']=_0x59188f['string']():_0x59188f['skipType'](0x7&_0x1f1c12);}return _0x5f437e;},_0xf28af0['decodeDelimited']=function(_0x4e118c){return _0x4e118c instanceof _0x19f3ea||(_0x4e118c=new _0x19f3ea(_0x4e118c)),this['decode'](_0x4e118c,_0x4e118c['uint32']());},_0xf28af0['verify']=function(_0x1a0204){return'object'!=typeof _0x1a0204||null===_0x1a0204?'object\x20expected':null!=_0x1a0204['id']&&_0x1a0204['hasOwnProperty']('id')&&!_0x3861b6['isString'](_0x1a0204['id'])?'id:\x20string\x20expected':null;},_0xf28af0['fromObject']=function(_0x1cc107){if(_0x1cc107 instanceof _0xefac1b['GetUserMessage'])return _0x1cc107;var _0x16461a=new _0xefac1b['GetUserMessage']();return null!=_0x1cc107['id']&&(_0x16461a['id']=String(_0x1cc107['id'])),_0x16461a;},_0xf28af0['toObject']=function(_0x757ac5,_0x349158){_0x349158||(_0x349158={});var _0x4c1780={};return _0x349158['defaults']&&(_0x4c1780['id']=''),null!=_0x757ac5['id']&&_0x757ac5['hasOwnProperty']('id')&&(_0x4c1780['id']=_0x757ac5['id']),_0x4c1780;},_0xf28af0['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xf28af0['getTypeUrl']=function(_0x378a29){return void 0x0===_0x378a29&&(_0x378a29='type.googleapis.com'),_0x378a29+'/GetUserMessage';},_0xf28af0;}()),_0xefac1b['GetManyUsersMessage']=(function(){function _0x3a379a(_0x6e7532){if(this['ids']=[],_0x6e7532){for(var _0x18af56=Object['keys'](_0x6e7532),_0x42e102=0x0;_0x42e102<_0x18af56['length'];++_0x42e102)null!=_0x6e7532[_0x18af56[_0x42e102]]&&(this[_0x18af56[_0x42e102]]=_0x6e7532[_0x18af56[_0x42e102]]);}}return _0x3a379a['prototype']['ids']=_0x3861b6['emptyArray'],_0x3a379a['create']=function(_0x3e8162){return new _0x3a379a(_0x3e8162);},_0x3a379a['encode']=function(_0x21e4a7,_0x339e43){if(_0x339e43||(_0x339e43=_0x3cb188['create']()),null!=_0x21e4a7['ids']&&_0x21e4a7['ids']['length']){for(var _0x2f9f9b=0x0;_0x2f9f9b<_0x21e4a7['ids']['length'];++_0x2f9f9b)_0x339e43['uint32'](0xa)['string'](_0x21e4a7['ids'][_0x2f9f9b]);}return _0x339e43;},_0x3a379a['encodeDelimited']=function(_0x47d5ae,_0x43b460){return this['encode'](_0x47d5ae,_0x43b460)['ldelim']();},_0x3a379a['decode']=function(_0x2ac693,_0x2adf55,_0x428a2f){_0x2ac693 instanceof _0x19f3ea||(_0x2ac693=_0x19f3ea['create'](_0x2ac693));for(var _0x578067=void 0x0===_0x2adf55?_0x2ac693['len']:_0x2ac693['pos']+_0x2adf55,_0x22e769=new _0xefac1b['GetManyUsersMessage']();_0x2ac693['pos']<_0x578067;){var _0x46371a=_0x2ac693['uint32']();if(_0x46371a===_0x428a2f)break;_0x46371a>>>0x3==0x1?(_0x22e769['ids']&&_0x22e769['ids']['length']||(_0x22e769['ids']=[]),_0x22e769['ids']['push'](_0x2ac693['string']())):_0x2ac693['skipType'](0x7&_0x46371a);}return _0x22e769;},_0x3a379a['decodeDelimited']=function(_0x2cf8b3){return _0x2cf8b3 instanceof _0x19f3ea||(_0x2cf8b3=new _0x19f3ea(_0x2cf8b3)),this['decode'](_0x2cf8b3,_0x2cf8b3['uint32']());},_0x3a379a['verify']=function(_0x473c7d){if('object'!=typeof _0x473c7d||null===_0x473c7d)return'object\x20expected';if(null!=_0x473c7d['ids']&&_0x473c7d['hasOwnProperty']('ids')){if(!Array['isArray'](_0x473c7d['ids']))return'ids:\x20array\x20expected';for(var _0x3b31c3=0x0;_0x3b31c3<_0x473c7d['ids']['length'];++_0x3b31c3)if(!_0x3861b6['isString'](_0x473c7d['ids'][_0x3b31c3]))return'ids:\x20string[]\x20expected';}return null;},_0x3a379a['fromObject']=function(_0x59319b){if(_0x59319b instanceof _0xefac1b['GetManyUsersMessage'])return _0x59319b;var _0x139661=new _0xefac1b['GetManyUsersMessage']();if(_0x59319b['ids']){if(!Array['isArray'](_0x59319b['ids']))throw TypeError('.GetManyUsersMessage.ids:\x20array\x20expected');_0x139661['ids']=[];for(var _0x6de00f=0x0;_0x6de00f<_0x59319b['ids']['length'];++_0x6de00f)_0x139661['ids'][_0x6de00f]=String(_0x59319b['ids'][_0x6de00f]);}return _0x139661;},_0x3a379a['toObject']=function(_0x395bdc,_0x280984){_0x280984||(_0x280984={});var _0x4bf836={};if((_0x280984['arrays']||_0x280984['defaults'])&&(_0x4bf836['ids']=[]),_0x395bdc['ids']&&_0x395bdc['ids']['length']){_0x4bf836['ids']=[];for(var _0x44851c=0x0;_0x44851c<_0x395bdc['ids']['length'];++_0x44851c)_0x4bf836['ids'][_0x44851c]=_0x395bdc['ids'][_0x44851c];}return _0x4bf836;},_0x3a379a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3a379a['getTypeUrl']=function(_0x344406){return void 0x0===_0x344406&&(_0x344406='type.googleapis.com'),_0x344406+'/GetManyUsersMessage';},_0x3a379a;}()),_0xefac1b['UserDescriptor']=(function(){function _0x3c37d0(_0x1dfd5a){if(this['attributes']=[],_0x1dfd5a){for(var _0x4d2398=Object['keys'](_0x1dfd5a),_0x2cf17b=0x0;_0x2cf17b<_0x4d2398['length'];++_0x2cf17b)null!=_0x1dfd5a[_0x4d2398[_0x2cf17b]]&&(this[_0x4d2398[_0x2cf17b]]=_0x1dfd5a[_0x4d2398[_0x2cf17b]]);}}return _0x3c37d0['prototype']['attributes']=_0x3861b6['emptyArray'],_0x3c37d0['create']=function(_0x38e579){return new _0x3c37d0(_0x38e579);},_0x3c37d0['encode']=function(_0x43fcc3,_0x14be6f){if(_0x14be6f||(_0x14be6f=_0x3cb188['create']()),null!=_0x43fcc3['attributes']&&_0x43fcc3['attributes']['length']){for(var _0xa7a975=0x0;_0xa7a975<_0x43fcc3['attributes']['length'];++_0xa7a975)_0xefac1b['KeyValueDescriptor']['encode'](_0x43fcc3['attributes'][_0xa7a975],_0x14be6f['uint32'](0xa)['fork']())['ldelim']();}return _0x14be6f;},_0x3c37d0['encodeDelimited']=function(_0x3cead3,_0x45c2ce){return this['encode'](_0x3cead3,_0x45c2ce)['ldelim']();},_0x3c37d0['decode']=function(_0x2cdd76,_0x35d974,_0x16e9ee){_0x2cdd76 instanceof _0x19f3ea||(_0x2cdd76=_0x19f3ea['create'](_0x2cdd76));for(var _0x54e72b=void 0x0===_0x35d974?_0x2cdd76['len']:_0x2cdd76['pos']+_0x35d974,_0x4b9159=new _0xefac1b['UserDescriptor']();_0x2cdd76['pos']<_0x54e72b;){var _0x59fd64=_0x2cdd76['uint32']();if(_0x59fd64===_0x16e9ee)break;_0x59fd64>>>0x3==0x1?(_0x4b9159['attributes']&&_0x4b9159['attributes']['length']||(_0x4b9159['attributes']=[]),_0x4b9159['attributes']['push'](_0xefac1b['KeyValueDescriptor']['decode'](_0x2cdd76,_0x2cdd76['uint32']()))):_0x2cdd76['skipType'](0x7&_0x59fd64);}return _0x4b9159;},_0x3c37d0['decodeDelimited']=function(_0x5f3731){return _0x5f3731 instanceof _0x19f3ea||(_0x5f3731=new _0x19f3ea(_0x5f3731)),this['decode'](_0x5f3731,_0x5f3731['uint32']());},_0x3c37d0['verify']=function(_0x22ab0e){if('object'!=typeof _0x22ab0e||null===_0x22ab0e)return'object\x20expected';if(null!=_0x22ab0e['attributes']&&_0x22ab0e['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x22ab0e['attributes']))return'attributes:\x20array\x20expected';for(var _0x249456=0x0;_0x249456<_0x22ab0e['attributes']['length'];++_0x249456){var _0x300a9c=_0xefac1b['KeyValueDescriptor']['verify'](_0x22ab0e['attributes'][_0x249456]);if(_0x300a9c)return'attributes.'+_0x300a9c;}}return null;},_0x3c37d0['fromObject']=function(_0x59548d){if(_0x59548d instanceof _0xefac1b['UserDescriptor'])return _0x59548d;var _0x56d7b9=new _0xefac1b['UserDescriptor']();if(_0x59548d['attributes']){if(!Array['isArray'](_0x59548d['attributes']))throw TypeError('.UserDescriptor.attributes:\x20array\x20expected');_0x56d7b9['attributes']=[];for(var _0x5bda11=0x0;_0x5bda11<_0x59548d['attributes']['length'];++_0x5bda11){if('object'!=typeof _0x59548d['attributes'][_0x5bda11])throw TypeError('.UserDescriptor.attributes:\x20object\x20expected');_0x56d7b9['attributes'][_0x5bda11]=_0xefac1b['KeyValueDescriptor']['fromObject'](_0x59548d['attributes'][_0x5bda11]);}}return _0x56d7b9;},_0x3c37d0['toObject']=function(_0x4354a0,_0x7d01e2){_0x7d01e2||(_0x7d01e2={});var _0x10d913={};if((_0x7d01e2['arrays']||_0x7d01e2['defaults'])&&(_0x10d913['attributes']=[]),_0x4354a0['attributes']&&_0x4354a0['attributes']['length']){_0x10d913['attributes']=[];for(var _0x3e2f38=0x0;_0x3e2f38<_0x4354a0['attributes']['length'];++_0x3e2f38)_0x10d913['attributes'][_0x3e2f38]=_0xefac1b['KeyValueDescriptor']['toObject'](_0x4354a0['attributes'][_0x3e2f38],_0x7d01e2);}return _0x10d913;},_0x3c37d0['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3c37d0['getTypeUrl']=function(_0x5b95bf){return void 0x0===_0x5b95bf&&(_0x5b95bf='type.googleapis.com'),_0x5b95bf+'/UserDescriptor';},_0x3c37d0;}()),_0xefac1b['TrackChangesGetSuggestionResponse']=(function(){function _0x2952e6(_0x2918e2){if(_0x2918e2){for(var _0x49de7a=Object['keys'](_0x2918e2),_0x80a77c=0x0;_0x80a77c<_0x49de7a['length'];++_0x80a77c)null!=_0x2918e2[_0x49de7a[_0x80a77c]]&&(this[_0x49de7a[_0x80a77c]]=_0x2918e2[_0x49de7a[_0x80a77c]]);}}return _0x2952e6['prototype']['id']='',_0x2952e6['prototype']['authorId']='',_0x2952e6['prototype']['type']='',_0x2952e6['prototype']['createdAt']='',_0x2952e6['prototype']['data']='',_0x2952e6['prototype']['hasComments']=!0x1,_0x2952e6['prototype']['state']='',_0x2952e6['prototype']['attributes']='',_0x2952e6['create']=function(_0x8c3818){return new _0x2952e6(_0x8c3818);},_0x2952e6['encode']=function(_0x19a6aa,_0x29424d){return _0x29424d||(_0x29424d=_0x3cb188['create']()),null!=_0x19a6aa['id']&&Object['hasOwnProperty']['call'](_0x19a6aa,'id')&&_0x29424d['uint32'](0xa)['string'](_0x19a6aa['id']),null!=_0x19a6aa['authorId']&&Object['hasOwnProperty']['call'](_0x19a6aa,'authorId')&&_0x29424d['uint32'](0x12)['string'](_0x19a6aa['authorId']),null!=_0x19a6aa['type']&&Object['hasOwnProperty']['call'](_0x19a6aa,'type')&&_0x29424d['uint32'](0x1a)['string'](_0x19a6aa['type']),null!=_0x19a6aa['createdAt']&&Object['hasOwnProperty']['call'](_0x19a6aa,'createdAt')&&_0x29424d['uint32'](0x22)['string'](_0x19a6aa['createdAt']),null!=_0x19a6aa['data']&&Object['hasOwnProperty']['call'](_0x19a6aa,'data')&&_0x29424d['uint32'](0x2a)['string'](_0x19a6aa['data']),null!=_0x19a6aa['hasComments']&&Object['hasOwnProperty']['call'](_0x19a6aa,'hasComments')&&_0x29424d['uint32'](0x30)['bool'](_0x19a6aa['hasComments']),null!=_0x19a6aa['state']&&Object['hasOwnProperty']['call'](_0x19a6aa,'state')&&_0x29424d['uint32'](0x3a)['string'](_0x19a6aa['state']),null!=_0x19a6aa['attributes']&&Object['hasOwnProperty']['call'](_0x19a6aa,'attributes')&&_0x29424d['uint32'](0x42)['string'](_0x19a6aa['attributes']),_0x29424d;},_0x2952e6['encodeDelimited']=function(_0x212863,_0x31e1f2){return this['encode'](_0x212863,_0x31e1f2)['ldelim']();},_0x2952e6['decode']=function(_0x8ca331,_0x1d5a40,_0x1a1224){_0x8ca331 instanceof _0x19f3ea||(_0x8ca331=_0x19f3ea['create'](_0x8ca331));for(var _0x42c45d=void 0x0===_0x1d5a40?_0x8ca331['len']:_0x8ca331['pos']+_0x1d5a40,_0x45b7cb=new _0xefac1b['TrackChangesGetSuggestionResponse']();_0x8ca331['pos']<_0x42c45d;){var _0x5cf171=_0x8ca331['uint32']();if(_0x5cf171===_0x1a1224)break;switch(_0x5cf171>>>0x3){case 0x1:_0x45b7cb['id']=_0x8ca331['string']();break;case 0x2:_0x45b7cb['authorId']=_0x8ca331['string']();break;case 0x3:_0x45b7cb['type']=_0x8ca331['string']();break;case 0x4:_0x45b7cb['createdAt']=_0x8ca331['string']();break;case 0x5:_0x45b7cb['data']=_0x8ca331['string']();break;case 0x6:_0x45b7cb['hasComments']=_0x8ca331['bool']();break;case 0x7:_0x45b7cb['state']=_0x8ca331['string']();break;case 0x8:_0x45b7cb['attributes']=_0x8ca331['string']();break;default:_0x8ca331['skipType'](0x7&_0x5cf171);}}return _0x45b7cb;},_0x2952e6['decodeDelimited']=function(_0x1829bf){return _0x1829bf instanceof _0x19f3ea||(_0x1829bf=new _0x19f3ea(_0x1829bf)),this['decode'](_0x1829bf,_0x1829bf['uint32']());},_0x2952e6['verify']=function(_0x5329e2){return'object'!=typeof _0x5329e2||null===_0x5329e2?'object\x20expected':null!=_0x5329e2['id']&&_0x5329e2['hasOwnProperty']('id')&&!_0x3861b6['isString'](_0x5329e2['id'])?'id:\x20string\x20expected':null!=_0x5329e2['authorId']&&_0x5329e2['hasOwnProperty']('authorId')&&!_0x3861b6['isString'](_0x5329e2['authorId'])?'authorId:\x20string\x20expected':null!=_0x5329e2['type']&&_0x5329e2['hasOwnProperty']('type')&&!_0x3861b6['isString'](_0x5329e2['type'])?'type:\x20string\x20expected':null!=_0x5329e2['createdAt']&&_0x5329e2['hasOwnProperty']('createdAt')&&!_0x3861b6['isString'](_0x5329e2['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x5329e2['data']&&_0x5329e2['hasOwnProperty']('data')&&!_0x3861b6['isString'](_0x5329e2['data'])?'data:\x20string\x20expected':null!=_0x5329e2['hasComments']&&_0x5329e2['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x5329e2['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x5329e2['state']&&_0x5329e2['hasOwnProperty']('state')&&!_0x3861b6['isString'](_0x5329e2['state'])?'state:\x20string\x20expected':null!=_0x5329e2['attributes']&&_0x5329e2['hasOwnProperty']('attributes')&&!_0x3861b6['isString'](_0x5329e2['attributes'])?'attributes:\x20string\x20expected':null;},_0x2952e6['fromObject']=function(_0xf127f5){if(_0xf127f5 instanceof _0xefac1b['TrackChangesGetSuggestionResponse'])return _0xf127f5;var _0x574ef8=new _0xefac1b['TrackChangesGetSuggestionResponse']();return null!=_0xf127f5['id']&&(_0x574ef8['id']=String(_0xf127f5['id'])),null!=_0xf127f5['authorId']&&(_0x574ef8['authorId']=String(_0xf127f5['authorId'])),null!=_0xf127f5['type']&&(_0x574ef8['type']=String(_0xf127f5['type'])),null!=_0xf127f5['createdAt']&&(_0x574ef8['createdAt']=String(_0xf127f5['createdAt'])),null!=_0xf127f5['data']&&(_0x574ef8['data']=String(_0xf127f5['data'])),null!=_0xf127f5['hasComments']&&(_0x574ef8['hasComments']=Boolean(_0xf127f5['hasComments'])),null!=_0xf127f5['state']&&(_0x574ef8['state']=String(_0xf127f5['state'])),null!=_0xf127f5['attributes']&&(_0x574ef8['attributes']=String(_0xf127f5['attributes'])),_0x574ef8;},_0x2952e6['toObject']=function(_0x518201,_0x17fd55){_0x17fd55||(_0x17fd55={});var _0x4d5dd7={};return _0x17fd55['defaults']&&(_0x4d5dd7['id']='',_0x4d5dd7['authorId']='',_0x4d5dd7['type']='',_0x4d5dd7['createdAt']='',_0x4d5dd7['data']='',_0x4d5dd7['hasComments']=!0x1,_0x4d5dd7['state']='',_0x4d5dd7['attributes']=''),null!=_0x518201['id']&&_0x518201['hasOwnProperty']('id')&&(_0x4d5dd7['id']=_0x518201['id']),null!=_0x518201['authorId']&&_0x518201['hasOwnProperty']('authorId')&&(_0x4d5dd7['authorId']=_0x518201['authorId']),null!=_0x518201['type']&&_0x518201['hasOwnProperty']('type')&&(_0x4d5dd7['type']=_0x518201['type']),null!=_0x518201['createdAt']&&_0x518201['hasOwnProperty']('createdAt')&&(_0x4d5dd7['createdAt']=_0x518201['createdAt']),null!=_0x518201['data']&&_0x518201['hasOwnProperty']('data')&&(_0x4d5dd7['data']=_0x518201['data']),null!=_0x518201['hasComments']&&_0x518201['hasOwnProperty']('hasComments')&&(_0x4d5dd7['hasComments']=_0x518201['hasComments']),null!=_0x518201['state']&&_0x518201['hasOwnProperty']('state')&&(_0x4d5dd7['state']=_0x518201['state']),null!=_0x518201['attributes']&&_0x518201['hasOwnProperty']('attributes')&&(_0x4d5dd7['attributes']=_0x518201['attributes']),_0x4d5dd7;},_0x2952e6['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2952e6['getTypeUrl']=function(_0x3d3956){return void 0x0===_0x3d3956&&(_0x3d3956='type.googleapis.com'),_0x3d3956+'/TrackChangesGetSuggestionResponse';},_0x2952e6;}()),_0xefac1b['TrackChangesGetAllSuggestionsResponse']=(function(){function _0x28df57(_0x65b31f){if(this['suggestions']=[],this['suggestionsV2']=[],_0x65b31f){for(var _0x1e0221=Object['keys'](_0x65b31f),_0x74a371=0x0;_0x74a371<_0x1e0221['length'];++_0x74a371)null!=_0x65b31f[_0x1e0221[_0x74a371]]&&(this[_0x1e0221[_0x74a371]]=_0x65b31f[_0x1e0221[_0x74a371]]);}}return _0x28df57['prototype']['suggestions']=_0x3861b6['emptyArray'],_0x28df57['prototype']['suggestionsV2']=_0x3861b6['emptyArray'],_0x28df57['create']=function(_0x8d7805){return new _0x28df57(_0x8d7805);},_0x28df57['encode']=function(_0x1d3aad,_0x1271c0){if(_0x1271c0||(_0x1271c0=_0x3cb188['create']()),null!=_0x1d3aad['suggestions']&&_0x1d3aad['suggestions']['length']){for(var _0x1ba010=0x0;_0x1ba010<_0x1d3aad['suggestions']['length'];++_0x1ba010)_0x1271c0['uint32'](0xa)['string'](_0x1d3aad['suggestions'][_0x1ba010]);}if(null!=_0x1d3aad['suggestionsV2']&&_0x1d3aad['suggestionsV2']['length']){for(_0x1ba010=0x0;_0x1ba010<_0x1d3aad['suggestionsV2']['length'];++_0x1ba010)_0xefac1b['SuggestionDescriptor']['encode'](_0x1d3aad['suggestionsV2'][_0x1ba010],_0x1271c0['uint32'](0x12)['fork']())['ldelim']();}return _0x1271c0;},_0x28df57['encodeDelimited']=function(_0x1dd42f,_0x5ccfaf){return this['encode'](_0x1dd42f,_0x5ccfaf)['ldelim']();},_0x28df57['decode']=function(_0x7694ad,_0x18b31d,_0x3190da){_0x7694ad instanceof _0x19f3ea||(_0x7694ad=_0x19f3ea['create'](_0x7694ad));for(var _0x3d0518=void 0x0===_0x18b31d?_0x7694ad['len']:_0x7694ad['pos']+_0x18b31d,_0x4b3377=new _0xefac1b['TrackChangesGetAllSuggestionsResponse']();_0x7694ad['pos']<_0x3d0518;){var _0xb2faae=_0x7694ad['uint32']();if(_0xb2faae===_0x3190da)break;switch(_0xb2faae>>>0x3){case 0x1:_0x4b3377['suggestions']&&_0x4b3377['suggestions']['length']||(_0x4b3377['suggestions']=[]),_0x4b3377['suggestions']['push'](_0x7694ad['string']());break;case 0x2:_0x4b3377['suggestionsV2']&&_0x4b3377['suggestionsV2']['length']||(_0x4b3377['suggestionsV2']=[]),_0x4b3377['suggestionsV2']['push'](_0xefac1b['SuggestionDescriptor']['decode'](_0x7694ad,_0x7694ad['uint32']()));break;default:_0x7694ad['skipType'](0x7&_0xb2faae);}}return _0x4b3377;},_0x28df57['decodeDelimited']=function(_0x598c2f){return _0x598c2f instanceof _0x19f3ea||(_0x598c2f=new _0x19f3ea(_0x598c2f)),this['decode'](_0x598c2f,_0x598c2f['uint32']());},_0x28df57['verify']=function(_0x532e60){if('object'!=typeof _0x532e60||null===_0x532e60)return'object\x20expected';if(null!=_0x532e60['suggestions']&&_0x532e60['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x532e60['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x34e721=0x0;_0x34e721<_0x532e60['suggestions']['length'];++_0x34e721)if(!_0x3861b6['isString'](_0x532e60['suggestions'][_0x34e721]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x532e60['suggestionsV2']&&_0x532e60['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x532e60['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x34e721=0x0;_0x34e721<_0x532e60['suggestionsV2']['length'];++_0x34e721){var _0x5aaa59=_0xefac1b['SuggestionDescriptor']['verify'](_0x532e60['suggestionsV2'][_0x34e721]);if(_0x5aaa59)return'suggestionsV2.'+_0x5aaa59;}}return null;},_0x28df57['fromObject']=function(_0x2c5d31){if(_0x2c5d31 instanceof _0xefac1b['TrackChangesGetAllSuggestionsResponse'])return _0x2c5d31;var _0x4d073c=new _0xefac1b['TrackChangesGetAllSuggestionsResponse']();if(_0x2c5d31['suggestions']){if(!Array['isArray'](_0x2c5d31['suggestions']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestions:\x20array\x20expected');_0x4d073c['suggestions']=[];for(var _0xf28382=0x0;_0xf28382<_0x2c5d31['suggestions']['length'];++_0xf28382)_0x4d073c['suggestions'][_0xf28382]=String(_0x2c5d31['suggestions'][_0xf28382]);}if(_0x2c5d31['suggestionsV2']){if(!Array['isArray'](_0x2c5d31['suggestionsV2']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20array\x20expected');for(_0x4d073c['suggestionsV2']=[],_0xf28382=0x0;_0xf28382<_0x2c5d31['suggestionsV2']['length'];++_0xf28382){if('object'!=typeof _0x2c5d31['suggestionsV2'][_0xf28382])throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20object\x20expected');_0x4d073c['suggestionsV2'][_0xf28382]=_0xefac1b['SuggestionDescriptor']['fromObject'](_0x2c5d31['suggestionsV2'][_0xf28382]);}}return _0x4d073c;},_0x28df57['toObject']=function(_0x3ffe59,_0x19e0a1){_0x19e0a1||(_0x19e0a1={});var _0x400dbd={};if((_0x19e0a1['arrays']||_0x19e0a1['defaults'])&&(_0x400dbd['suggestions']=[],_0x400dbd['suggestionsV2']=[]),_0x3ffe59['suggestions']&&_0x3ffe59['suggestions']['length']){_0x400dbd['suggestions']=[];for(var _0x317952=0x0;_0x317952<_0x3ffe59['suggestions']['length'];++_0x317952)_0x400dbd['suggestions'][_0x317952]=_0x3ffe59['suggestions'][_0x317952];}if(_0x3ffe59['suggestionsV2']&&_0x3ffe59['suggestionsV2']['length']){for(_0x400dbd['suggestionsV2']=[],_0x317952=0x0;_0x317952<_0x3ffe59['suggestionsV2']['length'];++_0x317952)_0x400dbd['suggestionsV2'][_0x317952]=_0xefac1b['SuggestionDescriptor']['toObject'](_0x3ffe59['suggestionsV2'][_0x317952],_0x19e0a1);}return _0x400dbd;},_0x28df57['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x28df57['getTypeUrl']=function(_0x9a14d){return void 0x0===_0x9a14d&&(_0x9a14d='type.googleapis.com'),_0x9a14d+'/TrackChangesGetAllSuggestionsResponse';},_0x28df57;}()),_0xefac1b['TrackChangesConnectResponse']=(function(){function _0x247582(_0x55a1f6){if(this['suggestions']=[],this['suggestionsV2']=[],_0x55a1f6){for(var _0x44e587=Object['keys'](_0x55a1f6),_0x13d65e=0x0;_0x13d65e<_0x44e587['length'];++_0x13d65e)null!=_0x55a1f6[_0x44e587[_0x13d65e]]&&(this[_0x44e587[_0x13d65e]]=_0x55a1f6[_0x44e587[_0x13d65e]]);}}return _0x247582['prototype']['channel']='',_0x247582['prototype']['suggestions']=_0x3861b6['emptyArray'],_0x247582['prototype']['suggestionsV2']=_0x3861b6['emptyArray'],_0x247582['create']=function(_0x5e8b9a){return new _0x247582(_0x5e8b9a);},_0x247582['encode']=function(_0x48d957,_0x3b1934){if(_0x3b1934||(_0x3b1934=_0x3cb188['create']()),null!=_0x48d957['channel']&&Object['hasOwnProperty']['call'](_0x48d957,'channel')&&_0x3b1934['uint32'](0xa)['string'](_0x48d957['channel']),null!=_0x48d957['suggestions']&&_0x48d957['suggestions']['length']){for(var _0x10d2bb=0x0;_0x10d2bb<_0x48d957['suggestions']['length'];++_0x10d2bb)_0x3b1934['uint32'](0x12)['string'](_0x48d957['suggestions'][_0x10d2bb]);}if(null!=_0x48d957['suggestionsV2']&&_0x48d957['suggestionsV2']['length']){for(_0x10d2bb=0x0;_0x10d2bb<_0x48d957['suggestionsV2']['length'];++_0x10d2bb)_0xefac1b['SuggestionDescriptor']['encode'](_0x48d957['suggestionsV2'][_0x10d2bb],_0x3b1934['uint32'](0x1a)['fork']())['ldelim']();}return _0x3b1934;},_0x247582['encodeDelimited']=function(_0x5401d0,_0x5696e0){return this['encode'](_0x5401d0,_0x5696e0)['ldelim']();},_0x247582['decode']=function(_0x2df75b,_0xdbb396,_0x5efd64){_0x2df75b instanceof _0x19f3ea||(_0x2df75b=_0x19f3ea['create'](_0x2df75b));for(var _0x26013a=void 0x0===_0xdbb396?_0x2df75b['len']:_0x2df75b['pos']+_0xdbb396,_0x5b3126=new _0xefac1b['TrackChangesConnectResponse']();_0x2df75b['pos']<_0x26013a;){var _0x37b09b=_0x2df75b['uint32']();if(_0x37b09b===_0x5efd64)break;switch(_0x37b09b>>>0x3){case 0x1:_0x5b3126['channel']=_0x2df75b['string']();break;case 0x2:_0x5b3126['suggestions']&&_0x5b3126['suggestions']['length']||(_0x5b3126['suggestions']=[]),_0x5b3126['suggestions']['push'](_0x2df75b['string']());break;case 0x3:_0x5b3126['suggestionsV2']&&_0x5b3126['suggestionsV2']['length']||(_0x5b3126['suggestionsV2']=[]),_0x5b3126['suggestionsV2']['push'](_0xefac1b['SuggestionDescriptor']['decode'](_0x2df75b,_0x2df75b['uint32']()));break;default:_0x2df75b['skipType'](0x7&_0x37b09b);}}return _0x5b3126;},_0x247582['decodeDelimited']=function(_0xcdbd3f){return _0xcdbd3f instanceof _0x19f3ea||(_0xcdbd3f=new _0x19f3ea(_0xcdbd3f)),this['decode'](_0xcdbd3f,_0xcdbd3f['uint32']());},_0x247582['verify']=function(_0x1c47da){if('object'!=typeof _0x1c47da||null===_0x1c47da)return'object\x20expected';if(null!=_0x1c47da['channel']&&_0x1c47da['hasOwnProperty']('channel')&&!_0x3861b6['isString'](_0x1c47da['channel']))return'channel:\x20string\x20expected';if(null!=_0x1c47da['suggestions']&&_0x1c47da['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x1c47da['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x880e69=0x0;_0x880e69<_0x1c47da['suggestions']['length'];++_0x880e69)if(!_0x3861b6['isString'](_0x1c47da['suggestions'][_0x880e69]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x1c47da['suggestionsV2']&&_0x1c47da['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x1c47da['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x880e69=0x0;_0x880e69<_0x1c47da['suggestionsV2']['length'];++_0x880e69){var _0x5ca968=_0xefac1b['SuggestionDescriptor']['verify'](_0x1c47da['suggestionsV2'][_0x880e69]);if(_0x5ca968)return'suggestionsV2.'+_0x5ca968;}}return null;},_0x247582['fromObject']=function(_0x31f3a6){if(_0x31f3a6 instanceof _0xefac1b['TrackChangesConnectResponse'])return _0x31f3a6;var _0xa26cac=new _0xefac1b['TrackChangesConnectResponse']();if(null!=_0x31f3a6['channel']&&(_0xa26cac['channel']=String(_0x31f3a6['channel'])),_0x31f3a6['suggestions']){if(!Array['isArray'](_0x31f3a6['suggestions']))throw TypeError('.TrackChangesConnectResponse.suggestions:\x20array\x20expected');_0xa26cac['suggestions']=[];for(var _0x47d9ad=0x0;_0x47d9ad<_0x31f3a6['suggestions']['length'];++_0x47d9ad)_0xa26cac['suggestions'][_0x47d9ad]=String(_0x31f3a6['suggestions'][_0x47d9ad]);}if(_0x31f3a6['suggestionsV2']){if(!Array['isArray'](_0x31f3a6['suggestionsV2']))throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20array\x20expected');for(_0xa26cac['suggestionsV2']=[],_0x47d9ad=0x0;_0x47d9ad<_0x31f3a6['suggestionsV2']['length'];++_0x47d9ad){if('object'!=typeof _0x31f3a6['suggestionsV2'][_0x47d9ad])throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20object\x20expected');_0xa26cac['suggestionsV2'][_0x47d9ad]=_0xefac1b['SuggestionDescriptor']['fromObject'](_0x31f3a6['suggestionsV2'][_0x47d9ad]);}}return _0xa26cac;},_0x247582['toObject']=function(_0x3f8811,_0x445314){_0x445314||(_0x445314={});var _0x241b65={};if((_0x445314['arrays']||_0x445314['defaults'])&&(_0x241b65['suggestions']=[],_0x241b65['suggestionsV2']=[]),_0x445314['defaults']&&(_0x241b65['channel']=''),null!=_0x3f8811['channel']&&_0x3f8811['hasOwnProperty']('channel')&&(_0x241b65['channel']=_0x3f8811['channel']),_0x3f8811['suggestions']&&_0x3f8811['suggestions']['length']){_0x241b65['suggestions']=[];for(var _0x19a9e8=0x0;_0x19a9e8<_0x3f8811['suggestions']['length'];++_0x19a9e8)_0x241b65['suggestions'][_0x19a9e8]=_0x3f8811['suggestions'][_0x19a9e8];}if(_0x3f8811['suggestionsV2']&&_0x3f8811['suggestionsV2']['length']){for(_0x241b65['suggestionsV2']=[],_0x19a9e8=0x0;_0x19a9e8<_0x3f8811['suggestionsV2']['length'];++_0x19a9e8)_0x241b65['suggestionsV2'][_0x19a9e8]=_0xefac1b['SuggestionDescriptor']['toObject'](_0x3f8811['suggestionsV2'][_0x19a9e8],_0x445314);}return _0x241b65;},_0x247582['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x247582['getTypeUrl']=function(_0x3aafb4){return void 0x0===_0x3aafb4&&(_0x3aafb4='type.googleapis.com'),_0x3aafb4+'/TrackChangesConnectResponse';},_0x247582;}()),_0xefac1b['TrackChangesAddSuggestionResponse']=(function(){function _0x22ff78(_0xda541a){if(_0xda541a){for(var _0x5e8c32=Object['keys'](_0xda541a),_0x2758ef=0x0;_0x2758ef<_0x5e8c32['length'];++_0x2758ef)null!=_0xda541a[_0x5e8c32[_0x2758ef]]&&(this[_0x5e8c32[_0x2758ef]]=_0xda541a[_0x5e8c32[_0x2758ef]]);}}return _0x22ff78['prototype']['id']='',_0x22ff78['prototype']['authorId']='',_0x22ff78['prototype']['type']='',_0x22ff78['prototype']['createdAt']='',_0x22ff78['prototype']['data']='',_0x22ff78['prototype']['hasComments']=!0x1,_0x22ff78['prototype']['state']='',_0x22ff78['prototype']['attributes']='',_0x22ff78['create']=function(_0x53f8a5){return new _0x22ff78(_0x53f8a5);},_0x22ff78['encode']=function(_0x2f32a9,_0x1aac7b){return _0x1aac7b||(_0x1aac7b=_0x3cb188['create']()),null!=_0x2f32a9['id']&&Object['hasOwnProperty']['call'](_0x2f32a9,'id')&&_0x1aac7b['uint32'](0xa)['string'](_0x2f32a9['id']),null!=_0x2f32a9['authorId']&&Object['hasOwnProperty']['call'](_0x2f32a9,'authorId')&&_0x1aac7b['uint32'](0x12)['string'](_0x2f32a9['authorId']),null!=_0x2f32a9['type']&&Object['hasOwnProperty']['call'](_0x2f32a9,'type')&&_0x1aac7b['uint32'](0x1a)['string'](_0x2f32a9['type']),null!=_0x2f32a9['createdAt']&&Object['hasOwnProperty']['call'](_0x2f32a9,'createdAt')&&_0x1aac7b['uint32'](0x22)['string'](_0x2f32a9['createdAt']),null!=_0x2f32a9['data']&&Object['hasOwnProperty']['call'](_0x2f32a9,'data')&&_0x1aac7b['uint32'](0x2a)['string'](_0x2f32a9['data']),null!=_0x2f32a9['hasComments']&&Object['hasOwnProperty']['call'](_0x2f32a9,'hasComments')&&_0x1aac7b['uint32'](0x30)['bool'](_0x2f32a9['hasComments']),null!=_0x2f32a9['state']&&Object['hasOwnProperty']['call'](_0x2f32a9,'state')&&_0x1aac7b['uint32'](0x3a)['string'](_0x2f32a9['state']),null!=_0x2f32a9['attributes']&&Object['hasOwnProperty']['call'](_0x2f32a9,'attributes')&&_0x1aac7b['uint32'](0x42)['string'](_0x2f32a9['attributes']),_0x1aac7b;},_0x22ff78['encodeDelimited']=function(_0x4c2888,_0x20aaa7){return this['encode'](_0x4c2888,_0x20aaa7)['ldelim']();},_0x22ff78['decode']=function(_0x21f664,_0x2d4c2e,_0x116fae){_0x21f664 instanceof _0x19f3ea||(_0x21f664=_0x19f3ea['create'](_0x21f664));for(var _0x373155=void 0x0===_0x2d4c2e?_0x21f664['len']:_0x21f664['pos']+_0x2d4c2e,_0x46e77a=new _0xefac1b['TrackChangesAddSuggestionResponse']();_0x21f664['pos']<_0x373155;){var _0x127b92=_0x21f664['uint32']();if(_0x127b92===_0x116fae)break;switch(_0x127b92>>>0x3){case 0x1:_0x46e77a['id']=_0x21f664['string']();break;case 0x2:_0x46e77a['authorId']=_0x21f664['string']();break;case 0x3:_0x46e77a['type']=_0x21f664['string']();break;case 0x4:_0x46e77a['createdAt']=_0x21f664['string']();break;case 0x5:_0x46e77a['data']=_0x21f664['string']();break;case 0x6:_0x46e77a['hasComments']=_0x21f664['bool']();break;case 0x7:_0x46e77a['state']=_0x21f664['string']();break;case 0x8:_0x46e77a['attributes']=_0x21f664['string']();break;default:_0x21f664['skipType'](0x7&_0x127b92);}}return _0x46e77a;},_0x22ff78['decodeDelimited']=function(_0x48f4da){return _0x48f4da instanceof _0x19f3ea||(_0x48f4da=new _0x19f3ea(_0x48f4da)),this['decode'](_0x48f4da,_0x48f4da['uint32']());},_0x22ff78['verify']=function(_0x149874){return'object'!=typeof _0x149874||null===_0x149874?'object\x20expected':null!=_0x149874['id']&&_0x149874['hasOwnProperty']('id')&&!_0x3861b6['isString'](_0x149874['id'])?'id:\x20string\x20expected':null!=_0x149874['authorId']&&_0x149874['hasOwnProperty']('authorId')&&!_0x3861b6['isString'](_0x149874['authorId'])?'authorId:\x20string\x20expected':null!=_0x149874['type']&&_0x149874['hasOwnProperty']('type')&&!_0x3861b6['isString'](_0x149874['type'])?'type:\x20string\x20expected':null!=_0x149874['createdAt']&&_0x149874['hasOwnProperty']('createdAt')&&!_0x3861b6['isString'](_0x149874['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x149874['data']&&_0x149874['hasOwnProperty']('data')&&!_0x3861b6['isString'](_0x149874['data'])?'data:\x20string\x20expected':null!=_0x149874['hasComments']&&_0x149874['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x149874['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x149874['state']&&_0x149874['hasOwnProperty']('state')&&!_0x3861b6['isString'](_0x149874['state'])?'state:\x20string\x20expected':null!=_0x149874['attributes']&&_0x149874['hasOwnProperty']('attributes')&&!_0x3861b6['isString'](_0x149874['attributes'])?'attributes:\x20string\x20expected':null;},_0x22ff78['fromObject']=function(_0xb5ea74){if(_0xb5ea74 instanceof _0xefac1b['TrackChangesAddSuggestionResponse'])return _0xb5ea74;var _0x29e9db=new _0xefac1b['TrackChangesAddSuggestionResponse']();return null!=_0xb5ea74['id']&&(_0x29e9db['id']=String(_0xb5ea74['id'])),null!=_0xb5ea74['authorId']&&(_0x29e9db['authorId']=String(_0xb5ea74['authorId'])),null!=_0xb5ea74['type']&&(_0x29e9db['type']=String(_0xb5ea74['type'])),null!=_0xb5ea74['createdAt']&&(_0x29e9db['createdAt']=String(_0xb5ea74['createdAt'])),null!=_0xb5ea74['data']&&(_0x29e9db['data']=String(_0xb5ea74['data'])),null!=_0xb5ea74['hasComments']&&(_0x29e9db['hasComments']=Boolean(_0xb5ea74['hasComments'])),null!=_0xb5ea74['state']&&(_0x29e9db['state']=String(_0xb5ea74['state'])),null!=_0xb5ea74['attributes']&&(_0x29e9db['attributes']=String(_0xb5ea74['attributes'])),_0x29e9db;},_0x22ff78['toObject']=function(_0x4ffb2b,_0x131c02){_0x131c02||(_0x131c02={});var _0x2b535a={};return _0x131c02['defaults']&&(_0x2b535a['id']='',_0x2b535a['authorId']='',_0x2b535a['type']='',_0x2b535a['createdAt']='',_0x2b535a['data']='',_0x2b535a['hasComments']=!0x1,_0x2b535a['state']='',_0x2b535a['attributes']=''),null!=_0x4ffb2b['id']&&_0x4ffb2b['hasOwnProperty']('id')&&(_0x2b535a['id']=_0x4ffb2b['id']),null!=_0x4ffb2b['authorId']&&_0x4ffb2b['hasOwnProperty']('authorId')&&(_0x2b535a['authorId']=_0x4ffb2b['authorId']),null!=_0x4ffb2b['type']&&_0x4ffb2b['hasOwnProperty']('type')&&(_0x2b535a['type']=_0x4ffb2b['type']),null!=_0x4ffb2b['createdAt']&&_0x4ffb2b['hasOwnProperty']('createdAt')&&(_0x2b535a['createdAt']=_0x4ffb2b['createdAt']),null!=_0x4ffb2b['data']&&_0x4ffb2b['hasOwnProperty']('data')&&(_0x2b535a['data']=_0x4ffb2b['data']),null!=_0x4ffb2b['hasComments']&&_0x4ffb2b['hasOwnProperty']('hasComments')&&(_0x2b535a['hasComments']=_0x4ffb2b['hasComments']),null!=_0x4ffb2b['state']&&_0x4ffb2b['hasOwnProperty']('state')&&(_0x2b535a['state']=_0x4ffb2b['state']),null!=_0x4ffb2b['attributes']&&_0x4ffb2b['hasOwnProperty']('attributes')&&(_0x2b535a['attributes']=_0x4ffb2b['attributes']),_0x2b535a;},_0x22ff78['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x22ff78['getTypeUrl']=function(_0x42ebd0){return void 0x0===_0x42ebd0&&(_0x42ebd0='type.googleapis.com'),_0x42ebd0+'/TrackChangesAddSuggestionResponse';},_0x22ff78;}()),_0xefac1b['TrackChangesUpdateSuggestionMessage']=(function(){function _0x562124(_0x2f1079){if(_0x2f1079){for(var _0x2cdccf=Object['keys'](_0x2f1079),_0x220fcc=0x0;_0x220fcc<_0x2cdccf['length'];++_0x220fcc)null!=_0x2f1079[_0x2cdccf[_0x220fcc]]&&(this[_0x2cdccf[_0x220fcc]]=_0x2f1079[_0x2cdccf[_0x220fcc]]);}}return _0x562124['prototype']['id']='',_0x562124['prototype']['documentId']='',_0x562124['prototype']['hasComments']=!0x1,_0x562124['prototype']['isHasCommentsModified']=!0x1,_0x562124['prototype']['state']='',_0x562124['prototype']['attributes']='',_0x562124['create']=function(_0x31daa8){return new _0x562124(_0x31daa8);},_0x562124['encode']=function(_0x4a460d,_0x5bf651){return _0x5bf651||(_0x5bf651=_0x3cb188['create']()),null!=_0x4a460d['id']&&Object['hasOwnProperty']['call'](_0x4a460d,'id')&&_0x5bf651['uint32'](0xa)['string'](_0x4a460d['id']),null!=_0x4a460d['documentId']&&Object['hasOwnProperty']['call'](_0x4a460d,'documentId')&&_0x5bf651['uint32'](0x12)['string'](_0x4a460d['documentId']),null!=_0x4a460d['hasComments']&&Object['hasOwnProperty']['call'](_0x4a460d,'hasComments')&&_0x5bf651['uint32'](0x18)['bool'](_0x4a460d['hasComments']),null!=_0x4a460d['isHasCommentsModified']&&Object['hasOwnProperty']['call'](_0x4a460d,'isHasCommentsModified')&&_0x5bf651['uint32'](0x20)['bool'](_0x4a460d['isHasCommentsModified']),null!=_0x4a460d['state']&&Object['hasOwnProperty']['call'](_0x4a460d,'state')&&_0x5bf651['uint32'](0x2a)['string'](_0x4a460d['state']),null!=_0x4a460d['attributes']&&Object['hasOwnProperty']['call'](_0x4a460d,'attributes')&&_0x5bf651['uint32'](0x32)['string'](_0x4a460d['attributes']),_0x5bf651;},_0x562124['encodeDelimited']=function(_0x256c8d,_0x50edcb){return this['encode'](_0x256c8d,_0x50edcb)['ldelim']();},_0x562124['decode']=function(_0xdcb4e6,_0x5b8a45,_0x33fa69){_0xdcb4e6 instanceof _0x19f3ea||(_0xdcb4e6=_0x19f3ea['create'](_0xdcb4e6));for(var _0x2a2d36=void 0x0===_0x5b8a45?_0xdcb4e6['len']:_0xdcb4e6['pos']+_0x5b8a45,_0x4d2402=new _0xefac1b['TrackChangesUpdateSuggestionMessage']();_0xdcb4e6['pos']<_0x2a2d36;){var _0x10e5e9=_0xdcb4e6['uint32']();if(_0x10e5e9===_0x33fa69)break;switch(_0x10e5e9>>>0x3){case 0x1:_0x4d2402['id']=_0xdcb4e6['string']();break;case 0x2:_0x4d2402['documentId']=_0xdcb4e6['string']();break;case 0x3:_0x4d2402['hasComments']=_0xdcb4e6['bool']();break;case 0x4:_0x4d2402['isHasCommentsModified']=_0xdcb4e6['bool']();break;case 0x5:_0x4d2402['state']=_0xdcb4e6['string']();break;case 0x6:_0x4d2402['attributes']=_0xdcb4e6['string']();break;default:_0xdcb4e6['skipType'](0x7&_0x10e5e9);}}return _0x4d2402;},_0x562124['decodeDelimited']=function(_0x572c4a){return _0x572c4a instanceof _0x19f3ea||(_0x572c4a=new _0x19f3ea(_0x572c4a)),this['decode'](_0x572c4a,_0x572c4a['uint32']());},_0x562124['verify']=function(_0x101d59){return'object'!=typeof _0x101d59||null===_0x101d59?'object\x20expected':null!=_0x101d59['id']&&_0x101d59['hasOwnProperty']('id')&&!_0x3861b6['isString'](_0x101d59['id'])?'id:\x20string\x20expected':null!=_0x101d59['documentId']&&_0x101d59['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x101d59['documentId'])?'documentId:\x20string\x20expected':null!=_0x101d59['hasComments']&&_0x101d59['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x101d59['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x101d59['isHasCommentsModified']&&_0x101d59['hasOwnProperty']('isHasCommentsModified')&&'boolean'!=typeof _0x101d59['isHasCommentsModified']?'isHasCommentsModified:\x20boolean\x20expected':null!=_0x101d59['state']&&_0x101d59['hasOwnProperty']('state')&&!_0x3861b6['isString'](_0x101d59['state'])?'state:\x20string\x20expected':null!=_0x101d59['attributes']&&_0x101d59['hasOwnProperty']('attributes')&&!_0x3861b6['isString'](_0x101d59['attributes'])?'attributes:\x20string\x20expected':null;},_0x562124['fromObject']=function(_0x328cfa){if(_0x328cfa instanceof _0xefac1b['TrackChangesUpdateSuggestionMessage'])return _0x328cfa;var _0x473004=new _0xefac1b['TrackChangesUpdateSuggestionMessage']();return null!=_0x328cfa['id']&&(_0x473004['id']=String(_0x328cfa['id'])),null!=_0x328cfa['documentId']&&(_0x473004['documentId']=String(_0x328cfa['documentId'])),null!=_0x328cfa['hasComments']&&(_0x473004['hasComments']=Boolean(_0x328cfa['hasComments'])),null!=_0x328cfa['isHasCommentsModified']&&(_0x473004['isHasCommentsModified']=Boolean(_0x328cfa['isHasCommentsModified'])),null!=_0x328cfa['state']&&(_0x473004['state']=String(_0x328cfa['state'])),null!=_0x328cfa['attributes']&&(_0x473004['attributes']=String(_0x328cfa['attributes'])),_0x473004;},_0x562124['toObject']=function(_0x4ded60,_0xc03b73){_0xc03b73||(_0xc03b73={});var _0x230220={};return _0xc03b73['defaults']&&(_0x230220['id']='',_0x230220['documentId']='',_0x230220['hasComments']=!0x1,_0x230220['isHasCommentsModified']=!0x1,_0x230220['state']='',_0x230220['attributes']=''),null!=_0x4ded60['id']&&_0x4ded60['hasOwnProperty']('id')&&(_0x230220['id']=_0x4ded60['id']),null!=_0x4ded60['documentId']&&_0x4ded60['hasOwnProperty']('documentId')&&(_0x230220['documentId']=_0x4ded60['documentId']),null!=_0x4ded60['hasComments']&&_0x4ded60['hasOwnProperty']('hasComments')&&(_0x230220['hasComments']=_0x4ded60['hasComments']),null!=_0x4ded60['isHasCommentsModified']&&_0x4ded60['hasOwnProperty']('isHasCommentsModified')&&(_0x230220['isHasCommentsModified']=_0x4ded60['isHasCommentsModified']),null!=_0x4ded60['state']&&_0x4ded60['hasOwnProperty']('state')&&(_0x230220['state']=_0x4ded60['state']),null!=_0x4ded60['attributes']&&_0x4ded60['hasOwnProperty']('attributes')&&(_0x230220['attributes']=_0x4ded60['attributes']),_0x230220;},_0x562124['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x562124['getTypeUrl']=function(_0x4618b6){return void 0x0===_0x4618b6&&(_0x4618b6='type.googleapis.com'),_0x4618b6+'/TrackChangesUpdateSuggestionMessage';},_0x562124;}()),_0xefac1b['TrackChangesGetSuggestionMessage']=(function(){function _0x4b2109(_0x421829){if(_0x421829){for(var _0x513c94=Object['keys'](_0x421829),_0x72f5a4=0x0;_0x72f5a4<_0x513c94['length'];++_0x72f5a4)null!=_0x421829[_0x513c94[_0x72f5a4]]&&(this[_0x513c94[_0x72f5a4]]=_0x421829[_0x513c94[_0x72f5a4]]);}}return _0x4b2109['prototype']['id']='',_0x4b2109['prototype']['documentId']='',_0x4b2109['create']=function(_0x44ae38){return new _0x4b2109(_0x44ae38);},_0x4b2109['encode']=function(_0x1dfd1f,_0x2503ad){return _0x2503ad||(_0x2503ad=_0x3cb188['create']()),null!=_0x1dfd1f['id']&&Object['hasOwnProperty']['call'](_0x1dfd1f,'id')&&_0x2503ad['uint32'](0xa)['string'](_0x1dfd1f['id']),null!=_0x1dfd1f['documentId']&&Object['hasOwnProperty']['call'](_0x1dfd1f,'documentId')&&_0x2503ad['uint32'](0x12)['string'](_0x1dfd1f['documentId']),_0x2503ad;},_0x4b2109['encodeDelimited']=function(_0xae6ed8,_0x55628d){return this['encode'](_0xae6ed8,_0x55628d)['ldelim']();},_0x4b2109['decode']=function(_0x2165e8,_0x5efa6e,_0x2c0f36){_0x2165e8 instanceof _0x19f3ea||(_0x2165e8=_0x19f3ea['create'](_0x2165e8));for(var _0x345863=void 0x0===_0x5efa6e?_0x2165e8['len']:_0x2165e8['pos']+_0x5efa6e,_0x257a63=new _0xefac1b['TrackChangesGetSuggestionMessage']();_0x2165e8['pos']<_0x345863;){var _0x2d23a1=_0x2165e8['uint32']();if(_0x2d23a1===_0x2c0f36)break;switch(_0x2d23a1>>>0x3){case 0x1:_0x257a63['id']=_0x2165e8['string']();break;case 0x2:_0x257a63['documentId']=_0x2165e8['string']();break;default:_0x2165e8['skipType'](0x7&_0x2d23a1);}}return _0x257a63;},_0x4b2109['decodeDelimited']=function(_0x15a6cc){return _0x15a6cc instanceof _0x19f3ea||(_0x15a6cc=new _0x19f3ea(_0x15a6cc)),this['decode'](_0x15a6cc,_0x15a6cc['uint32']());},_0x4b2109['verify']=function(_0x95c6b7){return'object'!=typeof _0x95c6b7||null===_0x95c6b7?'object\x20expected':null!=_0x95c6b7['id']&&_0x95c6b7['hasOwnProperty']('id')&&!_0x3861b6['isString'](_0x95c6b7['id'])?'id:\x20string\x20expected':null!=_0x95c6b7['documentId']&&_0x95c6b7['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x95c6b7['documentId'])?'documentId:\x20string\x20expected':null;},_0x4b2109['fromObject']=function(_0x50406c){if(_0x50406c instanceof _0xefac1b['TrackChangesGetSuggestionMessage'])return _0x50406c;var _0x13e270=new _0xefac1b['TrackChangesGetSuggestionMessage']();return null!=_0x50406c['id']&&(_0x13e270['id']=String(_0x50406c['id'])),null!=_0x50406c['documentId']&&(_0x13e270['documentId']=String(_0x50406c['documentId'])),_0x13e270;},_0x4b2109['toObject']=function(_0x4b7811,_0x5b887c){_0x5b887c||(_0x5b887c={});var _0x423076={};return _0x5b887c['defaults']&&(_0x423076['id']='',_0x423076['documentId']=''),null!=_0x4b7811['id']&&_0x4b7811['hasOwnProperty']('id')&&(_0x423076['id']=_0x4b7811['id']),null!=_0x4b7811['documentId']&&_0x4b7811['hasOwnProperty']('documentId')&&(_0x423076['documentId']=_0x4b7811['documentId']),_0x423076;},_0x4b2109['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4b2109['getTypeUrl']=function(_0xa344d9){return void 0x0===_0xa344d9&&(_0xa344d9='type.googleapis.com'),_0xa344d9+'/TrackChangesGetSuggestionMessage';},_0x4b2109;}()),_0xefac1b['TrackChangesGetAllSuggestionMessage']=(function(){function _0x4c2e30(_0xabd26){if(_0xabd26){for(var _0x3fca40=Object['keys'](_0xabd26),_0x40ea5e=0x0;_0x40ea5e<_0x3fca40['length'];++_0x40ea5e)null!=_0xabd26[_0x3fca40[_0x40ea5e]]&&(this[_0x3fca40[_0x40ea5e]]=_0xabd26[_0x3fca40[_0x40ea5e]]);}}return _0x4c2e30['prototype']['documentId']='',_0x4c2e30['create']=function(_0x21ab43){return new _0x4c2e30(_0x21ab43);},_0x4c2e30['encode']=function(_0x2ab155,_0x29c24d){return _0x29c24d||(_0x29c24d=_0x3cb188['create']()),null!=_0x2ab155['documentId']&&Object['hasOwnProperty']['call'](_0x2ab155,'documentId')&&_0x29c24d['uint32'](0xa)['string'](_0x2ab155['documentId']),_0x29c24d;},_0x4c2e30['encodeDelimited']=function(_0x211415,_0x356030){return this['encode'](_0x211415,_0x356030)['ldelim']();},_0x4c2e30['decode']=function(_0x406d80,_0x4d6ae3,_0x24ec56){_0x406d80 instanceof _0x19f3ea||(_0x406d80=_0x19f3ea['create'](_0x406d80));for(var _0x61584f=void 0x0===_0x4d6ae3?_0x406d80['len']:_0x406d80['pos']+_0x4d6ae3,_0x5b4184=new _0xefac1b['TrackChangesGetAllSuggestionMessage']();_0x406d80['pos']<_0x61584f;){var _0x28e4ce=_0x406d80['uint32']();if(_0x28e4ce===_0x24ec56)break;_0x28e4ce>>>0x3==0x1?_0x5b4184['documentId']=_0x406d80['string']():_0x406d80['skipType'](0x7&_0x28e4ce);}return _0x5b4184;},_0x4c2e30['decodeDelimited']=function(_0x2c05d6){return _0x2c05d6 instanceof _0x19f3ea||(_0x2c05d6=new _0x19f3ea(_0x2c05d6)),this['decode'](_0x2c05d6,_0x2c05d6['uint32']());},_0x4c2e30['verify']=function(_0x195127){return'object'!=typeof _0x195127||null===_0x195127?'object\x20expected':null!=_0x195127['documentId']&&_0x195127['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x195127['documentId'])?'documentId:\x20string\x20expected':null;},_0x4c2e30['fromObject']=function(_0x144a27){if(_0x144a27 instanceof _0xefac1b['TrackChangesGetAllSuggestionMessage'])return _0x144a27;var _0x32bdc7=new _0xefac1b['TrackChangesGetAllSuggestionMessage']();return null!=_0x144a27['documentId']&&(_0x32bdc7['documentId']=String(_0x144a27['documentId'])),_0x32bdc7;},_0x4c2e30['toObject']=function(_0x200cff,_0x5a9416){_0x5a9416||(_0x5a9416={});var _0x2bf6ca={};return _0x5a9416['defaults']&&(_0x2bf6ca['documentId']=''),null!=_0x200cff['documentId']&&_0x200cff['hasOwnProperty']('documentId')&&(_0x2bf6ca['documentId']=_0x200cff['documentId']),_0x2bf6ca;},_0x4c2e30['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4c2e30['getTypeUrl']=function(_0x2075c7){return void 0x0===_0x2075c7&&(_0x2075c7='type.googleapis.com'),_0x2075c7+'/TrackChangesGetAllSuggestionMessage';},_0x4c2e30;}()),_0xefac1b['TrackChangesConnectMessage']=(function(){function _0x4b9e9e(_0x1a74be){if(_0x1a74be){for(var _0x14d8c6=Object['keys'](_0x1a74be),_0x57ae5b=0x0;_0x57ae5b<_0x14d8c6['length'];++_0x57ae5b)null!=_0x1a74be[_0x14d8c6[_0x57ae5b]]&&(this[_0x14d8c6[_0x57ae5b]]=_0x1a74be[_0x14d8c6[_0x57ae5b]]);}}return _0x4b9e9e['prototype']['documentId']='',_0x4b9e9e['create']=function(_0x36ed72){return new _0x4b9e9e(_0x36ed72);},_0x4b9e9e['encode']=function(_0x4d922c,_0x4f7822){return _0x4f7822||(_0x4f7822=_0x3cb188['create']()),null!=_0x4d922c['documentId']&&Object['hasOwnProperty']['call'](_0x4d922c,'documentId')&&_0x4f7822['uint32'](0xa)['string'](_0x4d922c['documentId']),_0x4f7822;},_0x4b9e9e['encodeDelimited']=function(_0x13f011,_0x30b2f9){return this['encode'](_0x13f011,_0x30b2f9)['ldelim']();},_0x4b9e9e['decode']=function(_0x140600,_0x56561a,_0x53767a){_0x140600 instanceof _0x19f3ea||(_0x140600=_0x19f3ea['create'](_0x140600));for(var _0x4cc4b5=void 0x0===_0x56561a?_0x140600['len']:_0x140600['pos']+_0x56561a,_0x3d0b7=new _0xefac1b['TrackChangesConnectMessage']();_0x140600['pos']<_0x4cc4b5;){var _0x432c07=_0x140600['uint32']();if(_0x432c07===_0x53767a)break;_0x432c07>>>0x3==0x1?_0x3d0b7['documentId']=_0x140600['string']():_0x140600['skipType'](0x7&_0x432c07);}return _0x3d0b7;},_0x4b9e9e['decodeDelimited']=function(_0x34994c){return _0x34994c instanceof _0x19f3ea||(_0x34994c=new _0x19f3ea(_0x34994c)),this['decode'](_0x34994c,_0x34994c['uint32']());},_0x4b9e9e['verify']=function(_0x432570){return'object'!=typeof _0x432570||null===_0x432570?'object\x20expected':null!=_0x432570['documentId']&&_0x432570['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x432570['documentId'])?'documentId:\x20string\x20expected':null;},_0x4b9e9e['fromObject']=function(_0x1406dd){if(_0x1406dd instanceof _0xefac1b['TrackChangesConnectMessage'])return _0x1406dd;var _0x31266c=new _0xefac1b['TrackChangesConnectMessage']();return null!=_0x1406dd['documentId']&&(_0x31266c['documentId']=String(_0x1406dd['documentId'])),_0x31266c;},_0x4b9e9e['toObject']=function(_0x4c4682,_0x1d7985){_0x1d7985||(_0x1d7985={});var _0x50c597={};return _0x1d7985['defaults']&&(_0x50c597['documentId']=''),null!=_0x4c4682['documentId']&&_0x4c4682['hasOwnProperty']('documentId')&&(_0x50c597['documentId']=_0x4c4682['documentId']),_0x50c597;},_0x4b9e9e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4b9e9e['getTypeUrl']=function(_0x52887f){return void 0x0===_0x52887f&&(_0x52887f='type.googleapis.com'),_0x52887f+'/TrackChangesConnectMessage';},_0x4b9e9e;}()),_0xefac1b['TrackChangesBatchUpdateSuggestionsStateMessage']=(function(){function _0x3a199f(_0x18cebd){if(this['ids']=[],_0x18cebd){for(var _0x1e41f8=Object['keys'](_0x18cebd),_0x163fca=0x0;_0x163fca<_0x1e41f8['length'];++_0x163fca)null!=_0x18cebd[_0x1e41f8[_0x163fca]]&&(this[_0x1e41f8[_0x163fca]]=_0x18cebd[_0x1e41f8[_0x163fca]]);}}return _0x3a199f['prototype']['ids']=_0x3861b6['emptyArray'],_0x3a199f['prototype']['documentId']='',_0x3a199f['prototype']['state']='',_0x3a199f['create']=function(_0x395635){return new _0x3a199f(_0x395635);},_0x3a199f['encode']=function(_0x39d856,_0x3c4b82){if(_0x3c4b82||(_0x3c4b82=_0x3cb188['create']()),null!=_0x39d856['ids']&&_0x39d856['ids']['length']){for(var _0x53fe36=0x0;_0x53fe36<_0x39d856['ids']['length'];++_0x53fe36)_0x3c4b82['uint32'](0xa)['string'](_0x39d856['ids'][_0x53fe36]);}return null!=_0x39d856['documentId']&&Object['hasOwnProperty']['call'](_0x39d856,'documentId')&&_0x3c4b82['uint32'](0x12)['string'](_0x39d856['documentId']),null!=_0x39d856['state']&&Object['hasOwnProperty']['call'](_0x39d856,'state')&&_0x3c4b82['uint32'](0x1a)['string'](_0x39d856['state']),_0x3c4b82;},_0x3a199f['encodeDelimited']=function(_0x51427d,_0xff0841){return this['encode'](_0x51427d,_0xff0841)['ldelim']();},_0x3a199f['decode']=function(_0x3aa184,_0xb7d0f,_0x4e01a2){_0x3aa184 instanceof _0x19f3ea||(_0x3aa184=_0x19f3ea['create'](_0x3aa184));for(var _0x5773e0=void 0x0===_0xb7d0f?_0x3aa184['len']:_0x3aa184['pos']+_0xb7d0f,_0x36b170=new _0xefac1b['TrackChangesBatchUpdateSuggestionsStateMessage']();_0x3aa184['pos']<_0x5773e0;){var _0x4e4a83=_0x3aa184['uint32']();if(_0x4e4a83===_0x4e01a2)break;switch(_0x4e4a83>>>0x3){case 0x1:_0x36b170['ids']&&_0x36b170['ids']['length']||(_0x36b170['ids']=[]),_0x36b170['ids']['push'](_0x3aa184['string']());break;case 0x2:_0x36b170['documentId']=_0x3aa184['string']();break;case 0x3:_0x36b170['state']=_0x3aa184['string']();break;default:_0x3aa184['skipType'](0x7&_0x4e4a83);}}return _0x36b170;},_0x3a199f['decodeDelimited']=function(_0x308b23){return _0x308b23 instanceof _0x19f3ea||(_0x308b23=new _0x19f3ea(_0x308b23)),this['decode'](_0x308b23,_0x308b23['uint32']());},_0x3a199f['verify']=function(_0x3f68bf){if('object'!=typeof _0x3f68bf||null===_0x3f68bf)return'object\x20expected';if(null!=_0x3f68bf['ids']&&_0x3f68bf['hasOwnProperty']('ids')){if(!Array['isArray'](_0x3f68bf['ids']))return'ids:\x20array\x20expected';for(var _0x2d43a0=0x0;_0x2d43a0<_0x3f68bf['ids']['length'];++_0x2d43a0)if(!_0x3861b6['isString'](_0x3f68bf['ids'][_0x2d43a0]))return'ids:\x20string[]\x20expected';}return null!=_0x3f68bf['documentId']&&_0x3f68bf['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x3f68bf['documentId'])?'documentId:\x20string\x20expected':null!=_0x3f68bf['state']&&_0x3f68bf['hasOwnProperty']('state')&&!_0x3861b6['isString'](_0x3f68bf['state'])?'state:\x20string\x20expected':null;},_0x3a199f['fromObject']=function(_0x538908){if(_0x538908 instanceof _0xefac1b['TrackChangesBatchUpdateSuggestionsStateMessage'])return _0x538908;var _0x198172=new _0xefac1b['TrackChangesBatchUpdateSuggestionsStateMessage']();if(_0x538908['ids']){if(!Array['isArray'](_0x538908['ids']))throw TypeError('.TrackChangesBatchUpdateSuggestionsStateMessage.ids:\x20array\x20expected');_0x198172['ids']=[];for(var _0x54880b=0x0;_0x54880b<_0x538908['ids']['length'];++_0x54880b)_0x198172['ids'][_0x54880b]=String(_0x538908['ids'][_0x54880b]);}return null!=_0x538908['documentId']&&(_0x198172['documentId']=String(_0x538908['documentId'])),null!=_0x538908['state']&&(_0x198172['state']=String(_0x538908['state'])),_0x198172;},_0x3a199f['toObject']=function(_0x455bab,_0xaa423a){_0xaa423a||(_0xaa423a={});var _0x4279df={};if((_0xaa423a['arrays']||_0xaa423a['defaults'])&&(_0x4279df['ids']=[]),_0xaa423a['defaults']&&(_0x4279df['documentId']='',_0x4279df['state']=''),_0x455bab['ids']&&_0x455bab['ids']['length']){_0x4279df['ids']=[];for(var _0x174a41=0x0;_0x174a41<_0x455bab['ids']['length'];++_0x174a41)_0x4279df['ids'][_0x174a41]=_0x455bab['ids'][_0x174a41];}return null!=_0x455bab['documentId']&&_0x455bab['hasOwnProperty']('documentId')&&(_0x4279df['documentId']=_0x455bab['documentId']),null!=_0x455bab['state']&&_0x455bab['hasOwnProperty']('state')&&(_0x4279df['state']=_0x455bab['state']),_0x4279df;},_0x3a199f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3a199f['getTypeUrl']=function(_0x20aaaa){return void 0x0===_0x20aaaa&&(_0x20aaaa='type.googleapis.com'),_0x20aaaa+'/TrackChangesBatchUpdateSuggestionsStateMessage';},_0x3a199f;}()),_0xefac1b['TrackChangesAddSuggestionMessage']=(function(){function _0x1831e6(_0x12bc86){if(_0x12bc86){for(var _0x42b89d=Object['keys'](_0x12bc86),_0x23b394=0x0;_0x23b394<_0x42b89d['length'];++_0x23b394)null!=_0x12bc86[_0x42b89d[_0x23b394]]&&(this[_0x42b89d[_0x23b394]]=_0x12bc86[_0x42b89d[_0x23b394]]);}}return _0x1831e6['prototype']['id']='',_0x1831e6['prototype']['documentId']='',_0x1831e6['prototype']['type']='',_0x1831e6['prototype']['data']='',_0x1831e6['prototype']['originalSuggestionId']='',_0x1831e6['prototype']['attributes']='',_0x1831e6['create']=function(_0x1430ce){return new _0x1831e6(_0x1430ce);},_0x1831e6['encode']=function(_0x25ef9f,_0x14fa26){return _0x14fa26||(_0x14fa26=_0x3cb188['create']()),null!=_0x25ef9f['id']&&Object['hasOwnProperty']['call'](_0x25ef9f,'id')&&_0x14fa26['uint32'](0xa)['string'](_0x25ef9f['id']),null!=_0x25ef9f['documentId']&&Object['hasOwnProperty']['call'](_0x25ef9f,'documentId')&&_0x14fa26['uint32'](0x12)['string'](_0x25ef9f['documentId']),null!=_0x25ef9f['type']&&Object['hasOwnProperty']['call'](_0x25ef9f,'type')&&_0x14fa26['uint32'](0x1a)['string'](_0x25ef9f['type']),null!=_0x25ef9f['data']&&Object['hasOwnProperty']['call'](_0x25ef9f,'data')&&_0x14fa26['uint32'](0x22)['string'](_0x25ef9f['data']),null!=_0x25ef9f['originalSuggestionId']&&Object['hasOwnProperty']['call'](_0x25ef9f,'originalSuggestionId')&&_0x14fa26['uint32'](0x2a)['string'](_0x25ef9f['originalSuggestionId']),null!=_0x25ef9f['attributes']&&Object['hasOwnProperty']['call'](_0x25ef9f,'attributes')&&_0x14fa26['uint32'](0x32)['string'](_0x25ef9f['attributes']),_0x14fa26;},_0x1831e6['encodeDelimited']=function(_0x37a4f8,_0x38d94f){return this['encode'](_0x37a4f8,_0x38d94f)['ldelim']();},_0x1831e6['decode']=function(_0xc8aaa2,_0x22ea83,_0x3d6d0a){_0xc8aaa2 instanceof _0x19f3ea||(_0xc8aaa2=_0x19f3ea['create'](_0xc8aaa2));for(var _0xb9b5ed=void 0x0===_0x22ea83?_0xc8aaa2['len']:_0xc8aaa2['pos']+_0x22ea83,_0x1e79fd=new _0xefac1b['TrackChangesAddSuggestionMessage']();_0xc8aaa2['pos']<_0xb9b5ed;){var _0x41ce11=_0xc8aaa2['uint32']();if(_0x41ce11===_0x3d6d0a)break;switch(_0x41ce11>>>0x3){case 0x1:_0x1e79fd['id']=_0xc8aaa2['string']();break;case 0x2:_0x1e79fd['documentId']=_0xc8aaa2['string']();break;case 0x3:_0x1e79fd['type']=_0xc8aaa2['string']();break;case 0x4:_0x1e79fd['data']=_0xc8aaa2['string']();break;case 0x5:_0x1e79fd['originalSuggestionId']=_0xc8aaa2['string']();break;case 0x6:_0x1e79fd['attributes']=_0xc8aaa2['string']();break;default:_0xc8aaa2['skipType'](0x7&_0x41ce11);}}return _0x1e79fd;},_0x1831e6['decodeDelimited']=function(_0x3cf345){return _0x3cf345 instanceof _0x19f3ea||(_0x3cf345=new _0x19f3ea(_0x3cf345)),this['decode'](_0x3cf345,_0x3cf345['uint32']());},_0x1831e6['verify']=function(_0x306410){return'object'!=typeof _0x306410||null===_0x306410?'object\x20expected':null!=_0x306410['id']&&_0x306410['hasOwnProperty']('id')&&!_0x3861b6['isString'](_0x306410['id'])?'id:\x20string\x20expected':null!=_0x306410['documentId']&&_0x306410['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x306410['documentId'])?'documentId:\x20string\x20expected':null!=_0x306410['type']&&_0x306410['hasOwnProperty']('type')&&!_0x3861b6['isString'](_0x306410['type'])?'type:\x20string\x20expected':null!=_0x306410['data']&&_0x306410['hasOwnProperty']('data')&&!_0x3861b6['isString'](_0x306410['data'])?'data:\x20string\x20expected':null!=_0x306410['originalSuggestionId']&&_0x306410['hasOwnProperty']('originalSuggestionId')&&!_0x3861b6['isString'](_0x306410['originalSuggestionId'])?'originalSuggestionId:\x20string\x20expected':null!=_0x306410['attributes']&&_0x306410['hasOwnProperty']('attributes')&&!_0x3861b6['isString'](_0x306410['attributes'])?'attributes:\x20string\x20expected':null;},_0x1831e6['fromObject']=function(_0x363e10){if(_0x363e10 instanceof _0xefac1b['TrackChangesAddSuggestionMessage'])return _0x363e10;var _0x30dafe=new _0xefac1b['TrackChangesAddSuggestionMessage']();return null!=_0x363e10['id']&&(_0x30dafe['id']=String(_0x363e10['id'])),null!=_0x363e10['documentId']&&(_0x30dafe['documentId']=String(_0x363e10['documentId'])),null!=_0x363e10['type']&&(_0x30dafe['type']=String(_0x363e10['type'])),null!=_0x363e10['data']&&(_0x30dafe['data']=String(_0x363e10['data'])),null!=_0x363e10['originalSuggestionId']&&(_0x30dafe['originalSuggestionId']=String(_0x363e10['originalSuggestionId'])),null!=_0x363e10['attributes']&&(_0x30dafe['attributes']=String(_0x363e10['attributes'])),_0x30dafe;},_0x1831e6['toObject']=function(_0x23ef5f,_0x5cf0a5){_0x5cf0a5||(_0x5cf0a5={});var _0x1f076e={};return _0x5cf0a5['defaults']&&(_0x1f076e['id']='',_0x1f076e['documentId']='',_0x1f076e['type']='',_0x1f076e['data']='',_0x1f076e['originalSuggestionId']='',_0x1f076e['attributes']=''),null!=_0x23ef5f['id']&&_0x23ef5f['hasOwnProperty']('id')&&(_0x1f076e['id']=_0x23ef5f['id']),null!=_0x23ef5f['documentId']&&_0x23ef5f['hasOwnProperty']('documentId')&&(_0x1f076e['documentId']=_0x23ef5f['documentId']),null!=_0x23ef5f['type']&&_0x23ef5f['hasOwnProperty']('type')&&(_0x1f076e['type']=_0x23ef5f['type']),null!=_0x23ef5f['data']&&_0x23ef5f['hasOwnProperty']('data')&&(_0x1f076e['data']=_0x23ef5f['data']),null!=_0x23ef5f['originalSuggestionId']&&_0x23ef5f['hasOwnProperty']('originalSuggestionId')&&(_0x1f076e['originalSuggestionId']=_0x23ef5f['originalSuggestionId']),null!=_0x23ef5f['attributes']&&_0x23ef5f['hasOwnProperty']('attributes')&&(_0x1f076e['attributes']=_0x23ef5f['attributes']),_0x1f076e;},_0x1831e6['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1831e6['getTypeUrl']=function(_0x4f767d){return void 0x0===_0x4f767d&&(_0x4f767d='type.googleapis.com'),_0x4f767d+'/TrackChangesAddSuggestionMessage';},_0x1831e6;}()),_0xefac1b['SuggestionDescriptor']=(function(){function _0x5333d1(_0x178a40){if(_0x178a40){for(var _0x428d58=Object['keys'](_0x178a40),_0x12c7c1=0x0;_0x12c7c1<_0x428d58['length'];++_0x12c7c1)null!=_0x178a40[_0x428d58[_0x12c7c1]]&&(this[_0x428d58[_0x12c7c1]]=_0x178a40[_0x428d58[_0x12c7c1]]);}}return _0x5333d1['prototype']['id']='',_0x5333d1['prototype']['authorId']='',_0x5333d1['prototype']['type']='',_0x5333d1['prototype']['createdAt']='',_0x5333d1['prototype']['data']='',_0x5333d1['prototype']['hasComments']=!0x1,_0x5333d1['prototype']['state']='',_0x5333d1['prototype']['attributes']='',_0x5333d1['create']=function(_0x4b69f5){return new _0x5333d1(_0x4b69f5);},_0x5333d1['encode']=function(_0x1b6a76,_0x1155eb){return _0x1155eb||(_0x1155eb=_0x3cb188['create']()),null!=_0x1b6a76['id']&&Object['hasOwnProperty']['call'](_0x1b6a76,'id')&&_0x1155eb['uint32'](0xa)['string'](_0x1b6a76['id']),null!=_0x1b6a76['authorId']&&Object['hasOwnProperty']['call'](_0x1b6a76,'authorId')&&_0x1155eb['uint32'](0x12)['string'](_0x1b6a76['authorId']),null!=_0x1b6a76['type']&&Object['hasOwnProperty']['call'](_0x1b6a76,'type')&&_0x1155eb['uint32'](0x1a)['string'](_0x1b6a76['type']),null!=_0x1b6a76['createdAt']&&Object['hasOwnProperty']['call'](_0x1b6a76,'createdAt')&&_0x1155eb['uint32'](0x22)['string'](_0x1b6a76['createdAt']),null!=_0x1b6a76['data']&&Object['hasOwnProperty']['call'](_0x1b6a76,'data')&&_0x1155eb['uint32'](0x2a)['string'](_0x1b6a76['data']),null!=_0x1b6a76['hasComments']&&Object['hasOwnProperty']['call'](_0x1b6a76,'hasComments')&&_0x1155eb['uint32'](0x30)['bool'](_0x1b6a76['hasComments']),null!=_0x1b6a76['state']&&Object['hasOwnProperty']['call'](_0x1b6a76,'state')&&_0x1155eb['uint32'](0x3a)['string'](_0x1b6a76['state']),null!=_0x1b6a76['attributes']&&Object['hasOwnProperty']['call'](_0x1b6a76,'attributes')&&_0x1155eb['uint32'](0x42)['string'](_0x1b6a76['attributes']),_0x1155eb;},_0x5333d1['encodeDelimited']=function(_0x441ee8,_0x3e80e7){return this['encode'](_0x441ee8,_0x3e80e7)['ldelim']();},_0x5333d1['decode']=function(_0x134a2c,_0x416610,_0x562898){_0x134a2c instanceof _0x19f3ea||(_0x134a2c=_0x19f3ea['create'](_0x134a2c));for(var _0x2b3d05=void 0x0===_0x416610?_0x134a2c['len']:_0x134a2c['pos']+_0x416610,_0x301d34=new _0xefac1b['SuggestionDescriptor']();_0x134a2c['pos']<_0x2b3d05;){var _0x1ccb45=_0x134a2c['uint32']();if(_0x1ccb45===_0x562898)break;switch(_0x1ccb45>>>0x3){case 0x1:_0x301d34['id']=_0x134a2c['string']();break;case 0x2:_0x301d34['authorId']=_0x134a2c['string']();break;case 0x3:_0x301d34['type']=_0x134a2c['string']();break;case 0x4:_0x301d34['createdAt']=_0x134a2c['string']();break;case 0x5:_0x301d34['data']=_0x134a2c['string']();break;case 0x6:_0x301d34['hasComments']=_0x134a2c['bool']();break;case 0x7:_0x301d34['state']=_0x134a2c['string']();break;case 0x8:_0x301d34['attributes']=_0x134a2c['string']();break;default:_0x134a2c['skipType'](0x7&_0x1ccb45);}}return _0x301d34;},_0x5333d1['decodeDelimited']=function(_0x43532f){return _0x43532f instanceof _0x19f3ea||(_0x43532f=new _0x19f3ea(_0x43532f)),this['decode'](_0x43532f,_0x43532f['uint32']());},_0x5333d1['verify']=function(_0x1dbdd4){return'object'!=typeof _0x1dbdd4||null===_0x1dbdd4?'object\x20expected':null!=_0x1dbdd4['id']&&_0x1dbdd4['hasOwnProperty']('id')&&!_0x3861b6['isString'](_0x1dbdd4['id'])?'id:\x20string\x20expected':null!=_0x1dbdd4['authorId']&&_0x1dbdd4['hasOwnProperty']('authorId')&&!_0x3861b6['isString'](_0x1dbdd4['authorId'])?'authorId:\x20string\x20expected':null!=_0x1dbdd4['type']&&_0x1dbdd4['hasOwnProperty']('type')&&!_0x3861b6['isString'](_0x1dbdd4['type'])?'type:\x20string\x20expected':null!=_0x1dbdd4['createdAt']&&_0x1dbdd4['hasOwnProperty']('createdAt')&&!_0x3861b6['isString'](_0x1dbdd4['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x1dbdd4['data']&&_0x1dbdd4['hasOwnProperty']('data')&&!_0x3861b6['isString'](_0x1dbdd4['data'])?'data:\x20string\x20expected':null!=_0x1dbdd4['hasComments']&&_0x1dbdd4['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x1dbdd4['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x1dbdd4['state']&&_0x1dbdd4['hasOwnProperty']('state')&&!_0x3861b6['isString'](_0x1dbdd4['state'])?'state:\x20string\x20expected':null!=_0x1dbdd4['attributes']&&_0x1dbdd4['hasOwnProperty']('attributes')&&!_0x3861b6['isString'](_0x1dbdd4['attributes'])?'attributes:\x20string\x20expected':null;},_0x5333d1['fromObject']=function(_0xbe9555){if(_0xbe9555 instanceof _0xefac1b['SuggestionDescriptor'])return _0xbe9555;var _0xdd5b20=new _0xefac1b['SuggestionDescriptor']();return null!=_0xbe9555['id']&&(_0xdd5b20['id']=String(_0xbe9555['id'])),null!=_0xbe9555['authorId']&&(_0xdd5b20['authorId']=String(_0xbe9555['authorId'])),null!=_0xbe9555['type']&&(_0xdd5b20['type']=String(_0xbe9555['type'])),null!=_0xbe9555['createdAt']&&(_0xdd5b20['createdAt']=String(_0xbe9555['createdAt'])),null!=_0xbe9555['data']&&(_0xdd5b20['data']=String(_0xbe9555['data'])),null!=_0xbe9555['hasComments']&&(_0xdd5b20['hasComments']=Boolean(_0xbe9555['hasComments'])),null!=_0xbe9555['state']&&(_0xdd5b20['state']=String(_0xbe9555['state'])),null!=_0xbe9555['attributes']&&(_0xdd5b20['attributes']=String(_0xbe9555['attributes'])),_0xdd5b20;},_0x5333d1['toObject']=function(_0x187227,_0x850abf){_0x850abf||(_0x850abf={});var _0x2f7f30={};return _0x850abf['defaults']&&(_0x2f7f30['id']='',_0x2f7f30['authorId']='',_0x2f7f30['type']='',_0x2f7f30['createdAt']='',_0x2f7f30['data']='',_0x2f7f30['hasComments']=!0x1,_0x2f7f30['state']='',_0x2f7f30['attributes']=''),null!=_0x187227['id']&&_0x187227['hasOwnProperty']('id')&&(_0x2f7f30['id']=_0x187227['id']),null!=_0x187227['authorId']&&_0x187227['hasOwnProperty']('authorId')&&(_0x2f7f30['authorId']=_0x187227['authorId']),null!=_0x187227['type']&&_0x187227['hasOwnProperty']('type')&&(_0x2f7f30['type']=_0x187227['type']),null!=_0x187227['createdAt']&&_0x187227['hasOwnProperty']('createdAt')&&(_0x2f7f30['createdAt']=_0x187227['createdAt']),null!=_0x187227['data']&&_0x187227['hasOwnProperty']('data')&&(_0x2f7f30['data']=_0x187227['data']),null!=_0x187227['hasComments']&&_0x187227['hasOwnProperty']('hasComments')&&(_0x2f7f30['hasComments']=_0x187227['hasComments']),null!=_0x187227['state']&&_0x187227['hasOwnProperty']('state')&&(_0x2f7f30['state']=_0x187227['state']),null!=_0x187227['attributes']&&_0x187227['hasOwnProperty']('attributes')&&(_0x2f7f30['attributes']=_0x187227['attributes']),_0x2f7f30;},_0x5333d1['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5333d1['getTypeUrl']=function(_0x402997){return void 0x0===_0x402997&&(_0x402997='type.googleapis.com'),_0x402997+'/SuggestionDescriptor';},_0x5333d1;}()),_0xefac1b['SessionsConnectResponse']=(function(){function _0x2d9a59(_0x48f3fe){if(this['sockets']=[],_0x48f3fe){for(var _0x1b8009=Object['keys'](_0x48f3fe),_0xc25b44=0x0;_0xc25b44<_0x1b8009['length'];++_0xc25b44)null!=_0x48f3fe[_0x1b8009[_0xc25b44]]&&(this[_0x1b8009[_0xc25b44]]=_0x48f3fe[_0x1b8009[_0xc25b44]]);}}return _0x2d9a59['prototype']['channel']='',_0x2d9a59['prototype']['sockets']=_0x3861b6['emptyArray'],_0x2d9a59['create']=function(_0x17c766){return new _0x2d9a59(_0x17c766);},_0x2d9a59['encode']=function(_0x36c441,_0x336f29){if(_0x336f29||(_0x336f29=_0x3cb188['create']()),null!=_0x36c441['channel']&&Object['hasOwnProperty']['call'](_0x36c441,'channel')&&_0x336f29['uint32'](0xa)['string'](_0x36c441['channel']),null!=_0x36c441['sockets']&&_0x36c441['sockets']['length']){for(var _0x4597e4=0x0;_0x4597e4<_0x36c441['sockets']['length'];++_0x4597e4)_0xefac1b['SessionsSocketDescriptor']['encode'](_0x36c441['sockets'][_0x4597e4],_0x336f29['uint32'](0x12)['fork']())['ldelim']();}return _0x336f29;},_0x2d9a59['encodeDelimited']=function(_0x49fb32,_0x2b3093){return this['encode'](_0x49fb32,_0x2b3093)['ldelim']();},_0x2d9a59['decode']=function(_0x36884a,_0x32c287,_0x1df2d9){_0x36884a instanceof _0x19f3ea||(_0x36884a=_0x19f3ea['create'](_0x36884a));for(var _0x645486=void 0x0===_0x32c287?_0x36884a['len']:_0x36884a['pos']+_0x32c287,_0x541889=new _0xefac1b['SessionsConnectResponse']();_0x36884a['pos']<_0x645486;){var _0x5e809e=_0x36884a['uint32']();if(_0x5e809e===_0x1df2d9)break;switch(_0x5e809e>>>0x3){case 0x1:_0x541889['channel']=_0x36884a['string']();break;case 0x2:_0x541889['sockets']&&_0x541889['sockets']['length']||(_0x541889['sockets']=[]),_0x541889['sockets']['push'](_0xefac1b['SessionsSocketDescriptor']['decode'](_0x36884a,_0x36884a['uint32']()));break;default:_0x36884a['skipType'](0x7&_0x5e809e);}}return _0x541889;},_0x2d9a59['decodeDelimited']=function(_0x9ce915){return _0x9ce915 instanceof _0x19f3ea||(_0x9ce915=new _0x19f3ea(_0x9ce915)),this['decode'](_0x9ce915,_0x9ce915['uint32']());},_0x2d9a59['verify']=function(_0x4cd284){if('object'!=typeof _0x4cd284||null===_0x4cd284)return'object\x20expected';if(null!=_0x4cd284['channel']&&_0x4cd284['hasOwnProperty']('channel')&&!_0x3861b6['isString'](_0x4cd284['channel']))return'channel:\x20string\x20expected';if(null!=_0x4cd284['sockets']&&_0x4cd284['hasOwnProperty']('sockets')){if(!Array['isArray'](_0x4cd284['sockets']))return'sockets:\x20array\x20expected';for(var _0x207d51=0x0;_0x207d51<_0x4cd284['sockets']['length'];++_0x207d51){var _0x33d934=_0xefac1b['SessionsSocketDescriptor']['verify'](_0x4cd284['sockets'][_0x207d51]);if(_0x33d934)return'sockets.'+_0x33d934;}}return null;},_0x2d9a59['fromObject']=function(_0x4a1567){if(_0x4a1567 instanceof _0xefac1b['SessionsConnectResponse'])return _0x4a1567;var _0x277d43=new _0xefac1b['SessionsConnectResponse']();if(null!=_0x4a1567['channel']&&(_0x277d43['channel']=String(_0x4a1567['channel'])),_0x4a1567['sockets']){if(!Array['isArray'](_0x4a1567['sockets']))throw TypeError('.SessionsConnectResponse.sockets:\x20array\x20expected');_0x277d43['sockets']=[];for(var _0x5263fb=0x0;_0x5263fb<_0x4a1567['sockets']['length'];++_0x5263fb){if('object'!=typeof _0x4a1567['sockets'][_0x5263fb])throw TypeError('.SessionsConnectResponse.sockets:\x20object\x20expected');_0x277d43['sockets'][_0x5263fb]=_0xefac1b['SessionsSocketDescriptor']['fromObject'](_0x4a1567['sockets'][_0x5263fb]);}}return _0x277d43;},_0x2d9a59['toObject']=function(_0x2b2c11,_0x493acf){_0x493acf||(_0x493acf={});var _0x11f544={};if((_0x493acf['arrays']||_0x493acf['defaults'])&&(_0x11f544['sockets']=[]),_0x493acf['defaults']&&(_0x11f544['channel']=''),null!=_0x2b2c11['channel']&&_0x2b2c11['hasOwnProperty']('channel')&&(_0x11f544['channel']=_0x2b2c11['channel']),_0x2b2c11['sockets']&&_0x2b2c11['sockets']['length']){_0x11f544['sockets']=[];for(var _0x423a2f=0x0;_0x423a2f<_0x2b2c11['sockets']['length'];++_0x423a2f)_0x11f544['sockets'][_0x423a2f]=_0xefac1b['SessionsSocketDescriptor']['toObject'](_0x2b2c11['sockets'][_0x423a2f],_0x493acf);}return _0x11f544;},_0x2d9a59['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2d9a59['getTypeUrl']=function(_0x4973e2){return void 0x0===_0x4973e2&&(_0x4973e2='type.googleapis.com'),_0x4973e2+'/SessionsConnectResponse';},_0x2d9a59;}()),_0xefac1b['SocketDisconnectMessage']=(function(){function _0x4517bc(_0x16f6c5){if(_0x16f6c5){for(var _0x540de3=Object['keys'](_0x16f6c5),_0x4837a0=0x0;_0x4837a0<_0x540de3['length'];++_0x4837a0)null!=_0x16f6c5[_0x540de3[_0x4837a0]]&&(this[_0x540de3[_0x4837a0]]=_0x16f6c5[_0x540de3[_0x4837a0]]);}}return _0x4517bc['prototype']['id']='',_0x4517bc['create']=function(_0x54f7b9){return new _0x4517bc(_0x54f7b9);},_0x4517bc['encode']=function(_0x1bdadc,_0x4357ad){return _0x4357ad||(_0x4357ad=_0x3cb188['create']()),null!=_0x1bdadc['id']&&Object['hasOwnProperty']['call'](_0x1bdadc,'id')&&_0x4357ad['uint32'](0xa)['string'](_0x1bdadc['id']),_0x4357ad;},_0x4517bc['encodeDelimited']=function(_0x15e3a8,_0x189c92){return this['encode'](_0x15e3a8,_0x189c92)['ldelim']();},_0x4517bc['decode']=function(_0x536aab,_0x46ffa6,_0x3674f5){_0x536aab instanceof _0x19f3ea||(_0x536aab=_0x19f3ea['create'](_0x536aab));for(var _0x5a395b=void 0x0===_0x46ffa6?_0x536aab['len']:_0x536aab['pos']+_0x46ffa6,_0x3205de=new _0xefac1b['SocketDisconnectMessage']();_0x536aab['pos']<_0x5a395b;){var _0xe70673=_0x536aab['uint32']();if(_0xe70673===_0x3674f5)break;_0xe70673>>>0x3==0x1?_0x3205de['id']=_0x536aab['string']():_0x536aab['skipType'](0x7&_0xe70673);}return _0x3205de;},_0x4517bc['decodeDelimited']=function(_0x19deba){return _0x19deba instanceof _0x19f3ea||(_0x19deba=new _0x19f3ea(_0x19deba)),this['decode'](_0x19deba,_0x19deba['uint32']());},_0x4517bc['verify']=function(_0x49ef68){return'object'!=typeof _0x49ef68||null===_0x49ef68?'object\x20expected':null!=_0x49ef68['id']&&_0x49ef68['hasOwnProperty']('id')&&!_0x3861b6['isString'](_0x49ef68['id'])?'id:\x20string\x20expected':null;},_0x4517bc['fromObject']=function(_0x2b08ff){if(_0x2b08ff instanceof _0xefac1b['SocketDisconnectMessage'])return _0x2b08ff;var _0x50ce9d=new _0xefac1b['SocketDisconnectMessage']();return null!=_0x2b08ff['id']&&(_0x50ce9d['id']=String(_0x2b08ff['id'])),_0x50ce9d;},_0x4517bc['toObject']=function(_0x2727a6,_0x302deb){_0x302deb||(_0x302deb={});var _0x5eed65={};return _0x302deb['defaults']&&(_0x5eed65['id']=''),null!=_0x2727a6['id']&&_0x2727a6['hasOwnProperty']('id')&&(_0x5eed65['id']=_0x2727a6['id']),_0x5eed65;},_0x4517bc['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4517bc['getTypeUrl']=function(_0x41af98){return void 0x0===_0x41af98&&(_0x41af98='type.googleapis.com'),_0x41af98+'/SocketDisconnectMessage';},_0x4517bc;}()),_0xefac1b['SocketConnectMessage']=(function(){function _0x3a6faa(_0x4d6a3e){if(this['permissions']=[],_0x4d6a3e){for(var _0x34e69e=Object['keys'](_0x4d6a3e),_0x43cb44=0x0;_0x43cb44<_0x34e69e['length'];++_0x43cb44)null!=_0x4d6a3e[_0x34e69e[_0x43cb44]]&&(this[_0x34e69e[_0x43cb44]]=_0x4d6a3e[_0x34e69e[_0x43cb44]]);}}return _0x3a6faa['prototype']['id']='',_0x3a6faa['prototype']['userId']='',_0x3a6faa['prototype']['role']='',_0x3a6faa['prototype']['permissions']=_0x3861b6['emptyArray'],_0x3a6faa['create']=function(_0x144bd1){return new _0x3a6faa(_0x144bd1);},_0x3a6faa['encode']=function(_0x40862e,_0x37c43e){if(_0x37c43e||(_0x37c43e=_0x3cb188['create']()),null!=_0x40862e['id']&&Object['hasOwnProperty']['call'](_0x40862e,'id')&&_0x37c43e['uint32'](0xa)['string'](_0x40862e['id']),null!=_0x40862e['userId']&&Object['hasOwnProperty']['call'](_0x40862e,'userId')&&_0x37c43e['uint32'](0x12)['string'](_0x40862e['userId']),null!=_0x40862e['role']&&Object['hasOwnProperty']['call'](_0x40862e,'role')&&_0x37c43e['uint32'](0x1a)['string'](_0x40862e['role']),null!=_0x40862e['permissions']&&_0x40862e['permissions']['length']){for(var _0x3eeed9=0x0;_0x3eeed9<_0x40862e['permissions']['length'];++_0x3eeed9)_0x37c43e['uint32'](0x22)['string'](_0x40862e['permissions'][_0x3eeed9]);}return _0x37c43e;},_0x3a6faa['encodeDelimited']=function(_0xc7bae0,_0x362ac8){return this['encode'](_0xc7bae0,_0x362ac8)['ldelim']();},_0x3a6faa['decode']=function(_0x910203,_0x57b02c,_0x4c3527){_0x910203 instanceof _0x19f3ea||(_0x910203=_0x19f3ea['create'](_0x910203));for(var _0x3aebd6=void 0x0===_0x57b02c?_0x910203['len']:_0x910203['pos']+_0x57b02c,_0x535636=new _0xefac1b['SocketConnectMessage']();_0x910203['pos']<_0x3aebd6;){var _0x4b49b9=_0x910203['uint32']();if(_0x4b49b9===_0x4c3527)break;switch(_0x4b49b9>>>0x3){case 0x1:_0x535636['id']=_0x910203['string']();break;case 0x2:_0x535636['userId']=_0x910203['string']();break;case 0x3:_0x535636['role']=_0x910203['string']();break;case 0x4:_0x535636['permissions']&&_0x535636['permissions']['length']||(_0x535636['permissions']=[]),_0x535636['permissions']['push'](_0x910203['string']());break;default:_0x910203['skipType'](0x7&_0x4b49b9);}}return _0x535636;},_0x3a6faa['decodeDelimited']=function(_0x394d37){return _0x394d37 instanceof _0x19f3ea||(_0x394d37=new _0x19f3ea(_0x394d37)),this['decode'](_0x394d37,_0x394d37['uint32']());},_0x3a6faa['verify']=function(_0x38c012){if('object'!=typeof _0x38c012||null===_0x38c012)return'object\x20expected';if(null!=_0x38c012['id']&&_0x38c012['hasOwnProperty']('id')&&!_0x3861b6['isString'](_0x38c012['id']))return'id:\x20string\x20expected';if(null!=_0x38c012['userId']&&_0x38c012['hasOwnProperty']('userId')&&!_0x3861b6['isString'](_0x38c012['userId']))return'userId:\x20string\x20expected';if(null!=_0x38c012['role']&&_0x38c012['hasOwnProperty']('role')&&!_0x3861b6['isString'](_0x38c012['role']))return'role:\x20string\x20expected';if(null!=_0x38c012['permissions']&&_0x38c012['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x38c012['permissions']))return'permissions:\x20array\x20expected';for(var _0x410200=0x0;_0x410200<_0x38c012['permissions']['length'];++_0x410200)if(!_0x3861b6['isString'](_0x38c012['permissions'][_0x410200]))return'permissions:\x20string[]\x20expected';}return null;},_0x3a6faa['fromObject']=function(_0x307480){if(_0x307480 instanceof _0xefac1b['SocketConnectMessage'])return _0x307480;var _0x1be1bb=new _0xefac1b['SocketConnectMessage']();if(null!=_0x307480['id']&&(_0x1be1bb['id']=String(_0x307480['id'])),null!=_0x307480['userId']&&(_0x1be1bb['userId']=String(_0x307480['userId'])),null!=_0x307480['role']&&(_0x1be1bb['role']=String(_0x307480['role'])),_0x307480['permissions']){if(!Array['isArray'](_0x307480['permissions']))throw TypeError('.SocketConnectMessage.permissions:\x20array\x20expected');_0x1be1bb['permissions']=[];for(var _0xf6a0ef=0x0;_0xf6a0ef<_0x307480['permissions']['length'];++_0xf6a0ef)_0x1be1bb['permissions'][_0xf6a0ef]=String(_0x307480['permissions'][_0xf6a0ef]);}return _0x1be1bb;},_0x3a6faa['toObject']=function(_0x483601,_0x441735){_0x441735||(_0x441735={});var _0x10538f={};if((_0x441735['arrays']||_0x441735['defaults'])&&(_0x10538f['permissions']=[]),_0x441735['defaults']&&(_0x10538f['id']='',_0x10538f['userId']='',_0x10538f['role']=''),null!=_0x483601['id']&&_0x483601['hasOwnProperty']('id')&&(_0x10538f['id']=_0x483601['id']),null!=_0x483601['userId']&&_0x483601['hasOwnProperty']('userId')&&(_0x10538f['userId']=_0x483601['userId']),null!=_0x483601['role']&&_0x483601['hasOwnProperty']('role')&&(_0x10538f['role']=_0x483601['role']),_0x483601['permissions']&&_0x483601['permissions']['length']){_0x10538f['permissions']=[];for(var _0x57e187=0x0;_0x57e187<_0x483601['permissions']['length'];++_0x57e187)_0x10538f['permissions'][_0x57e187]=_0x483601['permissions'][_0x57e187];}return _0x10538f;},_0x3a6faa['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3a6faa['getTypeUrl']=function(_0x35e5f8){return void 0x0===_0x35e5f8&&(_0x35e5f8='type.googleapis.com'),_0x35e5f8+'/SocketConnectMessage';},_0x3a6faa;}()),_0xefac1b['SessionsConnectMessage']=(function(){function _0x154864(_0x2d7630){if(_0x2d7630){for(var _0x1678fc=Object['keys'](_0x2d7630),_0x4a6c4b=0x0;_0x4a6c4b<_0x1678fc['length'];++_0x4a6c4b)null!=_0x2d7630[_0x1678fc[_0x4a6c4b]]&&(this[_0x1678fc[_0x4a6c4b]]=_0x2d7630[_0x1678fc[_0x4a6c4b]]);}}return _0x154864['prototype']['id']='',_0x154864['prototype']['sessionType']=0x0,_0x154864['create']=function(_0x20d7ac){return new _0x154864(_0x20d7ac);},_0x154864['encode']=function(_0x5a1ada,_0x51436f){return _0x51436f||(_0x51436f=_0x3cb188['create']()),null!=_0x5a1ada['id']&&Object['hasOwnProperty']['call'](_0x5a1ada,'id')&&_0x51436f['uint32'](0xa)['string'](_0x5a1ada['id']),null!=_0x5a1ada['sessionType']&&Object['hasOwnProperty']['call'](_0x5a1ada,'sessionType')&&_0x51436f['uint32'](0x10)['uint32'](_0x5a1ada['sessionType']),_0x51436f;},_0x154864['encodeDelimited']=function(_0x3f6388,_0x100da9){return this['encode'](_0x3f6388,_0x100da9)['ldelim']();},_0x154864['decode']=function(_0x246fa7,_0x2ee832,_0x288574){_0x246fa7 instanceof _0x19f3ea||(_0x246fa7=_0x19f3ea['create'](_0x246fa7));for(var _0x2b8653=void 0x0===_0x2ee832?_0x246fa7['len']:_0x246fa7['pos']+_0x2ee832,_0x3a1011=new _0xefac1b['SessionsConnectMessage']();_0x246fa7['pos']<_0x2b8653;){var _0x2ebf4b=_0x246fa7['uint32']();if(_0x2ebf4b===_0x288574)break;switch(_0x2ebf4b>>>0x3){case 0x1:_0x3a1011['id']=_0x246fa7['string']();break;case 0x2:_0x3a1011['sessionType']=_0x246fa7['uint32']();break;default:_0x246fa7['skipType'](0x7&_0x2ebf4b);}}return _0x3a1011;},_0x154864['decodeDelimited']=function(_0xbd60e0){return _0xbd60e0 instanceof _0x19f3ea||(_0xbd60e0=new _0x19f3ea(_0xbd60e0)),this['decode'](_0xbd60e0,_0xbd60e0['uint32']());},_0x154864['verify']=function(_0x53d02d){return'object'!=typeof _0x53d02d||null===_0x53d02d?'object\x20expected':null!=_0x53d02d['id']&&_0x53d02d['hasOwnProperty']('id')&&!_0x3861b6['isString'](_0x53d02d['id'])?'id:\x20string\x20expected':null!=_0x53d02d['sessionType']&&_0x53d02d['hasOwnProperty']('sessionType')&&!_0x3861b6['isInteger'](_0x53d02d['sessionType'])?'sessionType:\x20integer\x20expected':null;},_0x154864['fromObject']=function(_0x4c18bc){if(_0x4c18bc instanceof _0xefac1b['SessionsConnectMessage'])return _0x4c18bc;var _0x5a20cf=new _0xefac1b['SessionsConnectMessage']();return null!=_0x4c18bc['id']&&(_0x5a20cf['id']=String(_0x4c18bc['id'])),null!=_0x4c18bc['sessionType']&&(_0x5a20cf['sessionType']=_0x4c18bc['sessionType']>>>0x0),_0x5a20cf;},_0x154864['toObject']=function(_0x43f634,_0x423d8f){_0x423d8f||(_0x423d8f={});var _0x12b250={};return _0x423d8f['defaults']&&(_0x12b250['id']='',_0x12b250['sessionType']=0x0),null!=_0x43f634['id']&&_0x43f634['hasOwnProperty']('id')&&(_0x12b250['id']=_0x43f634['id']),null!=_0x43f634['sessionType']&&_0x43f634['hasOwnProperty']('sessionType')&&(_0x12b250['sessionType']=_0x43f634['sessionType']),_0x12b250;},_0x154864['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x154864['getTypeUrl']=function(_0x4755ec){return void 0x0===_0x4755ec&&(_0x4755ec='type.googleapis.com'),_0x4755ec+'/SessionsConnectMessage';},_0x154864;}()),_0xefac1b['SessionsSocketDescriptor']=(function(){function _0x2c8bad(_0x120599){if(this['permissions']=[],_0x120599){for(var _0x33c306=Object['keys'](_0x120599),_0x3ddbdf=0x0;_0x3ddbdf<_0x33c306['length'];++_0x3ddbdf)null!=_0x120599[_0x33c306[_0x3ddbdf]]&&(this[_0x33c306[_0x3ddbdf]]=_0x120599[_0x33c306[_0x3ddbdf]]);}}return _0x2c8bad['prototype']['session']='',_0x2c8bad['prototype']['user']='',_0x2c8bad['prototype']['role']='',_0x2c8bad['prototype']['permissions']=_0x3861b6['emptyArray'],_0x2c8bad['create']=function(_0x15f112){return new _0x2c8bad(_0x15f112);},_0x2c8bad['encode']=function(_0x387f53,_0x2745bc){if(_0x2745bc||(_0x2745bc=_0x3cb188['create']()),null!=_0x387f53['session']&&Object['hasOwnProperty']['call'](_0x387f53,'session')&&_0x2745bc['uint32'](0xa)['string'](_0x387f53['session']),null!=_0x387f53['user']&&Object['hasOwnProperty']['call'](_0x387f53,'user')&&_0x2745bc['uint32'](0x12)['string'](_0x387f53['user']),null!=_0x387f53['role']&&Object['hasOwnProperty']['call'](_0x387f53,'role')&&_0x2745bc['uint32'](0x1a)['string'](_0x387f53['role']),null!=_0x387f53['permissions']&&_0x387f53['permissions']['length']){for(var _0x43dd98=0x0;_0x43dd98<_0x387f53['permissions']['length'];++_0x43dd98)_0x2745bc['uint32'](0x22)['string'](_0x387f53['permissions'][_0x43dd98]);}return _0x2745bc;},_0x2c8bad['encodeDelimited']=function(_0x29ee78,_0x551a9e){return this['encode'](_0x29ee78,_0x551a9e)['ldelim']();},_0x2c8bad['decode']=function(_0x2e1ac3,_0x5d378,_0x2bbce5){_0x2e1ac3 instanceof _0x19f3ea||(_0x2e1ac3=_0x19f3ea['create'](_0x2e1ac3));for(var _0x22b390=void 0x0===_0x5d378?_0x2e1ac3['len']:_0x2e1ac3['pos']+_0x5d378,_0xdee288=new _0xefac1b['SessionsSocketDescriptor']();_0x2e1ac3['pos']<_0x22b390;){var _0x5c87d8=_0x2e1ac3['uint32']();if(_0x5c87d8===_0x2bbce5)break;switch(_0x5c87d8>>>0x3){case 0x1:_0xdee288['session']=_0x2e1ac3['string']();break;case 0x2:_0xdee288['user']=_0x2e1ac3['string']();break;case 0x3:_0xdee288['role']=_0x2e1ac3['string']();break;case 0x4:_0xdee288['permissions']&&_0xdee288['permissions']['length']||(_0xdee288['permissions']=[]),_0xdee288['permissions']['push'](_0x2e1ac3['string']());break;default:_0x2e1ac3['skipType'](0x7&_0x5c87d8);}}return _0xdee288;},_0x2c8bad['decodeDelimited']=function(_0x5d9179){return _0x5d9179 instanceof _0x19f3ea||(_0x5d9179=new _0x19f3ea(_0x5d9179)),this['decode'](_0x5d9179,_0x5d9179['uint32']());},_0x2c8bad['verify']=function(_0x3ddb0f){if('object'!=typeof _0x3ddb0f||null===_0x3ddb0f)return'object\x20expected';if(null!=_0x3ddb0f['session']&&_0x3ddb0f['hasOwnProperty']('session')&&!_0x3861b6['isString'](_0x3ddb0f['session']))return'session:\x20string\x20expected';if(null!=_0x3ddb0f['user']&&_0x3ddb0f['hasOwnProperty']('user')&&!_0x3861b6['isString'](_0x3ddb0f['user']))return'user:\x20string\x20expected';if(null!=_0x3ddb0f['role']&&_0x3ddb0f['hasOwnProperty']('role')&&!_0x3861b6['isString'](_0x3ddb0f['role']))return'role:\x20string\x20expected';if(null!=_0x3ddb0f['permissions']&&_0x3ddb0f['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x3ddb0f['permissions']))return'permissions:\x20array\x20expected';for(var _0x400980=0x0;_0x400980<_0x3ddb0f['permissions']['length'];++_0x400980)if(!_0x3861b6['isString'](_0x3ddb0f['permissions'][_0x400980]))return'permissions:\x20string[]\x20expected';}return null;},_0x2c8bad['fromObject']=function(_0x480144){if(_0x480144 instanceof _0xefac1b['SessionsSocketDescriptor'])return _0x480144;var _0x1cef95=new _0xefac1b['SessionsSocketDescriptor']();if(null!=_0x480144['session']&&(_0x1cef95['session']=String(_0x480144['session'])),null!=_0x480144['user']&&(_0x1cef95['user']=String(_0x480144['user'])),null!=_0x480144['role']&&(_0x1cef95['role']=String(_0x480144['role'])),_0x480144['permissions']){if(!Array['isArray'](_0x480144['permissions']))throw TypeError('.SessionsSocketDescriptor.permissions:\x20array\x20expected');_0x1cef95['permissions']=[];for(var _0x1e292e=0x0;_0x1e292e<_0x480144['permissions']['length'];++_0x1e292e)_0x1cef95['permissions'][_0x1e292e]=String(_0x480144['permissions'][_0x1e292e]);}return _0x1cef95;},_0x2c8bad['toObject']=function(_0x555d33,_0x5de47f){_0x5de47f||(_0x5de47f={});var _0x52abbf={};if((_0x5de47f['arrays']||_0x5de47f['defaults'])&&(_0x52abbf['permissions']=[]),_0x5de47f['defaults']&&(_0x52abbf['session']='',_0x52abbf['user']='',_0x52abbf['role']=''),null!=_0x555d33['session']&&_0x555d33['hasOwnProperty']('session')&&(_0x52abbf['session']=_0x555d33['session']),null!=_0x555d33['user']&&_0x555d33['hasOwnProperty']('user')&&(_0x52abbf['user']=_0x555d33['user']),null!=_0x555d33['role']&&_0x555d33['hasOwnProperty']('role')&&(_0x52abbf['role']=_0x555d33['role']),_0x555d33['permissions']&&_0x555d33['permissions']['length']){_0x52abbf['permissions']=[];for(var _0x2e011a=0x0;_0x2e011a<_0x555d33['permissions']['length'];++_0x2e011a)_0x52abbf['permissions'][_0x2e011a]=_0x555d33['permissions'][_0x2e011a];}return _0x52abbf;},_0x2c8bad['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2c8bad['getTypeUrl']=function(_0x3193d7){return void 0x0===_0x3193d7&&(_0x3193d7='type.googleapis.com'),_0x3193d7+'/SessionsSocketDescriptor';},_0x2c8bad;}()),_0xefac1b['RevisionHistoryUpdateRevisionsResponse']=(function(){function _0x5a276b(_0x4ce195){if(_0x4ce195){for(var _0x3b0d1d=Object['keys'](_0x4ce195),_0x1e5b12=0x0;_0x1e5b12<_0x3b0d1d['length'];++_0x1e5b12)null!=_0x4ce195[_0x3b0d1d[_0x1e5b12]]&&(this[_0x3b0d1d[_0x1e5b12]]=_0x4ce195[_0x3b0d1d[_0x1e5b12]]);}}return _0x5a276b['prototype']['requestId']=0x0,_0x5a276b['create']=function(_0x1e8050){return new _0x5a276b(_0x1e8050);},_0x5a276b['encode']=function(_0x4c63ee,_0x4fa3be){return _0x4fa3be||(_0x4fa3be=_0x3cb188['create']()),null!=_0x4c63ee['requestId']&&Object['hasOwnProperty']['call'](_0x4c63ee,'requestId')&&_0x4fa3be['uint32'](0x8)['uint32'](_0x4c63ee['requestId']),_0x4fa3be;},_0x5a276b['encodeDelimited']=function(_0x31fe13,_0x233850){return this['encode'](_0x31fe13,_0x233850)['ldelim']();},_0x5a276b['decode']=function(_0x4fc9c0,_0x1b0f7a,_0x4c7db1){_0x4fc9c0 instanceof _0x19f3ea||(_0x4fc9c0=_0x19f3ea['create'](_0x4fc9c0));for(var _0x4a273e=void 0x0===_0x1b0f7a?_0x4fc9c0['len']:_0x4fc9c0['pos']+_0x1b0f7a,_0x5487e8=new _0xefac1b['RevisionHistoryUpdateRevisionsResponse']();_0x4fc9c0['pos']<_0x4a273e;){var _0x5ec521=_0x4fc9c0['uint32']();if(_0x5ec521===_0x4c7db1)break;_0x5ec521>>>0x3==0x1?_0x5487e8['requestId']=_0x4fc9c0['uint32']():_0x4fc9c0['skipType'](0x7&_0x5ec521);}return _0x5487e8;},_0x5a276b['decodeDelimited']=function(_0x24261c){return _0x24261c instanceof _0x19f3ea||(_0x24261c=new _0x19f3ea(_0x24261c)),this['decode'](_0x24261c,_0x24261c['uint32']());},_0x5a276b['verify']=function(_0x107531){return'object'!=typeof _0x107531||null===_0x107531?'object\x20expected':null!=_0x107531['requestId']&&_0x107531['hasOwnProperty']('requestId')&&!_0x3861b6['isInteger'](_0x107531['requestId'])?'requestId:\x20integer\x20expected':null;},_0x5a276b['fromObject']=function(_0x31076b){if(_0x31076b instanceof _0xefac1b['RevisionHistoryUpdateRevisionsResponse'])return _0x31076b;var _0x38922b=new _0xefac1b['RevisionHistoryUpdateRevisionsResponse']();return null!=_0x31076b['requestId']&&(_0x38922b['requestId']=_0x31076b['requestId']>>>0x0),_0x38922b;},_0x5a276b['toObject']=function(_0x4c1c5f,_0x5239e4){_0x5239e4||(_0x5239e4={});var _0x125309={};return _0x5239e4['defaults']&&(_0x125309['requestId']=0x0),null!=_0x4c1c5f['requestId']&&_0x4c1c5f['hasOwnProperty']('requestId')&&(_0x125309['requestId']=_0x4c1c5f['requestId']),_0x125309;},_0x5a276b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5a276b['getTypeUrl']=function(_0x4edf7f){return void 0x0===_0x4edf7f&&(_0x4edf7f='type.googleapis.com'),_0x4edf7f+'/RevisionHistoryUpdateRevisionsResponse';},_0x5a276b;}()),_0xefac1b['RevisionHistoryGetRevisionResponse']=(function(){function _0x2f4561(_0x4b74c0){if(_0x4b74c0){for(var _0xa46403=Object['keys'](_0x4b74c0),_0x2ae727=0x0;_0x2ae727<_0xa46403['length'];++_0x2ae727)null!=_0x4b74c0[_0xa46403[_0x2ae727]]&&(this[_0xa46403[_0x2ae727]]=_0x4b74c0[_0xa46403[_0x2ae727]]);}}return _0x2f4561['prototype']['revisionId']='',_0x2f4561['prototype']['name']='',_0x2f4561['prototype']['creatorId']='',_0x2f4561['prototype']['authorsIds']='',_0x2f4561['prototype']['diffData']='',_0x2f4561['prototype']['createdAt']='',_0x2f4561['prototype']['attributes']='',_0x2f4561['prototype']['toVersion']=0x0,_0x2f4561['prototype']['fromVersion']=0x0,_0x2f4561['prototype']['isEmptyCurrent']=!0x1,_0x2f4561['create']=function(_0x5547f1){return new _0x2f4561(_0x5547f1);},_0x2f4561['encode']=function(_0x5935c2,_0x2f63da){return _0x2f63da||(_0x2f63da=_0x3cb188['create']()),null!=_0x5935c2['revisionId']&&Object['hasOwnProperty']['call'](_0x5935c2,'revisionId')&&_0x2f63da['uint32'](0xa)['string'](_0x5935c2['revisionId']),null!=_0x5935c2['name']&&Object['hasOwnProperty']['call'](_0x5935c2,'name')&&_0x2f63da['uint32'](0x12)['string'](_0x5935c2['name']),null!=_0x5935c2['creatorId']&&Object['hasOwnProperty']['call'](_0x5935c2,'creatorId')&&_0x2f63da['uint32'](0x1a)['string'](_0x5935c2['creatorId']),null!=_0x5935c2['authorsIds']&&Object['hasOwnProperty']['call'](_0x5935c2,'authorsIds')&&_0x2f63da['uint32'](0x22)['string'](_0x5935c2['authorsIds']),null!=_0x5935c2['diffData']&&Object['hasOwnProperty']['call'](_0x5935c2,'diffData')&&_0x2f63da['uint32'](0x2a)['string'](_0x5935c2['diffData']),null!=_0x5935c2['createdAt']&&Object['hasOwnProperty']['call'](_0x5935c2,'createdAt')&&_0x2f63da['uint32'](0x32)['string'](_0x5935c2['createdAt']),null!=_0x5935c2['attributes']&&Object['hasOwnProperty']['call'](_0x5935c2,'attributes')&&_0x2f63da['uint32'](0x3a)['string'](_0x5935c2['attributes']),null!=_0x5935c2['toVersion']&&Object['hasOwnProperty']['call'](_0x5935c2,'toVersion')&&_0x2f63da['uint32'](0x40)['uint32'](_0x5935c2['toVersion']),null!=_0x5935c2['fromVersion']&&Object['hasOwnProperty']['call'](_0x5935c2,'fromVersion')&&_0x2f63da['uint32'](0x48)['uint32'](_0x5935c2['fromVersion']),null!=_0x5935c2['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x5935c2,'isEmptyCurrent')&&_0x2f63da['uint32'](0x50)['bool'](_0x5935c2['isEmptyCurrent']),_0x2f63da;},_0x2f4561['encodeDelimited']=function(_0x5f1fdf,_0x85f0fc){return this['encode'](_0x5f1fdf,_0x85f0fc)['ldelim']();},_0x2f4561['decode']=function(_0x2826c8,_0x448386,_0x33e544){_0x2826c8 instanceof _0x19f3ea||(_0x2826c8=_0x19f3ea['create'](_0x2826c8));for(var _0x132c83=void 0x0===_0x448386?_0x2826c8['len']:_0x2826c8['pos']+_0x448386,_0x16e296=new _0xefac1b['RevisionHistoryGetRevisionResponse']();_0x2826c8['pos']<_0x132c83;){var _0x239433=_0x2826c8['uint32']();if(_0x239433===_0x33e544)break;switch(_0x239433>>>0x3){case 0x1:_0x16e296['revisionId']=_0x2826c8['string']();break;case 0x2:_0x16e296['name']=_0x2826c8['string']();break;case 0x3:_0x16e296['creatorId']=_0x2826c8['string']();break;case 0x4:_0x16e296['authorsIds']=_0x2826c8['string']();break;case 0x5:_0x16e296['diffData']=_0x2826c8['string']();break;case 0x6:_0x16e296['createdAt']=_0x2826c8['string']();break;case 0x7:_0x16e296['attributes']=_0x2826c8['string']();break;case 0x8:_0x16e296['toVersion']=_0x2826c8['uint32']();break;case 0x9:_0x16e296['fromVersion']=_0x2826c8['uint32']();break;case 0xa:_0x16e296['isEmptyCurrent']=_0x2826c8['bool']();break;default:_0x2826c8['skipType'](0x7&_0x239433);}}return _0x16e296;},_0x2f4561['decodeDelimited']=function(_0x589ee5){return _0x589ee5 instanceof _0x19f3ea||(_0x589ee5=new _0x19f3ea(_0x589ee5)),this['decode'](_0x589ee5,_0x589ee5['uint32']());},_0x2f4561['verify']=function(_0x3ec75f){return'object'!=typeof _0x3ec75f||null===_0x3ec75f?'object\x20expected':null!=_0x3ec75f['revisionId']&&_0x3ec75f['hasOwnProperty']('revisionId')&&!_0x3861b6['isString'](_0x3ec75f['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x3ec75f['name']&&_0x3ec75f['hasOwnProperty']('name')&&!_0x3861b6['isString'](_0x3ec75f['name'])?'name:\x20string\x20expected':null!=_0x3ec75f['creatorId']&&_0x3ec75f['hasOwnProperty']('creatorId')&&!_0x3861b6['isString'](_0x3ec75f['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x3ec75f['authorsIds']&&_0x3ec75f['hasOwnProperty']('authorsIds')&&!_0x3861b6['isString'](_0x3ec75f['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x3ec75f['diffData']&&_0x3ec75f['hasOwnProperty']('diffData')&&!_0x3861b6['isString'](_0x3ec75f['diffData'])?'diffData:\x20string\x20expected':null!=_0x3ec75f['createdAt']&&_0x3ec75f['hasOwnProperty']('createdAt')&&!_0x3861b6['isString'](_0x3ec75f['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x3ec75f['attributes']&&_0x3ec75f['hasOwnProperty']('attributes')&&!_0x3861b6['isString'](_0x3ec75f['attributes'])?'attributes:\x20string\x20expected':null!=_0x3ec75f['toVersion']&&_0x3ec75f['hasOwnProperty']('toVersion')&&!_0x3861b6['isInteger'](_0x3ec75f['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x3ec75f['fromVersion']&&_0x3ec75f['hasOwnProperty']('fromVersion')&&!_0x3861b6['isInteger'](_0x3ec75f['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x3ec75f['isEmptyCurrent']&&_0x3ec75f['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x3ec75f['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},_0x2f4561['fromObject']=function(_0x46ef15){if(_0x46ef15 instanceof _0xefac1b['RevisionHistoryGetRevisionResponse'])return _0x46ef15;var _0x428366=new _0xefac1b['RevisionHistoryGetRevisionResponse']();return null!=_0x46ef15['revisionId']&&(_0x428366['revisionId']=String(_0x46ef15['revisionId'])),null!=_0x46ef15['name']&&(_0x428366['name']=String(_0x46ef15['name'])),null!=_0x46ef15['creatorId']&&(_0x428366['creatorId']=String(_0x46ef15['creatorId'])),null!=_0x46ef15['authorsIds']&&(_0x428366['authorsIds']=String(_0x46ef15['authorsIds'])),null!=_0x46ef15['diffData']&&(_0x428366['diffData']=String(_0x46ef15['diffData'])),null!=_0x46ef15['createdAt']&&(_0x428366['createdAt']=String(_0x46ef15['createdAt'])),null!=_0x46ef15['attributes']&&(_0x428366['attributes']=String(_0x46ef15['attributes'])),null!=_0x46ef15['toVersion']&&(_0x428366['toVersion']=_0x46ef15['toVersion']>>>0x0),null!=_0x46ef15['fromVersion']&&(_0x428366['fromVersion']=_0x46ef15['fromVersion']>>>0x0),null!=_0x46ef15['isEmptyCurrent']&&(_0x428366['isEmptyCurrent']=Boolean(_0x46ef15['isEmptyCurrent'])),_0x428366;},_0x2f4561['toObject']=function(_0x2a494f,_0x5c7dbf){_0x5c7dbf||(_0x5c7dbf={});var _0x19c91e={};return _0x5c7dbf['defaults']&&(_0x19c91e['revisionId']='',_0x19c91e['name']='',_0x19c91e['creatorId']='',_0x19c91e['authorsIds']='',_0x19c91e['diffData']='',_0x19c91e['createdAt']='',_0x19c91e['attributes']='',_0x19c91e['toVersion']=0x0,_0x19c91e['fromVersion']=0x0,_0x19c91e['isEmptyCurrent']=!0x1),null!=_0x2a494f['revisionId']&&_0x2a494f['hasOwnProperty']('revisionId')&&(_0x19c91e['revisionId']=_0x2a494f['revisionId']),null!=_0x2a494f['name']&&_0x2a494f['hasOwnProperty']('name')&&(_0x19c91e['name']=_0x2a494f['name']),null!=_0x2a494f['creatorId']&&_0x2a494f['hasOwnProperty']('creatorId')&&(_0x19c91e['creatorId']=_0x2a494f['creatorId']),null!=_0x2a494f['authorsIds']&&_0x2a494f['hasOwnProperty']('authorsIds')&&(_0x19c91e['authorsIds']=_0x2a494f['authorsIds']),null!=_0x2a494f['diffData']&&_0x2a494f['hasOwnProperty']('diffData')&&(_0x19c91e['diffData']=_0x2a494f['diffData']),null!=_0x2a494f['createdAt']&&_0x2a494f['hasOwnProperty']('createdAt')&&(_0x19c91e['createdAt']=_0x2a494f['createdAt']),null!=_0x2a494f['attributes']&&_0x2a494f['hasOwnProperty']('attributes')&&(_0x19c91e['attributes']=_0x2a494f['attributes']),null!=_0x2a494f['toVersion']&&_0x2a494f['hasOwnProperty']('toVersion')&&(_0x19c91e['toVersion']=_0x2a494f['toVersion']),null!=_0x2a494f['fromVersion']&&_0x2a494f['hasOwnProperty']('fromVersion')&&(_0x19c91e['fromVersion']=_0x2a494f['fromVersion']),null!=_0x2a494f['isEmptyCurrent']&&_0x2a494f['hasOwnProperty']('isEmptyCurrent')&&(_0x19c91e['isEmptyCurrent']=_0x2a494f['isEmptyCurrent']),_0x19c91e;},_0x2f4561['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2f4561['getTypeUrl']=function(_0xb665c8){return void 0x0===_0xb665c8&&(_0xb665c8='type.googleapis.com'),_0xb665c8+'/RevisionHistoryGetRevisionResponse';},_0x2f4561;}()),_0xefac1b['RevisionHistoryConnectResponse']=(function(){function _0x5d67e1(_0x355815){if(this['revisions']=[],_0x355815){for(var _0x35272b=Object['keys'](_0x355815),_0x469682=0x0;_0x469682<_0x35272b['length'];++_0x469682)null!=_0x355815[_0x35272b[_0x469682]]&&(this[_0x35272b[_0x469682]]=_0x355815[_0x35272b[_0x469682]]);}}return _0x5d67e1['prototype']['channel']='',_0x5d67e1['prototype']['requestId']=0x0,_0x5d67e1['prototype']['revisions']=_0x3861b6['emptyArray'],_0x5d67e1['create']=function(_0x8e5fed){return new _0x5d67e1(_0x8e5fed);},_0x5d67e1['encode']=function(_0x37c734,_0x5ae242){if(_0x5ae242||(_0x5ae242=_0x3cb188['create']()),null!=_0x37c734['channel']&&Object['hasOwnProperty']['call'](_0x37c734,'channel')&&_0x5ae242['uint32'](0xa)['string'](_0x37c734['channel']),null!=_0x37c734['requestId']&&Object['hasOwnProperty']['call'](_0x37c734,'requestId')&&_0x5ae242['uint32'](0x10)['uint32'](_0x37c734['requestId']),null!=_0x37c734['revisions']&&_0x37c734['revisions']['length']){for(var _0x3ed1fb=0x0;_0x3ed1fb<_0x37c734['revisions']['length'];++_0x3ed1fb)_0xefac1b['RevisionDescriptor']['encode'](_0x37c734['revisions'][_0x3ed1fb],_0x5ae242['uint32'](0x1a)['fork']())['ldelim']();}return _0x5ae242;},_0x5d67e1['encodeDelimited']=function(_0x4f263d,_0x4d7c4c){return this['encode'](_0x4f263d,_0x4d7c4c)['ldelim']();},_0x5d67e1['decode']=function(_0x51881c,_0x36584d,_0x990919){_0x51881c instanceof _0x19f3ea||(_0x51881c=_0x19f3ea['create'](_0x51881c));for(var _0x58f7e6=void 0x0===_0x36584d?_0x51881c['len']:_0x51881c['pos']+_0x36584d,_0x399d92=new _0xefac1b['RevisionHistoryConnectResponse']();_0x51881c['pos']<_0x58f7e6;){var _0x4eba83=_0x51881c['uint32']();if(_0x4eba83===_0x990919)break;switch(_0x4eba83>>>0x3){case 0x1:_0x399d92['channel']=_0x51881c['string']();break;case 0x2:_0x399d92['requestId']=_0x51881c['uint32']();break;case 0x3:_0x399d92['revisions']&&_0x399d92['revisions']['length']||(_0x399d92['revisions']=[]),_0x399d92['revisions']['push'](_0xefac1b['RevisionDescriptor']['decode'](_0x51881c,_0x51881c['uint32']()));break;default:_0x51881c['skipType'](0x7&_0x4eba83);}}return _0x399d92;},_0x5d67e1['decodeDelimited']=function(_0x86bdef){return _0x86bdef instanceof _0x19f3ea||(_0x86bdef=new _0x19f3ea(_0x86bdef)),this['decode'](_0x86bdef,_0x86bdef['uint32']());},_0x5d67e1['verify']=function(_0x53e5a7){if('object'!=typeof _0x53e5a7||null===_0x53e5a7)return'object\x20expected';if(null!=_0x53e5a7['channel']&&_0x53e5a7['hasOwnProperty']('channel')&&!_0x3861b6['isString'](_0x53e5a7['channel']))return'channel:\x20string\x20expected';if(null!=_0x53e5a7['requestId']&&_0x53e5a7['hasOwnProperty']('requestId')&&!_0x3861b6['isInteger'](_0x53e5a7['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x53e5a7['revisions']&&_0x53e5a7['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x53e5a7['revisions']))return'revisions:\x20array\x20expected';for(var _0x288ca1=0x0;_0x288ca1<_0x53e5a7['revisions']['length'];++_0x288ca1){var _0x5dd229=_0xefac1b['RevisionDescriptor']['verify'](_0x53e5a7['revisions'][_0x288ca1]);if(_0x5dd229)return'revisions.'+_0x5dd229;}}return null;},_0x5d67e1['fromObject']=function(_0x54763c){if(_0x54763c instanceof _0xefac1b['RevisionHistoryConnectResponse'])return _0x54763c;var _0x53ae9b=new _0xefac1b['RevisionHistoryConnectResponse']();if(null!=_0x54763c['channel']&&(_0x53ae9b['channel']=String(_0x54763c['channel'])),null!=_0x54763c['requestId']&&(_0x53ae9b['requestId']=_0x54763c['requestId']>>>0x0),_0x54763c['revisions']){if(!Array['isArray'](_0x54763c['revisions']))throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20array\x20expected');_0x53ae9b['revisions']=[];for(var _0x33b4c5=0x0;_0x33b4c5<_0x54763c['revisions']['length'];++_0x33b4c5){if('object'!=typeof _0x54763c['revisions'][_0x33b4c5])throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20object\x20expected');_0x53ae9b['revisions'][_0x33b4c5]=_0xefac1b['RevisionDescriptor']['fromObject'](_0x54763c['revisions'][_0x33b4c5]);}}return _0x53ae9b;},_0x5d67e1['toObject']=function(_0x59564f,_0x23c864){_0x23c864||(_0x23c864={});var _0x222026={};if((_0x23c864['arrays']||_0x23c864['defaults'])&&(_0x222026['revisions']=[]),_0x23c864['defaults']&&(_0x222026['channel']='',_0x222026['requestId']=0x0),null!=_0x59564f['channel']&&_0x59564f['hasOwnProperty']('channel')&&(_0x222026['channel']=_0x59564f['channel']),null!=_0x59564f['requestId']&&_0x59564f['hasOwnProperty']('requestId')&&(_0x222026['requestId']=_0x59564f['requestId']),_0x59564f['revisions']&&_0x59564f['revisions']['length']){_0x222026['revisions']=[];for(var _0x44f194=0x0;_0x44f194<_0x59564f['revisions']['length'];++_0x44f194)_0x222026['revisions'][_0x44f194]=_0xefac1b['RevisionDescriptor']['toObject'](_0x59564f['revisions'][_0x44f194],_0x23c864);}return _0x222026;},_0x5d67e1['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5d67e1['getTypeUrl']=function(_0x13e462){return void 0x0===_0x13e462&&(_0x13e462='type.googleapis.com'),_0x13e462+'/RevisionHistoryConnectResponse';},_0x5d67e1;}()),_0xefac1b['RevisionHistoryUpdateRevisionsMessage']=(function(){function _0x392aec(_0x1927eb){if(this['revisions']=[],_0x1927eb){for(var _0x1069d4=Object['keys'](_0x1927eb),_0x393358=0x0;_0x393358<_0x1069d4['length'];++_0x393358)null!=_0x1927eb[_0x1069d4[_0x393358]]&&(this[_0x1069d4[_0x393358]]=_0x1927eb[_0x1069d4[_0x393358]]);}}return _0x392aec['prototype']['documentId']='',_0x392aec['prototype']['requestId']=0x0,_0x392aec['prototype']['revisions']=_0x3861b6['emptyArray'],_0x392aec['create']=function(_0x5ca1a0){return new _0x392aec(_0x5ca1a0);},_0x392aec['encode']=function(_0x4caf1b,_0x249b54){if(_0x249b54||(_0x249b54=_0x3cb188['create']()),null!=_0x4caf1b['documentId']&&Object['hasOwnProperty']['call'](_0x4caf1b,'documentId')&&_0x249b54['uint32'](0xa)['string'](_0x4caf1b['documentId']),null!=_0x4caf1b['requestId']&&Object['hasOwnProperty']['call'](_0x4caf1b,'requestId')&&_0x249b54['uint32'](0x10)['uint32'](_0x4caf1b['requestId']),null!=_0x4caf1b['revisions']&&_0x4caf1b['revisions']['length']){for(var _0x48b8aa=0x0;_0x48b8aa<_0x4caf1b['revisions']['length'];++_0x48b8aa)_0xefac1b['RevisionDescriptor']['encode'](_0x4caf1b['revisions'][_0x48b8aa],_0x249b54['uint32'](0x1a)['fork']())['ldelim']();}return _0x249b54;},_0x392aec['encodeDelimited']=function(_0x44a3af,_0x3a8e65){return this['encode'](_0x44a3af,_0x3a8e65)['ldelim']();},_0x392aec['decode']=function(_0x124718,_0x40bdfe,_0x243091){_0x124718 instanceof _0x19f3ea||(_0x124718=_0x19f3ea['create'](_0x124718));for(var _0x53cb54=void 0x0===_0x40bdfe?_0x124718['len']:_0x124718['pos']+_0x40bdfe,_0x1a8ba2=new _0xefac1b['RevisionHistoryUpdateRevisionsMessage']();_0x124718['pos']<_0x53cb54;){var _0x3525bd=_0x124718['uint32']();if(_0x3525bd===_0x243091)break;switch(_0x3525bd>>>0x3){case 0x1:_0x1a8ba2['documentId']=_0x124718['string']();break;case 0x2:_0x1a8ba2['requestId']=_0x124718['uint32']();break;case 0x3:_0x1a8ba2['revisions']&&_0x1a8ba2['revisions']['length']||(_0x1a8ba2['revisions']=[]),_0x1a8ba2['revisions']['push'](_0xefac1b['RevisionDescriptor']['decode'](_0x124718,_0x124718['uint32']()));break;default:_0x124718['skipType'](0x7&_0x3525bd);}}return _0x1a8ba2;},_0x392aec['decodeDelimited']=function(_0x24c1b2){return _0x24c1b2 instanceof _0x19f3ea||(_0x24c1b2=new _0x19f3ea(_0x24c1b2)),this['decode'](_0x24c1b2,_0x24c1b2['uint32']());},_0x392aec['verify']=function(_0x5bbfc7){if('object'!=typeof _0x5bbfc7||null===_0x5bbfc7)return'object\x20expected';if(null!=_0x5bbfc7['documentId']&&_0x5bbfc7['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x5bbfc7['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x5bbfc7['requestId']&&_0x5bbfc7['hasOwnProperty']('requestId')&&!_0x3861b6['isInteger'](_0x5bbfc7['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x5bbfc7['revisions']&&_0x5bbfc7['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x5bbfc7['revisions']))return'revisions:\x20array\x20expected';for(var _0x411562=0x0;_0x411562<_0x5bbfc7['revisions']['length'];++_0x411562){var _0x44fb0=_0xefac1b['RevisionDescriptor']['verify'](_0x5bbfc7['revisions'][_0x411562]);if(_0x44fb0)return'revisions.'+_0x44fb0;}}return null;},_0x392aec['fromObject']=function(_0x3e1ac2){if(_0x3e1ac2 instanceof _0xefac1b['RevisionHistoryUpdateRevisionsMessage'])return _0x3e1ac2;var _0x10680e=new _0xefac1b['RevisionHistoryUpdateRevisionsMessage']();if(null!=_0x3e1ac2['documentId']&&(_0x10680e['documentId']=String(_0x3e1ac2['documentId'])),null!=_0x3e1ac2['requestId']&&(_0x10680e['requestId']=_0x3e1ac2['requestId']>>>0x0),_0x3e1ac2['revisions']){if(!Array['isArray'](_0x3e1ac2['revisions']))throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20array\x20expected');_0x10680e['revisions']=[];for(var _0x1b9fe8=0x0;_0x1b9fe8<_0x3e1ac2['revisions']['length'];++_0x1b9fe8){if('object'!=typeof _0x3e1ac2['revisions'][_0x1b9fe8])throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20object\x20expected');_0x10680e['revisions'][_0x1b9fe8]=_0xefac1b['RevisionDescriptor']['fromObject'](_0x3e1ac2['revisions'][_0x1b9fe8]);}}return _0x10680e;},_0x392aec['toObject']=function(_0x18356d,_0x342125){_0x342125||(_0x342125={});var _0x23e234={};if((_0x342125['arrays']||_0x342125['defaults'])&&(_0x23e234['revisions']=[]),_0x342125['defaults']&&(_0x23e234['documentId']='',_0x23e234['requestId']=0x0),null!=_0x18356d['documentId']&&_0x18356d['hasOwnProperty']('documentId')&&(_0x23e234['documentId']=_0x18356d['documentId']),null!=_0x18356d['requestId']&&_0x18356d['hasOwnProperty']('requestId')&&(_0x23e234['requestId']=_0x18356d['requestId']),_0x18356d['revisions']&&_0x18356d['revisions']['length']){_0x23e234['revisions']=[];for(var _0x329fc2=0x0;_0x329fc2<_0x18356d['revisions']['length'];++_0x329fc2)_0x23e234['revisions'][_0x329fc2]=_0xefac1b['RevisionDescriptor']['toObject'](_0x18356d['revisions'][_0x329fc2],_0x342125);}return _0x23e234;},_0x392aec['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x392aec['getTypeUrl']=function(_0x399f83){return void 0x0===_0x399f83&&(_0x399f83='type.googleapis.com'),_0x399f83+'/RevisionHistoryUpdateRevisionsMessage';},_0x392aec;}()),_0xefac1b['RevisionHistoryReconnectMessage']=(function(){function _0x5a2f61(_0x54195b){if(_0x54195b){for(var _0x44f441=Object['keys'](_0x54195b),_0x2f2105=0x0;_0x2f2105<_0x44f441['length'];++_0x2f2105)null!=_0x54195b[_0x44f441[_0x2f2105]]&&(this[_0x44f441[_0x2f2105]]=_0x54195b[_0x44f441[_0x2f2105]]);}}return _0x5a2f61['prototype']['documentId']='',_0x5a2f61['prototype']['requestId']=0x0,_0x5a2f61['create']=function(_0x40187c){return new _0x5a2f61(_0x40187c);},_0x5a2f61['encode']=function(_0x1b41bc,_0x42ad34){return _0x42ad34||(_0x42ad34=_0x3cb188['create']()),null!=_0x1b41bc['documentId']&&Object['hasOwnProperty']['call'](_0x1b41bc,'documentId')&&_0x42ad34['uint32'](0xa)['string'](_0x1b41bc['documentId']),null!=_0x1b41bc['requestId']&&Object['hasOwnProperty']['call'](_0x1b41bc,'requestId')&&_0x42ad34['uint32'](0x10)['uint32'](_0x1b41bc['requestId']),_0x42ad34;},_0x5a2f61['encodeDelimited']=function(_0x7bbf23,_0x19a355){return this['encode'](_0x7bbf23,_0x19a355)['ldelim']();},_0x5a2f61['decode']=function(_0x4039d3,_0x5bdd68,_0x1a9696){_0x4039d3 instanceof _0x19f3ea||(_0x4039d3=_0x19f3ea['create'](_0x4039d3));for(var _0x2c3eba=void 0x0===_0x5bdd68?_0x4039d3['len']:_0x4039d3['pos']+_0x5bdd68,_0x42bd68=new _0xefac1b['RevisionHistoryReconnectMessage']();_0x4039d3['pos']<_0x2c3eba;){var _0xf14c56=_0x4039d3['uint32']();if(_0xf14c56===_0x1a9696)break;switch(_0xf14c56>>>0x3){case 0x1:_0x42bd68['documentId']=_0x4039d3['string']();break;case 0x2:_0x42bd68['requestId']=_0x4039d3['uint32']();break;default:_0x4039d3['skipType'](0x7&_0xf14c56);}}return _0x42bd68;},_0x5a2f61['decodeDelimited']=function(_0x30a354){return _0x30a354 instanceof _0x19f3ea||(_0x30a354=new _0x19f3ea(_0x30a354)),this['decode'](_0x30a354,_0x30a354['uint32']());},_0x5a2f61['verify']=function(_0x205cb1){return'object'!=typeof _0x205cb1||null===_0x205cb1?'object\x20expected':null!=_0x205cb1['documentId']&&_0x205cb1['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x205cb1['documentId'])?'documentId:\x20string\x20expected':null!=_0x205cb1['requestId']&&_0x205cb1['hasOwnProperty']('requestId')&&!_0x3861b6['isInteger'](_0x205cb1['requestId'])?'requestId:\x20integer\x20expected':null;},_0x5a2f61['fromObject']=function(_0x35f02f){if(_0x35f02f instanceof _0xefac1b['RevisionHistoryReconnectMessage'])return _0x35f02f;var _0x372850=new _0xefac1b['RevisionHistoryReconnectMessage']();return null!=_0x35f02f['documentId']&&(_0x372850['documentId']=String(_0x35f02f['documentId'])),null!=_0x35f02f['requestId']&&(_0x372850['requestId']=_0x35f02f['requestId']>>>0x0),_0x372850;},_0x5a2f61['toObject']=function(_0xb6cef8,_0x30f9c0){_0x30f9c0||(_0x30f9c0={});var _0x14c891={};return _0x30f9c0['defaults']&&(_0x14c891['documentId']='',_0x14c891['requestId']=0x0),null!=_0xb6cef8['documentId']&&_0xb6cef8['hasOwnProperty']('documentId')&&(_0x14c891['documentId']=_0xb6cef8['documentId']),null!=_0xb6cef8['requestId']&&_0xb6cef8['hasOwnProperty']('requestId')&&(_0x14c891['requestId']=_0xb6cef8['requestId']),_0x14c891;},_0x5a2f61['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5a2f61['getTypeUrl']=function(_0x57c3db){return void 0x0===_0x57c3db&&(_0x57c3db='type.googleapis.com'),_0x57c3db+'/RevisionHistoryReconnectMessage';},_0x5a2f61;}()),_0xefac1b['RevisionHistoryGetRevisionMessage']=(function(){function _0x573945(_0x11ccdd){if(_0x11ccdd){for(var _0x19d9a0=Object['keys'](_0x11ccdd),_0x58c9f2=0x0;_0x58c9f2<_0x19d9a0['length'];++_0x58c9f2)null!=_0x11ccdd[_0x19d9a0[_0x58c9f2]]&&(this[_0x19d9a0[_0x58c9f2]]=_0x11ccdd[_0x19d9a0[_0x58c9f2]]);}}return _0x573945['prototype']['documentId']='',_0x573945['prototype']['revisionId']='',_0x573945['create']=function(_0x1a7bb5){return new _0x573945(_0x1a7bb5);},_0x573945['encode']=function(_0x43996d,_0x286232){return _0x286232||(_0x286232=_0x3cb188['create']()),null!=_0x43996d['documentId']&&Object['hasOwnProperty']['call'](_0x43996d,'documentId')&&_0x286232['uint32'](0xa)['string'](_0x43996d['documentId']),null!=_0x43996d['revisionId']&&Object['hasOwnProperty']['call'](_0x43996d,'revisionId')&&_0x286232['uint32'](0x12)['string'](_0x43996d['revisionId']),_0x286232;},_0x573945['encodeDelimited']=function(_0x385c85,_0x3fded2){return this['encode'](_0x385c85,_0x3fded2)['ldelim']();},_0x573945['decode']=function(_0x1973da,_0x1f9a92,_0x532f1e){_0x1973da instanceof _0x19f3ea||(_0x1973da=_0x19f3ea['create'](_0x1973da));for(var _0x2109a1=void 0x0===_0x1f9a92?_0x1973da['len']:_0x1973da['pos']+_0x1f9a92,_0xe090c9=new _0xefac1b['RevisionHistoryGetRevisionMessage']();_0x1973da['pos']<_0x2109a1;){var _0x28c7b2=_0x1973da['uint32']();if(_0x28c7b2===_0x532f1e)break;switch(_0x28c7b2>>>0x3){case 0x1:_0xe090c9['documentId']=_0x1973da['string']();break;case 0x2:_0xe090c9['revisionId']=_0x1973da['string']();break;default:_0x1973da['skipType'](0x7&_0x28c7b2);}}return _0xe090c9;},_0x573945['decodeDelimited']=function(_0x1111b8){return _0x1111b8 instanceof _0x19f3ea||(_0x1111b8=new _0x19f3ea(_0x1111b8)),this['decode'](_0x1111b8,_0x1111b8['uint32']());},_0x573945['verify']=function(_0x92e4fc){return'object'!=typeof _0x92e4fc||null===_0x92e4fc?'object\x20expected':null!=_0x92e4fc['documentId']&&_0x92e4fc['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x92e4fc['documentId'])?'documentId:\x20string\x20expected':null!=_0x92e4fc['revisionId']&&_0x92e4fc['hasOwnProperty']('revisionId')&&!_0x3861b6['isString'](_0x92e4fc['revisionId'])?'revisionId:\x20string\x20expected':null;},_0x573945['fromObject']=function(_0x57675c){if(_0x57675c instanceof _0xefac1b['RevisionHistoryGetRevisionMessage'])return _0x57675c;var _0x11077d=new _0xefac1b['RevisionHistoryGetRevisionMessage']();return null!=_0x57675c['documentId']&&(_0x11077d['documentId']=String(_0x57675c['documentId'])),null!=_0x57675c['revisionId']&&(_0x11077d['revisionId']=String(_0x57675c['revisionId'])),_0x11077d;},_0x573945['toObject']=function(_0x3d1dcf,_0x46ed0f){_0x46ed0f||(_0x46ed0f={});var _0x1b1fb3={};return _0x46ed0f['defaults']&&(_0x1b1fb3['documentId']='',_0x1b1fb3['revisionId']=''),null!=_0x3d1dcf['documentId']&&_0x3d1dcf['hasOwnProperty']('documentId')&&(_0x1b1fb3['documentId']=_0x3d1dcf['documentId']),null!=_0x3d1dcf['revisionId']&&_0x3d1dcf['hasOwnProperty']('revisionId')&&(_0x1b1fb3['revisionId']=_0x3d1dcf['revisionId']),_0x1b1fb3;},_0x573945['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x573945['getTypeUrl']=function(_0x122682){return void 0x0===_0x122682&&(_0x122682='type.googleapis.com'),_0x122682+'/RevisionHistoryGetRevisionMessage';},_0x573945;}()),_0xefac1b['RevisionHistoryConnectMessage']=(function(){function _0x723468(_0xd1642c){if(_0xd1642c){for(var _0x3d0fc4=Object['keys'](_0xd1642c),_0x10772e=0x0;_0x10772e<_0x3d0fc4['length'];++_0x10772e)null!=_0xd1642c[_0x3d0fc4[_0x10772e]]&&(this[_0x3d0fc4[_0x10772e]]=_0xd1642c[_0x3d0fc4[_0x10772e]]);}}return _0x723468['prototype']['documentId']='',_0x723468['create']=function(_0x5beac4){return new _0x723468(_0x5beac4);},_0x723468['encode']=function(_0x1b701a,_0x2cea4a){return _0x2cea4a||(_0x2cea4a=_0x3cb188['create']()),null!=_0x1b701a['documentId']&&Object['hasOwnProperty']['call'](_0x1b701a,'documentId')&&_0x2cea4a['uint32'](0xa)['string'](_0x1b701a['documentId']),_0x2cea4a;},_0x723468['encodeDelimited']=function(_0x16f4fa,_0x29a327){return this['encode'](_0x16f4fa,_0x29a327)['ldelim']();},_0x723468['decode']=function(_0x2e8b88,_0x1084de,_0x172347){_0x2e8b88 instanceof _0x19f3ea||(_0x2e8b88=_0x19f3ea['create'](_0x2e8b88));for(var _0x4056c5=void 0x0===_0x1084de?_0x2e8b88['len']:_0x2e8b88['pos']+_0x1084de,_0x5181f0=new _0xefac1b['RevisionHistoryConnectMessage']();_0x2e8b88['pos']<_0x4056c5;){var _0x286416=_0x2e8b88['uint32']();if(_0x286416===_0x172347)break;_0x286416>>>0x3==0x1?_0x5181f0['documentId']=_0x2e8b88['string']():_0x2e8b88['skipType'](0x7&_0x286416);}return _0x5181f0;},_0x723468['decodeDelimited']=function(_0x1b579a){return _0x1b579a instanceof _0x19f3ea||(_0x1b579a=new _0x19f3ea(_0x1b579a)),this['decode'](_0x1b579a,_0x1b579a['uint32']());},_0x723468['verify']=function(_0x561ab7){return'object'!=typeof _0x561ab7||null===_0x561ab7?'object\x20expected':null!=_0x561ab7['documentId']&&_0x561ab7['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x561ab7['documentId'])?'documentId:\x20string\x20expected':null;},_0x723468['fromObject']=function(_0x37ced6){if(_0x37ced6 instanceof _0xefac1b['RevisionHistoryConnectMessage'])return _0x37ced6;var _0x434435=new _0xefac1b['RevisionHistoryConnectMessage']();return null!=_0x37ced6['documentId']&&(_0x434435['documentId']=String(_0x37ced6['documentId'])),_0x434435;},_0x723468['toObject']=function(_0x1f3e42,_0x368990){_0x368990||(_0x368990={});var _0x3ef3ab={};return _0x368990['defaults']&&(_0x3ef3ab['documentId']=''),null!=_0x1f3e42['documentId']&&_0x1f3e42['hasOwnProperty']('documentId')&&(_0x3ef3ab['documentId']=_0x1f3e42['documentId']),_0x3ef3ab;},_0x723468['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x723468['getTypeUrl']=function(_0x1bee90){return void 0x0===_0x1bee90&&(_0x1bee90='type.googleapis.com'),_0x1bee90+'/RevisionHistoryConnectMessage';},_0x723468;}()),_0xefac1b['RevisionDescriptor']=(function(){function _0x403c7f(_0x2875c1){if(_0x2875c1){for(var _0x260665=Object['keys'](_0x2875c1),_0x5864e8=0x0;_0x5864e8<_0x260665['length'];++_0x5864e8)null!=_0x2875c1[_0x260665[_0x5864e8]]&&(this[_0x260665[_0x5864e8]]=_0x2875c1[_0x260665[_0x5864e8]]);}}return _0x403c7f['prototype']['revisionId']='',_0x403c7f['prototype']['name']='',_0x403c7f['prototype']['creatorId']='',_0x403c7f['prototype']['authorsIds']='',_0x403c7f['prototype']['diffData']='',_0x403c7f['prototype']['createdAt']='',_0x403c7f['prototype']['attributes']='',_0x403c7f['prototype']['toVersion']=0x0,_0x403c7f['prototype']['fromVersion']=0x0,_0x403c7f['prototype']['isEmptyCurrent']=!0x1,_0x403c7f['create']=function(_0x52e8e2){return new _0x403c7f(_0x52e8e2);},_0x403c7f['encode']=function(_0x352bd2,_0x261861){return _0x261861||(_0x261861=_0x3cb188['create']()),null!=_0x352bd2['revisionId']&&Object['hasOwnProperty']['call'](_0x352bd2,'revisionId')&&_0x261861['uint32'](0xa)['string'](_0x352bd2['revisionId']),null!=_0x352bd2['name']&&Object['hasOwnProperty']['call'](_0x352bd2,'name')&&_0x261861['uint32'](0x12)['string'](_0x352bd2['name']),null!=_0x352bd2['creatorId']&&Object['hasOwnProperty']['call'](_0x352bd2,'creatorId')&&_0x261861['uint32'](0x1a)['string'](_0x352bd2['creatorId']),null!=_0x352bd2['authorsIds']&&Object['hasOwnProperty']['call'](_0x352bd2,'authorsIds')&&_0x261861['uint32'](0x22)['string'](_0x352bd2['authorsIds']),null!=_0x352bd2['diffData']&&Object['hasOwnProperty']['call'](_0x352bd2,'diffData')&&_0x261861['uint32'](0x2a)['string'](_0x352bd2['diffData']),null!=_0x352bd2['createdAt']&&Object['hasOwnProperty']['call'](_0x352bd2,'createdAt')&&_0x261861['uint32'](0x32)['string'](_0x352bd2['createdAt']),null!=_0x352bd2['attributes']&&Object['hasOwnProperty']['call'](_0x352bd2,'attributes')&&_0x261861['uint32'](0x3a)['string'](_0x352bd2['attributes']),null!=_0x352bd2['toVersion']&&Object['hasOwnProperty']['call'](_0x352bd2,'toVersion')&&_0x261861['uint32'](0x40)['uint32'](_0x352bd2['toVersion']),null!=_0x352bd2['fromVersion']&&Object['hasOwnProperty']['call'](_0x352bd2,'fromVersion')&&_0x261861['uint32'](0x48)['uint32'](_0x352bd2['fromVersion']),null!=_0x352bd2['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x352bd2,'isEmptyCurrent')&&_0x261861['uint32'](0x50)['bool'](_0x352bd2['isEmptyCurrent']),_0x261861;},_0x403c7f['encodeDelimited']=function(_0x23f357,_0x582ca1){return this['encode'](_0x23f357,_0x582ca1)['ldelim']();},_0x403c7f['decode']=function(_0x38e60a,_0x4d4f9e,_0x53ac18){_0x38e60a instanceof _0x19f3ea||(_0x38e60a=_0x19f3ea['create'](_0x38e60a));for(var _0x5cf7f7=void 0x0===_0x4d4f9e?_0x38e60a['len']:_0x38e60a['pos']+_0x4d4f9e,_0x45d271=new _0xefac1b['RevisionDescriptor']();_0x38e60a['pos']<_0x5cf7f7;){var _0x40ad5a=_0x38e60a['uint32']();if(_0x40ad5a===_0x53ac18)break;switch(_0x40ad5a>>>0x3){case 0x1:_0x45d271['revisionId']=_0x38e60a['string']();break;case 0x2:_0x45d271['name']=_0x38e60a['string']();break;case 0x3:_0x45d271['creatorId']=_0x38e60a['string']();break;case 0x4:_0x45d271['authorsIds']=_0x38e60a['string']();break;case 0x5:_0x45d271['diffData']=_0x38e60a['string']();break;case 0x6:_0x45d271['createdAt']=_0x38e60a['string']();break;case 0x7:_0x45d271['attributes']=_0x38e60a['string']();break;case 0x8:_0x45d271['toVersion']=_0x38e60a['uint32']();break;case 0x9:_0x45d271['fromVersion']=_0x38e60a['uint32']();break;case 0xa:_0x45d271['isEmptyCurrent']=_0x38e60a['bool']();break;default:_0x38e60a['skipType'](0x7&_0x40ad5a);}}return _0x45d271;},_0x403c7f['decodeDelimited']=function(_0x42f719){return _0x42f719 instanceof _0x19f3ea||(_0x42f719=new _0x19f3ea(_0x42f719)),this['decode'](_0x42f719,_0x42f719['uint32']());},_0x403c7f['verify']=function(_0x322be7){return'object'!=typeof _0x322be7||null===_0x322be7?'object\x20expected':null!=_0x322be7['revisionId']&&_0x322be7['hasOwnProperty']('revisionId')&&!_0x3861b6['isString'](_0x322be7['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x322be7['name']&&_0x322be7['hasOwnProperty']('name')&&!_0x3861b6['isString'](_0x322be7['name'])?'name:\x20string\x20expected':null!=_0x322be7['creatorId']&&_0x322be7['hasOwnProperty']('creatorId')&&!_0x3861b6['isString'](_0x322be7['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x322be7['authorsIds']&&_0x322be7['hasOwnProperty']('authorsIds')&&!_0x3861b6['isString'](_0x322be7['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x322be7['diffData']&&_0x322be7['hasOwnProperty']('diffData')&&!_0x3861b6['isString'](_0x322be7['diffData'])?'diffData:\x20string\x20expected':null!=_0x322be7['createdAt']&&_0x322be7['hasOwnProperty']('createdAt')&&!_0x3861b6['isString'](_0x322be7['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x322be7['attributes']&&_0x322be7['hasOwnProperty']('attributes')&&!_0x3861b6['isString'](_0x322be7['attributes'])?'attributes:\x20string\x20expected':null!=_0x322be7['toVersion']&&_0x322be7['hasOwnProperty']('toVersion')&&!_0x3861b6['isInteger'](_0x322be7['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x322be7['fromVersion']&&_0x322be7['hasOwnProperty']('fromVersion')&&!_0x3861b6['isInteger'](_0x322be7['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x322be7['isEmptyCurrent']&&_0x322be7['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x322be7['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},_0x403c7f['fromObject']=function(_0x4d3ab8){if(_0x4d3ab8 instanceof _0xefac1b['RevisionDescriptor'])return _0x4d3ab8;var _0x385371=new _0xefac1b['RevisionDescriptor']();return null!=_0x4d3ab8['revisionId']&&(_0x385371['revisionId']=String(_0x4d3ab8['revisionId'])),null!=_0x4d3ab8['name']&&(_0x385371['name']=String(_0x4d3ab8['name'])),null!=_0x4d3ab8['creatorId']&&(_0x385371['creatorId']=String(_0x4d3ab8['creatorId'])),null!=_0x4d3ab8['authorsIds']&&(_0x385371['authorsIds']=String(_0x4d3ab8['authorsIds'])),null!=_0x4d3ab8['diffData']&&(_0x385371['diffData']=String(_0x4d3ab8['diffData'])),null!=_0x4d3ab8['createdAt']&&(_0x385371['createdAt']=String(_0x4d3ab8['createdAt'])),null!=_0x4d3ab8['attributes']&&(_0x385371['attributes']=String(_0x4d3ab8['attributes'])),null!=_0x4d3ab8['toVersion']&&(_0x385371['toVersion']=_0x4d3ab8['toVersion']>>>0x0),null!=_0x4d3ab8['fromVersion']&&(_0x385371['fromVersion']=_0x4d3ab8['fromVersion']>>>0x0),null!=_0x4d3ab8['isEmptyCurrent']&&(_0x385371['isEmptyCurrent']=Boolean(_0x4d3ab8['isEmptyCurrent'])),_0x385371;},_0x403c7f['toObject']=function(_0x604d5f,_0xba041e){_0xba041e||(_0xba041e={});var _0x1f9fe7={};return _0xba041e['defaults']&&(_0x1f9fe7['revisionId']='',_0x1f9fe7['name']='',_0x1f9fe7['creatorId']='',_0x1f9fe7['authorsIds']='',_0x1f9fe7['diffData']='',_0x1f9fe7['createdAt']='',_0x1f9fe7['attributes']='',_0x1f9fe7['toVersion']=0x0,_0x1f9fe7['fromVersion']=0x0,_0x1f9fe7['isEmptyCurrent']=!0x1),null!=_0x604d5f['revisionId']&&_0x604d5f['hasOwnProperty']('revisionId')&&(_0x1f9fe7['revisionId']=_0x604d5f['revisionId']),null!=_0x604d5f['name']&&_0x604d5f['hasOwnProperty']('name')&&(_0x1f9fe7['name']=_0x604d5f['name']),null!=_0x604d5f['creatorId']&&_0x604d5f['hasOwnProperty']('creatorId')&&(_0x1f9fe7['creatorId']=_0x604d5f['creatorId']),null!=_0x604d5f['authorsIds']&&_0x604d5f['hasOwnProperty']('authorsIds')&&(_0x1f9fe7['authorsIds']=_0x604d5f['authorsIds']),null!=_0x604d5f['diffData']&&_0x604d5f['hasOwnProperty']('diffData')&&(_0x1f9fe7['diffData']=_0x604d5f['diffData']),null!=_0x604d5f['createdAt']&&_0x604d5f['hasOwnProperty']('createdAt')&&(_0x1f9fe7['createdAt']=_0x604d5f['createdAt']),null!=_0x604d5f['attributes']&&_0x604d5f['hasOwnProperty']('attributes')&&(_0x1f9fe7['attributes']=_0x604d5f['attributes']),null!=_0x604d5f['toVersion']&&_0x604d5f['hasOwnProperty']('toVersion')&&(_0x1f9fe7['toVersion']=_0x604d5f['toVersion']),null!=_0x604d5f['fromVersion']&&_0x604d5f['hasOwnProperty']('fromVersion')&&(_0x1f9fe7['fromVersion']=_0x604d5f['fromVersion']),null!=_0x604d5f['isEmptyCurrent']&&_0x604d5f['hasOwnProperty']('isEmptyCurrent')&&(_0x1f9fe7['isEmptyCurrent']=_0x604d5f['isEmptyCurrent']),_0x1f9fe7;},_0x403c7f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x403c7f['getTypeUrl']=function(_0x12cb22){return void 0x0===_0x12cb22&&(_0x12cb22='type.googleapis.com'),_0x12cb22+'/RevisionDescriptor';},_0x403c7f;}()),_0xefac1b['IsEditorBundleUploadedResponse']=(function(){function _0x50654e(_0x3c1348){if(_0x3c1348){for(var _0x390bc8=Object['keys'](_0x3c1348),_0x3b24db=0x0;_0x3b24db<_0x390bc8['length'];++_0x3b24db)null!=_0x3c1348[_0x390bc8[_0x3b24db]]&&(this[_0x390bc8[_0x3b24db]]=_0x3c1348[_0x390bc8[_0x3b24db]]);}}return _0x50654e['prototype']['isUploaded']=!0x1,_0x50654e['create']=function(_0x1878dd){return new _0x50654e(_0x1878dd);},_0x50654e['encode']=function(_0x4f0792,_0x600928){return _0x600928||(_0x600928=_0x3cb188['create']()),null!=_0x4f0792['isUploaded']&&Object['hasOwnProperty']['call'](_0x4f0792,'isUploaded')&&_0x600928['uint32'](0x8)['bool'](_0x4f0792['isUploaded']),_0x600928;},_0x50654e['encodeDelimited']=function(_0x59bafd,_0x3791f2){return this['encode'](_0x59bafd,_0x3791f2)['ldelim']();},_0x50654e['decode']=function(_0x45a992,_0xf54a3,_0x28da72){_0x45a992 instanceof _0x19f3ea||(_0x45a992=_0x19f3ea['create'](_0x45a992));for(var _0x2ffcf2=void 0x0===_0xf54a3?_0x45a992['len']:_0x45a992['pos']+_0xf54a3,_0x2d10be=new _0xefac1b['IsEditorBundleUploadedResponse']();_0x45a992['pos']<_0x2ffcf2;){var _0x3f92b0=_0x45a992['uint32']();if(_0x3f92b0===_0x28da72)break;_0x3f92b0>>>0x3==0x1?_0x2d10be['isUploaded']=_0x45a992['bool']():_0x45a992['skipType'](0x7&_0x3f92b0);}return _0x2d10be;},_0x50654e['decodeDelimited']=function(_0x3b93bc){return _0x3b93bc instanceof _0x19f3ea||(_0x3b93bc=new _0x19f3ea(_0x3b93bc)),this['decode'](_0x3b93bc,_0x3b93bc['uint32']());},_0x50654e['verify']=function(_0x16a0cf){return'object'!=typeof _0x16a0cf||null===_0x16a0cf?'object\x20expected':null!=_0x16a0cf['isUploaded']&&_0x16a0cf['hasOwnProperty']('isUploaded')&&'boolean'!=typeof _0x16a0cf['isUploaded']?'isUploaded:\x20boolean\x20expected':null;},_0x50654e['fromObject']=function(_0x1327c7){if(_0x1327c7 instanceof _0xefac1b['IsEditorBundleUploadedResponse'])return _0x1327c7;var _0x45490e=new _0xefac1b['IsEditorBundleUploadedResponse']();return null!=_0x1327c7['isUploaded']&&(_0x45490e['isUploaded']=Boolean(_0x1327c7['isUploaded'])),_0x45490e;},_0x50654e['toObject']=function(_0x41c9c9,_0xd8bb72){_0xd8bb72||(_0xd8bb72={});var _0x190629={};return _0xd8bb72['defaults']&&(_0x190629['isUploaded']=!0x1),null!=_0x41c9c9['isUploaded']&&_0x41c9c9['hasOwnProperty']('isUploaded')&&(_0x190629['isUploaded']=_0x41c9c9['isUploaded']),_0x190629;},_0x50654e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x50654e['getTypeUrl']=function(_0x288ddb){return void 0x0===_0x288ddb&&(_0x288ddb='type.googleapis.com'),_0x288ddb+'/IsEditorBundleUploadedResponse';},_0x50654e;}()),_0xefac1b['IsEditorBundleUploadedMessage']=(function(){function _0x2e6290(_0x2e3245){if(_0x2e3245){for(var _0x32ac37=Object['keys'](_0x2e3245),_0x102d3d=0x0;_0x102d3d<_0x32ac37['length'];++_0x102d3d)null!=_0x2e3245[_0x32ac37[_0x102d3d]]&&(this[_0x32ac37[_0x102d3d]]=_0x2e3245[_0x32ac37[_0x102d3d]]);}}return _0x2e6290['prototype']['bundleVersion']='',_0x2e6290['create']=function(_0x30d229){return new _0x2e6290(_0x30d229);},_0x2e6290['encode']=function(_0x5e644c,_0xa463b2){return _0xa463b2||(_0xa463b2=_0x3cb188['create']()),null!=_0x5e644c['bundleVersion']&&Object['hasOwnProperty']['call'](_0x5e644c,'bundleVersion')&&_0xa463b2['uint32'](0xa)['string'](_0x5e644c['bundleVersion']),_0xa463b2;},_0x2e6290['encodeDelimited']=function(_0x42d24b,_0x91462a){return this['encode'](_0x42d24b,_0x91462a)['ldelim']();},_0x2e6290['decode']=function(_0x435d61,_0x520402,_0x804a55){_0x435d61 instanceof _0x19f3ea||(_0x435d61=_0x19f3ea['create'](_0x435d61));for(var _0x30e4c2=void 0x0===_0x520402?_0x435d61['len']:_0x435d61['pos']+_0x520402,_0x44df00=new _0xefac1b['IsEditorBundleUploadedMessage']();_0x435d61['pos']<_0x30e4c2;){var _0x38d726=_0x435d61['uint32']();if(_0x38d726===_0x804a55)break;_0x38d726>>>0x3==0x1?_0x44df00['bundleVersion']=_0x435d61['string']():_0x435d61['skipType'](0x7&_0x38d726);}return _0x44df00;},_0x2e6290['decodeDelimited']=function(_0x57f90f){return _0x57f90f instanceof _0x19f3ea||(_0x57f90f=new _0x19f3ea(_0x57f90f)),this['decode'](_0x57f90f,_0x57f90f['uint32']());},_0x2e6290['verify']=function(_0x3b1091){return'object'!=typeof _0x3b1091||null===_0x3b1091?'object\x20expected':null!=_0x3b1091['bundleVersion']&&_0x3b1091['hasOwnProperty']('bundleVersion')&&!_0x3861b6['isString'](_0x3b1091['bundleVersion'])?'bundleVersion:\x20string\x20expected':null;},_0x2e6290['fromObject']=function(_0x468ded){if(_0x468ded instanceof _0xefac1b['IsEditorBundleUploadedMessage'])return _0x468ded;var _0x487f68=new _0xefac1b['IsEditorBundleUploadedMessage']();return null!=_0x468ded['bundleVersion']&&(_0x487f68['bundleVersion']=String(_0x468ded['bundleVersion'])),_0x487f68;},_0x2e6290['toObject']=function(_0x51e99c,_0x2a0d6e){_0x2a0d6e||(_0x2a0d6e={});var _0x43248b={};return _0x2a0d6e['defaults']&&(_0x43248b['bundleVersion']=''),null!=_0x51e99c['bundleVersion']&&_0x51e99c['hasOwnProperty']('bundleVersion')&&(_0x43248b['bundleVersion']=_0x51e99c['bundleVersion']),_0x43248b;},_0x2e6290['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2e6290['getTypeUrl']=function(_0x176950){return void 0x0===_0x176950&&(_0x176950='type.googleapis.com'),_0x176950+'/IsEditorBundleUploadedMessage';},_0x2e6290;}()),_0xefac1b['KeyValueDescriptor']=(function(){function _0x1f7787(_0x36477e){if(_0x36477e){for(var _0x244a03=Object['keys'](_0x36477e),_0x324255=0x0;_0x324255<_0x244a03['length'];++_0x324255)null!=_0x36477e[_0x244a03[_0x324255]]&&(this[_0x244a03[_0x324255]]=_0x36477e[_0x244a03[_0x324255]]);}}return _0x1f7787['prototype']['key']='',_0x1f7787['prototype']['value']='',_0x1f7787['create']=function(_0x323cb0){return new _0x1f7787(_0x323cb0);},_0x1f7787['encode']=function(_0x3a3a79,_0x1dc21a){return _0x1dc21a||(_0x1dc21a=_0x3cb188['create']()),null!=_0x3a3a79['key']&&Object['hasOwnProperty']['call'](_0x3a3a79,'key')&&_0x1dc21a['uint32'](0xa)['string'](_0x3a3a79['key']),null!=_0x3a3a79['value']&&Object['hasOwnProperty']['call'](_0x3a3a79,'value')&&_0x1dc21a['uint32'](0x12)['string'](_0x3a3a79['value']),_0x1dc21a;},_0x1f7787['encodeDelimited']=function(_0x3e4afd,_0x1a2989){return this['encode'](_0x3e4afd,_0x1a2989)['ldelim']();},_0x1f7787['decode']=function(_0x5ea9e8,_0x104593,_0x11d161){_0x5ea9e8 instanceof _0x19f3ea||(_0x5ea9e8=_0x19f3ea['create'](_0x5ea9e8));for(var _0x6e62a=void 0x0===_0x104593?_0x5ea9e8['len']:_0x5ea9e8['pos']+_0x104593,_0x2f8128=new _0xefac1b['KeyValueDescriptor']();_0x5ea9e8['pos']<_0x6e62a;){var _0x3a606d=_0x5ea9e8['uint32']();if(_0x3a606d===_0x11d161)break;switch(_0x3a606d>>>0x3){case 0x1:_0x2f8128['key']=_0x5ea9e8['string']();break;case 0x2:_0x2f8128['value']=_0x5ea9e8['string']();break;default:_0x5ea9e8['skipType'](0x7&_0x3a606d);}}return _0x2f8128;},_0x1f7787['decodeDelimited']=function(_0x13957e){return _0x13957e instanceof _0x19f3ea||(_0x13957e=new _0x19f3ea(_0x13957e)),this['decode'](_0x13957e,_0x13957e['uint32']());},_0x1f7787['verify']=function(_0x1af80){return'object'!=typeof _0x1af80||null===_0x1af80?'object\x20expected':null!=_0x1af80['key']&&_0x1af80['hasOwnProperty']('key')&&!_0x3861b6['isString'](_0x1af80['key'])?'key:\x20string\x20expected':null!=_0x1af80['value']&&_0x1af80['hasOwnProperty']('value')&&!_0x3861b6['isString'](_0x1af80['value'])?'value:\x20string\x20expected':null;},_0x1f7787['fromObject']=function(_0x405460){if(_0x405460 instanceof _0xefac1b['KeyValueDescriptor'])return _0x405460;var _0x442d38=new _0xefac1b['KeyValueDescriptor']();return null!=_0x405460['key']&&(_0x442d38['key']=String(_0x405460['key'])),null!=_0x405460['value']&&(_0x442d38['value']=String(_0x405460['value'])),_0x442d38;},_0x1f7787['toObject']=function(_0x561586,_0x14178d){_0x14178d||(_0x14178d={});var _0x1b7857={};return _0x14178d['defaults']&&(_0x1b7857['key']='',_0x1b7857['value']=''),null!=_0x561586['key']&&_0x561586['hasOwnProperty']('key')&&(_0x1b7857['key']=_0x561586['key']),null!=_0x561586['value']&&_0x561586['hasOwnProperty']('value')&&(_0x1b7857['value']=_0x561586['value']),_0x1b7857;},_0x1f7787['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1f7787['getTypeUrl']=function(_0x5e7652){return void 0x0===_0x5e7652&&(_0x5e7652='type.googleapis.com'),_0x5e7652+'/KeyValueDescriptor';},_0x1f7787;}()),_0xefac1b['CommentsV2GetDocumentThreadsResponse']=(function(){function _0x14e1ff(_0x2e10b0){if(this['threads']=[],this['threadsV2']=[],_0x2e10b0){for(var _0x2c65c1=Object['keys'](_0x2e10b0),_0x38b8b9=0x0;_0x38b8b9<_0x2c65c1['length'];++_0x38b8b9)null!=_0x2e10b0[_0x2c65c1[_0x38b8b9]]&&(this[_0x2c65c1[_0x38b8b9]]=_0x2e10b0[_0x2c65c1[_0x38b8b9]]);}}return _0x14e1ff['prototype']['threads']=_0x3861b6['emptyArray'],_0x14e1ff['prototype']['threadsV2']=_0x3861b6['emptyArray'],_0x14e1ff['create']=function(_0x380022){return new _0x14e1ff(_0x380022);},_0x14e1ff['encode']=function(_0x300252,_0x500fce){if(_0x500fce||(_0x500fce=_0x3cb188['create']()),null!=_0x300252['threads']&&_0x300252['threads']['length']){for(var _0x25e8f3=0x0;_0x25e8f3<_0x300252['threads']['length'];++_0x25e8f3)_0x500fce['uint32'](0xa)['string'](_0x300252['threads'][_0x25e8f3]);}if(null!=_0x300252['threadsV2']&&_0x300252['threadsV2']['length']){for(_0x25e8f3=0x0;_0x25e8f3<_0x300252['threadsV2']['length'];++_0x25e8f3)_0xefac1b['CommentsThreadDescriptor']['encode'](_0x300252['threadsV2'][_0x25e8f3],_0x500fce['uint32'](0x12)['fork']())['ldelim']();}return _0x500fce;},_0x14e1ff['encodeDelimited']=function(_0x5b1507,_0x30c085){return this['encode'](_0x5b1507,_0x30c085)['ldelim']();},_0x14e1ff['decode']=function(_0x470025,_0x44507b,_0x2428ce){_0x470025 instanceof _0x19f3ea||(_0x470025=_0x19f3ea['create'](_0x470025));for(var _0xee8fad=void 0x0===_0x44507b?_0x470025['len']:_0x470025['pos']+_0x44507b,_0x988a6f=new _0xefac1b['CommentsV2GetDocumentThreadsResponse']();_0x470025['pos']<_0xee8fad;){var _0x21400a=_0x470025['uint32']();if(_0x21400a===_0x2428ce)break;switch(_0x21400a>>>0x3){case 0x1:_0x988a6f['threads']&&_0x988a6f['threads']['length']||(_0x988a6f['threads']=[]),_0x988a6f['threads']['push'](_0x470025['string']());break;case 0x2:_0x988a6f['threadsV2']&&_0x988a6f['threadsV2']['length']||(_0x988a6f['threadsV2']=[]),_0x988a6f['threadsV2']['push'](_0xefac1b['CommentsThreadDescriptor']['decode'](_0x470025,_0x470025['uint32']()));break;default:_0x470025['skipType'](0x7&_0x21400a);}}return _0x988a6f;},_0x14e1ff['decodeDelimited']=function(_0xde0d84){return _0xde0d84 instanceof _0x19f3ea||(_0xde0d84=new _0x19f3ea(_0xde0d84)),this['decode'](_0xde0d84,_0xde0d84['uint32']());},_0x14e1ff['verify']=function(_0x4213af){if('object'!=typeof _0x4213af||null===_0x4213af)return'object\x20expected';if(null!=_0x4213af['threads']&&_0x4213af['hasOwnProperty']('threads')){if(!Array['isArray'](_0x4213af['threads']))return'threads:\x20array\x20expected';for(var _0x578e98=0x0;_0x578e98<_0x4213af['threads']['length'];++_0x578e98)if(!_0x3861b6['isString'](_0x4213af['threads'][_0x578e98]))return'threads:\x20string[]\x20expected';}if(null!=_0x4213af['threadsV2']&&_0x4213af['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x4213af['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x578e98=0x0;_0x578e98<_0x4213af['threadsV2']['length'];++_0x578e98){var _0x4b585a=_0xefac1b['CommentsThreadDescriptor']['verify'](_0x4213af['threadsV2'][_0x578e98]);if(_0x4b585a)return'threadsV2.'+_0x4b585a;}}return null;},_0x14e1ff['fromObject']=function(_0x5d0d98){if(_0x5d0d98 instanceof _0xefac1b['CommentsV2GetDocumentThreadsResponse'])return _0x5d0d98;var _0x2d8062=new _0xefac1b['CommentsV2GetDocumentThreadsResponse']();if(_0x5d0d98['threads']){if(!Array['isArray'](_0x5d0d98['threads']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threads:\x20array\x20expected');_0x2d8062['threads']=[];for(var _0x466221=0x0;_0x466221<_0x5d0d98['threads']['length'];++_0x466221)_0x2d8062['threads'][_0x466221]=String(_0x5d0d98['threads'][_0x466221]);}if(_0x5d0d98['threadsV2']){if(!Array['isArray'](_0x5d0d98['threadsV2']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20array\x20expected');for(_0x2d8062['threadsV2']=[],_0x466221=0x0;_0x466221<_0x5d0d98['threadsV2']['length'];++_0x466221){if('object'!=typeof _0x5d0d98['threadsV2'][_0x466221])throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20object\x20expected');_0x2d8062['threadsV2'][_0x466221]=_0xefac1b['CommentsThreadDescriptor']['fromObject'](_0x5d0d98['threadsV2'][_0x466221]);}}return _0x2d8062;},_0x14e1ff['toObject']=function(_0x2a4c7f,_0x17c58f){_0x17c58f||(_0x17c58f={});var _0x51c7dd={};if((_0x17c58f['arrays']||_0x17c58f['defaults'])&&(_0x51c7dd['threads']=[],_0x51c7dd['threadsV2']=[]),_0x2a4c7f['threads']&&_0x2a4c7f['threads']['length']){_0x51c7dd['threads']=[];for(var _0x300e8f=0x0;_0x300e8f<_0x2a4c7f['threads']['length'];++_0x300e8f)_0x51c7dd['threads'][_0x300e8f]=_0x2a4c7f['threads'][_0x300e8f];}if(_0x2a4c7f['threadsV2']&&_0x2a4c7f['threadsV2']['length']){for(_0x51c7dd['threadsV2']=[],_0x300e8f=0x0;_0x300e8f<_0x2a4c7f['threadsV2']['length'];++_0x300e8f)_0x51c7dd['threadsV2'][_0x300e8f]=_0xefac1b['CommentsThreadDescriptor']['toObject'](_0x2a4c7f['threadsV2'][_0x300e8f],_0x17c58f);}return _0x51c7dd;},_0x14e1ff['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x14e1ff['getTypeUrl']=function(_0x1d4d7d){return void 0x0===_0x1d4d7d&&(_0x1d4d7d='type.googleapis.com'),_0x1d4d7d+'/CommentsV2GetDocumentThreadsResponse';},_0x14e1ff;}()),_0xefac1b['CommentsV2GetCommentThreadResponse']=(function(){function _0x61c184(_0x41ccb9){if(this['comments']=[],this['commentsV2']=[],_0x41ccb9){for(var _0x2f3089=Object['keys'](_0x41ccb9),_0x28d9c2=0x0;_0x28d9c2<_0x2f3089['length'];++_0x28d9c2)null!=_0x41ccb9[_0x2f3089[_0x28d9c2]]&&(this[_0x2f3089[_0x28d9c2]]=_0x41ccb9[_0x2f3089[_0x28d9c2]]);}}return _0x61c184['prototype']['commentThreadId']='',_0x61c184['prototype']['comments']=_0x3861b6['emptyArray'],_0x61c184['prototype']['commentsV2']=_0x3861b6['emptyArray'],_0x61c184['prototype']['resolvedAt']='',_0x61c184['prototype']['resolvedBy']='',_0x61c184['prototype']['context']='',_0x61c184['prototype']['createdAt']='',_0x61c184['prototype']['deletedAt']='',_0x61c184['prototype']['attributes']='',_0x61c184['prototype']['unlinkedAt']='',_0x61c184['create']=function(_0x4df6b9){return new _0x61c184(_0x4df6b9);},_0x61c184['encode']=function(_0x4321b6,_0x25a87a){if(_0x25a87a||(_0x25a87a=_0x3cb188['create']()),null!=_0x4321b6['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4321b6,'commentThreadId')&&_0x25a87a['uint32'](0xa)['string'](_0x4321b6['commentThreadId']),null!=_0x4321b6['comments']&&_0x4321b6['comments']['length']){for(var _0x5eec04=0x0;_0x5eec04<_0x4321b6['comments']['length'];++_0x5eec04)_0x25a87a['uint32'](0x12)['string'](_0x4321b6['comments'][_0x5eec04]);}if(null!=_0x4321b6['commentsV2']&&_0x4321b6['commentsV2']['length']){for(_0x5eec04=0x0;_0x5eec04<_0x4321b6['commentsV2']['length'];++_0x5eec04)_0xefac1b['CommentDescriptor']['encode'](_0x4321b6['commentsV2'][_0x5eec04],_0x25a87a['uint32'](0x1a)['fork']())['ldelim']();}return null!=_0x4321b6['resolvedAt']&&Object['hasOwnProperty']['call'](_0x4321b6,'resolvedAt')&&_0x25a87a['uint32'](0x22)['string'](_0x4321b6['resolvedAt']),null!=_0x4321b6['resolvedBy']&&Object['hasOwnProperty']['call'](_0x4321b6,'resolvedBy')&&_0x25a87a['uint32'](0x2a)['string'](_0x4321b6['resolvedBy']),null!=_0x4321b6['context']&&Object['hasOwnProperty']['call'](_0x4321b6,'context')&&_0x25a87a['uint32'](0x32)['string'](_0x4321b6['context']),null!=_0x4321b6['createdAt']&&Object['hasOwnProperty']['call'](_0x4321b6,'createdAt')&&_0x25a87a['uint32'](0x3a)['string'](_0x4321b6['createdAt']),null!=_0x4321b6['deletedAt']&&Object['hasOwnProperty']['call'](_0x4321b6,'deletedAt')&&_0x25a87a['uint32'](0x42)['string'](_0x4321b6['deletedAt']),null!=_0x4321b6['attributes']&&Object['hasOwnProperty']['call'](_0x4321b6,'attributes')&&_0x25a87a['uint32'](0x4a)['string'](_0x4321b6['attributes']),null!=_0x4321b6['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x4321b6,'unlinkedAt')&&_0x25a87a['uint32'](0x52)['string'](_0x4321b6['unlinkedAt']),_0x25a87a;},_0x61c184['encodeDelimited']=function(_0x578e6a,_0x15cc76){return this['encode'](_0x578e6a,_0x15cc76)['ldelim']();},_0x61c184['decode']=function(_0x4d3317,_0x5f1902,_0x9499b9){_0x4d3317 instanceof _0x19f3ea||(_0x4d3317=_0x19f3ea['create'](_0x4d3317));for(var _0x131f98=void 0x0===_0x5f1902?_0x4d3317['len']:_0x4d3317['pos']+_0x5f1902,_0x1d2d28=new _0xefac1b['CommentsV2GetCommentThreadResponse']();_0x4d3317['pos']<_0x131f98;){var _0x10a514=_0x4d3317['uint32']();if(_0x10a514===_0x9499b9)break;switch(_0x10a514>>>0x3){case 0x1:_0x1d2d28['commentThreadId']=_0x4d3317['string']();break;case 0x2:_0x1d2d28['comments']&&_0x1d2d28['comments']['length']||(_0x1d2d28['comments']=[]),_0x1d2d28['comments']['push'](_0x4d3317['string']());break;case 0x3:_0x1d2d28['commentsV2']&&_0x1d2d28['commentsV2']['length']||(_0x1d2d28['commentsV2']=[]),_0x1d2d28['commentsV2']['push'](_0xefac1b['CommentDescriptor']['decode'](_0x4d3317,_0x4d3317['uint32']()));break;case 0x4:_0x1d2d28['resolvedAt']=_0x4d3317['string']();break;case 0x5:_0x1d2d28['resolvedBy']=_0x4d3317['string']();break;case 0x6:_0x1d2d28['context']=_0x4d3317['string']();break;case 0x7:_0x1d2d28['createdAt']=_0x4d3317['string']();break;case 0x8:_0x1d2d28['deletedAt']=_0x4d3317['string']();break;case 0x9:_0x1d2d28['attributes']=_0x4d3317['string']();break;case 0xa:_0x1d2d28['unlinkedAt']=_0x4d3317['string']();break;default:_0x4d3317['skipType'](0x7&_0x10a514);}}return _0x1d2d28;},_0x61c184['decodeDelimited']=function(_0x5dc0ae){return _0x5dc0ae instanceof _0x19f3ea||(_0x5dc0ae=new _0x19f3ea(_0x5dc0ae)),this['decode'](_0x5dc0ae,_0x5dc0ae['uint32']());},_0x61c184['verify']=function(_0x21876c){if('object'!=typeof _0x21876c||null===_0x21876c)return'object\x20expected';if(null!=_0x21876c['commentThreadId']&&_0x21876c['hasOwnProperty']('commentThreadId')&&!_0x3861b6['isString'](_0x21876c['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x21876c['comments']&&_0x21876c['hasOwnProperty']('comments')){if(!Array['isArray'](_0x21876c['comments']))return'comments:\x20array\x20expected';for(var _0x200fa7=0x0;_0x200fa7<_0x21876c['comments']['length'];++_0x200fa7)if(!_0x3861b6['isString'](_0x21876c['comments'][_0x200fa7]))return'comments:\x20string[]\x20expected';}if(null!=_0x21876c['commentsV2']&&_0x21876c['hasOwnProperty']('commentsV2')){if(!Array['isArray'](_0x21876c['commentsV2']))return'commentsV2:\x20array\x20expected';for(_0x200fa7=0x0;_0x200fa7<_0x21876c['commentsV2']['length'];++_0x200fa7){var _0x18cd2d=_0xefac1b['CommentDescriptor']['verify'](_0x21876c['commentsV2'][_0x200fa7]);if(_0x18cd2d)return'commentsV2.'+_0x18cd2d;}}return null!=_0x21876c['resolvedAt']&&_0x21876c['hasOwnProperty']('resolvedAt')&&!_0x3861b6['isString'](_0x21876c['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x21876c['resolvedBy']&&_0x21876c['hasOwnProperty']('resolvedBy')&&!_0x3861b6['isString'](_0x21876c['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x21876c['context']&&_0x21876c['hasOwnProperty']('context')&&!_0x3861b6['isString'](_0x21876c['context'])?'context:\x20string\x20expected':null!=_0x21876c['createdAt']&&_0x21876c['hasOwnProperty']('createdAt')&&!_0x3861b6['isString'](_0x21876c['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x21876c['deletedAt']&&_0x21876c['hasOwnProperty']('deletedAt')&&!_0x3861b6['isString'](_0x21876c['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x21876c['attributes']&&_0x21876c['hasOwnProperty']('attributes')&&!_0x3861b6['isString'](_0x21876c['attributes'])?'attributes:\x20string\x20expected':null!=_0x21876c['unlinkedAt']&&_0x21876c['hasOwnProperty']('unlinkedAt')&&!_0x3861b6['isString'](_0x21876c['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x61c184['fromObject']=function(_0x29d740){if(_0x29d740 instanceof _0xefac1b['CommentsV2GetCommentThreadResponse'])return _0x29d740;var _0x4a0a97=new _0xefac1b['CommentsV2GetCommentThreadResponse']();if(null!=_0x29d740['commentThreadId']&&(_0x4a0a97['commentThreadId']=String(_0x29d740['commentThreadId'])),_0x29d740['comments']){if(!Array['isArray'](_0x29d740['comments']))throw TypeError('.CommentsV2GetCommentThreadResponse.comments:\x20array\x20expected');_0x4a0a97['comments']=[];for(var _0x10f620=0x0;_0x10f620<_0x29d740['comments']['length'];++_0x10f620)_0x4a0a97['comments'][_0x10f620]=String(_0x29d740['comments'][_0x10f620]);}if(_0x29d740['commentsV2']){if(!Array['isArray'](_0x29d740['commentsV2']))throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20array\x20expected');for(_0x4a0a97['commentsV2']=[],_0x10f620=0x0;_0x10f620<_0x29d740['commentsV2']['length'];++_0x10f620){if('object'!=typeof _0x29d740['commentsV2'][_0x10f620])throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20object\x20expected');_0x4a0a97['commentsV2'][_0x10f620]=_0xefac1b['CommentDescriptor']['fromObject'](_0x29d740['commentsV2'][_0x10f620]);}}return null!=_0x29d740['resolvedAt']&&(_0x4a0a97['resolvedAt']=String(_0x29d740['resolvedAt'])),null!=_0x29d740['resolvedBy']&&(_0x4a0a97['resolvedBy']=String(_0x29d740['resolvedBy'])),null!=_0x29d740['context']&&(_0x4a0a97['context']=String(_0x29d740['context'])),null!=_0x29d740['createdAt']&&(_0x4a0a97['createdAt']=String(_0x29d740['createdAt'])),null!=_0x29d740['deletedAt']&&(_0x4a0a97['deletedAt']=String(_0x29d740['deletedAt'])),null!=_0x29d740['attributes']&&(_0x4a0a97['attributes']=String(_0x29d740['attributes'])),null!=_0x29d740['unlinkedAt']&&(_0x4a0a97['unlinkedAt']=String(_0x29d740['unlinkedAt'])),_0x4a0a97;},_0x61c184['toObject']=function(_0x57076c,_0x25905b){_0x25905b||(_0x25905b={});var _0x4023f3={};if((_0x25905b['arrays']||_0x25905b['defaults'])&&(_0x4023f3['comments']=[],_0x4023f3['commentsV2']=[]),_0x25905b['defaults']&&(_0x4023f3['commentThreadId']='',_0x4023f3['resolvedAt']='',_0x4023f3['resolvedBy']='',_0x4023f3['context']='',_0x4023f3['createdAt']='',_0x4023f3['deletedAt']='',_0x4023f3['attributes']='',_0x4023f3['unlinkedAt']=''),null!=_0x57076c['commentThreadId']&&_0x57076c['hasOwnProperty']('commentThreadId')&&(_0x4023f3['commentThreadId']=_0x57076c['commentThreadId']),_0x57076c['comments']&&_0x57076c['comments']['length']){_0x4023f3['comments']=[];for(var _0x194556=0x0;_0x194556<_0x57076c['comments']['length'];++_0x194556)_0x4023f3['comments'][_0x194556]=_0x57076c['comments'][_0x194556];}if(_0x57076c['commentsV2']&&_0x57076c['commentsV2']['length']){for(_0x4023f3['commentsV2']=[],_0x194556=0x0;_0x194556<_0x57076c['commentsV2']['length'];++_0x194556)_0x4023f3['commentsV2'][_0x194556]=_0xefac1b['CommentDescriptor']['toObject'](_0x57076c['commentsV2'][_0x194556],_0x25905b);}return null!=_0x57076c['resolvedAt']&&_0x57076c['hasOwnProperty']('resolvedAt')&&(_0x4023f3['resolvedAt']=_0x57076c['resolvedAt']),null!=_0x57076c['resolvedBy']&&_0x57076c['hasOwnProperty']('resolvedBy')&&(_0x4023f3['resolvedBy']=_0x57076c['resolvedBy']),null!=_0x57076c['context']&&_0x57076c['hasOwnProperty']('context')&&(_0x4023f3['context']=_0x57076c['context']),null!=_0x57076c['createdAt']&&_0x57076c['hasOwnProperty']('createdAt')&&(_0x4023f3['createdAt']=_0x57076c['createdAt']),null!=_0x57076c['deletedAt']&&_0x57076c['hasOwnProperty']('deletedAt')&&(_0x4023f3['deletedAt']=_0x57076c['deletedAt']),null!=_0x57076c['attributes']&&_0x57076c['hasOwnProperty']('attributes')&&(_0x4023f3['attributes']=_0x57076c['attributes']),null!=_0x57076c['unlinkedAt']&&_0x57076c['hasOwnProperty']('unlinkedAt')&&(_0x4023f3['unlinkedAt']=_0x57076c['unlinkedAt']),_0x4023f3;},_0x61c184['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x61c184['getTypeUrl']=function(_0x22e45a){return void 0x0===_0x22e45a&&(_0x22e45a='type.googleapis.com'),_0x22e45a+'/CommentsV2GetCommentThreadResponse';},_0x61c184;}()),_0xefac1b['CommentsV2ConnectResponse']=(function(){function _0x334465(_0xd104b7){if(this['threads']=[],this['threadsV2']=[],_0xd104b7){for(var _0xa11518=Object['keys'](_0xd104b7),_0x278ce0=0x0;_0x278ce0<_0xa11518['length'];++_0x278ce0)null!=_0xd104b7[_0xa11518[_0x278ce0]]&&(this[_0xa11518[_0x278ce0]]=_0xd104b7[_0xa11518[_0x278ce0]]);}}return _0x334465['prototype']['channel']='',_0x334465['prototype']['threads']=_0x3861b6['emptyArray'],_0x334465['prototype']['threadsV2']=_0x3861b6['emptyArray'],_0x334465['create']=function(_0x29c76c){return new _0x334465(_0x29c76c);},_0x334465['encode']=function(_0x4d517e,_0x590b71){if(_0x590b71||(_0x590b71=_0x3cb188['create']()),null!=_0x4d517e['channel']&&Object['hasOwnProperty']['call'](_0x4d517e,'channel')&&_0x590b71['uint32'](0xa)['string'](_0x4d517e['channel']),null!=_0x4d517e['threads']&&_0x4d517e['threads']['length']){for(var _0x58f032=0x0;_0x58f032<_0x4d517e['threads']['length'];++_0x58f032)_0x590b71['uint32'](0x12)['string'](_0x4d517e['threads'][_0x58f032]);}if(null!=_0x4d517e['threadsV2']&&_0x4d517e['threadsV2']['length']){for(_0x58f032=0x0;_0x58f032<_0x4d517e['threadsV2']['length'];++_0x58f032)_0xefac1b['CommentsThreadDescriptor']['encode'](_0x4d517e['threadsV2'][_0x58f032],_0x590b71['uint32'](0x1a)['fork']())['ldelim']();}return _0x590b71;},_0x334465['encodeDelimited']=function(_0x2fd9b8,_0x31ea47){return this['encode'](_0x2fd9b8,_0x31ea47)['ldelim']();},_0x334465['decode']=function(_0x3250fe,_0x4e969d,_0x3dcdc0){_0x3250fe instanceof _0x19f3ea||(_0x3250fe=_0x19f3ea['create'](_0x3250fe));for(var _0x48e811=void 0x0===_0x4e969d?_0x3250fe['len']:_0x3250fe['pos']+_0x4e969d,_0x397dab=new _0xefac1b['CommentsV2ConnectResponse']();_0x3250fe['pos']<_0x48e811;){var _0x2725dd=_0x3250fe['uint32']();if(_0x2725dd===_0x3dcdc0)break;switch(_0x2725dd>>>0x3){case 0x1:_0x397dab['channel']=_0x3250fe['string']();break;case 0x2:_0x397dab['threads']&&_0x397dab['threads']['length']||(_0x397dab['threads']=[]),_0x397dab['threads']['push'](_0x3250fe['string']());break;case 0x3:_0x397dab['threadsV2']&&_0x397dab['threadsV2']['length']||(_0x397dab['threadsV2']=[]),_0x397dab['threadsV2']['push'](_0xefac1b['CommentsThreadDescriptor']['decode'](_0x3250fe,_0x3250fe['uint32']()));break;default:_0x3250fe['skipType'](0x7&_0x2725dd);}}return _0x397dab;},_0x334465['decodeDelimited']=function(_0x135530){return _0x135530 instanceof _0x19f3ea||(_0x135530=new _0x19f3ea(_0x135530)),this['decode'](_0x135530,_0x135530['uint32']());},_0x334465['verify']=function(_0x352cf1){if('object'!=typeof _0x352cf1||null===_0x352cf1)return'object\x20expected';if(null!=_0x352cf1['channel']&&_0x352cf1['hasOwnProperty']('channel')&&!_0x3861b6['isString'](_0x352cf1['channel']))return'channel:\x20string\x20expected';if(null!=_0x352cf1['threads']&&_0x352cf1['hasOwnProperty']('threads')){if(!Array['isArray'](_0x352cf1['threads']))return'threads:\x20array\x20expected';for(var _0x22cfee=0x0;_0x22cfee<_0x352cf1['threads']['length'];++_0x22cfee)if(!_0x3861b6['isString'](_0x352cf1['threads'][_0x22cfee]))return'threads:\x20string[]\x20expected';}if(null!=_0x352cf1['threadsV2']&&_0x352cf1['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x352cf1['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x22cfee=0x0;_0x22cfee<_0x352cf1['threadsV2']['length'];++_0x22cfee){var _0x1582b5=_0xefac1b['CommentsThreadDescriptor']['verify'](_0x352cf1['threadsV2'][_0x22cfee]);if(_0x1582b5)return'threadsV2.'+_0x1582b5;}}return null;},_0x334465['fromObject']=function(_0x3eaca9){if(_0x3eaca9 instanceof _0xefac1b['CommentsV2ConnectResponse'])return _0x3eaca9;var _0x17d655=new _0xefac1b['CommentsV2ConnectResponse']();if(null!=_0x3eaca9['channel']&&(_0x17d655['channel']=String(_0x3eaca9['channel'])),_0x3eaca9['threads']){if(!Array['isArray'](_0x3eaca9['threads']))throw TypeError('.CommentsV2ConnectResponse.threads:\x20array\x20expected');_0x17d655['threads']=[];for(var _0x4f9183=0x0;_0x4f9183<_0x3eaca9['threads']['length'];++_0x4f9183)_0x17d655['threads'][_0x4f9183]=String(_0x3eaca9['threads'][_0x4f9183]);}if(_0x3eaca9['threadsV2']){if(!Array['isArray'](_0x3eaca9['threadsV2']))throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20array\x20expected');for(_0x17d655['threadsV2']=[],_0x4f9183=0x0;_0x4f9183<_0x3eaca9['threadsV2']['length'];++_0x4f9183){if('object'!=typeof _0x3eaca9['threadsV2'][_0x4f9183])throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20object\x20expected');_0x17d655['threadsV2'][_0x4f9183]=_0xefac1b['CommentsThreadDescriptor']['fromObject'](_0x3eaca9['threadsV2'][_0x4f9183]);}}return _0x17d655;},_0x334465['toObject']=function(_0x1df573,_0x96daf3){_0x96daf3||(_0x96daf3={});var _0x51f67c={};if((_0x96daf3['arrays']||_0x96daf3['defaults'])&&(_0x51f67c['threads']=[],_0x51f67c['threadsV2']=[]),_0x96daf3['defaults']&&(_0x51f67c['channel']=''),null!=_0x1df573['channel']&&_0x1df573['hasOwnProperty']('channel')&&(_0x51f67c['channel']=_0x1df573['channel']),_0x1df573['threads']&&_0x1df573['threads']['length']){_0x51f67c['threads']=[];for(var _0xee2ca8=0x0;_0xee2ca8<_0x1df573['threads']['length'];++_0xee2ca8)_0x51f67c['threads'][_0xee2ca8]=_0x1df573['threads'][_0xee2ca8];}if(_0x1df573['threadsV2']&&_0x1df573['threadsV2']['length']){for(_0x51f67c['threadsV2']=[],_0xee2ca8=0x0;_0xee2ca8<_0x1df573['threadsV2']['length'];++_0xee2ca8)_0x51f67c['threadsV2'][_0xee2ca8]=_0xefac1b['CommentsThreadDescriptor']['toObject'](_0x1df573['threadsV2'][_0xee2ca8],_0x96daf3);}return _0x51f67c;},_0x334465['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x334465['getTypeUrl']=function(_0x4ae530){return void 0x0===_0x4ae530&&(_0x4ae530='type.googleapis.com'),_0x4ae530+'/CommentsV2ConnectResponse';},_0x334465;}()),_0xefac1b['CommentsV2AddCommentResponse']=(function(){function _0x9e0712(_0x4986b4){if(_0x4986b4){for(var _0x527a0d=Object['keys'](_0x4986b4),_0x3b881a=0x0;_0x3b881a<_0x527a0d['length'];++_0x3b881a)null!=_0x4986b4[_0x527a0d[_0x3b881a]]&&(this[_0x527a0d[_0x3b881a]]=_0x4986b4[_0x527a0d[_0x3b881a]]);}}return _0x9e0712['prototype']['commentThreadId']='',_0x9e0712['prototype']['commentId']='',_0x9e0712['prototype']['createdAt']='',_0x9e0712['create']=function(_0x315f31){return new _0x9e0712(_0x315f31);},_0x9e0712['encode']=function(_0x4b434,_0x459218){return _0x459218||(_0x459218=_0x3cb188['create']()),null!=_0x4b434['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4b434,'commentThreadId')&&_0x459218['uint32'](0xa)['string'](_0x4b434['commentThreadId']),null!=_0x4b434['commentId']&&Object['hasOwnProperty']['call'](_0x4b434,'commentId')&&_0x459218['uint32'](0x12)['string'](_0x4b434['commentId']),null!=_0x4b434['createdAt']&&Object['hasOwnProperty']['call'](_0x4b434,'createdAt')&&_0x459218['uint32'](0x1a)['string'](_0x4b434['createdAt']),_0x459218;},_0x9e0712['encodeDelimited']=function(_0x13569a,_0x56183e){return this['encode'](_0x13569a,_0x56183e)['ldelim']();},_0x9e0712['decode']=function(_0x33c6ff,_0x5dd6f0,_0x27eceb){_0x33c6ff instanceof _0x19f3ea||(_0x33c6ff=_0x19f3ea['create'](_0x33c6ff));for(var _0x49913c=void 0x0===_0x5dd6f0?_0x33c6ff['len']:_0x33c6ff['pos']+_0x5dd6f0,_0x2ef38f=new _0xefac1b['CommentsV2AddCommentResponse']();_0x33c6ff['pos']<_0x49913c;){var _0x4bfd6d=_0x33c6ff['uint32']();if(_0x4bfd6d===_0x27eceb)break;switch(_0x4bfd6d>>>0x3){case 0x1:_0x2ef38f['commentThreadId']=_0x33c6ff['string']();break;case 0x2:_0x2ef38f['commentId']=_0x33c6ff['string']();break;case 0x3:_0x2ef38f['createdAt']=_0x33c6ff['string']();break;default:_0x33c6ff['skipType'](0x7&_0x4bfd6d);}}return _0x2ef38f;},_0x9e0712['decodeDelimited']=function(_0x369fd3){return _0x369fd3 instanceof _0x19f3ea||(_0x369fd3=new _0x19f3ea(_0x369fd3)),this['decode'](_0x369fd3,_0x369fd3['uint32']());},_0x9e0712['verify']=function(_0x5d5a6e){return'object'!=typeof _0x5d5a6e||null===_0x5d5a6e?'object\x20expected':null!=_0x5d5a6e['commentThreadId']&&_0x5d5a6e['hasOwnProperty']('commentThreadId')&&!_0x3861b6['isString'](_0x5d5a6e['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x5d5a6e['commentId']&&_0x5d5a6e['hasOwnProperty']('commentId')&&!_0x3861b6['isString'](_0x5d5a6e['commentId'])?'commentId:\x20string\x20expected':null!=_0x5d5a6e['createdAt']&&_0x5d5a6e['hasOwnProperty']('createdAt')&&!_0x3861b6['isString'](_0x5d5a6e['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x9e0712['fromObject']=function(_0x4dea70){if(_0x4dea70 instanceof _0xefac1b['CommentsV2AddCommentResponse'])return _0x4dea70;var _0x47c8b8=new _0xefac1b['CommentsV2AddCommentResponse']();return null!=_0x4dea70['commentThreadId']&&(_0x47c8b8['commentThreadId']=String(_0x4dea70['commentThreadId'])),null!=_0x4dea70['commentId']&&(_0x47c8b8['commentId']=String(_0x4dea70['commentId'])),null!=_0x4dea70['createdAt']&&(_0x47c8b8['createdAt']=String(_0x4dea70['createdAt'])),_0x47c8b8;},_0x9e0712['toObject']=function(_0x55c6a7,_0x24a6e6){_0x24a6e6||(_0x24a6e6={});var _0x1f24c9={};return _0x24a6e6['defaults']&&(_0x1f24c9['commentThreadId']='',_0x1f24c9['commentId']='',_0x1f24c9['createdAt']=''),null!=_0x55c6a7['commentThreadId']&&_0x55c6a7['hasOwnProperty']('commentThreadId')&&(_0x1f24c9['commentThreadId']=_0x55c6a7['commentThreadId']),null!=_0x55c6a7['commentId']&&_0x55c6a7['hasOwnProperty']('commentId')&&(_0x1f24c9['commentId']=_0x55c6a7['commentId']),null!=_0x55c6a7['createdAt']&&_0x55c6a7['hasOwnProperty']('createdAt')&&(_0x1f24c9['createdAt']=_0x55c6a7['createdAt']),_0x1f24c9;},_0x9e0712['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x9e0712['getTypeUrl']=function(_0x2b95e0){return void 0x0===_0x2b95e0&&(_0x2b95e0='type.googleapis.com'),_0x2b95e0+'/CommentsV2AddCommentResponse';},_0x9e0712;}()),_0xefac1b['CommentsV2ResolveCommentThreadResponse']=(function(){function _0x193154(_0x459dd7){if(_0x459dd7){for(var _0x29cf06=Object['keys'](_0x459dd7),_0x1ccd67=0x0;_0x1ccd67<_0x29cf06['length'];++_0x1ccd67)null!=_0x459dd7[_0x29cf06[_0x1ccd67]]&&(this[_0x29cf06[_0x1ccd67]]=_0x459dd7[_0x29cf06[_0x1ccd67]]);}}return _0x193154['prototype']['commentThreadId']='',_0x193154['prototype']['documentId']='',_0x193154['prototype']['resolvedAt']='',_0x193154['prototype']['resolvedBy']='',_0x193154['create']=function(_0xa14d6b){return new _0x193154(_0xa14d6b);},_0x193154['encode']=function(_0x27325c,_0xd1a4c5){return _0xd1a4c5||(_0xd1a4c5=_0x3cb188['create']()),null!=_0x27325c['commentThreadId']&&Object['hasOwnProperty']['call'](_0x27325c,'commentThreadId')&&_0xd1a4c5['uint32'](0xa)['string'](_0x27325c['commentThreadId']),null!=_0x27325c['documentId']&&Object['hasOwnProperty']['call'](_0x27325c,'documentId')&&_0xd1a4c5['uint32'](0x12)['string'](_0x27325c['documentId']),null!=_0x27325c['resolvedAt']&&Object['hasOwnProperty']['call'](_0x27325c,'resolvedAt')&&_0xd1a4c5['uint32'](0x1a)['string'](_0x27325c['resolvedAt']),null!=_0x27325c['resolvedBy']&&Object['hasOwnProperty']['call'](_0x27325c,'resolvedBy')&&_0xd1a4c5['uint32'](0x22)['string'](_0x27325c['resolvedBy']),_0xd1a4c5;},_0x193154['encodeDelimited']=function(_0x4536a8,_0x212a0a){return this['encode'](_0x4536a8,_0x212a0a)['ldelim']();},_0x193154['decode']=function(_0x368375,_0x58dd18,_0x47ae11){_0x368375 instanceof _0x19f3ea||(_0x368375=_0x19f3ea['create'](_0x368375));for(var _0x2192da=void 0x0===_0x58dd18?_0x368375['len']:_0x368375['pos']+_0x58dd18,_0x871e03=new _0xefac1b['CommentsV2ResolveCommentThreadResponse']();_0x368375['pos']<_0x2192da;){var _0x1fb5c5=_0x368375['uint32']();if(_0x1fb5c5===_0x47ae11)break;switch(_0x1fb5c5>>>0x3){case 0x1:_0x871e03['commentThreadId']=_0x368375['string']();break;case 0x2:_0x871e03['documentId']=_0x368375['string']();break;case 0x3:_0x871e03['resolvedAt']=_0x368375['string']();break;case 0x4:_0x871e03['resolvedBy']=_0x368375['string']();break;default:_0x368375['skipType'](0x7&_0x1fb5c5);}}return _0x871e03;},_0x193154['decodeDelimited']=function(_0xc247a3){return _0xc247a3 instanceof _0x19f3ea||(_0xc247a3=new _0x19f3ea(_0xc247a3)),this['decode'](_0xc247a3,_0xc247a3['uint32']());},_0x193154['verify']=function(_0x1e823d){return'object'!=typeof _0x1e823d||null===_0x1e823d?'object\x20expected':null!=_0x1e823d['commentThreadId']&&_0x1e823d['hasOwnProperty']('commentThreadId')&&!_0x3861b6['isString'](_0x1e823d['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x1e823d['documentId']&&_0x1e823d['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x1e823d['documentId'])?'documentId:\x20string\x20expected':null!=_0x1e823d['resolvedAt']&&_0x1e823d['hasOwnProperty']('resolvedAt')&&!_0x3861b6['isString'](_0x1e823d['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x1e823d['resolvedBy']&&_0x1e823d['hasOwnProperty']('resolvedBy')&&!_0x3861b6['isString'](_0x1e823d['resolvedBy'])?'resolvedBy:\x20string\x20expected':null;},_0x193154['fromObject']=function(_0x4468ec){if(_0x4468ec instanceof _0xefac1b['CommentsV2ResolveCommentThreadResponse'])return _0x4468ec;var _0x4c2c9a=new _0xefac1b['CommentsV2ResolveCommentThreadResponse']();return null!=_0x4468ec['commentThreadId']&&(_0x4c2c9a['commentThreadId']=String(_0x4468ec['commentThreadId'])),null!=_0x4468ec['documentId']&&(_0x4c2c9a['documentId']=String(_0x4468ec['documentId'])),null!=_0x4468ec['resolvedAt']&&(_0x4c2c9a['resolvedAt']=String(_0x4468ec['resolvedAt'])),null!=_0x4468ec['resolvedBy']&&(_0x4c2c9a['resolvedBy']=String(_0x4468ec['resolvedBy'])),_0x4c2c9a;},_0x193154['toObject']=function(_0x90c338,_0x5e16ef){_0x5e16ef||(_0x5e16ef={});var _0x1e89ff={};return _0x5e16ef['defaults']&&(_0x1e89ff['commentThreadId']='',_0x1e89ff['documentId']='',_0x1e89ff['resolvedAt']='',_0x1e89ff['resolvedBy']=''),null!=_0x90c338['commentThreadId']&&_0x90c338['hasOwnProperty']('commentThreadId')&&(_0x1e89ff['commentThreadId']=_0x90c338['commentThreadId']),null!=_0x90c338['documentId']&&_0x90c338['hasOwnProperty']('documentId')&&(_0x1e89ff['documentId']=_0x90c338['documentId']),null!=_0x90c338['resolvedAt']&&_0x90c338['hasOwnProperty']('resolvedAt')&&(_0x1e89ff['resolvedAt']=_0x90c338['resolvedAt']),null!=_0x90c338['resolvedBy']&&_0x90c338['hasOwnProperty']('resolvedBy')&&(_0x1e89ff['resolvedBy']=_0x90c338['resolvedBy']),_0x1e89ff;},_0x193154['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x193154['getTypeUrl']=function(_0x222625){return void 0x0===_0x222625&&(_0x222625='type.googleapis.com'),_0x222625+'/CommentsV2ResolveCommentThreadResponse';},_0x193154;}()),_0xefac1b['CommentsV2AddCommentThreadResponse']=(function(){function _0x2bbd4f(_0x128816){if(this['comments']=[],_0x128816){for(var _0x439568=Object['keys'](_0x128816),_0x72db33=0x0;_0x72db33<_0x439568['length'];++_0x72db33)null!=_0x128816[_0x439568[_0x72db33]]&&(this[_0x439568[_0x72db33]]=_0x128816[_0x439568[_0x72db33]]);}}return _0x2bbd4f['prototype']['commentThreadId']='',_0x2bbd4f['prototype']['createdAt']='',_0x2bbd4f['prototype']['comments']=_0x3861b6['emptyArray'],_0x2bbd4f['create']=function(_0x1ca2e9){return new _0x2bbd4f(_0x1ca2e9);},_0x2bbd4f['encode']=function(_0x2416c4,_0x4dbafe){if(_0x4dbafe||(_0x4dbafe=_0x3cb188['create']()),null!=_0x2416c4['commentThreadId']&&Object['hasOwnProperty']['call'](_0x2416c4,'commentThreadId')&&_0x4dbafe['uint32'](0xa)['string'](_0x2416c4['commentThreadId']),null!=_0x2416c4['createdAt']&&Object['hasOwnProperty']['call'](_0x2416c4,'createdAt')&&_0x4dbafe['uint32'](0x12)['string'](_0x2416c4['createdAt']),null!=_0x2416c4['comments']&&_0x2416c4['comments']['length']){for(var _0x3da6fa=0x0;_0x3da6fa<_0x2416c4['comments']['length'];++_0x3da6fa)_0xefac1b['CommentThreadAddedCommentDescriptor']['encode'](_0x2416c4['comments'][_0x3da6fa],_0x4dbafe['uint32'](0x1a)['fork']())['ldelim']();}return _0x4dbafe;},_0x2bbd4f['encodeDelimited']=function(_0x4bdd89,_0x2a3a22){return this['encode'](_0x4bdd89,_0x2a3a22)['ldelim']();},_0x2bbd4f['decode']=function(_0x57e927,_0x15d8aa,_0x55900b){_0x57e927 instanceof _0x19f3ea||(_0x57e927=_0x19f3ea['create'](_0x57e927));for(var _0x24ff4f=void 0x0===_0x15d8aa?_0x57e927['len']:_0x57e927['pos']+_0x15d8aa,_0x1e0f00=new _0xefac1b['CommentsV2AddCommentThreadResponse']();_0x57e927['pos']<_0x24ff4f;){var _0x33501e=_0x57e927['uint32']();if(_0x33501e===_0x55900b)break;switch(_0x33501e>>>0x3){case 0x1:_0x1e0f00['commentThreadId']=_0x57e927['string']();break;case 0x2:_0x1e0f00['createdAt']=_0x57e927['string']();break;case 0x3:_0x1e0f00['comments']&&_0x1e0f00['comments']['length']||(_0x1e0f00['comments']=[]),_0x1e0f00['comments']['push'](_0xefac1b['CommentThreadAddedCommentDescriptor']['decode'](_0x57e927,_0x57e927['uint32']()));break;default:_0x57e927['skipType'](0x7&_0x33501e);}}return _0x1e0f00;},_0x2bbd4f['decodeDelimited']=function(_0x1d0496){return _0x1d0496 instanceof _0x19f3ea||(_0x1d0496=new _0x19f3ea(_0x1d0496)),this['decode'](_0x1d0496,_0x1d0496['uint32']());},_0x2bbd4f['verify']=function(_0x3f90bb){if('object'!=typeof _0x3f90bb||null===_0x3f90bb)return'object\x20expected';if(null!=_0x3f90bb['commentThreadId']&&_0x3f90bb['hasOwnProperty']('commentThreadId')&&!_0x3861b6['isString'](_0x3f90bb['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x3f90bb['createdAt']&&_0x3f90bb['hasOwnProperty']('createdAt')&&!_0x3861b6['isString'](_0x3f90bb['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x3f90bb['comments']&&_0x3f90bb['hasOwnProperty']('comments')){if(!Array['isArray'](_0x3f90bb['comments']))return'comments:\x20array\x20expected';for(var _0x1a6fe5=0x0;_0x1a6fe5<_0x3f90bb['comments']['length'];++_0x1a6fe5){var _0x39bb3f=_0xefac1b['CommentThreadAddedCommentDescriptor']['verify'](_0x3f90bb['comments'][_0x1a6fe5]);if(_0x39bb3f)return'comments.'+_0x39bb3f;}}return null;},_0x2bbd4f['fromObject']=function(_0x3c6da7){if(_0x3c6da7 instanceof _0xefac1b['CommentsV2AddCommentThreadResponse'])return _0x3c6da7;var _0x1c539e=new _0xefac1b['CommentsV2AddCommentThreadResponse']();if(null!=_0x3c6da7['commentThreadId']&&(_0x1c539e['commentThreadId']=String(_0x3c6da7['commentThreadId'])),null!=_0x3c6da7['createdAt']&&(_0x1c539e['createdAt']=String(_0x3c6da7['createdAt'])),_0x3c6da7['comments']){if(!Array['isArray'](_0x3c6da7['comments']))throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20array\x20expected');_0x1c539e['comments']=[];for(var _0x1419b6=0x0;_0x1419b6<_0x3c6da7['comments']['length'];++_0x1419b6){if('object'!=typeof _0x3c6da7['comments'][_0x1419b6])throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20object\x20expected');_0x1c539e['comments'][_0x1419b6]=_0xefac1b['CommentThreadAddedCommentDescriptor']['fromObject'](_0x3c6da7['comments'][_0x1419b6]);}}return _0x1c539e;},_0x2bbd4f['toObject']=function(_0x1ef13c,_0x584392){_0x584392||(_0x584392={});var _0x494563={};if((_0x584392['arrays']||_0x584392['defaults'])&&(_0x494563['comments']=[]),_0x584392['defaults']&&(_0x494563['commentThreadId']='',_0x494563['createdAt']=''),null!=_0x1ef13c['commentThreadId']&&_0x1ef13c['hasOwnProperty']('commentThreadId')&&(_0x494563['commentThreadId']=_0x1ef13c['commentThreadId']),null!=_0x1ef13c['createdAt']&&_0x1ef13c['hasOwnProperty']('createdAt')&&(_0x494563['createdAt']=_0x1ef13c['createdAt']),_0x1ef13c['comments']&&_0x1ef13c['comments']['length']){_0x494563['comments']=[];for(var _0x3c6742=0x0;_0x3c6742<_0x1ef13c['comments']['length'];++_0x3c6742)_0x494563['comments'][_0x3c6742]=_0xefac1b['CommentThreadAddedCommentDescriptor']['toObject'](_0x1ef13c['comments'][_0x3c6742],_0x584392);}return _0x494563;},_0x2bbd4f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2bbd4f['getTypeUrl']=function(_0x1535f9){return void 0x0===_0x1535f9&&(_0x1535f9='type.googleapis.com'),_0x1535f9+'/CommentsV2AddCommentThreadResponse';},_0x2bbd4f;}()),_0xefac1b['CommentsV2UpdateCommentMessage']=(function(){function _0x200fcc(_0x3966ef){if(_0x3966ef){for(var _0x408215=Object['keys'](_0x3966ef),_0x1e618e=0x0;_0x1e618e<_0x408215['length'];++_0x1e618e)null!=_0x3966ef[_0x408215[_0x1e618e]]&&(this[_0x408215[_0x1e618e]]=_0x3966ef[_0x408215[_0x1e618e]]);}}return _0x200fcc['prototype']['commentThreadId']='',_0x200fcc['prototype']['commentId']='',_0x200fcc['prototype']['content']='',_0x200fcc['prototype']['documentId']='',_0x200fcc['prototype']['attributes']='',_0x200fcc['prototype']['isAttributesUpdated']=!0x1,_0x200fcc['prototype']['commentThread']=null,_0x200fcc['create']=function(_0x174adb){return new _0x200fcc(_0x174adb);},_0x200fcc['encode']=function(_0xabba03,_0xbaae63){return _0xbaae63||(_0xbaae63=_0x3cb188['create']()),null!=_0xabba03['commentThreadId']&&Object['hasOwnProperty']['call'](_0xabba03,'commentThreadId')&&_0xbaae63['uint32'](0xa)['string'](_0xabba03['commentThreadId']),null!=_0xabba03['commentId']&&Object['hasOwnProperty']['call'](_0xabba03,'commentId')&&_0xbaae63['uint32'](0x12)['string'](_0xabba03['commentId']),null!=_0xabba03['content']&&Object['hasOwnProperty']['call'](_0xabba03,'content')&&_0xbaae63['uint32'](0x1a)['string'](_0xabba03['content']),null!=_0xabba03['documentId']&&Object['hasOwnProperty']['call'](_0xabba03,'documentId')&&_0xbaae63['uint32'](0x22)['string'](_0xabba03['documentId']),null!=_0xabba03['attributes']&&Object['hasOwnProperty']['call'](_0xabba03,'attributes')&&_0xbaae63['uint32'](0x2a)['string'](_0xabba03['attributes']),null!=_0xabba03['isAttributesUpdated']&&Object['hasOwnProperty']['call'](_0xabba03,'isAttributesUpdated')&&_0xbaae63['uint32'](0x30)['bool'](_0xabba03['isAttributesUpdated']),null!=_0xabba03['commentThread']&&Object['hasOwnProperty']['call'](_0xabba03,'commentThread')&&_0xefac1b['CommentsThreadDescriptor']['encode'](_0xabba03['commentThread'],_0xbaae63['uint32'](0x3a)['fork']())['ldelim'](),_0xbaae63;},_0x200fcc['encodeDelimited']=function(_0x2fdc88,_0x212bec){return this['encode'](_0x2fdc88,_0x212bec)['ldelim']();},_0x200fcc['decode']=function(_0x1984f3,_0x546dc2,_0x506a9f){_0x1984f3 instanceof _0x19f3ea||(_0x1984f3=_0x19f3ea['create'](_0x1984f3));for(var _0x26a90c=void 0x0===_0x546dc2?_0x1984f3['len']:_0x1984f3['pos']+_0x546dc2,_0x3fd8b0=new _0xefac1b['CommentsV2UpdateCommentMessage']();_0x1984f3['pos']<_0x26a90c;){var _0x2a0bff=_0x1984f3['uint32']();if(_0x2a0bff===_0x506a9f)break;switch(_0x2a0bff>>>0x3){case 0x1:_0x3fd8b0['commentThreadId']=_0x1984f3['string']();break;case 0x2:_0x3fd8b0['commentId']=_0x1984f3['string']();break;case 0x3:_0x3fd8b0['content']=_0x1984f3['string']();break;case 0x4:_0x3fd8b0['documentId']=_0x1984f3['string']();break;case 0x5:_0x3fd8b0['attributes']=_0x1984f3['string']();break;case 0x6:_0x3fd8b0['isAttributesUpdated']=_0x1984f3['bool']();break;case 0x7:_0x3fd8b0['commentThread']=_0xefac1b['CommentsThreadDescriptor']['decode'](_0x1984f3,_0x1984f3['uint32']());break;default:_0x1984f3['skipType'](0x7&_0x2a0bff);}}return _0x3fd8b0;},_0x200fcc['decodeDelimited']=function(_0x4529b7){return _0x4529b7 instanceof _0x19f3ea||(_0x4529b7=new _0x19f3ea(_0x4529b7)),this['decode'](_0x4529b7,_0x4529b7['uint32']());},_0x200fcc['verify']=function(_0x26c9ce){if('object'!=typeof _0x26c9ce||null===_0x26c9ce)return'object\x20expected';if(null!=_0x26c9ce['commentThreadId']&&_0x26c9ce['hasOwnProperty']('commentThreadId')&&!_0x3861b6['isString'](_0x26c9ce['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x26c9ce['commentId']&&_0x26c9ce['hasOwnProperty']('commentId')&&!_0x3861b6['isString'](_0x26c9ce['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x26c9ce['content']&&_0x26c9ce['hasOwnProperty']('content')&&!_0x3861b6['isString'](_0x26c9ce['content']))return'content:\x20string\x20expected';if(null!=_0x26c9ce['documentId']&&_0x26c9ce['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x26c9ce['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x26c9ce['attributes']&&_0x26c9ce['hasOwnProperty']('attributes')&&!_0x3861b6['isString'](_0x26c9ce['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x26c9ce['isAttributesUpdated']&&_0x26c9ce['hasOwnProperty']('isAttributesUpdated')&&'boolean'!=typeof _0x26c9ce['isAttributesUpdated'])return'isAttributesUpdated:\x20boolean\x20expected';if(null!=_0x26c9ce['commentThread']&&_0x26c9ce['hasOwnProperty']('commentThread')){var _0x316035=_0xefac1b['CommentsThreadDescriptor']['verify'](_0x26c9ce['commentThread']);if(_0x316035)return'commentThread.'+_0x316035;}return null;},_0x200fcc['fromObject']=function(_0x1225ef){if(_0x1225ef instanceof _0xefac1b['CommentsV2UpdateCommentMessage'])return _0x1225ef;var _0x4bf41f=new _0xefac1b['CommentsV2UpdateCommentMessage']();if(null!=_0x1225ef['commentThreadId']&&(_0x4bf41f['commentThreadId']=String(_0x1225ef['commentThreadId'])),null!=_0x1225ef['commentId']&&(_0x4bf41f['commentId']=String(_0x1225ef['commentId'])),null!=_0x1225ef['content']&&(_0x4bf41f['content']=String(_0x1225ef['content'])),null!=_0x1225ef['documentId']&&(_0x4bf41f['documentId']=String(_0x1225ef['documentId'])),null!=_0x1225ef['attributes']&&(_0x4bf41f['attributes']=String(_0x1225ef['attributes'])),null!=_0x1225ef['isAttributesUpdated']&&(_0x4bf41f['isAttributesUpdated']=Boolean(_0x1225ef['isAttributesUpdated'])),null!=_0x1225ef['commentThread']){if('object'!=typeof _0x1225ef['commentThread'])throw TypeError('.CommentsV2UpdateCommentMessage.commentThread:\x20object\x20expected');_0x4bf41f['commentThread']=_0xefac1b['CommentsThreadDescriptor']['fromObject'](_0x1225ef['commentThread']);}return _0x4bf41f;},_0x200fcc['toObject']=function(_0x2140f6,_0x28870b){_0x28870b||(_0x28870b={});var _0xfcaf62={};return _0x28870b['defaults']&&(_0xfcaf62['commentThreadId']='',_0xfcaf62['commentId']='',_0xfcaf62['content']='',_0xfcaf62['documentId']='',_0xfcaf62['attributes']='',_0xfcaf62['isAttributesUpdated']=!0x1,_0xfcaf62['commentThread']=null),null!=_0x2140f6['commentThreadId']&&_0x2140f6['hasOwnProperty']('commentThreadId')&&(_0xfcaf62['commentThreadId']=_0x2140f6['commentThreadId']),null!=_0x2140f6['commentId']&&_0x2140f6['hasOwnProperty']('commentId')&&(_0xfcaf62['commentId']=_0x2140f6['commentId']),null!=_0x2140f6['content']&&_0x2140f6['hasOwnProperty']('content')&&(_0xfcaf62['content']=_0x2140f6['content']),null!=_0x2140f6['documentId']&&_0x2140f6['hasOwnProperty']('documentId')&&(_0xfcaf62['documentId']=_0x2140f6['documentId']),null!=_0x2140f6['attributes']&&_0x2140f6['hasOwnProperty']('attributes')&&(_0xfcaf62['attributes']=_0x2140f6['attributes']),null!=_0x2140f6['isAttributesUpdated']&&_0x2140f6['hasOwnProperty']('isAttributesUpdated')&&(_0xfcaf62['isAttributesUpdated']=_0x2140f6['isAttributesUpdated']),null!=_0x2140f6['commentThread']&&_0x2140f6['hasOwnProperty']('commentThread')&&(_0xfcaf62['commentThread']=_0xefac1b['CommentsThreadDescriptor']['toObject'](_0x2140f6['commentThread'],_0x28870b)),_0xfcaf62;},_0x200fcc['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x200fcc['getTypeUrl']=function(_0x376fbf){return void 0x0===_0x376fbf&&(_0x376fbf='type.googleapis.com'),_0x376fbf+'/CommentsV2UpdateCommentMessage';},_0x200fcc;}()),_0xefac1b['CommentsV2RemoveCommentThreadMessage']=(function(){function _0x533fcd(_0x39910d){if(_0x39910d){for(var _0x28c2e4=Object['keys'](_0x39910d),_0x27cb98=0x0;_0x27cb98<_0x28c2e4['length'];++_0x27cb98)null!=_0x39910d[_0x28c2e4[_0x27cb98]]&&(this[_0x28c2e4[_0x27cb98]]=_0x39910d[_0x28c2e4[_0x27cb98]]);}}return _0x533fcd['prototype']['commentThreadId']='',_0x533fcd['prototype']['documentId']='',_0x533fcd['create']=function(_0x573cee){return new _0x533fcd(_0x573cee);},_0x533fcd['encode']=function(_0x1bd989,_0x11fc39){return _0x11fc39||(_0x11fc39=_0x3cb188['create']()),null!=_0x1bd989['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1bd989,'commentThreadId')&&_0x11fc39['uint32'](0xa)['string'](_0x1bd989['commentThreadId']),null!=_0x1bd989['documentId']&&Object['hasOwnProperty']['call'](_0x1bd989,'documentId')&&_0x11fc39['uint32'](0x12)['string'](_0x1bd989['documentId']),_0x11fc39;},_0x533fcd['encodeDelimited']=function(_0x13e082,_0x55c1ca){return this['encode'](_0x13e082,_0x55c1ca)['ldelim']();},_0x533fcd['decode']=function(_0x41498d,_0x49f6a4,_0x1070ba){_0x41498d instanceof _0x19f3ea||(_0x41498d=_0x19f3ea['create'](_0x41498d));for(var _0x24a93a=void 0x0===_0x49f6a4?_0x41498d['len']:_0x41498d['pos']+_0x49f6a4,_0x385ef1=new _0xefac1b['CommentsV2RemoveCommentThreadMessage']();_0x41498d['pos']<_0x24a93a;){var _0x20e68e=_0x41498d['uint32']();if(_0x20e68e===_0x1070ba)break;switch(_0x20e68e>>>0x3){case 0x1:_0x385ef1['commentThreadId']=_0x41498d['string']();break;case 0x2:_0x385ef1['documentId']=_0x41498d['string']();break;default:_0x41498d['skipType'](0x7&_0x20e68e);}}return _0x385ef1;},_0x533fcd['decodeDelimited']=function(_0x10c1f1){return _0x10c1f1 instanceof _0x19f3ea||(_0x10c1f1=new _0x19f3ea(_0x10c1f1)),this['decode'](_0x10c1f1,_0x10c1f1['uint32']());},_0x533fcd['verify']=function(_0x5acba8){return'object'!=typeof _0x5acba8||null===_0x5acba8?'object\x20expected':null!=_0x5acba8['commentThreadId']&&_0x5acba8['hasOwnProperty']('commentThreadId')&&!_0x3861b6['isString'](_0x5acba8['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x5acba8['documentId']&&_0x5acba8['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x5acba8['documentId'])?'documentId:\x20string\x20expected':null;},_0x533fcd['fromObject']=function(_0x47d9c4){if(_0x47d9c4 instanceof _0xefac1b['CommentsV2RemoveCommentThreadMessage'])return _0x47d9c4;var _0x7b163d=new _0xefac1b['CommentsV2RemoveCommentThreadMessage']();return null!=_0x47d9c4['commentThreadId']&&(_0x7b163d['commentThreadId']=String(_0x47d9c4['commentThreadId'])),null!=_0x47d9c4['documentId']&&(_0x7b163d['documentId']=String(_0x47d9c4['documentId'])),_0x7b163d;},_0x533fcd['toObject']=function(_0x2740c7,_0x382dd7){_0x382dd7||(_0x382dd7={});var _0x48f24a={};return _0x382dd7['defaults']&&(_0x48f24a['commentThreadId']='',_0x48f24a['documentId']=''),null!=_0x2740c7['commentThreadId']&&_0x2740c7['hasOwnProperty']('commentThreadId')&&(_0x48f24a['commentThreadId']=_0x2740c7['commentThreadId']),null!=_0x2740c7['documentId']&&_0x2740c7['hasOwnProperty']('documentId')&&(_0x48f24a['documentId']=_0x2740c7['documentId']),_0x48f24a;},_0x533fcd['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x533fcd['getTypeUrl']=function(_0x2dcf16){return void 0x0===_0x2dcf16&&(_0x2dcf16='type.googleapis.com'),_0x2dcf16+'/CommentsV2RemoveCommentThreadMessage';},_0x533fcd;}()),_0xefac1b['CommentsV2RemoveCommentMessage']=(function(){function _0x510cd6(_0x55a0b2){if(_0x55a0b2){for(var _0x4fec96=Object['keys'](_0x55a0b2),_0x5c0c77=0x0;_0x5c0c77<_0x4fec96['length'];++_0x5c0c77)null!=_0x55a0b2[_0x4fec96[_0x5c0c77]]&&(this[_0x4fec96[_0x5c0c77]]=_0x55a0b2[_0x4fec96[_0x5c0c77]]);}}return _0x510cd6['prototype']['commentThreadId']='',_0x510cd6['prototype']['commentId']='',_0x510cd6['prototype']['documentId']='',_0x510cd6['create']=function(_0x90413){return new _0x510cd6(_0x90413);},_0x510cd6['encode']=function(_0xe7cfc9,_0x53df02){return _0x53df02||(_0x53df02=_0x3cb188['create']()),null!=_0xe7cfc9['commentThreadId']&&Object['hasOwnProperty']['call'](_0xe7cfc9,'commentThreadId')&&_0x53df02['uint32'](0xa)['string'](_0xe7cfc9['commentThreadId']),null!=_0xe7cfc9['commentId']&&Object['hasOwnProperty']['call'](_0xe7cfc9,'commentId')&&_0x53df02['uint32'](0x12)['string'](_0xe7cfc9['commentId']),null!=_0xe7cfc9['documentId']&&Object['hasOwnProperty']['call'](_0xe7cfc9,'documentId')&&_0x53df02['uint32'](0x1a)['string'](_0xe7cfc9['documentId']),_0x53df02;},_0x510cd6['encodeDelimited']=function(_0x1e9bd9,_0x3946b9){return this['encode'](_0x1e9bd9,_0x3946b9)['ldelim']();},_0x510cd6['decode']=function(_0xbf3ea0,_0x406611,_0xb054f7){_0xbf3ea0 instanceof _0x19f3ea||(_0xbf3ea0=_0x19f3ea['create'](_0xbf3ea0));for(var _0x4e7c96=void 0x0===_0x406611?_0xbf3ea0['len']:_0xbf3ea0['pos']+_0x406611,_0x8b1d8=new _0xefac1b['CommentsV2RemoveCommentMessage']();_0xbf3ea0['pos']<_0x4e7c96;){var _0x4cbd07=_0xbf3ea0['uint32']();if(_0x4cbd07===_0xb054f7)break;switch(_0x4cbd07>>>0x3){case 0x1:_0x8b1d8['commentThreadId']=_0xbf3ea0['string']();break;case 0x2:_0x8b1d8['commentId']=_0xbf3ea0['string']();break;case 0x3:_0x8b1d8['documentId']=_0xbf3ea0['string']();break;default:_0xbf3ea0['skipType'](0x7&_0x4cbd07);}}return _0x8b1d8;},_0x510cd6['decodeDelimited']=function(_0x45bdd5){return _0x45bdd5 instanceof _0x19f3ea||(_0x45bdd5=new _0x19f3ea(_0x45bdd5)),this['decode'](_0x45bdd5,_0x45bdd5['uint32']());},_0x510cd6['verify']=function(_0xa58dfe){return'object'!=typeof _0xa58dfe||null===_0xa58dfe?'object\x20expected':null!=_0xa58dfe['commentThreadId']&&_0xa58dfe['hasOwnProperty']('commentThreadId')&&!_0x3861b6['isString'](_0xa58dfe['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0xa58dfe['commentId']&&_0xa58dfe['hasOwnProperty']('commentId')&&!_0x3861b6['isString'](_0xa58dfe['commentId'])?'commentId:\x20string\x20expected':null!=_0xa58dfe['documentId']&&_0xa58dfe['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0xa58dfe['documentId'])?'documentId:\x20string\x20expected':null;},_0x510cd6['fromObject']=function(_0x7e59b1){if(_0x7e59b1 instanceof _0xefac1b['CommentsV2RemoveCommentMessage'])return _0x7e59b1;var _0x4debc2=new _0xefac1b['CommentsV2RemoveCommentMessage']();return null!=_0x7e59b1['commentThreadId']&&(_0x4debc2['commentThreadId']=String(_0x7e59b1['commentThreadId'])),null!=_0x7e59b1['commentId']&&(_0x4debc2['commentId']=String(_0x7e59b1['commentId'])),null!=_0x7e59b1['documentId']&&(_0x4debc2['documentId']=String(_0x7e59b1['documentId'])),_0x4debc2;},_0x510cd6['toObject']=function(_0x3207c7,_0x1b674f){_0x1b674f||(_0x1b674f={});var _0xf86252={};return _0x1b674f['defaults']&&(_0xf86252['commentThreadId']='',_0xf86252['commentId']='',_0xf86252['documentId']=''),null!=_0x3207c7['commentThreadId']&&_0x3207c7['hasOwnProperty']('commentThreadId')&&(_0xf86252['commentThreadId']=_0x3207c7['commentThreadId']),null!=_0x3207c7['commentId']&&_0x3207c7['hasOwnProperty']('commentId')&&(_0xf86252['commentId']=_0x3207c7['commentId']),null!=_0x3207c7['documentId']&&_0x3207c7['hasOwnProperty']('documentId')&&(_0xf86252['documentId']=_0x3207c7['documentId']),_0xf86252;},_0x510cd6['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x510cd6['getTypeUrl']=function(_0x1d85b3){return void 0x0===_0x1d85b3&&(_0x1d85b3='type.googleapis.com'),_0x1d85b3+'/CommentsV2RemoveCommentMessage';},_0x510cd6;}()),_0xefac1b['CommentsV2GetDocumentThreadsMessage']=(function(){function _0x4da7e7(_0x352f2f){if(_0x352f2f){for(var _0x48e1ff=Object['keys'](_0x352f2f),_0x169400=0x0;_0x169400<_0x48e1ff['length'];++_0x169400)null!=_0x352f2f[_0x48e1ff[_0x169400]]&&(this[_0x48e1ff[_0x169400]]=_0x352f2f[_0x48e1ff[_0x169400]]);}}return _0x4da7e7['prototype']['documentId']='',_0x4da7e7['create']=function(_0x90b718){return new _0x4da7e7(_0x90b718);},_0x4da7e7['encode']=function(_0x388aee,_0x4d2b35){return _0x4d2b35||(_0x4d2b35=_0x3cb188['create']()),null!=_0x388aee['documentId']&&Object['hasOwnProperty']['call'](_0x388aee,'documentId')&&_0x4d2b35['uint32'](0xa)['string'](_0x388aee['documentId']),_0x4d2b35;},_0x4da7e7['encodeDelimited']=function(_0x5a5e1d,_0x3964b3){return this['encode'](_0x5a5e1d,_0x3964b3)['ldelim']();},_0x4da7e7['decode']=function(_0x45a3b4,_0x1b4d2e,_0x5303d6){_0x45a3b4 instanceof _0x19f3ea||(_0x45a3b4=_0x19f3ea['create'](_0x45a3b4));for(var _0x2b70e5=void 0x0===_0x1b4d2e?_0x45a3b4['len']:_0x45a3b4['pos']+_0x1b4d2e,_0x3fe580=new _0xefac1b['CommentsV2GetDocumentThreadsMessage']();_0x45a3b4['pos']<_0x2b70e5;){var _0x155cc6=_0x45a3b4['uint32']();if(_0x155cc6===_0x5303d6)break;_0x155cc6>>>0x3==0x1?_0x3fe580['documentId']=_0x45a3b4['string']():_0x45a3b4['skipType'](0x7&_0x155cc6);}return _0x3fe580;},_0x4da7e7['decodeDelimited']=function(_0x4cc069){return _0x4cc069 instanceof _0x19f3ea||(_0x4cc069=new _0x19f3ea(_0x4cc069)),this['decode'](_0x4cc069,_0x4cc069['uint32']());},_0x4da7e7['verify']=function(_0x475dbe){return'object'!=typeof _0x475dbe||null===_0x475dbe?'object\x20expected':null!=_0x475dbe['documentId']&&_0x475dbe['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x475dbe['documentId'])?'documentId:\x20string\x20expected':null;},_0x4da7e7['fromObject']=function(_0x25144a){if(_0x25144a instanceof _0xefac1b['CommentsV2GetDocumentThreadsMessage'])return _0x25144a;var _0x9e3626=new _0xefac1b['CommentsV2GetDocumentThreadsMessage']();return null!=_0x25144a['documentId']&&(_0x9e3626['documentId']=String(_0x25144a['documentId'])),_0x9e3626;},_0x4da7e7['toObject']=function(_0x48c84a,_0x1aa571){_0x1aa571||(_0x1aa571={});var _0xb9a1bc={};return _0x1aa571['defaults']&&(_0xb9a1bc['documentId']=''),null!=_0x48c84a['documentId']&&_0x48c84a['hasOwnProperty']('documentId')&&(_0xb9a1bc['documentId']=_0x48c84a['documentId']),_0xb9a1bc;},_0x4da7e7['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4da7e7['getTypeUrl']=function(_0x5f0104){return void 0x0===_0x5f0104&&(_0x5f0104='type.googleapis.com'),_0x5f0104+'/CommentsV2GetDocumentThreadsMessage';},_0x4da7e7;}()),_0xefac1b['CommentsV2GetCommentThreadMessage']=(function(){function _0xc12f9d(_0x35bce6){if(_0x35bce6){for(var _0xa11c4=Object['keys'](_0x35bce6),_0x2885f=0x0;_0x2885f<_0xa11c4['length'];++_0x2885f)null!=_0x35bce6[_0xa11c4[_0x2885f]]&&(this[_0xa11c4[_0x2885f]]=_0x35bce6[_0xa11c4[_0x2885f]]);}}return _0xc12f9d['prototype']['commentThreadId']='',_0xc12f9d['prototype']['documentId']='',_0xc12f9d['create']=function(_0x4c0ed1){return new _0xc12f9d(_0x4c0ed1);},_0xc12f9d['encode']=function(_0x364dc6,_0x3fb155){return _0x3fb155||(_0x3fb155=_0x3cb188['create']()),null!=_0x364dc6['commentThreadId']&&Object['hasOwnProperty']['call'](_0x364dc6,'commentThreadId')&&_0x3fb155['uint32'](0xa)['string'](_0x364dc6['commentThreadId']),null!=_0x364dc6['documentId']&&Object['hasOwnProperty']['call'](_0x364dc6,'documentId')&&_0x3fb155['uint32'](0x12)['string'](_0x364dc6['documentId']),_0x3fb155;},_0xc12f9d['encodeDelimited']=function(_0x1a3553,_0x1e4b73){return this['encode'](_0x1a3553,_0x1e4b73)['ldelim']();},_0xc12f9d['decode']=function(_0x1004cb,_0x4b5783,_0x1636f7){_0x1004cb instanceof _0x19f3ea||(_0x1004cb=_0x19f3ea['create'](_0x1004cb));for(var _0x1f389f=void 0x0===_0x4b5783?_0x1004cb['len']:_0x1004cb['pos']+_0x4b5783,_0x32e480=new _0xefac1b['CommentsV2GetCommentThreadMessage']();_0x1004cb['pos']<_0x1f389f;){var _0x81cd80=_0x1004cb['uint32']();if(_0x81cd80===_0x1636f7)break;switch(_0x81cd80>>>0x3){case 0x1:_0x32e480['commentThreadId']=_0x1004cb['string']();break;case 0x2:_0x32e480['documentId']=_0x1004cb['string']();break;default:_0x1004cb['skipType'](0x7&_0x81cd80);}}return _0x32e480;},_0xc12f9d['decodeDelimited']=function(_0x1b6de2){return _0x1b6de2 instanceof _0x19f3ea||(_0x1b6de2=new _0x19f3ea(_0x1b6de2)),this['decode'](_0x1b6de2,_0x1b6de2['uint32']());},_0xc12f9d['verify']=function(_0x37108f){return'object'!=typeof _0x37108f||null===_0x37108f?'object\x20expected':null!=_0x37108f['commentThreadId']&&_0x37108f['hasOwnProperty']('commentThreadId')&&!_0x3861b6['isString'](_0x37108f['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x37108f['documentId']&&_0x37108f['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x37108f['documentId'])?'documentId:\x20string\x20expected':null;},_0xc12f9d['fromObject']=function(_0x51807d){if(_0x51807d instanceof _0xefac1b['CommentsV2GetCommentThreadMessage'])return _0x51807d;var _0x1f2131=new _0xefac1b['CommentsV2GetCommentThreadMessage']();return null!=_0x51807d['commentThreadId']&&(_0x1f2131['commentThreadId']=String(_0x51807d['commentThreadId'])),null!=_0x51807d['documentId']&&(_0x1f2131['documentId']=String(_0x51807d['documentId'])),_0x1f2131;},_0xc12f9d['toObject']=function(_0x3f42ae,_0x557ea7){_0x557ea7||(_0x557ea7={});var _0x48f955={};return _0x557ea7['defaults']&&(_0x48f955['commentThreadId']='',_0x48f955['documentId']=''),null!=_0x3f42ae['commentThreadId']&&_0x3f42ae['hasOwnProperty']('commentThreadId')&&(_0x48f955['commentThreadId']=_0x3f42ae['commentThreadId']),null!=_0x3f42ae['documentId']&&_0x3f42ae['hasOwnProperty']('documentId')&&(_0x48f955['documentId']=_0x3f42ae['documentId']),_0x48f955;},_0xc12f9d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xc12f9d['getTypeUrl']=function(_0x53d1f9){return void 0x0===_0x53d1f9&&(_0x53d1f9='type.googleapis.com'),_0x53d1f9+'/CommentsV2GetCommentThreadMessage';},_0xc12f9d;}()),_0xefac1b['CommentsV2ConnectMessage']=(function(){function _0x83f08d(_0x16b70e){if(_0x16b70e){for(var _0x1f020c=Object['keys'](_0x16b70e),_0x39e56d=0x0;_0x39e56d<_0x1f020c['length'];++_0x39e56d)null!=_0x16b70e[_0x1f020c[_0x39e56d]]&&(this[_0x1f020c[_0x39e56d]]=_0x16b70e[_0x1f020c[_0x39e56d]]);}}return _0x83f08d['prototype']['documentId']='',_0x83f08d['create']=function(_0x1fa1e1){return new _0x83f08d(_0x1fa1e1);},_0x83f08d['encode']=function(_0x54c369,_0x4b36d9){return _0x4b36d9||(_0x4b36d9=_0x3cb188['create']()),null!=_0x54c369['documentId']&&Object['hasOwnProperty']['call'](_0x54c369,'documentId')&&_0x4b36d9['uint32'](0xa)['string'](_0x54c369['documentId']),_0x4b36d9;},_0x83f08d['encodeDelimited']=function(_0x18b4e3,_0x203070){return this['encode'](_0x18b4e3,_0x203070)['ldelim']();},_0x83f08d['decode']=function(_0x4e0c90,_0x1a934a,_0x27d70a){_0x4e0c90 instanceof _0x19f3ea||(_0x4e0c90=_0x19f3ea['create'](_0x4e0c90));for(var _0x532f64=void 0x0===_0x1a934a?_0x4e0c90['len']:_0x4e0c90['pos']+_0x1a934a,_0x54ea07=new _0xefac1b['CommentsV2ConnectMessage']();_0x4e0c90['pos']<_0x532f64;){var _0x2de71d=_0x4e0c90['uint32']();if(_0x2de71d===_0x27d70a)break;_0x2de71d>>>0x3==0x1?_0x54ea07['documentId']=_0x4e0c90['string']():_0x4e0c90['skipType'](0x7&_0x2de71d);}return _0x54ea07;},_0x83f08d['decodeDelimited']=function(_0x3685ef){return _0x3685ef instanceof _0x19f3ea||(_0x3685ef=new _0x19f3ea(_0x3685ef)),this['decode'](_0x3685ef,_0x3685ef['uint32']());},_0x83f08d['verify']=function(_0x4db7bc){return'object'!=typeof _0x4db7bc||null===_0x4db7bc?'object\x20expected':null!=_0x4db7bc['documentId']&&_0x4db7bc['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x4db7bc['documentId'])?'documentId:\x20string\x20expected':null;},_0x83f08d['fromObject']=function(_0x21f495){if(_0x21f495 instanceof _0xefac1b['CommentsV2ConnectMessage'])return _0x21f495;var _0x57265e=new _0xefac1b['CommentsV2ConnectMessage']();return null!=_0x21f495['documentId']&&(_0x57265e['documentId']=String(_0x21f495['documentId'])),_0x57265e;},_0x83f08d['toObject']=function(_0x4b608a,_0x43a34a){_0x43a34a||(_0x43a34a={});var _0x2857dc={};return _0x43a34a['defaults']&&(_0x2857dc['documentId']=''),null!=_0x4b608a['documentId']&&_0x4b608a['hasOwnProperty']('documentId')&&(_0x2857dc['documentId']=_0x4b608a['documentId']),_0x2857dc;},_0x83f08d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x83f08d['getTypeUrl']=function(_0xee4087){return void 0x0===_0xee4087&&(_0xee4087='type.googleapis.com'),_0xee4087+'/CommentsV2ConnectMessage';},_0x83f08d;}()),_0xefac1b['CommentsV2AddCommentMessage']=(function(){function _0x30822f(_0x4bd8a9){if(_0x4bd8a9){for(var _0x1b6eb2=Object['keys'](_0x4bd8a9),_0x2bbac9=0x0;_0x2bbac9<_0x1b6eb2['length'];++_0x2bbac9)null!=_0x4bd8a9[_0x1b6eb2[_0x2bbac9]]&&(this[_0x1b6eb2[_0x2bbac9]]=_0x4bd8a9[_0x1b6eb2[_0x2bbac9]]);}}return _0x30822f['prototype']['commentThreadId']='',_0x30822f['prototype']['content']='',_0x30822f['prototype']['documentId']='',_0x30822f['prototype']['commentId']='',_0x30822f['prototype']['createdAt']='',_0x30822f['prototype']['userId']='',_0x30822f['prototype']['attributes']='',_0x30822f['prototype']['commentThread']=null,_0x30822f['create']=function(_0x33a758){return new _0x30822f(_0x33a758);},_0x30822f['encode']=function(_0x2d6323,_0x331075){return _0x331075||(_0x331075=_0x3cb188['create']()),null!=_0x2d6323['commentThreadId']&&Object['hasOwnProperty']['call'](_0x2d6323,'commentThreadId')&&_0x331075['uint32'](0xa)['string'](_0x2d6323['commentThreadId']),null!=_0x2d6323['content']&&Object['hasOwnProperty']['call'](_0x2d6323,'content')&&_0x331075['uint32'](0x12)['string'](_0x2d6323['content']),null!=_0x2d6323['documentId']&&Object['hasOwnProperty']['call'](_0x2d6323,'documentId')&&_0x331075['uint32'](0x1a)['string'](_0x2d6323['documentId']),null!=_0x2d6323['commentId']&&Object['hasOwnProperty']['call'](_0x2d6323,'commentId')&&_0x331075['uint32'](0x22)['string'](_0x2d6323['commentId']),null!=_0x2d6323['createdAt']&&Object['hasOwnProperty']['call'](_0x2d6323,'createdAt')&&_0x331075['uint32'](0x2a)['string'](_0x2d6323['createdAt']),null!=_0x2d6323['userId']&&Object['hasOwnProperty']['call'](_0x2d6323,'userId')&&_0x331075['uint32'](0x32)['string'](_0x2d6323['userId']),null!=_0x2d6323['attributes']&&Object['hasOwnProperty']['call'](_0x2d6323,'attributes')&&_0x331075['uint32'](0x3a)['string'](_0x2d6323['attributes']),null!=_0x2d6323['commentThread']&&Object['hasOwnProperty']['call'](_0x2d6323,'commentThread')&&_0xefac1b['CommentsThreadDescriptor']['encode'](_0x2d6323['commentThread'],_0x331075['uint32'](0x42)['fork']())['ldelim'](),_0x331075;},_0x30822f['encodeDelimited']=function(_0x5ac392,_0x11dee1){return this['encode'](_0x5ac392,_0x11dee1)['ldelim']();},_0x30822f['decode']=function(_0x28b2a0,_0x18930f,_0x40ec32){_0x28b2a0 instanceof _0x19f3ea||(_0x28b2a0=_0x19f3ea['create'](_0x28b2a0));for(var _0x457710=void 0x0===_0x18930f?_0x28b2a0['len']:_0x28b2a0['pos']+_0x18930f,_0x483271=new _0xefac1b['CommentsV2AddCommentMessage']();_0x28b2a0['pos']<_0x457710;){var _0x5bd376=_0x28b2a0['uint32']();if(_0x5bd376===_0x40ec32)break;switch(_0x5bd376>>>0x3){case 0x1:_0x483271['commentThreadId']=_0x28b2a0['string']();break;case 0x2:_0x483271['content']=_0x28b2a0['string']();break;case 0x3:_0x483271['documentId']=_0x28b2a0['string']();break;case 0x4:_0x483271['commentId']=_0x28b2a0['string']();break;case 0x5:_0x483271['createdAt']=_0x28b2a0['string']();break;case 0x6:_0x483271['userId']=_0x28b2a0['string']();break;case 0x7:_0x483271['attributes']=_0x28b2a0['string']();break;case 0x8:_0x483271['commentThread']=_0xefac1b['CommentsThreadDescriptor']['decode'](_0x28b2a0,_0x28b2a0['uint32']());break;default:_0x28b2a0['skipType'](0x7&_0x5bd376);}}return _0x483271;},_0x30822f['decodeDelimited']=function(_0x5e2e51){return _0x5e2e51 instanceof _0x19f3ea||(_0x5e2e51=new _0x19f3ea(_0x5e2e51)),this['decode'](_0x5e2e51,_0x5e2e51['uint32']());},_0x30822f['verify']=function(_0x4eb9a0){if('object'!=typeof _0x4eb9a0||null===_0x4eb9a0)return'object\x20expected';if(null!=_0x4eb9a0['commentThreadId']&&_0x4eb9a0['hasOwnProperty']('commentThreadId')&&!_0x3861b6['isString'](_0x4eb9a0['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x4eb9a0['content']&&_0x4eb9a0['hasOwnProperty']('content')&&!_0x3861b6['isString'](_0x4eb9a0['content']))return'content:\x20string\x20expected';if(null!=_0x4eb9a0['documentId']&&_0x4eb9a0['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x4eb9a0['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x4eb9a0['commentId']&&_0x4eb9a0['hasOwnProperty']('commentId')&&!_0x3861b6['isString'](_0x4eb9a0['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x4eb9a0['createdAt']&&_0x4eb9a0['hasOwnProperty']('createdAt')&&!_0x3861b6['isString'](_0x4eb9a0['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x4eb9a0['userId']&&_0x4eb9a0['hasOwnProperty']('userId')&&!_0x3861b6['isString'](_0x4eb9a0['userId']))return'userId:\x20string\x20expected';if(null!=_0x4eb9a0['attributes']&&_0x4eb9a0['hasOwnProperty']('attributes')&&!_0x3861b6['isString'](_0x4eb9a0['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x4eb9a0['commentThread']&&_0x4eb9a0['hasOwnProperty']('commentThread')){var _0x5521da=_0xefac1b['CommentsThreadDescriptor']['verify'](_0x4eb9a0['commentThread']);if(_0x5521da)return'commentThread.'+_0x5521da;}return null;},_0x30822f['fromObject']=function(_0x5849e6){if(_0x5849e6 instanceof _0xefac1b['CommentsV2AddCommentMessage'])return _0x5849e6;var _0x1f095e=new _0xefac1b['CommentsV2AddCommentMessage']();if(null!=_0x5849e6['commentThreadId']&&(_0x1f095e['commentThreadId']=String(_0x5849e6['commentThreadId'])),null!=_0x5849e6['content']&&(_0x1f095e['content']=String(_0x5849e6['content'])),null!=_0x5849e6['documentId']&&(_0x1f095e['documentId']=String(_0x5849e6['documentId'])),null!=_0x5849e6['commentId']&&(_0x1f095e['commentId']=String(_0x5849e6['commentId'])),null!=_0x5849e6['createdAt']&&(_0x1f095e['createdAt']=String(_0x5849e6['createdAt'])),null!=_0x5849e6['userId']&&(_0x1f095e['userId']=String(_0x5849e6['userId'])),null!=_0x5849e6['attributes']&&(_0x1f095e['attributes']=String(_0x5849e6['attributes'])),null!=_0x5849e6['commentThread']){if('object'!=typeof _0x5849e6['commentThread'])throw TypeError('.CommentsV2AddCommentMessage.commentThread:\x20object\x20expected');_0x1f095e['commentThread']=_0xefac1b['CommentsThreadDescriptor']['fromObject'](_0x5849e6['commentThread']);}return _0x1f095e;},_0x30822f['toObject']=function(_0x206f22,_0x39753d){_0x39753d||(_0x39753d={});var _0xdfd7ce={};return _0x39753d['defaults']&&(_0xdfd7ce['commentThreadId']='',_0xdfd7ce['content']='',_0xdfd7ce['documentId']='',_0xdfd7ce['commentId']='',_0xdfd7ce['createdAt']='',_0xdfd7ce['userId']='',_0xdfd7ce['attributes']='',_0xdfd7ce['commentThread']=null),null!=_0x206f22['commentThreadId']&&_0x206f22['hasOwnProperty']('commentThreadId')&&(_0xdfd7ce['commentThreadId']=_0x206f22['commentThreadId']),null!=_0x206f22['content']&&_0x206f22['hasOwnProperty']('content')&&(_0xdfd7ce['content']=_0x206f22['content']),null!=_0x206f22['documentId']&&_0x206f22['hasOwnProperty']('documentId')&&(_0xdfd7ce['documentId']=_0x206f22['documentId']),null!=_0x206f22['commentId']&&_0x206f22['hasOwnProperty']('commentId')&&(_0xdfd7ce['commentId']=_0x206f22['commentId']),null!=_0x206f22['createdAt']&&_0x206f22['hasOwnProperty']('createdAt')&&(_0xdfd7ce['createdAt']=_0x206f22['createdAt']),null!=_0x206f22['userId']&&_0x206f22['hasOwnProperty']('userId')&&(_0xdfd7ce['userId']=_0x206f22['userId']),null!=_0x206f22['attributes']&&_0x206f22['hasOwnProperty']('attributes')&&(_0xdfd7ce['attributes']=_0x206f22['attributes']),null!=_0x206f22['commentThread']&&_0x206f22['hasOwnProperty']('commentThread')&&(_0xdfd7ce['commentThread']=_0xefac1b['CommentsThreadDescriptor']['toObject'](_0x206f22['commentThread'],_0x39753d)),_0xdfd7ce;},_0x30822f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x30822f['getTypeUrl']=function(_0x4971e1){return void 0x0===_0x4971e1&&(_0x4971e1='type.googleapis.com'),_0x4971e1+'/CommentsV2AddCommentMessage';},_0x30822f;}()),_0xefac1b['CommentsV2UpdateCommentThreadMessage']=(function(){function _0x20bbbb(_0x548413){if(_0x548413){for(var _0x514803=Object['keys'](_0x548413),_0x4ad502=0x0;_0x4ad502<_0x514803['length'];++_0x4ad502)null!=_0x548413[_0x514803[_0x4ad502]]&&(this[_0x514803[_0x4ad502]]=_0x548413[_0x514803[_0x4ad502]]);}}return _0x20bbbb['prototype']['commentThreadId']='',_0x20bbbb['prototype']['documentId']='',_0x20bbbb['prototype']['context']='',_0x20bbbb['prototype']['attributes']='',_0x20bbbb['prototype']['unlinkedAt']='',_0x20bbbb['create']=function(_0x2d17db){return new _0x20bbbb(_0x2d17db);},_0x20bbbb['encode']=function(_0x5e9e07,_0x18a74f){return _0x18a74f||(_0x18a74f=_0x3cb188['create']()),null!=_0x5e9e07['commentThreadId']&&Object['hasOwnProperty']['call'](_0x5e9e07,'commentThreadId')&&_0x18a74f['uint32'](0xa)['string'](_0x5e9e07['commentThreadId']),null!=_0x5e9e07['documentId']&&Object['hasOwnProperty']['call'](_0x5e9e07,'documentId')&&_0x18a74f['uint32'](0x12)['string'](_0x5e9e07['documentId']),null!=_0x5e9e07['context']&&Object['hasOwnProperty']['call'](_0x5e9e07,'context')&&_0x18a74f['uint32'](0x1a)['string'](_0x5e9e07['context']),null!=_0x5e9e07['attributes']&&Object['hasOwnProperty']['call'](_0x5e9e07,'attributes')&&_0x18a74f['uint32'](0x22)['string'](_0x5e9e07['attributes']),null!=_0x5e9e07['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x5e9e07,'unlinkedAt')&&_0x18a74f['uint32'](0x2a)['string'](_0x5e9e07['unlinkedAt']),_0x18a74f;},_0x20bbbb['encodeDelimited']=function(_0x37c728,_0x18cb22){return this['encode'](_0x37c728,_0x18cb22)['ldelim']();},_0x20bbbb['decode']=function(_0x131177,_0x4cfb0d,_0x5b2348){_0x131177 instanceof _0x19f3ea||(_0x131177=_0x19f3ea['create'](_0x131177));for(var _0x3215cd=void 0x0===_0x4cfb0d?_0x131177['len']:_0x131177['pos']+_0x4cfb0d,_0x3b4252=new _0xefac1b['CommentsV2UpdateCommentThreadMessage']();_0x131177['pos']<_0x3215cd;){var _0x43ea1a=_0x131177['uint32']();if(_0x43ea1a===_0x5b2348)break;switch(_0x43ea1a>>>0x3){case 0x1:_0x3b4252['commentThreadId']=_0x131177['string']();break;case 0x2:_0x3b4252['documentId']=_0x131177['string']();break;case 0x3:_0x3b4252['context']=_0x131177['string']();break;case 0x4:_0x3b4252['attributes']=_0x131177['string']();break;case 0x5:_0x3b4252['unlinkedAt']=_0x131177['string']();break;default:_0x131177['skipType'](0x7&_0x43ea1a);}}return _0x3b4252;},_0x20bbbb['decodeDelimited']=function(_0x5754fb){return _0x5754fb instanceof _0x19f3ea||(_0x5754fb=new _0x19f3ea(_0x5754fb)),this['decode'](_0x5754fb,_0x5754fb['uint32']());},_0x20bbbb['verify']=function(_0x54c405){return'object'!=typeof _0x54c405||null===_0x54c405?'object\x20expected':null!=_0x54c405['commentThreadId']&&_0x54c405['hasOwnProperty']('commentThreadId')&&!_0x3861b6['isString'](_0x54c405['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x54c405['documentId']&&_0x54c405['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x54c405['documentId'])?'documentId:\x20string\x20expected':null!=_0x54c405['context']&&_0x54c405['hasOwnProperty']('context')&&!_0x3861b6['isString'](_0x54c405['context'])?'context:\x20string\x20expected':null!=_0x54c405['attributes']&&_0x54c405['hasOwnProperty']('attributes')&&!_0x3861b6['isString'](_0x54c405['attributes'])?'attributes:\x20string\x20expected':null!=_0x54c405['unlinkedAt']&&_0x54c405['hasOwnProperty']('unlinkedAt')&&!_0x3861b6['isString'](_0x54c405['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x20bbbb['fromObject']=function(_0x5e8de0){if(_0x5e8de0 instanceof _0xefac1b['CommentsV2UpdateCommentThreadMessage'])return _0x5e8de0;var _0x340236=new _0xefac1b['CommentsV2UpdateCommentThreadMessage']();return null!=_0x5e8de0['commentThreadId']&&(_0x340236['commentThreadId']=String(_0x5e8de0['commentThreadId'])),null!=_0x5e8de0['documentId']&&(_0x340236['documentId']=String(_0x5e8de0['documentId'])),null!=_0x5e8de0['context']&&(_0x340236['context']=String(_0x5e8de0['context'])),null!=_0x5e8de0['attributes']&&(_0x340236['attributes']=String(_0x5e8de0['attributes'])),null!=_0x5e8de0['unlinkedAt']&&(_0x340236['unlinkedAt']=String(_0x5e8de0['unlinkedAt'])),_0x340236;},_0x20bbbb['toObject']=function(_0x55494c,_0x4231ec){_0x4231ec||(_0x4231ec={});var _0x1405fb={};return _0x4231ec['defaults']&&(_0x1405fb['commentThreadId']='',_0x1405fb['documentId']='',_0x1405fb['context']='',_0x1405fb['attributes']='',_0x1405fb['unlinkedAt']=''),null!=_0x55494c['commentThreadId']&&_0x55494c['hasOwnProperty']('commentThreadId')&&(_0x1405fb['commentThreadId']=_0x55494c['commentThreadId']),null!=_0x55494c['documentId']&&_0x55494c['hasOwnProperty']('documentId')&&(_0x1405fb['documentId']=_0x55494c['documentId']),null!=_0x55494c['context']&&_0x55494c['hasOwnProperty']('context')&&(_0x1405fb['context']=_0x55494c['context']),null!=_0x55494c['attributes']&&_0x55494c['hasOwnProperty']('attributes')&&(_0x1405fb['attributes']=_0x55494c['attributes']),null!=_0x55494c['unlinkedAt']&&_0x55494c['hasOwnProperty']('unlinkedAt')&&(_0x1405fb['unlinkedAt']=_0x55494c['unlinkedAt']),_0x1405fb;},_0x20bbbb['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x20bbbb['getTypeUrl']=function(_0x25e4c4){return void 0x0===_0x25e4c4&&(_0x25e4c4='type.googleapis.com'),_0x25e4c4+'/CommentsV2UpdateCommentThreadMessage';},_0x20bbbb;}()),_0xefac1b['CommentsV2ResolveCommentThreadMessage']=(function(){function _0x3e9f5d(_0x527f98){if(_0x527f98){for(var _0x4a5760=Object['keys'](_0x527f98),_0x1f9136=0x0;_0x1f9136<_0x4a5760['length'];++_0x1f9136)null!=_0x527f98[_0x4a5760[_0x1f9136]]&&(this[_0x4a5760[_0x1f9136]]=_0x527f98[_0x4a5760[_0x1f9136]]);}}return _0x3e9f5d['prototype']['commentThreadId']='',_0x3e9f5d['prototype']['documentId']='',_0x3e9f5d['prototype']['resolvedBy']='',_0x3e9f5d['prototype']['resolvedAt']='',_0x3e9f5d['create']=function(_0x2409e4){return new _0x3e9f5d(_0x2409e4);},_0x3e9f5d['encode']=function(_0x53f7cf,_0x2fa3e1){return _0x2fa3e1||(_0x2fa3e1=_0x3cb188['create']()),null!=_0x53f7cf['commentThreadId']&&Object['hasOwnProperty']['call'](_0x53f7cf,'commentThreadId')&&_0x2fa3e1['uint32'](0xa)['string'](_0x53f7cf['commentThreadId']),null!=_0x53f7cf['documentId']&&Object['hasOwnProperty']['call'](_0x53f7cf,'documentId')&&_0x2fa3e1['uint32'](0x12)['string'](_0x53f7cf['documentId']),null!=_0x53f7cf['resolvedBy']&&Object['hasOwnProperty']['call'](_0x53f7cf,'resolvedBy')&&_0x2fa3e1['uint32'](0x1a)['string'](_0x53f7cf['resolvedBy']),null!=_0x53f7cf['resolvedAt']&&Object['hasOwnProperty']['call'](_0x53f7cf,'resolvedAt')&&_0x2fa3e1['uint32'](0x22)['string'](_0x53f7cf['resolvedAt']),_0x2fa3e1;},_0x3e9f5d['encodeDelimited']=function(_0x48cfeb,_0x48f7bb){return this['encode'](_0x48cfeb,_0x48f7bb)['ldelim']();},_0x3e9f5d['decode']=function(_0x50fa6e,_0x5a4a99,_0x1b6cd6){_0x50fa6e instanceof _0x19f3ea||(_0x50fa6e=_0x19f3ea['create'](_0x50fa6e));for(var _0x4a9820=void 0x0===_0x5a4a99?_0x50fa6e['len']:_0x50fa6e['pos']+_0x5a4a99,_0x2f9a2e=new _0xefac1b['CommentsV2ResolveCommentThreadMessage']();_0x50fa6e['pos']<_0x4a9820;){var _0x730067=_0x50fa6e['uint32']();if(_0x730067===_0x1b6cd6)break;switch(_0x730067>>>0x3){case 0x1:_0x2f9a2e['commentThreadId']=_0x50fa6e['string']();break;case 0x2:_0x2f9a2e['documentId']=_0x50fa6e['string']();break;case 0x3:_0x2f9a2e['resolvedBy']=_0x50fa6e['string']();break;case 0x4:_0x2f9a2e['resolvedAt']=_0x50fa6e['string']();break;default:_0x50fa6e['skipType'](0x7&_0x730067);}}return _0x2f9a2e;},_0x3e9f5d['decodeDelimited']=function(_0x3dbf22){return _0x3dbf22 instanceof _0x19f3ea||(_0x3dbf22=new _0x19f3ea(_0x3dbf22)),this['decode'](_0x3dbf22,_0x3dbf22['uint32']());},_0x3e9f5d['verify']=function(_0x4c8b8c){return'object'!=typeof _0x4c8b8c||null===_0x4c8b8c?'object\x20expected':null!=_0x4c8b8c['commentThreadId']&&_0x4c8b8c['hasOwnProperty']('commentThreadId')&&!_0x3861b6['isString'](_0x4c8b8c['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x4c8b8c['documentId']&&_0x4c8b8c['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x4c8b8c['documentId'])?'documentId:\x20string\x20expected':null!=_0x4c8b8c['resolvedBy']&&_0x4c8b8c['hasOwnProperty']('resolvedBy')&&!_0x3861b6['isString'](_0x4c8b8c['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x4c8b8c['resolvedAt']&&_0x4c8b8c['hasOwnProperty']('resolvedAt')&&!_0x3861b6['isString'](_0x4c8b8c['resolvedAt'])?'resolvedAt:\x20string\x20expected':null;},_0x3e9f5d['fromObject']=function(_0x265201){if(_0x265201 instanceof _0xefac1b['CommentsV2ResolveCommentThreadMessage'])return _0x265201;var _0x41b1f3=new _0xefac1b['CommentsV2ResolveCommentThreadMessage']();return null!=_0x265201['commentThreadId']&&(_0x41b1f3['commentThreadId']=String(_0x265201['commentThreadId'])),null!=_0x265201['documentId']&&(_0x41b1f3['documentId']=String(_0x265201['documentId'])),null!=_0x265201['resolvedBy']&&(_0x41b1f3['resolvedBy']=String(_0x265201['resolvedBy'])),null!=_0x265201['resolvedAt']&&(_0x41b1f3['resolvedAt']=String(_0x265201['resolvedAt'])),_0x41b1f3;},_0x3e9f5d['toObject']=function(_0x5530fb,_0x5d4971){_0x5d4971||(_0x5d4971={});var _0x55d5b4={};return _0x5d4971['defaults']&&(_0x55d5b4['commentThreadId']='',_0x55d5b4['documentId']='',_0x55d5b4['resolvedBy']='',_0x55d5b4['resolvedAt']=''),null!=_0x5530fb['commentThreadId']&&_0x5530fb['hasOwnProperty']('commentThreadId')&&(_0x55d5b4['commentThreadId']=_0x5530fb['commentThreadId']),null!=_0x5530fb['documentId']&&_0x5530fb['hasOwnProperty']('documentId')&&(_0x55d5b4['documentId']=_0x5530fb['documentId']),null!=_0x5530fb['resolvedBy']&&_0x5530fb['hasOwnProperty']('resolvedBy')&&(_0x55d5b4['resolvedBy']=_0x5530fb['resolvedBy']),null!=_0x5530fb['resolvedAt']&&_0x5530fb['hasOwnProperty']('resolvedAt')&&(_0x55d5b4['resolvedAt']=_0x5530fb['resolvedAt']),_0x55d5b4;},_0x3e9f5d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3e9f5d['getTypeUrl']=function(_0x252668){return void 0x0===_0x252668&&(_0x252668='type.googleapis.com'),_0x252668+'/CommentsV2ResolveCommentThreadMessage';},_0x3e9f5d;}()),_0xefac1b['CommentsV2ReopenCommentThreadMessage']=(function(){function _0x438bd5(_0x351a66){if(_0x351a66){for(var _0x19c165=Object['keys'](_0x351a66),_0x33d7a3=0x0;_0x33d7a3<_0x19c165['length'];++_0x33d7a3)null!=_0x351a66[_0x19c165[_0x33d7a3]]&&(this[_0x19c165[_0x33d7a3]]=_0x351a66[_0x19c165[_0x33d7a3]]);}}return _0x438bd5['prototype']['commentThreadId']='',_0x438bd5['prototype']['documentId']='',_0x438bd5['create']=function(_0x572864){return new _0x438bd5(_0x572864);},_0x438bd5['encode']=function(_0x5915c,_0x1e744c){return _0x1e744c||(_0x1e744c=_0x3cb188['create']()),null!=_0x5915c['commentThreadId']&&Object['hasOwnProperty']['call'](_0x5915c,'commentThreadId')&&_0x1e744c['uint32'](0xa)['string'](_0x5915c['commentThreadId']),null!=_0x5915c['documentId']&&Object['hasOwnProperty']['call'](_0x5915c,'documentId')&&_0x1e744c['uint32'](0x12)['string'](_0x5915c['documentId']),_0x1e744c;},_0x438bd5['encodeDelimited']=function(_0x19db98,_0x3d4d75){return this['encode'](_0x19db98,_0x3d4d75)['ldelim']();},_0x438bd5['decode']=function(_0x27d103,_0x1c2b67,_0x2b513b){_0x27d103 instanceof _0x19f3ea||(_0x27d103=_0x19f3ea['create'](_0x27d103));for(var _0x5360f1=void 0x0===_0x1c2b67?_0x27d103['len']:_0x27d103['pos']+_0x1c2b67,_0x470bd1=new _0xefac1b['CommentsV2ReopenCommentThreadMessage']();_0x27d103['pos']<_0x5360f1;){var _0x547fb3=_0x27d103['uint32']();if(_0x547fb3===_0x2b513b)break;switch(_0x547fb3>>>0x3){case 0x1:_0x470bd1['commentThreadId']=_0x27d103['string']();break;case 0x2:_0x470bd1['documentId']=_0x27d103['string']();break;default:_0x27d103['skipType'](0x7&_0x547fb3);}}return _0x470bd1;},_0x438bd5['decodeDelimited']=function(_0x731855){return _0x731855 instanceof _0x19f3ea||(_0x731855=new _0x19f3ea(_0x731855)),this['decode'](_0x731855,_0x731855['uint32']());},_0x438bd5['verify']=function(_0x102812){return'object'!=typeof _0x102812||null===_0x102812?'object\x20expected':null!=_0x102812['commentThreadId']&&_0x102812['hasOwnProperty']('commentThreadId')&&!_0x3861b6['isString'](_0x102812['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x102812['documentId']&&_0x102812['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x102812['documentId'])?'documentId:\x20string\x20expected':null;},_0x438bd5['fromObject']=function(_0x7e29c6){if(_0x7e29c6 instanceof _0xefac1b['CommentsV2ReopenCommentThreadMessage'])return _0x7e29c6;var _0x56eaee=new _0xefac1b['CommentsV2ReopenCommentThreadMessage']();return null!=_0x7e29c6['commentThreadId']&&(_0x56eaee['commentThreadId']=String(_0x7e29c6['commentThreadId'])),null!=_0x7e29c6['documentId']&&(_0x56eaee['documentId']=String(_0x7e29c6['documentId'])),_0x56eaee;},_0x438bd5['toObject']=function(_0x35c253,_0x9acab9){_0x9acab9||(_0x9acab9={});var _0x36b663={};return _0x9acab9['defaults']&&(_0x36b663['commentThreadId']='',_0x36b663['documentId']=''),null!=_0x35c253['commentThreadId']&&_0x35c253['hasOwnProperty']('commentThreadId')&&(_0x36b663['commentThreadId']=_0x35c253['commentThreadId']),null!=_0x35c253['documentId']&&_0x35c253['hasOwnProperty']('documentId')&&(_0x36b663['documentId']=_0x35c253['documentId']),_0x36b663;},_0x438bd5['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x438bd5['getTypeUrl']=function(_0x55dd4f){return void 0x0===_0x55dd4f&&(_0x55dd4f='type.googleapis.com'),_0x55dd4f+'/CommentsV2ReopenCommentThreadMessage';},_0x438bd5;}()),_0xefac1b['CommentsV2AddCommentThreadMessage']=(function(){function _0x18c3f9(_0x8010b9){if(this['comments']=[],_0x8010b9){for(var _0x3694c3=Object['keys'](_0x8010b9),_0x510ec3=0x0;_0x510ec3<_0x3694c3['length'];++_0x510ec3)null!=_0x8010b9[_0x3694c3[_0x510ec3]]&&(this[_0x3694c3[_0x510ec3]]=_0x8010b9[_0x3694c3[_0x510ec3]]);}}return _0x18c3f9['prototype']['documentId']='',_0x18c3f9['prototype']['commentThreadId']='',_0x18c3f9['prototype']['context']='',_0x18c3f9['prototype']['createdAt']='',_0x18c3f9['prototype']['resolvedAt']='',_0x18c3f9['prototype']['resolvedBy']='',_0x18c3f9['prototype']['attributes']='',_0x18c3f9['prototype']['deletedAt']='',_0x18c3f9['prototype']['comments']=_0x3861b6['emptyArray'],_0x18c3f9['create']=function(_0x464876){return new _0x18c3f9(_0x464876);},_0x18c3f9['encode']=function(_0x3910b6,_0x505334){if(_0x505334||(_0x505334=_0x3cb188['create']()),null!=_0x3910b6['documentId']&&Object['hasOwnProperty']['call'](_0x3910b6,'documentId')&&_0x505334['uint32'](0xa)['string'](_0x3910b6['documentId']),null!=_0x3910b6['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3910b6,'commentThreadId')&&_0x505334['uint32'](0x12)['string'](_0x3910b6['commentThreadId']),null!=_0x3910b6['context']&&Object['hasOwnProperty']['call'](_0x3910b6,'context')&&_0x505334['uint32'](0x1a)['string'](_0x3910b6['context']),null!=_0x3910b6['createdAt']&&Object['hasOwnProperty']['call'](_0x3910b6,'createdAt')&&_0x505334['uint32'](0x22)['string'](_0x3910b6['createdAt']),null!=_0x3910b6['resolvedAt']&&Object['hasOwnProperty']['call'](_0x3910b6,'resolvedAt')&&_0x505334['uint32'](0x2a)['string'](_0x3910b6['resolvedAt']),null!=_0x3910b6['resolvedBy']&&Object['hasOwnProperty']['call'](_0x3910b6,'resolvedBy')&&_0x505334['uint32'](0x32)['string'](_0x3910b6['resolvedBy']),null!=_0x3910b6['attributes']&&Object['hasOwnProperty']['call'](_0x3910b6,'attributes')&&_0x505334['uint32'](0x3a)['string'](_0x3910b6['attributes']),null!=_0x3910b6['deletedAt']&&Object['hasOwnProperty']['call'](_0x3910b6,'deletedAt')&&_0x505334['uint32'](0x42)['string'](_0x3910b6['deletedAt']),null!=_0x3910b6['comments']&&_0x3910b6['comments']['length']){for(var _0x130afd=0x0;_0x130afd<_0x3910b6['comments']['length'];++_0x130afd)_0xefac1b['CommentDescriptor']['encode'](_0x3910b6['comments'][_0x130afd],_0x505334['uint32'](0x4a)['fork']())['ldelim']();}return _0x505334;},_0x18c3f9['encodeDelimited']=function(_0x456a73,_0x2b407f){return this['encode'](_0x456a73,_0x2b407f)['ldelim']();},_0x18c3f9['decode']=function(_0x566923,_0x43009a,_0x406242){_0x566923 instanceof _0x19f3ea||(_0x566923=_0x19f3ea['create'](_0x566923));for(var _0x1e7a4e=void 0x0===_0x43009a?_0x566923['len']:_0x566923['pos']+_0x43009a,_0x2b0861=new _0xefac1b['CommentsV2AddCommentThreadMessage']();_0x566923['pos']<_0x1e7a4e;){var _0x229cea=_0x566923['uint32']();if(_0x229cea===_0x406242)break;switch(_0x229cea>>>0x3){case 0x1:_0x2b0861['documentId']=_0x566923['string']();break;case 0x2:_0x2b0861['commentThreadId']=_0x566923['string']();break;case 0x3:_0x2b0861['context']=_0x566923['string']();break;case 0x4:_0x2b0861['createdAt']=_0x566923['string']();break;case 0x5:_0x2b0861['resolvedAt']=_0x566923['string']();break;case 0x6:_0x2b0861['resolvedBy']=_0x566923['string']();break;case 0x7:_0x2b0861['attributes']=_0x566923['string']();break;case 0x8:_0x2b0861['deletedAt']=_0x566923['string']();break;case 0x9:_0x2b0861['comments']&&_0x2b0861['comments']['length']||(_0x2b0861['comments']=[]),_0x2b0861['comments']['push'](_0xefac1b['CommentDescriptor']['decode'](_0x566923,_0x566923['uint32']()));break;default:_0x566923['skipType'](0x7&_0x229cea);}}return _0x2b0861;},_0x18c3f9['decodeDelimited']=function(_0x22946b){return _0x22946b instanceof _0x19f3ea||(_0x22946b=new _0x19f3ea(_0x22946b)),this['decode'](_0x22946b,_0x22946b['uint32']());},_0x18c3f9['verify']=function(_0x4959ca){if('object'!=typeof _0x4959ca||null===_0x4959ca)return'object\x20expected';if(null!=_0x4959ca['documentId']&&_0x4959ca['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x4959ca['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x4959ca['commentThreadId']&&_0x4959ca['hasOwnProperty']('commentThreadId')&&!_0x3861b6['isString'](_0x4959ca['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x4959ca['context']&&_0x4959ca['hasOwnProperty']('context')&&!_0x3861b6['isString'](_0x4959ca['context']))return'context:\x20string\x20expected';if(null!=_0x4959ca['createdAt']&&_0x4959ca['hasOwnProperty']('createdAt')&&!_0x3861b6['isString'](_0x4959ca['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x4959ca['resolvedAt']&&_0x4959ca['hasOwnProperty']('resolvedAt')&&!_0x3861b6['isString'](_0x4959ca['resolvedAt']))return'resolvedAt:\x20string\x20expected';if(null!=_0x4959ca['resolvedBy']&&_0x4959ca['hasOwnProperty']('resolvedBy')&&!_0x3861b6['isString'](_0x4959ca['resolvedBy']))return'resolvedBy:\x20string\x20expected';if(null!=_0x4959ca['attributes']&&_0x4959ca['hasOwnProperty']('attributes')&&!_0x3861b6['isString'](_0x4959ca['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x4959ca['deletedAt']&&_0x4959ca['hasOwnProperty']('deletedAt')&&!_0x3861b6['isString'](_0x4959ca['deletedAt']))return'deletedAt:\x20string\x20expected';if(null!=_0x4959ca['comments']&&_0x4959ca['hasOwnProperty']('comments')){if(!Array['isArray'](_0x4959ca['comments']))return'comments:\x20array\x20expected';for(var _0x4083b3=0x0;_0x4083b3<_0x4959ca['comments']['length'];++_0x4083b3){var _0x54569c=_0xefac1b['CommentDescriptor']['verify'](_0x4959ca['comments'][_0x4083b3]);if(_0x54569c)return'comments.'+_0x54569c;}}return null;},_0x18c3f9['fromObject']=function(_0x4d2bfd){if(_0x4d2bfd instanceof _0xefac1b['CommentsV2AddCommentThreadMessage'])return _0x4d2bfd;var _0x4db431=new _0xefac1b['CommentsV2AddCommentThreadMessage']();if(null!=_0x4d2bfd['documentId']&&(_0x4db431['documentId']=String(_0x4d2bfd['documentId'])),null!=_0x4d2bfd['commentThreadId']&&(_0x4db431['commentThreadId']=String(_0x4d2bfd['commentThreadId'])),null!=_0x4d2bfd['context']&&(_0x4db431['context']=String(_0x4d2bfd['context'])),null!=_0x4d2bfd['createdAt']&&(_0x4db431['createdAt']=String(_0x4d2bfd['createdAt'])),null!=_0x4d2bfd['resolvedAt']&&(_0x4db431['resolvedAt']=String(_0x4d2bfd['resolvedAt'])),null!=_0x4d2bfd['resolvedBy']&&(_0x4db431['resolvedBy']=String(_0x4d2bfd['resolvedBy'])),null!=_0x4d2bfd['attributes']&&(_0x4db431['attributes']=String(_0x4d2bfd['attributes'])),null!=_0x4d2bfd['deletedAt']&&(_0x4db431['deletedAt']=String(_0x4d2bfd['deletedAt'])),_0x4d2bfd['comments']){if(!Array['isArray'](_0x4d2bfd['comments']))throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20array\x20expected');_0x4db431['comments']=[];for(var _0x4c0eb9=0x0;_0x4c0eb9<_0x4d2bfd['comments']['length'];++_0x4c0eb9){if('object'!=typeof _0x4d2bfd['comments'][_0x4c0eb9])throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20object\x20expected');_0x4db431['comments'][_0x4c0eb9]=_0xefac1b['CommentDescriptor']['fromObject'](_0x4d2bfd['comments'][_0x4c0eb9]);}}return _0x4db431;},_0x18c3f9['toObject']=function(_0x20bad0,_0x2ab176){_0x2ab176||(_0x2ab176={});var _0x1f78e3={};if((_0x2ab176['arrays']||_0x2ab176['defaults'])&&(_0x1f78e3['comments']=[]),_0x2ab176['defaults']&&(_0x1f78e3['documentId']='',_0x1f78e3['commentThreadId']='',_0x1f78e3['context']='',_0x1f78e3['createdAt']='',_0x1f78e3['resolvedAt']='',_0x1f78e3['resolvedBy']='',_0x1f78e3['attributes']='',_0x1f78e3['deletedAt']=''),null!=_0x20bad0['documentId']&&_0x20bad0['hasOwnProperty']('documentId')&&(_0x1f78e3['documentId']=_0x20bad0['documentId']),null!=_0x20bad0['commentThreadId']&&_0x20bad0['hasOwnProperty']('commentThreadId')&&(_0x1f78e3['commentThreadId']=_0x20bad0['commentThreadId']),null!=_0x20bad0['context']&&_0x20bad0['hasOwnProperty']('context')&&(_0x1f78e3['context']=_0x20bad0['context']),null!=_0x20bad0['createdAt']&&_0x20bad0['hasOwnProperty']('createdAt')&&(_0x1f78e3['createdAt']=_0x20bad0['createdAt']),null!=_0x20bad0['resolvedAt']&&_0x20bad0['hasOwnProperty']('resolvedAt')&&(_0x1f78e3['resolvedAt']=_0x20bad0['resolvedAt']),null!=_0x20bad0['resolvedBy']&&_0x20bad0['hasOwnProperty']('resolvedBy')&&(_0x1f78e3['resolvedBy']=_0x20bad0['resolvedBy']),null!=_0x20bad0['attributes']&&_0x20bad0['hasOwnProperty']('attributes')&&(_0x1f78e3['attributes']=_0x20bad0['attributes']),null!=_0x20bad0['deletedAt']&&_0x20bad0['hasOwnProperty']('deletedAt')&&(_0x1f78e3['deletedAt']=_0x20bad0['deletedAt']),_0x20bad0['comments']&&_0x20bad0['comments']['length']){_0x1f78e3['comments']=[];for(var _0x26ffb7=0x0;_0x26ffb7<_0x20bad0['comments']['length'];++_0x26ffb7)_0x1f78e3['comments'][_0x26ffb7]=_0xefac1b['CommentDescriptor']['toObject'](_0x20bad0['comments'][_0x26ffb7],_0x2ab176);}return _0x1f78e3;},_0x18c3f9['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x18c3f9['getTypeUrl']=function(_0x37cbd0){return void 0x0===_0x37cbd0&&(_0x37cbd0='type.googleapis.com'),_0x37cbd0+'/CommentsV2AddCommentThreadMessage';},_0x18c3f9;}()),_0xefac1b['CommentThreadAddedCommentDescriptor']=(function(){function _0x2d6b38(_0x2be31a){if(_0x2be31a){for(var _0x182570=Object['keys'](_0x2be31a),_0x2c4a34=0x0;_0x2c4a34<_0x182570['length'];++_0x2c4a34)null!=_0x2be31a[_0x182570[_0x2c4a34]]&&(this[_0x182570[_0x2c4a34]]=_0x2be31a[_0x182570[_0x2c4a34]]);}}return _0x2d6b38['prototype']['commentId']='',_0x2d6b38['prototype']['createdAt']='',_0x2d6b38['create']=function(_0x228471){return new _0x2d6b38(_0x228471);},_0x2d6b38['encode']=function(_0x1af01f,_0x2c8eff){return _0x2c8eff||(_0x2c8eff=_0x3cb188['create']()),null!=_0x1af01f['commentId']&&Object['hasOwnProperty']['call'](_0x1af01f,'commentId')&&_0x2c8eff['uint32'](0xa)['string'](_0x1af01f['commentId']),null!=_0x1af01f['createdAt']&&Object['hasOwnProperty']['call'](_0x1af01f,'createdAt')&&_0x2c8eff['uint32'](0x12)['string'](_0x1af01f['createdAt']),_0x2c8eff;},_0x2d6b38['encodeDelimited']=function(_0x3c062d,_0x3f20c0){return this['encode'](_0x3c062d,_0x3f20c0)['ldelim']();},_0x2d6b38['decode']=function(_0x209eb7,_0x237d10,_0x3a4345){_0x209eb7 instanceof _0x19f3ea||(_0x209eb7=_0x19f3ea['create'](_0x209eb7));for(var _0x5e291b=void 0x0===_0x237d10?_0x209eb7['len']:_0x209eb7['pos']+_0x237d10,_0x4d08ec=new _0xefac1b['CommentThreadAddedCommentDescriptor']();_0x209eb7['pos']<_0x5e291b;){var _0x25dc0b=_0x209eb7['uint32']();if(_0x25dc0b===_0x3a4345)break;switch(_0x25dc0b>>>0x3){case 0x1:_0x4d08ec['commentId']=_0x209eb7['string']();break;case 0x2:_0x4d08ec['createdAt']=_0x209eb7['string']();break;default:_0x209eb7['skipType'](0x7&_0x25dc0b);}}return _0x4d08ec;},_0x2d6b38['decodeDelimited']=function(_0x5cb07a){return _0x5cb07a instanceof _0x19f3ea||(_0x5cb07a=new _0x19f3ea(_0x5cb07a)),this['decode'](_0x5cb07a,_0x5cb07a['uint32']());},_0x2d6b38['verify']=function(_0x32ed6d){return'object'!=typeof _0x32ed6d||null===_0x32ed6d?'object\x20expected':null!=_0x32ed6d['commentId']&&_0x32ed6d['hasOwnProperty']('commentId')&&!_0x3861b6['isString'](_0x32ed6d['commentId'])?'commentId:\x20string\x20expected':null!=_0x32ed6d['createdAt']&&_0x32ed6d['hasOwnProperty']('createdAt')&&!_0x3861b6['isString'](_0x32ed6d['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x2d6b38['fromObject']=function(_0xb8485e){if(_0xb8485e instanceof _0xefac1b['CommentThreadAddedCommentDescriptor'])return _0xb8485e;var _0x3d91db=new _0xefac1b['CommentThreadAddedCommentDescriptor']();return null!=_0xb8485e['commentId']&&(_0x3d91db['commentId']=String(_0xb8485e['commentId'])),null!=_0xb8485e['createdAt']&&(_0x3d91db['createdAt']=String(_0xb8485e['createdAt'])),_0x3d91db;},_0x2d6b38['toObject']=function(_0x17df97,_0x4e6c22){_0x4e6c22||(_0x4e6c22={});var _0x53dcf4={};return _0x4e6c22['defaults']&&(_0x53dcf4['commentId']='',_0x53dcf4['createdAt']=''),null!=_0x17df97['commentId']&&_0x17df97['hasOwnProperty']('commentId')&&(_0x53dcf4['commentId']=_0x17df97['commentId']),null!=_0x17df97['createdAt']&&_0x17df97['hasOwnProperty']('createdAt')&&(_0x53dcf4['createdAt']=_0x17df97['createdAt']),_0x53dcf4;},_0x2d6b38['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2d6b38['getTypeUrl']=function(_0xf8c019){return void 0x0===_0xf8c019&&(_0xf8c019='type.googleapis.com'),_0xf8c019+'/CommentThreadAddedCommentDescriptor';},_0x2d6b38;}()),_0xefac1b['CommentsThreadDescriptor']=(function(){function _0x111914(_0x5a55a8){if(this['comments']=[],_0x5a55a8){for(var _0x41b7db=Object['keys'](_0x5a55a8),_0x4bbf41=0x0;_0x4bbf41<_0x41b7db['length'];++_0x4bbf41)null!=_0x5a55a8[_0x41b7db[_0x4bbf41]]&&(this[_0x41b7db[_0x4bbf41]]=_0x5a55a8[_0x41b7db[_0x4bbf41]]);}}return _0x111914['prototype']['commentThreadId']='',_0x111914['prototype']['comments']=_0x3861b6['emptyArray'],_0x111914['prototype']['resolvedAt']='',_0x111914['prototype']['resolvedBy']='',_0x111914['prototype']['context']='',_0x111914['prototype']['createdAt']='',_0x111914['prototype']['deletedAt']='',_0x111914['prototype']['attributes']='',_0x111914['prototype']['unlinkedAt']='',_0x111914['create']=function(_0x4c93ed){return new _0x111914(_0x4c93ed);},_0x111914['encode']=function(_0x493401,_0x4f07df){if(_0x4f07df||(_0x4f07df=_0x3cb188['create']()),null!=_0x493401['commentThreadId']&&Object['hasOwnProperty']['call'](_0x493401,'commentThreadId')&&_0x4f07df['uint32'](0xa)['string'](_0x493401['commentThreadId']),null!=_0x493401['comments']&&_0x493401['comments']['length']){for(var _0xf9f8fe=0x0;_0xf9f8fe<_0x493401['comments']['length'];++_0xf9f8fe)_0xefac1b['CommentDescriptor']['encode'](_0x493401['comments'][_0xf9f8fe],_0x4f07df['uint32'](0x12)['fork']())['ldelim']();}return null!=_0x493401['resolvedAt']&&Object['hasOwnProperty']['call'](_0x493401,'resolvedAt')&&_0x4f07df['uint32'](0x1a)['string'](_0x493401['resolvedAt']),null!=_0x493401['resolvedBy']&&Object['hasOwnProperty']['call'](_0x493401,'resolvedBy')&&_0x4f07df['uint32'](0x22)['string'](_0x493401['resolvedBy']),null!=_0x493401['context']&&Object['hasOwnProperty']['call'](_0x493401,'context')&&_0x4f07df['uint32'](0x2a)['string'](_0x493401['context']),null!=_0x493401['createdAt']&&Object['hasOwnProperty']['call'](_0x493401,'createdAt')&&_0x4f07df['uint32'](0x32)['string'](_0x493401['createdAt']),null!=_0x493401['deletedAt']&&Object['hasOwnProperty']['call'](_0x493401,'deletedAt')&&_0x4f07df['uint32'](0x3a)['string'](_0x493401['deletedAt']),null!=_0x493401['attributes']&&Object['hasOwnProperty']['call'](_0x493401,'attributes')&&_0x4f07df['uint32'](0x42)['string'](_0x493401['attributes']),null!=_0x493401['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x493401,'unlinkedAt')&&_0x4f07df['uint32'](0x4a)['string'](_0x493401['unlinkedAt']),_0x4f07df;},_0x111914['encodeDelimited']=function(_0x25aa3a,_0x3f5790){return this['encode'](_0x25aa3a,_0x3f5790)['ldelim']();},_0x111914['decode']=function(_0x45ce0f,_0x1aaf37,_0x3970e7){_0x45ce0f instanceof _0x19f3ea||(_0x45ce0f=_0x19f3ea['create'](_0x45ce0f));for(var _0x1943e9=void 0x0===_0x1aaf37?_0x45ce0f['len']:_0x45ce0f['pos']+_0x1aaf37,_0x1f80d2=new _0xefac1b['CommentsThreadDescriptor']();_0x45ce0f['pos']<_0x1943e9;){var _0x3ffd40=_0x45ce0f['uint32']();if(_0x3ffd40===_0x3970e7)break;switch(_0x3ffd40>>>0x3){case 0x1:_0x1f80d2['commentThreadId']=_0x45ce0f['string']();break;case 0x2:_0x1f80d2['comments']&&_0x1f80d2['comments']['length']||(_0x1f80d2['comments']=[]),_0x1f80d2['comments']['push'](_0xefac1b['CommentDescriptor']['decode'](_0x45ce0f,_0x45ce0f['uint32']()));break;case 0x3:_0x1f80d2['resolvedAt']=_0x45ce0f['string']();break;case 0x4:_0x1f80d2['resolvedBy']=_0x45ce0f['string']();break;case 0x5:_0x1f80d2['context']=_0x45ce0f['string']();break;case 0x6:_0x1f80d2['createdAt']=_0x45ce0f['string']();break;case 0x7:_0x1f80d2['deletedAt']=_0x45ce0f['string']();break;case 0x8:_0x1f80d2['attributes']=_0x45ce0f['string']();break;case 0x9:_0x1f80d2['unlinkedAt']=_0x45ce0f['string']();break;default:_0x45ce0f['skipType'](0x7&_0x3ffd40);}}return _0x1f80d2;},_0x111914['decodeDelimited']=function(_0x449b08){return _0x449b08 instanceof _0x19f3ea||(_0x449b08=new _0x19f3ea(_0x449b08)),this['decode'](_0x449b08,_0x449b08['uint32']());},_0x111914['verify']=function(_0x58594a){if('object'!=typeof _0x58594a||null===_0x58594a)return'object\x20expected';if(null!=_0x58594a['commentThreadId']&&_0x58594a['hasOwnProperty']('commentThreadId')&&!_0x3861b6['isString'](_0x58594a['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x58594a['comments']&&_0x58594a['hasOwnProperty']('comments')){if(!Array['isArray'](_0x58594a['comments']))return'comments:\x20array\x20expected';for(var _0x445a49=0x0;_0x445a49<_0x58594a['comments']['length'];++_0x445a49){var _0x52a30f=_0xefac1b['CommentDescriptor']['verify'](_0x58594a['comments'][_0x445a49]);if(_0x52a30f)return'comments.'+_0x52a30f;}}return null!=_0x58594a['resolvedAt']&&_0x58594a['hasOwnProperty']('resolvedAt')&&!_0x3861b6['isString'](_0x58594a['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x58594a['resolvedBy']&&_0x58594a['hasOwnProperty']('resolvedBy')&&!_0x3861b6['isString'](_0x58594a['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x58594a['context']&&_0x58594a['hasOwnProperty']('context')&&!_0x3861b6['isString'](_0x58594a['context'])?'context:\x20string\x20expected':null!=_0x58594a['createdAt']&&_0x58594a['hasOwnProperty']('createdAt')&&!_0x3861b6['isString'](_0x58594a['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x58594a['deletedAt']&&_0x58594a['hasOwnProperty']('deletedAt')&&!_0x3861b6['isString'](_0x58594a['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x58594a['attributes']&&_0x58594a['hasOwnProperty']('attributes')&&!_0x3861b6['isString'](_0x58594a['attributes'])?'attributes:\x20string\x20expected':null!=_0x58594a['unlinkedAt']&&_0x58594a['hasOwnProperty']('unlinkedAt')&&!_0x3861b6['isString'](_0x58594a['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x111914['fromObject']=function(_0x709f49){if(_0x709f49 instanceof _0xefac1b['CommentsThreadDescriptor'])return _0x709f49;var _0xedd6ab=new _0xefac1b['CommentsThreadDescriptor']();if(null!=_0x709f49['commentThreadId']&&(_0xedd6ab['commentThreadId']=String(_0x709f49['commentThreadId'])),_0x709f49['comments']){if(!Array['isArray'](_0x709f49['comments']))throw TypeError('.CommentsThreadDescriptor.comments:\x20array\x20expected');_0xedd6ab['comments']=[];for(var _0x2bd127=0x0;_0x2bd127<_0x709f49['comments']['length'];++_0x2bd127){if('object'!=typeof _0x709f49['comments'][_0x2bd127])throw TypeError('.CommentsThreadDescriptor.comments:\x20object\x20expected');_0xedd6ab['comments'][_0x2bd127]=_0xefac1b['CommentDescriptor']['fromObject'](_0x709f49['comments'][_0x2bd127]);}}return null!=_0x709f49['resolvedAt']&&(_0xedd6ab['resolvedAt']=String(_0x709f49['resolvedAt'])),null!=_0x709f49['resolvedBy']&&(_0xedd6ab['resolvedBy']=String(_0x709f49['resolvedBy'])),null!=_0x709f49['context']&&(_0xedd6ab['context']=String(_0x709f49['context'])),null!=_0x709f49['createdAt']&&(_0xedd6ab['createdAt']=String(_0x709f49['createdAt'])),null!=_0x709f49['deletedAt']&&(_0xedd6ab['deletedAt']=String(_0x709f49['deletedAt'])),null!=_0x709f49['attributes']&&(_0xedd6ab['attributes']=String(_0x709f49['attributes'])),null!=_0x709f49['unlinkedAt']&&(_0xedd6ab['unlinkedAt']=String(_0x709f49['unlinkedAt'])),_0xedd6ab;},_0x111914['toObject']=function(_0x199ed7,_0xd63afd){_0xd63afd||(_0xd63afd={});var _0x8c348={};if((_0xd63afd['arrays']||_0xd63afd['defaults'])&&(_0x8c348['comments']=[]),_0xd63afd['defaults']&&(_0x8c348['commentThreadId']='',_0x8c348['resolvedAt']='',_0x8c348['resolvedBy']='',_0x8c348['context']='',_0x8c348['createdAt']='',_0x8c348['deletedAt']='',_0x8c348['attributes']='',_0x8c348['unlinkedAt']=''),null!=_0x199ed7['commentThreadId']&&_0x199ed7['hasOwnProperty']('commentThreadId')&&(_0x8c348['commentThreadId']=_0x199ed7['commentThreadId']),_0x199ed7['comments']&&_0x199ed7['comments']['length']){_0x8c348['comments']=[];for(var _0x2ae3c4=0x0;_0x2ae3c4<_0x199ed7['comments']['length'];++_0x2ae3c4)_0x8c348['comments'][_0x2ae3c4]=_0xefac1b['CommentDescriptor']['toObject'](_0x199ed7['comments'][_0x2ae3c4],_0xd63afd);}return null!=_0x199ed7['resolvedAt']&&_0x199ed7['hasOwnProperty']('resolvedAt')&&(_0x8c348['resolvedAt']=_0x199ed7['resolvedAt']),null!=_0x199ed7['resolvedBy']&&_0x199ed7['hasOwnProperty']('resolvedBy')&&(_0x8c348['resolvedBy']=_0x199ed7['resolvedBy']),null!=_0x199ed7['context']&&_0x199ed7['hasOwnProperty']('context')&&(_0x8c348['context']=_0x199ed7['context']),null!=_0x199ed7['createdAt']&&_0x199ed7['hasOwnProperty']('createdAt')&&(_0x8c348['createdAt']=_0x199ed7['createdAt']),null!=_0x199ed7['deletedAt']&&_0x199ed7['hasOwnProperty']('deletedAt')&&(_0x8c348['deletedAt']=_0x199ed7['deletedAt']),null!=_0x199ed7['attributes']&&_0x199ed7['hasOwnProperty']('attributes')&&(_0x8c348['attributes']=_0x199ed7['attributes']),null!=_0x199ed7['unlinkedAt']&&_0x199ed7['hasOwnProperty']('unlinkedAt')&&(_0x8c348['unlinkedAt']=_0x199ed7['unlinkedAt']),_0x8c348;},_0x111914['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x111914['getTypeUrl']=function(_0x3d55ed){return void 0x0===_0x3d55ed&&(_0x3d55ed='type.googleapis.com'),_0x3d55ed+'/CommentsThreadDescriptor';},_0x111914;}()),_0xefac1b['CommentDescriptor']=(function(){function _0x240491(_0xffade6){if(_0xffade6){for(var _0x298aa3=Object['keys'](_0xffade6),_0x5713e5=0x0;_0x5713e5<_0x298aa3['length'];++_0x5713e5)null!=_0xffade6[_0x298aa3[_0x5713e5]]&&(this[_0x298aa3[_0x5713e5]]=_0xffade6[_0x298aa3[_0x5713e5]]);}}return _0x240491['prototype']['commentId']='',_0x240491['prototype']['commentThreadId']='',_0x240491['prototype']['userId']='',_0x240491['prototype']['content']='',_0x240491['prototype']['documentId']='',_0x240491['prototype']['createdAt']='',_0x240491['prototype']['attributes']='',_0x240491['create']=function(_0x2201c2){return new _0x240491(_0x2201c2);},_0x240491['encode']=function(_0x383b72,_0x58b47b){return _0x58b47b||(_0x58b47b=_0x3cb188['create']()),null!=_0x383b72['commentId']&&Object['hasOwnProperty']['call'](_0x383b72,'commentId')&&_0x58b47b['uint32'](0xa)['string'](_0x383b72['commentId']),null!=_0x383b72['commentThreadId']&&Object['hasOwnProperty']['call'](_0x383b72,'commentThreadId')&&_0x58b47b['uint32'](0x12)['string'](_0x383b72['commentThreadId']),null!=_0x383b72['userId']&&Object['hasOwnProperty']['call'](_0x383b72,'userId')&&_0x58b47b['uint32'](0x1a)['string'](_0x383b72['userId']),null!=_0x383b72['content']&&Object['hasOwnProperty']['call'](_0x383b72,'content')&&_0x58b47b['uint32'](0x22)['string'](_0x383b72['content']),null!=_0x383b72['documentId']&&Object['hasOwnProperty']['call'](_0x383b72,'documentId')&&_0x58b47b['uint32'](0x2a)['string'](_0x383b72['documentId']),null!=_0x383b72['createdAt']&&Object['hasOwnProperty']['call'](_0x383b72,'createdAt')&&_0x58b47b['uint32'](0x32)['string'](_0x383b72['createdAt']),null!=_0x383b72['attributes']&&Object['hasOwnProperty']['call'](_0x383b72,'attributes')&&_0x58b47b['uint32'](0x3a)['string'](_0x383b72['attributes']),_0x58b47b;},_0x240491['encodeDelimited']=function(_0x315279,_0x10e624){return this['encode'](_0x315279,_0x10e624)['ldelim']();},_0x240491['decode']=function(_0x42fb12,_0x221e14,_0x229de8){_0x42fb12 instanceof _0x19f3ea||(_0x42fb12=_0x19f3ea['create'](_0x42fb12));for(var _0x34c07c=void 0x0===_0x221e14?_0x42fb12['len']:_0x42fb12['pos']+_0x221e14,_0x222431=new _0xefac1b['CommentDescriptor']();_0x42fb12['pos']<_0x34c07c;){var _0x2a0c47=_0x42fb12['uint32']();if(_0x2a0c47===_0x229de8)break;switch(_0x2a0c47>>>0x3){case 0x1:_0x222431['commentId']=_0x42fb12['string']();break;case 0x2:_0x222431['commentThreadId']=_0x42fb12['string']();break;case 0x3:_0x222431['userId']=_0x42fb12['string']();break;case 0x4:_0x222431['content']=_0x42fb12['string']();break;case 0x5:_0x222431['documentId']=_0x42fb12['string']();break;case 0x6:_0x222431['createdAt']=_0x42fb12['string']();break;case 0x7:_0x222431['attributes']=_0x42fb12['string']();break;default:_0x42fb12['skipType'](0x7&_0x2a0c47);}}return _0x222431;},_0x240491['decodeDelimited']=function(_0x2b8cf7){return _0x2b8cf7 instanceof _0x19f3ea||(_0x2b8cf7=new _0x19f3ea(_0x2b8cf7)),this['decode'](_0x2b8cf7,_0x2b8cf7['uint32']());},_0x240491['verify']=function(_0x2604d0){return'object'!=typeof _0x2604d0||null===_0x2604d0?'object\x20expected':null!=_0x2604d0['commentId']&&_0x2604d0['hasOwnProperty']('commentId')&&!_0x3861b6['isString'](_0x2604d0['commentId'])?'commentId:\x20string\x20expected':null!=_0x2604d0['commentThreadId']&&_0x2604d0['hasOwnProperty']('commentThreadId')&&!_0x3861b6['isString'](_0x2604d0['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x2604d0['userId']&&_0x2604d0['hasOwnProperty']('userId')&&!_0x3861b6['isString'](_0x2604d0['userId'])?'userId:\x20string\x20expected':null!=_0x2604d0['content']&&_0x2604d0['hasOwnProperty']('content')&&!_0x3861b6['isString'](_0x2604d0['content'])?'content:\x20string\x20expected':null!=_0x2604d0['documentId']&&_0x2604d0['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x2604d0['documentId'])?'documentId:\x20string\x20expected':null!=_0x2604d0['createdAt']&&_0x2604d0['hasOwnProperty']('createdAt')&&!_0x3861b6['isString'](_0x2604d0['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x2604d0['attributes']&&_0x2604d0['hasOwnProperty']('attributes')&&!_0x3861b6['isString'](_0x2604d0['attributes'])?'attributes:\x20string\x20expected':null;},_0x240491['fromObject']=function(_0x7ff5d7){if(_0x7ff5d7 instanceof _0xefac1b['CommentDescriptor'])return _0x7ff5d7;var _0x473bfd=new _0xefac1b['CommentDescriptor']();return null!=_0x7ff5d7['commentId']&&(_0x473bfd['commentId']=String(_0x7ff5d7['commentId'])),null!=_0x7ff5d7['commentThreadId']&&(_0x473bfd['commentThreadId']=String(_0x7ff5d7['commentThreadId'])),null!=_0x7ff5d7['userId']&&(_0x473bfd['userId']=String(_0x7ff5d7['userId'])),null!=_0x7ff5d7['content']&&(_0x473bfd['content']=String(_0x7ff5d7['content'])),null!=_0x7ff5d7['documentId']&&(_0x473bfd['documentId']=String(_0x7ff5d7['documentId'])),null!=_0x7ff5d7['createdAt']&&(_0x473bfd['createdAt']=String(_0x7ff5d7['createdAt'])),null!=_0x7ff5d7['attributes']&&(_0x473bfd['attributes']=String(_0x7ff5d7['attributes'])),_0x473bfd;},_0x240491['toObject']=function(_0x2046ef,_0x1ed6c5){_0x1ed6c5||(_0x1ed6c5={});var _0x4d470c={};return _0x1ed6c5['defaults']&&(_0x4d470c['commentId']='',_0x4d470c['commentThreadId']='',_0x4d470c['userId']='',_0x4d470c['content']='',_0x4d470c['documentId']='',_0x4d470c['createdAt']='',_0x4d470c['attributes']=''),null!=_0x2046ef['commentId']&&_0x2046ef['hasOwnProperty']('commentId')&&(_0x4d470c['commentId']=_0x2046ef['commentId']),null!=_0x2046ef['commentThreadId']&&_0x2046ef['hasOwnProperty']('commentThreadId')&&(_0x4d470c['commentThreadId']=_0x2046ef['commentThreadId']),null!=_0x2046ef['userId']&&_0x2046ef['hasOwnProperty']('userId')&&(_0x4d470c['userId']=_0x2046ef['userId']),null!=_0x2046ef['content']&&_0x2046ef['hasOwnProperty']('content')&&(_0x4d470c['content']=_0x2046ef['content']),null!=_0x2046ef['documentId']&&_0x2046ef['hasOwnProperty']('documentId')&&(_0x4d470c['documentId']=_0x2046ef['documentId']),null!=_0x2046ef['createdAt']&&_0x2046ef['hasOwnProperty']('createdAt')&&(_0x4d470c['createdAt']=_0x2046ef['createdAt']),null!=_0x2046ef['attributes']&&_0x2046ef['hasOwnProperty']('attributes')&&(_0x4d470c['attributes']=_0x2046ef['attributes']),_0x4d470c;},_0x240491['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x240491['getTypeUrl']=function(_0x26056d){return void 0x0===_0x26056d&&(_0x26056d='type.googleapis.com'),_0x26056d+'/CommentDescriptor';},_0x240491;}()),_0xefac1b['GetDocumentDetailsResponse']=(function(){function _0xfa42bf(_0x46c30b){if(_0x46c30b){for(var _0x1fd30c=Object['keys'](_0x46c30b),_0x2475d9=0x0;_0x2475d9<_0x1fd30c['length'];++_0x2475d9)null!=_0x46c30b[_0x1fd30c[_0x2475d9]]&&(this[_0x1fd30c[_0x2475d9]]=_0x46c30b[_0x1fd30c[_0x2475d9]]);}}return _0xfa42bf['prototype']['lastDocumentSessionId']='',_0xfa42bf['prototype']['lastDocumentSessionOperationId']='',_0xfa42bf['prototype']['currentDocumentSessionId']='',_0xfa42bf['prototype']['currentDocumentSessionVersion']=0x0,_0xfa42bf['prototype']['currentDocumentSessionOperationId']='',_0xfa42bf['create']=function(_0x2f8cb5){return new _0xfa42bf(_0x2f8cb5);},_0xfa42bf['encode']=function(_0x4a87a2,_0x5153d7){return _0x5153d7||(_0x5153d7=_0x3cb188['create']()),null!=_0x4a87a2['lastDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x4a87a2,'lastDocumentSessionId')&&_0x5153d7['uint32'](0xa)['string'](_0x4a87a2['lastDocumentSessionId']),null!=_0x4a87a2['lastDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x4a87a2,'lastDocumentSessionOperationId')&&_0x5153d7['uint32'](0x12)['string'](_0x4a87a2['lastDocumentSessionOperationId']),null!=_0x4a87a2['currentDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x4a87a2,'currentDocumentSessionId')&&_0x5153d7['uint32'](0x1a)['string'](_0x4a87a2['currentDocumentSessionId']),null!=_0x4a87a2['currentDocumentSessionVersion']&&Object['hasOwnProperty']['call'](_0x4a87a2,'currentDocumentSessionVersion')&&_0x5153d7['uint32'](0x20)['uint32'](_0x4a87a2['currentDocumentSessionVersion']),null!=_0x4a87a2['currentDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x4a87a2,'currentDocumentSessionOperationId')&&_0x5153d7['uint32'](0x2a)['string'](_0x4a87a2['currentDocumentSessionOperationId']),_0x5153d7;},_0xfa42bf['encodeDelimited']=function(_0x36b929,_0x59e413){return this['encode'](_0x36b929,_0x59e413)['ldelim']();},_0xfa42bf['decode']=function(_0x57f7b0,_0x1c69ac,_0x24bec5){_0x57f7b0 instanceof _0x19f3ea||(_0x57f7b0=_0x19f3ea['create'](_0x57f7b0));for(var _0x286eee=void 0x0===_0x1c69ac?_0x57f7b0['len']:_0x57f7b0['pos']+_0x1c69ac,_0x25e1ca=new _0xefac1b['GetDocumentDetailsResponse']();_0x57f7b0['pos']<_0x286eee;){var _0x16f6a2=_0x57f7b0['uint32']();if(_0x16f6a2===_0x24bec5)break;switch(_0x16f6a2>>>0x3){case 0x1:_0x25e1ca['lastDocumentSessionId']=_0x57f7b0['string']();break;case 0x2:_0x25e1ca['lastDocumentSessionOperationId']=_0x57f7b0['string']();break;case 0x3:_0x25e1ca['currentDocumentSessionId']=_0x57f7b0['string']();break;case 0x4:_0x25e1ca['currentDocumentSessionVersion']=_0x57f7b0['uint32']();break;case 0x5:_0x25e1ca['currentDocumentSessionOperationId']=_0x57f7b0['string']();break;default:_0x57f7b0['skipType'](0x7&_0x16f6a2);}}return _0x25e1ca;},_0xfa42bf['decodeDelimited']=function(_0x45399c){return _0x45399c instanceof _0x19f3ea||(_0x45399c=new _0x19f3ea(_0x45399c)),this['decode'](_0x45399c,_0x45399c['uint32']());},_0xfa42bf['verify']=function(_0x997acc){return'object'!=typeof _0x997acc||null===_0x997acc?'object\x20expected':null!=_0x997acc['lastDocumentSessionId']&&_0x997acc['hasOwnProperty']('lastDocumentSessionId')&&!_0x3861b6['isString'](_0x997acc['lastDocumentSessionId'])?'lastDocumentSessionId:\x20string\x20expected':null!=_0x997acc['lastDocumentSessionOperationId']&&_0x997acc['hasOwnProperty']('lastDocumentSessionOperationId')&&!_0x3861b6['isString'](_0x997acc['lastDocumentSessionOperationId'])?'lastDocumentSessionOperationId:\x20string\x20expected':null!=_0x997acc['currentDocumentSessionId']&&_0x997acc['hasOwnProperty']('currentDocumentSessionId')&&!_0x3861b6['isString'](_0x997acc['currentDocumentSessionId'])?'currentDocumentSessionId:\x20string\x20expected':null!=_0x997acc['currentDocumentSessionVersion']&&_0x997acc['hasOwnProperty']('currentDocumentSessionVersion')&&!_0x3861b6['isInteger'](_0x997acc['currentDocumentSessionVersion'])?'currentDocumentSessionVersion:\x20integer\x20expected':null!=_0x997acc['currentDocumentSessionOperationId']&&_0x997acc['hasOwnProperty']('currentDocumentSessionOperationId')&&!_0x3861b6['isString'](_0x997acc['currentDocumentSessionOperationId'])?'currentDocumentSessionOperationId:\x20string\x20expected':null;},_0xfa42bf['fromObject']=function(_0x296639){if(_0x296639 instanceof _0xefac1b['GetDocumentDetailsResponse'])return _0x296639;var _0x379666=new _0xefac1b['GetDocumentDetailsResponse']();return null!=_0x296639['lastDocumentSessionId']&&(_0x379666['lastDocumentSessionId']=String(_0x296639['lastDocumentSessionId'])),null!=_0x296639['lastDocumentSessionOperationId']&&(_0x379666['lastDocumentSessionOperationId']=String(_0x296639['lastDocumentSessionOperationId'])),null!=_0x296639['currentDocumentSessionId']&&(_0x379666['currentDocumentSessionId']=String(_0x296639['currentDocumentSessionId'])),null!=_0x296639['currentDocumentSessionVersion']&&(_0x379666['currentDocumentSessionVersion']=_0x296639['currentDocumentSessionVersion']>>>0x0),null!=_0x296639['currentDocumentSessionOperationId']&&(_0x379666['currentDocumentSessionOperationId']=String(_0x296639['currentDocumentSessionOperationId'])),_0x379666;},_0xfa42bf['toObject']=function(_0x2f5c32,_0x24ba17){_0x24ba17||(_0x24ba17={});var _0x177853={};return _0x24ba17['defaults']&&(_0x177853['lastDocumentSessionId']='',_0x177853['lastDocumentSessionOperationId']='',_0x177853['currentDocumentSessionId']='',_0x177853['currentDocumentSessionVersion']=0x0,_0x177853['currentDocumentSessionOperationId']=''),null!=_0x2f5c32['lastDocumentSessionId']&&_0x2f5c32['hasOwnProperty']('lastDocumentSessionId')&&(_0x177853['lastDocumentSessionId']=_0x2f5c32['lastDocumentSessionId']),null!=_0x2f5c32['lastDocumentSessionOperationId']&&_0x2f5c32['hasOwnProperty']('lastDocumentSessionOperationId')&&(_0x177853['lastDocumentSessionOperationId']=_0x2f5c32['lastDocumentSessionOperationId']),null!=_0x2f5c32['currentDocumentSessionId']&&_0x2f5c32['hasOwnProperty']('currentDocumentSessionId')&&(_0x177853['currentDocumentSessionId']=_0x2f5c32['currentDocumentSessionId']),null!=_0x2f5c32['currentDocumentSessionVersion']&&_0x2f5c32['hasOwnProperty']('currentDocumentSessionVersion')&&(_0x177853['currentDocumentSessionVersion']=_0x2f5c32['currentDocumentSessionVersion']),null!=_0x2f5c32['currentDocumentSessionOperationId']&&_0x2f5c32['hasOwnProperty']('currentDocumentSessionOperationId')&&(_0x177853['currentDocumentSessionOperationId']=_0x2f5c32['currentDocumentSessionOperationId']),_0x177853;},_0xfa42bf['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xfa42bf['getTypeUrl']=function(_0x2bebf4){return void 0x0===_0x2bebf4&&(_0x2bebf4='type.googleapis.com'),_0x2bebf4+'/GetDocumentDetailsResponse';},_0xfa42bf;}()),_0xefac1b['CollaborativeEditingResponse']=(function(){function _0x3a9bcb(_0xfbcef8){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0xfbcef8){for(var _0x3ff98e=Object['keys'](_0xfbcef8),_0xa4d28c=0x0;_0xa4d28c<_0x3ff98e['length'];++_0xa4d28c)null!=_0xfbcef8[_0x3ff98e[_0xa4d28c]]&&(this[_0x3ff98e[_0xa4d28c]]=_0xfbcef8[_0x3ff98e[_0xa4d28c]]);}}return _0x3a9bcb['prototype']['version']=0x0,_0x3a9bcb['prototype']['buffers']=_0x3861b6['emptyArray'],_0x3a9bcb['prototype']['types']=_0x3861b6['emptyArray'],_0x3a9bcb['prototype']['metadata']=_0x3861b6['emptyArray'],_0x3a9bcb['prototype']['lastOperationId']='',_0x3a9bcb['prototype']['lastOperationAcceptedAt']='',_0x3a9bcb['create']=function(_0x3713ef){return new _0x3a9bcb(_0x3713ef);},_0x3a9bcb['encode']=function(_0x12f1ce,_0x235840){if(_0x235840||(_0x235840=_0x3cb188['create']()),null!=_0x12f1ce['version']&&Object['hasOwnProperty']['call'](_0x12f1ce,'version')&&_0x235840['uint32'](0x8)['uint32'](_0x12f1ce['version']),null!=_0x12f1ce['buffers']&&_0x12f1ce['buffers']['length']){for(var _0x1106e2=0x0;_0x1106e2<_0x12f1ce['buffers']['length'];++_0x1106e2)_0x235840['uint32'](0x12)['bytes'](_0x12f1ce['buffers'][_0x1106e2]);}if(null!=_0x12f1ce['types']&&_0x12f1ce['types']['length']){for(_0x235840['uint32'](0x1a)['fork'](),_0x1106e2=0x0;_0x1106e2<_0x12f1ce['types']['length'];++_0x1106e2)_0x235840['uint32'](_0x12f1ce['types'][_0x1106e2]);_0x235840['ldelim']();}if(null!=_0x12f1ce['metadata']&&_0x12f1ce['metadata']['length']){for(_0x1106e2=0x0;_0x1106e2<_0x12f1ce['metadata']['length'];++_0x1106e2)_0xefac1b['OperationMetadataDescriptor']['encode'](_0x12f1ce['metadata'][_0x1106e2],_0x235840['uint32'](0x2a)['fork']())['ldelim']();}return null!=_0x12f1ce['lastOperationId']&&Object['hasOwnProperty']['call'](_0x12f1ce,'lastOperationId')&&_0x235840['uint32'](0x32)['string'](_0x12f1ce['lastOperationId']),null!=_0x12f1ce['lastOperationAcceptedAt']&&Object['hasOwnProperty']['call'](_0x12f1ce,'lastOperationAcceptedAt')&&_0x235840['uint32'](0x3a)['string'](_0x12f1ce['lastOperationAcceptedAt']),_0x235840;},_0x3a9bcb['encodeDelimited']=function(_0x38da6b,_0x16afa1){return this['encode'](_0x38da6b,_0x16afa1)['ldelim']();},_0x3a9bcb['decode']=function(_0x24ecbb,_0x37d4e2,_0x17708c){_0x24ecbb instanceof _0x19f3ea||(_0x24ecbb=_0x19f3ea['create'](_0x24ecbb));for(var _0x57a1f8=void 0x0===_0x37d4e2?_0x24ecbb['len']:_0x24ecbb['pos']+_0x37d4e2,_0x3293d9=new _0xefac1b['CollaborativeEditingResponse']();_0x24ecbb['pos']<_0x57a1f8;){var _0x17ded4=_0x24ecbb['uint32']();if(_0x17ded4===_0x17708c)break;switch(_0x17ded4>>>0x3){case 0x1:_0x3293d9['version']=_0x24ecbb['uint32']();break;case 0x2:_0x3293d9['buffers']&&_0x3293d9['buffers']['length']||(_0x3293d9['buffers']=[]),_0x3293d9['buffers']['push'](_0x24ecbb['bytes']());break;case 0x3:if(_0x3293d9['types']&&_0x3293d9['types']['length']||(_0x3293d9['types']=[]),0x2==(0x7&_0x17ded4)){for(var _0x56953b=_0x24ecbb['uint32']()+_0x24ecbb['pos'];_0x24ecbb['pos']<_0x56953b;)_0x3293d9['types']['push'](_0x24ecbb['uint32']());}else _0x3293d9['types']['push'](_0x24ecbb['uint32']());break;case 0x5:_0x3293d9['metadata']&&_0x3293d9['metadata']['length']||(_0x3293d9['metadata']=[]),_0x3293d9['metadata']['push'](_0xefac1b['OperationMetadataDescriptor']['decode'](_0x24ecbb,_0x24ecbb['uint32']()));break;case 0x6:_0x3293d9['lastOperationId']=_0x24ecbb['string']();break;case 0x7:_0x3293d9['lastOperationAcceptedAt']=_0x24ecbb['string']();break;default:_0x24ecbb['skipType'](0x7&_0x17ded4);}}return _0x3293d9;},_0x3a9bcb['decodeDelimited']=function(_0x24d3be){return _0x24d3be instanceof _0x19f3ea||(_0x24d3be=new _0x19f3ea(_0x24d3be)),this['decode'](_0x24d3be,_0x24d3be['uint32']());},_0x3a9bcb['verify']=function(_0x388d43){if('object'!=typeof _0x388d43||null===_0x388d43)return'object\x20expected';if(null!=_0x388d43['version']&&_0x388d43['hasOwnProperty']('version')&&!_0x3861b6['isInteger'](_0x388d43['version']))return'version:\x20integer\x20expected';if(null!=_0x388d43['buffers']&&_0x388d43['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x388d43['buffers']))return'buffers:\x20array\x20expected';for(var _0x28dbb6=0x0;_0x28dbb6<_0x388d43['buffers']['length'];++_0x28dbb6)if(!(_0x388d43['buffers'][_0x28dbb6]&&'number'==typeof _0x388d43['buffers'][_0x28dbb6]['length']||_0x3861b6['isString'](_0x388d43['buffers'][_0x28dbb6])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x388d43['types']&&_0x388d43['hasOwnProperty']('types')){if(!Array['isArray'](_0x388d43['types']))return'types:\x20array\x20expected';for(_0x28dbb6=0x0;_0x28dbb6<_0x388d43['types']['length'];++_0x28dbb6)if(!_0x3861b6['isInteger'](_0x388d43['types'][_0x28dbb6]))return'types:\x20integer[]\x20expected';}if(null!=_0x388d43['metadata']&&_0x388d43['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x388d43['metadata']))return'metadata:\x20array\x20expected';for(_0x28dbb6=0x0;_0x28dbb6<_0x388d43['metadata']['length'];++_0x28dbb6){var _0x17dd1b=_0xefac1b['OperationMetadataDescriptor']['verify'](_0x388d43['metadata'][_0x28dbb6]);if(_0x17dd1b)return'metadata.'+_0x17dd1b;}}return null!=_0x388d43['lastOperationId']&&_0x388d43['hasOwnProperty']('lastOperationId')&&!_0x3861b6['isString'](_0x388d43['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x388d43['lastOperationAcceptedAt']&&_0x388d43['hasOwnProperty']('lastOperationAcceptedAt')&&!_0x3861b6['isString'](_0x388d43['lastOperationAcceptedAt'])?'lastOperationAcceptedAt:\x20string\x20expected':null;},_0x3a9bcb['fromObject']=function(_0x5e3f04){if(_0x5e3f04 instanceof _0xefac1b['CollaborativeEditingResponse'])return _0x5e3f04;var _0xd1095d=new _0xefac1b['CollaborativeEditingResponse']();if(null!=_0x5e3f04['version']&&(_0xd1095d['version']=_0x5e3f04['version']>>>0x0),_0x5e3f04['buffers']){if(!Array['isArray'](_0x5e3f04['buffers']))throw TypeError('.CollaborativeEditingResponse.buffers:\x20array\x20expected');_0xd1095d['buffers']=[];for(var _0x2da3c8=0x0;_0x2da3c8<_0x5e3f04['buffers']['length'];++_0x2da3c8)'string'==typeof _0x5e3f04['buffers'][_0x2da3c8]?_0x3861b6['base64']['decode'](_0x5e3f04['buffers'][_0x2da3c8],_0xd1095d['buffers'][_0x2da3c8]=_0x3861b6['newBuffer'](_0x3861b6['base64']['length'](_0x5e3f04['buffers'][_0x2da3c8])),0x0):_0x5e3f04['buffers'][_0x2da3c8]['length']>=0x0&&(_0xd1095d['buffers'][_0x2da3c8]=_0x5e3f04['buffers'][_0x2da3c8]);}if(_0x5e3f04['types']){if(!Array['isArray'](_0x5e3f04['types']))throw TypeError('.CollaborativeEditingResponse.types:\x20array\x20expected');for(_0xd1095d['types']=[],_0x2da3c8=0x0;_0x2da3c8<_0x5e3f04['types']['length'];++_0x2da3c8)_0xd1095d['types'][_0x2da3c8]=_0x5e3f04['types'][_0x2da3c8]>>>0x0;}if(_0x5e3f04['metadata']){if(!Array['isArray'](_0x5e3f04['metadata']))throw TypeError('.CollaborativeEditingResponse.metadata:\x20array\x20expected');for(_0xd1095d['metadata']=[],_0x2da3c8=0x0;_0x2da3c8<_0x5e3f04['metadata']['length'];++_0x2da3c8){if('object'!=typeof _0x5e3f04['metadata'][_0x2da3c8])throw TypeError('.CollaborativeEditingResponse.metadata:\x20object\x20expected');_0xd1095d['metadata'][_0x2da3c8]=_0xefac1b['OperationMetadataDescriptor']['fromObject'](_0x5e3f04['metadata'][_0x2da3c8]);}}return null!=_0x5e3f04['lastOperationId']&&(_0xd1095d['lastOperationId']=String(_0x5e3f04['lastOperationId'])),null!=_0x5e3f04['lastOperationAcceptedAt']&&(_0xd1095d['lastOperationAcceptedAt']=String(_0x5e3f04['lastOperationAcceptedAt'])),_0xd1095d;},_0x3a9bcb['toObject']=function(_0x38b4ff,_0xd0e7b7){_0xd0e7b7||(_0xd0e7b7={});var _0x51458e={};if((_0xd0e7b7['arrays']||_0xd0e7b7['defaults'])&&(_0x51458e['buffers']=[],_0x51458e['types']=[],_0x51458e['metadata']=[]),_0xd0e7b7['defaults']&&(_0x51458e['version']=0x0,_0x51458e['lastOperationId']='',_0x51458e['lastOperationAcceptedAt']=''),null!=_0x38b4ff['version']&&_0x38b4ff['hasOwnProperty']('version')&&(_0x51458e['version']=_0x38b4ff['version']),_0x38b4ff['buffers']&&_0x38b4ff['buffers']['length']){_0x51458e['buffers']=[];for(var _0x49fec2=0x0;_0x49fec2<_0x38b4ff['buffers']['length'];++_0x49fec2)_0x51458e['buffers'][_0x49fec2]=_0xd0e7b7['bytes']===String?_0x3861b6['base64']['encode'](_0x38b4ff['buffers'][_0x49fec2],0x0,_0x38b4ff['buffers'][_0x49fec2]['length']):_0xd0e7b7['bytes']===Array?Array['prototype']['slice']['call'](_0x38b4ff['buffers'][_0x49fec2]):_0x38b4ff['buffers'][_0x49fec2];}if(_0x38b4ff['types']&&_0x38b4ff['types']['length']){for(_0x51458e['types']=[],_0x49fec2=0x0;_0x49fec2<_0x38b4ff['types']['length'];++_0x49fec2)_0x51458e['types'][_0x49fec2]=_0x38b4ff['types'][_0x49fec2];}if(_0x38b4ff['metadata']&&_0x38b4ff['metadata']['length']){for(_0x51458e['metadata']=[],_0x49fec2=0x0;_0x49fec2<_0x38b4ff['metadata']['length'];++_0x49fec2)_0x51458e['metadata'][_0x49fec2]=_0xefac1b['OperationMetadataDescriptor']['toObject'](_0x38b4ff['metadata'][_0x49fec2],_0xd0e7b7);}return null!=_0x38b4ff['lastOperationId']&&_0x38b4ff['hasOwnProperty']('lastOperationId')&&(_0x51458e['lastOperationId']=_0x38b4ff['lastOperationId']),null!=_0x38b4ff['lastOperationAcceptedAt']&&_0x38b4ff['hasOwnProperty']('lastOperationAcceptedAt')&&(_0x51458e['lastOperationAcceptedAt']=_0x38b4ff['lastOperationAcceptedAt']),_0x51458e;},_0x3a9bcb['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3a9bcb['getTypeUrl']=function(_0x2192a2){return void 0x0===_0x2192a2&&(_0x2192a2='type.googleapis.com'),_0x2192a2+'/CollaborativeEditingResponse';},_0x3a9bcb;}()),_0xefac1b['CollaborativeEditingConnectResponse']=(function(){function _0x41e095(_0x35b28f){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x35b28f){for(var _0x231623=Object['keys'](_0x35b28f),_0x2e6f3e=0x0;_0x2e6f3e<_0x231623['length'];++_0x2e6f3e)null!=_0x35b28f[_0x231623[_0x2e6f3e]]&&(this[_0x231623[_0x2e6f3e]]=_0x35b28f[_0x231623[_0x2e6f3e]]);}}return _0x41e095['prototype']['channel']='',_0x41e095['prototype']['offset']=0x0,_0x41e095['prototype']['version']=0x0,_0x41e095['prototype']['buffers']=_0x3861b6['emptyArray'],_0x41e095['prototype']['types']=_0x3861b6['emptyArray'],_0x41e095['prototype']['metadata']=_0x3861b6['emptyArray'],_0x41e095['prototype']['initData']='',_0x41e095['prototype']['isInitialized']=!0x1,_0x41e095['prototype']['sessionId']='',_0x41e095['prototype']['lastOperationId']='',_0x41e095['prototype']['sessionCreatedAt']='',_0x41e095['create']=function(_0x3d79a8){return new _0x41e095(_0x3d79a8);},_0x41e095['encode']=function(_0x54bb1e,_0x543a47){if(_0x543a47||(_0x543a47=_0x3cb188['create']()),null!=_0x54bb1e['channel']&&Object['hasOwnProperty']['call'](_0x54bb1e,'channel')&&_0x543a47['uint32'](0xa)['string'](_0x54bb1e['channel']),null!=_0x54bb1e['offset']&&Object['hasOwnProperty']['call'](_0x54bb1e,'offset')&&_0x543a47['uint32'](0x10)['uint32'](_0x54bb1e['offset']),null!=_0x54bb1e['version']&&Object['hasOwnProperty']['call'](_0x54bb1e,'version')&&_0x543a47['uint32'](0x18)['uint32'](_0x54bb1e['version']),null!=_0x54bb1e['buffers']&&_0x54bb1e['buffers']['length']){for(var _0x16a029=0x0;_0x16a029<_0x54bb1e['buffers']['length'];++_0x16a029)_0x543a47['uint32'](0x22)['bytes'](_0x54bb1e['buffers'][_0x16a029]);}if(null!=_0x54bb1e['types']&&_0x54bb1e['types']['length']){for(_0x543a47['uint32'](0x2a)['fork'](),_0x16a029=0x0;_0x16a029<_0x54bb1e['types']['length'];++_0x16a029)_0x543a47['uint32'](_0x54bb1e['types'][_0x16a029]);_0x543a47['ldelim']();}if(null!=_0x54bb1e['metadata']&&_0x54bb1e['metadata']['length']){for(_0x16a029=0x0;_0x16a029<_0x54bb1e['metadata']['length'];++_0x16a029)_0xefac1b['OperationMetadataDescriptor']['encode'](_0x54bb1e['metadata'][_0x16a029],_0x543a47['uint32'](0x3a)['fork']())['ldelim']();}return null!=_0x54bb1e['initData']&&Object['hasOwnProperty']['call'](_0x54bb1e,'initData')&&_0x543a47['uint32'](0x42)['string'](_0x54bb1e['initData']),null!=_0x54bb1e['isInitialized']&&Object['hasOwnProperty']['call'](_0x54bb1e,'isInitialized')&&_0x543a47['uint32'](0x48)['bool'](_0x54bb1e['isInitialized']),null!=_0x54bb1e['sessionId']&&Object['hasOwnProperty']['call'](_0x54bb1e,'sessionId')&&_0x543a47['uint32'](0x52)['string'](_0x54bb1e['sessionId']),null!=_0x54bb1e['lastOperationId']&&Object['hasOwnProperty']['call'](_0x54bb1e,'lastOperationId')&&_0x543a47['uint32'](0x5a)['string'](_0x54bb1e['lastOperationId']),null!=_0x54bb1e['sessionCreatedAt']&&Object['hasOwnProperty']['call'](_0x54bb1e,'sessionCreatedAt')&&_0x543a47['uint32'](0x62)['string'](_0x54bb1e['sessionCreatedAt']),_0x543a47;},_0x41e095['encodeDelimited']=function(_0x431c22,_0x563201){return this['encode'](_0x431c22,_0x563201)['ldelim']();},_0x41e095['decode']=function(_0x476450,_0x490aaf,_0x19370f){_0x476450 instanceof _0x19f3ea||(_0x476450=_0x19f3ea['create'](_0x476450));for(var _0x2ca907=void 0x0===_0x490aaf?_0x476450['len']:_0x476450['pos']+_0x490aaf,_0x348af7=new _0xefac1b['CollaborativeEditingConnectResponse']();_0x476450['pos']<_0x2ca907;){var _0x4ae08e=_0x476450['uint32']();if(_0x4ae08e===_0x19370f)break;switch(_0x4ae08e>>>0x3){case 0x1:_0x348af7['channel']=_0x476450['string']();break;case 0x2:_0x348af7['offset']=_0x476450['uint32']();break;case 0x3:_0x348af7['version']=_0x476450['uint32']();break;case 0x4:_0x348af7['buffers']&&_0x348af7['buffers']['length']||(_0x348af7['buffers']=[]),_0x348af7['buffers']['push'](_0x476450['bytes']());break;case 0x5:if(_0x348af7['types']&&_0x348af7['types']['length']||(_0x348af7['types']=[]),0x2==(0x7&_0x4ae08e)){for(var _0x1d4033=_0x476450['uint32']()+_0x476450['pos'];_0x476450['pos']<_0x1d4033;)_0x348af7['types']['push'](_0x476450['uint32']());}else _0x348af7['types']['push'](_0x476450['uint32']());break;case 0x7:_0x348af7['metadata']&&_0x348af7['metadata']['length']||(_0x348af7['metadata']=[]),_0x348af7['metadata']['push'](_0xefac1b['OperationMetadataDescriptor']['decode'](_0x476450,_0x476450['uint32']()));break;case 0x8:_0x348af7['initData']=_0x476450['string']();break;case 0x9:_0x348af7['isInitialized']=_0x476450['bool']();break;case 0xa:_0x348af7['sessionId']=_0x476450['string']();break;case 0xb:_0x348af7['lastOperationId']=_0x476450['string']();break;case 0xc:_0x348af7['sessionCreatedAt']=_0x476450['string']();break;default:_0x476450['skipType'](0x7&_0x4ae08e);}}return _0x348af7;},_0x41e095['decodeDelimited']=function(_0x1ee83a){return _0x1ee83a instanceof _0x19f3ea||(_0x1ee83a=new _0x19f3ea(_0x1ee83a)),this['decode'](_0x1ee83a,_0x1ee83a['uint32']());},_0x41e095['verify']=function(_0x22b9ff){if('object'!=typeof _0x22b9ff||null===_0x22b9ff)return'object\x20expected';if(null!=_0x22b9ff['channel']&&_0x22b9ff['hasOwnProperty']('channel')&&!_0x3861b6['isString'](_0x22b9ff['channel']))return'channel:\x20string\x20expected';if(null!=_0x22b9ff['offset']&&_0x22b9ff['hasOwnProperty']('offset')&&!_0x3861b6['isInteger'](_0x22b9ff['offset']))return'offset:\x20integer\x20expected';if(null!=_0x22b9ff['version']&&_0x22b9ff['hasOwnProperty']('version')&&!_0x3861b6['isInteger'](_0x22b9ff['version']))return'version:\x20integer\x20expected';if(null!=_0x22b9ff['buffers']&&_0x22b9ff['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x22b9ff['buffers']))return'buffers:\x20array\x20expected';for(var _0x4084da=0x0;_0x4084da<_0x22b9ff['buffers']['length'];++_0x4084da)if(!(_0x22b9ff['buffers'][_0x4084da]&&'number'==typeof _0x22b9ff['buffers'][_0x4084da]['length']||_0x3861b6['isString'](_0x22b9ff['buffers'][_0x4084da])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x22b9ff['types']&&_0x22b9ff['hasOwnProperty']('types')){if(!Array['isArray'](_0x22b9ff['types']))return'types:\x20array\x20expected';for(_0x4084da=0x0;_0x4084da<_0x22b9ff['types']['length'];++_0x4084da)if(!_0x3861b6['isInteger'](_0x22b9ff['types'][_0x4084da]))return'types:\x20integer[]\x20expected';}if(null!=_0x22b9ff['metadata']&&_0x22b9ff['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x22b9ff['metadata']))return'metadata:\x20array\x20expected';for(_0x4084da=0x0;_0x4084da<_0x22b9ff['metadata']['length'];++_0x4084da){var _0x16a147=_0xefac1b['OperationMetadataDescriptor']['verify'](_0x22b9ff['metadata'][_0x4084da]);if(_0x16a147)return'metadata.'+_0x16a147;}}return null!=_0x22b9ff['initData']&&_0x22b9ff['hasOwnProperty']('initData')&&!_0x3861b6['isString'](_0x22b9ff['initData'])?'initData:\x20string\x20expected':null!=_0x22b9ff['isInitialized']&&_0x22b9ff['hasOwnProperty']('isInitialized')&&'boolean'!=typeof _0x22b9ff['isInitialized']?'isInitialized:\x20boolean\x20expected':null!=_0x22b9ff['sessionId']&&_0x22b9ff['hasOwnProperty']('sessionId')&&!_0x3861b6['isString'](_0x22b9ff['sessionId'])?'sessionId:\x20string\x20expected':null!=_0x22b9ff['lastOperationId']&&_0x22b9ff['hasOwnProperty']('lastOperationId')&&!_0x3861b6['isString'](_0x22b9ff['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x22b9ff['sessionCreatedAt']&&_0x22b9ff['hasOwnProperty']('sessionCreatedAt')&&!_0x3861b6['isString'](_0x22b9ff['sessionCreatedAt'])?'sessionCreatedAt:\x20string\x20expected':null;},_0x41e095['fromObject']=function(_0x5481c6){if(_0x5481c6 instanceof _0xefac1b['CollaborativeEditingConnectResponse'])return _0x5481c6;var _0x1e717d=new _0xefac1b['CollaborativeEditingConnectResponse']();if(null!=_0x5481c6['channel']&&(_0x1e717d['channel']=String(_0x5481c6['channel'])),null!=_0x5481c6['offset']&&(_0x1e717d['offset']=_0x5481c6['offset']>>>0x0),null!=_0x5481c6['version']&&(_0x1e717d['version']=_0x5481c6['version']>>>0x0),_0x5481c6['buffers']){if(!Array['isArray'](_0x5481c6['buffers']))throw TypeError('.CollaborativeEditingConnectResponse.buffers:\x20array\x20expected');_0x1e717d['buffers']=[];for(var _0x584fc9=0x0;_0x584fc9<_0x5481c6['buffers']['length'];++_0x584fc9)'string'==typeof _0x5481c6['buffers'][_0x584fc9]?_0x3861b6['base64']['decode'](_0x5481c6['buffers'][_0x584fc9],_0x1e717d['buffers'][_0x584fc9]=_0x3861b6['newBuffer'](_0x3861b6['base64']['length'](_0x5481c6['buffers'][_0x584fc9])),0x0):_0x5481c6['buffers'][_0x584fc9]['length']>=0x0&&(_0x1e717d['buffers'][_0x584fc9]=_0x5481c6['buffers'][_0x584fc9]);}if(_0x5481c6['types']){if(!Array['isArray'](_0x5481c6['types']))throw TypeError('.CollaborativeEditingConnectResponse.types:\x20array\x20expected');for(_0x1e717d['types']=[],_0x584fc9=0x0;_0x584fc9<_0x5481c6['types']['length'];++_0x584fc9)_0x1e717d['types'][_0x584fc9]=_0x5481c6['types'][_0x584fc9]>>>0x0;}if(_0x5481c6['metadata']){if(!Array['isArray'](_0x5481c6['metadata']))throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20array\x20expected');for(_0x1e717d['metadata']=[],_0x584fc9=0x0;_0x584fc9<_0x5481c6['metadata']['length'];++_0x584fc9){if('object'!=typeof _0x5481c6['metadata'][_0x584fc9])throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20object\x20expected');_0x1e717d['metadata'][_0x584fc9]=_0xefac1b['OperationMetadataDescriptor']['fromObject'](_0x5481c6['metadata'][_0x584fc9]);}}return null!=_0x5481c6['initData']&&(_0x1e717d['initData']=String(_0x5481c6['initData'])),null!=_0x5481c6['isInitialized']&&(_0x1e717d['isInitialized']=Boolean(_0x5481c6['isInitialized'])),null!=_0x5481c6['sessionId']&&(_0x1e717d['sessionId']=String(_0x5481c6['sessionId'])),null!=_0x5481c6['lastOperationId']&&(_0x1e717d['lastOperationId']=String(_0x5481c6['lastOperationId'])),null!=_0x5481c6['sessionCreatedAt']&&(_0x1e717d['sessionCreatedAt']=String(_0x5481c6['sessionCreatedAt'])),_0x1e717d;},_0x41e095['toObject']=function(_0x1f27fa,_0x53491b){_0x53491b||(_0x53491b={});var _0x25b588={};if((_0x53491b['arrays']||_0x53491b['defaults'])&&(_0x25b588['buffers']=[],_0x25b588['types']=[],_0x25b588['metadata']=[]),_0x53491b['defaults']&&(_0x25b588['channel']='',_0x25b588['offset']=0x0,_0x25b588['version']=0x0,_0x25b588['initData']='',_0x25b588['isInitialized']=!0x1,_0x25b588['sessionId']='',_0x25b588['lastOperationId']='',_0x25b588['sessionCreatedAt']=''),null!=_0x1f27fa['channel']&&_0x1f27fa['hasOwnProperty']('channel')&&(_0x25b588['channel']=_0x1f27fa['channel']),null!=_0x1f27fa['offset']&&_0x1f27fa['hasOwnProperty']('offset')&&(_0x25b588['offset']=_0x1f27fa['offset']),null!=_0x1f27fa['version']&&_0x1f27fa['hasOwnProperty']('version')&&(_0x25b588['version']=_0x1f27fa['version']),_0x1f27fa['buffers']&&_0x1f27fa['buffers']['length']){_0x25b588['buffers']=[];for(var _0x9edd14=0x0;_0x9edd14<_0x1f27fa['buffers']['length'];++_0x9edd14)_0x25b588['buffers'][_0x9edd14]=_0x53491b['bytes']===String?_0x3861b6['base64']['encode'](_0x1f27fa['buffers'][_0x9edd14],0x0,_0x1f27fa['buffers'][_0x9edd14]['length']):_0x53491b['bytes']===Array?Array['prototype']['slice']['call'](_0x1f27fa['buffers'][_0x9edd14]):_0x1f27fa['buffers'][_0x9edd14];}if(_0x1f27fa['types']&&_0x1f27fa['types']['length']){for(_0x25b588['types']=[],_0x9edd14=0x0;_0x9edd14<_0x1f27fa['types']['length'];++_0x9edd14)_0x25b588['types'][_0x9edd14]=_0x1f27fa['types'][_0x9edd14];}if(_0x1f27fa['metadata']&&_0x1f27fa['metadata']['length']){for(_0x25b588['metadata']=[],_0x9edd14=0x0;_0x9edd14<_0x1f27fa['metadata']['length'];++_0x9edd14)_0x25b588['metadata'][_0x9edd14]=_0xefac1b['OperationMetadataDescriptor']['toObject'](_0x1f27fa['metadata'][_0x9edd14],_0x53491b);}return null!=_0x1f27fa['initData']&&_0x1f27fa['hasOwnProperty']('initData')&&(_0x25b588['initData']=_0x1f27fa['initData']),null!=_0x1f27fa['isInitialized']&&_0x1f27fa['hasOwnProperty']('isInitialized')&&(_0x25b588['isInitialized']=_0x1f27fa['isInitialized']),null!=_0x1f27fa['sessionId']&&_0x1f27fa['hasOwnProperty']('sessionId')&&(_0x25b588['sessionId']=_0x1f27fa['sessionId']),null!=_0x1f27fa['lastOperationId']&&_0x1f27fa['hasOwnProperty']('lastOperationId')&&(_0x25b588['lastOperationId']=_0x1f27fa['lastOperationId']),null!=_0x1f27fa['sessionCreatedAt']&&_0x1f27fa['hasOwnProperty']('sessionCreatedAt')&&(_0x25b588['sessionCreatedAt']=_0x1f27fa['sessionCreatedAt']),_0x25b588;},_0x41e095['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x41e095['getTypeUrl']=function(_0xf407dd){return void 0x0===_0xf407dd&&(_0xf407dd='type.googleapis.com'),_0xf407dd+'/CollaborativeEditingConnectResponse';},_0x41e095;}()),_0xefac1b['GetDocumentDetailsMessage']=(function(){function _0xb1ff84(_0x381490){if(_0x381490){for(var _0x42a994=Object['keys'](_0x381490),_0x482006=0x0;_0x482006<_0x42a994['length'];++_0x482006)null!=_0x381490[_0x42a994[_0x482006]]&&(this[_0x42a994[_0x482006]]=_0x381490[_0x42a994[_0x482006]]);}}return _0xb1ff84['prototype']['documentId']='',_0xb1ff84['prototype']['environmentId']='',_0xb1ff84['create']=function(_0x4a2f20){return new _0xb1ff84(_0x4a2f20);},_0xb1ff84['encode']=function(_0x312ba5,_0x28230a){return _0x28230a||(_0x28230a=_0x3cb188['create']()),null!=_0x312ba5['documentId']&&Object['hasOwnProperty']['call'](_0x312ba5,'documentId')&&_0x28230a['uint32'](0xa)['string'](_0x312ba5['documentId']),null!=_0x312ba5['environmentId']&&Object['hasOwnProperty']['call'](_0x312ba5,'environmentId')&&_0x28230a['uint32'](0x12)['string'](_0x312ba5['environmentId']),_0x28230a;},_0xb1ff84['encodeDelimited']=function(_0x506110,_0x3c36e9){return this['encode'](_0x506110,_0x3c36e9)['ldelim']();},_0xb1ff84['decode']=function(_0x249ce9,_0xc0cad,_0x26657f){_0x249ce9 instanceof _0x19f3ea||(_0x249ce9=_0x19f3ea['create'](_0x249ce9));for(var _0x22cd84=void 0x0===_0xc0cad?_0x249ce9['len']:_0x249ce9['pos']+_0xc0cad,_0x4dfac2=new _0xefac1b['GetDocumentDetailsMessage']();_0x249ce9['pos']<_0x22cd84;){var _0x5d72ed=_0x249ce9['uint32']();if(_0x5d72ed===_0x26657f)break;switch(_0x5d72ed>>>0x3){case 0x1:_0x4dfac2['documentId']=_0x249ce9['string']();break;case 0x2:_0x4dfac2['environmentId']=_0x249ce9['string']();break;default:_0x249ce9['skipType'](0x7&_0x5d72ed);}}return _0x4dfac2;},_0xb1ff84['decodeDelimited']=function(_0x1d5af9){return _0x1d5af9 instanceof _0x19f3ea||(_0x1d5af9=new _0x19f3ea(_0x1d5af9)),this['decode'](_0x1d5af9,_0x1d5af9['uint32']());},_0xb1ff84['verify']=function(_0x5e277d){return'object'!=typeof _0x5e277d||null===_0x5e277d?'object\x20expected':null!=_0x5e277d['documentId']&&_0x5e277d['hasOwnProperty']('documentId')&&!_0x3861b6['isString'](_0x5e277d['documentId'])?'documentId:\x20string\x20expected':null!=_0x5e277d['environmentId']&&_0x5e277d['hasOwnProperty']('environmentId')&&!_0x3861b6['isString'](_0x5e277d['environmentId'])?'environmentId:\x20string\x20expected':null;},_0xb1ff84['fromObject']=function(_0x2430fc){if(_0x2430fc instanceof _0xefac1b['GetDocumentDetailsMessage'])return _0x2430fc;var _0x17c4f0=new _0xefac1b['GetDocumentDetailsMessage']();return null!=_0x2430fc['documentId']&&(_0x17c4f0['documentId']=String(_0x2430fc['documentId'])),null!=_0x2430fc['environmentId']&&(_0x17c4f0['environmentId']=String(_0x2430fc['environmentId'])),_0x17c4f0;},_0xb1ff84['toObject']=function(_0xafe497,_0xdcb24b){_0xdcb24b||(_0xdcb24b={});var _0x4b5f1a={};return _0xdcb24b['defaults']&&(_0x4b5f1a['documentId']='',_0x4b5f1a['environmentId']=''),null!=_0xafe497['documentId']&&_0xafe497['hasOwnProperty']('documentId')&&(_0x4b5f1a['documentId']=_0xafe497['documentId']),null!=_0xafe497['environmentId']&&_0xafe497['hasOwnProperty']('environmentId')&&(_0x4b5f1a['environmentId']=_0xafe497['environmentId']),_0x4b5f1a;},_0xb1ff84['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xb1ff84['getTypeUrl']=function(_0x146b93){return void 0x0===_0x146b93&&(_0x146b93='type.googleapis.com'),_0x146b93+'/GetDocumentDetailsMessage';},_0xb1ff84;}()),_0xefac1b['CollaborativeEditingUpdateMessage']=(function(){function _0x47c928(_0x124da6){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x124da6){for(var _0x86cd1c=Object['keys'](_0x124da6),_0x3eebc4=0x0;_0x3eebc4<_0x86cd1c['length'];++_0x3eebc4)null!=_0x124da6[_0x86cd1c[_0x3eebc4]]&&(this[_0x86cd1c[_0x3eebc4]]=_0x124da6[_0x86cd1c[_0x3eebc4]]);}}return _0x47c928['prototype']['id']='',_0x47c928['prototype']['baseVersion']=0x0,_0x47c928['prototype']['buffers']=_0x3861b6['emptyArray'],_0x47c928['prototype']['types']=_0x3861b6['emptyArray'],_0x47c928['prototype']['metadata']=_0x3861b6['emptyArray'],_0x47c928['prototype']['lastOperationId']='',_0x47c928['create']=function(_0x4f1ee5){return new _0x47c928(_0x4f1ee5);},_0x47c928['encode']=function(_0x33e92a,_0x108d7f){if(_0x108d7f||(_0x108d7f=_0x3cb188['create']()),null!=_0x33e92a['id']&&Object['hasOwnProperty']['call'](_0x33e92a,'id')&&_0x108d7f['uint32'](0xa)['string'](_0x33e92a['id']),null!=_0x33e92a['baseVersion']&&Object['hasOwnProperty']['call'](_0x33e92a,'baseVersion')&&_0x108d7f['uint32'](0x10)['uint32'](_0x33e92a['baseVersion']),null!=_0x33e92a['buffers']&&_0x33e92a['buffers']['length']){for(var _0x1b57d9=0x0;_0x1b57d9<_0x33e92a['buffers']['length'];++_0x1b57d9)_0x108d7f['uint32'](0x1a)['bytes'](_0x33e92a['buffers'][_0x1b57d9]);}if(null!=_0x33e92a['types']&&_0x33e92a['types']['length']){for(_0x108d7f['uint32'](0x22)['fork'](),_0x1b57d9=0x0;_0x1b57d9<_0x33e92a['types']['length'];++_0x1b57d9)_0x108d7f['uint32'](_0x33e92a['types'][_0x1b57d9]);_0x108d7f['ldelim']();}if(null!=_0x33e92a['metadata']&&_0x33e92a['metadata']['length']){for(_0x1b57d9=0x0;_0x1b57d9<_0x33e92a['metadata']['length'];++_0x1b57d9)_0xefac1b['OperationMetadataDescriptor']['encode'](_0x33e92a['metadata'][_0x1b57d9],_0x108d7f['uint32'](0x32)['fork']())['ldelim']();}return null!=_0x33e92a['lastOperationId']&&Object['hasOwnProperty']['call'](_0x33e92a,'lastOperationId')&&_0x108d7f['uint32'](0x3a)['string'](_0x33e92a['lastOperationId']),_0x108d7f;},_0x47c928['encodeDelimited']=function(_0x199c7e,_0x4873e8){return this['encode'](_0x199c7e,_0x4873e8)['ldelim']();},_0x47c928['decode']=function(_0x354c13,_0x2fc0cb,_0x133278){_0x354c13 instanceof _0x19f3ea||(_0x354c13=_0x19f3ea['create'](_0x354c13));for(var _0x24c4ce=void 0x0===_0x2fc0cb?_0x354c13['len']:_0x354c13['pos']+_0x2fc0cb,_0x4c27bc=new _0xefac1b['CollaborativeEditingUpdateMessage']();_0x354c13['pos']<_0x24c4ce;){var _0x16b927=_0x354c13['uint32']();if(_0x16b927===_0x133278)break;switch(_0x16b927>>>0x3){case 0x1:_0x4c27bc['id']=_0x354c13['string']();break;case 0x2:_0x4c27bc['baseVersion']=_0x354c13['uint32']();break;case 0x3:_0x4c27bc['buffers']&&_0x4c27bc['buffers']['length']||(_0x4c27bc['buffers']=[]),_0x4c27bc['buffers']['push'](_0x354c13['bytes']());break;case 0x4:if(_0x4c27bc['types']&&_0x4c27bc['types']['length']||(_0x4c27bc['types']=[]),0x2==(0x7&_0x16b927)){for(var _0x3b5ced=_0x354c13['uint32']()+_0x354c13['pos'];_0x354c13['pos']<_0x3b5ced;)_0x4c27bc['types']['push'](_0x354c13['uint32']());}else _0x4c27bc['types']['push'](_0x354c13['uint32']());break;case 0x6:_0x4c27bc['metadata']&&_0x4c27bc['metadata']['length']||(_0x4c27bc['metadata']=[]),_0x4c27bc['metadata']['push'](_0xefac1b['OperationMetadataDescriptor']['decode'](_0x354c13,_0x354c13['uint32']()));break;case 0x7:_0x4c27bc['lastOperationId']=_0x354c13['string']();break;default:_0x354c13['skipType'](0x7&_0x16b927);}}return _0x4c27bc;},_0x47c928['decodeDelimited']=function(_0x332b0c){return _0x332b0c instanceof _0x19f3ea||(_0x332b0c=new _0x19f3ea(_0x332b0c)),this['decode'](_0x332b0c,_0x332b0c['uint32']());},_0x47c928['verify']=function(_0x467bb3){if('object'!=typeof _0x467bb3||null===_0x467bb3)return'object\x20expected';if(null!=_0x467bb3['id']&&_0x467bb3['hasOwnProperty']('id')&&!_0x3861b6['isString'](_0x467bb3['id']))return'id:\x20string\x20expected';if(null!=_0x467bb3['baseVersion']&&_0x467bb3['hasOwnProperty']('baseVersion')&&!_0x3861b6['isInteger'](_0x467bb3['baseVersion']))return'baseVersion:\x20integer\x20expected';if(null!=_0x467bb3['buffers']&&_0x467bb3['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x467bb3['buffers']))return'buffers:\x20array\x20expected';for(var _0x4b1f1b=0x0;_0x4b1f1b<_0x467bb3['buffers']['length'];++_0x4b1f1b)if(!(_0x467bb3['buffers'][_0x4b1f1b]&&'number'==typeof _0x467bb3['buffers'][_0x4b1f1b]['length']||_0x3861b6['isString'](_0x467bb3['buffers'][_0x4b1f1b])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x467bb3['types']&&_0x467bb3['hasOwnProperty']('types')){if(!Array['isArray'](_0x467bb3['types']))return'types:\x20array\x20expected';for(_0x4b1f1b=0x0;_0x4b1f1b<_0x467bb3['types']['length'];++_0x4b1f1b)if(!_0x3861b6['isInteger'](_0x467bb3['types'][_0x4b1f1b]))return'types:\x20integer[]\x20expected';}if(null!=_0x467bb3['metadata']&&_0x467bb3['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x467bb3['metadata']))return'metadata:\x20array\x20expected';for(_0x4b1f1b=0x0;_0x4b1f1b<_0x467bb3['metadata']['length'];++_0x4b1f1b){var _0x100e83=_0xefac1b['OperationMetadataDescriptor']['verify'](_0x467bb3['metadata'][_0x4b1f1b]);if(_0x100e83)return'metadata.'+_0x100e83;}}return null!=_0x467bb3['lastOperationId']&&_0x467bb3['hasOwnProperty']('lastOperationId')&&!_0x3861b6['isString'](_0x467bb3['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},_0x47c928['fromObject']=function(_0x184c1b){if(_0x184c1b instanceof _0xefac1b['CollaborativeEditingUpdateMessage'])return _0x184c1b;var _0x9cd37=new _0xefac1b['CollaborativeEditingUpdateMessage']();if(null!=_0x184c1b['id']&&(_0x9cd37['id']=String(_0x184c1b['id'])),null!=_0x184c1b['baseVersion']&&(_0x9cd37['baseVersion']=_0x184c1b['baseVersion']>>>0x0),_0x184c1b['buffers']){if(!Array['isArray'](_0x184c1b['buffers']))throw TypeError('.CollaborativeEditingUpdateMessage.buffers:\x20array\x20expected');_0x9cd37['buffers']=[];for(var _0x30d811=0x0;_0x30d811<_0x184c1b['buffers']['length'];++_0x30d811)'string'==typeof _0x184c1b['buffers'][_0x30d811]?_0x3861b6['base64']['decode'](_0x184c1b['buffers'][_0x30d811],_0x9cd37['buffers'][_0x30d811]=_0x3861b6['newBuffer'](_0x3861b6['base64']['length'](_0x184c1b['buffers'][_0x30d811])),0x0):_0x184c1b['buffers'][_0x30d811]['length']>=0x0&&(_0x9cd37['buffers'][_0x30d811]=_0x184c1b['buffers'][_0x30d811]);}if(_0x184c1b['types']){if(!Array['isArray'](_0x184c1b['types']))throw TypeError('.CollaborativeEditingUpdateMessage.types:\x20array\x20expected');for(_0x9cd37['types']=[],_0x30d811=0x0;_0x30d811<_0x184c1b['types']['length'];++_0x30d811)_0x9cd37['types'][_0x30d811]=_0x184c1b['types'][_0x30d811]>>>0x0;}if(_0x184c1b['metadata']){if(!Array['isArray'](_0x184c1b['metadata']))throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20array\x20expected');for(_0x9cd37['metadata']=[],_0x30d811=0x0;_0x30d811<_0x184c1b['metadata']['length'];++_0x30d811){if('object'!=typeof _0x184c1b['metadata'][_0x30d811])throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20object\x20expected');_0x9cd37['metadata'][_0x30d811]=_0xefac1b['OperationMetadataDescriptor']['fromObject'](_0x184c1b['metadata'][_0x30d811]);}}return null!=_0x184c1b['lastOperationId']&&(_0x9cd37['lastOperationId']=String(_0x184c1b['lastOperationId'])),_0x9cd37;},_0x47c928['toObject']=function(_0x2b2419,_0x3a1d9c){_0x3a1d9c||(_0x3a1d9c={});var _0x14d0ca={};if((_0x3a1d9c['arrays']||_0x3a1d9c['defaults'])&&(_0x14d0ca['buffers']=[],_0x14d0ca['types']=[],_0x14d0ca['metadata']=[]),_0x3a1d9c['defaults']&&(_0x14d0ca['id']='',_0x14d0ca['baseVersion']=0x0,_0x14d0ca['lastOperationId']=''),null!=_0x2b2419['id']&&_0x2b2419['hasOwnProperty']('id')&&(_0x14d0ca['id']=_0x2b2419['id']),null!=_0x2b2419['baseVersion']&&_0x2b2419['hasOwnProperty']('baseVersion')&&(_0x14d0ca['baseVersion']=_0x2b2419['baseVersion']),_0x2b2419['buffers']&&_0x2b2419['buffers']['length']){_0x14d0ca['buffers']=[];for(var _0x17250b=0x0;_0x17250b<_0x2b2419['buffers']['length'];++_0x17250b)_0x14d0ca['buffers'][_0x17250b]=_0x3a1d9c['bytes']===String?_0x3861b6['base64']['encode'](_0x2b2419['buffers'][_0x17250b],0x0,_0x2b2419['buffers'][_0x17250b]['length']):_0x3a1d9c['bytes']===Array?Array['prototype']['slice']['call'](_0x2b2419['buffers'][_0x17250b]):_0x2b2419['buffers'][_0x17250b];}if(_0x2b2419['types']&&_0x2b2419['types']['length']){for(_0x14d0ca['types']=[],_0x17250b=0x0;_0x17250b<_0x2b2419['types']['length'];++_0x17250b)_0x14d0ca['types'][_0x17250b]=_0x2b2419['types'][_0x17250b];}if(_0x2b2419['metadata']&&_0x2b2419['metadata']['length']){for(_0x14d0ca['metadata']=[],_0x17250b=0x0;_0x17250b<_0x2b2419['metadata']['length'];++_0x17250b)_0x14d0ca['metadata'][_0x17250b]=_0xefac1b['OperationMetadataDescriptor']['toObject'](_0x2b2419['metadata'][_0x17250b],_0x3a1d9c);}return null!=_0x2b2419['lastOperationId']&&_0x2b2419['hasOwnProperty']('lastOperationId')&&(_0x14d0ca['lastOperationId']=_0x2b2419['lastOperationId']),_0x14d0ca;},_0x47c928['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x47c928['getTypeUrl']=function(_0x19199f){return void 0x0===_0x19199f&&(_0x19199f='type.googleapis.com'),_0x19199f+'/CollaborativeEditingUpdateMessage';},_0x47c928;}()),_0xefac1b['CollaborativeEditingReconnectMessage']=(function(){function _0x3c272d(_0x45c0f1){if(_0x45c0f1){for(var _0x1ff197=Object['keys'](_0x45c0f1),_0x554836=0x0;_0x554836<_0x1ff197['length'];++_0x554836)null!=_0x45c0f1[_0x1ff197[_0x554836]]&&(this[_0x1ff197[_0x554836]]=_0x45c0f1[_0x1ff197[_0x554836]]);}}return _0x3c272d['prototype']['id']='',_0x3c272d['prototype']['bundleVersion']='',_0x3c272d['prototype']['lastKnowVersion']=0x0,_0x3c272d['create']=function(_0x177679){return new _0x3c272d(_0x177679);},_0x3c272d['encode']=function(_0x32d6de,_0xcb8eec){return _0xcb8eec||(_0xcb8eec=_0x3cb188['create']()),null!=_0x32d6de['id']&&Object['hasOwnProperty']['call'](_0x32d6de,'id')&&_0xcb8eec['uint32'](0xa)['string'](_0x32d6de['id']),null!=_0x32d6de['bundleVersion']&&Object['hasOwnProperty']['call'](_0x32d6de,'bundleVersion')&&_0xcb8eec['uint32'](0x12)['string'](_0x32d6de['bundleVersion']),null!=_0x32d6de['lastKnowVersion']&&Object['hasOwnProperty']['call'](_0x32d6de,'lastKnowVersion')&&_0xcb8eec['uint32'](0x18)['uint32'](_0x32d6de['lastKnowVersion']),_0xcb8eec;},_0x3c272d['encodeDelimited']=function(_0x185fbc,_0x48f8d6){return this['encode'](_0x185fbc,_0x48f8d6)['ldelim']();},_0x3c272d['decode']=function(_0x595afd,_0x237e5e,_0x32fc8e){_0x595afd instanceof _0x19f3ea||(_0x595afd=_0x19f3ea['create'](_0x595afd));for(var _0x594c81=void 0x0===_0x237e5e?_0x595afd['len']:_0x595afd['pos']+_0x237e5e,_0xdb19be=new _0xefac1b['CollaborativeEditingReconnectMessage']();_0x595afd['pos']<_0x594c81;){var _0x3dcf55=_0x595afd['uint32']();if(_0x3dcf55===_0x32fc8e)break;switch(_0x3dcf55>>>0x3){case 0x1:_0xdb19be['id']=_0x595afd['string']();break;case 0x2:_0xdb19be['bundleVersion']=_0x595afd['string']();break;case 0x3:_0xdb19be['lastKnowVersion']=_0x595afd['uint32']();break;default:_0x595afd['skipType'](0x7&_0x3dcf55);}}return _0xdb19be;},_0x3c272d['decodeDelimited']=function(_0x27ad4b){return _0x27ad4b instanceof _0x19f3ea||(_0x27ad4b=new _0x19f3ea(_0x27ad4b)),this['decode'](_0x27ad4b,_0x27ad4b['uint32']());},_0x3c272d['verify']=function(_0x465a00){return'object'!=typeof _0x465a00||null===_0x465a00?'object\x20expected':null!=_0x465a00['id']&&_0x465a00['hasOwnProperty']('id')&&!_0x3861b6['isString'](_0x465a00['id'])?'id:\x20string\x20expected':null!=_0x465a00['bundleVersion']&&_0x465a00['hasOwnProperty']('bundleVersion')&&!_0x3861b6['isString'](_0x465a00['bundleVersion'])?'bundleVersion:\x20string\x20expected':null!=_0x465a00['lastKnowVersion']&&_0x465a00['hasOwnProperty']('lastKnowVersion')&&!_0x3861b6['isInteger'](_0x465a00['lastKnowVersion'])?'lastKnowVersion:\x20integer\x20expected':null;},_0x3c272d['fromObject']=function(_0x59e0ac){if(_0x59e0ac instanceof _0xefac1b['CollaborativeEditingReconnectMessage'])return _0x59e0ac;var _0x5926e2=new _0xefac1b['CollaborativeEditingReconnectMessage']();return null!=_0x59e0ac['id']&&(_0x5926e2['id']=String(_0x59e0ac['id'])),null!=_0x59e0ac['bundleVersion']&&(_0x5926e2['bundleVersion']=String(_0x59e0ac['bundleVersion'])),null!=_0x59e0ac['lastKnowVersion']&&(_0x5926e2['lastKnowVersion']=_0x59e0ac['lastKnowVersion']>>>0x0),_0x5926e2;},_0x3c272d['toObject']=function(_0x27abfc,_0x5bb5ac){_0x5bb5ac||(_0x5bb5ac={});var _0x5564e5={};return _0x5bb5ac['defaults']&&(_0x5564e5['id']='',_0x5564e5['bundleVersion']='',_0x5564e5['lastKnowVersion']=0x0),null!=_0x27abfc['id']&&_0x27abfc['hasOwnProperty']('id')&&(_0x5564e5['id']=_0x27abfc['id']),null!=_0x27abfc['bundleVersion']&&_0x27abfc['hasOwnProperty']('bundleVersion')&&(_0x5564e5['bundleVersion']=_0x27abfc['bundleVersion']),null!=_0x27abfc['lastKnowVersion']&&_0x27abfc['hasOwnProperty']('lastKnowVersion')&&(_0x5564e5['lastKnowVersion']=_0x27abfc['lastKnowVersion']),_0x5564e5;},_0x3c272d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3c272d['getTypeUrl']=function(_0x46d8c6){return void 0x0===_0x46d8c6&&(_0x46d8c6='type.googleapis.com'),_0x46d8c6+'/CollaborativeEditingReconnectMessage';},_0x3c272d;}()),_0xefac1b['CollaborativeEditingConnectMessage']=(function(){function _0x55e7b6(_0x440bc5){if(this['buffers']=[],this['types']=[],_0x440bc5){for(var _0x22a2bc=Object['keys'](_0x440bc5),_0x5e6de6=0x0;_0x5e6de6<_0x22a2bc['length'];++_0x5e6de6)null!=_0x440bc5[_0x22a2bc[_0x5e6de6]]&&(this[_0x22a2bc[_0x5e6de6]]=_0x440bc5[_0x22a2bc[_0x5e6de6]]);}}return _0x55e7b6['prototype']['id']='',_0x55e7b6['prototype']['bundleVersion']='',_0x55e7b6['prototype']['buffers']=_0x3861b6['emptyArray'],_0x55e7b6['prototype']['types']=_0x3861b6['emptyArray'],_0x55e7b6['prototype']['lastOperationId']='',_0x55e7b6['create']=function(_0x43bf6c){return new _0x55e7b6(_0x43bf6c);},_0x55e7b6['encode']=function(_0x51e796,_0xffd4f0){if(_0xffd4f0||(_0xffd4f0=_0x3cb188['create']()),null!=_0x51e796['id']&&Object['hasOwnProperty']['call'](_0x51e796,'id')&&_0xffd4f0['uint32'](0xa)['string'](_0x51e796['id']),null!=_0x51e796['bundleVersion']&&Object['hasOwnProperty']['call'](_0x51e796,'bundleVersion')&&_0xffd4f0['uint32'](0x12)['string'](_0x51e796['bundleVersion']),null!=_0x51e796['buffers']&&_0x51e796['buffers']['length']){for(var _0x2c9286=0x0;_0x2c9286<_0x51e796['buffers']['length'];++_0x2c9286)_0xffd4f0['uint32'](0x1a)['bytes'](_0x51e796['buffers'][_0x2c9286]);}if(null!=_0x51e796['types']&&_0x51e796['types']['length']){for(_0xffd4f0['uint32'](0x22)['fork'](),_0x2c9286=0x0;_0x2c9286<_0x51e796['types']['length'];++_0x2c9286)_0xffd4f0['uint32'](_0x51e796['types'][_0x2c9286]);_0xffd4f0['ldelim']();}return null!=_0x51e796['lastOperationId']&&Object['hasOwnProperty']['call'](_0x51e796,'lastOperationId')&&_0xffd4f0['uint32'](0x2a)['string'](_0x51e796['lastOperationId']),_0xffd4f0;},_0x55e7b6['encodeDelimited']=function(_0x2d2c53,_0x2f7247){return this['encode'](_0x2d2c53,_0x2f7247)['ldelim']();},_0x55e7b6['decode']=function(_0x43cab6,_0x36abf2,_0x28e416){_0x43cab6 instanceof _0x19f3ea||(_0x43cab6=_0x19f3ea['create'](_0x43cab6));for(var _0x413f77=void 0x0===_0x36abf2?_0x43cab6['len']:_0x43cab6['pos']+_0x36abf2,_0x15e5fd=new _0xefac1b['CollaborativeEditingConnectMessage']();_0x43cab6['pos']<_0x413f77;){var _0x42cf5f=_0x43cab6['uint32']();if(_0x42cf5f===_0x28e416)break;switch(_0x42cf5f>>>0x3){case 0x1:_0x15e5fd['id']=_0x43cab6['string']();break;case 0x2:_0x15e5fd['bundleVersion']=_0x43cab6['string']();break;case 0x3:_0x15e5fd['buffers']&&_0x15e5fd['buffers']['length']||(_0x15e5fd['buffers']=[]),_0x15e5fd['buffers']['push'](_0x43cab6['bytes']());break;case 0x4:if(_0x15e5fd['types']&&_0x15e5fd['types']['length']||(_0x15e5fd['types']=[]),0x2==(0x7&_0x42cf5f)){for(var _0x3262ef=_0x43cab6['uint32']()+_0x43cab6['pos'];_0x43cab6['pos']<_0x3262ef;)_0x15e5fd['types']['push'](_0x43cab6['uint32']());}else _0x15e5fd['types']['push'](_0x43cab6['uint32']());break;case 0x5:_0x15e5fd['lastOperationId']=_0x43cab6['string']();break;default:_0x43cab6['skipType'](0x7&_0x42cf5f);}}return _0x15e5fd;},_0x55e7b6['decodeDelimited']=function(_0x4232d6){return _0x4232d6 instanceof _0x19f3ea||(_0x4232d6=new _0x19f3ea(_0x4232d6)),this['decode'](_0x4232d6,_0x4232d6['uint32']());},_0x55e7b6['verify']=function(_0x51edaa){if('object'!=typeof _0x51edaa||null===_0x51edaa)return'object\x20expected';if(null!=_0x51edaa['id']&&_0x51edaa['hasOwnProperty']('id')&&!_0x3861b6['isString'](_0x51edaa['id']))return'id:\x20string\x20expected';if(null!=_0x51edaa['bundleVersion']&&_0x51edaa['hasOwnProperty']('bundleVersion')&&!_0x3861b6['isString'](_0x51edaa['bundleVersion']))return'bundleVersion:\x20string\x20expected';if(null!=_0x51edaa['buffers']&&_0x51edaa['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x51edaa['buffers']))return'buffers:\x20array\x20expected';for(var _0x595ac9=0x0;_0x595ac9<_0x51edaa['buffers']['length'];++_0x595ac9)if(!(_0x51edaa['buffers'][_0x595ac9]&&'number'==typeof _0x51edaa['buffers'][_0x595ac9]['length']||_0x3861b6['isString'](_0x51edaa['buffers'][_0x595ac9])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x51edaa['types']&&_0x51edaa['hasOwnProperty']('types')){if(!Array['isArray'](_0x51edaa['types']))return'types:\x20array\x20expected';for(_0x595ac9=0x0;_0x595ac9<_0x51edaa['types']['length'];++_0x595ac9)if(!_0x3861b6['isInteger'](_0x51edaa['types'][_0x595ac9]))return'types:\x20integer[]\x20expected';}return null!=_0x51edaa['lastOperationId']&&_0x51edaa['hasOwnProperty']('lastOperationId')&&!_0x3861b6['isString'](_0x51edaa['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},_0x55e7b6['fromObject']=function(_0xe3b794){if(_0xe3b794 instanceof _0xefac1b['CollaborativeEditingConnectMessage'])return _0xe3b794;var _0x25d900=new _0xefac1b['CollaborativeEditingConnectMessage']();if(null!=_0xe3b794['id']&&(_0x25d900['id']=String(_0xe3b794['id'])),null!=_0xe3b794['bundleVersion']&&(_0x25d900['bundleVersion']=String(_0xe3b794['bundleVersion'])),_0xe3b794['buffers']){if(!Array['isArray'](_0xe3b794['buffers']))throw TypeError('.CollaborativeEditingConnectMessage.buffers:\x20array\x20expected');_0x25d900['buffers']=[];for(var _0x1c4209=0x0;_0x1c4209<_0xe3b794['buffers']['length'];++_0x1c4209)'string'==typeof _0xe3b794['buffers'][_0x1c4209]?_0x3861b6['base64']['decode'](_0xe3b794['buffers'][_0x1c4209],_0x25d900['buffers'][_0x1c4209]=_0x3861b6['newBuffer'](_0x3861b6['base64']['length'](_0xe3b794['buffers'][_0x1c4209])),0x0):_0xe3b794['buffers'][_0x1c4209]['length']>=0x0&&(_0x25d900['buffers'][_0x1c4209]=_0xe3b794['buffers'][_0x1c4209]);}if(_0xe3b794['types']){if(!Array['isArray'](_0xe3b794['types']))throw TypeError('.CollaborativeEditingConnectMessage.types:\x20array\x20expected');for(_0x25d900['types']=[],_0x1c4209=0x0;_0x1c4209<_0xe3b794['types']['length'];++_0x1c4209)_0x25d900['types'][_0x1c4209]=_0xe3b794['types'][_0x1c4209]>>>0x0;}return null!=_0xe3b794['lastOperationId']&&(_0x25d900['lastOperationId']=String(_0xe3b794['lastOperationId'])),_0x25d900;},_0x55e7b6['toObject']=function(_0x2daba8,_0x3499cd){_0x3499cd||(_0x3499cd={});var _0xb1c62a={};if((_0x3499cd['arrays']||_0x3499cd['defaults'])&&(_0xb1c62a['buffers']=[],_0xb1c62a['types']=[]),_0x3499cd['defaults']&&(_0xb1c62a['id']='',_0xb1c62a['bundleVersion']='',_0xb1c62a['lastOperationId']=''),null!=_0x2daba8['id']&&_0x2daba8['hasOwnProperty']('id')&&(_0xb1c62a['id']=_0x2daba8['id']),null!=_0x2daba8['bundleVersion']&&_0x2daba8['hasOwnProperty']('bundleVersion')&&(_0xb1c62a['bundleVersion']=_0x2daba8['bundleVersion']),_0x2daba8['buffers']&&_0x2daba8['buffers']['length']){_0xb1c62a['buffers']=[];for(var _0x2f3fc9=0x0;_0x2f3fc9<_0x2daba8['buffers']['length'];++_0x2f3fc9)_0xb1c62a['buffers'][_0x2f3fc9]=_0x3499cd['bytes']===String?_0x3861b6['base64']['encode'](_0x2daba8['buffers'][_0x2f3fc9],0x0,_0x2daba8['buffers'][_0x2f3fc9]['length']):_0x3499cd['bytes']===Array?Array['prototype']['slice']['call'](_0x2daba8['buffers'][_0x2f3fc9]):_0x2daba8['buffers'][_0x2f3fc9];}if(_0x2daba8['types']&&_0x2daba8['types']['length']){for(_0xb1c62a['types']=[],_0x2f3fc9=0x0;_0x2f3fc9<_0x2daba8['types']['length'];++_0x2f3fc9)_0xb1c62a['types'][_0x2f3fc9]=_0x2daba8['types'][_0x2f3fc9];}return null!=_0x2daba8['lastOperationId']&&_0x2daba8['hasOwnProperty']('lastOperationId')&&(_0xb1c62a['lastOperationId']=_0x2daba8['lastOperationId']),_0xb1c62a;},_0x55e7b6['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x55e7b6['getTypeUrl']=function(_0x2f875b){return void 0x0===_0x2f875b&&(_0x2f875b='type.googleapis.com'),_0x2f875b+'/CollaborativeEditingConnectMessage';},_0x55e7b6;}()),_0xefac1b['OperationMetadataDescriptor']=(function(){function _0x2d949e(_0x595ea2){if(_0x595ea2){for(var _0x53e775=Object['keys'](_0x595ea2),_0x4cd600=0x0;_0x4cd600<_0x53e775['length'];++_0x4cd600)null!=_0x595ea2[_0x53e775[_0x4cd600]]&&(this[_0x53e775[_0x4cd600]]=_0x595ea2[_0x53e775[_0x4cd600]]);}}return _0x2d949e['prototype']['userId']='',_0x2d949e['prototype']['type']='',_0x2d949e['prototype']['createdAt']='',_0x2d949e['create']=function(_0x11c432){return new _0x2d949e(_0x11c432);},_0x2d949e['encode']=function(_0x2173e3,_0x1e0fd8){return _0x1e0fd8||(_0x1e0fd8=_0x3cb188['create']()),null!=_0x2173e3['userId']&&Object['hasOwnProperty']['call'](_0x2173e3,'userId')&&_0x1e0fd8['uint32'](0xa)['string'](_0x2173e3['userId']),null!=_0x2173e3['type']&&Object['hasOwnProperty']['call'](_0x2173e3,'type')&&_0x1e0fd8['uint32'](0x12)['string'](_0x2173e3['type']),null!=_0x2173e3['createdAt']&&Object['hasOwnProperty']['call'](_0x2173e3,'createdAt')&&_0x1e0fd8['uint32'](0x1a)['string'](_0x2173e3['createdAt']),_0x1e0fd8;},_0x2d949e['encodeDelimited']=function(_0xc69eb2,_0x107fcc){return this['encode'](_0xc69eb2,_0x107fcc)['ldelim']();},_0x2d949e['decode']=function(_0x191d1c,_0x57ee79,_0x4b340a){_0x191d1c instanceof _0x19f3ea||(_0x191d1c=_0x19f3ea['create'](_0x191d1c));for(var _0x54e975=void 0x0===_0x57ee79?_0x191d1c['len']:_0x191d1c['pos']+_0x57ee79,_0x5021b4=new _0xefac1b['OperationMetadataDescriptor']();_0x191d1c['pos']<_0x54e975;){var _0x1ffb80=_0x191d1c['uint32']();if(_0x1ffb80===_0x4b340a)break;switch(_0x1ffb80>>>0x3){case 0x1:_0x5021b4['userId']=_0x191d1c['string']();break;case 0x2:_0x5021b4['type']=_0x191d1c['string']();break;case 0x3:_0x5021b4['createdAt']=_0x191d1c['string']();break;default:_0x191d1c['skipType'](0x7&_0x1ffb80);}}return _0x5021b4;},_0x2d949e['decodeDelimited']=function(_0x250425){return _0x250425 instanceof _0x19f3ea||(_0x250425=new _0x19f3ea(_0x250425)),this['decode'](_0x250425,_0x250425['uint32']());},_0x2d949e['verify']=function(_0x225394){return'object'!=typeof _0x225394||null===_0x225394?'object\x20expected':null!=_0x225394['userId']&&_0x225394['hasOwnProperty']('userId')&&!_0x3861b6['isString'](_0x225394['userId'])?'userId:\x20string\x20expected':null!=_0x225394['type']&&_0x225394['hasOwnProperty']('type')&&!_0x3861b6['isString'](_0x225394['type'])?'type:\x20string\x20expected':null!=_0x225394['createdAt']&&_0x225394['hasOwnProperty']('createdAt')&&!_0x3861b6['isString'](_0x225394['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x2d949e['fromObject']=function(_0x45a8fb){if(_0x45a8fb instanceof _0xefac1b['OperationMetadataDescriptor'])return _0x45a8fb;var _0x37fd0d=new _0xefac1b['OperationMetadataDescriptor']();return null!=_0x45a8fb['userId']&&(_0x37fd0d['userId']=String(_0x45a8fb['userId'])),null!=_0x45a8fb['type']&&(_0x37fd0d['type']=String(_0x45a8fb['type'])),null!=_0x45a8fb['createdAt']&&(_0x37fd0d['createdAt']=String(_0x45a8fb['createdAt'])),_0x37fd0d;},_0x2d949e['toObject']=function(_0x511a49,_0x5f0967){_0x5f0967||(_0x5f0967={});var _0x45ff01={};return _0x5f0967['defaults']&&(_0x45ff01['userId']='',_0x45ff01['type']='',_0x45ff01['createdAt']=''),null!=_0x511a49['userId']&&_0x511a49['hasOwnProperty']('userId')&&(_0x45ff01['userId']=_0x511a49['userId']),null!=_0x511a49['type']&&_0x511a49['hasOwnProperty']('type')&&(_0x45ff01['type']=_0x511a49['type']),null!=_0x511a49['createdAt']&&_0x511a49['hasOwnProperty']('createdAt')&&(_0x45ff01['createdAt']=_0x511a49['createdAt']),_0x45ff01;},_0x2d949e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2d949e['getTypeUrl']=function(_0x3102cc){return void 0x0===_0x3102cc&&(_0x3102cc='type.googleapis.com'),_0x3102cc+'/OperationMetadataDescriptor';},_0x2d949e;}()),_0xefac1b;})());class MessagesCompressor{static['decode'](_0x49ad0f,_0x5d321c){const _0x30b249=_getType(_0x5d321c)['decode']('undefined'==typeof window?_0x49ad0f:new Uint8Array(_0x49ad0f));return _0x5d321c['fromJSON']({..._0x30b249});}static['encode'](_0x183602){const _0x5ba51a=_getType(_0x183602['constructor']),_0x2a7dce=_0x183602['toJSON'](),_0x2cccf0=_0x5ba51a['verify'](_0x2a7dce);if(_0x2cccf0)throw Error(_0x2cccf0);return _0x5ba51a['encode'](_0x5ba51a['create'](_0x2a7dce))['finish']();}}function _getType(_0x16b777){return messages$1[_0x16b777['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(_0x37c99c){super(),this['ids']=_0x37c99c;}['toJSON'](){return{'ids':this['ids']};}static['fromJSON'](_0x49797b){return new GetManyUsersMessage(_0x49797b['ids']);}}class GetManyUsersResponse extends Message{['users'];static ['DESCRIPTOR_NAME']='GetManyUsersResponse';static ['DESCRIPTOR']={'fields':{'users':{'rule':'repeated','type':'UserDescriptor','id':0x1}}};constructor(_0x353dc4){super(),this['users']=_0x353dc4;}['toJSON'](){return{'users':this['users']['map'](_userToJson)};}static['fromJSON'](_0x4aa324){return new GetManyUsersResponse(_0x4aa324['users']['map'](_userFromJson));}}function _userToJson(_0x4ce8f9){return{'attributes':Object['keys'](_0x4ce8f9)['map'](_0x510f16=>({'key':_0x510f16,'value':JSON['stringify'](_0x4ce8f9[_0x510f16])}))};}function _userFromJson(_0x276cc8){return _0x276cc8['attributes']['reduce']((_0x3954d3,_0x1bf121)=>(_0x3954d3[_0x1bf121['key']]=_0x1bf121['value']?JSON['parse'](_0x1bf121['value']):null,_0x3954d3),{});}class User{static ['_SERVICE']=0x2;constructor(_0x3e4ec8={}){this['_attributes']=new Map();for(const _0x1bbe1e of Object['keys'](_0x3e4ec8))'id'!==_0x1bbe1e?(this['_attributes']['set'](_0x1bbe1e,_0x3e4ec8[_0x1bbe1e]),Object['defineProperty'](this,_0x1bbe1e,{'enumerable':!0x0,'configurable':!0x1,'get':()=>this['_attributes']['get'](_0x1bbe1e)})):this['id']=_0x3e4ec8['id'];}static['fromData'](_0x41117d){return new User(_0x41117d);}static async['get'](_0x724760,_0x3d1fdd){const _0x2d9288=new GetUserMessage(_0x3d1fdd);try{const _0x22f6e0=await _0x724760['_sendRequest'](User['_SERVICE'],GetUserMessage['TYPE'],MessagesCompressor['encode'](_0x2d9288)),_0x313dc2=MessagesCompressor['decode'](_0x22f6e0,GetUserResponse);return new User(_0x313dc2['attributes']);}catch(_0x514817){return new User({'id':_0x3d1fdd});}}static async['getMany'](_0x1a9512,_0x1ed883){const _0x5ca283=new GetManyUsersMessage(_0x1ed883);try{const _0x4f0d70=await _0x1a9512['_sendRequest'](User['_SERVICE'],GetManyUsersMessage['TYPE'],MessagesCompressor['encode'](_0x5ca283));return MessagesCompressor['decode'](_0x4f0d70,GetManyUsersResponse)['users']['map'](_0x173869=>new User(_0x173869));}catch(_0x45f837){return _0x1ed883['map'](_0x55de1d=>new User({'id':_0x55de1d}));}}}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(_0x124fa7,_0x3dd4ae,_0x44d2a8){super(),this['type']=_0x124fa7,this['socketId']=_0x3dd4ae,this['data']=_0x44d2a8;}['toJSON'](){return{'type':this['type'],'socketId':this['socketId'],'data':this['data']};}static['fromJSON'](_0x37c8d7){return new ChannelMessage(_0x37c8d7['type'],_0x37c8d7['socketId'],_0x37c8d7['data']);}}class Channel extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){['_channelName'];['_wsGateway'];['_socket'];constructor(_0x5be78d,_0x2d6520,_0x5be976){super(),this['_channelName']=_0x5be78d,this['_wsGateway']=_0x2d6520,this['_socket']=_0x5be976,this['_subscribeToChannel']();}['remove'](){this['_socket']['off'](this['_channelName']);}['getEventName'](_0x42a77c,_0x42d6c0=!0x1){let _0x4120a9='';return _0x42d6c0&&(_0x4120a9+='all:'),_0x4120a9+='event',_0x42a77c&&(_0x4120a9+=':'+_0x42a77c),_0x4120a9;}['_subscribeToChannel'](){this['_socket']['on'](this['_channelName'],_0x534b1c=>{const _0x4b5cfe=MessagesCompressor['decode'](_0x534b1c,ChannelMessage);this['fire'](this['getEventName'](_0x4b5cfe['type'],!0x0),_0x4b5cfe['data'],_0x4b5cfe['socketId']),_0x4b5cfe['socketId']!==this['_wsGateway']['socketId']&&this['fire'](this['getEventName'](_0x4b5cfe['type']),_0x4b5cfe['data'],_0x4b5cfe['socketId']);});}}class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(_0x53c601,_0x37534e,_0x2ea0e9=null,_0x412e2a={}){super('cloud-services-internal-error:\x20'+_0x53c601),this['context']=_0x37534e,this['code']=_0x2ea0e9,this['data']=_0x412e2a,this['name']='CKEditorError';}static['fromPublicError'](_0x785075){return new CKEditorCloudServicesError(function(_0x3024d9){let _0x3d0740='cloud-services-error:\x20'+_0x3024d9['message'];return _0x3024d9['data']&&(_0x3d0740+='\x0aError\x20data:\x20'+JSON['stringify'](_0x3024d9['data'])),_0x3024d9['explanation']&&(_0x3d0740+='\x0aExplanation:\x20'+_0x3024d9['explanation']),_0x3024d9['action']&&(_0x3d0740+='\x0aAction:\x20'+_0x3024d9['action']),_0x3024d9['traceId']&&(_0x3d0740+='\x0aTraceId:\x20'+_0x3024d9['traceId']),_0x3024d9['code']&&(_0x3d0740+='\x0aCode:\x20'+_0x3024d9['code']),_0x3d0740;}(_0x785075),_0x785075);}}class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(_0x3e5e58,_0x249218){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x3e5e58,this['code']=_0x249218['code'],this['traceId']=_0x249218['traceId'],this['data']=_0x249218['data'];}static['fromPublicError'](_0x4f76b5){return new CKEditorCloudServicesServerError(function(_0x29851b){let _0x4f9ab4='cloud-services-server-error:\x20'+_0x29851b['message'];return _0x29851b['explanation']&&(_0x4f9ab4+='\x0aExplanation:\x20'+_0x29851b['explanation']),_0x29851b['action']&&(_0x4f9ab4+='\x0aAction:\x20'+_0x29851b['action']),_0x29851b['traceId']&&(_0x4f9ab4+='\x0aTraceId:\x20'+_0x29851b['traceId']),_0x29851b['code']&&(_0x4f9ab4+='\x0aCode:\x20'+_0x29851b['code']),_0x4f9ab4;}(_0x4f76b5),_0x4f76b5);}}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(_0x57a082,_0x32e31f=[],_0x34f3c4=[]){super(),this['flags']=_0x57a082,this['rooms']=_0x32e31f,this['except']=_0x34f3c4;}['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'](_0x3f42e6){return new PacketOptionsMessage(_0x3f42e6['flags']&&JSON['parse'](_0x3f42e6['flags']),_0x3f42e6['rooms'],_0x3f42e6['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'](..._0x32dd5b){let _0x597318=0x0;for(let _0x7ec576=0x0;_0x7ec576<_0x32dd5b['length'];_0x7ec576++)_0x597318+=_0x32dd5b[_0x7ec576]*Math['pow'](0xa,_0x32dd5b['length']-_0x7ec576-0x1);return _0x597318;}static['getType'](_0x449ce0){if(ParserUtils['isBuffer'](_0x449ce0))return MessageDataTypes_BUFFER;const _0x130c3c=typeof _0x449ce0;return'string'===_0x130c3c?MessageDataTypes_STRING:'number'===_0x130c3c?MessageDataTypes_NUMBER:MessageDataTypes_OBJECT;}static['isBuffer'](_0xf926e0){return IS_NODE&&Buffer['isBuffer'](_0xf926e0)||_0xf926e0 instanceof ArrayBuffer||_0xf926e0 instanceof Uint8Array||this['_isBufferView'](_0xf926e0);}static['_isBufferView'](_0x3a8b79){return'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x3a8b79):_0x3a8b79['buffer']instanceof ArrayBuffer;}}class PackageDataMessage extends Message{['data'];['data1'];static['create'](_0x5555fe,_0xafa68a){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(_0x2d6683,_0x31426b){super(),this['data']=_0x2d6683,this['data1']=_0x31426b;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x4a6b22){return new NumberBytesPacketDataMessage(_0x4a6b22['data'],_0x4a6b22['data1']);}static['create'](_0x1534a9,_0x5a0e88){return new NumberBytesPacketDataMessage(_0x1534a9,_0x5a0e88);}}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(_0x2cc532,_0x9cca8a){super(),this['data']=_0x2cc532,this['data1']=_0x9cca8a;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x2653f2){return new StringBytesPacketDataMessage(_0x2653f2['data'],_0x2653f2['data1']);}static['create'](_0x1c74f8,_0x4113ce){return new StringBytesPacketDataMessage(_0x1c74f8,_0x4113ce);}}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(_0x12d2c0,_0x2658ac){super(),this['data']=_0x12d2c0,this['data1']=_0x2658ac;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x16a5b9){return new BytesBytesPacketDataMessage(_0x16a5b9['data'],_0x16a5b9['data1']);}static['create'](_0x4d7280,_0x51a87b){return new BytesBytesPacketDataMessage(_0x4d7280,_0x51a87b);}}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(_0xf42a3b,_0x2d2c1a){super(),this['data']=_0xf42a3b,this['data1']=_0x2d2c1a;}['toJSON'](){return{'data':this['data'],'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x44c7e7){return new StringObjectPacketDataMessage(_0x44c7e7['data'],_0x44c7e7['data1']&&JSON['parse'](_0x44c7e7['data1']));}static['create'](_0xbe0af0,_0x169871){return new StringObjectPacketDataMessage(_0xbe0af0,_0x169871);}}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(_0x3e6c9a,_0x4a5ae5){super(),this['data']=_0x3e6c9a,this['data1']=_0x4a5ae5;}['toJSON'](){return{'data':this['data'],'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x1567fc){return new NumberObjectPacketDataMessage(_0x1567fc['data'],_0x1567fc['data1']&&JSON['parse'](_0x1567fc['data1']));}static['create'](_0x41b0ec,_0x4494e0){return new NumberObjectPacketDataMessage(_0x41b0ec,_0x4494e0);}}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(_0x5e9ad8,_0x56113d){super(),this['data']=_0x5e9ad8,this['data1']=_0x56113d;}['toJSON'](){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x1bf0ba){return new ObjectObjectPacketDataMessage(_0x1bf0ba['data']&&JSON['parse'](_0x1bf0ba['data']),_0x1bf0ba['data1']&&JSON['parse'](_0x1bf0ba['data1']));}static['create'](_0x95d131,_0x1149de){return new ObjectObjectPacketDataMessage(_0x95d131,_0x1149de);}}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(_0x2464ca,_0x24ba34){super(),this['data']=_0x2464ca,this['data1']=_0x24ba34;}['toJSON'](){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']};}static['fromJSON'](_0x169e73){return new ObjectBufferPacketDataMessage(_0x169e73['data']&&JSON['parse'](_0x169e73['data']),_0x169e73['data1']);}static['create'](_0x4385a5,_0x4ebd10){return new ObjectBufferPacketDataMessage(_0x4385a5,_0x4ebd10);}}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(_0x12b6e7,_0x24a29a){super(),this['data']=_0x12b6e7,this['data1']=_0x24a29a;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x5307d0){return new StringStringPacketDataMessage(_0x5307d0['data'],_0x5307d0['data1']);}static['create'](_0x38b8fe,_0x1642d1){return new StringStringPacketDataMessage(_0x38b8fe,_0x1642d1);}}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(_0x22699d,_0x330049){super(),this['data']=_0x22699d,this['data1']=_0x330049;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x476973){return new StringNumberPacketDataMessage(_0x476973['data'],_0x476973['data1']);}static['create'](_0x19518b,_0x42563e){return new StringNumberPacketDataMessage(_0x19518b,_0x42563e);}}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(_0x5a3858,_0x44ce9c){super(),this['data']=_0x5a3858,this['data1']=_0x44ce9c;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0xc89f){return new NumberNumberPacketDataMessage(_0xc89f['data'],_0xc89f['data1']);}static['create'](_0x186f83,_0x4abe7d){return new NumberNumberPacketDataMessage(_0x186f83,_0x4abe7d);}}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(_0x175dfc,_0x421550){super(),this['data']=_0x175dfc,this['data1']=_0x421550;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0xee4f33){return new NumberStringPacketDataMessage(_0xee4f33['data'],_0xee4f33['data1']);}static['create'](_0x2472aa,_0x41becf){return new NumberStringPacketDataMessage(_0x2472aa,_0x41becf);}}const PACKET_DATA_MESSAGES=/* #__PURE__ -- @preserve */
((()=>[NumberBytesPacketDataMessage,StringBytesPacketDataMessage,BytesBytesPacketDataMessage,StringObjectPacketDataMessage,NumberObjectPacketDataMessage,ObjectObjectPacketDataMessage,ObjectBufferPacketDataMessage,StringStringPacketDataMessage,StringNumberPacketDataMessage,NumberNumberPacketDataMessage,NumberStringPacketDataMessage]['reduce']((_0x31dc22,_0x5b1f0c)=>(_0x31dc22[_0x5b1f0c['TYPE']]=_0x5b1f0c,_0x31dc22),{}))());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(_0x45944c,_0x3174f8,_0xf06140,_0x180ed4='/',_0x8ca21f){super(),this['type']=_0x45944c,this['data']=_0x3174f8,this['id']=_0xf06140,this['nsp']=_0x180ed4,this['options']=_0x8ca21f??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 _0x2bc10a=MessagesCompressor['encode'](this['options']),_0x3b0ee1=MessagesCompressor['encode'](this['data']);return{'type':this['type']+0xa*this['data']['constructor']['TYPE'],'id':this['id'],'nsp':'/'===this['nsp']?void 0x0:this['nsp'],'data':_0x3b0ee1,'options':_0x2bc10a};}static['fromJSON'](_0xac3ea){const _0x38225e=Math['floor'](_0xac3ea['type']/0xa);return new PacketMessage(_0xac3ea['type']-0xa*_0x38225e,MessagesCompressor['decode'](_0xac3ea['data'],PACKET_DATA_MESSAGES[_0x38225e]),_0xac3ea['id'],_0xac3ea['nsp'],_0xac3ea['options']?MessagesCompressor['decode'](_0xac3ea['options'],PacketOptionsMessage):new PacketOptionsMessage());}static['create'](_0x3f058,_0x107450={}){const _0x2cb3d7=ParserUtils['getPacketType'](ParserUtils['getType'](_0x3f058['data'][0x0]),ParserUtils['getType'](_0x3f058['data'][0x1]??_0x3f058['data'][0x0]));return new PacketMessage(_0x3f058['type'],PACKET_DATA_MESSAGES[_0x2cb3d7]['create'](_0x3f058['data'][0x0],_0x3f058['data'][0x1]),_0x3f058['id'],_0x3f058['nsp'],new PacketOptionsMessage(_0x107450['flags'],_0x107450['rooms'],_0x107450['except']));}}class PacketParser{['encode'](_0x52d7cd,_0x598739,_0x3798c2,_0x1afb02='/',_0x563893={}){if(_0x598739['length']>0x2)throw new Error('PacketParser\x20supports\x20only\x202\x20elements\x20in\x20data');const _0x49cac1={'type':_0x52d7cd,'data':_0x598739,'id':_0x3798c2,'nsp':_0x1afb02};return MessagesCompressor['encode'](PacketMessage['create'](_0x49cac1,_0x563893));}['decode'](_0x4f16eb){const _0x4f3fbb=MessagesCompressor['decode'](_0x4f16eb,PacketMessage);return{'packet':{'id':_0x4f3fbb['id'],'type':_0x4f3fbb['type'],'data':_0x4f3fbb['packetData'],'nsp':_0x4f3fbb['nsp']},'options':{'flags':_0x4f3fbb['options']['flags'],'rooms':_0x4f3fbb['options']['rooms'],'except':_0x4f3fbb['options']['except']}};}}const ENCODED_TYPES=/* #__PURE__ -- @preserve */
((()=>[PacketType['EVENT'],PacketType['ACK'],PacketType['BINARY_ACK'],PacketType['BINARY_EVENT']])());class Encoder extends Encoder$1{['_packetParser'];constructor(_0x19e5f3){super(),this['_packetParser']=_0x19e5f3??new PacketParser();}['encode'](_0x40c766){if(ENCODED_TYPES['includes'](_0x40c766['type']))try{return[this['_packetParser']['encode'](_0x40c766['type'],_0x40c766['data'],_0x40c766['id'],_0x40c766['nsp'])];}catch(_0xe3d996){console['error']('Can\x20not\x20properly\x20serialize\x20or\x20deserialize\x20messages.\x20Check\x20the\x20original\x20error.',{'originalError':{'message':_0xe3d996['message']}});}return super['encode'](_0x40c766);}}class Decoder extends Decoder$1{['_packetParser'];constructor(_0x23997d){super(),this['_packetParser']=_0x23997d??new PacketParser();}['add'](_0x3f39ff){if(!ParserUtils['isBuffer'](_0x3f39ff))return super['add'](_0x3f39ff);let _0x140881;try{_0x140881=this['_packetParser']['decode'](_0x3f39ff)['packet'];}catch(_0x517289){return super['add'](_0x3f39ff);}super['emitReserved']('decoded',_0x140881);}}class WebSocketRequest{['_context'];['_deferredPromise']=/* #__PURE__ -- @preserve */
_deferPromise();['timeout'];constructor(_0x39192b,_0x2a6a98){this['_context']=_0x39192b,this['timeout']=setTimeout(()=>this['error'](new CKEditorCloudServicesError('Request\x20timeout.',this['_context'])),_0x2a6a98);}get['promise'](){return this['_deferredPromise']['promise'];}['response'](_0x32207c){this['_deferredPromise']['resolve'](_0x32207c);}['error'](_0x436a2d){this['_deferredPromise']['reject'](_0x436a2d);}}class WebSocketGatewayRequestsManager{['_context'];['_requests']=new Set();constructor(_0x46abfe){this['_context']=_0x46abfe;}async['send'](_0x379b36,_0x49962a=0xafc8){const _0x296954=this['_createRequest'](_0x49962a);try{return _0x379b36(_0x296954),await _0x296954['promise'];}finally{this['_finishRequest'](_0x296954);}}['errorAll'](_0xbd71a6){for(const _0x3d3aeb of this['_requests'])_0x3d3aeb['error'](_0xbd71a6);}['waitForAllRequests'](_0x45fa9b=0xafc8){return this['_waitForRequests'](_0x45fa9b);}['_createRequest'](_0x3ec870){const _0x442bf8=new WebSocketRequest(this['_context'],_0x3ec870);return this['_requests']['add'](_0x442bf8),_0x442bf8;}['_finishRequest'](_0x551012){this['_requests']['delete'](_0x551012),clearTimeout(_0x551012['timeout']);}async['_waitForRequests'](_0x1692a2=0x1388,_0x1cbf80=0x0){return!this['_requests']['size']||_0x1cbf80>=_0x1692a2/0x1f4?Promise['resolve']():(await new Promise(_0x250d76=>{setTimeout(_0x250d76,0x1f4);}),this['_waitForRequests'](_0x1692a2,_0x1cbf80++));}}function _deferPromise(){let _0x208702,_0x3b9d7f;const _0x30229b=new Promise((_0x5eb3cc,_0x3740a3)=>{_0x208702=_0x5eb3cc,_0x3b9d7f=_0x3740a3;});return{'resolve':_0x208702,'reject':_0x3b9d7f,'promise':_0x30229b};}const WEB_SOCKET_GATEWAY_STATES={'DISCONNECTED':'disconnected','CONNECTING':'connecting','CONNECTED':'connected'};let WebSocketGateway$1=class e extends/* #__PURE__ -- @preserve */
_0x2fc64e(){['_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(_0xe10309,_0xe9366a,_0x417868,_0x7b4103,_0x5051a1){if(super(),this['_token']=_0xe9366a,this['_options']=_0x417868??{},this['_connectionProvider']=_0x7b4103??lookup,this['_userFactory']=_0x5051a1??User['get'],this['_requestsManager']=new WebSocketGatewayRequestsManager(this),this['_channels']=new Map(),!_0xe10309)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(_0xe10309['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(_0x445093,_0x1cf946,_0xe250c4)=>{if(this['_debugEvent']('ws-gw:change:state',_0xe250c4),_0xe250c4!==e['STATE_CONNECTED']){if(_0xe250c4===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(_0x2d9871){}},{'priority':e['_CHANGE_STATE_EVENT_PRIORITY']}),this['on']('error',(_0x815ff1,_0x469be9)=>{this['_options']['onError']?this['_options']['onError'](_0x469be9):console['error'](_0x469be9);});}get['sessionId'](){return this['socketId'];}['waitForAllRequests'](_0x51a8e9){return this['_requestsManager']['waitForAllRequests'](_0x51a8e9);}['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'](_0x393811,_0x2604cc='local.cs.dev:443/ws-v2',_0x5ce9f5={},_0x4a71eb=lookup,_0x38ae78=User['get']){const _0x100c01=new e(_0x2604cc,_0x393811,_0x5ce9f5,_0x4a71eb,_0x38ae78);return await _0x100c01['_connect'](),_0x100c01;}['_sendRequest'](_0x2ad796,_0x2b55ef,_0x4e3a6f){if(!_0x2ad796)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 _0x569e15=new ArrayBuffer(_0x4e3a6f['length']+0x2),_0x3e25b5=new Uint8Array(_0x569e15);return _0x3e25b5[0x0]=_0x2ad796,_0x3e25b5[0x1]=parseInt(_0x2b55ef),_0x3e25b5['set'](_0x4e3a6f,0x2),this['_emit'](0x1,_0x3e25b5);}['_getChannel'](_0x408afa,_0x425e96){const _0x11632e=''+_0x408afa+_0x425e96;return!this['_channels']['has'](_0x11632e)&&this['_socket']&&this['_channels']['set'](_0x11632e,new Channel(_0x11632e,this,this['_socket'])),this['_channels']['get'](_0x11632e);}['_connect'](){return new Promise((_0x1e80a0,_0xbf19c5)=>{const _0x25633d=this['_setupSocket']();!this['socketId']&&_0x25633d['io']['on']('reconnect_error',()=>{this['_debugEvent']('reconnect_error'),this['_reconnectionAttemptError'](_0xbf19c5);}),_0x25633d['once']('connect',async()=>{this['_debugEvent']('once-connect');try{await this['_onConnect'](),_0x1e80a0();}catch(_0x3a1776){_0xbf19c5(_0x3a1776);}}),_0x25633d['connect']();});}['_getPortByProtocol'](_0x2a5827){return['http:','ws:']['includes'](_0x2a5827)?0x50:0x1bb;}['_setupSocket'](){if(this['_socket'])return this['_socket'];const _0x3a1879=this['_url']['port']||this['_getPortByProtocol'](this['_url']['protocol']),_0x325bcc=(this['_url']['protocol']||'https:')+'//'+this['_url']['hostname']+':'+_0x3a1879,_0x21414f=this['_url']['pathname']['match'](/^\/.*\/ws/)?this['_url']['pathname']['split']('/ws')[0x0]:'',_0x56d788=this['_connectionProvider'](_0x325bcc,{'parser':{'Encoder':Encoder,'Decoder':Decoder},'path':_0x21414f+'/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.3'},'agent':this['_options']['agent']??!0x1,'closeOnBeforeunload':!0x1});return this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTING'],_0x56d788['on']('connect',()=>{this['_debugEvent']('connect'),this['socketId']=_0x56d788['id'];}),_0x56d788['on']('connect_error',_0x391344=>{this['_debugEvent']('connect_error',_0x391344);}),_0x56d788['on']('disconnect',()=>{this['_debugEvent']('disconnect'),this['_onDisconnect']();}),_0x56d788['io']['on']('reconnect',async()=>{this['_debugEvent']('reconnect'),await this['_onReconnect']();}),_0x56d788['io']['on']('reconnect_attempt',_0x4f2a56=>{this['_debugEvent']('reconnect_attempt',_0x4f2a56),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTING'],this['_connectionAttempt']=_0x4f2a56;}),_0x56d788['on']('unauthorized',_0x2db3e9=>{this['_debugEvent']('unauthorized'),this['_onUnauthorized'](_0x2db3e9);}),_0x56d788['on']('authenticationRequest',async _0xa662b6=>{this['_debugEvent']('authenticationRequest',_0xa662b6['attempt']),await this['_onReconnect']();}),this['_socket']=_0x56d788,_0x56d788;}['_emit'](_0x3e4012,_0x3a8363){const _0x436594=this['_socket'];return this['_requestsManager']['send'](_0x47cbfe=>{_0x436594['emit'](_0x3e4012,_0x3a8363,(_0x592b2c,_0xb812b9)=>{if(_0x592b2c)return _0x47cbfe['error'](CKEditorCloudServicesServerError['fromPublicError'](_0x592b2c));_0x47cbfe['response'](_0xb812b9);});},this['_options']['requestTimeout']);}['_addAuthData'](_0x440f70,_0x102628){this['_socketAuth']={'environmentId':_0x440f70,'userId':_0x102628,'isAuthenticated':!0x0};}['_removeAuthData'](){this['_socketAuth']=void 0x0;}async['_onConnect'](){await this['_authenticate'](this['_token']['value']),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTED'];const _0x2fb21e=async(_0x5bc01a,_0x5a0dd4,_0x584063)=>{this['_debugEvent']('token:value:change');try{await this['_authenticate'](_0x584063);}catch(_0x4a1df9){}};this['_token']['on']('change:value',_0x2fb21e),this['_socket']['io']['off']('reconnect_error'),this['on']('disconnect',()=>{this['_token']['off']('change:value',_0x2fb21e);});}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 _0x5e2c6d of this['_channels']['values']())_0x5e2c6d['remove']();this['_channels']['clear'](),void 0x0===this['_options']['autoReconnect']||this['_options']['autoReconnect']||(this['_socket']=void 0x0);}['_debugEvent'](_0x57fbee,_0x57dc96){if(!this['_isDebugModeEnabled']())return;const _0x1b1dc4=void 0x0!==_0x57dc96?',\x20data:\x20'+_0x57dc96:'';console['info'](new Date()['toLocaleString']()+'\x20'+_0x57fbee+_0x1b1dc4);}['_reconnectionAttemptError'](_0x1d6947){this['_connectionAttempt']>=0x2&&(this['disconnect'](),_0x1d6947(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:_0x403096}){this['_removeAuthData'](),this['fire']('error',CKEditorCloudServicesServerError['fromPublicError'](_0x403096));}async['_authenticate'](_0xf22e3b){try{this['_debugEvent']('authenticate:start');const _0x16fb27=await this['_emit'](0x2,{'token':_0xf22e3b});this['_debugEvent']('authenticate:success','envId:\x20'+_0x16fb27['environmentId']+',\x20userId:\x20'+_0x16fb27['userId']),this['_addAuthData'](_0x16fb27['environmentId'],_0x16fb27['userId']);}catch(_0x3c585c){throw this['_debugEvent']('authenticate:error',_0x3c585c['message']),this['_removeAuthData'](),_0x3c585c;}}['_isDebugModeEnabled'](){return!!_0x697abc['window']['localStorage']&&'true'===(_0x697abc['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(_0x172a16){super(),this['bundleVersion']=_0x172a16;}['toJSON'](){return{'bundleVersion':this['bundleVersion']};}static['fromJSON'](_0x5a38e0){return new IsEditorBundleUploadedMessage(_0x5a38e0['bundleVersion']);}}class IsEditorBundleUploadedResponse extends Message{['isUploaded'];static ['DESCRIPTOR_NAME']='IsEditorBundleUploadedResponse';static ['DESCRIPTOR']={'fields':{'isUploaded':{'type':'bool','id':0x1}}};constructor(_0x205195){super(),this['isUploaded']=_0x205195;}['toJSON'](){return{'isUploaded':this['isUploaded']};}static['fromJSON'](_0x356cae){return new IsEditorBundleUploadedResponse(_0x356cae['isUploaded']);}}class EditorService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){static ['_SERVICE']=0xd;static async['isBundleUploaded'](_0x70118c,_0x2f1a3d){const _0x5a51ae=new IsEditorBundleUploadedMessage(_0x2f1a3d);if(_0x70118c['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x70118c);const _0x3d9134=await _0x70118c['_sendRequest'](EditorService['_SERVICE'],IsEditorBundleUploadedMessage['TYPE'],MessagesCompressor['encode'](_0x5a51ae));return MessagesCompressor['decode'](_0x3d9134,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(_0x3f6a4e,_0x47ae58){super(),this['documentId']=_0x3f6a4e,this['revisionId']=_0x47ae58;}['toJSON'](){return{'documentId':this['documentId'],'revisionId':this['revisionId']};}static['fromJSON'](_0x3debe0){return new RevisionHistoryGetRevisionMessage(_0x3debe0['documentId'],_0x3debe0['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'](_0x258c1d){return{'revisionId':_0x258c1d['id'],'name':_0x258c1d['name'],'creatorId':_0x258c1d['creatorId'],'createdAt':_0x258c1d['createdAt'],'fromVersion':_0x258c1d['fromVersion'],'toVersion':_0x258c1d['toVersion'],'isEmptyCurrent':_0x258c1d['isEmptyCurrent'],'diffData':_0x258c1d['diffData']?JSON['stringify'](_0x258c1d['diffData']):void 0x0,'attributes':_0x258c1d['attributes'],'authorsIds':_0x258c1d['authorsIds']};}static['toJSON'](_0x597c97){return{'revisionId':_0x597c97['revisionId'],'name':_0x597c97['name'],'creatorId':_0x597c97['creatorId'],'authorsIds':_0x597c97['authorsIds']?JSON['stringify'](_0x597c97['authorsIds']):void 0x0,'diffData':_0x597c97['diffData'],'createdAt':_0x597c97['createdAt']?.['toISOString'](),'attributes':_0x597c97['attributes']?JSON['stringify'](_0x597c97['attributes']):void 0x0,'toVersion':_0x597c97['toVersion'],'fromVersion':_0x597c97['fromVersion'],'isEmptyCurrent':_0x597c97['isEmptyCurrent']};}static['fromJSON'](_0x2f2984){return{'revisionId':(_0x2f2984={..._0x2f2984})['revisionId'],'name':_0x2f2984['name'],'creatorId':_0x2f2984['creatorId'],'authorsIds':_0x2f2984['authorsIds']?JSON['parse'](_0x2f2984['authorsIds']):void 0x0,'diffData':_0x2f2984['diffData'],'createdAt':_0x2f2984['createdAt']?new Date(_0x2f2984['createdAt']):void 0x0,'attributes':_0x2f2984['attributes']?JSON['parse'](_0x2f2984['attributes']):void 0x0,'toVersion':_0x2f2984['toVersion'],'fromVersion':_0x2f2984['fromVersion'],'isEmptyCurrent':_0x2f2984['isEmptyCurrent']};}static['toObject'](_0x2aadc3){return function(_0x1c012c){for(const [_0x2b8246,_0x252c5]of Object['entries'](_0x1c012c))void 0x0===_0x252c5&&delete _0x1c012c[_0x2b8246];return _0x1c012c;}({'id':_0x2aadc3['revisionId'],'name':_0x2aadc3['name'],'creatorId':_0x2aadc3['creatorId'],'createdAt':_0x2aadc3['createdAt'],'fromVersion':_0x2aadc3['fromVersion'],'toVersion':_0x2aadc3['toVersion'],'isEmptyCurrent':_0x2aadc3['isEmptyCurrent'],'diffData':_0x2aadc3['diffData']?JSON['parse'](_0x2aadc3['diffData']):void 0x0,'attributes':_0x2aadc3['attributes'],'authorsIds':_0x2aadc3['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(_0x2d6983,_0x43c99e,_0x3109fe,_0x325864,_0x5aeca6,_0x127d25,_0x4981fe,_0x3ebaba,_0x1592dd,_0x2f76c8){super(),this['revisionId']=_0x2d6983,this['name']=_0x43c99e,this['creatorId']=_0x3109fe,this['authorsIds']=_0x325864,this['createdAt']=_0x5aeca6,this['diffData']=_0x127d25,this['attributes']=_0x4981fe,this['fromVersion']=_0x3ebaba,this['toVersion']=_0x1592dd,this['isEmptyCurrent']=_0x2f76c8;}['toJSON'](){return RevisionDescriptor['toJSON'](this);}['toObject'](){return RevisionDescriptor['toObject'](this);}static['create'](_0x5a7981){return new RevisionHistoryGetRevisionResponse(_0x5a7981['revisionId'],_0x5a7981['name'],_0x5a7981['creatorId'],_0x5a7981['authorsIds'],_0x5a7981['createdAt'],_0x5a7981['diffData'],_0x5a7981['attributes'],_0x5a7981['fromVersion'],_0x5a7981['toVersion'],_0x5a7981['isEmptyCurrent']);}static['fromJSON'](_0x285845){return new RevisionHistoryGetRevisionResponse(_0x285845['revisionId'],_0x285845['name'],_0x285845['creatorId'],_0x285845['authorsIds']?JSON['parse'](_0x285845['authorsIds']):void 0x0,_0x285845['createdAt']?new Date(_0x285845['createdAt']):void 0x0,_0x285845['diffData'],_0x285845['attributes']?JSON['parse'](_0x285845['attributes']):void 0x0,_0x285845['fromVersion'],_0x285845['toVersion'],_0x285845['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(_0x27176e,_0x1b5ace,_0x46b4a1){super(),this['documentId']=_0x27176e,this['requestId']=_0x1b5ace,this['revisions']=_0x46b4a1;}['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'](_0x3ba2da){return new RevisionHistoryUpdateRevisionsMessage(_0x3ba2da['documentId'],_0x3ba2da['requestId'],_0x3ba2da['revisions']['map'](RevisionDescriptor['create']));}static['fromJSON'](_0x50b830){return new RevisionHistoryUpdateRevisionsMessage(_0x50b830['documentId'],_0x50b830['requestId'],_0x50b830['revisions']['map'](RevisionDescriptor['fromJSON']));}}class RevisionHistoryUpdateRevisionsResponse extends Message{['requestId'];static ['DESCRIPTOR_NAME']='RevisionHistoryUpdateRevisionsResponse';static ['DESCRIPTOR']={'fields':{'requestId':{'type':'uint32','id':0x1}}};constructor(_0x3024d4){super(),this['requestId']=_0x3024d4;}['toJSON'](){return{'requestId':this['requestId']};}static['fromJSON'](_0x85232c){return new RevisionHistoryUpdateRevisionsResponse(_0x85232c['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(_0x20e6f0){super(),this['documentId']=_0x20e6f0;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x3a5aea){return new RevisionHistoryConnectMessage(_0x3a5aea['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(_0x4e71df,_0x4041ed,_0x3240e0){super(),this['channel']=_0x4e71df,this['requestId']=_0x4041ed,this['revisions']=_0x3240e0;}['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'](_0x21d7ee){return new RevisionHistoryConnectResponse(_0x21d7ee['channel'],_0x21d7ee['requestId'],_0x21d7ee['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(_0x14072c,_0x4f0c57){super(),this['documentId']=_0x14072c,this['requestId']=_0x4f0c57;}['toJSON'](){return{'documentId':this['documentId'],'requestId':this['requestId']};}static['fromJSON'](_0x37960d){return new RevisionHistoryReconnectMessage(_0x37960d['documentId'],_0x37960d['requestId']);}}class ServiceNotConnectedError extends CKEditorCloudServicesError{constructor(_0x3df25b,_0x39c72f){super(_0x3df25b+'\x20Service\x20is\x20not\x20connected.',_0x39c72f);}}class RevisionHistoryService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];static ['_SERVICE']=0xc;constructor(_0x7b29b4){super(),this['_documentId']=_0x7b29b4;}get['isConnected'](){return this['_isConnected'];}['connect'](_0x1c8f8e){return this['_isConnected']?Promise['resolve']():this['_connect'](_0x1c8f8e,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'](_0x4ed0fa,_0x547c5f){if(this['isConnected'])throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x4ed0fa);return this['_connect'](_0x4ed0fa,new RevisionHistoryReconnectMessage(this['_documentId'],_0x547c5f));}async['updateRevisions'](_0x2bba4d,_0x394525){const _0x762e57=RevisionHistoryUpdateRevisionsMessage['create']({'documentId':this['_documentId'],'requestId':_0x394525,'revisions':_0x2bba4d}),_0x20dd22=await this['_sendRequest'](RevisionHistoryUpdateRevisionsMessage['TYPE'],_0x762e57),{requestId:_0x4af4d1}=MessagesCompressor['decode'](_0x20dd22,RevisionHistoryUpdateRevisionsResponse);return _0x4af4d1;}async['getRevision'](_0x528b3a){const _0x2836c3=new RevisionHistoryGetRevisionMessage(this['_documentId'],_0x528b3a),_0x1fe878=await this['_sendRequest'](RevisionHistoryGetRevisionMessage['TYPE'],_0x2836c3);return MessagesCompressor['decode'](_0x1fe878,RevisionHistoryGetRevisionResponse)['toObject']();}async['_connect'](_0x48ce22,_0x345cac){if(_0x48ce22['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x48ce22);this['_wsGateway']=_0x48ce22,this['stopListening'](_0x48ce22,'change:state');const _0x14059d=await _0x48ce22['_sendRequest'](0xc,_0x345cac['constructor']['TYPE'],MessagesCompressor['encode'](_0x345cac)),{channel:_0x37f55b,requestId:_0x4fa0d4,revisions:_0x2291bf}=MessagesCompressor['decode'](_0x14059d,RevisionHistoryConnectResponse)['toObject']();return this['listenTo'](_0x48ce22,'change:state',(_0x656105,_0x3865bf,_0x47d237)=>this['_onWsGatewayStateChange'](_0x47d237),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x48ce22,_0x37f55b),this['_isConnected']=!0x0,this['fire']('connected'),{'revisions':_0x2291bf,'requestId':_0x4fa0d4};}['_connectToChannel'](_0x3c1f48,_0x2ecc46){this['_channel']=_0x3c1f48['_getChannel'](RevisionHistoryService['_SERVICE'],_0x2ecc46),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](RevisionHistoryUpdateRevisionsMessage['TYPE']),(_0x328e10,_0x2be743)=>{const {documentId:_0x3131ff,requestId:_0x2fe9ce,revisions:_0x53285e}=MessagesCompressor['decode'](_0x2be743,RevisionHistoryUpdateRevisionsMessage)['toObject']();this['fire']('revisionsUpdated',{'documentId':_0x3131ff,'requestId':_0x2fe9ce,'revisionsData':_0x53285e});});}['_onWsGatewayStateChange'](_0x5c1c10){_0x5c1c10===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x5b44f4,_0x2d109c){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Revision\x20History',this);return this['_wsGateway']['_sendRequest'](0xc,_0x5b44f4,MessagesCompressor['encode'](_0x2d109c));}}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(_0xda4a3d,_0x12bb89,_0x1055ad,_0x289c17={},_0x86953d=null,_0x3f0a69=null){super(),this['id']=_0xda4a3d,this['documentId']=_0x12bb89,this['type']=_0x1055ad,this['data']=_0x289c17,this['originalSuggestionId']=_0x86953d,this['attributes']=_0x3f0a69;}['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'](_0x53e280){return new AddSuggestionMessage(_0x53e280['id'],_0x53e280['documentId'],_0x53e280['type'],JSON['parse'](_0x53e280['data']),_0x53e280['originalSuggestionId']??null,_0x53e280['attributes']?JSON['parse'](_0x53e280['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(_0x4b49e9,_0x4c90c3,_0x1f7f49,_0x444aed,_0x67ad71,_0x555898,_0x5af4db={},_0x4259e1=null){super(),this['id']=_0x4b49e9,this['authorId']=_0x4c90c3,this['type']=_0x1f7f49,this['hasComments']=_0x67ad71,this['state']=_0x555898,this['data']=_0x5af4db,this['attributes']=_0x4259e1,this['createdAt']=_0x444aed?new Date(_0x444aed):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'](_0x42d44c){return new AddSuggestionResponse(_0x42d44c['id'],_0x42d44c['authorId'],_0x42d44c['type'],_0x42d44c['createdAt'],_0x42d44c['hasComments'],_0x42d44c['state'],JSON['parse'](_0x42d44c['data']),_0x42d44c['attributes']?JSON['parse'](_0x42d44c['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(_0x99048,_0x4437cd){super(),this['id']=_0x99048,this['documentId']=_0x4437cd;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId']};}static['fromJSON'](_0x27a55d){return new GetSuggestionMessage(_0x27a55d['id'],_0x27a55d['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(_0x33e80c,_0x4f7454,_0x189d0f,_0x2a68fb,_0x1d1c32,_0x471e1c,_0x3f6131={},_0x459b8b=null){super(),this['id']=_0x33e80c,this['authorId']=_0x4f7454,this['type']=_0x189d0f,this['hasComments']=_0x1d1c32,this['state']=_0x471e1c,this['data']=_0x3f6131,this['attributes']=_0x459b8b,this['createdAt']=new Date(_0x2a68fb);}['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'](_0x44055e){return new GetSuggestionResponse(_0x44055e['id'],_0x44055e['authorId'],_0x44055e['type'],_0x44055e['createdAt'],_0x44055e['hasComments'],_0x44055e['state'],JSON['parse'](_0x44055e['data']),_0x44055e['attributes']?JSON['parse'](_0x44055e['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(_0x5ce54a){super(),this['documentId']=_0x5ce54a;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x4351f9){return new GetAllSuggestionsMessage(_0x4351f9['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'](_0x561e08){return{..._0x561e08,'data':_0x561e08['data']?JSON['stringify'](_0x561e08['data']):_0x561e08['data'],'attributes':_0x561e08['attributes']?JSON['stringify'](_0x561e08['attributes']):_0x561e08['attributes'],'createdAt':_0x561e08['createdAt']?.['toISOString']()};}static['fromJSON'](_0xd4fe6d){return{..._0xd4fe6d,'data':_0xd4fe6d['data']?JSON['parse'](_0xd4fe6d['data']):_0xd4fe6d['data'],'attributes':_0xd4fe6d['attributes']?JSON['parse'](_0xd4fe6d['attributes']):_0xd4fe6d['attributes'],'createdAt':_0xd4fe6d['createdAt']?new Date(_0xd4fe6d['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(_0x35f937,_0x3eb3a8){super(),this['_suggestions']=_0x35f937,this['_suggestionsV2']=_0x3eb3a8,this['suggestions']=_0x3eb3a8?.['length']?_0x3eb3a8:_0x35f937;}['toJSON'](){return{'suggestions':this['_suggestions']?.['map'](_0x188eaa=>JSON['stringify'](_0x188eaa)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](_0x16732e){return new GetAllSuggestionResponse(_0x16732e['suggestions']?.['map'](_suggestionFromString),_0x16732e['suggestionsV2']?.['map'](SuggestionDescriptor['fromJSON']));}}function _suggestionFromString(_0xe8a9c5){const _0x22dc2f=JSON['parse'](_0xe8a9c5);return _0x22dc2f['createdAt']=_0x22dc2f['createdAt']?new Date(_0x22dc2f['createdAt']):void 0x0,_0x22dc2f;}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(_0x1e9344,_0x119542,_0x4cba06,_0x2b2820,_0x6f4921,_0x110258=null){super(),this['id']=_0x1e9344,this['documentId']=_0x119542,this['hasComments']=_0x4cba06,this['isHasCommentsModified']=_0x2b2820,this['state']=_0x6f4921,this['attributes']=_0x110258;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId'],'hasComments':this['hasComments'],'isHasCommentsModified':this['isHasCommentsModified'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](_0x479f5d){return new UpdateSuggestionMessage(_0x479f5d['id'],_0x479f5d['documentId'],_0x479f5d['hasComments'],_0x479f5d['isHasCommentsModified'],_0x479f5d['state'],_0x479f5d['attributes']?JSON['parse'](_0x479f5d['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(_0x3168db){super(),this['documentId']=_0x3168db;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x2f472d){return new e(_0x2f472d['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(_0x3b0179,_0x193e02,_0x504ed9){super(),this['channel']=_0x3b0179,this['_suggestions']=_0x193e02,this['_suggestionsV2']=_0x504ed9,this['suggestions']=_0x504ed9?.['length']?_0x504ed9:_0x193e02;}['toJSON'](){return{'channel':this['channel'],'suggestions':this['_suggestions']?.['map'](_0x1c5385=>JSON['stringify'](_0x1c5385)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](_0x37a666){return new e(_0x37a666['channel'],_0x37a666['suggestions']?.['map'](_0xe7d356=>JSON['parse'](_0xe7d356)),_0x37a666['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(_0x1db53f,_0x2a2429,_0x588197){super(),this['ids']=_0x1db53f,this['documentId']=_0x2a2429,this['state']=_0x588197;}['toJSON'](){return{'ids':this['ids'],'documentId':this['documentId'],'state':this['state']};}static['fromJSON'](_0x1f8117){return new BatchUpdateSuggestionsStateMessage(_0x1f8117['ids'],_0x1f8117['documentId'],_0x1f8117['state']);}}class TrackChangesService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];static ['_SERVICE']=0xa;constructor(_0x11f487){super(),this['_documentId']=_0x11f487;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x193f4c){if(this['_isConnected'])return;if(_0x193f4c['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x193f4c);const _0x1b0cdc=new ConnectMessage$1(this['_documentId']);this['_wsGateway']=_0x193f4c,this['stopListening'](_0x193f4c,'change:state');const _0x4b88ec=await _0x193f4c['_sendRequest'](0xa,ConnectMessage$1['TYPE'],MessagesCompressor['encode'](_0x1b0cdc)),_0x44fdc2=MessagesCompressor['decode'](_0x4b88ec,ConnectResponse$1);return this['listenTo'](_0x193f4c,'change:state',(_0x1f2982,_0x314120,_0x1740ed)=>this['_onWsGatewayStateChange'](_0x1740ed),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x193f4c,_0x44fdc2['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x44fdc2['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'](_0x22904d,_0x26740d,_0x1ed5f4,_0x468308=null,_0x15ac8f){const _0x22cb85=new AddSuggestionMessage(_0x22904d,this['_documentId'],_0x26740d,_0x1ed5f4,_0x468308,_0x15ac8f),_0x3379ba=await this['_sendRequest'](AddSuggestionMessage['TYPE'],_0x22cb85);return MessagesCompressor['decode'](_0x3379ba,AddSuggestionResponse);}async['get'](_0x5087a1,_0x92e016=0x1){const _0x376331=new GetSuggestionMessage(_0x5087a1,this['_documentId']);try{const _0x4996da=await this['_sendRequest'](GetSuggestionMessage['TYPE'],_0x376331);return MessagesCompressor['decode'](_0x4996da,GetSuggestionResponse);}catch(_0x3b3b65){if('CKEditorCloudServicesServerError'===_0x3b3b65['name']&&'404'===_0x3b3b65['code']&&_0x92e016<0x5)return await(_0x4ec24b=0x64*_0x92e016,new Promise(_0x348a7f=>{setTimeout(_0x348a7f,_0x4ec24b);})),this['get'](_0x5087a1,_0x92e016+0x1);if('CKEditorCloudServicesServerError'===_0x3b3b65['name'])throw _0x3b3b65;throw CKEditorCloudServicesServerError['fromPublicError'](_0x3b3b65);}var _0x4ec24b;}async['getAll'](){const _0x5c2ad2=new GetAllSuggestionsMessage(this['_documentId']),_0x5e70cc=await this['_sendRequest'](GetAllSuggestionsMessage['TYPE'],_0x5c2ad2),{suggestions:_0xf9fe25}=MessagesCompressor['decode'](_0x5e70cc,GetAllSuggestionResponse);return _0xf9fe25;}async['update'](_0x2f2195,_0xc5cf7f={}){const {hasComments:_0x1fdfd3,state:_0x4e4fe1,attributes:_0x2772c9}=_0xc5cf7f,_0x219f67=void 0x0!==_0x1fdfd3,_0x2cae06=new UpdateSuggestionMessage(_0x2f2195,this['_documentId'],_0x1fdfd3,_0x219f67,_0x4e4fe1,_0x2772c9);await this['_sendRequest'](UpdateSuggestionMessage['TYPE'],_0x2cae06);}async['batchUpdateState'](_0x5827af){const _0x1f109e=new BatchUpdateSuggestionsStateMessage(_0x5827af['ids'],this['_documentId'],_0x5827af['state']);await this['_sendRequest'](BatchUpdateSuggestionsStateMessage['TYPE'],_0x1f109e);}['_connectToChannel'](_0x5c828a,_0x1fe00f){this['_channel']=_0x5c828a['_getChannel'](TrackChangesService['_SERVICE'],_0x1fe00f),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateSuggestionMessage['TYPE']),(_0x2173c1,_0x36bf13)=>{const _0x29fb58=MessagesCompressor['decode'](_0x36bf13,UpdateSuggestionMessage);this['fire']('suggestionUpdated',_0x29fb58);});}['_onWsGatewayStateChange'](_0x413403){_0x413403===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x1e5507,_0x24faa7){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Track\x20Changes',this);return this['_wsGateway']['_sendRequest'](0xa,_0x1e5507,MessagesCompressor['encode'](_0x24faa7));}}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(_0x2b3bcc,_0x485c1d=[]){super(),this['channel']=_0x2b3bcc,this['sockets']=_0x485c1d;}['toJSON'](){return{'channel':this['channel'],'sockets':this['sockets']['map'](_0x3804c0=>({'user':_0x3804c0['userId'],'session':_0x3804c0['id'],'role':_0x3804c0['role'],'permissions':_0x3804c0['permissions']}))};}static['fromJSON'](_0x4da82c){return new SessionsConnectResponse(_0x4da82c['channel'],_0x4da82c['sockets']['map'](_0x4a857a=>({'id':_0x4a857a['session'],'userId':_0x4a857a['user'],'role':_0x4a857a['role'],'permissions':_0x4a857a['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(_0x53f63c,_0xb077ba){super(),this['id']=_0x53f63c,this['sessionType']=_0xb077ba;}['toJSON'](){return{'id':this['id'],'sessionType':this['sessionType']};}static['fromJSON'](_0x46b537){return new SessionsConnectMessage(_0x46b537['id'],_0x46b537['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(_0x2a4ee1,_0x537fed,_0x61fb75,_0x232100){super(),this['id']=_0x2a4ee1,this['userId']=_0x537fed,this['role']=_0x61fb75,this['permissions']=_0x232100;}['toJSON'](){return{'id':this['id'],'userId':this['userId']??void 0x0,'role':this['role']??void 0x0,'permissions':this['permissions']??void 0x0};}static['fromJSON'](_0xd7365d){return new SocketConnectMessage(_0xd7365d['id'],_0xd7365d['userId'],_0xd7365d['role'],_0xd7365d['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(_0x25719c){super(),this['id']=_0x25719c;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](_0xe1a1b6){return new SocketDisconnectMessage(_0xe1a1b6['id']);}}class SessionCollection extends Collection$1{['_id'];['_sessionType'];['_handlers']=new Map();['_channel'];['_wsGateway'];['_connected'];['_eventsQueue']=[];['_isRunning']=!0x1;constructor(_0x162785,_0x12ab2e){super({'idProperty':'id'}),this['_id']=_0x162785,this['_sessionType']=_0x12ab2e;}async['connect'](_0x5331d6){this['_wsGateway']=_0x5331d6,this['stopListening'](_0x5331d6,'change:state');const _0x37f2d2=new SessionsConnectMessage(this['_id'],this['_sessionType']);let _0x4602f4;try{const _0x10aa00=await this['_wsGateway']['_sendRequest'](0x3,SessionsConnectMessage['TYPE'],MessagesCompressor['encode'](_0x37f2d2));_0x4602f4=MessagesCompressor['decode'](_0x10aa00,SessionsConnectResponse);}catch(_0x4dff87){_0x4602f4=new SessionsConnectResponse(this['_id'],[]);}this['_connectToChannel'](this['_wsGateway'],_0x4602f4['channel'],this['_sessionType']);const _0x1ead34=await async function(_0x3da627,_0x4496aa){const _0x8b6793=_0x4496aa['map'](_0x7b8aef=>_0x7b8aef['userId']),_0x5b4a91=_0x8b6793['length']?await User['getMany'](_0x3da627,_0x8b6793):[];return _0x4496aa['map'](_0x12aeab=>{const _0x303522={'id':_0x12aeab['id'],'role':_0x12aeab['role'],'permissions':_0x12aeab['permissions']};return _0x303522['user']=_0x12aeab['userId']&&_0x5b4a91['find'](_0x49b4b8=>_0x49b4b8['id']===_0x12aeab['userId'])||new User(),_0x303522;});}(this['_wsGateway'],_0x4602f4['sockets']);for(const _0x98a883 of _0x1ead34)super['add'](_0x98a883);this['_connected']=!0x0,this['fire']('connected'),this['listenTo'](this['_wsGateway'],'change:state',(_0x54f908,_0x661bc0,_0x4c0814)=>this['_onWsGatewayStateChange'](_0x4c0814),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),await this['_runQueue']();}['disconnect'](_0x39c952=!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']&&_0x39c952&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['fire']('disconnected'),_0x39c952&&this['stopListening']();}}['add'](_0x5782b6,_0xedf94){throw new TypeError('The\x20collection\x20is\x20read-only.');}['remove'](_0x414ae6){throw new TypeError('The\x20collection\x20is\x20read-only.');}['_connectToChannel'](_0x4fb31a,_0x24a784,_0xbe0e9d){this['_channel']=_0x4fb31a['_getChannel'](_0xbe0e9d,_0x24a784),this['_channel']&&(this['_addHandler'](this['_channel'],SocketConnectMessage['TYPE'],async _0x5afd82=>{const _0x2faa55=MessagesCompressor['decode'](_0x5afd82,SocketConnectMessage);if(-0x1===this['getIndex'](_0x2faa55['id'])){const _0x383fbd={'id':_0x2faa55['id'],'role':_0x2faa55['role'],'permissions':_0x2faa55['permissions']};_0x2faa55['userId']&&(_0x383fbd['user']=await User['get'](_0x4fb31a,_0x2faa55['userId'])),super['add'](_0x383fbd);}}),this['_addHandler'](this['_channel'],SocketDisconnectMessage['TYPE'],_0x2d3a63=>{const _0x386d36=MessagesCompressor['decode'](_0x2d3a63,SocketDisconnectMessage);-0x1!==this['getIndex'](_0x386d36['id'])&&super['remove'](_0x386d36['id']);}));}async['_onWsGatewayStateChange'](_0x498e3b){_0x498e3b===WebSocketGateway$1['STATE_DISCONNECTED']&&this['disconnect'](!0x1),_0x498e3b===WebSocketGateway$1['STATE_CONNECTED']&&await this['connect'](this['_wsGateway']);}async['_runQueue'](){if(this['_isRunning']||!this['_connected'])return;let _0x498e71;for(this['_isRunning']=!0x0;_0x498e71=this['_eventsQueue']['shift']();){const _0x4e1dc8=this['_handlers']['get'](_0x498e71['eventName']);_0x4e1dc8&&await _0x4e1dc8(_0x498e71['data']);}this['_isRunning']=!0x1;}['_addHandler'](_0x2329bb,_0x32dc35,_0x3a693b){const _0x1c52f7=_0x2329bb['getEventName'](_0x32dc35,!0x0);this['listenTo'](_0x2329bb,_0x1c52f7,async(_0x80dc31,_0x34bdd7)=>{const _0x566fe7=_0x80dc31['name'];this['_eventsQueue']['push']({'eventName':_0x566fe7,'data':_0x34bdd7}),await this['_runQueue']();}),this['_handlers']['set'](_0x1c52f7,_0x3a693b);}}let Sessions$1=class{static async['getConnectedSessions'](_0x13cdd0,_0x1e35a5,_0x3eda74){const _0x1477ce=new SessionCollection(_0x1e35a5,_0x3eda74);return await _0x1477ce['connect'](_0x13cdd0),_0x1477ce;}};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(_0x2df68f,_0x8505a2,_0x401710,_0x2ed200,_0x41df8c=''){super(),this['id']=_0x2df68f,this['buffers']=_0x8505a2,this['types']=_0x401710,this['bundleVersion']=_0x2ed200,this['lastOperationId']=_0x41df8c;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x3e2364){return new CollaborativeEditingConnectMessage(_0x3e2364['id'],_0x3e2364['buffers'],_0x3e2364['types'],_0x3e2364['bundleVersion'],_0x3e2364['lastOperationId']);}}class OperationMetadataHelpers{static['prepareMetadataForOperations'](_0x29e7d8,_0xb130fe){if(!_0x29e7d8?.['length']||!_0xb130fe?.['length'])return[];const _0x13df25=[];let _0x5a4fb7=0x0;for(const _0x3079a0 of _0x29e7d8)if(0x0!==_0x3079a0){if(!_0xb130fe[_0x5a4fb7])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x13df25['push'](_0xb130fe[_0x5a4fb7]),_0x5a4fb7++;}else _0x13df25['push'](_0x13df25[_0x13df25['length']-0x1]);return _0x13df25;}static['removeUnnecessaryMetadata'](_0x3cac61,_0xadc8ed){if(!_0x3cac61?.['length']||!_0xadc8ed?.['length'])return[];const _0x39c20f=[];for(let _0x403300=0x0;_0x403300<_0x3cac61['length'];_0x403300++)if(0x0!==_0x3cac61[_0x403300]){if(!_0xadc8ed[_0x403300])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x39c20f['push'](_0xadc8ed[_0x403300]);}return _0x39c20f;}}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:_0x1b6718,..._0xc99697}){const _0x55c901={..._0xc99697};return _0x1b6718?.['toISOString']&&(_0x55c901['createdAt']=_0x1b6718['toISOString']()),_0x55c901;}static['fromJSON']({createdAt:_0x194659,..._0x3d5b77}){const _0x3f1c02={..._0x3d5b77};return _0x194659&&(_0x3f1c02['createdAt']=new Date(_0x194659)),_0x3f1c02;}}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(_0x9a3633,_0x310230,_0x1637d3,_0x20da75,_0x1a3846=[],_0x375e1a=''){super(),this['id']=_0x9a3633,this['buffers']=_0x310230,this['types']=_0x1637d3,this['baseVersion']=_0x20da75,this['metadata']=_0x1a3846,this['lastOperationId']=_0x375e1a;}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'](_0x5a2835){return new CollaborativeEditingUpdateMessage(_0x5a2835['id'],_0x5a2835['buffers'],_0x5a2835['types'],_0x5a2835['baseVersion'],OperationMetadataHelpers['prepareMetadataForOperations'](_0x5a2835['types'],_0x5a2835['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),_0x5a2835['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(_0x591b6f,_0x3fe2c3,_0x46bf6a){super(),this['id']=_0x591b6f,this['lastKnowVersion']=_0x3fe2c3,this['bundleVersion']=_0x46bf6a;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x4cf500){return new CollaborativeEditingReconnectMessage(_0x4cf500['id'],_0x4cf500['lastKnowVersion'],_0x4cf500['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(_0x5a3b8b,_0x4088b0=[],_0xb298e4=[],_0x5b4def=[],_0x119c44='',_0x259ff5=null){super(),this['version']=_0x5a3b8b,this['buffers']=_0x4088b0,this['types']=_0xb298e4,this['metadata']=_0x5b4def,this['lastOperationId']=_0x119c44,this['lastOperationAcceptedAt']=_0x259ff5;}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'](_0x365290){return new CollaborativeEditingResponse(_0x365290['version'],_0x365290['buffers'],_0x365290['types'],OperationMetadataHelpers['prepareMetadataForOperations'](_0x365290['types'],_0x365290['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),_0x365290['lastOperationId'],_0x365290['lastOperationAcceptedAt']?new Date(_0x365290['lastOperationAcceptedAt']):null);}static['create'](_0x286544){return new CollaborativeEditingResponse(_0x286544['version'],_0x286544['buffers'],_0x286544['types'],_0x286544['metadata'],_0x286544['lastOperationId'],_0x286544['lastOperationAcceptedAt']?new Date(_0x286544['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(_0x205f64,_0x4e2199,_0x8b2e08=[],_0x54c6cf=[],_0xfde9cc=0x0,_0x5a2825=[],_0x4abe65=null,_0x5a29b2='',_0x1b4f2e='',_0x1143fe=null){super(),this['channel']=_0x205f64,this['version']=_0x4e2199,this['buffers']=_0x8b2e08,this['types']=_0x54c6cf,this['offset']=_0xfde9cc,this['metadata']=_0x5a2825,this['initData']=_0x4abe65,this['sessionId']=_0x5a29b2,this['lastOperationId']=_0x1b4f2e,this['sessionCreatedAt']=_0x1143fe;}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'](_0x45b5cd){return new CollaborativeEditingConnectResponse(_0x45b5cd['channel'],_0x45b5cd['version'],_0x45b5cd['buffers'],_0x45b5cd['types'],_0x45b5cd['offset'],_0x45b5cd['metadata'],_0x45b5cd['initData'],_0x45b5cd['sessionId'],_0x45b5cd['lastOperationId'],_0x45b5cd['sessionCreatedAt']);}static['fromJSON'](_0xbb336f){let _0xd2e765=null;return!0x0===_0xbb336f['isInitialized']?_0xd2e765=_0xbb336f['initData']??'':'boolean'!=typeof _0xbb336f['isInitialized']&&_0xbb336f['initData']&&(_0xd2e765=_0xbb336f['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0xbb336f['channel'],'version':_0xbb336f['version'],'buffers':_0xbb336f['buffers'],'types':_0xbb336f['types'],'offset':_0xbb336f['offset'],'metadata':OperationMetadataHelpers['prepareMetadataForOperations'](_0xbb336f['types'],_0xbb336f['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),'initData':_0xd2e765,'sessionId':_0xbb336f['sessionId'],'lastOperationId':_0xbb336f['lastOperationId'],'sessionCreatedAt':_0xbb336f['sessionCreatedAt']?new Date(_0xbb336f['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(_0x25fa3a,_0x1f9dcd){super(),this['lastDocumentSession']=_0x25fa3a,this['currentDocumentSession']=_0x1f9dcd;}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'](_0xff5e2b){const _0x2d2524=_0xff5e2b['lastDocumentSessionId']?{'id':_0xff5e2b['lastDocumentSessionId'],'lastOperationId':_0xff5e2b['lastDocumentSessionOperationId']}:void 0x0,_0x5d1240=_0xff5e2b['currentDocumentSessionId']?{'lastOperationId':_0xff5e2b['currentDocumentSessionOperationId'],'version':_0xff5e2b['currentDocumentSessionVersion'],'id':_0xff5e2b['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0x2d2524,_0x5d1240);}}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(_0x2d4c17){super(),this['documentId']=_0x2d4c17;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x4b4d71){return new GetDocumentDetailsMessage(_0x4b4d71['documentId']);}}class CollaborativeEditingService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){static ['_SERVICE']=0x1;['_bundleVersion'];['_id'];['_isConnected'];['_wsGateway'];['_channel'];['_connectedSessions'];constructor(_0x491c09,_0x1fabe9){if(super(),!_0x491c09)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x1fabe9??v4(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x491c09;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](_0x3f309d,_0x3cd6c3={'buffers':[],'types':[]},_0x66ab5){const _0x3e7537=new CollaborativeEditingConnectMessage(this['getId'](),_0x3cd6c3['buffers'],_0x3cd6c3['types'],this['_bundleVersion'],_0x66ab5);return this['_connect'](_0x3f309d,_0x3e7537);}['reconnect'](_0x53b654,_0x17b9a3){if(this['isConnected']())throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x53b654);return this['_connect'](_0x53b654,new CollaborativeEditingReconnectMessage(this['getId'](),_0x17b9a3,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 _0x811cc5=new GetDocumentDetailsMessage(this['getId']());if(!this['_wsGateway'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x3119db=await this['_wsGateway']['_sendRequest'](0x1,GetDocumentDetailsMessage['TYPE'],MessagesCompressor['encode'](_0x811cc5));return MessagesCompressor['decode'](_0x3119db,GetDocumentDetailsResponse);}async['sendOperations'](_0xbce348,_0x3db6d0,_0x18123d){if(!_0xbce348?.['types']?.['length'])throw new CKEditorCloudServicesError('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x3336dd='number'==typeof _0x3db6d0?_0x3db6d0:parseInt(_0x3db6d0);if(!Number['isInteger'](_0x3336dd)||_0x3336dd<0x0)throw new CKEditorCloudServicesError('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x5aea41=new CollaborativeEditingUpdateMessage(this['getId'](),_0xbce348['buffers'],_0xbce348['types'],_0x3336dd,[],_0x18123d);if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x343df4=await this['_wsGateway']['_sendRequest'](0x1,CollaborativeEditingUpdateMessage['TYPE'],MessagesCompressor['encode'](_0x5aea41));return MessagesCompressor['decode'](_0x343df4,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'](_0x5e2e2a,_0x1e4d8f){return Sessions$1['getConnectedSessions'](_0x5e2e2a,_0x1e4d8f,0x1);}async['_connect'](_0x2b2479,_0x303bb2){if(this['isConnected']())return;if(_0x2b2479['state']!==WebSocketGateway$1['STATE_CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x2b2479);this['_wsGateway']=_0x2b2479,this['stopListening'](_0x2b2479,'change:state');const _0x2862cc=await _0x2b2479['_sendRequest'](0x1,_0x303bb2['constructor']['TYPE'],MessagesCompressor['encode'](_0x303bb2)),_0x870ac7=MessagesCompressor['decode'](_0x2862cc,CollaborativeEditingConnectResponse);return this['listenTo'](_0x2b2479,'change:state',(_0x308a4f,_0x24d05e,_0x4e6f8d)=>this['_onWsGatewayStateChange'](_0x4e6f8d),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x2b2479,_0x870ac7['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x870ac7;}['_connectToChannel'](_0x436d7e,_0x113052){this['_channel']=_0x436d7e['_getChannel'](0x1,_0x113052),this['listenTo'](this['_channel'],this['_channel']['getEventName'](CollaborativeEditingUpdateMessage['TYPE']),(_0x4f3418,_0x1ce1fb)=>{const _0x1909f9=MessagesCompressor['decode'](_0x1ce1fb,CollaborativeEditingUpdateMessage);this['fire']('operationsReceived',_0x1909f9['baseVersion'],_0x1909f9['data'],_0x1909f9['metadata']);});}['_onWsGatewayStateChange'](_0x3721c3){_0x3721c3===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'](_0x43345d){return{..._0x43345d,'createdAt':_0x43345d['createdAt']?.['toISOString'](),'attributes':_0x43345d['attributes']?JSON['stringify'](_0x43345d['attributes']):null};}static['fromJSON'](_0xe12d19){return{..._0xe12d19,'createdAt':new Date(_0xe12d19['createdAt']),'attributes':_0xe12d19['attributes']?JSON['parse'](_0xe12d19['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'](_0x191840){return{..._0x191840,'createdAt':_0x191840['createdAt']?.['toISOString'](),'deletedAt':_0x191840['deletedAt']?.['toISOString'](),'resolvedAt':_0x191840['resolvedAt']?.['toISOString'](),'attributes':_0x191840['attributes']?JSON['stringify'](_0x191840['attributes']):null,'context':_0x191840['context']?JSON['stringify'](_0x191840['context']):_0x191840['context'],'comments':_0x191840['comments']?.['map'](CommentDescriptor['toJSON']),'unlinkedAt':_0x191840['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x41db25){return{..._0x41db25,'createdAt':_0x41db25['createdAt']?new Date(_0x41db25['createdAt']):void 0x0,'deletedAt':_0x41db25['deletedAt']?new Date(_0x41db25['deletedAt']):void 0x0,'resolvedAt':_0x41db25['resolvedAt']?new Date(_0x41db25['resolvedAt']):void 0x0,'attributes':_0x41db25['attributes']?JSON['parse'](_0x41db25['attributes']):null,'context':_0x41db25['context']?JSON['parse'](_0x41db25['context']):void 0x0,'comments':_0x41db25['comments']?.['map'](CommentDescriptor['fromJSON']),'unlinkedAt':_0x41db25['unlinkedAt']?new Date(_0x41db25['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(_0x243865,_0x478d6c,_0x2b58e5,_0x395f26='',_0x30b52f,_0x1cb460='',_0x15fbe4=null,_0x1b7e1e){super(),this['documentId']=_0x243865,this['commentThreadId']=_0x478d6c,this['content']=_0x2b58e5,this['commentId']=_0x395f26,this['userId']=_0x1cb460,this['attributes']=_0x15fbe4,this['commentThread']=_0x1b7e1e,this['createdAt']=_0x30b52f?new Date(_0x30b52f):'';}['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'](_0x391596){return new AddCommentMessage(_0x391596['documentId'],_0x391596['commentThreadId'],_0x391596['content'],_0x391596['commentId']?_0x391596['commentId']:void 0x0,_0x391596['createdAt']?new Date(_0x391596['createdAt']):void 0x0,_0x391596['userId']?_0x391596['userId']:void 0x0,_0x391596['attributes']?JSON['parse'](_0x391596['attributes']):{},_0x391596['commentThread']?CommentsThreadDescriptor['fromJSON'](_0x391596['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(_0x13ac01,_0x142e3c,_0x7bfa6b){super(),this['commentThreadId']=_0x13ac01,this['commentId']=_0x142e3c,this['createdAt']=new Date(_0x7bfa6b);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](_0x1e3ad4){return new AddCommentResponse(_0x1e3ad4['commentThreadId'],_0x1e3ad4['commentId'],_0x1e3ad4['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(_0x130624){super(),this['documentId']=_0x130624;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0xbec9a7){return new ConnectMessage(_0xbec9a7['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(_0x536b53,_0x17225e,_0x58fcf1){super(),this['channel']=_0x536b53,this['_threads']=_0x17225e,this['_threadsV2']=_0x58fcf1,this['threads']=_0x58fcf1?.['length']?_0x58fcf1:_0x17225e;}['toJSON'](){return{'channel':this['channel'],'threads':this['_threads']?.['map'](_0x12ce79=>JSON['stringify'](_0x12ce79)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](_0x1b217f){return new ConnectResponse(_0x1b217f['channel'],_0x1b217f['threads']?.['map'](_0x98adc=>JSON['parse'](_0x98adc)),_0x1b217f['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(_0x5b0f87,_0x112663,_0x1c0593){super(),this['documentId']=_0x5b0f87,this['commentThreadId']=_0x112663,this['commentId']=_0x1c0593;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](_0x4ba687){return new RemoveCommentMessage(_0x4ba687['documentId'],_0x4ba687['commentThreadId'],_0x4ba687['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(_0x1d4ba4,_0x1b0dfe){super(),this['documentId']=_0x1d4ba4,this['commentThreadId']=_0x1b0dfe;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x1b0a3e){return new RemoveCommentThreadMessage(_0x1b0a3e['documentId'],_0x1b0a3e['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(_0x241607,_0x4acc16,_0xd77424,_0x489fb6,_0x10103b=null,_0x5af8f0=!0x1,_0x2c4698){super(),this['documentId']=_0x241607,this['commentThreadId']=_0x4acc16,this['commentId']=_0xd77424,this['content']=_0x489fb6,this['attributes']=_0x10103b,this['isAttributesUpdated']=_0x5af8f0,this['commentThread']=_0x2c4698;}['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'](_0x30e47d){return new UpdateCommentMessage(_0x30e47d['documentId'],_0x30e47d['commentThreadId'],_0x30e47d['commentId'],_0x30e47d['content'],_0x30e47d['attributes']?JSON['parse'](_0x30e47d['attributes']):null,_0x30e47d['isAttributesUpdated'],_0x30e47d['commentThread']?CommentsThreadDescriptor['fromJSON'](_0x30e47d['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(_0xc6fe98,_0x5e0e9b){super(),this['commentThreadId']=_0xc6fe98,this['documentId']=_0x5e0e9b;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](_0x664a72){return new GetCommentThreadMessage(_0x664a72['commentThreadId'],_0x664a72['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(_0x5f143b,_0xea88ad,_0x53d403,_0x2a7128,_0xc6bb4e,_0x268c7d,_0x5e4fdb,_0x5279d4,_0x27cc0a,_0x30fd39){super(),this['commentThreadId']=_0x5f143b,this['_comments']=_0xea88ad,this['_commentsV2']=_0x53d403,this['resolvedBy']=_0xc6bb4e,this['comments']=_0x53d403?.['length']?_0x53d403:_0xea88ad,this['createdAt']=_0x5e4fdb?new Date(_0x5e4fdb):void 0x0,this['deletedAt']='string'==typeof _0x5279d4?new Date(_0x5279d4):_0x5279d4,this['resolvedAt']='string'==typeof _0x27cc0a?new Date(_0x27cc0a):_0x27cc0a,this['unlinkedAt']='string'==typeof _0x30fd39?new Date(_0x30fd39):_0x30fd39,this['attributes']='string'==typeof _0x2a7128?JSON['parse'](_0x2a7128):_0x2a7128,this['context']='string'==typeof _0x268c7d?JSON['parse'](_0x268c7d):_0x268c7d;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'comments':this['_comments']?.['map'](_0x43bf43=>JSON['stringify'](_0x43bf43)),'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'](_0x49d010){return new GetCommentThreadResponse(_0x49d010['commentThreadId'],_0x49d010['comments']?.['map'](_0x344e90=>function(_0x1d2ee7){const _0x5ef490=JSON['parse'](_0x1d2ee7);return{..._0x5ef490,'createdAt':new Date(_0x5ef490['createdAt'])};}(_0x344e90)),_0x49d010['commentsV2']?.['map'](CommentDescriptor['fromJSON']),_0x49d010['attributes']?JSON['parse'](_0x49d010['attributes']):_0x49d010['attributes'],_0x49d010['resolvedBy'],_0x49d010['context']?JSON['parse'](_0x49d010['context']):_0x49d010['context'],_0x49d010['createdAt'],_0x49d010['deletedAt'],_0x49d010['resolvedAt'],_0x49d010['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(_0x1aa9aa){super(),this['documentId']=_0x1aa9aa;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x9bd14f){return new GetDocumentThreadsMessage(_0x9bd14f['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(_0x4930b8,_0x44a1c){super(),this['_threads']=_0x4930b8,this['_threadsV2']=_0x44a1c,this['threads']=_0x44a1c?.['length']?_0x44a1c:_0x4930b8;}['toJSON'](){return{'threads':this['_threads']?.['map'](_0x5907bf=>JSON['stringify'](_0x5907bf)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](_0x22b76b){return new GetDocumentThreadsResponse(_0x22b76b['threads']?.['map'](_0x41b3f8=>function(_0x3d0632){const _0x4853b0=JSON['parse'](_0x3d0632),_0x46e589={..._0x4853b0};return _0x4853b0['comments']&&(_0x46e589['comments']=_0x4853b0['comments']?.['map'](_0x32d12a=>({..._0x32d12a,'createdAt':new Date(_0x32d12a['createdAt'])}))),_0x46e589;}(_0x41b3f8)),_0x22b76b['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'](_0x311ba9){return{'commentId':_0x311ba9['commentId'],'createdAt':_0x311ba9['createdAt']?.['toISOString']()};}static['fromJSON'](_0x131d3b){return{'commentId':_0x131d3b['commentId'],'createdAt':new Date(_0x131d3b['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(_0x2bb407,_0x5b78ca,_0x53d6f2=[]){super(),this['commentThreadId']=_0x2bb407,this['comments']=_0x53d6f2,this['createdAt']=new Date(_0x5b78ca);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](_0x3ac778=>CommentThreadAddedCommentDescriptor['toJSON'](_0x3ac778))};}static['fromJSON'](_0x1378f4){return new AddCommentThreadResponse(_0x1378f4['commentThreadId'],_0x1378f4['createdAt'],_0x1378f4['comments']['map'](_0x2b3576=>CommentThreadAddedCommentDescriptor['fromJSON'](_0x2b3576)));}}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(_0x4aa8ef,_0xc119a5,_0x3e7714=[],_0x5a009f,_0xe249c7=null,_0x2eedfe=null,_0x524fed=null,_0x519519=null,_0x6c76fc=null){super(),this['documentId']=_0x4aa8ef,this['commentThreadId']=_0xc119a5,this['comments']=_0x3e7714,this['context']=_0x5a009f,this['resolvedBy']=_0xe249c7,this['attributes']=_0x6c76fc,this['createdAt']=_0x2eedfe?new Date(_0x2eedfe):'',this['resolvedAt']=_0x524fed?new Date(_0x524fed):'',this['deletedAt']=_0x519519?new Date(_0x519519):'';}['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'](_0x42a718=>CommentDescriptor['toJSON'](_0x42a718))};}static['fromJSON'](_0x2d3bd1){return new AddCommentThreadMessage(_0x2d3bd1['documentId'],_0x2d3bd1['commentThreadId'],_0x2d3bd1['comments']?.['map'](_0x12e081=>CommentDescriptor['fromJSON']({..._0x12e081,'documentId':_0x2d3bd1['documentId'],'commentThreadId':_0x2d3bd1['commentThreadId']})),_0x2d3bd1['context']?JSON['parse'](_0x2d3bd1['context']):_0x2d3bd1['context'],_0x2d3bd1['resolvedBy'],_0x2d3bd1['createdAt']?new Date(_0x2d3bd1['createdAt']):void 0x0,_0x2d3bd1['resolvedAt']?new Date(_0x2d3bd1['resolvedAt']):void 0x0,_0x2d3bd1['deletedAt']?new Date(_0x2d3bd1['deletedAt']):void 0x0,_0x2d3bd1['attributes']?JSON['parse'](_0x2d3bd1['attributes']):_0x2d3bd1['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(_0x4052fb,_0x5a1370,_0x562703,_0x1b16e6){super(),this['commentThreadId']=_0x4052fb,this['documentId']=_0x5a1370,this['resolvedBy']=_0x562703,this['resolvedAt']=_0x1b16e6?new Date(_0x1b16e6):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0xcc10f4){return new ResolveCommentThreadMessage(_0xcc10f4['commentThreadId'],_0xcc10f4['documentId'],_0xcc10f4['resolvedBy'],_0xcc10f4['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(_0x2390e3,_0x100570){super(),this['commentThreadId']=_0x2390e3,this['documentId']=_0x100570;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x31d6b3){return new ReopenCommentThreadMessage(_0x31d6b3['commentThreadId'],_0x31d6b3['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(_0x54712b,_0x255125,_0x4f4361,_0x918d2a=null,_0x5ebdb7=null){super(),this['commentThreadId']=_0x54712b,this['documentId']=_0x255125,this['context']=_0x4f4361,this['attributes']=_0x918d2a,this['unlinkedAt']=_0x5ebdb7?new Date(_0x5ebdb7):'';}['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'](_0x42e595){return new UpdateCommentThreadMessage(_0x42e595['commentThreadId'],_0x42e595['documentId'],_0x42e595['context']?JSON['parse'](_0x42e595['context']):_0x42e595['context'],_0x42e595['attributes']?JSON['parse'](_0x42e595['attributes']):null,_0x42e595['unlinkedAt']?new Date(_0x42e595['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(_0x44a3a6,_0x16b7cc,_0x1b4f14,_0x4d69c0){super(),this['commentThreadId']=_0x44a3a6,this['documentId']=_0x16b7cc,this['resolvedBy']=_0x1b4f14,this['resolvedAt']=new Date(_0x4d69c0);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](_0x57dc83){return new ResolveCommentThreadResponse(_0x57dc83['commentThreadId'],_0x57dc83['documentId'],_0x57dc83['resolvedBy'],_0x57dc83['resolvedAt']);}}class CommentsService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];['_connectedSessions'];static ['_SERVICE']=0x9;constructor(_0x3435c2){super(),this['_documentId']=_0x3435c2;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x2bc114){if(this['_isConnected'])return;if(_0x2bc114['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x2bc114);const _0x447d78=new ConnectMessage(this['_documentId']);this['_wsGateway']=_0x2bc114,this['stopListening'](_0x2bc114,'change:state');const _0x275555=await _0x2bc114['_sendRequest'](0x9,ConnectMessage['TYPE'],MessagesCompressor['encode'](_0x447d78)),{channel:_0x279877,threads:_0xdfa07c}=MessagesCompressor['decode'](_0x275555,ConnectResponse);return this['listenTo'](_0x2bc114,'change:state',(_0x46c572,_0x30796d,_0x33abdf)=>this['_onWsGatewayStateChange'](_0x33abdf),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x2bc114,_0x279877),this['_isConnected']=!0x0,this['fire']('connected'),_0xdfa07c;}['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'](_0x1f6997,_0x4f88eb,_0x17262a,_0x42e346){const _0xac6a9b=new AddCommentMessage(this['_documentId'],_0x1f6997,_0x17262a,_0x4f88eb,void 0x0,void 0x0,_0x42e346),_0x5c816a=await this['_sendRequest'](AddCommentMessage['TYPE'],_0xac6a9b);return MessagesCompressor['decode'](_0x5c816a,AddCommentResponse);}async['updateComment'](_0x31f2c2,_0x12ddc3,_0x1fd27e,_0x835b69){const _0x46a5bb=void 0x0!==_0x835b69,_0x3a9cc3=new UpdateCommentMessage(this['_documentId'],_0x31f2c2,_0x12ddc3,_0x1fd27e,_0x835b69,_0x46a5bb);await this['_sendRequest'](UpdateCommentMessage['TYPE'],_0x3a9cc3);}async['removeComment'](_0x2689ea,_0x1d10bb){const _0x51409c=new RemoveCommentMessage(this['_documentId'],_0x2689ea,_0x1d10bb);await this['_sendRequest'](RemoveCommentMessage['TYPE'],_0x51409c);}async['removeCommentThread'](_0x4847f3){const _0x155762=new RemoveCommentThreadMessage(this['_documentId'],_0x4847f3);await this['_sendRequest'](RemoveCommentThreadMessage['TYPE'],_0x155762);}async['addCommentThread'](_0xbcdcfe){const _0x543ceb=new AddCommentThreadMessage(this['_documentId'],_0xbcdcfe['commentThreadId'],_0xbcdcfe['comments']?.['map'](_0x33c3f7=>({..._0x33c3f7,'documentId':this['_documentId'],'commentThreadId':_0xbcdcfe['commentThreadId']})),_0xbcdcfe['context'],_0xbcdcfe['resolvedBy'],_0xbcdcfe['createdAt'],_0xbcdcfe['resolvedAt'],_0xbcdcfe['deletedAt'],_0xbcdcfe['attributes']),_0x47e966=await this['_sendRequest'](AddCommentThreadMessage['TYPE'],_0x543ceb);return MessagesCompressor['decode'](_0x47e966,AddCommentThreadResponse);}async['resolveCommentThread'](_0x4b23a0){const _0x1d2b5a=new ResolveCommentThreadMessage(_0x4b23a0,this['_documentId']),_0x21fce3=await this['_sendRequest'](ResolveCommentThreadMessage['TYPE'],_0x1d2b5a);return MessagesCompressor['decode'](_0x21fce3,ResolveCommentThreadResponse);}async['reopenCommentThread'](_0x10a13a){const _0x6480a3=new ReopenCommentThreadMessage(_0x10a13a,this['_documentId']);await this['_sendRequest'](ReopenCommentThreadMessage['TYPE'],_0x6480a3);}async['updateCommentThread'](_0x5007d8){const _0x1c6399=new UpdateCommentThreadMessage(_0x5007d8['commentThreadId'],this['_documentId'],_0x5007d8['context'],_0x5007d8['attributes'],_0x5007d8['unlinkedAt']);await this['_sendRequest'](UpdateCommentThreadMessage['TYPE'],_0x1c6399);}async['getCommentThread'](_0x4f75f8,_0x34c88b=0x1){const _0x591b25=new GetCommentThreadMessage(_0x4f75f8,this['_documentId']);try{const _0x3b5ae4=await this['_sendRequest'](GetCommentThreadMessage['TYPE'],_0x591b25),_0x28bb73=MessagesCompressor['decode'](_0x3b5ae4,GetCommentThreadResponse);return{'commentThreadId':_0x28bb73['commentThreadId'],'comments':_0x28bb73['comments'],'attributes':_0x28bb73['attributes'],'context':_0x28bb73['context'],'resolvedAt':_0x28bb73['resolvedAt'],'resolvedBy':_0x28bb73['resolvedBy'],'deletedAt':_0x28bb73['deletedAt'],'unlinkedAt':_0x28bb73['unlinkedAt']};}catch(_0x4be2bb){if('CKEditorCloudServicesServerError'===_0x4be2bb['name']&&'404'===_0x4be2bb['code']&&_0x34c88b<0x5)return await(_0x4e2a49=0x64*_0x34c88b,new Promise(_0x423a11=>{setTimeout(_0x423a11,_0x4e2a49);})),this['getCommentThread'](_0x4f75f8,_0x34c88b+0x1);if('CKEditorCloudServicesServerError'===_0x4be2bb['name'])throw _0x4be2bb;throw CKEditorCloudServicesServerError['fromPublicError'](_0x4be2bb);}var _0x4e2a49;}async['getDocumentThreads'](){const _0x5e4788=new GetDocumentThreadsMessage(this['_documentId']),_0x4c8e82=await this['_sendRequest'](GetDocumentThreadsMessage['TYPE'],_0x5e4788),{threads:_0x312544}=MessagesCompressor['decode'](_0x4c8e82,GetDocumentThreadsResponse);return{'threads':_0x312544};}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'](_0x2e3ec0,_0x5bb782){this['_channel']=_0x2e3ec0['_getChannel'](CommentsService['_SERVICE'],_0x5bb782),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](AddCommentMessage['TYPE']),(_0x4c2182,_0x1413f4)=>{const _0x7b8000=MessagesCompressor['decode'](_0x1413f4,AddCommentMessage);this['fire']('commentAdded',_0x7b8000);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](RemoveCommentMessage['TYPE']),(_0x78c2ea,_0x4648de)=>{const _0x3fd14b=MessagesCompressor['decode'](_0x4648de,RemoveCommentMessage);this['fire']('commentRemoved',_0x3fd14b);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateCommentMessage['TYPE']),(_0x5021e4,_0x5747d5)=>{const _0xc54dd=MessagesCompressor['decode'](_0x5747d5,UpdateCommentMessage);this['fire']('commentUpdated',_0xc54dd);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](RemoveCommentThreadMessage['TYPE']),(_0x277bd9,_0x544319)=>{const _0x182d69=MessagesCompressor['decode'](_0x544319,RemoveCommentThreadMessage);this['fire']('commentThreadRemoved',_0x182d69);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](AddCommentThreadMessage['TYPE']),(_0x30df8f,_0x4d1940)=>{const _0x17e51a=MessagesCompressor['decode'](_0x4d1940,AddCommentThreadMessage);this['fire']('commentThreadAdded',_0x17e51a);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateCommentThreadMessage['TYPE']),(_0x20876f,_0x239979)=>{const _0x186975=MessagesCompressor['decode'](_0x239979,UpdateCommentThreadMessage);this['fire']('commentThreadUpdated',_0x186975);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ResolveCommentThreadMessage['TYPE']),(_0x52445b,_0x260910)=>{const _0x3594e3=MessagesCompressor['decode'](_0x260910,ResolveCommentThreadMessage);this['fire']('commentThreadResolved',_0x3594e3);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ReopenCommentThreadMessage['TYPE']),(_0x2a63af,_0x30c94c)=>{const _0x26719b=MessagesCompressor['decode'](_0x30c94c,ReopenCommentThreadMessage);this['fire']('commentThreadReopened',_0x26719b);}));}['_onWsGatewayStateChange'](_0x2ae332){_0x2ae332===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x54172d,_0x4c5e42){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0x54172d,MessagesCompressor['encode'](_0x4c5e42));}}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(_0x444fd4){super(_0x444fd4),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 _0x30a520=this['context'],_0x235147=_0x30a520['plugins']['get']('CloudServices'),_0x52e909=_0x30a520['plugins']['get'](Notification);if(!_0x235147['token'])throw new CKEditorError('websocketgateway-missing-token',this);if(!_0x235147['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'](_0x235147['token'],_0x235147['webSocketUrl'],{'timeout':0x3e8*this['context']['config']['get']('cloudServices.connectionTimeout'),'requestTimeout':0x3e8*this['context']['config']['get']('cloudServices.requestTimeout')})['then'](_0x112192=>{if(this['connection']=_0x112192,this['bind']('state')['to'](_0x112192,'state',this,'_isBrowserOffline',(_0x6dc28a,_0x239060)=>('connected'!==_0x6dc28a&&(this['_shouldPluginsReconnect']=!0x0),_0x239060||_0x6dc28a!==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',(_0x3a93d1,_0xdf97a0)=>{if('limitExceeded'!==_0xdf97a0['code'])throw console['error'](_0xdf97a0),new CKEditorError('cloudservices-init',null,{'originalError':_0xdf97a0});_0x52e909['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'});}),!_0x112192['me'])return new Promise(_0x19a58e=>_0x112192['on']('change:me',_0x19a58e));})['catch'](_0x7687de=>{throw console['error'](_0x7687de),new CKEditorError('cloudservices-init',null,{'originalError':_0x7687de});});}['addToReconnectionStack'](_0x25b565){if('function'!=typeof _0x25b565['reconnect'])throw new CKEditorError('websocketgateway-invalid-plugin-interface',this);if(this['isInReconnectionStack'](_0x25b565))throw new CKEditorError('websocketgateway-plugin-already-registered',this,{'name':_0x25b565['constructor']['pluginName']});this['_reconnectionStack']['add'](_0x25b565);}['removeFromReconnectionStack'](_0x1f68aa){this['_reconnectionStack']['delete'](_0x1f68aa);}['isInReconnectionStack'](_0x1ae02a){return this['_reconnectionStack']['has'](_0x1ae02a);}['_reconnect'](){return this['connection']['reconnect']()['then'](()=>Promise['all'](Array['from'](this['_reconnectionStack'],_0x309119=>_0x309119['reconnect']())))['then'](()=>this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTED'])['catch'](_0x5d915c=>{throw console['error'](_0x5d915c),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(_0x60d98d){super(_0x60d98d),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 _0x449fe9=this['context']['plugins']['get'](WebSocketGateway);this['listenTo'](_0x449fe9,'change:state',(_0x1c5fc8,_0x423d53,_0x334004)=>{if('connected'!==_0x334004)this['channelSessions']['forEach'](_0x92d430=>_0x92d430['clear']()),this['channelConnectedUsers']['forEach'](_0x5f40fb=>_0x5f40fb['clear']()),this['allConnectedUsers']['clear']();else{for(const [_0x53730c,_0x3f9b66]of this['_registeredSessions'])for(const _0xa896a3 of _0x3f9b66)this['_handleSessionAdd'](_0x53730c,_0xa896a3);}}),this['_createUser'](_0x449fe9['connection']['me'],!0x0);}['register'](_0x2c367d,_0x1a4208){if(this['_registeredSessions']['has'](_0x2c367d))throw new CKEditorError('sessions-register-already-registered',null,{'channelId':_0x2c367d});this['_registeredSessions']['set'](_0x2c367d,_0x1a4208),this['channelSessions']['set'](_0x2c367d,new Collection()),this['channelConnectedUsers']['set'](_0x2c367d,new Collection()),this['listenTo'](_0x1a4208,'add',(_0x1a2e50,_0x38a43c)=>this['_handleSessionAdd'](_0x2c367d,_0x38a43c)),this['listenTo'](_0x1a4208,'remove',(_0x2638b2,_0x99dd11)=>this['_handleSessionRemove'](_0x2c367d,_0x99dd11));for(const _0x591329 of _0x1a4208)this['_handleSessionAdd'](_0x2c367d,_0x591329);}['unregister'](_0x384dee){if(!this['_registeredSessions']['has'](_0x384dee))throw new CKEditorError('sessions-unregister-not-exist',null,{'channelId':_0x384dee});const _0xd1946=this['_registeredSessions']['get'](_0x384dee);this['stopListening'](_0xd1946);for(const _0x41946c of _0xd1946)'connected'===this['context']['plugins']['get'](WebSocketGateway)['state']&&this['_handleSessionRemove'](_0x384dee,_0x41946c);this['_registeredSessions']['delete'](_0x384dee),this['channelSessions']['delete'](_0x384dee),this['channelConnectedUsers']['delete'](_0x384dee);}get['mySessionId'](){return this['context']['plugins']['get'](WebSocketGateway)['connection']['sessionId'];}['getUserBySessionId'](_0x5f4a8d){for(const _0x2a3bea of this['channelSessions']['values']())for(const _0x57bdcf of _0x2a3bea)if(_0x57bdcf['id']===_0x5f4a8d)return _0x57bdcf['user'];}['getUserSessions'](_0x414019,_0x671735){const _0x457bc4=_0x671735?[this['channelSessions']['get'](_0x671735)]:this['channelSessions']['values'](),_0x1a7a7c=new Set();for(const _0x52fe1c of _0x457bc4)for(const _0x1b9df5 of _0x52fe1c)_0x1b9df5['user']['id']===_0x414019['id']&&_0x1a7a7c['add'](_0x1b9df5['id']);return _0x1a7a7c;}['getUserRole'](_0x531f06){for(const _0x238cc9 of this['channelSessions']['values']())for(const _0x597748 of _0x238cc9)if(_0x597748['user']===_0x531f06)return _0x597748['role'];}['_handleSessionAdd'](_0x10517b,_0x2e07d3){if('connected'!==this['context']['plugins']['get'](WebSocketGateway)['state'])return;const _0x3544f7=_0x2e07d3['user'],_0x311a93=this['_users']['getUser'](_0x3544f7['id'])||this['_createUser'](_0x3544f7),_0x56bb01=Object['assign']({},_0x2e07d3,{'user':_0x311a93});if(this['channelSessions']['get'](_0x10517b)['add'](_0x56bb01),!_0x3544f7['hiddenInPresenceList']){const _0x5a3ae7=this['channelConnectedUsers']['get'](_0x10517b);_0x5a3ae7['has'](_0x311a93['id'])||_0x5a3ae7['add'](_0x311a93),this['allConnectedUsers']['has'](_0x311a93['id'])||_0x3544f7['hiddenInPresenceList']||this['allConnectedUsers']['add'](_0x311a93,_0x311a93['isMe']?0x0:void 0x0);}this['fire']('sessionAdd:'+_0x10517b,{'channelId':_0x10517b,'session':_0x56bb01});}['_handleSessionRemove'](_0x452071,_0x56e181){if('connected'!==this['context']['plugins']['get'](WebSocketGateway)['state'])return;const _0x5607ac=this['channelConnectedUsers']['get'](_0x452071),_0x329593=_0x56e181['user'];_0x329593['id']&&(this['channelSessions']['get'](_0x452071)['remove'](_0x56e181['id']),_0x5607ac['has'](_0x329593['id'])&&!this['getUserSessions'](_0x329593,_0x452071)['size']&&_0x5607ac['remove'](_0x329593['id']),this['allConnectedUsers']['get'](_0x329593['id'])&&!this['getUserSessions'](_0x329593)['size']&&this['allConnectedUsers']['remove'](_0x329593['id']));}['_createUser'](_0x45f2a9,_0x1a3108){const _0x58cfd2=this['_users']['addUser'](_0x45f2a9);return _0x1a3108&&this['_users']['defineMe'](_0x45f2a9['id']),_0x58cfd2['orderNumber']=this['_uniqueUsersCount']++,_0x58cfd2;}}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 _0x3aef40=this['editor'],_0x532365=_0x3aef40['plugins']['get'](Sessions);_0x3aef40['conversion']['for']('editingDowncast')['markerToElement']({'model':'user:position','view':(_0x2100ac,{writer:_0x39dd8b})=>createUserPositionViewElement(_0x2100ac,_0x39dd8b,_0x532365,_0x3aef40)}),_0x3aef40['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'user:range','view':_0x2a5f49=>createUserRangeViewElement(_0x2a5f49,_0x532365)}),createUserMarkerPostFixer(_0x3aef40),this['_domEmitter']['listenTo'](_0x347e1e['document'],'keydown',(_0x282b9d,{key:_0x2ae156})=>{'Escape'===_0x2ae156&&hideHoveredUserPositionMarkersTooltips(_0x3aef40);},{'useCapture':!0x0});}['afterInit'](){const _0x163397=this['editor'],_0x334818=_0x163397['commands']['get']('undo');_0x334818&&_0x163397['model']['on']('applyOperation',(_0x3212e7,_0x32227e)=>{const _0x4fb5e6=_0x32227e[0x0];if(!_0x4fb5e6['isDocumentOperation'])return;if('marker'!=_0x4fb5e6['type']||!_0x4fb5e6['name']['startsWith']('user:'))return;const _0x24c4ad=_0x4fb5e6['batch'];_0x334818['_createdBatches']['has'](_0x24c4ad)&&(_0x4fb5e6['newRange']=_0x4fb5e6['oldRange']?_0x163397['model']['createRange'](_0x4fb5e6['oldRange']['start'],_0x4fb5e6['oldRange']['end']):null);},{'priority':'highest'});}['destroy'](){return this['_domEmitter']['stopListening'](),super['destroy']();}['createUserMarkerOperations'](){const _0x339700=this['editor'],_0x1a703a=_0x339700['model']['document'],_0xc71146=_0x339700['plugins']['get'](Sessions);_0x339700['model']['enqueueChange']({'isUndoable':!0x1},_0x3773a9=>{const _0x3792a6='user:range:'+_0xc71146['mySessionId'],_0x171948='user:position:'+_0xc71146['mySessionId'],_0x34cb8a=_0x339700['model']['markers']['has'](_0x3792a6);_0x339700['editing']['view']['hasDomSelection']?updateUserMarkers(_0xc71146['mySessionId'],_0x1a703a['selection']['getFirstRange'](),_0x339700['model'],_0x3773a9):_0x34cb8a&&(_0x3773a9['removeMarker'](_0x3792a6),_0x3773a9['removeMarker'](_0x171948));});}}function updateUserMarkers(_0x2f24bd,_0x23e72d,_0x3498c9,_0x418d4a){const _0x43ae49='user:range:'+_0x2f24bd,_0x5a493b='user:position:'+_0x2f24bd,_0x28fb14=_0x23e72d['getContainedElement']();let _0x1d4daa=_0x23e72d['start'];if(_0x28fb14&&_0x28fb14['is']('element','tableCell')){const _0x1e3b75=getPositionForText(_0x23e72d,_0x3498c9);_0x1e3b75&&(_0x1d4daa=_0x1e3b75,_0x23e72d=_0x418d4a['createRange'](_0x1d4daa));}const _0x215854=_0x418d4a['createRange'](_0x1d4daa);_0x3498c9['markers']['has'](_0x43ae49)?(_0x418d4a['updateMarker'](_0x43ae49,{'range':_0x23e72d}),_0x418d4a['updateMarker'](_0x5a493b,{'range':_0x215854})):(_0x418d4a['addMarker'](_0x43ae49,{'range':_0x23e72d,'usingOperation':!0x0}),_0x418d4a['addMarker'](_0x5a493b,{'range':_0x215854,'usingOperation':!0x0}));}function getPositionForText(_0x562b00,_0x65d249){for(const _0x89ef5e of _0x562b00['getPositions']())if(_0x65d249['schema']['checkChild'](_0x89ef5e,'$text'))return _0x89ef5e;}function createUserPositionViewElement(_0x277be2,_0x2b67c0,_0x4b5645,_0x4c06b9){const _0x5bb1e8=_0x277be2['markerName']['split'](':')[0x2],_0x403d94=_0x4b5645['getUserBySessionId'](_0x5bb1e8);if(!_0x403d94||_0x5bb1e8===_0x4b5645['mySessionId'])return;if(!_0x4c06b9['model']['schema']['checkChild'](_0x277be2['markerRange']['start'],'$text'))return;const _0x56d698={'class':'ck-user__marker\x20'+_0x403d94['color']['getMarkerClass'](),'data-name':_0x403d94['name'],'data-session-id':_0x5bb1e8},_0x3024af=_0x4c06b9['model']['markers']['get'](_0x277be2['markerName'])['getStart'](),_0x38e98a=_0x3024af['nodeAfter'],_0xef5e8a=_0x4c06b9['model']['schema'];if(_0x38e98a&&_0xef5e8a['isObject'](_0x38e98a)&&_0xef5e8a['isInline'](_0x38e98a)&&!_0x4c06b9['model']['markers']['get']('user:range:'+_0x5bb1e8)['getRange']()['isCollapsed'])return;const _0x1cde0f=_0x3024af['parent'];return _0x4c06b9['model']['schema']['isLimit'](_0x1cde0f)&&!_0x4c06b9['model']['hasContent'](_0x1cde0f)&&(_0x56d698['contenteditable']=!0x1),createUserPositionMarkerElement(_0x2b67c0,_0x56d698,_0x403d94);}function createUserRangeViewElement(_0x48dbfc,_0x29fd9e){const _0x5ba4d3=_0x48dbfc['markerName']['split'](':')[0x2];if(_0x5ba4d3===_0x29fd9e['mySessionId'])return null;const _0x2750c8=_0x29fd9e['getUserBySessionId'](_0x5ba4d3);return _0x2750c8?{'id':_0x5ba4d3,'classes':['ck-user__selection',_0x2750c8['color']['getSelectionClass']()],'attributes':{'data-session-id':_0x5ba4d3},'priority':0x7d0+_0x2750c8['orderNumber']}:{'id':_0x5ba4d3,'classes':[]};}function createUserPositionMarkerElement(_0x48efa2,_0x81c019,_0x3013c0){const _0x39564c=_0x48efa2['createUIElement']('span',_0x81c019);return _0x48efa2['setCustomProperty']('userPositionMarker',!0x0,_0x39564c),_0x39564c['render']=function(_0xbe7944){const _0x50c56a=this['toDomElement'](_0xbe7944),_0x30870d=document['createElement']('span');return _0x30870d['classList']['add']('ck-user__marker-tooltip'),_0x30870d['setAttribute']('contenteditable','false'),_0x30870d['setAttribute']('spellcheck','false'),_0x30870d['textContent']=_0x3013c0['name'],_0x50c56a['innerHTML']='⁠<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>'+_0x30870d['outerHTML']+'⁠',_0x50c56a['addEventListener']('mouseenter',()=>{_0x50c56a['classList']['add']('ck-user__marker_hovered');}),_0x50c56a['addEventListener']('mouseleave',()=>{_0x50c56a['classList']['remove']('ck-user__marker_hovered');}),_0x50c56a;},_0x39564c['isSimilar']=function(_0x19203d){return!(!this['getCustomProperty']('userPositionMarker')||!_0x19203d['getCustomProperty']('userPositionMarker')||this['getAttribute']('data-session-id')!=_0x19203d['getAttribute']('data-session-id'));},_0x39564c;}function hideHoveredUserPositionMarkersTooltips(_0x356425){_0x356425['editing']['view']['change'](_0xff659=>{for(const _0x4bcf30 of _0x356425['model']['markers']){if(!_0x4bcf30['name']['startsWith']('user:position'))continue;const _0x54254d=_0x356425['editing']['mapper']['markerNameToElements'](_0x4bcf30['name']);if(_0x54254d){for(const _0x48d808 of _0x54254d)_0xff659['removeClass']('ck-user__marker_hovered',_0x48d808);}}});}function createUserMarkerPostFixer(_0x450497){const _0x6f0ff3=_0x450497['model'],_0x2751fa=new Map(),_0x5cfaef=_0x450497['plugins']['get'](Sessions);_0x6f0ff3['markers']['on']('update:user:range',(_0x383fe8,_0x151172,_0x5527f1,_0x3a9390)=>{if(!_0x3a9390&&_0x2751fa['get'](_0x151172['name']))return _0x2751fa['get'](_0x151172['name'])['detach'](),void _0x2751fa['delete'](_0x151172['name']);const _0x33ea7c=_0x151172['name']['split'](':')[0x2];if(_0x33ea7c===_0x5cfaef['mySessionId'])return;const _0x5e6734='user:position:'+_0x33ea7c;_0x6f0ff3['markers']['has'](_0x5e6734)&&_0x450497['editing']['reconvertMarker'](_0x5e6734),_0x151172['on']('change:range',(_0x4b5301,_0x4bcf70,_0x580617)=>{if('$graveyard'!=_0x4bcf70['root']['rootName']&&'$graveyard'==_0x151172['getRange']()['root']['rootName']&&!_0x2751fa['has'](_0x151172['name'])){const _0x33ad35=_0x6f0ff3['schema']['getNearestSelectionRange'](_0x580617['deletionPosition']);if(_0x33ad35){const _0x4e92c7=ModelLiveRange['fromRange'](_0x33ad35);_0x2751fa['set'](_0x151172['name'],_0x4e92c7),_0x4e92c7['on']('change:range',(_0x52609d,_0x3029a1,_0x4a1ff1)=>{if('$graveyard'==_0x4e92c7['root']['rootName']){const _0x5dd362=_0x6f0ff3['schema']['getNearestSelectionRange'](_0x4a1ff1['deletionPosition']);_0x5dd362?(_0x4e92c7['start']=_0x5dd362['start'],_0x4e92c7['end']=_0x5dd362['end']):(_0x2751fa['delete'](_0x151172['name']),_0x4e92c7['detach']());}});}}});}),_0x6f0ff3['document']['on']('change',()=>{_0x2751fa['size']>0x0&&_0x6f0ff3['enqueueChange']({'isUndoable':!0x1},_0x545205=>{for(const [_0x562fc4,_0x398b6d]of _0x2751fa)'$graveyard'==_0x6f0ff3['markers']['get'](_0x562fc4)['getRange']()['root']['rootName']&&(updateUserMarkers(_0x562fc4['split'](':')[0x2],_0x398b6d['toRange'](),_0x6f0ff3,_0x545205),_0x398b6d['detach']());_0x2751fa['clear']();});});}function getTranslation$6(_0x40ed2d,_0x61f267,_0x52f3de){const _0x4cdc04=_0x40ed2d['t'],t=_0x40ed2d['t'];switch(_0x61f267){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 _0x4cdc04({'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'},_0x52f3de);default:return'';}}const messages=/* #__PURE__ -- @preserve */
((()=>{var _0x5222cb=minimalExports['Reader'],_0x21e883=minimalExports['Writer'],_0x56d770=minimalExports['util'],_0x540c35=minimalExports['roots']['default']||(minimalExports['roots']['default']={});return _0x540c35['AttributeOperation']=(function(){function _0x653993(_0xac3248){if(_0xac3248){for(var _0x19249d=Object['keys'](_0xac3248),_0x4788cc=0x0;_0x4788cc<_0x19249d['length'];++_0x4788cc)null!=_0xac3248[_0x19249d[_0x4788cc]]&&(this[_0x19249d[_0x4788cc]]=_0xac3248[_0x19249d[_0x4788cc]]);}}return _0x653993['prototype']['range']=null,_0x653993['prototype']['key']='',_0x653993['prototype']['oldValueBoolean']=!0x1,_0x653993['prototype']['oldValueJson']='',_0x653993['prototype']['newValueBoolean']=!0x1,_0x653993['prototype']['newValueJson']='',_0x653993['prototype']['wasUndone']=!0x1,_0x653993['create']=function(_0xf78967){return new _0x653993(_0xf78967);},_0x653993['encode']=function(_0x485974,_0x3156fd){return _0x3156fd||(_0x3156fd=_0x21e883['create']()),null!=_0x485974['range']&&Object['hasOwnProperty']['call'](_0x485974,'range')&&_0x540c35['Range']['encode'](_0x485974['range'],_0x3156fd['uint32'](0xa)['fork']())['ldelim'](),null!=_0x485974['key']&&Object['hasOwnProperty']['call'](_0x485974,'key')&&_0x3156fd['uint32'](0x12)['string'](_0x485974['key']),null!=_0x485974['oldValueBoolean']&&Object['hasOwnProperty']['call'](_0x485974,'oldValueBoolean')&&_0x3156fd['uint32'](0x18)['bool'](_0x485974['oldValueBoolean']),null!=_0x485974['oldValueJson']&&Object['hasOwnProperty']['call'](_0x485974,'oldValueJson')&&_0x3156fd['uint32'](0x22)['string'](_0x485974['oldValueJson']),null!=_0x485974['newValueBoolean']&&Object['hasOwnProperty']['call'](_0x485974,'newValueBoolean')&&_0x3156fd['uint32'](0x28)['bool'](_0x485974['newValueBoolean']),null!=_0x485974['newValueJson']&&Object['hasOwnProperty']['call'](_0x485974,'newValueJson')&&_0x3156fd['uint32'](0x32)['string'](_0x485974['newValueJson']),null!=_0x485974['wasUndone']&&Object['hasOwnProperty']['call'](_0x485974,'wasUndone')&&_0x3156fd['uint32'](0x38)['bool'](_0x485974['wasUndone']),_0x3156fd;},_0x653993['encodeDelimited']=function(_0x68f349,_0x4c7d91){return this['encode'](_0x68f349,_0x4c7d91)['ldelim']();},_0x653993['decode']=function(_0xb29e88,_0x460ed5){_0xb29e88 instanceof _0x5222cb||(_0xb29e88=_0x5222cb['create'](_0xb29e88));for(var _0x4711bd=void 0x0===_0x460ed5?_0xb29e88['len']:_0xb29e88['pos']+_0x460ed5,_0x1502c0=new _0x540c35['AttributeOperation']();_0xb29e88['pos']<_0x4711bd;){var _0x44a947=_0xb29e88['uint32']();switch(_0x44a947>>>0x3){case 0x1:_0x1502c0['range']=_0x540c35['Range']['decode'](_0xb29e88,_0xb29e88['uint32']());break;case 0x2:_0x1502c0['key']=_0xb29e88['string']();break;case 0x3:_0x1502c0['oldValueBoolean']=_0xb29e88['bool']();break;case 0x4:_0x1502c0['oldValueJson']=_0xb29e88['string']();break;case 0x5:_0x1502c0['newValueBoolean']=_0xb29e88['bool']();break;case 0x6:_0x1502c0['newValueJson']=_0xb29e88['string']();break;case 0x7:_0x1502c0['wasUndone']=_0xb29e88['bool']();break;default:_0xb29e88['skipType'](0x7&_0x44a947);}}return _0x1502c0;},_0x653993['decodeDelimited']=function(_0x159933){return _0x159933 instanceof _0x5222cb||(_0x159933=new _0x5222cb(_0x159933)),this['decode'](_0x159933,_0x159933['uint32']());},_0x653993['verify']=function(_0x574448){if('object'!=typeof _0x574448||null===_0x574448)return'object\x20expected';if(null!=_0x574448['range']&&_0x574448['hasOwnProperty']('range')){var _0x49e206=_0x540c35['Range']['verify'](_0x574448['range']);if(_0x49e206)return'range.'+_0x49e206;}return null!=_0x574448['key']&&_0x574448['hasOwnProperty']('key')&&!_0x56d770['isString'](_0x574448['key'])?'key:\x20string\x20expected':null!=_0x574448['oldValueBoolean']&&_0x574448['hasOwnProperty']('oldValueBoolean')&&'boolean'!=typeof _0x574448['oldValueBoolean']?'oldValueBoolean:\x20boolean\x20expected':null!=_0x574448['oldValueJson']&&_0x574448['hasOwnProperty']('oldValueJson')&&!_0x56d770['isString'](_0x574448['oldValueJson'])?'oldValueJson:\x20string\x20expected':null!=_0x574448['newValueBoolean']&&_0x574448['hasOwnProperty']('newValueBoolean')&&'boolean'!=typeof _0x574448['newValueBoolean']?'newValueBoolean:\x20boolean\x20expected':null!=_0x574448['newValueJson']&&_0x574448['hasOwnProperty']('newValueJson')&&!_0x56d770['isString'](_0x574448['newValueJson'])?'newValueJson:\x20string\x20expected':null!=_0x574448['wasUndone']&&_0x574448['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x574448['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x653993['fromObject']=function(_0x1b25e9){if(_0x1b25e9 instanceof _0x540c35['AttributeOperation'])return _0x1b25e9;var _0x3a58ec=new _0x540c35['AttributeOperation']();if(null!=_0x1b25e9['range']){if('object'!=typeof _0x1b25e9['range'])throw TypeError('.AttributeOperation.range:\x20object\x20expected');_0x3a58ec['range']=_0x540c35['Range']['fromObject'](_0x1b25e9['range']);}return null!=_0x1b25e9['key']&&(_0x3a58ec['key']=String(_0x1b25e9['key'])),null!=_0x1b25e9['oldValueBoolean']&&(_0x3a58ec['oldValueBoolean']=Boolean(_0x1b25e9['oldValueBoolean'])),null!=_0x1b25e9['oldValueJson']&&(_0x3a58ec['oldValueJson']=String(_0x1b25e9['oldValueJson'])),null!=_0x1b25e9['newValueBoolean']&&(_0x3a58ec['newValueBoolean']=Boolean(_0x1b25e9['newValueBoolean'])),null!=_0x1b25e9['newValueJson']&&(_0x3a58ec['newValueJson']=String(_0x1b25e9['newValueJson'])),null!=_0x1b25e9['wasUndone']&&(_0x3a58ec['wasUndone']=Boolean(_0x1b25e9['wasUndone'])),_0x3a58ec;},_0x653993['toObject']=function(_0x38d98e,_0x3b3c40){_0x3b3c40||(_0x3b3c40={});var _0x439492={};return _0x3b3c40['defaults']&&(_0x439492['range']=null,_0x439492['key']='',_0x439492['oldValueBoolean']=!0x1,_0x439492['oldValueJson']='',_0x439492['newValueBoolean']=!0x1,_0x439492['newValueJson']='',_0x439492['wasUndone']=!0x1),null!=_0x38d98e['range']&&_0x38d98e['hasOwnProperty']('range')&&(_0x439492['range']=_0x540c35['Range']['toObject'](_0x38d98e['range'],_0x3b3c40)),null!=_0x38d98e['key']&&_0x38d98e['hasOwnProperty']('key')&&(_0x439492['key']=_0x38d98e['key']),null!=_0x38d98e['oldValueBoolean']&&_0x38d98e['hasOwnProperty']('oldValueBoolean')&&(_0x439492['oldValueBoolean']=_0x38d98e['oldValueBoolean']),null!=_0x38d98e['oldValueJson']&&_0x38d98e['hasOwnProperty']('oldValueJson')&&(_0x439492['oldValueJson']=_0x38d98e['oldValueJson']),null!=_0x38d98e['newValueBoolean']&&_0x38d98e['hasOwnProperty']('newValueBoolean')&&(_0x439492['newValueBoolean']=_0x38d98e['newValueBoolean']),null!=_0x38d98e['newValueJson']&&_0x38d98e['hasOwnProperty']('newValueJson')&&(_0x439492['newValueJson']=_0x38d98e['newValueJson']),null!=_0x38d98e['wasUndone']&&_0x38d98e['hasOwnProperty']('wasUndone')&&(_0x439492['wasUndone']=_0x38d98e['wasUndone']),_0x439492;},_0x653993['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x653993['getTypeUrl']=function(_0x19432e){return void 0x0===_0x19432e&&(_0x19432e='type.googleapis.com'),_0x19432e+'/AttributeOperation';},_0x653993;}()),_0x540c35['InsertOperation']=(function(){function _0x8c3444(_0x3eb7c6){if(this['nodes']=[],_0x3eb7c6){for(var _0x93413f=Object['keys'](_0x3eb7c6),_0x4f82c3=0x0;_0x4f82c3<_0x93413f['length'];++_0x4f82c3)null!=_0x3eb7c6[_0x93413f[_0x4f82c3]]&&(this[_0x93413f[_0x4f82c3]]=_0x3eb7c6[_0x93413f[_0x4f82c3]]);}}return _0x8c3444['prototype']['position']=null,_0x8c3444['prototype']['nodes']=_0x56d770['emptyArray'],_0x8c3444['prototype']['shouldReceiveAttributes']=!0x1,_0x8c3444['prototype']['wasUndone']=!0x1,_0x8c3444['create']=function(_0x13b0a2){return new _0x8c3444(_0x13b0a2);},_0x8c3444['encode']=function(_0x474df0,_0x280431){if(_0x280431||(_0x280431=_0x21e883['create']()),null!=_0x474df0['position']&&Object['hasOwnProperty']['call'](_0x474df0,'position')&&_0x540c35['Position']['encode'](_0x474df0['position'],_0x280431['uint32'](0xa)['fork']())['ldelim'](),null!=_0x474df0['nodes']&&_0x474df0['nodes']['length']){for(var _0x2f93ed=0x0;_0x2f93ed<_0x474df0['nodes']['length'];++_0x2f93ed)_0x540c35['Element']['encode'](_0x474df0['nodes'][_0x2f93ed],_0x280431['uint32'](0x12)['fork']())['ldelim']();}return null!=_0x474df0['shouldReceiveAttributes']&&Object['hasOwnProperty']['call'](_0x474df0,'shouldReceiveAttributes')&&_0x280431['uint32'](0x18)['bool'](_0x474df0['shouldReceiveAttributes']),null!=_0x474df0['wasUndone']&&Object['hasOwnProperty']['call'](_0x474df0,'wasUndone')&&_0x280431['uint32'](0x20)['bool'](_0x474df0['wasUndone']),_0x280431;},_0x8c3444['encodeDelimited']=function(_0x1c6652,_0x3a7d18){return this['encode'](_0x1c6652,_0x3a7d18)['ldelim']();},_0x8c3444['decode']=function(_0x1f62e4,_0x33aea3){_0x1f62e4 instanceof _0x5222cb||(_0x1f62e4=_0x5222cb['create'](_0x1f62e4));for(var _0x56f5cf=void 0x0===_0x33aea3?_0x1f62e4['len']:_0x1f62e4['pos']+_0x33aea3,_0x25ca36=new _0x540c35['InsertOperation']();_0x1f62e4['pos']<_0x56f5cf;){var _0x2480c6=_0x1f62e4['uint32']();switch(_0x2480c6>>>0x3){case 0x1:_0x25ca36['position']=_0x540c35['Position']['decode'](_0x1f62e4,_0x1f62e4['uint32']());break;case 0x2:_0x25ca36['nodes']&&_0x25ca36['nodes']['length']||(_0x25ca36['nodes']=[]),_0x25ca36['nodes']['push'](_0x540c35['Element']['decode'](_0x1f62e4,_0x1f62e4['uint32']()));break;case 0x3:_0x25ca36['shouldReceiveAttributes']=_0x1f62e4['bool']();break;case 0x4:_0x25ca36['wasUndone']=_0x1f62e4['bool']();break;default:_0x1f62e4['skipType'](0x7&_0x2480c6);}}return _0x25ca36;},_0x8c3444['decodeDelimited']=function(_0x5d9e9f){return _0x5d9e9f instanceof _0x5222cb||(_0x5d9e9f=new _0x5222cb(_0x5d9e9f)),this['decode'](_0x5d9e9f,_0x5d9e9f['uint32']());},_0x8c3444['verify']=function(_0x1ac4ce){if('object'!=typeof _0x1ac4ce||null===_0x1ac4ce)return'object\x20expected';if(null!=_0x1ac4ce['position']&&_0x1ac4ce['hasOwnProperty']('position')&&(_0x3edeb3=_0x540c35['Position']['verify'](_0x1ac4ce['position'])))return'position.'+_0x3edeb3;if(null!=_0x1ac4ce['nodes']&&_0x1ac4ce['hasOwnProperty']('nodes')){if(!Array['isArray'](_0x1ac4ce['nodes']))return'nodes:\x20array\x20expected';for(var _0x29d36a=0x0;_0x29d36a<_0x1ac4ce['nodes']['length'];++_0x29d36a){var _0x3edeb3;if(_0x3edeb3=_0x540c35['Element']['verify'](_0x1ac4ce['nodes'][_0x29d36a]))return'nodes.'+_0x3edeb3;}}return null!=_0x1ac4ce['shouldReceiveAttributes']&&_0x1ac4ce['hasOwnProperty']('shouldReceiveAttributes')&&'boolean'!=typeof _0x1ac4ce['shouldReceiveAttributes']?'shouldReceiveAttributes:\x20boolean\x20expected':null!=_0x1ac4ce['wasUndone']&&_0x1ac4ce['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x1ac4ce['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x8c3444['fromObject']=function(_0x4562ee){if(_0x4562ee instanceof _0x540c35['InsertOperation'])return _0x4562ee;var _0x534d87=new _0x540c35['InsertOperation']();if(null!=_0x4562ee['position']){if('object'!=typeof _0x4562ee['position'])throw TypeError('.InsertOperation.position:\x20object\x20expected');_0x534d87['position']=_0x540c35['Position']['fromObject'](_0x4562ee['position']);}if(_0x4562ee['nodes']){if(!Array['isArray'](_0x4562ee['nodes']))throw TypeError('.InsertOperation.nodes:\x20array\x20expected');_0x534d87['nodes']=[];for(var _0x422d10=0x0;_0x422d10<_0x4562ee['nodes']['length'];++_0x422d10){if('object'!=typeof _0x4562ee['nodes'][_0x422d10])throw TypeError('.InsertOperation.nodes:\x20object\x20expected');_0x534d87['nodes'][_0x422d10]=_0x540c35['Element']['fromObject'](_0x4562ee['nodes'][_0x422d10]);}}return null!=_0x4562ee['shouldReceiveAttributes']&&(_0x534d87['shouldReceiveAttributes']=Boolean(_0x4562ee['shouldReceiveAttributes'])),null!=_0x4562ee['wasUndone']&&(_0x534d87['wasUndone']=Boolean(_0x4562ee['wasUndone'])),_0x534d87;},_0x8c3444['toObject']=function(_0x2aa619,_0x18711d){_0x18711d||(_0x18711d={});var _0x38b452={};if((_0x18711d['arrays']||_0x18711d['defaults'])&&(_0x38b452['nodes']=[]),_0x18711d['defaults']&&(_0x38b452['position']=null,_0x38b452['shouldReceiveAttributes']=!0x1,_0x38b452['wasUndone']=!0x1),null!=_0x2aa619['position']&&_0x2aa619['hasOwnProperty']('position')&&(_0x38b452['position']=_0x540c35['Position']['toObject'](_0x2aa619['position'],_0x18711d)),_0x2aa619['nodes']&&_0x2aa619['nodes']['length']){_0x38b452['nodes']=[];for(var _0x292671=0x0;_0x292671<_0x2aa619['nodes']['length'];++_0x292671)_0x38b452['nodes'][_0x292671]=_0x540c35['Element']['toObject'](_0x2aa619['nodes'][_0x292671],_0x18711d);}return null!=_0x2aa619['shouldReceiveAttributes']&&_0x2aa619['hasOwnProperty']('shouldReceiveAttributes')&&(_0x38b452['shouldReceiveAttributes']=_0x2aa619['shouldReceiveAttributes']),null!=_0x2aa619['wasUndone']&&_0x2aa619['hasOwnProperty']('wasUndone')&&(_0x38b452['wasUndone']=_0x2aa619['wasUndone']),_0x38b452;},_0x8c3444['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x8c3444['getTypeUrl']=function(_0x1352b2){return void 0x0===_0x1352b2&&(_0x1352b2='type.googleapis.com'),_0x1352b2+'/InsertOperation';},_0x8c3444;}()),_0x540c35['MarkerOperation']=(function(){function _0x3d627c(_0x30de13){if(_0x30de13){for(var _0x2b0d9b=Object['keys'](_0x30de13),_0x457a9a=0x0;_0x457a9a<_0x2b0d9b['length'];++_0x457a9a)null!=_0x30de13[_0x2b0d9b[_0x457a9a]]&&(this[_0x2b0d9b[_0x457a9a]]=_0x30de13[_0x2b0d9b[_0x457a9a]]);}}return _0x3d627c['prototype']['name']='',_0x3d627c['prototype']['oldRange']=null,_0x3d627c['prototype']['newRange']=null,_0x3d627c['prototype']['affectsData']=!0x1,_0x3d627c['prototype']['wasUndone']=!0x1,_0x3d627c['create']=function(_0x5f09b3){return new _0x3d627c(_0x5f09b3);},_0x3d627c['encode']=function(_0x5198b8,_0x255686){return _0x255686||(_0x255686=_0x21e883['create']()),null!=_0x5198b8['name']&&Object['hasOwnProperty']['call'](_0x5198b8,'name')&&_0x255686['uint32'](0xa)['string'](_0x5198b8['name']),null!=_0x5198b8['oldRange']&&Object['hasOwnProperty']['call'](_0x5198b8,'oldRange')&&_0x540c35['Range']['encode'](_0x5198b8['oldRange'],_0x255686['uint32'](0x12)['fork']())['ldelim'](),null!=_0x5198b8['newRange']&&Object['hasOwnProperty']['call'](_0x5198b8,'newRange')&&_0x540c35['Range']['encode'](_0x5198b8['newRange'],_0x255686['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x5198b8['affectsData']&&Object['hasOwnProperty']['call'](_0x5198b8,'affectsData')&&_0x255686['uint32'](0x20)['bool'](_0x5198b8['affectsData']),null!=_0x5198b8['wasUndone']&&Object['hasOwnProperty']['call'](_0x5198b8,'wasUndone')&&_0x255686['uint32'](0x28)['bool'](_0x5198b8['wasUndone']),_0x255686;},_0x3d627c['encodeDelimited']=function(_0x58046f,_0x1c0771){return this['encode'](_0x58046f,_0x1c0771)['ldelim']();},_0x3d627c['decode']=function(_0x527374,_0x527269){_0x527374 instanceof _0x5222cb||(_0x527374=_0x5222cb['create'](_0x527374));for(var _0xf68abe=void 0x0===_0x527269?_0x527374['len']:_0x527374['pos']+_0x527269,_0x3bea4b=new _0x540c35['MarkerOperation']();_0x527374['pos']<_0xf68abe;){var _0x4f9bd0=_0x527374['uint32']();switch(_0x4f9bd0>>>0x3){case 0x1:_0x3bea4b['name']=_0x527374['string']();break;case 0x2:_0x3bea4b['oldRange']=_0x540c35['Range']['decode'](_0x527374,_0x527374['uint32']());break;case 0x3:_0x3bea4b['newRange']=_0x540c35['Range']['decode'](_0x527374,_0x527374['uint32']());break;case 0x4:_0x3bea4b['affectsData']=_0x527374['bool']();break;case 0x5:_0x3bea4b['wasUndone']=_0x527374['bool']();break;default:_0x527374['skipType'](0x7&_0x4f9bd0);}}return _0x3bea4b;},_0x3d627c['decodeDelimited']=function(_0x20c68e){return _0x20c68e instanceof _0x5222cb||(_0x20c68e=new _0x5222cb(_0x20c68e)),this['decode'](_0x20c68e,_0x20c68e['uint32']());},_0x3d627c['verify']=function(_0xea3982){if('object'!=typeof _0xea3982||null===_0xea3982)return'object\x20expected';if(null!=_0xea3982['name']&&_0xea3982['hasOwnProperty']('name')&&!_0x56d770['isString'](_0xea3982['name']))return'name:\x20string\x20expected';var _0x4cc453;if(null!=_0xea3982['oldRange']&&_0xea3982['hasOwnProperty']('oldRange')&&(_0x4cc453=_0x540c35['Range']['verify'](_0xea3982['oldRange'])))return'oldRange.'+_0x4cc453;if(null!=_0xea3982['newRange']&&_0xea3982['hasOwnProperty']('newRange')&&(_0x4cc453=_0x540c35['Range']['verify'](_0xea3982['newRange'])))return'newRange.'+_0x4cc453;return null!=_0xea3982['affectsData']&&_0xea3982['hasOwnProperty']('affectsData')&&'boolean'!=typeof _0xea3982['affectsData']?'affectsData:\x20boolean\x20expected':null!=_0xea3982['wasUndone']&&_0xea3982['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0xea3982['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x3d627c['fromObject']=function(_0x8891fd){if(_0x8891fd instanceof _0x540c35['MarkerOperation'])return _0x8891fd;var _0x326da5=new _0x540c35['MarkerOperation']();if(null!=_0x8891fd['name']&&(_0x326da5['name']=String(_0x8891fd['name'])),null!=_0x8891fd['oldRange']){if('object'!=typeof _0x8891fd['oldRange'])throw TypeError('.MarkerOperation.oldRange:\x20object\x20expected');_0x326da5['oldRange']=_0x540c35['Range']['fromObject'](_0x8891fd['oldRange']);}if(null!=_0x8891fd['newRange']){if('object'!=typeof _0x8891fd['newRange'])throw TypeError('.MarkerOperation.newRange:\x20object\x20expected');_0x326da5['newRange']=_0x540c35['Range']['fromObject'](_0x8891fd['newRange']);}return null!=_0x8891fd['affectsData']&&(_0x326da5['affectsData']=Boolean(_0x8891fd['affectsData'])),null!=_0x8891fd['wasUndone']&&(_0x326da5['wasUndone']=Boolean(_0x8891fd['wasUndone'])),_0x326da5;},_0x3d627c['toObject']=function(_0x190630,_0x42eefa){_0x42eefa||(_0x42eefa={});var _0x4d9012={};return _0x42eefa['defaults']&&(_0x4d9012['name']='',_0x4d9012['oldRange']=null,_0x4d9012['newRange']=null,_0x4d9012['affectsData']=!0x1,_0x4d9012['wasUndone']=!0x1),null!=_0x190630['name']&&_0x190630['hasOwnProperty']('name')&&(_0x4d9012['name']=_0x190630['name']),null!=_0x190630['oldRange']&&_0x190630['hasOwnProperty']('oldRange')&&(_0x4d9012['oldRange']=_0x540c35['Range']['toObject'](_0x190630['oldRange'],_0x42eefa)),null!=_0x190630['newRange']&&_0x190630['hasOwnProperty']('newRange')&&(_0x4d9012['newRange']=_0x540c35['Range']['toObject'](_0x190630['newRange'],_0x42eefa)),null!=_0x190630['affectsData']&&_0x190630['hasOwnProperty']('affectsData')&&(_0x4d9012['affectsData']=_0x190630['affectsData']),null!=_0x190630['wasUndone']&&_0x190630['hasOwnProperty']('wasUndone')&&(_0x4d9012['wasUndone']=_0x190630['wasUndone']),_0x4d9012;},_0x3d627c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3d627c['getTypeUrl']=function(_0xe112f6){return void 0x0===_0xe112f6&&(_0xe112f6='type.googleapis.com'),_0xe112f6+'/MarkerOperation';},_0x3d627c;}()),_0x540c35['MergeOperation']=(function(){function _0x54be92(_0x33a9e1){if(_0x33a9e1){for(var _0x18a9cb=Object['keys'](_0x33a9e1),_0x26efdf=0x0;_0x26efdf<_0x18a9cb['length'];++_0x26efdf)null!=_0x33a9e1[_0x18a9cb[_0x26efdf]]&&(this[_0x18a9cb[_0x26efdf]]=_0x33a9e1[_0x18a9cb[_0x26efdf]]);}}return _0x54be92['prototype']['sourcePosition']=null,_0x54be92['prototype']['targetPosition']=null,_0x54be92['prototype']['graveyardPosition']=null,_0x54be92['prototype']['howMany']=0x0,_0x54be92['prototype']['wasUndone']=!0x1,_0x54be92['create']=function(_0x3bd6b4){return new _0x54be92(_0x3bd6b4);},_0x54be92['encode']=function(_0x4cb43a,_0x34f790){return _0x34f790||(_0x34f790=_0x21e883['create']()),null!=_0x4cb43a['sourcePosition']&&Object['hasOwnProperty']['call'](_0x4cb43a,'sourcePosition')&&_0x540c35['Position']['encode'](_0x4cb43a['sourcePosition'],_0x34f790['uint32'](0xa)['fork']())['ldelim'](),null!=_0x4cb43a['targetPosition']&&Object['hasOwnProperty']['call'](_0x4cb43a,'targetPosition')&&_0x540c35['Position']['encode'](_0x4cb43a['targetPosition'],_0x34f790['uint32'](0x12)['fork']())['ldelim'](),null!=_0x4cb43a['graveyardPosition']&&Object['hasOwnProperty']['call'](_0x4cb43a,'graveyardPosition')&&_0x540c35['Position']['encode'](_0x4cb43a['graveyardPosition'],_0x34f790['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x4cb43a['howMany']&&Object['hasOwnProperty']['call'](_0x4cb43a,'howMany')&&_0x34f790['uint32'](0x20)['uint32'](_0x4cb43a['howMany']),null!=_0x4cb43a['wasUndone']&&Object['hasOwnProperty']['call'](_0x4cb43a,'wasUndone')&&_0x34f790['uint32'](0x28)['bool'](_0x4cb43a['wasUndone']),_0x34f790;},_0x54be92['encodeDelimited']=function(_0x18df9a,_0x361284){return this['encode'](_0x18df9a,_0x361284)['ldelim']();},_0x54be92['decode']=function(_0x578c74,_0x4f037d){_0x578c74 instanceof _0x5222cb||(_0x578c74=_0x5222cb['create'](_0x578c74));for(var _0x1ad6a6=void 0x0===_0x4f037d?_0x578c74['len']:_0x578c74['pos']+_0x4f037d,_0x28fb2a=new _0x540c35['MergeOperation']();_0x578c74['pos']<_0x1ad6a6;){var _0x5ecc60=_0x578c74['uint32']();switch(_0x5ecc60>>>0x3){case 0x1:_0x28fb2a['sourcePosition']=_0x540c35['Position']['decode'](_0x578c74,_0x578c74['uint32']());break;case 0x2:_0x28fb2a['targetPosition']=_0x540c35['Position']['decode'](_0x578c74,_0x578c74['uint32']());break;case 0x3:_0x28fb2a['graveyardPosition']=_0x540c35['Position']['decode'](_0x578c74,_0x578c74['uint32']());break;case 0x4:_0x28fb2a['howMany']=_0x578c74['uint32']();break;case 0x5:_0x28fb2a['wasUndone']=_0x578c74['bool']();break;default:_0x578c74['skipType'](0x7&_0x5ecc60);}}return _0x28fb2a;},_0x54be92['decodeDelimited']=function(_0x2b2245){return _0x2b2245 instanceof _0x5222cb||(_0x2b2245=new _0x5222cb(_0x2b2245)),this['decode'](_0x2b2245,_0x2b2245['uint32']());},_0x54be92['verify']=function(_0x512944){if('object'!=typeof _0x512944||null===_0x512944)return'object\x20expected';var _0x53a5b2;if(null!=_0x512944['sourcePosition']&&_0x512944['hasOwnProperty']('sourcePosition')&&(_0x53a5b2=_0x540c35['Position']['verify'](_0x512944['sourcePosition'])))return'sourcePosition.'+_0x53a5b2;if(null!=_0x512944['targetPosition']&&_0x512944['hasOwnProperty']('targetPosition')&&(_0x53a5b2=_0x540c35['Position']['verify'](_0x512944['targetPosition'])))return'targetPosition.'+_0x53a5b2;if(null!=_0x512944['graveyardPosition']&&_0x512944['hasOwnProperty']('graveyardPosition')&&(_0x53a5b2=_0x540c35['Position']['verify'](_0x512944['graveyardPosition'])))return'graveyardPosition.'+_0x53a5b2;return null!=_0x512944['howMany']&&_0x512944['hasOwnProperty']('howMany')&&!_0x56d770['isInteger'](_0x512944['howMany'])?'howMany:\x20integer\x20expected':null!=_0x512944['wasUndone']&&_0x512944['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x512944['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x54be92['fromObject']=function(_0x4cbe49){if(_0x4cbe49 instanceof _0x540c35['MergeOperation'])return _0x4cbe49;var _0x316ec8=new _0x540c35['MergeOperation']();if(null!=_0x4cbe49['sourcePosition']){if('object'!=typeof _0x4cbe49['sourcePosition'])throw TypeError('.MergeOperation.sourcePosition:\x20object\x20expected');_0x316ec8['sourcePosition']=_0x540c35['Position']['fromObject'](_0x4cbe49['sourcePosition']);}if(null!=_0x4cbe49['targetPosition']){if('object'!=typeof _0x4cbe49['targetPosition'])throw TypeError('.MergeOperation.targetPosition:\x20object\x20expected');_0x316ec8['targetPosition']=_0x540c35['Position']['fromObject'](_0x4cbe49['targetPosition']);}if(null!=_0x4cbe49['graveyardPosition']){if('object'!=typeof _0x4cbe49['graveyardPosition'])throw TypeError('.MergeOperation.graveyardPosition:\x20object\x20expected');_0x316ec8['graveyardPosition']=_0x540c35['Position']['fromObject'](_0x4cbe49['graveyardPosition']);}return null!=_0x4cbe49['howMany']&&(_0x316ec8['howMany']=_0x4cbe49['howMany']>>>0x0),null!=_0x4cbe49['wasUndone']&&(_0x316ec8['wasUndone']=Boolean(_0x4cbe49['wasUndone'])),_0x316ec8;},_0x54be92['toObject']=function(_0x499fd7,_0x903640){_0x903640||(_0x903640={});var _0x3e9b12={};return _0x903640['defaults']&&(_0x3e9b12['sourcePosition']=null,_0x3e9b12['targetPosition']=null,_0x3e9b12['graveyardPosition']=null,_0x3e9b12['howMany']=0x0,_0x3e9b12['wasUndone']=!0x1),null!=_0x499fd7['sourcePosition']&&_0x499fd7['hasOwnProperty']('sourcePosition')&&(_0x3e9b12['sourcePosition']=_0x540c35['Position']['toObject'](_0x499fd7['sourcePosition'],_0x903640)),null!=_0x499fd7['targetPosition']&&_0x499fd7['hasOwnProperty']('targetPosition')&&(_0x3e9b12['targetPosition']=_0x540c35['Position']['toObject'](_0x499fd7['targetPosition'],_0x903640)),null!=_0x499fd7['graveyardPosition']&&_0x499fd7['hasOwnProperty']('graveyardPosition')&&(_0x3e9b12['graveyardPosition']=_0x540c35['Position']['toObject'](_0x499fd7['graveyardPosition'],_0x903640)),null!=_0x499fd7['howMany']&&_0x499fd7['hasOwnProperty']('howMany')&&(_0x3e9b12['howMany']=_0x499fd7['howMany']),null!=_0x499fd7['wasUndone']&&_0x499fd7['hasOwnProperty']('wasUndone')&&(_0x3e9b12['wasUndone']=_0x499fd7['wasUndone']),_0x3e9b12;},_0x54be92['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x54be92['getTypeUrl']=function(_0x520ef4){return void 0x0===_0x520ef4&&(_0x520ef4='type.googleapis.com'),_0x520ef4+'/MergeOperation';},_0x54be92;}()),_0x540c35['MoveOperation']=(function(){function _0x4c9584(_0x3129e6){if(_0x3129e6){for(var _0x4dab14=Object['keys'](_0x3129e6),_0x30b410=0x0;_0x30b410<_0x4dab14['length'];++_0x30b410)null!=_0x3129e6[_0x4dab14[_0x30b410]]&&(this[_0x4dab14[_0x30b410]]=_0x3129e6[_0x4dab14[_0x30b410]]);}}return _0x4c9584['prototype']['sourcePosition']=null,_0x4c9584['prototype']['howMany']=0x0,_0x4c9584['prototype']['targetPosition']=null,_0x4c9584['prototype']['wasUndone']=!0x1,_0x4c9584['create']=function(_0x1912d0){return new _0x4c9584(_0x1912d0);},_0x4c9584['encode']=function(_0x1728f0,_0x59b1bd){return _0x59b1bd||(_0x59b1bd=_0x21e883['create']()),null!=_0x1728f0['sourcePosition']&&Object['hasOwnProperty']['call'](_0x1728f0,'sourcePosition')&&_0x540c35['Position']['encode'](_0x1728f0['sourcePosition'],_0x59b1bd['uint32'](0xa)['fork']())['ldelim'](),null!=_0x1728f0['howMany']&&Object['hasOwnProperty']['call'](_0x1728f0,'howMany')&&_0x59b1bd['uint32'](0x10)['uint32'](_0x1728f0['howMany']),null!=_0x1728f0['targetPosition']&&Object['hasOwnProperty']['call'](_0x1728f0,'targetPosition')&&_0x540c35['Position']['encode'](_0x1728f0['targetPosition'],_0x59b1bd['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x1728f0['wasUndone']&&Object['hasOwnProperty']['call'](_0x1728f0,'wasUndone')&&_0x59b1bd['uint32'](0x20)['bool'](_0x1728f0['wasUndone']),_0x59b1bd;},_0x4c9584['encodeDelimited']=function(_0x5ebf7b,_0x267f5a){return this['encode'](_0x5ebf7b,_0x267f5a)['ldelim']();},_0x4c9584['decode']=function(_0x11bd67,_0xf2efcc){_0x11bd67 instanceof _0x5222cb||(_0x11bd67=_0x5222cb['create'](_0x11bd67));for(var _0x2797a9=void 0x0===_0xf2efcc?_0x11bd67['len']:_0x11bd67['pos']+_0xf2efcc,_0xc366cb=new _0x540c35['MoveOperation']();_0x11bd67['pos']<_0x2797a9;){var _0x2d342e=_0x11bd67['uint32']();switch(_0x2d342e>>>0x3){case 0x1:_0xc366cb['sourcePosition']=_0x540c35['Position']['decode'](_0x11bd67,_0x11bd67['uint32']());break;case 0x2:_0xc366cb['howMany']=_0x11bd67['uint32']();break;case 0x3:_0xc366cb['targetPosition']=_0x540c35['Position']['decode'](_0x11bd67,_0x11bd67['uint32']());break;case 0x4:_0xc366cb['wasUndone']=_0x11bd67['bool']();break;default:_0x11bd67['skipType'](0x7&_0x2d342e);}}return _0xc366cb;},_0x4c9584['decodeDelimited']=function(_0x349b94){return _0x349b94 instanceof _0x5222cb||(_0x349b94=new _0x5222cb(_0x349b94)),this['decode'](_0x349b94,_0x349b94['uint32']());},_0x4c9584['verify']=function(_0x5c0f93){if('object'!=typeof _0x5c0f93||null===_0x5c0f93)return'object\x20expected';var _0x2bebb8;if(null!=_0x5c0f93['sourcePosition']&&_0x5c0f93['hasOwnProperty']('sourcePosition')&&(_0x2bebb8=_0x540c35['Position']['verify'](_0x5c0f93['sourcePosition'])))return'sourcePosition.'+_0x2bebb8;if(null!=_0x5c0f93['howMany']&&_0x5c0f93['hasOwnProperty']('howMany')&&!_0x56d770['isInteger'](_0x5c0f93['howMany']))return'howMany:\x20integer\x20expected';if(null!=_0x5c0f93['targetPosition']&&_0x5c0f93['hasOwnProperty']('targetPosition')&&(_0x2bebb8=_0x540c35['Position']['verify'](_0x5c0f93['targetPosition'])))return'targetPosition.'+_0x2bebb8;return null!=_0x5c0f93['wasUndone']&&_0x5c0f93['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x5c0f93['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x4c9584['fromObject']=function(_0x54f835){if(_0x54f835 instanceof _0x540c35['MoveOperation'])return _0x54f835;var _0x8077db=new _0x540c35['MoveOperation']();if(null!=_0x54f835['sourcePosition']){if('object'!=typeof _0x54f835['sourcePosition'])throw TypeError('.MoveOperation.sourcePosition:\x20object\x20expected');_0x8077db['sourcePosition']=_0x540c35['Position']['fromObject'](_0x54f835['sourcePosition']);}if(null!=_0x54f835['howMany']&&(_0x8077db['howMany']=_0x54f835['howMany']>>>0x0),null!=_0x54f835['targetPosition']){if('object'!=typeof _0x54f835['targetPosition'])throw TypeError('.MoveOperation.targetPosition:\x20object\x20expected');_0x8077db['targetPosition']=_0x540c35['Position']['fromObject'](_0x54f835['targetPosition']);}return null!=_0x54f835['wasUndone']&&(_0x8077db['wasUndone']=Boolean(_0x54f835['wasUndone'])),_0x8077db;},_0x4c9584['toObject']=function(_0x25d954,_0x11171a){_0x11171a||(_0x11171a={});var _0x5d3b56={};return _0x11171a['defaults']&&(_0x5d3b56['sourcePosition']=null,_0x5d3b56['howMany']=0x0,_0x5d3b56['targetPosition']=null,_0x5d3b56['wasUndone']=!0x1),null!=_0x25d954['sourcePosition']&&_0x25d954['hasOwnProperty']('sourcePosition')&&(_0x5d3b56['sourcePosition']=_0x540c35['Position']['toObject'](_0x25d954['sourcePosition'],_0x11171a)),null!=_0x25d954['howMany']&&_0x25d954['hasOwnProperty']('howMany')&&(_0x5d3b56['howMany']=_0x25d954['howMany']),null!=_0x25d954['targetPosition']&&_0x25d954['hasOwnProperty']('targetPosition')&&(_0x5d3b56['targetPosition']=_0x540c35['Position']['toObject'](_0x25d954['targetPosition'],_0x11171a)),null!=_0x25d954['wasUndone']&&_0x25d954['hasOwnProperty']('wasUndone')&&(_0x5d3b56['wasUndone']=_0x25d954['wasUndone']),_0x5d3b56;},_0x4c9584['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4c9584['getTypeUrl']=function(_0x3ee035){return void 0x0===_0x3ee035&&(_0x3ee035='type.googleapis.com'),_0x3ee035+'/MoveOperation';},_0x4c9584;}()),_0x540c35['RenameOperation']=(function(){function _0x68ea06(_0x4b0c40){if(_0x4b0c40){for(var _0x30da28=Object['keys'](_0x4b0c40),_0x47738a=0x0;_0x47738a<_0x30da28['length'];++_0x47738a)null!=_0x4b0c40[_0x30da28[_0x47738a]]&&(this[_0x30da28[_0x47738a]]=_0x4b0c40[_0x30da28[_0x47738a]]);}}return _0x68ea06['prototype']['position']=null,_0x68ea06['prototype']['oldName']='',_0x68ea06['prototype']['newName']='',_0x68ea06['prototype']['wasUndone']=!0x1,_0x68ea06['create']=function(_0x4bca21){return new _0x68ea06(_0x4bca21);},_0x68ea06['encode']=function(_0x5d69f6,_0x5ce3c7){return _0x5ce3c7||(_0x5ce3c7=_0x21e883['create']()),null!=_0x5d69f6['position']&&Object['hasOwnProperty']['call'](_0x5d69f6,'position')&&_0x540c35['Position']['encode'](_0x5d69f6['position'],_0x5ce3c7['uint32'](0xa)['fork']())['ldelim'](),null!=_0x5d69f6['oldName']&&Object['hasOwnProperty']['call'](_0x5d69f6,'oldName')&&_0x5ce3c7['uint32'](0x12)['string'](_0x5d69f6['oldName']),null!=_0x5d69f6['newName']&&Object['hasOwnProperty']['call'](_0x5d69f6,'newName')&&_0x5ce3c7['uint32'](0x1a)['string'](_0x5d69f6['newName']),null!=_0x5d69f6['wasUndone']&&Object['hasOwnProperty']['call'](_0x5d69f6,'wasUndone')&&_0x5ce3c7['uint32'](0x20)['bool'](_0x5d69f6['wasUndone']),_0x5ce3c7;},_0x68ea06['encodeDelimited']=function(_0x16eb05,_0x113739){return this['encode'](_0x16eb05,_0x113739)['ldelim']();},_0x68ea06['decode']=function(_0x1689a0,_0x34456c){_0x1689a0 instanceof _0x5222cb||(_0x1689a0=_0x5222cb['create'](_0x1689a0));for(var _0x359501=void 0x0===_0x34456c?_0x1689a0['len']:_0x1689a0['pos']+_0x34456c,_0x44b7f6=new _0x540c35['RenameOperation']();_0x1689a0['pos']<_0x359501;){var _0x258af3=_0x1689a0['uint32']();switch(_0x258af3>>>0x3){case 0x1:_0x44b7f6['position']=_0x540c35['Position']['decode'](_0x1689a0,_0x1689a0['uint32']());break;case 0x2:_0x44b7f6['oldName']=_0x1689a0['string']();break;case 0x3:_0x44b7f6['newName']=_0x1689a0['string']();break;case 0x4:_0x44b7f6['wasUndone']=_0x1689a0['bool']();break;default:_0x1689a0['skipType'](0x7&_0x258af3);}}return _0x44b7f6;},_0x68ea06['decodeDelimited']=function(_0x21a38c){return _0x21a38c instanceof _0x5222cb||(_0x21a38c=new _0x5222cb(_0x21a38c)),this['decode'](_0x21a38c,_0x21a38c['uint32']());},_0x68ea06['verify']=function(_0x244641){if('object'!=typeof _0x244641||null===_0x244641)return'object\x20expected';if(null!=_0x244641['position']&&_0x244641['hasOwnProperty']('position')){var _0x8abc53=_0x540c35['Position']['verify'](_0x244641['position']);if(_0x8abc53)return'position.'+_0x8abc53;}return null!=_0x244641['oldName']&&_0x244641['hasOwnProperty']('oldName')&&!_0x56d770['isString'](_0x244641['oldName'])?'oldName:\x20string\x20expected':null!=_0x244641['newName']&&_0x244641['hasOwnProperty']('newName')&&!_0x56d770['isString'](_0x244641['newName'])?'newName:\x20string\x20expected':null!=_0x244641['wasUndone']&&_0x244641['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x244641['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x68ea06['fromObject']=function(_0x499677){if(_0x499677 instanceof _0x540c35['RenameOperation'])return _0x499677;var _0x466154=new _0x540c35['RenameOperation']();if(null!=_0x499677['position']){if('object'!=typeof _0x499677['position'])throw TypeError('.RenameOperation.position:\x20object\x20expected');_0x466154['position']=_0x540c35['Position']['fromObject'](_0x499677['position']);}return null!=_0x499677['oldName']&&(_0x466154['oldName']=String(_0x499677['oldName'])),null!=_0x499677['newName']&&(_0x466154['newName']=String(_0x499677['newName'])),null!=_0x499677['wasUndone']&&(_0x466154['wasUndone']=Boolean(_0x499677['wasUndone'])),_0x466154;},_0x68ea06['toObject']=function(_0x1eccf1,_0x14c2f8){_0x14c2f8||(_0x14c2f8={});var _0x53234e={};return _0x14c2f8['defaults']&&(_0x53234e['position']=null,_0x53234e['oldName']='',_0x53234e['newName']='',_0x53234e['wasUndone']=!0x1),null!=_0x1eccf1['position']&&_0x1eccf1['hasOwnProperty']('position')&&(_0x53234e['position']=_0x540c35['Position']['toObject'](_0x1eccf1['position'],_0x14c2f8)),null!=_0x1eccf1['oldName']&&_0x1eccf1['hasOwnProperty']('oldName')&&(_0x53234e['oldName']=_0x1eccf1['oldName']),null!=_0x1eccf1['newName']&&_0x1eccf1['hasOwnProperty']('newName')&&(_0x53234e['newName']=_0x1eccf1['newName']),null!=_0x1eccf1['wasUndone']&&_0x1eccf1['hasOwnProperty']('wasUndone')&&(_0x53234e['wasUndone']=_0x1eccf1['wasUndone']),_0x53234e;},_0x68ea06['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x68ea06['getTypeUrl']=function(_0x4f56c5){return void 0x0===_0x4f56c5&&(_0x4f56c5='type.googleapis.com'),_0x4f56c5+'/RenameOperation';},_0x68ea06;}()),_0x540c35['RootAttributeOperation']=(function(){function _0x4e1c85(_0xac995c){if(_0xac995c){for(var _0x432dac=Object['keys'](_0xac995c),_0x4b05b8=0x0;_0x4b05b8<_0x432dac['length'];++_0x4b05b8)null!=_0xac995c[_0x432dac[_0x4b05b8]]&&(this[_0x432dac[_0x4b05b8]]=_0xac995c[_0x432dac[_0x4b05b8]]);}}return _0x4e1c85['prototype']['root']='',_0x4e1c85['prototype']['key']='',_0x4e1c85['prototype']['oldValueBoolean']=!0x1,_0x4e1c85['prototype']['oldValueJson']='',_0x4e1c85['prototype']['newValueBoolean']=!0x1,_0x4e1c85['prototype']['newValueJson']='',_0x4e1c85['prototype']['wasUndone']=!0x1,_0x4e1c85['create']=function(_0x17b666){return new _0x4e1c85(_0x17b666);},_0x4e1c85['encode']=function(_0x3f633c,_0x1d1807){return _0x1d1807||(_0x1d1807=_0x21e883['create']()),null!=_0x3f633c['root']&&Object['hasOwnProperty']['call'](_0x3f633c,'root')&&_0x1d1807['uint32'](0xa)['string'](_0x3f633c['root']),null!=_0x3f633c['key']&&Object['hasOwnProperty']['call'](_0x3f633c,'key')&&_0x1d1807['uint32'](0x12)['string'](_0x3f633c['key']),null!=_0x3f633c['oldValueBoolean']&&Object['hasOwnProperty']['call'](_0x3f633c,'oldValueBoolean')&&_0x1d1807['uint32'](0x18)['bool'](_0x3f633c['oldValueBoolean']),null!=_0x3f633c['oldValueJson']&&Object['hasOwnProperty']['call'](_0x3f633c,'oldValueJson')&&_0x1d1807['uint32'](0x22)['string'](_0x3f633c['oldValueJson']),null!=_0x3f633c['newValueBoolean']&&Object['hasOwnProperty']['call'](_0x3f633c,'newValueBoolean')&&_0x1d1807['uint32'](0x28)['bool'](_0x3f633c['newValueBoolean']),null!=_0x3f633c['newValueJson']&&Object['hasOwnProperty']['call'](_0x3f633c,'newValueJson')&&_0x1d1807['uint32'](0x32)['string'](_0x3f633c['newValueJson']),null!=_0x3f633c['wasUndone']&&Object['hasOwnProperty']['call'](_0x3f633c,'wasUndone')&&_0x1d1807['uint32'](0x38)['bool'](_0x3f633c['wasUndone']),_0x1d1807;},_0x4e1c85['encodeDelimited']=function(_0x53632b,_0x1e9027){return this['encode'](_0x53632b,_0x1e9027)['ldelim']();},_0x4e1c85['decode']=function(_0x4890ee,_0x340cb3){_0x4890ee instanceof _0x5222cb||(_0x4890ee=_0x5222cb['create'](_0x4890ee));for(var _0x5b4a36=void 0x0===_0x340cb3?_0x4890ee['len']:_0x4890ee['pos']+_0x340cb3,_0xa8af52=new _0x540c35['RootAttributeOperation']();_0x4890ee['pos']<_0x5b4a36;){var _0x5cc96d=_0x4890ee['uint32']();switch(_0x5cc96d>>>0x3){case 0x1:_0xa8af52['root']=_0x4890ee['string']();break;case 0x2:_0xa8af52['key']=_0x4890ee['string']();break;case 0x3:_0xa8af52['oldValueBoolean']=_0x4890ee['bool']();break;case 0x4:_0xa8af52['oldValueJson']=_0x4890ee['string']();break;case 0x5:_0xa8af52['newValueBoolean']=_0x4890ee['bool']();break;case 0x6:_0xa8af52['newValueJson']=_0x4890ee['string']();break;case 0x7:_0xa8af52['wasUndone']=_0x4890ee['bool']();break;default:_0x4890ee['skipType'](0x7&_0x5cc96d);}}return _0xa8af52;},_0x4e1c85['decodeDelimited']=function(_0x1089dd){return _0x1089dd instanceof _0x5222cb||(_0x1089dd=new _0x5222cb(_0x1089dd)),this['decode'](_0x1089dd,_0x1089dd['uint32']());},_0x4e1c85['verify']=function(_0x128f96){return'object'!=typeof _0x128f96||null===_0x128f96?'object\x20expected':null!=_0x128f96['root']&&_0x128f96['hasOwnProperty']('root')&&!_0x56d770['isString'](_0x128f96['root'])?'root:\x20string\x20expected':null!=_0x128f96['key']&&_0x128f96['hasOwnProperty']('key')&&!_0x56d770['isString'](_0x128f96['key'])?'key:\x20string\x20expected':null!=_0x128f96['oldValueBoolean']&&_0x128f96['hasOwnProperty']('oldValueBoolean')&&'boolean'!=typeof _0x128f96['oldValueBoolean']?'oldValueBoolean:\x20boolean\x20expected':null!=_0x128f96['oldValueJson']&&_0x128f96['hasOwnProperty']('oldValueJson')&&!_0x56d770['isString'](_0x128f96['oldValueJson'])?'oldValueJson:\x20string\x20expected':null!=_0x128f96['newValueBoolean']&&_0x128f96['hasOwnProperty']('newValueBoolean')&&'boolean'!=typeof _0x128f96['newValueBoolean']?'newValueBoolean:\x20boolean\x20expected':null!=_0x128f96['newValueJson']&&_0x128f96['hasOwnProperty']('newValueJson')&&!_0x56d770['isString'](_0x128f96['newValueJson'])?'newValueJson:\x20string\x20expected':null!=_0x128f96['wasUndone']&&_0x128f96['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x128f96['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x4e1c85['fromObject']=function(_0x20b143){if(_0x20b143 instanceof _0x540c35['RootAttributeOperation'])return _0x20b143;var _0x23e79d=new _0x540c35['RootAttributeOperation']();return null!=_0x20b143['root']&&(_0x23e79d['root']=String(_0x20b143['root'])),null!=_0x20b143['key']&&(_0x23e79d['key']=String(_0x20b143['key'])),null!=_0x20b143['oldValueBoolean']&&(_0x23e79d['oldValueBoolean']=Boolean(_0x20b143['oldValueBoolean'])),null!=_0x20b143['oldValueJson']&&(_0x23e79d['oldValueJson']=String(_0x20b143['oldValueJson'])),null!=_0x20b143['newValueBoolean']&&(_0x23e79d['newValueBoolean']=Boolean(_0x20b143['newValueBoolean'])),null!=_0x20b143['newValueJson']&&(_0x23e79d['newValueJson']=String(_0x20b143['newValueJson'])),null!=_0x20b143['wasUndone']&&(_0x23e79d['wasUndone']=Boolean(_0x20b143['wasUndone'])),_0x23e79d;},_0x4e1c85['toObject']=function(_0x28c3ab,_0x122b6e){_0x122b6e||(_0x122b6e={});var _0x291956={};return _0x122b6e['defaults']&&(_0x291956['root']='',_0x291956['key']='',_0x291956['oldValueBoolean']=!0x1,_0x291956['oldValueJson']='',_0x291956['newValueBoolean']=!0x1,_0x291956['newValueJson']='',_0x291956['wasUndone']=!0x1),null!=_0x28c3ab['root']&&_0x28c3ab['hasOwnProperty']('root')&&(_0x291956['root']=_0x28c3ab['root']),null!=_0x28c3ab['key']&&_0x28c3ab['hasOwnProperty']('key')&&(_0x291956['key']=_0x28c3ab['key']),null!=_0x28c3ab['oldValueBoolean']&&_0x28c3ab['hasOwnProperty']('oldValueBoolean')&&(_0x291956['oldValueBoolean']=_0x28c3ab['oldValueBoolean']),null!=_0x28c3ab['oldValueJson']&&_0x28c3ab['hasOwnProperty']('oldValueJson')&&(_0x291956['oldValueJson']=_0x28c3ab['oldValueJson']),null!=_0x28c3ab['newValueBoolean']&&_0x28c3ab['hasOwnProperty']('newValueBoolean')&&(_0x291956['newValueBoolean']=_0x28c3ab['newValueBoolean']),null!=_0x28c3ab['newValueJson']&&_0x28c3ab['hasOwnProperty']('newValueJson')&&(_0x291956['newValueJson']=_0x28c3ab['newValueJson']),null!=_0x28c3ab['wasUndone']&&_0x28c3ab['hasOwnProperty']('wasUndone')&&(_0x291956['wasUndone']=_0x28c3ab['wasUndone']),_0x291956;},_0x4e1c85['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4e1c85['getTypeUrl']=function(_0x4742bc){return void 0x0===_0x4742bc&&(_0x4742bc='type.googleapis.com'),_0x4742bc+'/RootAttributeOperation';},_0x4e1c85;}()),_0x540c35['RootOperation']=(function(){function _0x4a0e0a(_0xc60e81){if(_0xc60e81){for(var _0x14e424=Object['keys'](_0xc60e81),_0x5a1a92=0x0;_0x5a1a92<_0x14e424['length'];++_0x5a1a92)null!=_0xc60e81[_0x14e424[_0x5a1a92]]&&(this[_0x14e424[_0x5a1a92]]=_0xc60e81[_0x14e424[_0x5a1a92]]);}}return _0x4a0e0a['prototype']['rootName']='',_0x4a0e0a['prototype']['elementName']='',_0x4a0e0a['prototype']['isAdd']=!0x1,_0x4a0e0a['prototype']['wasUndone']=!0x1,_0x4a0e0a['create']=function(_0x171eb3){return new _0x4a0e0a(_0x171eb3);},_0x4a0e0a['encode']=function(_0x47db22,_0x31fce){return _0x31fce||(_0x31fce=_0x21e883['create']()),null!=_0x47db22['rootName']&&Object['hasOwnProperty']['call'](_0x47db22,'rootName')&&_0x31fce['uint32'](0xa)['string'](_0x47db22['rootName']),null!=_0x47db22['elementName']&&Object['hasOwnProperty']['call'](_0x47db22,'elementName')&&_0x31fce['uint32'](0x12)['string'](_0x47db22['elementName']),null!=_0x47db22['isAdd']&&Object['hasOwnProperty']['call'](_0x47db22,'isAdd')&&_0x31fce['uint32'](0x18)['bool'](_0x47db22['isAdd']),null!=_0x47db22['wasUndone']&&Object['hasOwnProperty']['call'](_0x47db22,'wasUndone')&&_0x31fce['uint32'](0x20)['bool'](_0x47db22['wasUndone']),_0x31fce;},_0x4a0e0a['encodeDelimited']=function(_0x383d76,_0x1cc30f){return this['encode'](_0x383d76,_0x1cc30f)['ldelim']();},_0x4a0e0a['decode']=function(_0x4da315,_0xdd3759){_0x4da315 instanceof _0x5222cb||(_0x4da315=_0x5222cb['create'](_0x4da315));for(var _0x149c9c=void 0x0===_0xdd3759?_0x4da315['len']:_0x4da315['pos']+_0xdd3759,_0x52732f=new _0x540c35['RootOperation']();_0x4da315['pos']<_0x149c9c;){var _0x13b325=_0x4da315['uint32']();switch(_0x13b325>>>0x3){case 0x1:_0x52732f['rootName']=_0x4da315['string']();break;case 0x2:_0x52732f['elementName']=_0x4da315['string']();break;case 0x3:_0x52732f['isAdd']=_0x4da315['bool']();break;case 0x4:_0x52732f['wasUndone']=_0x4da315['bool']();break;default:_0x4da315['skipType'](0x7&_0x13b325);}}return _0x52732f;},_0x4a0e0a['decodeDelimited']=function(_0x230a4a){return _0x230a4a instanceof _0x5222cb||(_0x230a4a=new _0x5222cb(_0x230a4a)),this['decode'](_0x230a4a,_0x230a4a['uint32']());},_0x4a0e0a['verify']=function(_0x200ee5){return'object'!=typeof _0x200ee5||null===_0x200ee5?'object\x20expected':null!=_0x200ee5['rootName']&&_0x200ee5['hasOwnProperty']('rootName')&&!_0x56d770['isString'](_0x200ee5['rootName'])?'rootName:\x20string\x20expected':null!=_0x200ee5['elementName']&&_0x200ee5['hasOwnProperty']('elementName')&&!_0x56d770['isString'](_0x200ee5['elementName'])?'elementName:\x20string\x20expected':null!=_0x200ee5['isAdd']&&_0x200ee5['hasOwnProperty']('isAdd')&&'boolean'!=typeof _0x200ee5['isAdd']?'isAdd:\x20boolean\x20expected':null!=_0x200ee5['wasUndone']&&_0x200ee5['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x200ee5['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x4a0e0a['fromObject']=function(_0x1d9bd3){if(_0x1d9bd3 instanceof _0x540c35['RootOperation'])return _0x1d9bd3;var _0x587512=new _0x540c35['RootOperation']();return null!=_0x1d9bd3['rootName']&&(_0x587512['rootName']=String(_0x1d9bd3['rootName'])),null!=_0x1d9bd3['elementName']&&(_0x587512['elementName']=String(_0x1d9bd3['elementName'])),null!=_0x1d9bd3['isAdd']&&(_0x587512['isAdd']=Boolean(_0x1d9bd3['isAdd'])),null!=_0x1d9bd3['wasUndone']&&(_0x587512['wasUndone']=Boolean(_0x1d9bd3['wasUndone'])),_0x587512;},_0x4a0e0a['toObject']=function(_0x110dbe,_0x2f02fa){_0x2f02fa||(_0x2f02fa={});var _0x5f30d0={};return _0x2f02fa['defaults']&&(_0x5f30d0['rootName']='',_0x5f30d0['elementName']='',_0x5f30d0['isAdd']=!0x1,_0x5f30d0['wasUndone']=!0x1),null!=_0x110dbe['rootName']&&_0x110dbe['hasOwnProperty']('rootName')&&(_0x5f30d0['rootName']=_0x110dbe['rootName']),null!=_0x110dbe['elementName']&&_0x110dbe['hasOwnProperty']('elementName')&&(_0x5f30d0['elementName']=_0x110dbe['elementName']),null!=_0x110dbe['isAdd']&&_0x110dbe['hasOwnProperty']('isAdd')&&(_0x5f30d0['isAdd']=_0x110dbe['isAdd']),null!=_0x110dbe['wasUndone']&&_0x110dbe['hasOwnProperty']('wasUndone')&&(_0x5f30d0['wasUndone']=_0x110dbe['wasUndone']),_0x5f30d0;},_0x4a0e0a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4a0e0a['getTypeUrl']=function(_0x1cc3d4){return void 0x0===_0x1cc3d4&&(_0x1cc3d4='type.googleapis.com'),_0x1cc3d4+'/RootOperation';},_0x4a0e0a;}()),_0x540c35['SplitOperation']=(function(){function _0x18f4df(_0x53a82e){if(_0x53a82e){for(var _0x59d880=Object['keys'](_0x53a82e),_0x57bdf1=0x0;_0x57bdf1<_0x59d880['length'];++_0x57bdf1)null!=_0x53a82e[_0x59d880[_0x57bdf1]]&&(this[_0x59d880[_0x57bdf1]]=_0x53a82e[_0x59d880[_0x57bdf1]]);}}return _0x18f4df['prototype']['splitPosition']=null,_0x18f4df['prototype']['graveyardPosition']=null,_0x18f4df['prototype']['howMany']=0x0,_0x18f4df['prototype']['insertionPosition']=null,_0x18f4df['prototype']['wasUndone']=!0x1,_0x18f4df['create']=function(_0x650066){return new _0x18f4df(_0x650066);},_0x18f4df['encode']=function(_0x302cd7,_0x485146){return _0x485146||(_0x485146=_0x21e883['create']()),null!=_0x302cd7['splitPosition']&&Object['hasOwnProperty']['call'](_0x302cd7,'splitPosition')&&_0x540c35['Position']['encode'](_0x302cd7['splitPosition'],_0x485146['uint32'](0xa)['fork']())['ldelim'](),null!=_0x302cd7['graveyardPosition']&&Object['hasOwnProperty']['call'](_0x302cd7,'graveyardPosition')&&_0x540c35['Position']['encode'](_0x302cd7['graveyardPosition'],_0x485146['uint32'](0x12)['fork']())['ldelim'](),null!=_0x302cd7['howMany']&&Object['hasOwnProperty']['call'](_0x302cd7,'howMany')&&_0x485146['uint32'](0x18)['uint32'](_0x302cd7['howMany']),null!=_0x302cd7['insertionPosition']&&Object['hasOwnProperty']['call'](_0x302cd7,'insertionPosition')&&_0x540c35['Position']['encode'](_0x302cd7['insertionPosition'],_0x485146['uint32'](0x22)['fork']())['ldelim'](),null!=_0x302cd7['wasUndone']&&Object['hasOwnProperty']['call'](_0x302cd7,'wasUndone')&&_0x485146['uint32'](0x28)['bool'](_0x302cd7['wasUndone']),_0x485146;},_0x18f4df['encodeDelimited']=function(_0x536e3e,_0x44554a){return this['encode'](_0x536e3e,_0x44554a)['ldelim']();},_0x18f4df['decode']=function(_0x184ec6,_0x5702ae){_0x184ec6 instanceof _0x5222cb||(_0x184ec6=_0x5222cb['create'](_0x184ec6));for(var _0x4edd90=void 0x0===_0x5702ae?_0x184ec6['len']:_0x184ec6['pos']+_0x5702ae,_0x2ba75a=new _0x540c35['SplitOperation']();_0x184ec6['pos']<_0x4edd90;){var _0x377aaf=_0x184ec6['uint32']();switch(_0x377aaf>>>0x3){case 0x1:_0x2ba75a['splitPosition']=_0x540c35['Position']['decode'](_0x184ec6,_0x184ec6['uint32']());break;case 0x2:_0x2ba75a['graveyardPosition']=_0x540c35['Position']['decode'](_0x184ec6,_0x184ec6['uint32']());break;case 0x3:_0x2ba75a['howMany']=_0x184ec6['uint32']();break;case 0x4:_0x2ba75a['insertionPosition']=_0x540c35['Position']['decode'](_0x184ec6,_0x184ec6['uint32']());break;case 0x5:_0x2ba75a['wasUndone']=_0x184ec6['bool']();break;default:_0x184ec6['skipType'](0x7&_0x377aaf);}}return _0x2ba75a;},_0x18f4df['decodeDelimited']=function(_0x7ff1cc){return _0x7ff1cc instanceof _0x5222cb||(_0x7ff1cc=new _0x5222cb(_0x7ff1cc)),this['decode'](_0x7ff1cc,_0x7ff1cc['uint32']());},_0x18f4df['verify']=function(_0x365b77){if('object'!=typeof _0x365b77||null===_0x365b77)return'object\x20expected';var _0x5ad363;if(null!=_0x365b77['splitPosition']&&_0x365b77['hasOwnProperty']('splitPosition')&&(_0x5ad363=_0x540c35['Position']['verify'](_0x365b77['splitPosition'])))return'splitPosition.'+_0x5ad363;if(null!=_0x365b77['graveyardPosition']&&_0x365b77['hasOwnProperty']('graveyardPosition')&&(_0x5ad363=_0x540c35['Position']['verify'](_0x365b77['graveyardPosition'])))return'graveyardPosition.'+_0x5ad363;if(null!=_0x365b77['howMany']&&_0x365b77['hasOwnProperty']('howMany')&&!_0x56d770['isInteger'](_0x365b77['howMany']))return'howMany:\x20integer\x20expected';if(null!=_0x365b77['insertionPosition']&&_0x365b77['hasOwnProperty']('insertionPosition')&&(_0x5ad363=_0x540c35['Position']['verify'](_0x365b77['insertionPosition'])))return'insertionPosition.'+_0x5ad363;return null!=_0x365b77['wasUndone']&&_0x365b77['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x365b77['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x18f4df['fromObject']=function(_0x36b746){if(_0x36b746 instanceof _0x540c35['SplitOperation'])return _0x36b746;var _0xc35ec3=new _0x540c35['SplitOperation']();if(null!=_0x36b746['splitPosition']){if('object'!=typeof _0x36b746['splitPosition'])throw TypeError('.SplitOperation.splitPosition:\x20object\x20expected');_0xc35ec3['splitPosition']=_0x540c35['Position']['fromObject'](_0x36b746['splitPosition']);}if(null!=_0x36b746['graveyardPosition']){if('object'!=typeof _0x36b746['graveyardPosition'])throw TypeError('.SplitOperation.graveyardPosition:\x20object\x20expected');_0xc35ec3['graveyardPosition']=_0x540c35['Position']['fromObject'](_0x36b746['graveyardPosition']);}if(null!=_0x36b746['howMany']&&(_0xc35ec3['howMany']=_0x36b746['howMany']>>>0x0),null!=_0x36b746['insertionPosition']){if('object'!=typeof _0x36b746['insertionPosition'])throw TypeError('.SplitOperation.insertionPosition:\x20object\x20expected');_0xc35ec3['insertionPosition']=_0x540c35['Position']['fromObject'](_0x36b746['insertionPosition']);}return null!=_0x36b746['wasUndone']&&(_0xc35ec3['wasUndone']=Boolean(_0x36b746['wasUndone'])),_0xc35ec3;},_0x18f4df['toObject']=function(_0x32b35d,_0x37af7f){_0x37af7f||(_0x37af7f={});var _0x57000b={};return _0x37af7f['defaults']&&(_0x57000b['splitPosition']=null,_0x57000b['graveyardPosition']=null,_0x57000b['howMany']=0x0,_0x57000b['insertionPosition']=null,_0x57000b['wasUndone']=!0x1),null!=_0x32b35d['splitPosition']&&_0x32b35d['hasOwnProperty']('splitPosition')&&(_0x57000b['splitPosition']=_0x540c35['Position']['toObject'](_0x32b35d['splitPosition'],_0x37af7f)),null!=_0x32b35d['graveyardPosition']&&_0x32b35d['hasOwnProperty']('graveyardPosition')&&(_0x57000b['graveyardPosition']=_0x540c35['Position']['toObject'](_0x32b35d['graveyardPosition'],_0x37af7f)),null!=_0x32b35d['howMany']&&_0x32b35d['hasOwnProperty']('howMany')&&(_0x57000b['howMany']=_0x32b35d['howMany']),null!=_0x32b35d['insertionPosition']&&_0x32b35d['hasOwnProperty']('insertionPosition')&&(_0x57000b['insertionPosition']=_0x540c35['Position']['toObject'](_0x32b35d['insertionPosition'],_0x37af7f)),null!=_0x32b35d['wasUndone']&&_0x32b35d['hasOwnProperty']('wasUndone')&&(_0x57000b['wasUndone']=_0x32b35d['wasUndone']),_0x57000b;},_0x18f4df['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x18f4df['getTypeUrl']=function(_0x1f29b0){return void 0x0===_0x1f29b0&&(_0x1f29b0='type.googleapis.com'),_0x1f29b0+'/SplitOperation';},_0x18f4df;}()),_0x540c35['Position']=(function(){function _0x5298e1(_0x53be4b){if(this['path']=[],_0x53be4b){for(var _0x2018ca=Object['keys'](_0x53be4b),_0x2d8213=0x0;_0x2d8213<_0x2018ca['length'];++_0x2d8213)null!=_0x53be4b[_0x2018ca[_0x2d8213]]&&(this[_0x2018ca[_0x2d8213]]=_0x53be4b[_0x2018ca[_0x2d8213]]);}}return _0x5298e1['prototype']['root']='',_0x5298e1['prototype']['rootMain']=!0x1,_0x5298e1['prototype']['rootGraveyard']=!0x1,_0x5298e1['prototype']['path']=_0x56d770['emptyArray'],_0x5298e1['prototype']['stickiness']='',_0x5298e1['create']=function(_0x5105ef){return new _0x5298e1(_0x5105ef);},_0x5298e1['encode']=function(_0x35ea55,_0x39d16d){if(_0x39d16d||(_0x39d16d=_0x21e883['create']()),null!=_0x35ea55['root']&&Object['hasOwnProperty']['call'](_0x35ea55,'root')&&_0x39d16d['uint32'](0xa)['string'](_0x35ea55['root']),null!=_0x35ea55['rootMain']&&Object['hasOwnProperty']['call'](_0x35ea55,'rootMain')&&_0x39d16d['uint32'](0x10)['bool'](_0x35ea55['rootMain']),null!=_0x35ea55['rootGraveyard']&&Object['hasOwnProperty']['call'](_0x35ea55,'rootGraveyard')&&_0x39d16d['uint32'](0x18)['bool'](_0x35ea55['rootGraveyard']),null!=_0x35ea55['path']&&_0x35ea55['path']['length']){_0x39d16d['uint32'](0x22)['fork']();for(var _0x412c07=0x0;_0x412c07<_0x35ea55['path']['length'];++_0x412c07)_0x39d16d['uint32'](_0x35ea55['path'][_0x412c07]);_0x39d16d['ldelim']();}return null!=_0x35ea55['stickiness']&&Object['hasOwnProperty']['call'](_0x35ea55,'stickiness')&&_0x39d16d['uint32'](0x2a)['string'](_0x35ea55['stickiness']),_0x39d16d;},_0x5298e1['encodeDelimited']=function(_0x148572,_0x1cfca0){return this['encode'](_0x148572,_0x1cfca0)['ldelim']();},_0x5298e1['decode']=function(_0x1adb00,_0x47cf04){_0x1adb00 instanceof _0x5222cb||(_0x1adb00=_0x5222cb['create'](_0x1adb00));for(var _0x59a624=void 0x0===_0x47cf04?_0x1adb00['len']:_0x1adb00['pos']+_0x47cf04,_0x4586f7=new _0x540c35['Position']();_0x1adb00['pos']<_0x59a624;){var _0x559e26=_0x1adb00['uint32']();switch(_0x559e26>>>0x3){case 0x1:_0x4586f7['root']=_0x1adb00['string']();break;case 0x2:_0x4586f7['rootMain']=_0x1adb00['bool']();break;case 0x3:_0x4586f7['rootGraveyard']=_0x1adb00['bool']();break;case 0x4:if(_0x4586f7['path']&&_0x4586f7['path']['length']||(_0x4586f7['path']=[]),0x2==(0x7&_0x559e26)){for(var _0x324223=_0x1adb00['uint32']()+_0x1adb00['pos'];_0x1adb00['pos']<_0x324223;)_0x4586f7['path']['push'](_0x1adb00['uint32']());}else _0x4586f7['path']['push'](_0x1adb00['uint32']());break;case 0x5:_0x4586f7['stickiness']=_0x1adb00['string']();break;default:_0x1adb00['skipType'](0x7&_0x559e26);}}return _0x4586f7;},_0x5298e1['decodeDelimited']=function(_0x304896){return _0x304896 instanceof _0x5222cb||(_0x304896=new _0x5222cb(_0x304896)),this['decode'](_0x304896,_0x304896['uint32']());},_0x5298e1['verify']=function(_0xace1bf){if('object'!=typeof _0xace1bf||null===_0xace1bf)return'object\x20expected';if(null!=_0xace1bf['root']&&_0xace1bf['hasOwnProperty']('root')&&!_0x56d770['isString'](_0xace1bf['root']))return'root:\x20string\x20expected';if(null!=_0xace1bf['rootMain']&&_0xace1bf['hasOwnProperty']('rootMain')&&'boolean'!=typeof _0xace1bf['rootMain'])return'rootMain:\x20boolean\x20expected';if(null!=_0xace1bf['rootGraveyard']&&_0xace1bf['hasOwnProperty']('rootGraveyard')&&'boolean'!=typeof _0xace1bf['rootGraveyard'])return'rootGraveyard:\x20boolean\x20expected';if(null!=_0xace1bf['path']&&_0xace1bf['hasOwnProperty']('path')){if(!Array['isArray'](_0xace1bf['path']))return'path:\x20array\x20expected';for(var _0x5a0fa5=0x0;_0x5a0fa5<_0xace1bf['path']['length'];++_0x5a0fa5)if(!_0x56d770['isInteger'](_0xace1bf['path'][_0x5a0fa5]))return'path:\x20integer[]\x20expected';}return null!=_0xace1bf['stickiness']&&_0xace1bf['hasOwnProperty']('stickiness')&&!_0x56d770['isString'](_0xace1bf['stickiness'])?'stickiness:\x20string\x20expected':null;},_0x5298e1['fromObject']=function(_0x1b5af1){if(_0x1b5af1 instanceof _0x540c35['Position'])return _0x1b5af1;var _0x8759e8=new _0x540c35['Position']();if(null!=_0x1b5af1['root']&&(_0x8759e8['root']=String(_0x1b5af1['root'])),null!=_0x1b5af1['rootMain']&&(_0x8759e8['rootMain']=Boolean(_0x1b5af1['rootMain'])),null!=_0x1b5af1['rootGraveyard']&&(_0x8759e8['rootGraveyard']=Boolean(_0x1b5af1['rootGraveyard'])),_0x1b5af1['path']){if(!Array['isArray'](_0x1b5af1['path']))throw TypeError('.Position.path:\x20array\x20expected');_0x8759e8['path']=[];for(var _0x3906db=0x0;_0x3906db<_0x1b5af1['path']['length'];++_0x3906db)_0x8759e8['path'][_0x3906db]=_0x1b5af1['path'][_0x3906db]>>>0x0;}return null!=_0x1b5af1['stickiness']&&(_0x8759e8['stickiness']=String(_0x1b5af1['stickiness'])),_0x8759e8;},_0x5298e1['toObject']=function(_0x55a74e,_0x1917e2){_0x1917e2||(_0x1917e2={});var _0x1a4f5d={};if((_0x1917e2['arrays']||_0x1917e2['defaults'])&&(_0x1a4f5d['path']=[]),_0x1917e2['defaults']&&(_0x1a4f5d['root']='',_0x1a4f5d['rootMain']=!0x1,_0x1a4f5d['rootGraveyard']=!0x1,_0x1a4f5d['stickiness']=''),null!=_0x55a74e['root']&&_0x55a74e['hasOwnProperty']('root')&&(_0x1a4f5d['root']=_0x55a74e['root']),null!=_0x55a74e['rootMain']&&_0x55a74e['hasOwnProperty']('rootMain')&&(_0x1a4f5d['rootMain']=_0x55a74e['rootMain']),null!=_0x55a74e['rootGraveyard']&&_0x55a74e['hasOwnProperty']('rootGraveyard')&&(_0x1a4f5d['rootGraveyard']=_0x55a74e['rootGraveyard']),_0x55a74e['path']&&_0x55a74e['path']['length']){_0x1a4f5d['path']=[];for(var _0x1f8393=0x0;_0x1f8393<_0x55a74e['path']['length'];++_0x1f8393)_0x1a4f5d['path'][_0x1f8393]=_0x55a74e['path'][_0x1f8393];}return null!=_0x55a74e['stickiness']&&_0x55a74e['hasOwnProperty']('stickiness')&&(_0x1a4f5d['stickiness']=_0x55a74e['stickiness']),_0x1a4f5d;},_0x5298e1['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5298e1['getTypeUrl']=function(_0xadfd0a){return void 0x0===_0xadfd0a&&(_0xadfd0a='type.googleapis.com'),_0xadfd0a+'/Position';},_0x5298e1;}()),_0x540c35['Range']=(function(){function _0x2d7cab(_0x405b84){if(_0x405b84){for(var _0x20e980=Object['keys'](_0x405b84),_0x542ac3=0x0;_0x542ac3<_0x20e980['length'];++_0x542ac3)null!=_0x405b84[_0x20e980[_0x542ac3]]&&(this[_0x20e980[_0x542ac3]]=_0x405b84[_0x20e980[_0x542ac3]]);}}return _0x2d7cab['prototype']['start']=null,_0x2d7cab['prototype']['end']=null,_0x2d7cab['create']=function(_0x29d294){return new _0x2d7cab(_0x29d294);},_0x2d7cab['encode']=function(_0x314223,_0x3542fb){return _0x3542fb||(_0x3542fb=_0x21e883['create']()),null!=_0x314223['start']&&Object['hasOwnProperty']['call'](_0x314223,'start')&&_0x540c35['Position']['encode'](_0x314223['start'],_0x3542fb['uint32'](0xa)['fork']())['ldelim'](),null!=_0x314223['end']&&Object['hasOwnProperty']['call'](_0x314223,'end')&&_0x540c35['Position']['encode'](_0x314223['end'],_0x3542fb['uint32'](0x12)['fork']())['ldelim'](),_0x3542fb;},_0x2d7cab['encodeDelimited']=function(_0x3fdc37,_0xef8567){return this['encode'](_0x3fdc37,_0xef8567)['ldelim']();},_0x2d7cab['decode']=function(_0xcd4bb4,_0x9ca599){_0xcd4bb4 instanceof _0x5222cb||(_0xcd4bb4=_0x5222cb['create'](_0xcd4bb4));for(var _0x585e78=void 0x0===_0x9ca599?_0xcd4bb4['len']:_0xcd4bb4['pos']+_0x9ca599,_0x140d57=new _0x540c35['Range']();_0xcd4bb4['pos']<_0x585e78;){var _0x4112c0=_0xcd4bb4['uint32']();switch(_0x4112c0>>>0x3){case 0x1:_0x140d57['start']=_0x540c35['Position']['decode'](_0xcd4bb4,_0xcd4bb4['uint32']());break;case 0x2:_0x140d57['end']=_0x540c35['Position']['decode'](_0xcd4bb4,_0xcd4bb4['uint32']());break;default:_0xcd4bb4['skipType'](0x7&_0x4112c0);}}return _0x140d57;},_0x2d7cab['decodeDelimited']=function(_0x1c9614){return _0x1c9614 instanceof _0x5222cb||(_0x1c9614=new _0x5222cb(_0x1c9614)),this['decode'](_0x1c9614,_0x1c9614['uint32']());},_0x2d7cab['verify']=function(_0x37f36a){if('object'!=typeof _0x37f36a||null===_0x37f36a)return'object\x20expected';var _0x2e608b;if(null!=_0x37f36a['start']&&_0x37f36a['hasOwnProperty']('start')&&(_0x2e608b=_0x540c35['Position']['verify'](_0x37f36a['start'])))return'start.'+_0x2e608b;if(null!=_0x37f36a['end']&&_0x37f36a['hasOwnProperty']('end')&&(_0x2e608b=_0x540c35['Position']['verify'](_0x37f36a['end'])))return'end.'+_0x2e608b;return null;},_0x2d7cab['fromObject']=function(_0x270aa2){if(_0x270aa2 instanceof _0x540c35['Range'])return _0x270aa2;var _0x39b974=new _0x540c35['Range']();if(null!=_0x270aa2['start']){if('object'!=typeof _0x270aa2['start'])throw TypeError('.Range.start:\x20object\x20expected');_0x39b974['start']=_0x540c35['Position']['fromObject'](_0x270aa2['start']);}if(null!=_0x270aa2['end']){if('object'!=typeof _0x270aa2['end'])throw TypeError('.Range.end:\x20object\x20expected');_0x39b974['end']=_0x540c35['Position']['fromObject'](_0x270aa2['end']);}return _0x39b974;},_0x2d7cab['toObject']=function(_0x575084,_0x1e7070){_0x1e7070||(_0x1e7070={});var _0x1040c3={};return _0x1e7070['defaults']&&(_0x1040c3['start']=null,_0x1040c3['end']=null),null!=_0x575084['start']&&_0x575084['hasOwnProperty']('start')&&(_0x1040c3['start']=_0x540c35['Position']['toObject'](_0x575084['start'],_0x1e7070)),null!=_0x575084['end']&&_0x575084['hasOwnProperty']('end')&&(_0x1040c3['end']=_0x540c35['Position']['toObject'](_0x575084['end'],_0x1e7070)),_0x1040c3;},_0x2d7cab['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2d7cab['getTypeUrl']=function(_0x522f56){return void 0x0===_0x522f56&&(_0x522f56='type.googleapis.com'),_0x522f56+'/Range';},_0x2d7cab;}()),_0x540c35['Element']=(function(){function _0x3b32dc(_0xf8e531){if(this['children']=[],this['attributesBoolean']={},_0xf8e531){for(var _0x3d61a8=Object['keys'](_0xf8e531),_0x3d34f6=0x0;_0x3d34f6<_0x3d61a8['length'];++_0x3d34f6)null!=_0xf8e531[_0x3d61a8[_0x3d34f6]]&&(this[_0x3d61a8[_0x3d34f6]]=_0xf8e531[_0x3d61a8[_0x3d34f6]]);}}return _0x3b32dc['prototype']['name']='',_0x3b32dc['prototype']['children']=_0x56d770['emptyArray'],_0x3b32dc['prototype']['data']='',_0x3b32dc['prototype']['attributesBoolean']=_0x56d770['emptyObject'],_0x3b32dc['prototype']['attributesJson']='',_0x3b32dc['create']=function(_0x41cf8c){return new _0x3b32dc(_0x41cf8c);},_0x3b32dc['encode']=function(_0x554604,_0x153f75){if(_0x153f75||(_0x153f75=_0x21e883['create']()),null!=_0x554604['name']&&Object['hasOwnProperty']['call'](_0x554604,'name')&&_0x153f75['uint32'](0xa)['string'](_0x554604['name']),null!=_0x554604['children']&&_0x554604['children']['length']){for(var _0x19f6c9=0x0;_0x19f6c9<_0x554604['children']['length'];++_0x19f6c9)_0x540c35['Element']['encode'](_0x554604['children'][_0x19f6c9],_0x153f75['uint32'](0x12)['fork']())['ldelim']();}if(null!=_0x554604['data']&&Object['hasOwnProperty']['call'](_0x554604,'data')&&_0x153f75['uint32'](0x1a)['string'](_0x554604['data']),null!=_0x554604['attributesBoolean']&&Object['hasOwnProperty']['call'](_0x554604,'attributesBoolean')){var _0x5b4d7f=Object['keys'](_0x554604['attributesBoolean']);for(_0x19f6c9=0x0;_0x19f6c9<_0x5b4d7f['length'];++_0x19f6c9)_0x153f75['uint32'](0x22)['fork']()['uint32'](0xa)['string'](_0x5b4d7f[_0x19f6c9])['uint32'](0x10)['bool'](_0x554604['attributesBoolean'][_0x5b4d7f[_0x19f6c9]])['ldelim']();}return null!=_0x554604['attributesJson']&&Object['hasOwnProperty']['call'](_0x554604,'attributesJson')&&_0x153f75['uint32'](0x2a)['string'](_0x554604['attributesJson']),_0x153f75;},_0x3b32dc['encodeDelimited']=function(_0x532403,_0x10a9ae){return this['encode'](_0x532403,_0x10a9ae)['ldelim']();},_0x3b32dc['decode']=function(_0x394296,_0x393c8d){_0x394296 instanceof _0x5222cb||(_0x394296=_0x5222cb['create'](_0x394296));for(var _0x2f7593,_0x5e526f,_0x2dce0c=void 0x0===_0x393c8d?_0x394296['len']:_0x394296['pos']+_0x393c8d,_0x510ea8=new _0x540c35['Element']();_0x394296['pos']<_0x2dce0c;){var _0x1f9b7a=_0x394296['uint32']();switch(_0x1f9b7a>>>0x3){case 0x1:_0x510ea8['name']=_0x394296['string']();break;case 0x2:_0x510ea8['children']&&_0x510ea8['children']['length']||(_0x510ea8['children']=[]),_0x510ea8['children']['push'](_0x540c35['Element']['decode'](_0x394296,_0x394296['uint32']()));break;case 0x3:_0x510ea8['data']=_0x394296['string']();break;case 0x4:_0x510ea8['attributesBoolean']===_0x56d770['emptyObject']&&(_0x510ea8['attributesBoolean']={});var _0x3dd311=_0x394296['uint32']()+_0x394296['pos'];for(_0x2f7593='',_0x5e526f=!0x1;_0x394296['pos']<_0x3dd311;){var _0x11e18b=_0x394296['uint32']();switch(_0x11e18b>>>0x3){case 0x1:_0x2f7593=_0x394296['string']();break;case 0x2:_0x5e526f=_0x394296['bool']();break;default:_0x394296['skipType'](0x7&_0x11e18b);}}_0x510ea8['attributesBoolean'][_0x2f7593]=_0x5e526f;break;case 0x5:_0x510ea8['attributesJson']=_0x394296['string']();break;default:_0x394296['skipType'](0x7&_0x1f9b7a);}}return _0x510ea8;},_0x3b32dc['decodeDelimited']=function(_0x491fbe){return _0x491fbe instanceof _0x5222cb||(_0x491fbe=new _0x5222cb(_0x491fbe)),this['decode'](_0x491fbe,_0x491fbe['uint32']());},_0x3b32dc['verify']=function(_0x3d0726){if('object'!=typeof _0x3d0726||null===_0x3d0726)return'object\x20expected';if(null!=_0x3d0726['name']&&_0x3d0726['hasOwnProperty']('name')&&!_0x56d770['isString'](_0x3d0726['name']))return'name:\x20string\x20expected';if(null!=_0x3d0726['children']&&_0x3d0726['hasOwnProperty']('children')){if(!Array['isArray'](_0x3d0726['children']))return'children:\x20array\x20expected';for(var _0x39a840=0x0;_0x39a840<_0x3d0726['children']['length'];++_0x39a840){var _0xaa472d=_0x540c35['Element']['verify'](_0x3d0726['children'][_0x39a840]);if(_0xaa472d)return'children.'+_0xaa472d;}}if(null!=_0x3d0726['data']&&_0x3d0726['hasOwnProperty']('data')&&!_0x56d770['isString'](_0x3d0726['data']))return'data:\x20string\x20expected';if(null!=_0x3d0726['attributesBoolean']&&_0x3d0726['hasOwnProperty']('attributesBoolean')){if(!_0x56d770['isObject'](_0x3d0726['attributesBoolean']))return'attributesBoolean:\x20object\x20expected';var _0x41c265=Object['keys'](_0x3d0726['attributesBoolean']);for(_0x39a840=0x0;_0x39a840<_0x41c265['length'];++_0x39a840)if('boolean'!=typeof _0x3d0726['attributesBoolean'][_0x41c265[_0x39a840]])return'attributesBoolean:\x20boolean{k:string}\x20expected';}return null!=_0x3d0726['attributesJson']&&_0x3d0726['hasOwnProperty']('attributesJson')&&!_0x56d770['isString'](_0x3d0726['attributesJson'])?'attributesJson:\x20string\x20expected':null;},_0x3b32dc['fromObject']=function(_0x502556){if(_0x502556 instanceof _0x540c35['Element'])return _0x502556;var _0x444f26=new _0x540c35['Element']();if(null!=_0x502556['name']&&(_0x444f26['name']=String(_0x502556['name'])),_0x502556['children']){if(!Array['isArray'](_0x502556['children']))throw TypeError('.Element.children:\x20array\x20expected');_0x444f26['children']=[];for(var _0x161111=0x0;_0x161111<_0x502556['children']['length'];++_0x161111){if('object'!=typeof _0x502556['children'][_0x161111])throw TypeError('.Element.children:\x20object\x20expected');_0x444f26['children'][_0x161111]=_0x540c35['Element']['fromObject'](_0x502556['children'][_0x161111]);}}if(null!=_0x502556['data']&&(_0x444f26['data']=String(_0x502556['data'])),_0x502556['attributesBoolean']){if('object'!=typeof _0x502556['attributesBoolean'])throw TypeError('.Element.attributesBoolean:\x20object\x20expected');_0x444f26['attributesBoolean']={};var _0x271390=Object['keys'](_0x502556['attributesBoolean']);for(_0x161111=0x0;_0x161111<_0x271390['length'];++_0x161111)_0x444f26['attributesBoolean'][_0x271390[_0x161111]]=Boolean(_0x502556['attributesBoolean'][_0x271390[_0x161111]]);}return null!=_0x502556['attributesJson']&&(_0x444f26['attributesJson']=String(_0x502556['attributesJson'])),_0x444f26;},_0x3b32dc['toObject']=function(_0x82a6a6,_0x3abaad){_0x3abaad||(_0x3abaad={});var _0x35e3b0,_0x2612f1={};if((_0x3abaad['arrays']||_0x3abaad['defaults'])&&(_0x2612f1['children']=[]),(_0x3abaad['objects']||_0x3abaad['defaults'])&&(_0x2612f1['attributesBoolean']={}),_0x3abaad['defaults']&&(_0x2612f1['name']='',_0x2612f1['data']='',_0x2612f1['attributesJson']=''),null!=_0x82a6a6['name']&&_0x82a6a6['hasOwnProperty']('name')&&(_0x2612f1['name']=_0x82a6a6['name']),_0x82a6a6['children']&&_0x82a6a6['children']['length']){_0x2612f1['children']=[];for(var _0x24fbea=0x0;_0x24fbea<_0x82a6a6['children']['length'];++_0x24fbea)_0x2612f1['children'][_0x24fbea]=_0x540c35['Element']['toObject'](_0x82a6a6['children'][_0x24fbea],_0x3abaad);}if(null!=_0x82a6a6['data']&&_0x82a6a6['hasOwnProperty']('data')&&(_0x2612f1['data']=_0x82a6a6['data']),_0x82a6a6['attributesBoolean']&&(_0x35e3b0=Object['keys'](_0x82a6a6['attributesBoolean']))['length']){_0x2612f1['attributesBoolean']={};for(_0x24fbea=0x0;_0x24fbea<_0x35e3b0['length'];++_0x24fbea)_0x2612f1['attributesBoolean'][_0x35e3b0[_0x24fbea]]=_0x82a6a6['attributesBoolean'][_0x35e3b0[_0x24fbea]];}return null!=_0x82a6a6['attributesJson']&&_0x82a6a6['hasOwnProperty']('attributesJson')&&(_0x2612f1['attributesJson']=_0x82a6a6['attributesJson']),_0x2612f1;},_0x3b32dc['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3b32dc['getTypeUrl']=function(_0x321f97){return void 0x0===_0x321f97&&(_0x321f97='type.googleapis.com'),_0x321f97+'/Element';},_0x3b32dc;}()),_0x540c35;})());class ProtobufFactory{['_protobufRoot'];constructor(){this['_protobufRoot']=messages;}['getDescriptor'](_0x56c2a5){return new ProtobufDescriptor(this['_protobufRoot'][_0x56c2a5]);}}class ProtobufDescriptor{['_protobuf'];constructor(_0x4e7137){this['_protobuf']=_0x4e7137;}['compress'](_0x5dae5f){const _0x55fef4=this['_protobuf']['verify'](_0x5dae5f);if(_0x55fef4)throw Error(_0x55fef4);return this['_protobuf']['encode'](this['_protobuf']['create'](_0x5dae5f))['finish']();}['decompress'](_0x4d491f){return this['_protobuf']['toObject'](this['_protobuf']['decode'](_0x4d491f),{'oneofs':!0x0});}}function getPositionShiftedBy(_0x2b8e3c,_0x578555){const _0x55557f=cloneDeep(_0x2b8e3c);return _0x55557f['path'][_0x55557f['path']['length']-0x1]+=_0x578555,_0x55557f;}function arePositionsEqual(_0x38c151,_0x4edf18){return _0x38c151['root']===_0x4edf18['root']&&isEqual(_0x38c151['path'],_0x4edf18['path']);}function parsePositionBeforeCompression(_0x3d9f4f){_mapPositions(_0x3d9f4f,_0x2db4b2=>('main'==_0x2db4b2['root']?(_0x2db4b2['rootMain']=!0x0,delete _0x2db4b2['root']):'$graveyard'==_0x2db4b2['root']&&(_0x2db4b2['rootGraveyard']=!0x0,delete _0x2db4b2['root']),_0x2db4b2));}function parsePositionAfterCompression(_0x19863c){_mapPositions(_0x19863c,_0x31ec5e=>(_0x31ec5e['rootMain']?(_0x31ec5e['root']='main',delete _0x31ec5e['rootMain']):_0x31ec5e['rootGraveyard']&&(_0x31ec5e['root']='$graveyard',delete _0x31ec5e['rootGraveyard']),_0x31ec5e));}function _mapPositions(_0x568ce7,_0x3da3a5){for(const _0x289a99 in _0x568ce7){const _0x594e46=_0x568ce7[_0x289a99];'nodes'!==_0x289a99&&isObject$3(_0x594e46)&&(_0x594e46['path']&&(_0x594e46['root']||_0x594e46['rootMain']||_0x594e46['rootGraveyard'])?_0x568ce7[_0x289a99]=_0x3da3a5(_0x594e46):_mapPositions(_0x594e46,_0x3da3a5));}return _0x568ce7;}class OperationCompressor{['_id'];['_operationName'];['_protobufDescriptor'];constructor(_0x150625,_0x57bf93,_0x7bb33f){this['_id']=_0x150625,this['_operationName']=_0x57bf93,this['_protobufDescriptor']=_0x7bb33f;}['compress'](_0x2cf2c1,_0xed4392){const _0x2485aa=_0xed4392['operations'][_0xed4392['index']++];return parsePositionBeforeCompression(_0x2485aa),_0x2cf2c1['buffers']['push'](this['_protobufDescriptor']['compress'](_0x2485aa)),_0x2cf2c1['types']['push'](this['_id']),!0x0;}['decompress'](_0x426eef,_0x3f236d){_0x3f236d['typeIndex']++;const _0x19e21c=_0x3f236d['buffers'][_0x3f236d['bufferIndex']++],_0x497ae5=this['_protobufDescriptor']['decompress'](_0x19e21c);parsePositionAfterCompression(_0x497ae5),_0x497ae5['__className']=this['_operationName'],_0x426eef['push'](_0x497ae5);}}class AttributeOperationCompressor extends OperationCompressor{['compress'](_0x2fb82e,_0x2c6464){const _0x20638f=_0x2c6464['operations'][_0x2c6464['index']++];return this['_serializeOneOf']('oldValue',_0x20638f),this['_serializeOneOf']('newValue',_0x20638f),parsePositionBeforeCompression(_0x20638f),_0x2fb82e['buffers']['push'](this['_protobufDescriptor']['compress'](_0x20638f)),_0x2fb82e['types']['push'](this['_id']),!0x0;}['decompress'](_0x44fc85,_0x4a4b8a){_0x4a4b8a['typeIndex']++;const _0x35261d=_0x4a4b8a['buffers'][_0x4a4b8a['bufferIndex']++],_0x47b32d=this['_protobufDescriptor']['decompress'](_0x35261d);this['_deserializeOneOf']('oldValue',_0x47b32d),this['_deserializeOneOf']('newValue',_0x47b32d),parsePositionAfterCompression(_0x47b32d),_0x47b32d['__className']=this['_operationName'],_0x44fc85['push'](_0x47b32d);}['_serializeOneOf'](_0x196263,_0x4a8340){const _0x1fa99c=_0x4a8340[_0x196263];'boolean'==typeof _0x1fa99c?_0x4a8340[_0x196263+'Boolean']=_0x1fa99c:_0x4a8340[_0x196263+'Json']=JSON['stringify'](_0x1fa99c);}['_deserializeOneOf'](_0x5effb7,_0x39f4c7){const _0x46a3b9=_0x5effb7+'Json';_0x39f4c7[_0x46a3b9]?(_0x39f4c7[_0x5effb7]=JSON['parse'](_0x39f4c7[_0x46a3b9]),delete _0x39f4c7[_0x46a3b9]):(_0x39f4c7[_0x5effb7]=_0x39f4c7[_0x5effb7+'Boolean'],delete _0x39f4c7[_0x5effb7+'Boolean']);}}class InsertOperationCompressor extends OperationCompressor{['compress'](_0x5e28fc,_0x577f81){const _0x10cf97=_0x577f81['operations'][_0x577f81['index']++];return this['_serializeNodesAttributes'](_0x10cf97['nodes']),parsePositionBeforeCompression(_0x10cf97),_0x5e28fc['buffers']['push'](this['_protobufDescriptor']['compress'](_0x10cf97)),_0x5e28fc['types']['push'](this['_id']),!0x0;}['decompress'](_0x169516,_0xf5b07){_0xf5b07['typeIndex']++;const _0x3918c9=_0xf5b07['buffers'][_0xf5b07['bufferIndex']++],_0x597427=this['_protobufDescriptor']['decompress'](_0x3918c9);_0x597427['nodes']||(_0x597427['nodes']=[]),this['_deserializeNodesAttributes'](_0x597427['nodes']),parsePositionAfterCompression(_0x597427),_0x597427['__className']=this['_operationName'],_0x169516['push'](_0x597427);}['_serializeNodesAttributes'](_0x364026){for(const _0x31ad18 of _0x364026){if(_0x31ad18['attributes']){const _0x2bd310=_0x31ad18['attributes'];this['_areValuesBoolean'](_0x2bd310)?_0x31ad18['attributesBoolean']=_0x2bd310:_0x31ad18['attributesJson']=JSON['stringify'](_0x2bd310);}_0x31ad18['children']&&this['_serializeNodesAttributes'](_0x31ad18['children']);}}['_deserializeNodesAttributes'](_0x3d9324){for(const _0x40399e of _0x3d9324)(_0x40399e['attributesBoolean']||_0x40399e['attributesJson'])&&(_0x40399e['attributesBoolean']?(_0x40399e['attributes']=_0x40399e['attributesBoolean'],delete _0x40399e['attributesBoolean']):(_0x40399e['attributes']=JSON['parse'](_0x40399e['attributesJson']),delete _0x40399e['attributesJson'])),_0x40399e['children']&&this['_deserializeNodesAttributes'](_0x40399e['children']);}['_areValuesBoolean'](_0x5e4552){return Object['keys'](_0x5e4552)['every'](_0x9383e1=>'boolean'==typeof _0x5e4552[_0x9383e1]);}}class MarkerOperationCompressor extends OperationCompressor{['decompress'](_0x459d06,_0x142b8a){super['decompress'](_0x459d06,_0x142b8a);const _0xe10298=_0x459d06[_0x459d06['length']-0x1];_0xe10298['oldRange']||(_0xe10298['oldRange']=null),_0xe10298['newRange']||(_0xe10298['newRange']=null);}}class NoOperationCompressor extends OperationCompressor{['compress'](_0x149c02,_0x581681){return _0x581681['index']++,_0x149c02['types']['push'](this['_id']),!0x0;}['decompress'](_0x5c9b41,_0x337185){_0x337185['typeIndex']++,_0x5c9b41['push']({'__className':this['_operationName']});}}class AnnotationMarkerOperationCompressor extends MarkerOperationCompressor{['_omittedNamespace'];constructor(_0xf4a915,_0x4acca2,_0x3c6af4,_0x48e5dc){super(_0xf4a915,_0x4acca2,_0x3c6af4),this['_omittedNamespace']=_0x48e5dc+':';}['compress'](_0xafcecc,_0x260d39){const _0x18eea0=_0x260d39['operations'][_0x260d39['index']];return!('MarkerOperation'!=_0x18eea0['__className']||!_0x18eea0['name']['startsWith'](this['_omittedNamespace']))&&(_0x18eea0['name']=_0x18eea0['name']['replace'](new RegExp('^'+this['_omittedNamespace']),''),super['compress'](_0xafcecc,_0x260d39),!0x0);}['decompress'](_0x7ba6b6,_0x5b3956){super['decompress'](_0x7ba6b6,_0x5b3956);const _0x4219ed=_0x7ba6b6[_0x7ba6b6['length']-0x1];_0x4219ed['name']=this['_omittedNamespace']+_0x4219ed['name'];}}class ActionCompressor{['_id'];['_context'];constructor(_0x3df784,_0x148cdf){this['_id']=_0x3df784,this['_context']=_0x148cdf;}['compress'](_0x5ae9f4,_0x746701){let _0x88c923,_0x3e81af=_0x746701['operations'][_0x746701['index']],_0x4c502a=_0x746701['operations'][_0x746701['index']+0x1];for(;_0x4c502a&&this['_compareOperations'](_0x3e81af,_0x4c502a);)_0x88c923?(_0x88c923=this['_combineNext'](_0x3e81af,_0x88c923),_0x5ae9f4['types']['push'](0x0)):(_0x88c923=cloneDeep(_0x3e81af),_0x5ae9f4['types']['push'](this['_id'])),_0x746701['index']++,_0x3e81af=_0x746701['operations'][_0x746701['index']],_0x4c502a=_0x746701['operations'][_0x746701['index']+0x1];return!!_0x88c923&&(_0x88c923=this['_combineNext'](_0x746701['operations'][_0x746701['index']++],_0x88c923),_0x5ae9f4['types']['push'](0x0),_0x5ae9f4['buffers']['push'](this['_compressSingleOperation'](_0x88c923)),!0x0);}['decompress'](_0x5979c6,_0x189510){const _0x339e3c=this['_decompressSingleOperation'](_0x189510);for(;0x0==_0x189510['types'][_0x189510['typeIndex']];)_0x189510['typeIndex']++,_0x5979c6['push'](this['_splitCurrent'](_0x339e3c));_0x5979c6['push'](_0x339e3c);}}class TypingActionCompressor extends ActionCompressor{['_combineNext'](_0x3bb4cf,_0x1f6da0){return _0x1f6da0['nodes'][0x0]['data']+=_0x3bb4cf['nodes'][0x0]['data'],_0x1f6da0;}['_splitCurrent'](_0x4a7cae){const _0x993af9=cloneDeep(_0x4a7cae),_0x10a563=_0x993af9['nodes'][0x0],_0x154aed=_0x4a7cae['nodes'][0x0],_0x459ff2=_0x154aed['data'][Symbol['iterator']]()['next']()['value'],_0x486826=_0x459ff2['length'];return _0x10a563['data']=_0x459ff2,_0x154aed['data']=_0x154aed['data']['substr'](_0x486826),_0x4a7cae['position']=getPositionShiftedBy(_0x4a7cae['position'],_0x486826),_0x993af9;}['_compareOperations'](_0x33aad0,_0x4520a7){if(this['_checkOperation'](_0x33aad0)&&this['_checkOperation'](_0x4520a7)){const _0xc71ed7=_0x33aad0['nodes'][0x0]['data']['length'],_0x3177fc=arePositionsEqual(getPositionShiftedBy(_0x33aad0['position'],_0xc71ed7),_0x4520a7['position']),_0x1b1c43=_0x33aad0['nodes'][0x0],_0x1d17db=_0x4520a7['nodes'][0x0];return _0x3177fc&&this['_compareAttributes'](_0x1b1c43,_0x1d17db);}return!0x1;}['_compressSingleOperation'](_0x3f8feb){const _0x553509={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('InsertOperation')['compress'](_0x553509,{'operations':[_0x3f8feb],'index':0x0}),_0x553509['buffers'][0x0];}['_decompressSingleOperation'](_0x4af23e){const _0x35d525=[];return this['_context']['_getCompressorByName']('InsertOperation')['decompress'](_0x35d525,_0x4af23e),_0x35d525[0x0];}['_checkOperation'](_0x3b782c){return'InsertOperation'==_0x3b782c['__className']&&0x1==_0x3b782c['nodes']['length']&&_0x3b782c['nodes'][0x0]['data']&&!_0x3b782c['wasUndone']&&0x1==Array['from'](_0x3b782c['nodes'][0x0]['data'])['length'];}['_compareAttributes'](_0x2fcfd7,_0x87f0a){const _0x4d7841=Object['keys'](_0x2fcfd7['attributes']||{}),_0x9a0b09=Object['keys'](_0x87f0a['attributes']||{});return _0x4d7841['length']===_0x9a0b09['length']&&_0x4d7841['every'](_0x37321f=>_0x87f0a['attributes'][_0x37321f]&&_0x87f0a['attributes'][_0x37321f]===_0x2fcfd7['attributes'][_0x37321f]);}}class DeletingActionCompressor extends ActionCompressor{['_combineNext'](_0x3e0cef,_0x102913){return _0x102913['howMany']++,_0x102913['sourcePosition']=cloneDeep(_0x3e0cef['sourcePosition']),_0x102913;}['_splitCurrent'](_0x2b1583){const _0x105a84=cloneDeep(_0x2b1583);return _0x2b1583['howMany']--,_0x105a84['howMany']=0x1,_0x105a84['sourcePosition']=getPositionShiftedBy(_0x105a84['sourcePosition'],_0x2b1583['howMany']),_0x105a84;}['_compareOperations'](_0x2ce068,_0x5c9f32){return!(!this['_checkOperation'](_0x2ce068)||!this['_checkOperation'](_0x5c9f32))&&(arePositionsEqual(getPositionShiftedBy(_0x2ce068['sourcePosition'],-0x1),_0x5c9f32['sourcePosition'])&&arePositionsEqual(_0x2ce068['targetPosition'],_0x5c9f32['targetPosition']));}['_compressSingleOperation'](_0xede7d8){const _0x4de662={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MoveOperation')['compress'](_0x4de662,{'operations':[_0xede7d8],'index':0x0}),_0x4de662['buffers'][0x0];}['_decompressSingleOperation'](_0x336131){const _0xc0d650=[];return this['_context']['_getCompressorByName']('MoveOperation')['decompress'](_0xc0d650,_0x336131),_0xc0d650[0x0];}['_checkOperation'](_0x5be7d5){return'MoveOperation'==_0x5be7d5['__className']&&'$graveyard'==_0x5be7d5['targetPosition']['root']&&0x1==_0x5be7d5['howMany']&&!_0x5be7d5['wasUndone'];}}class ForwardDeletingActionCompressor extends ActionCompressor{['_combineNext'](_0x3567d6,_0x5d9d3a){return _0x5d9d3a['howMany']++,_0x5d9d3a;}['_splitCurrent'](_0x5ea900){const _0x1df4e2=cloneDeep(_0x5ea900);return _0x1df4e2['howMany']=0x1,_0x5ea900['howMany']--,_0x1df4e2;}['_compareOperations'](_0x2c2efb,_0x118119){return!(!this['_checkOperation'](_0x2c2efb)||!this['_checkOperation'](_0x118119))&&(arePositionsEqual(_0x2c2efb['sourcePosition'],_0x118119['sourcePosition'])&&arePositionsEqual(_0x2c2efb['targetPosition'],_0x118119['targetPosition']));}['_compressSingleOperation'](_0x2ef4d9){const _0x1c8156={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MoveOperation')['compress'](_0x1c8156,{'operations':[_0x2ef4d9],'index':0x0}),_0x1c8156['buffers'][0x0];}['_decompressSingleOperation'](_0x4946b5){const _0x25dc99=[];return this['_context']['_getCompressorByName']('MoveOperation')['decompress'](_0x25dc99,_0x4946b5),_0x25dc99[0x0];}['_checkOperation'](_0x27491c){return'MoveOperation'==_0x27491c['__className']&&'$graveyard'==_0x27491c['targetPosition']['root']&&0x1==_0x27491c['howMany']&&!_0x27491c['wasUndone'];}}class UserSelectionActionCompressor extends ActionCompressor{['compress'](_0x3eeeb9,_0x4ad619){if(!this['_compareOperations'](_0x4ad619['operations'][_0x4ad619['index']],_0x4ad619['operations'][_0x4ad619['index']+0x1]))return!0x1;const _0x51394e=_0x4ad619['operations'][_0x4ad619['index']++];return _0x51394e['oldRange']=null,_0x51394e['newRange']&&arePositionsEqual(_0x51394e['newRange']['start'],_0x51394e['newRange']['end'])&&(_0x51394e['newRange']['end']=null),_0x4ad619['index']++,_0x3eeeb9['types']['push'](this['_id']),_0x3eeeb9['types']['push'](0x0),_0x3eeeb9['buffers']['push'](this['_compressSingleOperation'](_0x51394e)),!0x0;}['decompress'](_0x57370c,_0x2f840f){const _0x2f5cc5=this['_decompressSingleOperation'](_0x2f840f);_0x2f5cc5['newRange']&&!_0x2f5cc5['newRange']['end']&&(_0x2f5cc5['newRange']['end']=cloneDeep(_0x2f5cc5['newRange']['start']));const _0x18b8e4=cloneDeep(_0x2f5cc5);_0x18b8e4['newRange']&&(_0x18b8e4['newRange']['start']['stickiness']='toNone',_0x18b8e4['newRange']['end']=cloneDeep(_0x18b8e4['newRange']['start'])),_0x18b8e4['name']='user:position:'+_0x18b8e4['name']['split'](':')[0x2],_0x2f840f['typeIndex']++,_0x57370c['push'](_0x2f5cc5),_0x57370c['push'](_0x18b8e4);}['_compressSingleOperation'](_0x428227){const _0xb0e205={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MarkerOperation')['compress'](_0xb0e205,{'operations':[_0x428227],'index':0x0}),_0xb0e205['buffers'][0x0];}['_decompressSingleOperation'](_0x7fa171){const _0x54aae5=[];return this['_context']['_getCompressorByName']('MarkerOperation')['decompress'](_0x54aae5,_0x7fa171),_0x54aae5[0x0];}['_compareOperations'](_0xe3cf6b,_0x4eee22){return!(!_0xe3cf6b||!_0x4eee22)&&('MarkerOperation'==_0xe3cf6b['__className']&&'MarkerOperation'==_0x4eee22['__className']&&!(!_0xe3cf6b['name']['startsWith']('user:')||!_0x4eee22['name']['startsWith']('user:')||_0xe3cf6b['name']==_0x4eee22['name']));}}class Compressor{['_compressorById'];['_compressorByName'];['_protobufFactory'];constructor(){this['_compressorById']=new Map(),this['_compressorByName']=new Map(),this['_protobufFactory']=new ProtobufFactory();const _0x5dc874=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',_0x5dc874,'comment')),this['_registerCompressor'](0x13,'SuggestionMarkerOperation',new AnnotationMarkerOperationCompressor(0x13,'MarkerOperation',_0x5dc874,'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'](_0x429eb2){if(!_0x429eb2||!_0x429eb2[0x0])throw new CKEditorError('no-operations-provided',this);const _0x59e3a0={'operations':_0x429eb2,'index':0x0},_0x59afcb={'types':[],'buffers':[],'baseVersion':_0x429eb2[0x0]['baseVersion']};for(;_0x59e3a0['index']<_0x59e3a0['operations']['length'];){if(this['_getCompressorByName']('UserSelectionAction')['compress'](_0x59afcb,_0x59e3a0))continue;if(this['_getCompressorByName']('TypingAction')['compress'](_0x59afcb,_0x59e3a0))continue;if(this['_getCompressorByName']('DeletingAction')['compress'](_0x59afcb,_0x59e3a0))continue;if(this['_getCompressorByName']('ForwardDeletingAction')['compress'](_0x59afcb,_0x59e3a0))continue;if(this['_getCompressorByName']('CommentMarkerOperation')['compress'](_0x59afcb,_0x59e3a0))continue;if(this['_getCompressorByName']('SuggestionMarkerOperation')['compress'](_0x59afcb,_0x59e3a0))continue;const _0xd50507=_0x59e3a0['operations'][_0x59e3a0['index']]['__className'];this['_getCompressorByName'](_0xd50507)['compress'](_0x59afcb,_0x59e3a0);}return _0x59afcb;}['decompress'](_0x32b3ca){const _0x31e8cf=[],_0x9810f5={'types':_0x32b3ca['types'],'buffers':_0x32b3ca['buffers'],'baseVersion':_0x32b3ca['baseVersion'],'typeIndex':0x0,'bufferIndex':0x0};for(;_0x9810f5['typeIndex']<_0x9810f5['types']['length'];){const _0x220fe0=_0x9810f5['types'][_0x9810f5['typeIndex']],_0x4f3aff=this['_compressorById']['get'](_0x220fe0);if(!_0x4f3aff)throw new CKEditorError('decompress-compressor-not-found',this,{'type':_0x220fe0});_0x4f3aff['decompress'](_0x31e8cf,_0x9810f5);}return _0x31e8cf['forEach']((_0x55bc34,_0x34d092)=>_0x55bc34['baseVersion']=_0x32b3ca['baseVersion']+_0x34d092),_0x31e8cf;}['_getCompressorByName'](_0x56b85e){return this['_compressorByName']['get'](_0x56b85e);}['_registerOperationCompressor'](_0x70d346,_0x306004,_0xb6dd50){const _0x20f2c9=new _0xb6dd50(_0x70d346,_0x306004,this['_protobufFactory']['getDescriptor'](_0x306004));this['_registerCompressor'](_0x70d346,_0x306004,_0x20f2c9);}['_registerActionCompressor'](_0x43f1f1,_0x4352ea,_0x5d0d30){const _0x1e9e18=new _0x5d0d30(_0x43f1f1,this);this['_registerCompressor'](_0x43f1f1,_0x4352ea,_0x1e9e18);}['_registerCompressor'](_0x450777,_0x360a8c,_0x4f7870){this['_compressorById']['set'](_0x450777,_0x4f7870),this['_compressorByName']['set'](_0x360a8c,_0x4f7870);}}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 _0x431097=this['serverHistory']['getOperations']();for(let _0x30f65e=_0x431097['length']-0x1;_0x30f65e>=0x0;_0x30f65e--){const _0x1eeba3=_0x431097[_0x30f65e];if(!this['_disconnectionOperations']['has'](_0x1eeba3))return _0x1eeba3['baseVersion']+0x1-this['_offset'];}return 0x0;}constructor(_0x551a6a){if(super(_0x551a6a),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 _0x56fb0e=_0x551a6a['config']['get']('cloudServices.bundleVersion')||_0x1dde74;this['_service']=new RealTimeCollaborationClient['CollaborativeEditingService'](_0x56fb0e,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 _0xa6b2ae=this['editor'],_0x38190c=_0xa6b2ae['plugins']['get'](Users),_0x335a40=_0xa6b2ae['plugins']['get'](WebSocketGateway);this['listenTo'](_0x38190c,'getOperationAuthor',(_0x1a66e0,_0x424135)=>{const _0x3b2b0b=_0x424135[0x0];_0x3b2b0b['_authorId']&&(_0x1a66e0['return']=_0x38190c['getUser'](_0x3b2b0b['_authorId']),_0x1a66e0['stop']()),null===_0x3b2b0b['_authorId']&&(_0x1a66e0['return']=null,_0x1a66e0['stop']());},{'priority':'high'}),this['listenTo'](_0xa6b2ae['model']['document']['selection'],'change:range',(_0xfaf772,_0x33215b)=>{_0x33215b['directChange']&&this['_refreshUserSelectionMarkers']();}),this['listenTo'](_0xa6b2ae['editing']['view'],'change:hasDomSelection',()=>{this['_refreshUserSelectionMarkers']();}),this['_initThrowingOnDataSet'](),_0xa6b2ae['model']['on']('applyOperation',(_0x48f6d4,_0x59680f)=>{const _0x316b74=_0x59680f[0x0];_0x316b74['isDocumentOperation']&&(this['_saveOperationInBuffer'](_0x316b74),this['_shouldSendUpdate']()&&this['_sendBufferedOperationsDelayed']());}),this['_setUpDataInit'](),this['bind']('_isEditingAllowed')['to'](_0x335a40,'state',this,'_hasSynchronizationProblem',(_0x2ddca4,_0xb6eac2)=>'connected'===_0x2ddca4&&!_0xb6eac2),this['on']('change:_isEditingAllowed',()=>{this['_isEditingAllowed']?_0xa6b2ae['disableReadOnlyMode']('rtc-offline'):_0xa6b2ae['enableReadOnlyMode']('rtc-offline');}),this['_isEditingAllowed']?_0xa6b2ae['disableReadOnlyMode']('rtc-offline'):_0xa6b2ae['enableReadOnlyMode']('rtc-offline'),this['set']('_isConnected',!0x1);}async['reconnect'](){const _0x3ad624=this['editor']['plugins']['get'](Sessions),_0x1fbc30=this['editor']['plugins']['get'](WebSocketGateway);try{this['_isPendingUpdate']=!0x0,_0x3ad624['unregister'](this['_channelId']);const _0x4bbfe2=await this['_service']['reconnect'](_0x1fbc30['connection'],this['lastSyncVersion']);await this['_handleReconnectionResponse'](_0x4bbfe2)&&(this['_isPendingUpdate']=!0x1,this['_clearPendingAction']());const _0xe5ead8=await this['_service']['getConnectedSessions']();_0x3ad624['register'](this['_channelId'],_0xe5ead8),this['_handleSendingSelectionMarkers'](),this['_isConnected']=!0x0;}catch(_0x1557bf){if(isSessionNotExistingError(_0x1557bf)&&this['sessionId'])await this['_connectAfterSessionHasBeenFlushed']();else{if(isBaseVersionMismatchError(_0x1557bf)){const _0x147d43=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'](_0x147d43);}else{if(!(_0x1557bf instanceof ReconnectionError))throw _0x1557bf;this['_handleReconnectionError']();}}}}['destroy'](){const _0x3a45e8=this['editor']['plugins']['get'](WebSocketGateway),_0x1ae992=this['editor']['plugins']['get'](Sessions);this['editor']['enableReadOnlyMode']('rtc-destroyed'),_0x1ae992['channelSessions']['has'](this['_channelId'])&&_0x1ae992['unregister'](this['_channelId']),_0x3a45e8['removeFromReconnectionStack'](this),this['_disconnectService'](),super['destroy']();}async['_handleReconnectionResponse'](_0xa28259){if(this['sessionId']!==_0xa28259['sessionId']&&this['_lastSyncedOperationId']!==_0xa28259['lastOperationId'])throw new ReconnectionError();return this['sessionId']=_0xa28259['sessionId'],this['_handleServerResponse']([],{..._0xa28259,'wereChangesApplied':!0x1,'data':_0xa28259['data']},'reconnect');}async['_connectService'](_0x1bafee,_0x29bcf3=!0x1){const {connection:_0x563fba}=this['editor']['plugins']['get'](WebSocketGateway);RealTimeCollaborationClient['CollaborativeEditingService']['getConnectedSessions'](_0x563fba,this['_channelId'])['then'](_0x1bdf8c=>this['_initSessionsHandling'](_0x1bdf8c))['catch'](_0x70bedf=>{this['_crash']('realtimecollaborationclient-init-session-connection-error',_0x70bedf);}),this['listenTo'](this['_service'],'operationsReceived',this['_handleReceivedOperations']['bind'](this)),this['listenTo'](this['_service'],'error',(_0xc603c,_0xc8824d)=>{this['_crash']('realtimecollaborationclient-init-service-internal-error',_0xc8824d);}),this['listenTo'](this['_service'],'disconnected',()=>{this['_isConnected']=!0x1;});const _0x1f025f=this['_operationIdentifier']['getIdOfTheLastOperation'](_0x1bafee);this['_isPendingUpdate']=!0x0;const _0x18d25d=await this['_service']['connect'](_0x563fba,this['_compressOperations'](_0x1bafee),_0x1f025f);if(this['sessionId']=_0x18d25d['sessionId'],_0x29bcf3){if(!_0x18d25d['wereChangesApplied'])return void this['_handleReconnectionError']();this['_isPendingUpdate']=!0x1,this['_clearPendingAction'](),this['serverHistory']['reset'](),this['_offset']=_0x18d25d['offset'],this['serverHistory']['version']=this['_offset'],await this['_handleServerResponse'](_0x1bafee,_0x18d25d,'reconnection:\x20flushed\x20session');}else await this['_handleInitialConnectionData'](_0x18d25d,_0x1bafee);this['_handleSendingSelectionMarkers'](),this['_isConnected']=!0x0;}['_handleSendingSelectionMarkers'](){const _0x17f3c6=this['editor']['plugins']['get'](Sessions),_0x128bb3=this['editor']['plugins']['get'](UserMarkers),_0x46468b=_0x17f3c6['channelSessions']['get'](this['_channelId']);_0x46468b&&_0x46468b['length']>0x1?_0x128bb3['createUserMarkerOperations']():this['listenTo'](_0x17f3c6,'sessionAdd:'+this['_channelId'],()=>{0x2===_0x17f3c6['channelSessions']['get'](this['_channelId'])['length']&&_0x128bb3['createUserMarkerOperations']();});}async['_handleReceivedOperations'](_0x388a00,_0xb9fc76,_0x4b1006,_0x38d263){if(!this['_isPendingUpdate']&&this['_document']['version']==_0xb9fc76){const _0x28b7dc=this['_decompressOperations'](_0x4b1006,_0x38d263);await this['_fetchMissingUsers'](_0x28b7dc),this['_handleExternalOperations'](_0x28b7dc,_0xb9fc76,_0x4b1006['lastOperationId'])||this['_crash']('realtimecollaborationclient-init-service-incorrect-server-operation');}}async['_connectAfterSessionHasBeenFlushed'](){this['_disconnectService']();const {locale:_0x59473a}=this['editor'];let _0x46f0cb;try{_0x46f0cb=await this['_service']['getDocumentDetails']();}catch{const _0x33d689=getTranslation$6(_0x59473a,'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'](_0x33d689);}const _0x2fa99b=_0x46f0cb['currentDocumentSession']||_0x46f0cb['lastDocumentSession'];if(this['_lastSyncedOperationId']!==_0x2fa99b['lastOperationId']){const _0x3ed38d=getTranslation$6(_0x59473a,'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'](_0x3ed38d);}await this['_connectService'](this['editor']['model']['document']['history']['getOperations'](),!0x0);}['_disconnectService'](){this['_service']['disconnect'](),this['_bufferedOperations']=[],clearTimeout(this['_sendBufferedOperationsDelayId']),this['stopListening'](this['_service']);}['_initSessionsHandling'](_0x5f205f){const _0x55d58d=this['editor']['plugins']['get'](Sessions);this['listenTo'](_0x55d58d,'sessionAdd:'+this['_channelId'],(_0x325582,{session:_0x5213e1})=>{if(_0x5213e1['id']===_0x55d58d['mySessionId']){_0x325582['off']();const _0x56c111=this['editor']['plugins']['has']('CommentsOnly')&&this['editor']['plugins']['get']('CommentsOnly');let _0x41e7a1=_0x5213e1['permissions'];_0x56c111&&_0x56c111['isEnabled']&&(_0x41e7a1=_0x41e7a1['filter'](_0x882763=>'document:write'!==_0x882763)),this['editor']['plugins']['get']('Permissions')['setPermissions'](_0x41e7a1,this['_channelId']);}}),_0x55d58d['register'](this['_channelId'],_0x5f205f);}['_initThrowingOnDataSet'](){const _0x4263c1=this['editor']['data']['set'];this['editor']['data']['set']=(..._0x3dab26)=>{if(!_0x3dab26[_0x3dab26['length']-0x1]['suppressErrorInCollaboration'])throw new CKEditorError('realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration',this);_0x4263c1['apply'](this['editor']['data'],_0x3dab26);};}['_setUpDataInit'](){this['editor']['data']['on']('init',(_0x28e016,[_0xfdc722])=>{if(this['_document']['version'])throw new CKEditorError('realtimecollaborationclient-init-document-already-initialized',this);_0x28e016['stop'](),this['_setPendingAction']();const _0x340bd6=this['editor']['config']['get']('rootsAttributes'),_0x5b1b63=this['_getOperationsFromInitData'](_0xfdc722,_0x340bd6);0x0==_0x5b1b63['length']&&_0x5b1b63['push'](new NoOperation(0x0)),_0x28e016['return']=this['_connectService'](_0x5b1b63)['then'](()=>{this['editor']['plugins']['get'](WebSocketGateway)['addToReconnectionStack'](this),this['editor']['data']['fire']('ready');})['catch'](_0x3675d5=>this['_crash']('realtimecollaborationclient-init-connection-failed',_0x3675d5))['finally'](()=>this['_clearPendingAction']());},{'priority':'high'}),this['editor']['on']('loadRoot',async(_0xb4fa20,[_0xc79a18,_0x450210])=>{_0xb4fa20['stop']();const _0x47f96b=this['editor']['model']['document']['getRoot'](_0xc79a18);if(!this['_knownRootNames']['has'](_0xc79a18)){const _0x2901fa=_0x450210&&_0x450210['data']?_0x450210['data']:'',_0x5a9a4f=_0x450210&&_0x450210['attributes']?_0x450210['attributes']:{};await this['_loadRoot'](_0xc79a18,_0x2901fa,_0x5a9a4f);}this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x47f96b['_isLoaded']=!0x0,this['editor']['model']['document']['differ']['_bufferRootLoad'](_0x47f96b);});},{'priority':'high'});}async['_fetchMissingUsers'](_0x2ab056){const _0x5c58ca=this['editor']['plugins']['get'](Users),{connection:_0xd6218d}=this['editor']['plugins']['get'](WebSocketGateway),_0x464358=new Set();for(const _0x33901b of _0x2ab056){const _0xc70c3e=_0x33901b['_authorId'];_0xc70c3e&&!_0x5c58ca['getUser'](_0xc70c3e)&&_0x464358['add'](_0xc70c3e);}if(0x0===_0x464358['size'])return;const _0x32c600=await User['getMany'](_0xd6218d,Array['from'](_0x464358));for(const _0xcf9bca of _0x32c600)_0x5c58ca['getUser'](_0xcf9bca['id'])||_0x5c58ca['addUser'](_0xcf9bca);}['_getOperationsFromInitData'](_0x3879be,_0x2f891f={}){const _0x3b24a9=this['editor']['model'],_0x1f10a9=[];let _0x37a64b=0x0;const _0x5bc3f8='string'==typeof _0x3879be?{'main':_0x3879be}:_0x3879be;for(const _0x568dcc of Object['keys'](_0x5bc3f8)){if(!this['_document']['roots']['has'](_0x568dcc))throw new CKEditorError('realtimecollaborationclient-init-non-existent-root',this);const _0x4ac733=this['editor']['data']['parse'](_0x5bc3f8[_0x568dcc]),_0x4d3b1c=this['_document']['getRoot'](_0x568dcc),_0x29317e=new InsertOperation(_0x3b24a9['createPositionAt'](_0x4d3b1c,0x0),_0x4ac733,_0x37a64b++);_0x1f10a9['push'](_0x29317e);for(const [_0x21a004,_0x4bb6b8]of _0x4ac733['markers']){const _0xf34a77=_0x3b24a9['createRange'](_0x3b24a9['createPositionFromPath'](_0x4d3b1c,_0x4bb6b8['start']['path']['slice']()),_0x3b24a9['createPositionFromPath'](_0x4d3b1c,_0x4bb6b8['end']['path']['slice']())),_0x186b58=new MarkerOperation(_0x21a004,null,_0xf34a77,_0x3b24a9['markers'],!0x0,_0x37a64b++);_0x1f10a9['push'](_0x186b58);}}if(_0x2f891f)for(const [_0x588178,_0x48cef7]of Object['entries'](_0x2f891f)){const _0x229af5=_0x3b24a9['document']['getRoot'](_0x588178);if(!_0x229af5)throw new CKEditorError('multi-root-editor-root-attributes-no-root',null);for(const [_0x1d067e,_0x4074b2]of Object['entries'](_0x48cef7))if(null!==_0x4074b2){const _0x30240f=new RootAttributeOperation(_0x229af5,_0x1d067e,null,_0x4074b2,_0x37a64b++);_0x1f10a9['push'](_0x30240f);}}return _0x1f10a9;}async['_loadRoot'](_0x467f0f,_0x2bdaaf,_0x14d4d3){this['_getOperationsFromInitData']({[_0x467f0f]:_0x2bdaaf},{[_0x467f0f]:_0x14d4d3})['forEach']((_0x56b723,_0x58c33c)=>{_0x56b723['baseVersion']=this['_document']['version']+_0x58c33c,_0x56b723['_isInit']=!0x0,this['_saveOperationInBuffer'](_0x56b723);}),this['_sendBufferedOperationsDelayed'](),await this['_waitUntilSynced']();}async['_handleInitialConnectionData'](_0x546c3a,_0x19860e){let _0x17993c;this['_offset']=_0x546c3a['offset'];const _0x54a1ab=_0x546c3a['wereChangesApplied']&&!_0x546c3a['initData'],_0x4c31e7=_0x54a1ab?0x0:_0x546c3a['data']['baseVersion'];if(_0x19860e['forEach'](_0x180105=>{_0x180105['_isInit']=!0x0,_0x180105['createdAt']=_0x546c3a['sessionCreatedAt'],_0x180105['_authorId']=null;}),_0x54a1ab)_0x17993c=_0x19860e,this['_applyOperationsSet'](_0x17993c,_0x54a1ab);else{if(_0x546c3a['initData']){const _0x3f2455=this['_getOperationsFromInitData'](_0x546c3a['initData']);this['_document']['history']['version']=-_0x3f2455['length'],_0x3f2455['forEach'](_0x1ecba4=>{_0x1ecba4['baseVersion']-=_0x3f2455['length'],_0x1ecba4['createdAt']=_0x546c3a['sessionCreatedAt'],_0x1ecba4['_isInit']=!0x0,_0x1ecba4['_authorId']=null;}),this['_applyOperationsSet'](_0x3f2455,!0x0),this['serverHistory']['version']=-_0x3f2455['length']+this['_offset'],this['_updateServerHistory'](_0x3f2455);}this['_document']['history']['version']=_0x4c31e7,_0x17993c=this['_decompressOperations'](_0x546c3a['data'],_0x546c3a['metadata']),await this['_fetchMissingUsers'](_0x17993c),this['_applyOperationsSet'](_0x17993c,_0x54a1ab);}_0x546c3a['lastOperationId']&&(this['_operationIdentifier']['setIdForTheLastOperation'](_0x17993c,_0x546c3a['lastOperationId']),this['_lastSyncedOperationId']=_0x546c3a['lastOperationId']),this['serverHistory']['version']=_0x4c31e7+this['_offset'],this['_updateServerHistory'](_0x17993c),_0x19860e['filter'](_0x2744aa=>{const _0x15d86e=this['_getAffectedRoot'](_0x2744aa);return _0x15d86e&&!this['_knownRootNames']['has'](_0x15d86e);})['forEach']((_0x42652b,_0x5cf620)=>{_0x42652b['baseVersion']=this['_document']['version']+_0x5cf620,this['_saveOperationInBuffer'](_0x42652b);}),this['_shouldSendUpdate']()?(this['_currentBufferDelay']=0x0,this['_sendBufferedOperationsDelayed'](!0x0),await this['_waitUntilSynced']()):(this['_isPendingUpdate']=!0x1,this['_clearPendingAction']());}['_crash'](_0x27be01,_0x2f65a6){const _0x5148aa=_0x2f65a6&&_0x2f65a6['message'];if(_0x5148aa&&_0x5148aa['startsWith']('realtimecollaborationclient'))throw _0x2f65a6;const _0x2e7d16=this['editor']['plugins']['get'](WebSocketGateway);throw this['_isPendingUpdate']=!0x0,_0x2e7d16['disconnect'](),this['editor']['enableReadOnlyMode']('realtimecollaborationclient-error'),new CKEditorError(_0x27be01,this['editor'],_0x5148aa?{'originalError':_0x5148aa}:void 0x0);}['_saveOperationInBuffer'](_0x5c073d){this['_knownOperations']['has'](_0x5c073d)||(this['_knownOperations']['add'](_0x5c073d),this['_bufferedOperations']['push'](_0x5c073d),this['_pendingAction']||'marker'==_0x5c073d['type']&&!_0x5c073d['affectsData']||this['_setPendingAction']());}['_sendBufferedOperationsDelayed'](_0x204284=!0x1){!_0x204284&&this['_isPendingUpdate']||(this['_isPendingUpdate']=!0x0,clearTimeout(this['_sendBufferedOperationsDelayId']),this['_sendBufferedOperationsDelayId']=setTimeout(()=>{this['_sendBufferedOperations']()['then'](_0x6a8d5d=>{_0x6a8d5d&&(this['_clearPendingAction'](),this['_isPendingUpdate']=!0x1);})['catch'](_0x2f951f=>{this['_clearPendingAction'](),this['_isPendingUpdate']=!0x1,isDisconnectionError$3(_0x2f951f)||this['_crash'](_0x2f951f['message'],_0x2f951f);});},this['_currentBufferDelay']));}['_waitUntilSynced'](){return new Promise(_0x6ec206=>{this['on']('change:_isPendingUpdate',()=>{_0x6ec206();});});}async['_sendBufferedOperations'](){const _0x620937=this['editor']['plugins']['get'](UserMarkers);if(this['_shouldSendSelectionUpdate']()&&(_0x620937['createUserMarkerOperations'](),this['_hasSelectionChanged']=!0x1),!this['_shouldSendUpdate']())return!0x0;const _0x4e4458=[...this['_bufferedOperations']];for(const _0x5b50e1 of _0x4e4458)_0x5b50e1['wasUndone']=this['_document']['history']['isUndoneOperation'](_0x5b50e1);const _0x35f94e=this['_operationIdentifier']['getIdOfTheLastOperation'](_0x4e4458),_0x21a278=requestCount++,_0x1a5ce6=this['_compressOperations'](_0x4e4458),_0x3c153f=await this['_service']['sendOperations'](_0x1a5ce6,_0x1a5ce6['baseVersion'],_0x35f94e);try{return await this['_handleServerResponse'](_0x4e4458,_0x3c153f,_0x21a278);}catch(_0x11edb2){return this['_crash']('realtimecollaborationclient-sendbufferedoperations',_0x11edb2);}}async['_handleServerResponse'](_0xe6b19,_0x556338,_0x13c9c8){if('error'in _0x556338)throw _0x556338['error'];let _0x2702f1=!0x1;if(_0x556338['wereChangesApplied']){_0x556338['lastOperationId']&&(this['_lastSyncedOperationId']=_0x556338['lastOperationId']),this['_bufferedOperations']=this['_bufferedOperations']['filter'](_0x652b66=>!_0xe6b19['includes'](_0x652b66));for(const _0x153a36 of _0xe6b19)_0x153a36['createdAt']='lastOperationAcceptedAt'in _0x556338&&_0x556338['lastOperationAcceptedAt']||void 0x0;updateBaseVersions(_0xe6b19,_0x556338['version']-_0xe6b19['length']),this['_updateServerHistory'](_0xe6b19);const _0x4a65fc=_0xe6b19['filter'](_0x5e090b=>{if(!_0x5e090b['_isInit'])return!0x1;const _0x192d2f=this['_getAffectedRoot'](_0x5e090b);return _0x192d2f&&!this['_knownRootNames']['has'](_0x192d2f);});updateBaseVersions(_0x4a65fc,this['_document']['version']),this['_applyOperationsSet'](_0x4a65fc),_0x2702f1=!0x0,this['_currentBufferDelay']=this['_baseBufferDelay'];}else{const _0x23a8d6=this['_decompressOperations'](_0x556338['data'],_0x556338['metadata'])['filter'](_0x2c7bf9=>_0x2c7bf9['baseVersion']>=this['_lastServerVersion']);_0x23a8d6['forEach'](_0x5e9bed=>this['_addKnownRoot'](_0x5e9bed)),this['_bufferedOperations']=this['_bufferedOperations']['filter'](_0x333e5e=>!_0x333e5e['_isInit']||!this['_knownRootNames']['has'](this['_getAffectedRoot'](_0x333e5e))),this['_bufferedOperations']['length']&&updateBaseVersions(this['_bufferedOperations'],this['_bufferedOperations'][0x0]['baseVersion']),await this['_fetchMissingUsers'](_0x23a8d6),_0x2702f1=this['_handleExternalOperations'](_0x23a8d6,_0x556338['version'],_0x556338['lastOperationId']),this['_currentBufferDelay']=Math['round'](this['_currentBufferDelay']/0x2);}return _0x2702f1?!this['_shouldSendUpdate']()||(this['_sendBufferedOperationsDelayed'](!0x0),!0x1):this['_crash']('realtimecollaborationclient-handleserverresponse');}['_handleExternalOperations'](_0x42deae,_0x381a29,_0x54fa86){try{const _0x86ccd3={'document':this['_document'],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x32f136,operationsB:_0x3adb02,originalOperations:_0x1128dd}=transformOperationSets(_0x42deae,this['_bufferedOperations'],_0x86ccd3);updateBaseVersions(_0x32f136,this['_document']['version']),updateBaseVersions(_0x3adb02,_0x381a29);for(const _0x2f6a16 of _0x32f136){const _0x55f35e=_0x1128dd['get'](_0x2f6a16);_0x2f6a16['_authorId']=_0x55f35e?_0x55f35e['_authorId']:null;}_0x54fa86&&(this['_operationIdentifier']['setIdForTheLastOperation'](_0x42deae,_0x54fa86),this['_lastSyncedOperationId']=_0x54fa86),this['_bufferedOperations']=[..._0x3adb02],this['_applyOperationsSet'](_0x32f136),this['_updateServerHistory'](_0x42deae);}catch(_0x3fce97){return console['error'](_0x3fce97),!0x1;}return!0x0;}['_applyOperationsSet'](_0x3d0989,_0x2e9d41=!0x1){this['editor']['model']['enqueueChange']({'isUndoable':!0x1,'isLocal':!0x1},_0x33841d=>{for(const _0x20c727 of _0x3d0989)this['_knownOperations']['add'](_0x20c727),this['_addKnownRoot'](_0x20c727),_0x33841d['batch']['addOperation'](_0x20c727),this['editor']['model']['applyOperation'](_0x20c727);});}['_addKnownRoot'](_0x11adcb){const _0x3fad1e=this['_getAffectedRoot'](_0x11adcb);_0x3fad1e&&this['_knownRootNames']['add'](_0x3fad1e);}['_getAffectedRoot'](_0x3a21af){let _0x37244e,_0x30b576;switch(_0x3a21af['type']){case'insert':_0x37244e=_0x3a21af['position']['root'];break;case'marker':if(_0x30b576=_0x3a21af['newRange'],!_0x30b576)return null;_0x37244e=_0x30b576['root'];break;case'addRootAttribute':_0x37244e=_0x3a21af['root'];break;case'addRoot':_0x37244e=_0x3a21af['affectedSelectable'];break;case'move':_0x37244e=_0x3a21af['targetPosition']['root'];break;default:return null;}return _0x37244e['rootName'];}['_updateServerHistory'](_0x5440f9){_0x5440f9['forEach'](_0x325cba=>{const _0x5e71ce=_0x325cba['clone']();_0x5e71ce['_authorId']=_0x325cba['_authorId'],_0x5e71ce['_isInit']=!!_0x325cba['_isInit'],_0x5e71ce['createdAt']=_0x325cba['createdAt'],_0x5e71ce['baseVersion']+=this['_offset'],_0x325cba['_isDisconnection']&&this['_disconnectionOperations']['add'](_0x5e71ce),this['serverHistory']['addOperation'](_0x5e71ce);});}['_handleReconnectionError'](_0x4a0dfa){const _0x1ff2ee=this['editor']['plugins']['get']('Notification'),_0x2c0ad1=this['editor']['locale'];_0x4a0dfa||(_0x4a0dfa=getTranslation$6(_0x2c0ad1,'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.')),_0x1ff2ee['showWarning'](_0x4a0dfa,{'title':getTranslation$6(_0x2c0ad1,'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'](_0x5cba38){const _0x5cdb93=_0x5cba38['map'](_0x1942c3=>_0x1942c3['toJSON']());return this['_compressor']['compress'](_0x5cdb93);}['_decompressOperations'](_0xc616cb,_0x1aeb5d){return this['_compressor']['decompress'](_0xc616cb)['map']((_0x43f67d,_0x3c8c14)=>{const _0x7bbc80='init'==_0x1aeb5d[_0x3c8c14]['type'];if('InsertOperation'==_0x43f67d['__className']){const _0x39fa58=_0x43f67d['position']['root'];!this['_document']['getRoot'](_0x39fa58)&&(this['_document']['createRoot']('$root',_0x39fa58)['_isAttached']=!0x1);}const _0x151c3c=OperationFactory['fromJSON'](_0x43f67d,this['_document']);return _0x151c3c['wasUndone']=_0x43f67d['wasUndone'],_0x151c3c['_isInit']=_0x7bbc80,_0x151c3c['_authorId']=_0x7bbc80?null:_0x1aeb5d[_0x3c8c14]['userId'],_0x151c3c['_isDisconnection']='cs:removeUser'===_0x1aeb5d[_0x3c8c14]['type'],_0x151c3c['createdAt']=_0x1aeb5d[_0x3c8c14]['createdAt'],_0x151c3c;});}['_refreshUserSelectionMarkers'](){this['_hasSelectionChanged']=!0x0,this['_shouldSendSelectionUpdate']()?this['_sendBufferedOperationsDelayed']():this['_hasSelectionChanged']=!0x1;}['_shouldSendSelectionUpdate'](){const _0x39a33f=this['editor']['plugins']['get'](Sessions)['channelSessions']['get'](this['_channelId']);return!this['editor']['isReadOnly']&&!!_0x39a33f&&_0x39a33f['length']>0x1&&this['_hasSelectionChanged'];}['_shouldSendUpdate'](){return this['_bufferedOperations']['length']>0x0||this['_shouldSendSelectionUpdate']();}}class ReconnectionError extends Error{}function updateBaseVersions(_0x3267bb,_0x4c95a1){for(const _0x40b279 of _0x3267bb)_0x40b279['baseVersion']=_0x4c95a1++;}function isSessionNotExistingError(_0x7087a){return'404'===_0x7087a['code'];}function isBaseVersionMismatchError(_0x4e253a){return'409'===_0x4e253a['code'];}function isDisconnectionError$3(_0x29129f){return _0x29129f['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x29129f['message']['startsWith']('cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.')||_0x29129f['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}class OperationIdentifier{['_ignoredOperations'];['_operationToId'];constructor(_0x115829){this['_ignoredOperations']=_0x115829,this['_operationToId']=new WeakMap();}['getIdOfTheLastOperation'](_0x34134e){let _0x16efd4=_0x34134e['length'];for(;_0x16efd4--;){const _0x4b37d9=_0x34134e[_0x16efd4];if(!this['_ignoredOperations']['has'](_0x4b37d9)){if(!this['_operationToId']['has'](_0x4b37d9)){const _0x14ed22=uid()['slice'](0x1,0x12);this['_operationToId']['set'](_0x4b37d9,_0x14ed22);}return this['_operationToId']['get'](_0x4b37d9);}}}['setIdForTheLastOperation'](_0xb6723b,_0x1e4929){if(!_0x1e4929)return;let _0x326c0e=_0xb6723b['length'];for(;_0x326c0e--;){const _0x575fce=_0xb6723b[_0x326c0e];this['_ignoredOperations']['has'](_0x575fce)||this['_operationToId']['set'](_0x575fce,_0x1e4929);}}}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(_0x3833a0){super(_0x3833a0),this['_services']=new Map();}async['init'](){const _0x839de2=this['context'],_0xd749f5=_0x839de2['plugins']['get']('CommentsRepository');if(_0x839de2['plugins']['get'](WebSocketGateway)['addToReconnectionStack'](this),_0xd749f5['adapter']={'addCommentThread':async({channelId:_0x36fc0f,threadId:_0xa52c17,comments:_0x1a1d27,resolvedAt:_0x14df79,resolvedBy:_0x32d08b,context:_0x44a27f,attributes:_0x46f4b0})=>{const _0x4d2bad=await this['_getService'](_0x36fc0f)['addCommentThread']({'commentThreadId':_0xa52c17,'comments':_0x1a1d27['map'](_0x572fbc=>parseLocalCommentToRemote(_0x572fbc,_0x36fc0f,_0xa52c17)),'resolvedAt':_0x14df79,'resolvedBy':_0x32d08b,'context':_0x44a27f,'attributes':_0x46f4b0})['catch'](handleDisconnectionError$1);return{'threadId':_0x4d2bad['commentThreadId'],'comments':_0x4d2bad['comments']};},'getCommentThread':async({channelId:_0x1c4ac2,threadId:_0x1d36cd})=>{const _0x206c90=await this['_getService'](_0x1c4ac2)['getCommentThread'](_0x1d36cd)['catch'](handleServerError)['catch'](handleDisconnectionError$1);return _0x206c90?_0x206c90['deletedAt']?null:(await this['_fetchMissingUsersForThreads']([_0x206c90]),{'threadId':_0x206c90['commentThreadId'],'comments':_0x206c90['comments']['map'](parseRemoteCommentToLocal),'context':_0x206c90['context'],'resolvedAt':_0x206c90['resolvedAt'],'resolvedBy':_0x206c90['resolvedBy'],'attributes':_0x206c90['attributes']||{}}):null;},'updateCommentThread':async({channelId:_0x263115,threadId:_0x51c1cb,context:_0x49dbec,unlinkedAt:_0x17f9fa,attributes:_0x207426})=>this['_getService'](_0x263115)['updateCommentThread']({'commentThreadId':_0x51c1cb,'context':_0x49dbec,'attributes':_0x207426,'unlinkedAt':_0x17f9fa})['catch'](handleServerError)['catch'](handleDisconnectionError$1),'resolveCommentThread':async({channelId:_0x454c36,threadId:_0x5d0d40})=>{const _0xe5b08=await this['_getService'](_0x454c36)['resolveCommentThread'](_0x5d0d40)['catch'](handleServerError)['catch'](handleDisconnectionError$1);return{'threadId':_0xe5b08['commentThreadId'],'resolvedAt':_0xe5b08['resolvedAt'],'resolvedBy':_0xe5b08['resolvedBy']};},'reopenCommentThread':async({channelId:_0x7f5a,threadId:_0x5df6e2})=>this['_getService'](_0x7f5a)['reopenCommentThread'](_0x5df6e2)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'removeCommentThread':({channelId:_0xaa2e6e,threadId:_0x1633e6})=>this['_getService'](_0xaa2e6e)['removeCommentThread'](_0x1633e6)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'addComment':({channelId:_0x4fbf15,threadId:_0x4bee4e,commentId:_0x45377c,content:_0x5b3d69,attributes:_0x30340e})=>this['_getService'](_0x4fbf15)['addComment'](_0x4bee4e,_0x45377c,_0x5b3d69,_0x30340e)['catch'](handleDisconnectionError$1),'updateComment':({channelId:_0x4b930d,threadId:_0x414b0e,commentId:_0x4b2cb9,content:_0x1884f1,attributes:_0x33caf6})=>this['_getService'](_0x4b930d)['updateComment'](_0x414b0e,_0x4b2cb9,_0x1884f1,_0x33caf6)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'removeComment':({channelId:_0x5cf6c5,threadId:_0x4bc6b4,commentId:_0x34299c})=>this['_getService'](_0x5cf6c5)['removeComment'](_0x4bc6b4,_0x34299c)['catch'](handleServerError)['catch'](handleDisconnectionError$1)},_0x839de2 instanceof Context$1){const _0x34acb8=_0x839de2['config']['get']('collaboration.channelId'),_0x25d839=_0x839de2['plugins']['get'](Sessions);await this['_setUpService'](_0x34acb8);const _0x422580=await this['_services']['get'](_0x34acb8)['getConnectedSessions']();this['listenTo'](_0x25d839,'sessionAdd:'+_0x34acb8,(_0x240d8f,{session:_0x1c3761})=>{_0x1c3761['id']===_0x25d839['mySessionId']&&(_0x240d8f['off'](),this['context']['plugins']['get']('Permissions')['setPermissions'](_0x1c3761['permissions'],_0x34acb8));}),_0x25d839['register'](_0x34acb8,_0x422580);}}async['_setUpService'](_0x19f419){if(this['_services']['has'](_0x19f419))throw new CKEditorError('cloudservicescommentsadapter-connect-already-connected',null,{'channelId':_0x19f419});const _0x434e80=this['context']['plugins']['get']('CommentsRepository'),_0x142463=new CloudServicesCommentsAdapter['CommentsService'](_0x19f419);this['_services']['set'](_0x19f419,_0x142463),this['listenTo'](_0x142463,'commentThreadAdded',(_0x247a68,_0x53bb18)=>{const {commentThreadId:_0x5578fe,documentId:_0xbd687c,context:_0x11ff61,attributes:_0x307476,resolvedAt:_0x4d832c,resolvedBy:_0x2c5e98,comments:_0x27f82b}=_0x53bb18;_0x434e80['getCommentThread'](_0x5578fe)||_0x434e80['addCommentThread']({'threadId':_0x5578fe,'channelId':_0xbd687c,'comments':_0x27f82b?_0x27f82b['map'](parseRemoteCommentToLocal):[],'context':_0x11ff61,'attributes':_0x307476,'resolvedAt':_0x4d832c,'resolvedBy':_0x2c5e98,'isFromAdapter':!0x0});}),this['listenTo'](_0x142463,'commentThreadUpdated',(_0x448cfb,{commentThreadId:_0x23442d,documentId:_0x10e89e,context:_0x3a4d72,unlinkedAt:_0x3cd51d,attributes:_0x114942})=>{_0x434e80['getCommentThread'](_0x23442d)&&_0x434e80['updateCommentThread']({'threadId':_0x23442d,'channelId':_0x10e89e,'context':_0x3a4d72,'unlinkedAt':_0x3cd51d,'attributes':_0x114942,'isFromAdapter':!0x0});}),this['listenTo'](_0x142463,'commentThreadResolved',(_0x42a49c,{commentThreadId:_0x422163,resolvedBy:_0x84186c,resolvedAt:_0x38ed89})=>{const _0x32eb4c=_0x434e80['getCommentThread'](_0x422163);_0x32eb4c&&_0x32eb4c['resolve']({'resolvedBy':_0x84186c,'resolvedAt':_0x38ed89,'isFromAdapter':!0x0});}),this['listenTo'](_0x142463,'commentThreadReopened',(_0x317939,{commentThreadId:_0x407284})=>{const _0x46c5e2=_0x434e80['getCommentThread'](_0x407284);_0x46c5e2&&_0x46c5e2['reopen']({'isFromAdapter':!0x0});}),this['listenTo'](_0x142463,'commentThreadRemoved',(_0x37a001,{commentThreadId:_0x413207})=>{const _0x3400cc=_0x434e80['getCommentThread'](_0x413207);_0x3400cc&&_0x3400cc['remove']({'isFromAdapter':!0x0});}),this['listenTo'](_0x142463,'commentAdded',(_0x9debbe,_0x40a599)=>{const _0x71d4db=_0x40a599['commentThreadId'],_0xc89ec5=_0x434e80['getCommentThread'](_0x71d4db);_0xc89ec5&&_0xc89ec5['addComment']({...parseRemoteCommentToLocal(_0x40a599),'isFromAdapter':!0x0});}),this['listenTo'](_0x142463,'commentUpdated',(_0xa93979,{commentThreadId:_0x54b29a,commentId:_0x2a8881,content:_0x9431f3,attributes:_0x58b471})=>{const _0x2a04f5=_0x434e80['getCommentThread'](_0x54b29a);if(_0x2a04f5){const _0x55ba2e=_0x2a04f5['getComment'](_0x2a8881);_0x55ba2e&&_0x55ba2e['update']({'content':_0x9431f3,'attributes':_0x58b471,'isFromAdapter':!0x0});}}),this['listenTo'](_0x142463,'commentRemoved',(_0x4a8e6d,{commentThreadId:_0x580d7b,commentId:_0x3cb121})=>{const _0xb2cb94=_0x434e80['getCommentThread'](_0x580d7b);if(_0xb2cb94){const _0x2a8564=_0xb2cb94['getComment'](_0x3cb121);_0x2a8564&&_0x2a8564['remove']({'isFromAdapter':!0x0});}}),await this['_connectService'](_0x19f419);}['destroy'](){if(this['context']instanceof Context$1){const _0x4713e9=this['context']['config']['get']('collaboration.channelId');this['_terminateService'](_0x4713e9);}}['_terminateService'](_0x399a7d){if(!this['_services']['has'](_0x399a7d))throw new CKEditorError('cloudservicescommentsadapter-disconnect-not-exist',null,{'channelId':_0x399a7d});this['_getService'](_0x399a7d)['disconnect'](),this['_services']['delete'](_0x399a7d);}async['reconnect'](){for(const _0x6db26c of this['_services']['keys']())await this['_connectService'](_0x6db26c);if(this['context']instanceof Context$1){const _0x3e8bc2=this['context']['config']['get']('collaboration.channelId'),_0x134b31=this['context']['plugins']['get'](Sessions);_0x134b31['unregister'](_0x3e8bc2);const _0x164595=await this['_services']['get'](_0x3e8bc2)['getConnectedSessions']();_0x134b31['register'](_0x3e8bc2,_0x164595);}}async['_connectService'](_0x50926b){const {connection:_0x17e84c}=this['context']['plugins']['get'](WebSocketGateway),_0x194891=this['context']['plugins']['get']('CommentsRepository'),_0x1501d6=this['_services']['get'](_0x50926b),_0x471454=await _0x1501d6['connect'](_0x17e84c);await this['_fetchMissingUsersForThreads'](_0x471454);const _0x37ed6b=new Set(Array['from'](_0x194891['getCommentThreads']({'channelId':_0x50926b}),_0x94126f=>_0x94126f['id']));for(const _0x1bdc01 of _0x471454)_0x1bdc01['deletedAt']||_0x37ed6b['delete'](_0x1bdc01['commentThreadId']);for(const _0x405883 of _0x37ed6b)_0x194891['getCommentThread'](_0x405883)['remove']({'isFromAdapter':!0x0});for(const _0x4e01ac of _0x471454){let _0x19a415=_0x194891['getCommentThread'](_0x4e01ac['commentThreadId']);const {commentThreadId:_0x4e3456,context:_0x5c5576,attributes:_0x22ef62,resolvedBy:_0x647477,resolvedAt:_0x1f8406,unlinkedAt:_0x14e480,deletedAt:_0x538f85}=_0x4e01ac;if(_0x538f85)continue;_0x19a415||(_0x19a415=_0x194891['addCommentThread']({'channelId':_0x50926b,'threadId':_0x4e3456,'context':_0x5c5576,'attributes':_0x22ef62||{},'resolvedBy':_0x647477,'resolvedAt':_0x1f8406,'unlinkedAt':_0x14e480,'isFromAdapter':!0x0}));const _0x1c8f4d=new Set(Array['from'](_0x19a415['comments'],_0x38bc74=>_0x38bc74['id']));for(const _0x4eda33 of _0x4e01ac['comments'])_0x1c8f4d['delete'](_0x4eda33['commentId']);for(const _0xbb0d72 of _0x1c8f4d)_0x19a415['getComment'](_0xbb0d72)['remove']({'isFromAdapter':!0x0});for(const _0x3cd8b4 of _0x4e01ac['comments']){const _0x457a47=_0x19a415['getComment'](_0x3cd8b4['commentId']);_0x457a47?_0x457a47['content']!==_0x3cd8b4['content']&&_0x457a47['update']({'content':_0x3cd8b4['content'],'isFromAdapter':!0x0}):_0x19a415['addComment'](Object['assign'](parseRemoteCommentToLocal(_0x3cd8b4),{'isFromAdapter':!0x0}));}}}['_getService'](_0x19d99d){if(!this['_services']['has'](_0x19d99d))throw new CKEditorError('cloudservicescommentsadapter-service-not-exist',null,{'channelId':_0x19d99d});return this['_services']['get'](_0x19d99d);}async['_fetchMissingUsersForThreads'](_0x3810db){const _0x5efe7d=this['context']['plugins']['get'](Users),{connection:_0x3c8db8}=this['context']['plugins']['get'](WebSocketGateway),_0x4e713e=new Set();for(const {resolvedBy:_0x397246,comments:_0xecf962}of _0x3810db){_0x397246&&!_0x5efe7d['getUser'](_0x397246)&&_0x4e713e['add'](_0x397246);for(const {userId:_0x3511c2}of _0xecf962)_0x5efe7d['getUser'](_0x3511c2)||_0x4e713e['add'](_0x3511c2);}if(0x0===_0x4e713e['size'])return;const _0x405f37=await User['getMany'](_0x3c8db8,Array['from'](_0x4e713e));for(const _0x177323 of _0x405f37)_0x5efe7d['getUser'](_0x177323['id'])||_0x5efe7d['addUser'](_0x177323);}}async function handleServerError(_0x144b09){if('404'!==_0x144b09['code'])throw _0x144b09;}function handleDisconnectionError$1(_0x38f012){if(isDisconnectionError$2(_0x38f012))return new Promise(()=>{});throw _0x38f012;}function isDisconnectionError$2(_0x248aa2){return _0x248aa2['message']['startsWith']('cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.')||_0x248aa2['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x248aa2['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}function parseRemoteCommentToLocal(_0x5f3c38){return{'threadId':_0x5f3c38['commentThreadId'],'commentId':_0x5f3c38['commentId'],'content':_0x5f3c38['content'],'createdAt':_0x5f3c38['createdAt'],'authorId':_0x5f3c38['userId'],'attributes':_0x5f3c38['attributes']||{}};}function parseLocalCommentToRemote(_0xa57a17,_0xc98ae9,_0x36d651){return{'commentThreadId':_0x36d651,'commentId':_0xa57a17['commentId'],'userId':_0xa57a17['authorId'],'content':_0xa57a17['content'],'documentId':_0xc98ae9,'createdAt':_0xa57a17['createdAt'],'attributes':_0xa57a17['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(_0x44236b){super(_0x44236b);const _0xc814ff=this['editor']['config']['get']('collaboration.channelId');this['_bufferedRequests']=new Map(),this['_trackChangesService']=new CloudServicesTrackChangesAdapter['TrackChangesService'](_0xc814ff);}['init'](){const _0x5f0235=this['editor']['plugins']['get'](WebSocketGateway),_0x5c6d8f=this['editor']['plugins']['get']('TrackChangesEditing');return _0x5c6d8f['adapter']={'getSuggestion':async _0x34b97c=>{await this['_waitForServiceReady']();const _0x3ebb29=await this['_trackChangesService']['get'](_0x34b97c)['catch'](handleDisconnectionError);return await this['_fetchMissingUsersForThreads']([_0x3ebb29]),_0x3ebb29;},'addSuggestion':async({id:_0x159dff,type:_0x25a83e,data:_0x1891b7,originalSuggestionId:_0x529017,attributes:_0x26f932})=>{await this['_waitForServiceReady']();const _0x2fdc12={'id':_0x159dff,'type':_0x25a83e,'data':_0x1891b7,'originalSuggestionId':_0x529017,'attributes':_0x26f932},_0x546b5a=await this['_trackChangesService']['add'](_0x159dff,_0x25a83e,_0x1891b7,_0x529017,_0x26f932)['catch'](_0x4f97b9=>{if(isDisconnectionError$1(_0x4f97b9))return new Promise(_0x49c81b=>{this['_bufferedRequests']['set'](_0x159dff,{'resolve':_0x49c81b,'suggestionData':_0x2fdc12});});throw _0x4f97b9;});return this['_bufferedRequests']['delete'](_0x159dff),_0x546b5a;},'updateSuggestion':async(_0x45e4ec,_0x46b9a8)=>{if(await this['_waitForServiceReady'](),'open'!==_0x46b9a8['state'])return this['_trackChangesService']['update'](_0x45e4ec,_0x46b9a8)['catch'](handleDisconnectionError);}},this['listenTo'](this['_trackChangesService'],'suggestionUpdated',(_0x4c7970,_0x360b62)=>{_0x5c6d8f['hasSuggestion'](_0x360b62['id'])&&(_0x5c6d8f['getSuggestion'](_0x360b62['id'])['attributes']=_0x360b62['attributes']);}),this['_trackChangesService']['connect'](_0x5f0235['connection'])['then'](_0x400cec=>(_0x5f0235['addToReconnectionStack'](this),this['_fetchMissingUsersForThreads'](_0x400cec)['then'](()=>{for(const _0x4cc2b1 of _0x400cec){_0x5c6d8f['addSuggestionData'](_0x4cc2b1)['_saved']=!0x0;}})));}async['reconnect'](){const _0x14d578=this['editor']['plugins']['get']('TrackChangesEditing'),{connection:_0x41fa1d}=this['editor']['plugins']['get'](WebSocketGateway),_0x45f661=await this['_trackChangesService']['connect'](_0x41fa1d);await this['_fetchMissingUsersForThreads'](_0x45f661);for(const {suggestionData:_0x3fbfaf,resolve:_0x3f35fe}of this['_bufferedRequests']['values']()){let _0x1a0ef7=_0x45f661['find'](_0xb0eb02=>_0xb0eb02['id']===_0x3fbfaf['id']);_0x1a0ef7||(_0x1a0ef7=await this['_trackChangesService']['add'](_0x3fbfaf['id'],_0x3fbfaf['type'],_0x3fbfaf['data'],_0x3fbfaf['originalSuggestionId'])),_0x3f35fe(_0x1a0ef7);}for(const _0x1f2d3f of _0x45f661)_0x14d578['hasSuggestion'](_0x1f2d3f['id'])||_0x14d578['addSuggestionData'](_0x1f2d3f);}async['_waitForServiceReady'](){this['_trackChangesService']['isConnected']||await new Promise(_0x3c4142=>{this['listenTo'](this['_trackChangesService'],'connected',_0xfe6fa2=>{_0xfe6fa2['off'](),_0x3c4142();});});}async['_fetchMissingUsersForThreads'](_0x37d8b1){const _0x258477=this['editor']['plugins']['get'](Users),{connection:_0x2d8324}=this['editor']['plugins']['get'](WebSocketGateway),_0xa562da=new Set();for(const {authorId:_0x2c462f}of _0x37d8b1)_0x258477['getUser'](_0x2c462f)||_0xa562da['add'](_0x2c462f);if(0x0===_0xa562da['size'])return;const _0xad3d7=await User['getMany'](_0x2d8324,Array['from'](_0xa562da));for(const _0x439c00 of _0xad3d7)_0x258477['getUser'](_0x439c00['id'])||_0x258477['addUser'](_0x439c00);}}function handleDisconnectionError(_0x382619){if(isDisconnectionError$1(_0x382619))return new Promise(()=>{});throw _0x382619;}function isDisconnectionError$1(_0x114bd3){return _0x114bd3['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x114bd3['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 _0x2c7d9b=this['editor']['plugins']['get'](WebSocketGateway),_0x2b9752=this['editor']['plugins']['get']('CommentsEditing'),_0x2af029=this['editor']['plugins']['get'](CloudServicesCommentsAdapter);return this['editor']['data']['once']('ready',()=>{this['listenTo'](_0x2c7d9b,'change:state',(_0x11910e,_0x5f5a48,_0x2b9715)=>{_0x2b9752['isThreadsLoadingPaused']='connected'!==_0x2b9715;});}),this['listenTo'](_0x2c7d9b,'change:state',(_0x312d00,_0xb7ce9c,_0x541de6)=>{this['editor']['plugins']['get']('CommentsRepository')['switchReadOnly']('connected'!==_0x541de6);}),_0x2af029['_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(_0x183c1d){super(_0x183c1d);const _0x53941f=this['editor']['config']['get']('collaboration.channelId');this['_lastRequestId']=null,this['_revisionTracker']=this['editor']['plugins']['get']('RevisionTracker'),this['_revisionHistoryService']=new CloudServicesRevisionHistoryAdapter['RevisionHistoryService'](_0x53941f);}async['init'](){const _0x165d99=this['editor']['plugins']['get'](RealTimeCollaborationClient),_0x2541a8=_0x165d99['serverHistory'],_0x4a60f6=this['editor']['plugins']['get'](WebSocketGateway);this['_revisionTracker']['setSource']({'history':_0x2541a8,'getLatestVersion':()=>this['_getLatestVersion'](),'getCurrentRevisionId':()=>_0x165d99['sessionId']});const _0xf8cc32=this['editor']['config']['get']('cloudServices.bundleVersion')||_0x1dde74,_0x5b11b6=await EditorService['isBundleUploaded'](_0x4a60f6['connection'],_0xf8cc32);this['editor']['plugins']['get']('RevisionHistory')['adapter']={'getRevision':async({revisionId:_0x25d33b})=>(await this['_waitForServiceReady'](),await this['_revisionHistoryService']['getRevision'](_0x25d33b)),'updateRevisions':async _0x4b1f30=>{await this['_waitForServiceReady']();const _0x30f12f=this['_revisionTracker']['currentRevision'];if(_0x5b11b6&&0x1===_0x4b1f30['length']&&_0x4b1f30[0x0]['id']===_0x30f12f['id'])return _0x4b1f30;for(const _0x280d96 of _0x4b1f30)_0x280d96['id']===_0x30f12f['id']&&(_0x280d96['isEmptyCurrent']=_0x280d96['fromVersion']===_0x280d96['toVersion']);return this['_revisionHistoryService']['updateRevisions'](_0x4b1f30,this['_lastRequestId'])['then'](_0x19b7e2=>(this['_lastRequestId']=_0x19b7e2,_0x4b1f30))['catch'](_0x1154e0=>{if(isDisconnectionError(_0x1154e0)||'400'===_0x1154e0['code']&&void 0x0!==_0x1154e0['data']['wrongRequestId']){for(const _0x3d7dc0 of _0x4b1f30){!this['_revisionTracker']['repository']['getRevision'](_0x3d7dc0['id'])||this['_revisionTracker']['_bufferUpdate'](_0x3d7dc0['id'],_0x3d7dc0,!0x1);}if(isDisconnectionError(_0x1154e0))throw _0x1154e0;return _0x4b1f30;}throw _0x1154e0;});}},this['listenTo'](this['_revisionHistoryService'],'revisionsUpdated',(_0x3769a2,{revisionsData:_0x2a0e56,requestId:_0x2c9831})=>{Math['max'](..._0x2a0e56['map'](_0x2d2e6a=>_0x2d2e6a['toVersion']))>this['_getLatestVersionFromServerOperations']()-0x1?this['_getLatestVersion']()['then'](()=>{this['_handleRevisionsUpdate'](_0x2a0e56,_0x2c9831);}):this['_handleRevisionsUpdate'](_0x2a0e56,_0x2c9831);});const {revisions:_0x22985f,requestId:_0x472e41}=await this['_revisionHistoryService']['connect'](_0x4a60f6['connection']);_0x4a60f6['addToReconnectionStack'](this),this['_lastRequestId']=_0x472e41,await this['_fetchMissingUsers'](_0x22985f);for(const _0x5397ae of _0x22985f)this['_revisionTracker']['addRevisionData'](_0x5397ae);this['listenTo'](_0x165d99,'change:_isConnected',(_0x50ef6b,_0x3e14e9,_0x3e3220)=>{_0x3e3220&&(this['_oldOffset']=_0x165d99['_offset'],_0x50ef6b['off']());}),this['_revisionTracker']['bind']('isEnabled')['to'](_0x4a60f6,'state',_0x1b5d5f=>_0x1b5d5f===WEB_SOCKET_GATEWAY_STATES['CONNECTED']);}async['reconnect'](){const _0x3c98af=this['editor']['plugins']['get'](WebSocketGateway),_0x292ac8=this['editor']['plugins']['get'](RealTimeCollaborationClient),_0x3e7ccf=async()=>{const _0x5e1b2a=this['_revisionTracker']['currentRevision'],_0x4668c6=_0x5e1b2a['id'],_0x2c2a06=_0x4668c6!==_0x292ac8['sessionId'];if(_0x2c2a06){const _0x13b545=_0x292ac8['_offset']-this['_oldOffset'],_0x56b369=this['_getLatestVersionFromServerOperations']();this['_revisionTracker']['_revisionDataBuilder']['reInit']();if(_0x5e1b2a['toVersion']+_0x13b545!==_0x56b369){const _0x25cdb0=_0x5e1b2a['fromVersion']+_0x13b545,_0x3c7b87=this['editor']['plugins']['get'](Users),_0x13c5e6=this['_revisionTracker']['buildRevisionData']({'revision':_0x5e1b2a,'from':_0x25cdb0,'to':_0x56b369});_0x13c5e6['id']=_0x5e1b2a['id'];const _0xd363c8=_0x13c5e6['authorsIds']['map'](_0x5a3992=>_0x3c7b87['getUser'](_0x5a3992));_0x5e1b2a['_update']({..._0x13c5e6,'authors':_0xd363c8},!0x0),this['_revisionTracker']['_bufferUpdate'](_0x5e1b2a['id'],_0x13c5e6,!0x0);}this['_revisionTracker']['_startingVersion']=_0x56b369,(_0x5e1b2a['toVersion']===_0x5e1b2a['fromVersion']&&!this['_revisionTracker']['_bufferedUpdates']['has'](_0x4668c6)&&this['_revisionTracker']['repository']['_revisions']['remove'](_0x4668c6),this['_revisionTracker']['_createCurrentRevision'](_0x56b369));}const {revisions:_0x5d1c36,requestId:_0x3b5a7c}=await this['_revisionHistoryService']['reconnect'](_0x3c98af['connection'],this['_lastRequestId']);_0x2c2a06&&_0x5d1c36['length']>0x0?_0x292ac8['_handleReconnectionError']():(await this['_fetchMissingUsers'](_0x5d1c36),this['_handleRevisionsUpdate'](_0x5d1c36,_0x3b5a7c),this['_revisionTracker']['sendBufferedUpdates']());};return _0x292ac8['_isConnected']?_0x3e7ccf():new Promise((_0x55db04,_0x55a105)=>{_0x292ac8['once']('change:_isConnected',()=>{_0x3e7ccf()['then'](_0x55db04)['catch'](_0x55a105);});});}['destroy'](){super['destroy']();}async['_waitForServiceReady'](){this['_revisionHistoryService']['isConnected']||await new Promise(_0x580405=>{this['listenTo'](this['_revisionHistoryService'],'connected',_0x8e9f1=>{_0x8e9f1['off'](),_0x580405();});});}['_getLatestVersionFromServerOperations'](){const _0x382a42=this['editor']['plugins']['get'](RealTimeCollaborationClient)['serverHistory']['getOperations']()['reverse']();for(const _0x107832 of _0x382a42)if('marker'!==_0x107832['type']||_0x107832['affectsData'])return _0x107832['baseVersion']+0x1;}['_getLatestVersion'](){const _0x25c8d1=this['editor']['plugins']['get'](RealTimeCollaborationClient);return new Promise(_0x4b7450=>{_0x25c8d1['_isPendingUpdate']?_0x25c8d1['once']('change:_isPendingUpdate',()=>{_0x4b7450(this['_getLatestVersionFromServerOperations']());}):_0x4b7450(this['_getLatestVersionFromServerOperations']());});}['_handleRevisionsUpdate'](_0x2d92d2,_0x7308b2){const _0x285331=this['_revisionTracker']['repository'];this['_lastRequestId']=_0x7308b2;for(const _0x5a9a5b of _0x2d92d2){const _0x3a4f74=_0x285331['getRevision'](_0x5a9a5b['id']);if(_0x3a4f74){if((_0x5a9a5b['fromVersion']||_0x5a9a5b['toVersion'])&&(_0x5a9a5b['diffData']=null),_0x3a4f74===this['_revisionTracker']['currentRevision']){const _0x28fe8f=Math['max'](_0x3a4f74['toVersion'],_0x5a9a5b['toVersion']),_0x42b8cc=Math['max'](_0x3a4f74['fromVersion'],_0x5a9a5b['fromVersion']);let _0x518af3;_0x3a4f74['toVersion']===_0x5a9a5b['toVersion']&&_0x3a4f74['fromVersion']===_0x5a9a5b['fromVersion']?(_0x518af3=!0x0,this['_preventResendingRevisionData'](_0x5a9a5b)):_0x5a9a5b['toVersion']===_0x28fe8f&&_0x5a9a5b['fromVersion']===_0x42b8cc?_0x518af3=!0x1:(_0x3a4f74['toVersion']===_0x28fe8f&&_0x3a4f74['fromVersion']===_0x42b8cc||this['_fixRevision']({'revision':_0x3a4f74,'from':_0x42b8cc,'to':_0x28fe8f}),_0x518af3=!0x0),_0x518af3&&(delete _0x5a9a5b['fromVersion'],delete _0x5a9a5b['toVersion'],delete _0x5a9a5b['diffData'],delete _0x5a9a5b['createdAt'],delete _0x5a9a5b['authorsIds']);}this['_revisionTracker']['setRevisionData'](_0x5a9a5b),this['_preventResendingRevisionData'](_0x5a9a5b);}else this['_revisionTracker']['addRevisionData'](_0x5a9a5b);}const _0xfd37=_0x285331['getRevisions']();_0xfd37['reverse']();for(let _0x47013a=0x0;_0x47013a<_0xfd37['length']-0x1;_0x47013a++){const _0x3216b0=_0xfd37[_0x47013a],_0x30bd28=_0xfd37[_0x47013a+0x1];if(_0x3216b0['fromVersion']<_0x30bd28['toVersion']){const _0x3c92d3=_0x30bd28['toVersion'],_0x4dd896=Math['max'](_0x3c92d3,_0x3216b0['toVersion']);this['_fixRevision']({'revision':_0x3216b0,'from':_0x3c92d3,'to':_0x4dd896});}}}['_fixRevision']({revision:_0x2261fc,from:_0x38bbc8,to:_0x1eb473}={}){const _0x3b44b3=this['editor']['plugins']['get'](Users),_0xed6d54=this['_revisionTracker']['buildRevisionData']({'revision':_0x2261fc,'from':_0x38bbc8,'to':_0x1eb473});_0xed6d54['authors']=_0xed6d54['authorsIds']['map'](_0x431450=>_0x3b44b3['getUser'](_0x431450)),_0x2261fc['_update'](_0xed6d54);}['_preventResendingRevisionData'](_0x57110d){const _0x280bf8={};_0x280bf8['id']=_0x57110d['id'];for(const _0x47eb31 of Object['keys'](_0x57110d))'id'!==_0x47eb31&&(_0x280bf8[_0x47eb31]=void 0x0);this['_revisionTracker']['_bufferUpdate'](_0x280bf8['id'],_0x280bf8,!0x0);}async['_fetchMissingUsers'](_0x57827c){const _0x187038=this['editor']['plugins']['get'](Users),{connection:_0x5b8fb9}=this['editor']['plugins']['get'](WebSocketGateway),_0x34ba5d=new Set();for(const _0x407b28 of _0x57827c){for(const _0x546b8a of _0x407b28['authorsIds'])_0x1fe63d(_0x546b8a);_0x407b28['creatorId']&&_0x1fe63d(_0x407b28['creatorId']);}if(0x0===_0x34ba5d['size'])return;const _0x16d77a=await User['getMany'](_0x5b8fb9,Array['from'](_0x34ba5d));for(const _0x2b8b10 of _0x16d77a)_0x187038['getUser'](_0x2b8b10['id'])||_0x187038['addUser'](_0x2b8b10);function _0x1fe63d(_0x4f07e9){_0x187038['getUser'](_0x4f07e9)||_0x34ba5d['add'](_0x4f07e9);}}}function isDisconnectionError(_0xaf5593){return _0xaf5593['message']['startsWith']('cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.')||_0xaf5593['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0xaf5593['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(_0x463716,_0x1f25ae=0x6){super(_0x463716);const _0x1c63ca=this['bindTemplate'];this['set']('isHidden',!0x0),this['set']('usersCount',0x0),this['_collapseAt']=_0x1f25ae,this['bind']('isHidden')['to'](this,'usersCount',_0x38d3e7=>_0x38d3e7<_0x1f25ae),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-presence-list__list-item',_0x1c63ca['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':_0x1c63ca['to']('usersCount',_0x57484a=>'+'+(_0x57484a-this['_collapseAt']+0x2)['toString']())}]}]}]});}}class PresenceInlineListView extends View{['items'];['keystrokes'];constructor(_0xa7120b){super(_0xa7120b);const _0x4bd574=this['bindTemplate'];this['items']=this['createCollection'](),this['keystrokes']=new KeystrokeHandler(),this['set']({'hasPopup':!0x1,'isExpanded':!0x1}),this['setTemplate']({'tag':'div','attributes':{'aria-haspopup':_0x4bd574['if']('hasPopup'),'aria-expanded':_0x4bd574['to']('isExpanded',_0x47e5f5=>this['hasPopup']&&String(_0x47e5f5)),'aria-label':_0x4bd574['to']('hasPopup',_0xd681e8=>getTranslation$6(_0xa7120b,_0xd681e8?'Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)':'Connected\x20users\x20list')),'role':'list','tabindex':_0x4bd574['to']('hasPopup',_0x4428a6=>!!_0x4428a6&&0x0),'class':['ck','ck-presence-list__list']},'children':this['items'],'on':{'mouseenter':_0x4bd574['to'](()=>this['fire']('presencelist:show')),'mouseleave':_0x4bd574['to'](_0x3c4c12=>{const _0x356604=_0x3c4c12,_0x45b70f=document['querySelector']('.ck-presence-list__dropdown-list'),_0x57ccaf=document['querySelector']('.ck-balloon-panel_with-arrow');_0x45b70f?.['contains'](_0x356604['relatedTarget'])||_0x57ccaf?.['contains'](_0x356604['relatedTarget'])||this['fire']('presencelist:hide');})}}),this['on']('change:hasPopup',(_0x33b583,_0x30875d,_0x477545)=>{this['element']&&(_0x477545?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(_0x26bb46,_0xe9f0af=0x6){super(_0x26bb46);const _0x3913a0=this['bindTemplate'];this['set']('isCollapsed',!0x0),this['counterView']=new PresenceCounterView(this['locale'],_0xe9f0af),this['inlineListView']=new PresenceInlineListView(_0x26bb46),this['inlineListView']['bind']('hasPopup')['to'](this,'isCollapsed'),this['listenTo'](this['inlineListView']['items'],'change',()=>{for(const _0x4e0f20 of this['inlineListView']['items'])_0x4e0f20['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',_0x3913a0['if']('isCollapsed','ck-presence-list--collapsed')]},'children':[this['inlineListView']]});}}class PresenceDropdownListView extends View{['listWrapperView'];constructor(_0x4a274e,_0x277d4a){super(_0x4a274e);const _0x4ae773=this['bindTemplate'];this['listWrapperView']=new PresenceDropdownListWrapperView(_0x4a274e,_0x277d4a),this['setTemplate']({'tag':'div','attributes':{'tabindex':-0x1,'role':'application','class':['ck','ck-presence-list__dropdown-list'],'aria-label':getTranslation$6(_0x4a274e,'Connected\x20users\x20list\x20dropdown\x20menu')},'children':[this['listWrapperView']],'on':{'mouseleave':_0x4ae773['to'](_0x4b163b=>{const _0x4a8b81=_0x4b163b,_0x1a3e5a=document['querySelector']('.ck-presence-list__list'),_0x1ee8cc=document['querySelector']('.ck-balloon-panel_with-arrow');_0x1a3e5a?.['contains'](_0x4a8b81['relatedTarget'])||_0x1ee8cc?.['contains'](_0x4a8b81['relatedTarget'])||this['fire']('presencelist:hide');})}});}}class PresenceDropdownListWrapperView extends ListView{constructor(_0x82c507,_0x551f52){super(_0x82c507);const _0x3f2523=this['bindTemplate'];this['set']('_isScrollable',!0x1),this['setTemplate']({'tag':_0x551f52?'div':'ul','attributes':{'class':['ck','ck-reset','ck-list','ck-presence-list__dropdown-list-wrapper',_0x3f2523['if']('_isScrollable','ck-presence-list__dropdown-list-wrapper_scrollable')],'role':_0x3f2523['to']('role'),'aria-label':_0x3f2523['to']('ariaLabel'),'aria-labelledby':_0x3f2523['to']('ariaLabelledBy')},'children':this['items']}),this['listenTo'](_0x347e1e['window'],'resize',()=>this['checkIfScrollable']()),this['items']['on']('change',()=>this['checkIfScrollable']());}['render'](){super['render'](),this['checkIfScrollable']();}['checkIfScrollable'](){const _0x2f991f=this['element'];_0x2f991f&&(this['_isScrollable']=Math['max'](_0x2f991f['scrollHeight'],_0x2f991f['clientHeight'])>0.8*window['innerHeight']);}}class PresenceDropdownListItemView extends ListItemView{['userView'];constructor(_0x341b32,_0x122181,_0x1f6ec4){super(_0x341b32);const _0x37f0fa=this['bindTemplate'];this['userView']=new UserView(_0x341b32,_0x122181);const _0x3f0723={'tag':'li','attributes':{'class':['ck','ck-presence-list__dropdown-list-item'],'tabindex':-0x1,'role':'presentation','aria-label':_0x122181['name']},'children':[this['userView'],{'tag':'span','attributes':{'class':['ck','ck-user__full-name']},'children':[{'text':_0x122181['name']}]},{'tag':'span','attributes':{'class':['ck','ck-presence-list__marker',_0x122181['color']['getBackgroundColorClass']()],'aria-hidden':'true'}}]};_0x1f6ec4&&(_0x3f0723['tag']='button',_0x3f0723['on']={'click':_0x37f0fa['to'](()=>this['fire']('execute'))}),this['setTemplate'](_0x3f0723);}['focus'](){this['element']['focus']();}}class PresenceInlineListItemView extends View{['userView'];['markerView'];constructor(_0x42a879,_0x25a0dc,_0x5269aa){super(_0x42a879);const _0x31ba5d=this['bindTemplate'];this['set']('isFocusable',!0x1),this['set']('hasTooltip',!0x0),this['set']('tooltipPosition',''),this['userView']=new UserView(_0x42a879,_0x25a0dc),this['markerView']=new MarkerView(_0x42a879,_0x25a0dc);const _0x49acd2=new LabelView(_0x42a879);_0x49acd2['template']['tag']='span',_0x49acd2['text']=_0x25a0dc['name'];const _0x49645c={'tag':'div','attributes':{'class':['ck','ck-presence-list__list-item'],'role':'listitem','tabindex':_0x31ba5d['to']('isFocusable',_0x17703c=>!!_0x17703c&&0x0),'aria-labelledby':_0x49acd2['id'],'data-cke-tooltip-text':this['userView']['name'],'data-cke-tooltip-position':_0x31ba5d['to']('tooltipPosition'),'data-cke-tooltip-disabled':_0x31ba5d['to']('hasTooltip',_0x22c6f7=>!_0x22c6f7),'data-cke-tooltip-class':'ck-presence-list__list-item__tooltip'},'children':[this['userView'],this['markerView'],_0x49acd2]};_0x5269aa&&(_0x49645c['tag']='button',_0x49645c['on']={'click':_0x31ba5d['to'](()=>this['fire']('execute'))}),this['setTemplate'](_0x49645c);}}class MarkerView extends View{constructor(_0x27ec27,_0x2a6321){super(_0x27ec27),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-presence-list__marker',_0x2a6321['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(_0x36bc0c){super(_0x36bc0c),this['context']['config']['define']('presenceList',defaultPresenceListConfig);const _0x19e151=_0x36bc0c['config']['get']('presenceList.collapseAt');if('number'!=typeof _0x19e151)throw new CKEditorError('presencelist-collapseat-invalid-format',this);if(_0x19e151<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 _0x3d282b of this['_allConnectedUsers'])this['_handleUserAdd'](_0x3d282b);this['listenTo'](this['_allConnectedUsers'],'add',(_0x528131,_0x41f9df)=>{this['_handleUserAdd'](_0x41f9df);}),this['listenTo'](this['_allConnectedUsers'],'remove',(_0x323766,_0x1be10f)=>{this['_handleUserRemove'](_0x1be10f);});}['_createView'](){const _0x5299a0=this['context'],_0x41f93d=new PresenceListView(this['context']['locale'],this['context']['config']['get']('presenceList.collapseAt')),_0x2fad67=this['balloonPanelView'];if(!isElement$2(_0x5299a0['config']['get']('presenceList.container')))throw new CKEditorError('presencelist-missing-container',this);return _0x41f93d['counterView']['bind']('usersCount')['to'](this),_0x41f93d['bind']('isCollapsed')['to'](this,'usersCount',_0x1ce278=>{const {collapseAt:_0x2cb9ca}=_0x5299a0['config']['get']('presenceList'),_0x20864c=_0x1ce278>=_0x2cb9ca;if(_0x20864c&&!_0x41f93d['inlineListView']['items']['find'](_0x58c5f5=>_0x58c5f5 instanceof PresenceCounterView)){const _0x30b845=this['context']['config']['get']('presenceList.collapseAt')-0x1;this['currentDisplayedUsers']['length']==_0x30b845&&this['currentDisplayedUsers']['length']>0x1&&this['currentDisplayedUsers']['remove'](this['currentDisplayedUsers']['length']-0x1),_0x41f93d['inlineListView']['items']['add'](_0x41f93d['counterView']);}return _0x20864c||this['hideDropdown'](),_0x20864c;}),_0x41f93d['inlineListView']['items']['bindTo'](this['currentDisplayedUsers'])['using'](_0x7631db=>{const _0x3b085a=_0x5299a0['config']['get']('presenceList'),_0x56ecac=new PresenceInlineListItemView(_0x5299a0['locale'],_0x7631db,!!_0x3b085a['onClick']);return _0x56ecac['bind']('hasTooltip')['to'](_0x41f93d,'isCollapsed',_0x492d46=>!_0x492d46),_0x56ecac['bind']('isFocusable')['to'](_0x41f93d,'isCollapsed',_0x449e23=>!_0x449e23),_0x3b085a['onClick']&&this['listenTo'](_0x56ecac,'execute',()=>{this['view']['isCollapsed']||_0x3b085a['onClick'](_0x7631db,_0x56ecac['element']);}),_0x56ecac;}),this['listenTo'](_0x41f93d['inlineListView'],'presencelist:show',()=>{this['view']['isCollapsed']&&this['showDropdown']();}),this['listenTo'](_0x41f93d['inlineListView'],'presencelist:hide',()=>{this['presenceDropdownView']&&this['hideDropdown']();}),_0x41f93d['inlineListView']['keystrokes']['set']('Enter',(_0x27d403,_0x4fca7f)=>{this['view']['isCollapsed']&&(this['showDropdown'](),_0x4fca7f());}),_0x41f93d['render'](),_0x2fad67['render'](),clickOutsideHandler({'emitter':_0x41f93d,'activator':()=>_0x2fad67['isVisible'],'contextElements':[_0x2fad67['element'],_0x41f93d['inlineListView']['element']],'callback':()=>this['hideDropdown']()}),_0x5299a0['config']['get']('presenceList.container')['appendChild'](_0x41f93d['element']),this['_bodyCollection']=new BodyCollection(this['context']['locale']),this['_bodyCollection']['attachToDom'](),this['_bodyCollection']['add'](this['balloonPanelView']),_0x41f93d;}['_handleUserAdd'](_0x568a6e){if(!this['context']['config']['get']('presenceList.displayMe')&&_0x568a6e['isMe'])return;const _0x156a06=this['context']['config']['get']('presenceList.collapseAt')-0x1;for(this['usersCount']++;this['currentDisplayedUsers']['length']>=_0x156a06-(this['view']['isCollapsed']?0x1:0x0)&&this['currentDisplayedUsers']['length']>0x1;)this['currentDisplayedUsers']['remove'](0x1);const _0x51cee3=_0x568a6e['isMe']?0x0:this['currentDisplayedUsers']['length'];this['currentDisplayedUsers']['add'](_0x568a6e,_0x51cee3);}['_handleUserRemove'](_0x3be643){this['usersCount']--;const {collapseAt:_0x1ec5b7}=this['context']['config']['get']('presenceList'),_0x2c5f40=this['usersCount']>=_0x1ec5b7;if(this['currentDisplayedUsers']['get'](_0x3be643['id']))this['currentDisplayedUsers']['remove'](_0x3be643['id']);else{if(_0x2c5f40&&this['currentDisplayedUsers']['length']+0x1===_0x1ec5b7-0x1)return;}if(this['currentDisplayedUsers']['length']+(_0x2c5f40?0x1:0x0)<this['usersCount']){for(const _0x47c3b0 of Array['from'](this['_allConnectedUsers'])['reverse']())if(!this['currentDisplayedUsers']['get'](_0x47c3b0['id'])&&(this['currentDisplayedUsers']['add'](_0x47c3b0,Math['min'](this['currentDisplayedUsers']['length']-(_0x2c5f40?0x1:0x0),0x1)),this['currentDisplayedUsers']['length']+(_0x2c5f40?0x1:0x0)===_0x1ec5b7-0x1))return;}}['showDropdown'](){if(this['presenceDropdownView'])return;const _0x48016c=this['context']['config']['get']('presenceList');this['presenceDropdownView']=new PresenceDropdownListView(this['context']['locale'],!!_0x48016c['onClick']),this['view']['inlineListView']['isExpanded']=!0x0,this['listenTo'](this['presenceDropdownView'],'presencelist:hide',()=>{this['presenceDropdownView']&&this['hideDropdown']();});const {listWrapperView:_0x8931fd}=this['presenceDropdownView'];_0x8931fd['items']['bindTo'](this['_allConnectedUsers'])['using'](_0x3d05f3=>{if(!_0x48016c['displayMe']&&_0x3d05f3['isMe'])return null;const _0x362cb8=new PresenceDropdownListItemView(this['context']['locale'],_0x3d05f3,!!_0x48016c['onClick']);return _0x48016c['onClick']&&this['listenTo'](_0x362cb8,'execute',()=>{_0x48016c['onClick'](_0x3d05f3,_0x362cb8['element']);}),_0x362cb8;}),this['balloonPanelView']['content']['add'](this['presenceDropdownView']),this['balloonPanelView']['pin']({'target':this['view']['inlineListView']['element']}),_0x8931fd['focus'](),_0x8931fd['checkIfScrollable']();const _0x24fbc8=(_0x1ebd18,_0x3312c9)=>{this['hideDropdown'](),this['view']['inlineListView']['focus'](),_0x3312c9();};_0x8931fd['keystrokes']['set']('Esc',_0x24fbc8),_0x8931fd['keystrokes']['set']('Shift+Tab',_0x24fbc8),_0x8931fd['keystrokes']['set']('Tab',(_0x584ef4,_0x57bb63)=>{focusNextElement(this['view']['element']),this['hideDropdown'](),_0x57bb63();}),_0x8931fd['focusTracker']['add'](this['view']['element']),_0x8931fd['focusTracker']['on']('change:isFocused',(_0x429aa5,_0x340e8f,_0x34d368)=>{_0x34d368||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(_0x1f368f){const _0x407bb1=['a','button','input','select','textarea','[tabindex]','[contenteditable]']['map'](_0x273648=>_0x273648+':not([disabled]):not([tabindex=\x22-1\x22])')['join'](','),_0x97ad46=[...document['body']['querySelectorAll'](_0x407bb1)]['filter'](_0x154009=>_0x154009===document['activeElement']||_0x154009['offsetWidth']+_0x154009['offsetHeight']>0x0)['sort']((_0xfac5b3,_0x56c769)=>(_0xfac5b3['tabIndex']||0x0)-(_0x56c769['tabIndex']||0x0)),_0x5010f7=_0x97ad46['indexOf'](_0x1f368f),_0x56fe28=_0x97ad46[(_0x5010f7+0x1)%_0x97ad46['length']];_0x56fe28&&_0x56fe28['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(_0x413748){super(),this['id']=_0x413748['id']||uid(),this['creator']=_0x413748['creator']||null,this['authors']=_0x413748['authors']||[],this['diffData']=_0x413748['diffData']||null,this['toVersion']=_0x413748['toVersion']||0x0,this['fromVersion']=_0x413748['fromVersion']||0x0,this['set']('name',_0x413748['name']||''),this['set']('createdAt',_0x413748['createdAt']||new Date()),this['set']('attributes',_0x413748['attributes']||{});}['setName'](_0x435366){this['_update']({'name':_0x435366});}['setAttribute'](_0x4e33cf,_0x1f0281){const _0x13cdbe=cloneDeep(this['attributes']);set(_0x13cdbe,_0x4e33cf,_0x1f0281),this['_update']({'attributes':_0x13cdbe});}['removeAttribute'](_0x5d62be){const _0x1bc8e9=cloneDeep(this['attributes']);unset(_0x1bc8e9,_0x5d62be),this['_update']({'attributes':_0x1bc8e9});}['_update'](_0x1cdb8b,_0x3f8f7c=!0x1){let _0x2aaf96=!0x1;const _0x9581e5={'id':this['id']},_0x560be5=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x33ed1d of _0x560be5){const _0x55e4ef=_0x1cdb8b[_0x33ed1d];void 0x0!==_0x55e4ef&&_0x55e4ef!==this[_0x33ed1d]&&(this[_0x33ed1d]=_0x55e4ef,_0x9581e5[_0x33ed1d]=_0x55e4ef,_0x2aaf96=!0x0);}_0x2aaf96&&(_0x9581e5['authors']&&(_0x9581e5['authorsIds']=_0x9581e5['authors']['map'](_0x446363=>_0x446363['id']),delete _0x9581e5['authors']),this['fire']('_update',_0x9581e5,_0x3f8f7c));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x26a989=>_0x26a989['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(_0x2a5e72){super(_0x2a5e72),this['_revisions']=new Collection();}['afterInit'](){checkLicense$5(this);}['createRevision'](_0x3dbd8c){const _0x51e0c1=this['editor']['plugins']['get']('Users');return new Revision({'id':_0x3dbd8c['id'],'name':_0x3dbd8c['name'],'creator':_0x3dbd8c['creatorId']?_0x51e0c1['getUser'](_0x3dbd8c['creatorId']):null,'diffData':_0x3dbd8c['diffData']||_0x3dbd8c['data'],'authors':_0x3dbd8c['authorsIds']['map'](_0x1126df=>_0x51e0c1['getUser'](_0x1126df)),'createdAt':new Date(_0x3dbd8c['createdAt']),'attributes':_0x3dbd8c['attributes'],'fromVersion':_0x3dbd8c['fromVersion'],'toVersion':_0x3dbd8c['toVersion']});}['addRevision'](_0x5a12e5,_0x4f73d1=0x0){this['_revisions']['add'](_0x5a12e5,_0x4f73d1);}['getRevision'](_0x14caeb){return this['_revisions']['get'](_0x14caeb);}['getRevisions'](_0x29181b={'toJSON':!0x1}){const _0x175250=Array['from'](this['_revisions']);return _0x175250['reverse'](),_0x29181b['toJSON']?_0x175250['map'](_0x1140d1=>_0x1140d1['toJSON']()):_0x175250;}['getIndex'](_0x386be3){return this['_revisions']['getIndex'](_0x386be3);}['getEarlierVisibleRevision'](_0x492e2e){const [,_0x38feaa]=this['getRevisionsIterator'](_0x492e2e,{'direction':'earlier'});return _0x38feaa;}['getLaterVisibleRevision'](_0x551c3c){const [,_0x5b6aac]=this['getRevisionsIterator'](_0x551c3c,{'direction':'later'});return _0x5b6aac;}['getRevisionsInDiff'](_0x2cdb67){const _0x1c022b=[];for(const _0x5cb624 of this['getRevisionsIterator'](_0x2cdb67['newRevisionId']))if(_0x1c022b['push'](_0x5cb624),_0x5cb624['id']===_0x2cdb67['oldRevisionId'])break;return _0x1c022b;}*['getRevisionsIterator'](_0x5f4702,{direction:_0x9c8ca8='earlier',filter:_0x375b92=()=>!0x0}={}){const _0x73a02c='earlier'===_0x9c8ca8?0x1:-0x1;let _0x1dfe55=this['_revisions']['get'](_0x5f4702),_0x2941e7=this['getIndex'](_0x1dfe55);for(yield _0x1dfe55;_0x1dfe55;){if(_0x2941e7+=_0x73a02c,_0x1dfe55=this['getRevision'](_0x2941e7),!_0x1dfe55)return;_0x375b92(_0x1dfe55)&&(yield _0x1dfe55);}}}async function checkLicense$5(_0x5a72e3){const _0xe1f84e=_0x5d82ce([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]),_0x18ca04=0xeb829,_0x155074=window[_0x5d82ce([0x44,0x61,0x74,0x65])][_0x5d82ce([0x6e,0x6f,0x77])](),_0x354d25=_0x5a72e3[_0x5d82ce([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ff392=new window[(_0x5d82ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3289af=>{_0x354d25[_0x5d82ce([0x6f,0x6e,0x63,0x65])](_0x5d82ce([0x72,0x65,0x61,0x64,0x79]),_0x3289af);}),_0x2fcbcf={[_0x5d82ce([0x6b,0x74,0x79])]:_0x5d82ce([0x45,0x43]),[_0x5d82ce([0x75,0x73,0x65])]:_0x5d82ce([0x73,0x69,0x67]),[_0x5d82ce([0x63,0x72,0x76])]:_0x5d82ce([0x50,0x2d,0x32,0x35,0x36]),[_0x5d82ce([0x78])]:_0x5d82ce([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]),[_0x5d82ce([0x79])]:_0x5d82ce([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]),[_0x5d82ce([0x61,0x6c,0x67])]:_0x5d82ce([0x45,0x53,0x32,0x35,0x36])},_0x386c94=_0x354d25[_0x5d82ce([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d82ce([0x67,0x65,0x74])](_0x5d82ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x45902a=await(async function(){let _0x2c44ea,_0xad12e2=null,_0x13e1f2=null;try{if(_0x386c94==_0x5d82ce([0x47,0x50,0x4c]))return _0x5d82ce([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2c44ea=(function(){const _0xd63d2c=_0x386c94[_0x5d82ce([0x73,0x70,0x6c,0x69,0x74])](_0x5d82ce([0x2e]));if(0x3!=_0xd63d2c[_0x5d82ce([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x987ff7=_0xd63d2c[0x1];return _0x3bb199(_0x987ff7);function _0x3bb199(_0x43a393){const _0x5c0edf=_0x2ed6f5(_0x43a393);return _0x5c0edf&&_0x450f30()?_0x5c0edf:null;function _0x450f30(){const _0x5ef21b=_0x5c0edf[_0x5d82ce([0x6a,0x74,0x69])],_0x2e4e0f=window[_0x5d82ce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ef21b[_0x5d82ce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ef21b[_0x5d82ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x68f23d={..._0x5c0edf,[_0x5d82ce([0x6a,0x74,0x69])]:_0x5ef21b[_0x5d82ce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ef21b[_0x5d82ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x68f23d[_0x5d82ce([0x76,0x63])],_0x39894b(_0x68f23d)==_0x2e4e0f;}}}()),!_0x2c44ea)return _0x5d82ce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x2c44ea[_0x5d82ce([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x13e1f2=function(_0xc89ca0,_0x38c463){return new window[(_0x5d82ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x155e58=>{if(_0x3cd3b1())return _0x155e58(_0x5d82ce([0x56,0x61,0x6c,0x69,0x64]));_0x9c4c4f(),_0x354d25[_0x5d82ce([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d82ce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x10b6be=!0x1;const _0x515158=uid();function _0xce6f9(_0x4534e4){return!!_0x4534e4&&(typeof _0x4534e4===_0x5d82ce([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4534e4===_0x5d82ce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4534e4[_0x5d82ce([0x74,0x68,0x65,0x6e])]===_0x5d82ce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4534e4[_0x5d82ce([0x63,0x61,0x74,0x63,0x68])]===_0x5d82ce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e32d4(_0x1244ca){_0x13d917(_0x1244ca)[_0x5d82ce([0x74,0x68,0x65,0x6e])](_0x3b63c9=>{if(!_0x3b63c9||_0x3b63c9[_0x5d82ce([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d82ce([0x6f,0x6b]))return _0x5d82ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x582705(_0x39894b(_0x515158+_0x38c463))!=_0x3b63c9[_0x5d82ce([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d82ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d82ce([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d82ce([0x74,0x68,0x65,0x6e])](_0x59a84c=>(_0x56a4fa(),_0x59a84c),()=>{const _0x2e3ded=_0x5ae6b4();return null==_0x2e3ded?(_0x56a4fa(),_0x5d82ce([0x56,0x61,0x6c,0x69,0x64])):_0x5d82ce(_0x155074-_0x2e3ded>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d82ce([0x74,0x68,0x65,0x6e])](_0x155e58)[_0x5d82ce([0x63,0x61,0x74,0x63,0x68])](()=>{_0x155e58(_0x5d82ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x21692a=0x36ee80;function _0x56a4fa(){const _0x5462c7=_0x5d82ce([0x6c,0x6c,0x63,0x74,0x2d])+_0x582705(_0x39894b(_0xc89ca0)),_0x268b6f=_0x3d1369(_0x582705(window[_0x5d82ce([0x4d,0x61,0x74,0x68])][_0x5d82ce([0x63,0x65,0x69,0x6c])](_0x155074/_0x21692a)));window[_0x5d82ce([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d82ce([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5462c7,_0x268b6f);}function _0x5ae6b4(){const _0x405937=_0x5d82ce([0x6c,0x6c,0x63,0x74,0x2d])+_0x582705(_0x39894b(_0xc89ca0)),_0x28a6d7=window[_0x5d82ce([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d82ce([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x405937);return _0x28a6d7?window[_0x5d82ce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d1369(_0x28a6d7),0x10)*_0x21692a:null;}function _0x13d917(_0x35061d){return new window[(_0x5d82ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53e1f3,_0x1fa460)=>{_0x35061d[_0x5d82ce([0x74,0x68,0x65,0x6e])](_0x53e1f3,_0x1fa460),window[_0x5d82ce([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1fa460,0x1d4c0);});}}_0x354d25[_0x5d82ce([0x6f,0x6e])](_0x5d82ce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x584479,_0x5f29a0)=>{if(_0x5f29a0[0x0]!=_0xc89ca0)return _0x155e58(_0x5d82ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5f29a0[0x1]={..._0x5f29a0[0x1],[_0x5d82ce([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x515158};},{[_0x5d82ce([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d82ce([0x68,0x69,0x67,0x68])}),_0x354d25[_0x5d82ce([0x6f,0x6e])](_0x5d82ce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x33f0a6=>{_0xce6f9(_0x33f0a6[_0x5d82ce([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x10b6be=!0x0,_0x2e32d4(_0x33f0a6[_0x5d82ce([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d82ce([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d82ce([0x6c,0x6f,0x77])}),_0x4ff392[_0x5d82ce([0x74,0x68,0x65,0x6e])](()=>{_0x10b6be||_0x155e58(_0x5d82ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3cd3b1(){return _0x354d25[_0x5d82ce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d82ce([0x76,0x69,0x65,0x77])][_0x5d82ce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d82ce([0x61,0x75,0x74,0x6f]);}function _0x9c4c4f(){_0x354d25[_0x5d82ce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d82ce([0x76,0x69,0x65,0x77])][_0x5d82ce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d82ce([0x61,0x75,0x74,0x6f]);}}(_0x2c44ea[_0x5d82ce([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2c44ea[_0x5d82ce([0x6a,0x74,0x69])]));const _0x10b35c=await(async function(){let _0x3d6cbf=!0x0;try{const _0x116bd1=_0x386c94[_0x5d82ce([0x73,0x70,0x6c,0x69,0x74])](_0x5d82ce([0x2e])),[_0x49f957,_0x1e9f1a,_0x196b5e]=_0x116bd1;return _0x32020c(_0x49f957),await _0x59bbec(_0x49f957,_0x1e9f1a,_0x196b5e),_0x3d6cbf;}catch{return!0x1;}function _0x32020c(_0x28df95){const _0x3599a2=_0x2ed6f5(_0x28df95);_0x3599a2&&_0x3599a2[_0x5d82ce([0x61,0x6c,0x67])]==_0x5d82ce([0x45,0x53,0x32,0x35,0x36])||(_0x3d6cbf=!0x1);}async function _0x59bbec(_0x33add2,_0x2412fc,_0x1d9730){const _0x103e31=window[_0x5d82ce([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d82ce([0x66,0x72,0x6f,0x6d])](_0x4cd88f(_0x1d9730),_0x1884c2=>_0x1884c2[_0x5d82ce([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x46eaf5=new window[(_0x5d82ce([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d82ce([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x33add2+_0x5d82ce([0x2e])+_0x2412fc),_0x1dd47c=window[_0x5d82ce([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d82ce([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1dd47c)return;const _0x278f5e=await _0x1dd47c[_0x5d82ce([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d82ce([0x6a,0x77,0x6b]),_0x2fcbcf,{[_0x5d82ce([0x6e,0x61,0x6d,0x65])]:_0x5d82ce([0x45,0x43,0x44,0x53,0x41]),[_0x5d82ce([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d82ce([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d82ce([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1dd47c[_0x5d82ce([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d82ce([0x6e,0x61,0x6d,0x65])]:_0x5d82ce([0x45,0x43,0x44,0x53,0x41]),[_0x5d82ce([0x68,0x61,0x73,0x68])]:{[_0x5d82ce([0x6e,0x61,0x6d,0x65])]:_0x5d82ce([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x278f5e,_0x103e31,_0x46eaf5)||(_0x3d6cbf=!0x1);}}());return _0x10b35c?(function(){const _0x46efcf=_0x2c44ea[_0x5d82ce([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x46efcf)return!0x1;if(_0x46efcf[_0x5d82ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d82ce([0x2a])))return!0x0;if(_0x46efcf[_0x5d82ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d82ce([0x52,0x48])))return!0x0;if(_0x46efcf[_0x5d82ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d82ce([0x52,0x52,0x48]))){if(_0x393972(_0x5d82ce([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5d119e(_0x5d82ce([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5d82ce([0x73,0x74,0x61,0x74,0x65])]==_0x5d82ce([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0x393972(_0x5d82ce([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]))||_0x393972(_0x5d82ce([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 _0x22531b=[_0x5d82ce([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d82ce([0x74,0x72,0x69,0x61,0x6c])][_0x5d82ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c44ea[_0x5d82ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x155074/0x3e8:0x69e96100;return _0x2c44ea[_0x5d82ce([0x65,0x78,0x70])]<_0x22531b;}())?_0x5d82ce([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x1a7b0c=_0x2c44ea[_0x5d82ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a7b0c||0x0==_0x1a7b0c[_0x5d82ce([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5993b3}=new URL(window[_0x5d82ce([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1a7b0c[_0x5d82ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5993b3))return!0x0;const _0x353530=_0x5993b3[_0x5d82ce([0x73,0x70,0x6c,0x69,0x74])](_0x5d82ce([0x2e]));return _0x1a7b0c[_0x5d82ce([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d1972=>_0x2d1972[_0x5d82ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d82ce([0x2a])))[_0x5d82ce([0x6d,0x61,0x70])](_0x427484=>_0x427484[_0x5d82ce([0x73,0x70,0x6c,0x69,0x74])](_0x5d82ce([0x2e])))[_0x5d82ce([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f3827=>_0x4f3827[_0x5d82ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x353530[_0x5d82ce([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d82ce([0x6d,0x61,0x70])](_0x4ba8b7=>Array(_0x353530[_0x5d82ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4ba8b7[_0x5d82ce([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d82ce([0x66,0x69,0x6c,0x6c])](_0x4ba8b7[0x0]===_0x5d82ce([0x2a])?_0x5d82ce([0x2a]):'')[_0x5d82ce([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4ba8b7))[_0x5d82ce([0x73,0x6f,0x6d,0x65])](_0x382f8c=>_0x353530[_0x5d82ce([0x65,0x76,0x65,0x72,0x79])]((_0x342d25,_0x60e596)=>_0x382f8c[_0x60e596]===_0x342d25||_0x382f8c[_0x60e596]===_0x5d82ce([0x2a])));}())?(_0x2c44ea[_0x5d82ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d82ce([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xad12e2=function(_0x3e4c44){const _0xff35ab=new window[(_0x5d82ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f93aa=>setTimeout(_0x5f93aa,0x93ecc)),_0x32d7ef=_0x4ff392[_0x5d82ce([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d82ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15ed9b=>{const _0x31e329=0x7,_0x926e3e=_0x5a72e3[_0x5d82ce([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x290a70(){_0x926e3e[_0x5d82ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x31e329&&_0x15ed9b();}_0x290a70(),_0x926e3e[_0x5d82ce([0x6f,0x6e])](_0x5d82ce([0x61,0x64,0x64]),_0x290a70);})),_0x3a9700=new window[(_0x5d82ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c9bf8=>{function _0x38e13a(){for(const _0x165af4 in window)if(window[_0x5d82ce([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5d82ce([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x165af4))&&window[_0x165af4]==_0x18ca04)return _0x5c9bf8();_0x354d25[_0x5d82ce([0x73,0x74,0x61,0x74,0x65])]!=_0x5d82ce([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5d82ce([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x38e13a,0x1388);}_0x393972(_0x5d82ce([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x38e13a();}),_0x22eb63=[_0xff35ab,_0x32d7ef,_0x3a9700];return window[_0x5d82ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d82ce([0x72,0x61,0x63,0x65])](_0x22eb63)[_0x5d82ce([0x74,0x68,0x65,0x6e])](()=>_0x3e4c44);}(_0x5d82ce([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0xad12e2&&_0x13e1f2)return new window[(_0x5d82ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18c557,_0x30a67b)=>{_0xad12e2[_0x5d82ce([0x74,0x68,0x65,0x6e])](_0x18c557,_0x30a67b),_0x13e1f2[_0x5d82ce([0x74,0x68,0x65,0x6e])](_0x438297=>{_0x438297!=_0x5d82ce([0x56,0x61,0x6c,0x69,0x64])&&_0x18c557(_0x438297);},_0x30a67b);});return _0xad12e2||_0x13e1f2||_0x5d82ce([0x56,0x61,0x6c,0x69,0x64]);}())):_0x5d82ce([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d82ce([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d82ce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5d82ce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x4402cd(){const _0x17e7ba=window[_0x5d82ce([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d82ce([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d82ce([0x6e,0x6f,0x77])]())[_0x5d82ce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d82ce([0x2e]),'');let _0x3e513f=_0x5d82ce([0x76]);for(let _0x57e59f=0x0;_0x57e59f<_0x17e7ba[_0x5d82ce([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57e59f+=0x2){let _0x4eca25=window[_0x5d82ce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17e7ba[_0x5d82ce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57e59f,_0x57e59f+0x2));_0x4eca25>=_0xe1f84e[_0x5d82ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4eca25-=_0xe1f84e[_0x5d82ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3e513f+=_0xe1f84e[_0x4eca25];}return _0x3e513f;}function _0x2ed6f5(_0x2fb1fc){return _0x2fb1fc[_0x5d82ce([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d82ce([0x65,0x79]))?JSON[_0x5d82ce([0x70,0x61,0x72,0x73,0x65])](_0x4cd88f(_0x2fb1fc)):null;}function _0x4cd88f(_0x5c3c06){return window[_0x5d82ce([0x61,0x74,0x6f,0x62])](_0x5c3c06[_0x5d82ce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d82ce([0x2b]))[_0x5d82ce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d82ce([0x2f])));}function _0x39894b(_0x1e6fa9){let _0x1f5c69=0x1505;function _0x2701bc(_0x464e9f){for(let _0xa14574=0x0;_0xa14574<_0x464e9f[_0x5d82ce([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa14574++){const _0x540cd1=_0x464e9f[_0x5d82ce([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xa14574);_0x1f5c69=(_0x1f5c69<<0x5)+_0x1f5c69+_0x540cd1,_0x1f5c69&=_0x1f5c69;}}return function _0x21e142(_0x25f6e4){Array[_0x5d82ce([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x25f6e4)?_0x25f6e4[_0x5d82ce([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x21e142):_0x25f6e4&&typeof _0x25f6e4==_0x5d82ce([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d82ce([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x25f6e4)[_0x5d82ce([0x73,0x6f,0x72,0x74])]()[_0x5d82ce([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e088d,_0x150079])=>{_0x2701bc(_0x1e088d),_0x21e142(_0x150079);}):_0x2701bc(window[_0x5d82ce([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x25f6e4));}(_0x1e6fa9),_0x1f5c69>>>0x0;}function _0x582705(_0x133336){return _0x133336[_0x5d82ce([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d82ce([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d82ce([0x30]));}function _0x3d1369(_0x4033e3){return _0x4033e3[_0x5d82ce([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d82ce([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d82ce([0x6a,0x6f,0x69,0x6e])]('');}function _0x393972(_0x368165){return _0x354d25[_0x5d82ce([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5d82ce([0x68,0x61,0x73])](_0x368165);}function _0x5d119e(_0x396303){return _0x354d25[_0x5d82ce([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5d82ce([0x67,0x65,0x74])](_0x396303);}function _0x433f7c(){}function _0x5d82ce(_0x52699e){return _0x52699e['map'](_0x5a3b6e=>String['fromCharCode'](_0x5a3b6e))['join']('');}!function(_0xc09136){const _0x965680=_0x4402cd();_0x354d25[_0x965680]=_0x5d82ce([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])+_0xc09136,_0xc09136[_0x5d82ce([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5d82ce([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4402cd()]=_0x18ca04),_0xc09136!=_0x5d82ce([0x56,0x61,0x6c,0x69,0x64])&&(async function(){if(await _0x4ff392,_0x393972(_0x5d82ce([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3cba8a=_0x5a72e3[_0x5d82ce([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x51bde5=_0x5a72e3[_0x5d82ce([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])](_0x3cba8a[_0x5d82ce([0x69,0x64])]),_0x58a9a3=_0x5d119e(_0x5d82ce([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x58a9a3[_0x5d82ce([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3cba8a['id'],_0x51bde5?_0x51bde5['id']:null,!0x0),_0x58a9a3[_0x5d82ce([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5d82ce([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x58a9a3[_0x5d82ce([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x58a9a3[_0x5d82ce([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x433f7c,void(_0x58a9a3[_0x5d82ce([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x433f7c);}if(_0x393972(_0x5d82ce([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x464ddc=_0x5d119e(_0x5d82ce([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x464ddc[_0x5d82ce([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5d82ce([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x464ddc[_0x5d82ce([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x464ddc[_0x5d82ce([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x433f7c,_0x464ddc[_0x5d82ce([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x433f7c;}_0x354d25[_0x5d82ce([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d82ce([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x433f7c,_0x354d25[_0x5d82ce([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d82ce([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x433f7c,_0x354d25[_0x5d82ce([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d82ce([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x45902a);}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'](_0x4dc2f8,_0x8ad9fc){if(_0x4dc2f8['diffData']||!_0x8ad9fc)return;const _0x81122=this['editor']['config']['get']('collaboration.channelId'),_0x29109d=await _0x8ad9fc['getRevision']({'channelId':_0x81122,'revisionId':_0x4dc2f8['id']});_0x4dc2f8['diffData']=_0x29109d['diffData'];}['getRevisionDocumentData'](_0x1e46a4){const _0x3df369={};for(const _0x4cb426 in _0x1e46a4['diffData']){if(_0x1e46a4['diffData'][_0x4cb426]['attachChange']&&!_0x1e46a4['diffData'][_0x4cb426]['attachChange']['isAttached'])continue;const _0x5d49cb=this['_removeRevisionMarkers'](JSON['parse'](_0x1e46a4['diffData'][_0x4cb426]['insertions'])),_0x38cc5d=this['editor']['editing']['view']['document'],_0x13e489=new ViewDocumentFragment(_0x38cc5d,_0x5d49cb['map'](_0x8ffc90=>this['_getViewFromDiffObj'](_0x8ffc90,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3df369[_0x4cb426]=this['editor']['data']['processor']['toData'](_0x13e489),this['editor']['data']['processor']['useFillerType']('default');}return _0x3df369;}['getRevisionRootsAttributes'](_0x202132){const _0x256dac={};for(const _0x267313 in _0x202132['diffData'])_0x202132['diffData'][_0x267313]['attachChange']&&!_0x202132['diffData'][_0x267313]['attachChange']['isAttached']||(_0x256dac[_0x267313]=_0x202132['diffData'][_0x267313]['attributesAfter']||{});return _0x256dac;}['_getTypeCharForViewElement'](_0x308873){return this['_viewClassToTypeChar']['get'](_0x308873['constructor']);}['_getViewFromDiffObj'](_0x18d162,_0x97a067){const _0x2a5b1f=this['editor']['editing']['view']['document'];if('string'==typeof _0x18d162)return new ViewText(_0x2a5b1f,_0x18d162);{let _0x9d992b,_0x51812d;_0x51812d='u'==_0x18d162['type']||'r'==_0x18d162['type']?[]:_0x18d162['children']['map'](_0x40b59=>this['_getViewFromDiffObj'](_0x40b59,_0x97a067));const _0x162a61=this['_typeCharToViewClass']['get'](_0x18d162['type'])||ViewElement,_0x161a20=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x9d992b=new _0x162a61(_0x2a5b1f,_0x18d162['name'],_0x18d162['attributes'],_0x51812d),'u'==_0x18d162['type']&&_0x18d162['children'][0x0]){const _0x130241=_0x18d162['children'][0x0];if(_0x9d992b['render']=function(_0x56db0b){const _0x8c8a39=_0x56db0b['createElement']('div');return _0x8c8a39['innerHTML']=_0x130241,_0x8c8a39['childNodes'][0x0];},_0x97a067){const _0x226fc4=new ViewDocumentFragment(_0x2a5b1f);_0x226fc4['_appendChild'](_0x9d992b);const _0x3639d6=Array['from'](_0x161a20['viewChildrenToDom'](_0x226fc4,{'bind':!0x1})),_0x3aaf9f=_0x161a20['domDocument']['createElement']('div');_0x3aaf9f['append'](..._0x3639d6),_0x9d992b=Array['from'](_0x161a20['domChildrenToView'](_0x3aaf9f))[0x0];}}else{if('r'==_0x18d162['type']&&_0x18d162['children'][0x0]){const _0x4ae0af=_0x18d162['children'][0x0];if(_0x9d992b['render']=function(_0x345570){_0x345570['innerHTML']=_0x4ae0af;},_0x97a067){const _0x409315=new ViewDocumentFragment(_0x2a5b1f);_0x409315['_appendChild'](_0x9d992b);const _0x5c077c=Array['from'](_0x161a20['viewChildrenToDom'](_0x409315,{'bind':!0x1})),_0xbd3986=_0x161a20['domDocument']['createElement']('div');_0xbd3986['append'](..._0x5c077c);const _0x347fa5=Array['from'](_0x161a20['domChildrenToView'](_0xbd3986));_0x347fa5['length']>0x1?_0x9d992b['_appendChild'](_0x347fa5):_0x9d992b=_0x347fa5[0x0];}}}if(_0x18d162['customProperties']){for(const [_0x7a3445,_0x2c4cf9]of _0x18d162['customProperties'])_0x9d992b['_setCustomProperty'](_0x7a3445,_0x2c4cf9);}const _0x4701e6=void 0x0===_0x18d162['fillerOffset']?null:_0x18d162['fillerOffset'];return null!==_0x4701e6&&(_0x9d992b['getFillerOffset']=()=>_0x4701e6),_0x9d992b;}}['_makeModelFromViewString'](_0x360825){const _0x13723c=JSON['parse'](_0x360825),_0xb7a54=this['editor']['editing']['view']['document'],_0x2feb78=new ViewDocumentFragment(_0xb7a54,_0x13723c['map'](_0x18d2f2=>this['_getViewFromDiffObj'](_0x18d2f2,!0x0)));return this['editor']['data']['toModel'](_0x2feb78);}['_removeRevisionMarkers'](_0x10602f){return(_0x10602f=_0x10602f['filter'](_0x201f81=>!_0x201f81['name']||'revision-start'!==_0x201f81['name']&&'revision-end'!==_0x201f81['name']))['forEach'](_0x2a69b2=>{'string'!=typeof _0x2a69b2&&(_0x2a69b2['children']=this['_removeRevisionMarkers'](_0x2a69b2['children']),_0x2a69b2['attributes']=_0x2a69b2['attributes']['filter'](_0x5f287a=>!_0x5f287a[0x0]['startsWith']('data-revision-')));}),_0x10602f;}}function getTranslation$5(_0x36a726,_0x1ac988,_0x12622c){const t=_0x36a726['t'];switch(_0x1ac988){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'},_0x12622c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x12622c);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(_0x433fa9){super(_0x433fa9),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 _0x5e1189=uid();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5e1189},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 _0x20018a=this['repository']['getRevision'](0x0),_0x45b896=_0x20018a&&null===_0x20018a['creator']?_0x20018a:null;if(this['_continueCurrentRevision']=!!_0x45b896&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x146713=this['_source']['getCurrentRevisionId'](),_0x125767=this['repository']['getRevision'](_0x146713);if(_0x125767)this['_startingVersion']=_0x125767['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2e57e0=this['_source']['history']['_operations']['find'](_0x214352=>!_0x214352['_isInit']),_0x20508=_0x2e57e0?_0x2e57e0['baseVersion']:this['_source']['history']['version'];_0x20018a?(_0x20018a['toVersion']<_0x20508&&_0x20018a['_update']({'toVersion':_0x20508}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x45b896['id'],this['_startingVersion']=_0x45b896['fromVersion']):(this['_startingVersion']=_0x20018a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x20508,this['_continueCurrentRevision']=!0x1);}}else _0x45b896&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x45b896['toVersion'],this['editor']['model']['document']['history']['version']),_0x45b896['fromVersion']===_0x45b896['toVersion']?(0x0!==_0x45b896['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x45b896['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x45b896['id'],this['_startingVersion']=_0x45b896['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',_0x3e9098=>!_0x3e9098),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xc29f44=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x12327a;for(const _0x5743da in _0xc29f44){const _0x828872=_0x5743da,_0x431bdb=_0xc29f44[_0x828872];if('revisionHistoryLicenseKeyValid'==_0x431bdb||'revisionHistoryLicenseKeyInvalid'==_0x431bdb||'revisionHistoryLicenseKeyExpired'==_0x431bdb||'revisionHistoryLicenseKeyDomainLimit'==_0x431bdb||'revisionHistoryLicenseKeyNotAllowed'==_0x431bdb||'revisionHistoryLicenseKeyEvaluationLimit'==_0x431bdb||'revisionHistoryLicenseKeyUsageLimit'==_0x431bdb){delete _0xc29f44[_0x828872],_0x12327a=_0x431bdb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x12327a&&_0xc29f44['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x12327a&&_0xc29f44['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x12327a&&_0xc29f44['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x12327a&&_0xc29f44['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x12327a&&_0xc29f44['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x12327a&&_0xc29f44['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2a6b57=this['repository']['getRevision'](0x0),_0x433e4e=await this['getRevisionDocumentData'](_0x2a6b57),_0x12dd8=await this['getRevisionRootsAttributes'](_0x2a6b57);this['_replaceEditorDataWithRevisionData'](_0x433e4e,_0x12dd8);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4e2424){this['_source']=_0x4e2424;}async['update'](){const _0x14d9d4=await this['_source']['getLatestVersion']();if(_0x14d9d4>this['currentRevision']['toVersion']){await this['_loadState']();const _0x44f923=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x14d9d4});_0x44f923['authors']=_0x44f923['authorsIds']['map'](_0x315d39=>this['editor']['plugins']['get']('Users')['getUser'](_0x315d39)),this['currentRevision']['_update'](_0x44f923);}}async['saveRevision'](_0x55a681={},_0x3e2e6d=null){const _0xcb61e0=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3e2e6d>this['currentRevision']['toVersion']&&(_0x3e2e6d=null),null===_0x3e2e6d&&(_0x3e2e6d=await this['_source']['getLatestVersion']());const _0x8c4d6d=this['_getFromVersion'](_0x3e2e6d),_0x458402=this['buildRevisionData']({'from':_0x8c4d6d,'to':_0x3e2e6d});if(this['currentRevision']['toVersion']<_0x3e2e6d){const _0x131a78=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3e2e6d,'to':_0x3e2e6d});_0x131a78['authors']=[],_0x131a78['authorsIds']=[],_0x131a78['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x131a78,!0x0),delete _0x131a78['authors'],_0xcb61e0['push'](_0x131a78);}_0x55a681['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x55a681['name']=_0x55a681['name']||null,_0x55a681['id']=_0x55a681['id']||uid(),_0x55a681={..._0x55a681,..._0x458402};const _0x7afbb4=this['addRevisionData'](_0x55a681);_0xcb61e0['push'](_0x55a681);const _0x28e4eb=this['repository']['getIndex'](_0x7afbb4);if(0x0!==_0x28e4eb){const _0x3deb48=this['repository']['getRevision'](_0x28e4eb-0x1);if(_0x3deb48['fromVersion']!==_0x3e2e6d){const _0xfd70c6=this['_revisionDataBuilder']['getData'](_0x3e2e6d,_0x3deb48['toVersion']),_0x16a626={'id':_0x3deb48['id'],'diffData':_0xfd70c6['diffData'],'authorsIds':_0xfd70c6['authorsIds'],'authors':_0xfd70c6['authorsIds']['map'](_0x520002=>this['editor']['plugins']['get']('Users')['getUser'](_0x520002)),'fromVersion':_0x3e2e6d};_0x3deb48===this['currentRevision']&&(_0x16a626['createdAt']=new Date(_0x55a681['createdAt']['getTime']()+0xa)),_0x3deb48['_update'](_0x16a626,!0x0),delete _0x16a626['authors'],_0xcb61e0['push'](_0x16a626);}}if(this['adapter']){for(const _0x4e4704 of _0xcb61e0)this['_bufferUpdate'](_0x4e4704['id'],_0x4e4704,!0x0);this['sendBufferedUpdates']();}return _0x7afbb4;}['addRevisionData'](_0x570e3b){const _0x1a8a8b=this['repository']['createRevision'](_0x570e3b);return this['adapter']&&_0x1a8a8b['on']('_update',(_0x5151fd,_0x4a98e9,_0x47f70a)=>{_0x47f70a||(this['_bufferUpdate'](_0x4a98e9['id'],_0x4a98e9,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1a8a8b,this['_findInsertionIndex'](_0x1a8a8b)),_0x1a8a8b;}async['getRevisionDocumentData'](_0x2cb6c5){return await this['_utils']['loadRevisionData'](_0x2cb6c5,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2cb6c5);}async['getRevisionRootsAttributes'](_0x40e5f7){return await this['_utils']['loadRevisionData'](_0x40e5f7,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x40e5f7);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4082ed=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2c780c=0x0;_0x2c780c<_0x4082ed['length'];_0x2c780c++){const _0x212690=_0x4082ed[_0x2c780c];let _0x18b680=!0x1;for(const _0x5bc2d7 of Object['keys'](_0x212690))void 0x0===_0x212690[_0x5bc2d7]?delete _0x212690[_0x5bc2d7]:'id'!==_0x5bc2d7&&(_0x18b680=!0x0);_0x18b680||(_0x4082ed[_0x2c780c]=null);}if(_0x4082ed=_0x4082ed['filter'](_0x4d7594=>null!==_0x4d7594),!_0x4082ed['length'])return;for(let _0x3414a4=0x0;_0x3414a4<_0x4082ed['length'];_0x3414a4++){const _0x15e9a1=_0x4082ed[_0x3414a4];void 0x0!==_0x15e9a1['fromVersion']&&void 0x0===_0x15e9a1['toVersion']&&(_0x15e9a1['toVersion']=this['repository']['getRevision'](_0x15e9a1['id'])['toVersion']),void 0x0!==_0x15e9a1['toVersion']&&void 0x0===_0x15e9a1['fromVersion']&&(_0x15e9a1['fromVersion']=this['repository']['getRevision'](_0x15e9a1['id'])['fromVersion']);}const _0x145940=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4082ed,_0x145940)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5cf680=>{if(_0x5cf680){for(const _0x3bd2b2 of _0x5cf680)this['setRevisionData']({'id':_0x3bd2b2['id'],'createdAt':_0x3bd2b2['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x5154c3=null,from:_0x4e04d3=null,to:_0x1427e3=null}){_0x4e04d3=null!==_0x4e04d3?_0x4e04d3:_0x5154c3['fromVersion'],_0x1427e3=null!==_0x1427e3?_0x1427e3:_0x5154c3['toVersion'];const _0x4a4674=this['_revisionDataBuilder']['getData'](_0x4e04d3,_0x1427e3),_0x1822c3={'diffData':_0x4a4674['diffData'],'authorsIds':_0x4a4674['authorsIds'],'fromVersion':_0x4e04d3,'toVersion':_0x1427e3};if(!_0x5154c3||_0x1427e3!==_0x5154c3['toVersion']){const _0x57b2d5=_0x1427e3-0x1,_0x58b4ac=this['_source']['history']['getOperation'](_0x57b2d5);_0x1822c3['createdAt']=_0x58b4ac&&_0x58b4ac['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4e04d3===this['_loadedStateData']['fromVersion']){for(const _0x533686 of this['_loadedStateData']['authors'])_0x1822c3['authorsIds']['includes'](_0x533686['id'])||_0x1822c3['authorsIds']['push'](_0x533686['id']);}return _0x1822c3;}['_bufferUpdate'](_0x77dcba,_0x1056a2,_0x22f8dc){if(this['_bufferedUpdates']['has'](_0x77dcba)){const _0x1add72=this['_bufferedUpdates']['get'](_0x77dcba);_0x1056a2=_0x22f8dc?{..._0x1add72,..._0x1056a2}:{..._0x1056a2,..._0x1add72};}this['_bufferedUpdates']['set'](_0x77dcba,_0x1056a2);}['setRevisionData'](_0x30b413){const _0x2ba0de=this['repository']['getRevision'](_0x30b413['id']);if(_0x30b413['createdAt']&&(_0x30b413['createdAt']=new Date(_0x30b413['createdAt'])),_0x30b413['authorsIds']){const _0x1639c1=this['editor']['plugins']['get']('Users');_0x30b413['authors']=_0x30b413['authorsIds']['map'](_0x4994f0=>_0x1639c1['getUser'](_0x4994f0));}_0x2ba0de['_update'](_0x30b413,!0x0);}['_createInitialRevision'](_0x25f08b){const _0xe78f55=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xe78f55)this['_initialRevisionId']=_0xe78f55['id'];else{const _0x88ebc6=!this['editor']['model']['document']['roots']['find'](_0x3980bf=>this['editor']['model']['hasContent'](_0x3980bf)),_0x41fccc=this['editor']['plugins']['get']('Users')['me']['id'],_0x545e33=getTranslation$5(this['editor']['locale'],_0x88ebc6?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x25f08b,'to':_0x25f08b,'id':this['_initialRevisionId'],'name':_0x545e33,'creatorId':_0x41fccc});}}['_createCurrentRevision'](_0x1515a7){const _0x580281=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x580281),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1515a7,'to':_0x1515a7,'id':_0x580281,'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'](_0x468dbf,_0x46ff92){let _0x65d387=this['editor']['config']['get']('initialData'),_0x217037=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x65d387){_0x65d387={};for(const _0x498922 of this['editor']['model']['document']['getRootNames']())_0x65d387[_0x498922]='';}if('string'==typeof _0x65d387&&(_0x65d387={'main':_0x65d387}),void 0x0===_0x217037){_0x217037={};for(const _0x4ecf12 of this['editor']['model']['document']['getRootNames']())_0x217037[_0x4ecf12]={};}let _0x3f6cb4=!0x1;const _0x109587=Object['keys'](_0x65d387),_0x12f2b5=Object['keys'](_0x468dbf);for(const _0x2aa011 of _0x109587){if(_0x65d387[_0x2aa011]!==_0x468dbf[_0x2aa011]&&''!==_0x65d387[_0x2aa011]['trim']()){_0x3f6cb4=!0x0;break;}if(!isEqual(_0x217037[_0x2aa011],_0x46ff92[_0x2aa011])&&Object['keys'](_0x217037[_0x2aa011])['length']>0x0){_0x3f6cb4=!0x0;break;}}_0x3f6cb4||(_0x3f6cb4=_0x12f2b5['some'](_0x5e1c2b=>!this['editor']['model']['document']['getRoot'](_0x5e1c2b))),_0x3f6cb4&&logWarning('editor-initial-data-replaced-with-revision-data',{'editorData':_0x65d387,'editorRootsAttributes':_0x217037,'revisionData':_0x468dbf,'revisionRootsAttributes':_0x46ff92}),this['editor']['config']['set']('initialData',_0x468dbf),this['editor']['config']['set']('rootsAttributes',_0x46ff92);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x275217=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x275217['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'](_0x19bde8){const _0x4c5af4=this['repository']['getRevisions']();_0x4c5af4['reverse']();let _0xe544ab=0x0;for(;_0xe544ab<_0x4c5af4['length'];){const _0xc5fb84=_0x4c5af4[_0xe544ab];if(_0xc5fb84===this['currentRevision']){_0xe544ab++;continue;}if(_0xc5fb84['id']===this['_initialRevisionId'])break;const _0x354a8a=_0x19bde8['toVersion']-_0xc5fb84['toVersion']||_0x19bde8['fromVersion']-_0xc5fb84['fromVersion'];if(_0x354a8a>0x0)break;if(_0x354a8a<0x0)_0xe544ab++;else{if(!_0x19bde8['creator']&&_0xc5fb84['creator'])break;if(_0xc5fb84['creator']||!_0x19bde8['creator']){if(_0x19bde8['createdAt']>_0xc5fb84['createdAt'])break;_0xe544ab++;}else _0xe544ab++;}}return _0xe544ab;}['_getFromVersion'](_0x50b7ee){const _0x4a6320=this['repository']['getRevisions']();_0x4a6320['reverse'](),_0x4a6320['shift']();const _0x50c85a=_0x4a6320['find'](_0x2000b1=>_0x2000b1['toVersion']<=_0x50b7ee)['toVersion'];return _0x50c85a<this['_startingVersion']?this['_startingVersion']:_0x50c85a;}['_makeRevision']({name:_0x3362d9,from:_0x13b6df,to:_0x1dded8,creatorId:_0x5e9d3c,id:_0x57d62b}){const _0x596dac=this['buildRevisionData']({'from':_0x13b6df,'to':_0x1dded8});_0x596dac['name']=_0x3362d9,_0x596dac['creatorId']=_0x5e9d3c,_0x596dac['id']=_0x57d62b;const _0x26c68f=this['addRevisionData'](_0x596dac);return this['adapter']&&this['_bufferUpdate'](_0x596dac['id'],_0x596dac,!0x0),_0x26c68f;}['_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(_0x582849){this['editor']=_0x582849,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'](_0x3dceb7){this['source']=_0x3dceb7;const _0x58691c=new Map(),_0x3b3502=new Map(),_0x53a77c=this['editor']['model']['document']['roots']['map'](_0x453afc=>_0x453afc['rootName']);for(const _0x52210e of _0x53a77c){const _0x5b9849=this['editor']['model']['document']['getRoot'](_0x52210e),_0x509289=_cloneRoot(_0x5b9849);_0x58691c['set'](_0x52210e,_0x509289),_0x3b3502['set'](_0x52210e,Object['fromEntries'](_0x5b9849['getAttributes']()));}const _0x4a5776=Array['from'](this['editor']['model']['markers'])['map'](_0x5e10ad=>[_0x5e10ad['name'],_0x5e10ad['getRange']()]),_0x1bdb42=this['source']['version'];this['_saveMetaData'](_0x1bdb42,_0x58691c,_0x4a5776,_0x3b3502),this['_startingRevisionId']=this['_revisionId'];const _0x129b55=new Map(),_0x2457ef=new Map();for(const _0x59a19e of _0x53a77c){const _0x459a1e=_emptyRoot(_0x59a19e);_0x129b55['set'](_0x59a19e,_0x459a1e),_0x2457ef['set'](_0x59a19e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x129b55,[],_0x2457ef);}['getData'](_0x58faeb,_0x4ffdf6){if(this['_lastFrom']===_0x58faeb&&this['_lastTo']<=_0x4ffdf6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4ffdf6,!0x0);else{if(!this['_savedMetaData']['has'](_0x58faeb)){const _0x2b68e1=this['_getPreviousFrom'](_0x58faeb);this['_calculateMetaData'](_0x2b68e1,_0x58faeb,!0x1);}this['_calculateMetaData'](_0x58faeb,_0x4ffdf6,!0x0);}return this['_lastFrom']=_0x58faeb,this['_lastTo']=_0x4ffdf6,this['_getState']();}['loadState'](_0x18a866){if(!this['_savedMetaData']['has'](_0x18a866['fromVersion'])){const _0x18a341=this['_getPreviousFrom'](_0x18a866['fromVersion']);this['_calculateMetaData'](_0x18a341,_0x18a866['fromVersion'],!0x1);}this['_calculateMetaData'](_0x18a866['fromVersion'],_0x18a866['toVersion'],!0x1);const _0x231c17=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x18a866['fromVersion'],this['_lastTo']=_0x18a866['toVersion'];for(const _0xf92411 in _0x18a866['diffData']){const _0x1ca533=_0x18a866['diffData'][_0xf92411]['attachChange'],_0x2ef3b7=cloneDeep(_0x18a866['diffData'][_0xf92411]['attributesBefore'])||{},_0x478277=_0x231c17['_makeModelFromViewString'](_0x18a866['diffData'][_0xf92411]['deletions']);_0x478277['rootName']=_0xf92411,_0x478277['_isAttached']=!_0x1ca533||!_0x1ca533['isAttached'],_0x478277['isAttached']=()=>_0x478277['_isAttached'],this['_baseRoots']['set'](_0xf92411,_0x478277),this['_baseRootsAttributes']['set'](_0xf92411,_0x2ef3b7),_0x1ca533&&this['_touchedRoots']['set'](_0xf92411,_0x1ca533);const _0x1a5904=this['_makeIdsRoot'](_0x478277);this['_baseIdsRoots']['set'](_0xf92411,_0x1a5904);for(const [_0x32e896,_0x5d0ffb]of _0x478277['markers']){if(!_0x32e896['startsWith']('revision:'))continue;const _0x297814=_0x32e896['split'](':')[0x2];for(const _0x14aacb of _0x5d0ffb['getWalker']({'singleCharacters':!0x0})){const _0x700fdc=this['_getVidAttributeName'](_0x14aacb),_0x382289='elementEnd'==_0x14aacb['type']?_0x14aacb['previousPosition']['path']['slice'](0x0,-0x1):_0x14aacb['previousPosition']['path'],_0x139912=_0x1a5904['getNodeByPath'](_0x382289)['getAttribute'](_0x700fdc);this['_touched']['set'](_0x139912,{'userId':_0x297814});}_0x478277['markers']['delete'](_0x32e896);}}this['_startingRevisionId']=this['_revisionId'];const _0x502828=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x37dba8=>!this['_touched']['has'](_0x37dba8));let _0x3afce9=0x0;const _0xbf83c2=new Map();for(const _0x23ff7b in _0x18a866['diffData']){const _0x55341e=_0x18a866['diffData'][_0x23ff7b]['attachChange'],_0x72bdea=cloneDeep(_0x18a866['diffData'][_0x23ff7b]['attributesAfter'])||{},_0x2c391d=_0x231c17['_makeModelFromViewString'](_0x18a866['diffData'][_0x23ff7b]['insertions']);_0x2c391d['rootName']=_0x23ff7b,_0x2c391d['_isAttached']=!_0x55341e||_0x55341e['isAttached'],_0x2c391d['isAttached']=()=>_0x2c391d['_isAttached'],this['_diffRoots']['set'](_0x23ff7b,_0x2c391d),this['_diffRootsAttributes']['set'](_0x23ff7b,_0x72bdea);const _0xff75f5=this['_makeIdsRoot'](_0x2c391d,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x23ff7b,_0xff75f5),_0xbf83c2['set'](_0x23ff7b,_0x2c391d['isAttached']()?_0x72bdea:{});for(const [_0x54277a,_0x324707]of _0x2c391d['markers']){if(!_0x54277a['startsWith']('revision:'))continue;const _0x4eb0f1=_0x54277a['split'](':')[0x2];for(const _0x4ede1e of _0x324707['getWalker']({'singleCharacters':!0x0})){const _0x53645e=this['_getVidAttributeName'](_0x4ede1e),_0x1e5196=this['_revisionId']++,_0x3db98b='elementEnd'==_0x4ede1e['type']?_0x4ede1e['previousPosition']['path']['slice'](0x0,-0x1):_0x4ede1e['previousPosition']['path'];_0xff75f5['getNodeByPath'](_0x3db98b)['_setAttribute'](_0x53645e,_0x1e5196),this['_touched']['set'](_0x1e5196,{'userId':_0x4eb0f1});}_0x2c391d['markers']['delete'](_0x54277a);}for(const _0x47620e of this['editor']['model']['createRangeIn'](_0x2c391d)['getWalker']({'singleCharacters':!0x0})){const _0x3547b9=this['_getVidAttributeName'](_0x47620e),_0x2911c1='elementEnd'==_0x47620e['type']?_0x47620e['previousPosition']['path']['slice'](0x0,-0x1):_0x47620e['previousPosition']['path'],_0x19d987=_0xff75f5['getNodeByPath'](_0x2911c1);_0x19d987['getAttribute'](_0x3547b9)>0x0||_0x19d987['_setAttribute'](_0x3547b9,_0x502828[_0x3afce9++]);}for(const [_0x3fbc39,_0x4ef21a]of _0x2c391d['markers'])_0x3fbc39['startsWith']('revision:')||this['_markers']['set'](_0x3fbc39,_0x4ef21a);}const {roots:_0xfc80e6}=this['_savedMetaData']['get'](_0x18a866['fromVersion']),{roots:_0x57ef02}=this['_savedMetaData']['get'](_0x18a866['toVersion']),_0x5b2d5e=_cloneRoot(_0xfc80e6['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x5b2d5e),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5b2d5e,Number['NEGATIVE_INFINITY']));const _0x13fda6=_cloneRoot(_0x57ef02['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x13fda6),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x13fda6));const _0x535623=Array['from'](this['_diffRoots'])['map'](([_0x5a9cc1,_0x24eff6])=>[_0x5a9cc1,_cloneRoot(_0x24eff6)]);this['_saveMetaData'](this['_lastTo'],_0x535623,this['_markers'],_0xbf83c2);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5352eb,_0xbb9b3e,_0x4c89a2,_0x28aac2){const _0x44aed0=new Map(_0xbb9b3e),_0x194932=new Map(cloneDeep(_0x28aac2)),_0x43960a=new Map();for(const [_0x4955c5,_0x40071c]of _0x4c89a2)_0x43960a['set'](_0x4955c5,{'start':_0x40071c['start']['clone'](),'end':_0x40071c['end']['clone'](),'rootName':_0x40071c['root']['rootName']});this['_savedMetaData']['set'](_0x5352eb,{'roots':_0x44aed0,'markers':_0x43960a,'rootsAttributes':_0x194932});}['_removeMetaData'](_0x35e4cb){this['_savedMetaData']['delete'](_0x35e4cb);}['_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'](_0x2f6fc6,_0x368d9b=null){let _0x24cd94=null;_0x2f6fc6['is']('documentFragment')||(_0x24cd94=new ModelElement(_0x2f6fc6['name'],{'vid_start':null===_0x368d9b?this['_revisionId']++:_0x368d9b++}));const _0x10a342=[];for(const _0x327a32 of _0x2f6fc6['getChildren']())if(_0x327a32['is']('element')){_0x10a342['push'](this['_makeIdsRoot'](_0x327a32,_0x368d9b));const _0x199c7b=_0x10a342[_0x10a342['length']-0x1];null!==_0x368d9b&&(_0x368d9b=_0x199c7b['is']('element','$text')?_0x199c7b['getAttribute']('vid')+0x1:_0x199c7b['getAttribute']('vid_end')+0x1);}else{for(let _0x3ce6df=0x0;_0x3ce6df<_0x327a32['offsetSize'];_0x3ce6df++)_0x10a342['push'](new ModelElement('$text',{'vid':null===_0x368d9b?this['_revisionId']++:_0x368d9b++}));}if(_0x2f6fc6['is']('documentFragment')){const _0x1127b9=_emptyRoot(_0x2f6fc6['rootName']);return _0x1127b9['_insertChild'](0x0,_0x10a342),_0x1127b9;}return _0x24cd94['_setAttribute']('vid_end',null===_0x368d9b?this['_revisionId']++:_0x368d9b++),_0x24cd94['_insertChild'](0x0,_0x10a342),_0x24cd94;}['_calculateMetaData'](_0x3b510b,_0xdd6ed2,_0x70c6fd){this['_reset']();const {roots:_0x392777,markers:_0x2a352e,rootsAttributes:_0x2231a0}=this['_savedMetaData']['get'](_0x3b510b);this['_baseRoots']=new Map(_0x392777),this['_baseRootsAttributes']=new Map(cloneDeep(_0x2231a0));for(const [_0x30abb3,_0x5cd302]of this['_baseRoots'])if('$graveyard'!==_0x30abb3&&(this['_diffRoots']['set'](_0x30abb3,_cloneRoot(_0x5cd302)),this['_diffRootsAttributes']=new Map(cloneDeep(_0x2231a0)),_0x70c6fd)){const _0x56bdc1=this['_revisionId'];this['_idsRoots']['set'](_0x30abb3,this['_makeIdsRoot'](_0x5cd302)),this['_baseIdsRoots']['set'](_0x30abb3,this['_makeIdsRoot'](_0x5cd302,_0x56bdc1));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',_cloneRoot(this['_baseRoots']['get']('$graveyard'))),_0x70c6fd&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1f52b3,_0x55f6b6]of _0x2a352e){const _0x3e6644=this['_baseRoots']['get'](_0x55f6b6['rootName']),_0xe427e0=this['_diffRoots']['get'](_0x55f6b6['rootName']),_0x182667=new ModelRange(this['_fixPosition'](_0x55f6b6['start'],_0x3e6644),this['_fixPosition'](_0x55f6b6['end'],_0x3e6644)),_0x315d00=this['_fixRange'](_0x182667,_0xe427e0);_0x3e6644['markers']['set'](_0x1f52b3,_0x182667),this['_markers']['set'](_0x1f52b3,_0x315d00);}this['_applyOperations'](_0x3b510b,_0xdd6ed2,_0x70c6fd);}['_applyOperations'](_0x1e3e93,_0x2c0e3f,_0x371f8a){for(const _0x5ba12b of this['source']['getOperations'](_0x1e3e93,_0x2c0e3f))this['_handleOperation'](_0x5ba12b,_0x371f8a);for(const _0x10c709 of this['_diffRoots']['values']())_0x10c709['markers']['clear']();for(const [_0x44fca3,_0x724ba1]of this['_markers']){this['_diffRoots']['get'](_0x724ba1['root']['rootName'])['markers']['set'](_0x44fca3,_0x724ba1['clone']());}const _0x1a53fa=new Map(),_0x5497d7=new Map();for(const [_0x63efb3,_0x3e65b2]of this['_diffRoots'])_0x1a53fa['set'](_0x63efb3,_cloneRoot(_0x3e65b2)),_0x5497d7['set'](_0x63efb3,this['_diffRootsAttributes']['get'](_0x63efb3));this['_saveMetaData'](_0x2c0e3f,_0x1a53fa,this['_markers'],_0x5497d7);}['_getPreviousFrom'](_0x2d1e8f){const _0x5e74b7=Array['from'](this['_savedMetaData']['keys']());_0x5e74b7['sort']((_0x39c3e0,_0x221786)=>_0x39c3e0-_0x221786),_0x5e74b7['reverse']();for(const _0x5cb93c of _0x5e74b7)if(_0x5cb93c<_0x2d1e8f)return _0x5cb93c;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4c453d,_0x578520){const _0x2cf087=Array['from'](_0x578520['markers'])['map'](([_0x4fd9f3,_0x4cd5ec])=>[_0x4fd9f3,this['_fixRange'](_0x4cd5ec,_0x4c453d)]);_0x4c453d['markers']=new Map(_0x2cf087);}['_transformMarkers'](_0x3349d9){for(const _0x590f08 of this['_markers']['values']()){const _0x1a5750=_0x590f08['getTransformedByOperation'](_0x3349d9),_0xc0fbdc=ModelRange['_createFromRanges'](_0x1a5750);_0x590f08['start']=_0xc0fbdc['start'],_0x590f08['end']=_0xc0fbdc['end'];}}['_handleOperation'](_0x2ba653,_0x4f0099){if('addRoot'!=_0x2ba653['type']&&'detachRoot'!=_0x2ba653['type']){if('insert'==_0x2ba653['type']){const _0x5b2241=_0x2ba653['position']['root']['rootName'];this['_diffRoots']['has'](_0x5b2241)||(this['_diffRoots']['set'](_0x5b2241,_emptyRoot(_0x5b2241,!0x0)),this['_diffRootsAttributes']['set'](_0x5b2241,{}),_0x4f0099&&this['_idsRoots']['set'](_0x5b2241,_emptyRoot(_0x5b2241,!0x0)));}else{if('addRootAttribute'==_0x2ba653['type']||'removeRootAttribute'==_0x2ba653['type']||'changeRootAttribute'==_0x2ba653['type'])return void this['_handleRootAttributeOperation'](_0x2ba653);'marker'==_0x2ba653['type']&&this['_handleMarkerOperation'](_0x2ba653);}if('marker'!==_0x2ba653['type']){const _0x2b9925=this['_cloneOperation'](_0x2ba653,this['_diffRoots']);_0x2b9925['_execute'](),this['_transformMarkers'](_0x2b9925);}if(_0x4f0099)switch(_0x2ba653['type']){case'insert':this['_handleInsertOperation'](_0x2ba653);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2ba653);break;case'merge':this['_handleMergeOperation'](_0x2ba653);break;case'split':this['_handleSplitOperation'](_0x2ba653);}}else this['_handleRootOperation'](_0x2ba653,_0x4f0099);}['_cloneOperation'](_0x72af54,_0x2b136b){const _0x457b44=_0x72af54['clone']();return _0x457b44['_authorId']=_0x72af54['_authorId'],this['_fixOperation'](_0x457b44,_0x2b136b),_0x457b44;}['_getBaseVids'](_0x2ca549){return _0x2ca549['map'](_0x5333d8=>{const _0x182767=this['_getVidAttributeName'](_0x5333d8);return Number(_0x5333d8['item']['getAttribute'](_0x182767));});}['_generateTape'](_0x5d6f8e,_0x277ae0){if(_0x5d6f8e['is']('element','$text'))_0x277ae0['push']({'item':_0x5d6f8e,'type':'text'});else{_0x5d6f8e['is']('element')&&_0x277ae0['push']({'item':_0x5d6f8e,'type':'elementStart'});for(const _0x5dd551 of _0x5d6f8e['getChildren']())this['_generateTape'](_0x5dd551,_0x277ae0);_0x5d6f8e['is']('element')&&_0x277ae0['push']({'item':_0x5d6f8e,'type':'elementEnd'});}return _0x277ae0;}['_getState'](){const _0x309999=new Map(this['_touched']),_0x453924=new Map(_0x309999),_0x3ff407=new Map(),_0x37b901={'insertions':{},'deletions':{}},_0x3f85cf={'insertions':{},'deletions':{}},_0x534bae=new Map(),_0x52fe0d=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x52fe0d['delete']('$graveyard');for(const _0x210579 of _0x52fe0d){const _0x8f1cc0=this['_diffRoots']['get'](_0x210579)||_emptyRoot(_0x210579,!0x1),_0xd17f56=this['_baseRoots']['get'](_0x210579)||_emptyRoot(_0x210579,!0x1);_0x8f1cc0['isAttached']()||_0xd17f56['isAttached']()?(_0x37b901['insertions'][_0x210579]=_cloneRoot(_0x8f1cc0),_0x37b901['deletions'][_0x210579]=_cloneRoot(_0xd17f56),this['_copyMarkers'](_0x37b901['deletions'][_0x210579],_0xd17f56),this['_copyMarkers'](_0x37b901['insertions'][_0x210579],_0x8f1cc0),_0x3f85cf['insertions'][_0x210579]=this['_generateTape'](this['_idsRoots']['get'](_0x210579),[]),_0x3f85cf['deletions'][_0x210579]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x210579)||_emptyRoot(_0x210579,!0x1),[])):_0x52fe0d['delete'](_0x210579);}for(const _0x46ad04 of _0x52fe0d){const _0x34a75d=_0x3f85cf['insertions'][_0x46ad04];for(const _0x26ffea of _0x34a75d){const _0x477dc7=this['_getVidAttributeName'](_0x26ffea),_0x40567b=_0x26ffea['item']['getAttribute'](_0x477dc7);_0x453924['delete'](_0x40567b),_0x40567b>=this['_startingRevisionId']&&_0x3ff407['set'](_0x40567b,_0x309999['get'](_0x40567b));}}for(const _0x14f17e of _0x52fe0d){const _0x52e942=_0x3f85cf['insertions'][_0x14f17e],_0x505088=this['_getBaseVids'](_0x3f85cf['deletions'][_0x14f17e]);let _0x335c7c=0x0;for(const _0x237734 of _0x52e942){const _0x36590c=this['_getVidAttributeName'](_0x237734),_0x21dd45=_0x237734['item']['getAttribute'](_0x36590c);if(!_0x3ff407['has'](_0x21dd45)&&!_0x534bae['has'](_0x21dd45)){if(_0x453924['has'](_0x21dd45))_0x335c7c++;else{if(_0x21dd45!=_0x505088[_0x335c7c]){const _0x4b84cb=_0x309999['get'](_0x21dd45)||_0x309999['get'](_0x505088[_0x335c7c]);for(;_0x21dd45!=_0x505088[_0x335c7c];)_0x453924['has'](_0x505088[_0x335c7c])||(_0x534bae['set'](_0x505088[_0x335c7c],_0x4b84cb),_0x309999['set'](_0x505088[_0x335c7c],_0x4b84cb)),_0x335c7c++;}_0x335c7c++;}}}}for(const _0x57bfeb of _0x52fe0d){const _0x4ea867=_0x3f85cf['insertions'][_0x57bfeb];for(const _0x4d2f6f of _0x4ea867){const _0x44a327=this['_getVidAttributeName'](_0x4d2f6f),_0xdcb4e4=_0x4d2f6f['item']['getAttribute'](_0x44a327);if(_0x534bae['has'](_0xdcb4e4)){const _0x1bc85e=_0x534bae['get'](_0xdcb4e4);_0x453924['has'](_0xdcb4e4)||_0x453924['set'](_0xdcb4e4,{..._0x1bc85e}),_0x3ff407['set'](_0xdcb4e4,{..._0x1bc85e});}}}for(const _0x1217f4 of _0x453924['keys']())_0x1217f4>=this['_startingRevisionId']&&_0x453924['delete'](_0x1217f4);const _0x10effd=new Map();for(const _0x32a26f of _0x52fe0d){let _0x407ed6=_0x3f85cf['insertions'][_0x32a26f];for(const _0x4e664e of _0x407ed6)if(_0x4e664e['item']['is']('element','tableCell')){const _0x1fb316=this['_getVidAttributeName'](_0x4e664e),_0x3c759b=_0x4e664e['item']['getAttribute'](_0x1fb316);if(_0x3ff407['has'](_0x3c759b)){const _0x5d90ce=_0x4e664e['item']['parent']['parent']['getAttribute']('vid_start'),_0x4edfd6=_0x10effd['get'](_0x5d90ce)||new Set();_0x4edfd6['add'](_0x3ff407['get'](_0x3c759b)['userId']),_0x10effd['set'](_0x5d90ce,_0x4edfd6);}}_0x407ed6=_0x3f85cf['deletions'][_0x32a26f];for(const _0x4828a8 of _0x407ed6)if(_0x4828a8['item']['is']('element','tableCell')){const _0xc2a77c=this['_getVidAttributeName'](_0x4828a8),_0x24aa5e=_0x4828a8['item']['getAttribute'](_0xc2a77c);if(_0x453924['has'](_0x24aa5e)){const _0x44f4c9=_0x4828a8['item']['parent']['parent']['getAttribute']('vid_start'),_0x2d8035=_0x10effd['get'](_0x44f4c9)||new Set();_0x2d8035['add'](_0x453924['get'](_0x24aa5e)['userId']),_0x10effd['set'](_0x44f4c9,_0x2d8035);}}for(const _0x34e0ff of _0x10effd['keys']())(_0x3ff407['has'](_0x34e0ff)||_0x453924['has'](_0x34e0ff))&&_0x10effd['delete'](_0x34e0ff);}for(const _0x1e9a1e of _0x52fe0d){const _0x472c63=_0x3f85cf['insertions'][_0x1e9a1e];let _0x421406=null,_0x4aa255=null;for(const _0x1fae8d of _0x472c63){const _0x91a6b9=this['_getVidAttributeName'](_0x1fae8d),_0x4f027e=_0x1fae8d['item']['getAttribute'](_0x91a6b9),_0x2c1d13=_0x10effd['get'](_0x4f027e);_0x2c1d13&&'elementStart'==_0x1fae8d['type']&&(_0x421406=Array['from'](_0x2c1d13)[0x0],_0x4aa255=_0x1fae8d['item']['getAttribute']('vid_end')),_0x421406&&(_0x453924['set'](_0x4f027e,{'userId':_0x421406}),_0x3ff407['set'](_0x4f027e,{'userId':_0x421406})),_0x4f027e==_0x4aa255&&(_0x421406=null,_0x4aa255=null);}}const _0x417b12={},_0x49a33b=new Set();for(const _0x1fb9ba of _0x52fe0d){const _0x580bdb=_0x37b901['deletions'][_0x1fb9ba],_0x478503=_0x37b901['insertions'][_0x1fb9ba];for(const {userId:_0x2d15cf}of this['_touchedMarkers']['values']())null!==_0x2d15cf&&_0x49a33b['add'](_0x2d15cf);for(const {userId:_0x321bb0}of this['_touchedRoots']['values']())null!==_0x321bb0&&_0x49a33b['add'](_0x321bb0);this['_markChanges'](_0x478503,_0x3f85cf['insertions'][_0x1fb9ba],_0x3ff407,'insertion',_0x49a33b),this['_markChanges'](_0x580bdb,_0x3f85cf['deletions'][_0x1fb9ba],_0x453924,'deletion',_0x49a33b),_0x417b12[_0x1fb9ba]={'insertions':this['_prepareViewToSave'](_0x478503),'deletions':this['_prepareViewToSave'](_0x580bdb),'attachChange':this['_touchedRoots']['get'](_0x1fb9ba)||null,'attributesBefore':cloneDeep(this['_baseRootsAttributes']['get'](_0x1fb9ba))||{},'attributesAfter':cloneDeep(this['_diffRootsAttributes']['get'](_0x1fb9ba))};}return{'diffData':_0x417b12,'authorsIds':Array['from'](_0x49a33b)};}['_processRootBeforeSave'](_0x1056c8){for(const [,_0x144c65]of _0x1056c8['markers']){const _0x4a25cc=_0x144c65['start']['getAncestors']()['filter'](_0x383a88=>'tableCell'==_0x383a88['name']);for(const _0x56845b of _0x4a25cc)0x1==_0x56845b['childCount']&&_0x56845b['getChild'](0x0)['is']('element','paragraph')&&_0x56845b['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x461e2c){this['_processRootBeforeSave'](_0x461e2c);const _0x3bc115=this['editor']['data']['toView'](_0x461e2c,{}),_0x2c8c50=Array['from'](_0x3bc115['getChildren']())['map'](_0x5a538e=>this['_getViewJson'](_0x5a538e));return JSON['stringify'](_0x2c8c50);}['_getViewJson'](_0x34615a){if(_0x34615a['is']('$text'))return _0x34615a['data'];{const _0xd05829=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x126394=_0x34615a,_0xcc2b1=this['editor']['data']['htmlProcessor']['domConverter'],_0x5d809b={'type':_0xd05829['_getTypeCharForViewElement'](_0x126394),'name':_0x126394['name'],'attributes':Array['from'](_0x126394['getAttributes']()),'children':Array['from'](_0x126394['getChildren']())['map'](_0x5d1c4d=>this['_getViewJson'](_0x5d1c4d))};if(_0x34615a['is']('uiElement')&&'$comment'!=_0x34615a['name']){const _0x239e30=_0x34615a['render'](_0xcc2b1['domDocument'],_0xcc2b1);_0x5d809b['children']['push'](_0x239e30['outerHTML']);}else{if(_0x34615a['is']('rawElement')){const _0x14dc42=_0xcc2b1['domDocument']['createElement'](_0x126394['name']);_0x34615a['render'](_0x14dc42,_0xcc2b1),_0x5d809b['children']['push'](_0x14dc42['innerHTML']);}}const _0x14011c=Array['from'](_0x126394['getCustomProperties']());_0x14011c['length']>0x0&&(_0x5d809b['customProperties']=_0x14011c);const _0x25e689=_0x126394['getFillerOffset']();return null!==_0x25e689&&(_0x5d809b['fillerOffset']=_0x25e689),_0x5d809b;}}['_markChanges'](_0x294737,_0x5d4c98,_0xf7d10,_0x1a65f7,_0x49a0f2){let _0x20bccc=null,_0x34e71b=null,_0x3bdd53=0x0;const _0x19a66b=this['editor']['model'];for(let _0xa77d0f=0x0;_0xa77d0f<_0x5d4c98['length'];_0xa77d0f++){const _0x5677aa=this['_getVidAttributeName'](_0x5d4c98[_0xa77d0f]),_0x4bc138=_0x5d4c98[_0xa77d0f]['item']['getAttribute'](_0x5677aa),_0x2842ba=_0xf7d10['get'](_0x4bc138),_0x3efb2c=_0xa77d0f==_0x5d4c98['length']-0x1;(!_0x20bccc&&_0x2842ba&&(_0x20bccc=_0x2842ba,_0x34e71b=_0x5d4c98[_0xa77d0f]),_0x20bccc&&(!_0x2842ba||_0x2842ba['userId']!=_0x20bccc['userId']))&&(_0x3e5a33(_0x2842ba,_getPosBefore(_0x34e71b,_0x294737,_0x19a66b),_getPosBefore(_0x5d4c98[_0xa77d0f],_0x294737,_0x19a66b)),_0x20bccc=_0x2842ba||null,_0x34e71b=_0x2842ba?_0x5d4c98[_0xa77d0f]:null),_0x20bccc&&_0x3efb2c&&_0x3e5a33(_0x2842ba,_getPosBefore(_0x34e71b,_0x294737,_0x19a66b),_getPosAfter(_0x5d4c98[_0xa77d0f],_0x294737,_0x19a66b));}function _0x3e5a33(_0x576927,_0x5964c5,_0x4611b3){const _0x43c417=_0x20bccc['userId'],_0x4868e6='revision:'+_0x1a65f7+':'+_0x43c417+':'+_0x3bdd53++,_0x4659a1=_0x19a66b['createRange'](_0x5964c5,_0x4611b3);_0x294737['markers']['set'](_0x4868e6,_0x4659a1),null!==_0x43c417&&_0x49a0f2['add'](_0x43c417);}}['_getVidAttributeName'](_0x4d3c54){switch(_0x4d3c54['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5592aa,_0x321507){_0x5592aa['baseVersion']=null;for(const _0x143739 in _0x5592aa){const _0x4e0341=_0x5592aa[_0x143739];if(_0x4e0341 instanceof ModelPosition){const _0x141547=_0x321507['get'](_0x4e0341['root']['rootName']);_0x5592aa[_0x143739]=this['_fixPosition'](_0x4e0341,_0x141547);}if(_0x4e0341 instanceof ModelRange){const _0x38b832=_0x321507['get'](_0x4e0341['root']['rootName']);_0x5592aa[_0x143739]=this['_fixRange'](_0x4e0341,_0x38b832);}'root'===_0x143739&&(_0x5592aa['root']=_0x321507['get'](_0x5592aa['root']['rootName']));}}['_fixRange'](_0xa17049,_0x4abb37){return this['editor']['model']['createRange'](this['_fixPosition'](_0xa17049['start'],_0x4abb37),this['_fixPosition'](_0xa17049['end'],_0x4abb37));}['_fixPosition'](_0x3d3809,_0xb08a16){return this['editor']['model']['createPositionFromPath'](_0xb08a16,_0x3d3809['path'],_0x3d3809['stickiness']);}['_handleInsertOperation'](_0x4d6de5){const _0x5b2df9=this['_idsRoots']['get'](_0x4d6de5['position']['root']['rootName']),_0x35c055=this['_fixPosition'](_0x4d6de5['position'],_0x5b2df9),_0x3fac90=null===_0x4d6de5['_authorId']?null:_0x4d6de5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x540205=_0x35c055['parent'],_0x5284d4=this['_revisionId'],_0x387930=[];for(const _0x4f27d2 of _0x4d6de5['nodes'])if(_0x4f27d2['is']('element'))_0x387930['push'](this['_makeIdsRoot'](_0x4f27d2));else{for(let _0x2b7f72=0x0;_0x2b7f72<_0x4f27d2['offsetSize'];_0x2b7f72++)_0x387930['push'](new ModelElement('$text',{'vid':this['_revisionId']++}));}const _0x2c416a=this['_revisionId'];for(let _0xe7ee34=_0x5284d4;_0xe7ee34<_0x2c416a;_0xe7ee34++)this['_touched']['set'](_0xe7ee34,{'userId':_0x3fac90});_0x540205['_insertChild'](_0x35c055['offset'],_0x387930);}['_handleMoveOperation'](_0xe03389){(_0xe03389=this['_cloneOperation'](_0xe03389,this['_idsRoots']))['_execute']();const _0x15b818=null===_0xe03389['_authorId']?null:_0xe03389['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x40c98b=_0xe03389['getMovedRangeStart'](),_0x8cdda1=_0x40c98b['parent'],_0x5d562d=_0x40c98b['offset'];!function _0x5ef107(_0x47fae2,_0x11f940,_0x4c7dd5,_0x3092dd){for(let _0xed91ea=_0x4c7dd5;_0xed91ea<_0x3092dd;_0xed91ea++){const _0x31f7e0=_0x11f940['getChild'](_0xed91ea);_0x31f7e0['is']('element','$text')?_0x47fae2['set'](_0x31f7e0['getAttribute']('vid'),{'userId':_0x15b818}):(_0x47fae2['set'](_0x31f7e0['getAttribute']('vid_start'),{'userId':_0x15b818}),_0x5ef107(_0x47fae2,_0x31f7e0,0x0,_0x31f7e0['childCount']),_0x47fae2['set'](_0x31f7e0['getAttribute']('vid_end'),{'userId':_0x15b818}));}}(this['_touched'],_0x8cdda1,_0x5d562d,_0x5d562d+_0xe03389['howMany']);}['_handleMergeOperation'](_0xdd8981){const _0x450ac5=null===(_0xdd8981=this['_cloneOperation'](_0xdd8981,this['_idsRoots']))['_authorId']?null:_0xdd8981['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2446ee=_0xdd8981['targetPosition']['parent'],_0x38eebb=_0xdd8981['sourcePosition']['parent'],_0x9dc197=_0x2446ee['getAttribute']('vid_end'),_0x475d37=_0x38eebb['getAttribute']('vid_start');_0x2446ee['_setAttribute']('vid_end',_0x38eebb['getAttribute']('vid_end')),_0x38eebb['_setAttribute']('vid_end',_0x9dc197),this['_touched']['set'](_0x475d37,{'userId':_0x450ac5}),this['_touched']['set'](_0x9dc197,{'userId':_0x450ac5}),_0xdd8981['_execute']();}['_handleSplitOperation'](_0x5a7580){const _0x3cf064=null===(_0x5a7580=this['_cloneOperation'](_0x5a7580,this['_idsRoots']))['_authorId']?null:_0x5a7580['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3ec04b=_0x5a7580['graveyardPosition'],_0x550254=_0x5a7580['splitPosition']['parent'];_0x5a7580['_execute']();const _0x4c402e=_0x550254['getAttribute']('vid_end'),_0x300b26=_0x5a7580['insertionPosition']['nodeAfter'];if(_0x3ec04b){const _0x3f1a17=_0x300b26['getAttribute']('vid_end'),_0x5eb29a=_0x550254['getAttribute']('vid_end');_0x550254['_setAttribute']('vid_end',_0x3f1a17),_0x300b26['_setAttribute']('vid_end',_0x5eb29a),this['_touched']['set'](_0x550254['getAttribute']('vid_end'),{'userId':_0x3cf064}),this['_touched']['set'](_0x300b26['getAttribute']('vid_start'),{'userId':_0x3cf064});}else{const _0x4662e0=this['_revisionId']++,_0x331364=this['_revisionId']++;_0x550254['_setAttribute']('vid_end',_0x4662e0),_0x300b26['_setAttribute']('vid_start',_0x331364),_0x300b26['_setAttribute']('vid_end',_0x4c402e),this['_touched']['set'](_0x4662e0,{'userId':_0x3cf064}),this['_touched']['set'](_0x331364,{'userId':_0x3cf064});}}['_handleMarkerOperation'](_0xd110c5){if(!_0xd110c5['affectsData'])return;const _0x4772b2=(_0xd110c5=this['_cloneOperation'](_0xd110c5,this['_diffRoots']))['oldRange']?_0xd110c5['oldRange']['root']:null,_0x52b9a2=_0xd110c5['newRange']?_0xd110c5['newRange']['root']:null;_0x4772b2&&this['_markers']['delete'](_0xd110c5['name']),_0x52b9a2&&this['_markers']['set'](_0xd110c5['name'],_0xd110c5['newRange']['clone']());const _0x4397ba=null===_0xd110c5['_authorId']?null:_0xd110c5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x6bd7a1=_0xd110c5['name'];if(!this['_touchedMarkers']['has'](_0x6bd7a1))return void this['_touchedMarkers']['set'](_0x6bd7a1,{'range':_0xd110c5['oldRange'],'userId':_0x4397ba});const _0x555769=this['_touchedMarkers']['get'](_0x6bd7a1),_0xf6b76f=_0x555769['range'],_0x425019=_0xd110c5['newRange'];null==_0xf6b76f&&null==_0x425019||_0xf6b76f&&_0x425019&&_0xf6b76f['isEqual'](_0x425019)?this['_touchedMarkers']['delete'](_0xd110c5['name']):_0x555769['userId']=_0x4397ba;}['_handleRootOperation'](_0x56d4a0,_0x2bcfd0){this['_diffRoots']['has'](_0x56d4a0['rootName'])?this['_diffRoots']['get'](_0x56d4a0['rootName'])['_isAttached']=_0x56d4a0['isAdd']:(this['_diffRoots']['set'](_0x56d4a0['rootName'],_emptyRoot(_0x56d4a0['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x56d4a0['rootName'],{}),_0x2bcfd0&&this['_idsRoots']['set'](_0x56d4a0['rootName'],_emptyRoot(_0x56d4a0['rootName'],!0x0)));const _0x19fe93=null===_0x56d4a0['_authorId']?null:_0x56d4a0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe17f4d=this['_touchedRoots']['get'](_0x56d4a0['rootName']);_0xe17f4d&&_0xe17f4d['userId']===_0x19fe93?this['_touchedRoots']['delete'](_0x56d4a0['rootName']):this['_touchedRoots']['set'](_0x56d4a0['rootName'],{'userId':_0x19fe93,'isAttached':_0x56d4a0['isAdd']});}['_handleRootAttributeOperation'](_0x4ceaf5){const _0x2e5c41=this['_diffRootsAttributes']['get'](_0x4ceaf5['root']['rootName']);null===_0x4ceaf5['newValue']?delete _0x2e5c41[_0x4ceaf5['key']]:_0x2e5c41[_0x4ceaf5['key']]=_0x4ceaf5['newValue'];}}function _cloneRoot(_0x3ac1ad){const _0x3877cb=_emptyRoot(_0x3ac1ad['rootName'],_0x3ac1ad['isAttached']());for(const _0x5897c7 of _0x3ac1ad['getChildren']()){const _0x31dbb1=_0x5897c7['_clone'](!0x0);_0x3877cb['_appendChild'](_0x31dbb1);}return _0x3877cb;}function _emptyRoot(_0x32cd36,_0x21e1e0=!0x0){const _0x16b279=new ModelDocumentFragment();return _0x16b279['rootName']=_0x32cd36,_0x16b279['_isAttached']=_0x21e1e0,_0x16b279['isAttached']=()=>_0x16b279['_isAttached'],_0x16b279;}function _getPosBefore(_0x53d32e,_0x4926a4,_0x2507fb){const _0x50154c='elementEnd'==_0x53d32e['type']?_0x2507fb['createPositionAt'](_0x53d32e['item'],'end'):_0x2507fb['createPositionBefore'](_0x53d32e['item']);return _0x2507fb['createPositionFromPath'](_0x4926a4,_0x50154c['path'],_0x50154c['stickiness']);}function _getPosAfter(_0x408ac0,_0x3309ea,_0x4f776f){const _0x4f0240='elementStart'==_0x408ac0['type']?_0x4f776f['createPositionAt'](_0x408ac0['item'],0x0):_0x4f776f['createPositionAfter'](_0x408ac0['item']);return _0x4f776f['createPositionFromPath'](_0x3309ea,_0x4f0240['path'],_0x4f0240['stickiness']);}class RevisionHistorySaveRevisionFormView extends/* #__PURE__ -- @preserve */
CssTransitionDisablerMixin(View){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3615d7,_0x4a0c63){super(_0x3615d7),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4a0c63),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 _0x3a913f=_0x3198a1=>_0x3198a1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3a913f),this['keystrokes']['set']('arrowleft',_0x3a913f),this['keystrokes']['set']('arrowup',_0x3a913f),this['keystrokes']['set']('arrowdown',_0x3a913f);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x357406){this['revisionNameInputView']['fieldView']['element']['value']=_0x357406['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x319e04){const _0xf5a69b=new LabeledFieldView(this['locale'],createLabeledInputText),_0x2227bc=_0xf5a69b['fieldView'];_0x2227bc['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x515705=getTranslation$5(this['locale'],'Name\x20of\x20the\x20revision');return!_0x319e04&&(_0x515705+='\x20('+getTranslation$5(this['locale'],'optional')+')'),(_0xf5a69b['label']=_0x515705,_0x2227bc['on']('input',()=>{this['revisionNameInputValue']=_0x2227bc['element']['value']['trim']();}),_0xf5a69b);}}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 _0x21146c=this['editor'],_0x4e97c9=_0x21146c['plugins']['get']('RevisionTracker');_0x21146c['ui']['componentFactory']['add']('revisionHistory',_0x2b7246=>{const _0x5ddb0f=createDropdown(_0x2b7246),_0x530e3a=_0x5ddb0f['panelView']['children'],_0x5560c8=new ListView(_0x2b7246),_0x5747b0=new ListItemView(_0x2b7246),_0x6cdcda=this['_createSaveRevisionButton'](ButtonView),_0x24d681=new ListItemView(_0x2b7246),_0x2a56ce=this['_createOpenRevisionButton'](ButtonView);return _0x5ddb0f['bind']('isEnabled')['to'](_0x4e97c9,'isReady',_0x4e97c9,'isEnabled',_0x21146c,'isReadOnly',(_0x3a0a62,_0x15130b,_0x42d842)=>_0x3a0a62&&_0x15130b&&!_0x42d842),_0x5ddb0f['buttonView']['set']({'icon':IconHistory,'label':getTranslation$5(_0x2b7246,'Revision\x20history'),'tooltip':!0x0}),_0x6cdcda['set']({'withText':!0x0,'role':'menuitem'}),_0x2a56ce['set']({'withText':!0x0,'role':'menuitem'}),this['listenTo'](_0x2a56ce,'execute',()=>{_0x5ddb0f['isOpen']=!0x1,_0x21146c['editing']['view']['focus']();},{'priority':'low'}),_0x5747b0['children']['add'](_0x6cdcda),_0x24d681['children']['add'](_0x2a56ce),_0x5560c8['role']='menu',_0x5560c8['items']['addMany']([_0x5747b0,_0x24d681]),_0x530e3a['add'](_0x5560c8),_0x5ddb0f;}),_0x21146c['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2a95ea=this['editor'],_0x242faf=_0x2a95ea['locale'],_0xbc80a6=_0x2a95ea['plugins']['get']('RevisionTracker'),_0x1fa225=new MenuBarMenuView(_0x242faf),_0x55c717=new MenuBarMenuListView(_0x242faf);_0x1fa225['bind']('isEnabled')['to'](_0xbc80a6,'isReady',_0xbc80a6,'isEnabled',_0x2a95ea,'isReadOnly',(_0x19a419,_0x420e83,_0x5886e9)=>_0x19a419&&_0x420e83&&!_0x5886e9),_0x1fa225['buttonView']['set']({'icon':IconHistory,'label':getTranslation$5(_0x242faf,'Revision\x20history')});const _0x133a54=new MenuBarMenuListItemView(_0x242faf,_0x1fa225),_0x30aa52=this['_createSaveRevisionButton'](MenuBarMenuListItemButtonView);_0x30aa52['delegate']('execute')['to'](_0x1fa225),_0x133a54['children']['add'](_0x30aa52),_0x55c717['items']['add'](_0x133a54);const _0x27ada4=new MenuBarMenuListItemView(_0x242faf,_0x1fa225),_0x4f41a6=this['_createOpenRevisionButton'](MenuBarMenuListItemButtonView);return _0x4f41a6['delegate']('execute')['to'](_0x1fa225),_0x27ada4['children']['add'](_0x4f41a6),_0x55c717['items']['add'](_0x27ada4),_0x1fa225['panelView']['children']['add'](_0x55c717),_0x1fa225;}['_createSaveRevisionButton'](_0x284078){const _0x14c751=this['editor'],_0xa0e2d5=_0x14c751['plugins']['get']('RevisionTracker'),_0xa0f8bc=new _0x284078(_0x14c751['locale']);return _0xa0f8bc['set']({'label':getTranslation$5(_0x14c751['locale'],'Save\x20current\x20revision')}),_0xa0f8bc['bind']('isEnabled')['to'](_0xa0e2d5,'isReady',_0xa0e2d5,'isEnabled',_0x14c751,'isReadOnly',(_0x1bd0b8,_0x3c2e5c,_0x3cf75a)=>_0x1bd0b8&&_0x3c2e5c&&!_0x3cf75a),this['listenTo'](_0xa0f8bc,'execute',()=>{this['_showDialog']();}),_0xa0f8bc;}['_createOpenRevisionButton'](_0x132d91){const _0x43757f=this['editor'],_0x329f89=_0x43757f['plugins']['get']('RevisionTracker'),_0x1c16df=new _0x132d91(_0x43757f['locale']);return _0x1c16df['set']({'label':getTranslation$5(_0x43757f['locale'],'Open\x20revision\x20history')}),_0x1c16df['bind']('isEnabled')['to'](_0x329f89,'isReady',_0x43757f,'isReadOnly',(_0x333ad9,_0x36e5f9)=>_0x333ad9&&!_0x36e5f9),this['listenTo'](_0x1c16df,'execute',()=>{_0x43757f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1c16df;}['_showDialog'](){const _0x52b0eb=this['editor'],_0x2cc953=_0x52b0eb['locale'],_0x3a1a59=_0x52b0eb['plugins']['get']('Dialog'),_0x11a5e4=_0x52b0eb['plugins']['get']('RevisionTracker');function _0x5d531b(_0x598d49){_0x52b0eb['config']['get']('revisionHistory.requireRevisionName')&&''===_0x598d49['revisionName']?_0x598d49['revisionNameInputView']['errorText']=getTranslation$5(_0x2cc953,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x52b0eb['plugins']['get'](RevisionTracker)['saveRevision']({'name':_0x598d49['revisionName']}),_0x3a1a59['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5d531b(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3a1a59['show']({'id':'revisionSave','title':getTranslation$5(_0x2cc953,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':getTranslation$5(_0x52b0eb['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3a1a59['hide']()},{'label':getTranslation$5(_0x52b0eb['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4b9a99){_0x4b9a99['bind']('isEnabled')['to'](_0x11a5e4,'isReady',_0x11a5e4,'isEnabled',_0x52b0eb,'isReadOnly',(_0x20dbce,_0x530a63,_0x1cb536)=>_0x20dbce&&_0x530a63&&!_0x1cb536);},'onExecute':()=>_0x5d531b(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x101d37=this['editor'],_0x302b24=_0x101d37['locale'];this['_saveRevisionFormView']=new RevisionHistorySaveRevisionFormView(_0x302b24,_0x101d37['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class ChangeDetailsView extends View{['changeId'];['_model'];constructor(_0x5e59d2,_0x22dad2){super(_0x5e59d2),this['_model']=_0x22dad2,this['changeId']=_0x22dad2['id'];const _0xc7d4ff=this['bindTemplate'],_0x1caf68=getTranslation$5(_0x5e59d2,_0x22dad2['data']['isSuggestion']?'Suggested\x20by':'add'==_0x22dad2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x22dad2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0xc7d4ff['to']('type',_0x1ef3f9=>'ck-revision-change__'+_0x1ef3f9)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1caf68}]},{'text':'\x20'+_0x22dad2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class ChangeItem extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1560af){super(),this['id']=_0x1560af['id']||uid(),this['author']=_0x1560af['author'],this['type']=_0x1560af['type'],this['data']=_0x1560af['data']||{},this['rootName']=_0x1560af['rootName'],this['set']('createdAt',_0x1560af['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(_0x3d0838,_0x339991){this['newRevisionId']=_0x3d0838,this['oldRevisionId']=_0x339991,this['changes']=new Collection();}['_setChanges'](_0x509914){for(const _0x590bc3 of _0x509914)this['changes']['add'](_0x590bc3);}}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(_0x3b9bf2){super(_0x3b9bf2),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',(_0x31c532,_0x369945,_0x3d0e0e)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5cc33e=>{for(const _0x58a782 of this['editor']['editing']['view']['document']['roots'])_0x3d0e0e?_0x5cc33e['removeClass']('ck-editor__editable__overlay',_0x58a782):_0x5cc33e['addClass']('ck-editor__editable__overlay',_0x58a782);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3c8c1f=>null!==_0x3c8c1f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3ca07b,_0x192aab,_0x14cb17)=>_0x3ca07b&&_0x14cb17?_0x192aab['changes']['getIndex'](_0x14cb17):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1bbc29,_0x3c0cf0)=>_0x1bbc29?_0x3c0cf0['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](ContextualBalloon);}['init'](){const _0x489641=this['editor'],_0x315bd5=new ShowChangeCommand(_0x489641,{'direction':'backward'}),_0x135bd2=new ShowChangeCommand(_0x489641,{'direction':'forward'});(_0x489641['commands']['add']('showPreviousChange',_0x315bd5),_0x489641['commands']['add']('showNextChange',_0x135bd2),_0x489641['commands']['add']('restoreRevision',new RestoreRevisionCommand(_0x489641)),this['on']('change:numberOfChanges',()=>{_0x315bd5['refresh'](),_0x135bd2['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x489641['enableReadOnlyMode']('revision-viewer'),_0x489641['plugins']['has']('WidgetToolbarRepository'))&&_0x489641['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2a681d){return await this['_utils']['loadRevisionData'](_0x2a681d,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2a681d);}async['getRevisionRootsAttributes'](_0x83c969){return await this['_utils']['loadRevisionData'](_0x83c969,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x83c969);}async['compare'](_0x85b762,_0x48b5e0,_0x98c288=!0x1){if(!this['isEnabled'])return;const _0x7052e6=this['diff'],_0x390823=this['repository'],_0x5e0427='string'==typeof _0x85b762?_0x390823['getRevision'](_0x85b762):_0x85b762,_0x2005b2='string'==typeof _0x48b5e0?_0x390823['getRevision'](_0x48b5e0):_0x48b5e0,_0xe744a9=_0x5e0427['id'],_0xebeae=_0x2005b2?_0x2005b2['id']:null;if(!_0x98c288&&this['diff']&&this['diff']['newRevisionId']===_0xe744a9&&this['diff']['oldRevisionId']===_0xebeae)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new RevisionDiff(_0xe744a9,_0xebeae);const _0x33f844=this['_getRevisionsRange'](_0x5e0427,_0x2005b2,!0x0)['map'](_0x3684df=>this['_utils']['loadRevisionData'](_0x3684df,this['adapter']));return _0x33f844['push'](new Promise(_0x4fecca=>{setTimeout(_0x4fecca,0x14);})),Promise['all'](_0x33f844)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5a4b73=this['_getDiff'](_0xe744a9,_0xebeae);for(const _0x4fd039 of _0x5a4b73['changes'])this['_changeIdToChange']['set'](_0x4fd039['id'],_0x4fd039);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x18661a=>{for(const _0x273371 of this['editor']['model']['document']['getRootNames']())_0x18661a['detachRoot'](_0x273371);for(const _0x16d0f1 of Object['keys'](_0x5a4b73['model'])){const _0x1c6d18=_0x18661a['addRoot'](_0x16d0f1);for(const _0x35cfdf of Object['keys'](_0x5a4b73['attributes'][_0x16d0f1]))_0x18661a['setAttribute'](_0x35cfdf,_0x5a4b73['attributes'][_0x16d0f1][_0x35cfdf],_0x1c6d18);_0x18661a['insert'](_0x5a4b73['model'][_0x16d0f1],_0x1c6d18,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5a4b73['changes'])),this['isReady']=!0x0;})['catch'](_0x557c2e=>{console['error'](_0x557c2e),this['_cleanUp'](),_0x7052e6&&(this['diff']=_0x7052e6),this['isReady']=!0x0;});}['addRevisionData'](_0xbd8242,_0x2993f8){const _0x3dfd5b=this['repository']['createRevision'](_0xbd8242);return _0x3dfd5b['on']('_update',(_0x1d45fc,_0x4b527f,_0x44bf01)=>_0x2993f8(_0x4b527f,_0x44bf01,_0x3dfd5b)),this['repository']['addRevision'](_0x3dfd5b),_0x3dfd5b;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x12e44a=>{for(const _0x1bd8cb of this['editor']['model']['document']['getRootNames']())_0x12e44a['detachRoot'](_0x1bd8cb);});}['_sortAndFilterDiffChanges'](_0x44337c){const _0x571108=[],_0x2f1dbf=new Map();for(const _0x13922a of this['editor']['model']['document']['getRootNames']()){const _0x3d09b9=this['editor']['editing']['view']['getDomRoot'](_0x13922a);if(!_0x3d09b9)continue;const _0xcd0af4=_0x3d09b9['getClientRects']()['item'](0x0);_0xcd0af4&&(_0x571108['push'](_0x13922a),_0x2f1dbf['set'](_0x13922a,_0xcd0af4));}return _0x571108['sort']((_0x24dbf5,_0x3ec74e)=>{const _0x13c590=_0x2f1dbf['get'](_0x24dbf5),_0x35d5df=_0x2f1dbf['get'](_0x3ec74e);return _0x13c590['y']-_0x35d5df['y']||_0x13c590['x']-_0x35d5df['x'];}),(_0x44337c=_0x44337c['filter'](_0x4cf0ce=>_0x571108['includes'](_0x4cf0ce['rootName'])))['sort']((_0x757c31,_0x59169d)=>_0x571108['indexOf'](_0x757c31['rootName'])-_0x571108['indexOf'](_0x59169d['rootName'])),_0x44337c;}['_makeTape'](_0x31115e){const _0x99d437=Array['from'](_0x31115e['markers'])['filter'](([_0x57bed2,_0xa33e14])=>_0x57bed2['startsWith']('revision:')&&!_0xa33e14['isCollapsed']),_0x2e5395=Array['from'](this['editor']['model']['createRangeIn'](_0x31115e)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x99d437['length'])for(const _0x141e45 of _0x2e5395){const [_0x54206d,_0x34488e]=_0x99d437[0x0],[,_0xc8a941,_0x36523f]=_0x54206d['split'](':');if(_0x34488e['end']['isEqual'](_0x141e45['nextPosition'])&&_0x99d437['shift'](),(_0x141e45['previousPosition']['isEqual'](_0x34488e['start'])||_0x141e45['previousPosition']['isAfter'](_0x34488e['start']))&&('insertion'==_0xc8a941?_0x141e45['isAdded']={'userId':_0x36523f}:'deletion'==_0xc8a941&&(_0x141e45['isRemoved']={'userId':_0x36523f})),0x0==_0x99d437['length'])break;}return _0x2e5395;}['_refreshStartEndIndex'](_0x1c14d7){const _0x479fb9=new Map();for(let _0x100edd=0x0;_0x100edd<_0x1c14d7['length'];_0x100edd++)'text'===_0x1c14d7[_0x100edd]['type']?(_0x1c14d7[_0x100edd]['item']['startIndex']=_0x100edd,_0x1c14d7[_0x100edd]['item']['endIndex']=_0x100edd):('elementStart'===_0x1c14d7[_0x100edd]['type']?_0x1c14d7[_0x100edd]['item']['startIndex']=_0x100edd:'elementEnd'===_0x1c14d7[_0x100edd]['type']&&(_0x1c14d7[_0x100edd]['item']['endIndex']=_0x100edd),_0x479fb9['set'](_0x1c14d7[_0x100edd]['id'],_0x100edd));for(const _0x21764f of _0x479fb9['values']())'elementStart'===_0x1c14d7[_0x21764f]['type']?_0x1c14d7[_0x21764f]['item']['endIndex']=_0x479fb9['get'](_0x1c14d7[_0x21764f]['pairId']):'elementEnd'===_0x1c14d7[_0x21764f]['type']&&(_0x1c14d7[_0x21764f]['item']['startIndex']=_0x479fb9['get'](_0x1c14d7[_0x21764f]['pairId']));}['_processTape'](_0x4e67c2){for(let _0x332381=0x0;_0x332381<_0x4e67c2['length'];_0x332381++){if('elementStart'===_0x4e67c2[_0x332381]['type'])_0x4e67c2[_0x332381]['item']['startIndex']=_0x332381;else{if('elementEnd'===_0x4e67c2[_0x332381]['type']){_0x4e67c2[_0x332381]['item']['endIndex']=_0x332381;const _0x54245e=_0x4e67c2[_0x332381]['item']['startIndex'];_0x4e67c2[_0x54245e]['pairId']=_0x4e67c2[_0x332381]['id'],_0x4e67c2[_0x332381]['pairId']=_0x4e67c2[_0x54245e]['id'];}else _0x4e67c2[_0x332381]['item']['startIndex']=_0x332381,_0x4e67c2[_0x332381]['item']['endIndex']=_0x332381,_0x4e67c2[_0x332381]['pairId']=null;}_0x4e67c2[_0x332381]['markersStart']||(_0x4e67c2[_0x332381]['markersStart']=[],_0x4e67c2[_0x332381]['markersEnd']=[]);}}['_markInsertions'](_0x416b3a,_0x29f1ca){const _0x2db911=_0x416b3a['filter'](_0x29efb9=>!_0x29efb9['isAdded']);for(let _0x256c27=0x0;_0x256c27<_0x29f1ca['length'];_0x256c27++)_0x29f1ca[_0x256c27]['isAdded']&&(_0x2db911[_0x256c27]['isAdded']=_0x29f1ca[_0x256c27]['isAdded']);}['_getDiff'](_0x2205ea,_0x57f02d=null){const _0xa2b082=this['repository']['getRevision'](_0x2205ea),_0x3a5391=_0x57f02d?this['repository']['getRevision'](_0x57f02d):null,_0x4c2d39=this['_getRevisionsRange'](_0xa2b082,_0x3a5391),_0x2bb478=_0x4c2d39[_0x4c2d39['length']-0x1],_0x2e9c50=new Map(),_0x26bdd3={'model':{},'attributes':{},'changes':[]},_0x24c514=new Set(),_0x507ddc=new Map();for(let _0x4723cf=_0x4c2d39['length']-0x1;_0x4723cf>=0x0;_0x4723cf--){const _0x1e14ad=_0x4c2d39[_0x4723cf];for(const _0x383baa of Object['keys'](_0x1e14ad['diffData']))if(_0x1e14ad['diffData'][_0x383baa]['attachChange']){const _0x4a8738=_0x1e14ad['diffData'][_0x383baa]['attachChange'];_0x4a8738['isAttached']?(_0x24c514['add'](_0x383baa),_0x507ddc['has'](_0x383baa)&&_0x507ddc['get'](_0x383baa)['userId']==_0x4a8738['userId']?_0x507ddc['delete'](_0x383baa):_0x507ddc['set'](_0x383baa,_0x4a8738)):_0x507ddc['has'](_0x383baa)?(_0x24c514['delete'](_0x383baa),_0x507ddc['delete'](_0x383baa)):(_0x24c514['add'](_0x383baa),_0x507ddc['set'](_0x383baa,_0x4a8738));}else _0x24c514['add'](_0x383baa);}for(const _0x4a7961 of _0x24c514){const _0x13f554=_0x507ddc['has'](_0x4a7961)&&!_0x507ddc['get'](_0x4a7961)['isAttached'];let _0x325d9b=_0x13f554?_0x4c2d39['length']-0x1:0x0;const _0x337893=_0x13f554?-0x1:0x1;for(;_0x4c2d39[_0x325d9b];){const _0x34d5fd=_0x4c2d39[_0x325d9b];if(_0x34d5fd['diffData'][_0x4a7961]){const _0x2ec9e1=_0x13f554?_0x34d5fd['diffData'][_0x4a7961]['attributesBefore']:_0x34d5fd['diffData'][_0x4a7961]['attributesAfter'];_0x26bdd3['attributes'][_0x4a7961]=_0x2ec9e1?cloneDeep(_0x2ec9e1):{};break;}_0x325d9b+=_0x337893;}}for(const _0x5001e2 of _0x4c2d39){_0x5001e2['model']={};for(const _0x1ee9f7 of _0x5001e2['authors'])_0x2e9c50['set'](_0x1ee9f7['id'],_0x1ee9f7);for(const _0x18a554 of _0x24c514){const _0x2cd579=_0x5001e2['diffData'][_0x18a554]?_0x5001e2['diffData'][_0x18a554]['insertions']:'[]',_0x24d3b8=_0x5001e2['diffData'][_0x18a554]?_0x5001e2['diffData'][_0x18a554]['deletions']:'[]';_0x5001e2['model'][_0x18a554]={'insertions':this['_utils']['_makeModelFromViewString'](_0x2cd579),'deletions':this['_utils']['_makeModelFromViewString'](_0x24d3b8)};}}for(const _0x539b23 of _0x24c514){let _0x61d6f2=null,_0x61ffdd=0x0;const _0x45554e=new Map(Array['from'](_0xa2b082['model'][_0x539b23]['insertions']['markers'])['filter'](([_0x5f5066])=>!_0x5f5066['startsWith']('revision:')));let _0x5eaf05=0x0;for(const _0x34bd7c of _0x4c2d39){const _0x350cd8=this['_makeTape'](_0x34bd7c['model'][_0x539b23]['insertions']);_0x34bd7c==_0xa2b082?(_0x61d6f2=_0x350cd8,_0x61ffdd=_0x61d6f2['length'],_0x61d6f2['forEach'](_0x26dcb9=>{_0x26dcb9['id']=_0x5eaf05++;}),this['_processTape'](_0x61d6f2)):this['_markInsertions'](_0x61d6f2,_0x350cd8);const _0x1f7da8=_0x61d6f2['filter'](_0x49e683=>!_0x49e683['isAdded'])['map'](_0x2faa0e=>_0x2faa0e['id']);let _0x493492=0x0;const _0x1334b5=this['_makeTape'](_0x34bd7c['model'][_0x539b23]['deletions']);_0x1334b5['forEach'](_0xd123e5=>{_0xd123e5['isRemoved']?_0xd123e5['id']=_0x61ffdd++:_0xd123e5['id']=_0x1f7da8[_0x493492++];}),this['_processTape'](_0x1334b5),this['_setDistance'](_0x61d6f2,'isAdded'),this['_setDistance'](_0x1334b5,'isRemoved'),_0x34bd7c==_0xa2b082&&this['_markMarkers'](_0x61d6f2,_0x45554e),_0x61d6f2=this['_joinTapes'](_0x61d6f2,_0x1334b5),this['_refreshStartEndIndex'](_0x61d6f2),this['_setDistance'](_0x61d6f2,'isRemoved');}_0x61d6f2=_0x61d6f2['filter'](_0x40da3c=>!(_0x40da3c['isAdded']&&_0x40da3c['isRemoved']));const _0x34291f=new Map(_0x2bb478['model'][_0x539b23]['deletions']['markers']),_0x1c5fb2=new Set(_0x45554e['keys']());for(const _0xe31683 of _0x34291f['keys']())_0x1c5fb2['delete'](_0xe31683);this['_markSuggestions'](_0x61d6f2,_0x1c5fb2),this['_fixObsoleteTags'](_0x61d6f2),_0x61d6f2=this['_removeMissingPairs'](_0x61d6f2),_0x61d6f2=this['_markMismatchedRemovedTags'](_0x61d6f2),_0x61d6f2=this['_removeUnsupportedChanges'](_0x61d6f2);const {root:_0x3f6699,changes:_0x100ba6}=this['_makeModelFromTape'](_0x61d6f2,_0x2e9c50,_0x539b23);_0x26bdd3['model'][_0x539b23]=_0x3f6699;const _0x1927fc=_0x507ddc['get'](_0x539b23);if(_0x1927fc){const _0x42b8ed=_0x2e9c50['get'](_0x1927fc['userId']),_0xe51425=new ChangeItem({'author':_0x42b8ed,'type':_0x1927fc['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x539b23});_0x100ba6['unshift'](_0xe51425),_0x26bdd3['attributes'][_0x539b23]['revisionHistoryAttachChange']=_0xe51425['id'];}_0x26bdd3['changes']=_0x26bdd3['changes']['concat'](_0x100ba6);}return _0x26bdd3;}['_markMarkers'](_0x56ffd6,_0x333ba9){for(let _0x2238c7=0x0;_0x2238c7<_0x56ffd6['length'];_0x2238c7++)for(const [_0x40f6eb,_0x558c56]of _0x333ba9)!_0x558c56['isCollapsed']&&_0x558c56['start']['isEqual'](_0x56ffd6[_0x2238c7]['previousPosition'])&&_0x56ffd6[_0x2238c7]['markersStart']['push'](_0x40f6eb),_0x558c56['end']['isEqual'](_0x56ffd6[_0x2238c7]['nextPosition'])&&_0x56ffd6[_0x2238c7]['markersEnd']['push'](_0x40f6eb);}['_joinTapes'](_0x3edd14,_0x392507){let _0x16f113=[],_0x47450a=0x0,_0x4808f4=0x0;for(;_0x47450a<_0x3edd14['length']||_0x4808f4<_0x392507['length'];){const _0x5e5aa4=_0x3edd14[_0x47450a]||{},_0x528968=_0x392507[_0x4808f4]||{};if(_0x5e5aa4['id']==_0x528968['id'])_0x47450a++,_0x4808f4++,_0x16f113['push'](_0x5e5aa4);else{if(_0x528968['isRemoved']&&_0x5e5aa4['isAdded']){const {commonTape:_0x1d4a70,iEnd:_0x4f2c97,jEnd:_0x581345}=this['_threeWayMerge'](_0x3edd14,_0x47450a,_0x392507,_0x4808f4);_0x16f113=_0x16f113['concat'](_0x1d4a70),_0x47450a=_0x4f2c97,_0x4808f4=_0x581345;}else _0x528968['isRemoved']?(_0x4808f4++,_0x16f113['push'](_0x528968)):(_0x47450a++,_0x16f113['push'](_0x5e5aa4));}}return _0x16f113;}['_markSuggestions'](_0x5718e5,_0x22dd8e){const _0x311dfa=[];for(let _0x3e1399=0x0;_0x3e1399<_0x5718e5['length'];_0x3e1399++){for(let _0x2de3cf=0x0;_0x2de3cf<_0x5718e5[_0x3e1399]['markersStart']['length'];_0x2de3cf++){const _0xd3a0e7=_0x5718e5[_0x3e1399]['markersStart'][_0x2de3cf];if(!_0x22dd8e['has'](_0xd3a0e7))continue;const {group:_0x2538e0,type:_0x541c3e,authorId:_0x488db4}=_0x5a34e3(_0xd3a0e7);'revision-suggestion'!=_0x2538e0||'insertion'!=_0x541c3e&&'deletion'!=_0x541c3e||(_0x311dfa['unshift']({'type':_0x541c3e,'name':_0xd3a0e7,'userId':_0x488db4}),_0x5718e5[_0x3e1399]['markersStart']['splice'](_0x2de3cf,0x1),_0x2de3cf--);}_0x47e724(_0x5718e5[_0x3e1399]);for(let _0x32f9ec=0x0;_0x32f9ec<_0x5718e5[_0x3e1399]['markersEnd']['length'];_0x32f9ec++){const _0x329e3a=_0x5718e5[_0x3e1399]['markersEnd'][_0x32f9ec];if(!_0x22dd8e['has'](_0x329e3a))continue;const {group:_0x20ff63,type:_0x1f03b8}=_0x5a34e3(_0x329e3a);if('revision-suggestion'!=_0x20ff63||'insertion'!=_0x1f03b8&&'deletion'!=_0x1f03b8)continue;_0x5718e5[_0x3e1399]['markersEnd']['splice'](_0x32f9ec,0x1),_0x32f9ec--;const _0x3c5f3e=_0x311dfa['findIndex'](_0x199860=>_0x199860['name']==_0x329e3a);_0x3c5f3e>-0x1&&_0x311dfa['splice'](_0x3c5f3e,0x1);}}function _0x5a34e3(_0xd97c18){const _0x623045=_0xd97c18['split'](':');return{'group':_0x623045[0x0],'type':_0x623045[0x1],'subType':_0x623045['length']>=0x5?_0x623045[0x2]:null,'id':_0x623045['length']<0x5?_0x623045[0x2]:_0x623045[0x3],'authorId':_0x623045['length']<0x5?_0x623045[0x3]:_0x623045[0x4],'markerCount':0x6==_0x623045['length']?_0x623045[0x5]:null};}function _0x47e724(_0x309e75){for(let _0x1e1424=0x0;_0x1e1424<_0x311dfa['length'];_0x1e1424++){if(_0x309e75['isAdded']&&'insertion'==_0x311dfa[_0x1e1424]['type']&&_0x309e75['isAdded']['userId']==_0x311dfa[_0x1e1424]['userId'])return _0x309e75['isAddSuggestion']=_0x311dfa[_0x1e1424],void delete _0x309e75['isAdded'];if(!_0x309e75['isAdded']&&!_0x309e75['isRemoved']&&'deletion'==_0x311dfa[_0x1e1424]['type'])return void(_0x309e75['isRemoveSuggestion']=_0x311dfa[_0x1e1424]);}}}['_setDistance'](_0x46ccc2,_0x10f039){let _0x22a6c0=0x0,_0x3eda5c=!0x1;const _0x13a628=new Map();for(const _0x2bf442 of _0x46ccc2)_0x2bf442[_0x10f039]?_0x3eda5c&&(_0x22a6c0++,_0x3eda5c=!0x1):(_0x22a6c0++,_0x3eda5c=!0x0),_0x13a628['set'](_0x2bf442['id'],_0x22a6c0);for(let _0x4bf15a=0x0;_0x4bf15a<_0x46ccc2['length'];_0x4bf15a++){if('isRemoved'==_0x10f039&&_0x46ccc2[_0x4bf15a]['isAdded']||'isAdded'==_0x10f039&&_0x46ccc2[_0x4bf15a]['isRemoved'])continue;if('text'==_0x46ccc2[_0x4bf15a]['type']){_0x46ccc2[_0x4bf15a]['distance']=0x0;continue;}const _0xced3a=_0x13a628['get'](_0x46ccc2[_0x4bf15a]['pairId']),_0xaf7015=_0x13a628['get'](_0x46ccc2[_0x4bf15a]['id']);_0x46ccc2[_0x4bf15a]['distance']=_0xced3a-_0xaf7015;}}['_getRevisionsRange'](_0x4486f2,_0x5ea05a,_0x2b2be5=!0x1){const _0x329e0b=[];let _0x5c34ce=this['repository']['getIndex'](_0x4486f2),_0x14f827=this['repository']['getIndex'](_0x5ea05a);for(-0x1==_0x14f827&&(_0x14f827=this['repository']['_revisions']['length'],_0x2b2be5=!0x1);_0x5c34ce<_0x14f827;)_0x329e0b['push'](this['repository']['getRevision'](_0x5c34ce)),_0x5c34ce++;return _0x2b2be5&&_0x329e0b['push'](this['repository']['getRevision'](_0x5c34ce)),_0x329e0b;}['_threeWayMerge'](_0x5b0936,_0xdffb2c,_0x5ca678,_0x1614fe){const _0x340bfd=this['editor']['model']['schema'];let _0x16c196=_0xdffb2c;for(;_0x5b0936[_0x16c196]&&_0x5b0936[_0x16c196]['isAdded'];)_0x16c196++;let _0x1c14a8=_0x1614fe;for(;_0x5ca678[_0x1c14a8]&&_0x5ca678[_0x1c14a8]['isRemoved'];)_0x1c14a8++;_0xbdc352(_0x5b0936,_0xdffb2c,_0x16c196),_0xbdc352(_0x5ca678,_0x1614fe,_0x1c14a8);const _0x1e8a59=_0x5ca678['slice'](_0x1614fe,_0x1c14a8)['concat'](_0x5b0936['slice'](_0xdffb2c,_0x16c196));return _0x1e8a59['sort']((_0x13f979,_0xecb51e)=>_0x13f979['side']!=_0xecb51e['side']?_0x13f979['side']-_0xecb51e['side']:_0x13f979['level']!=_0xecb51e['level']?_0x13f979['level']-_0xecb51e['level']:_0x13f979['distance']!=_0xecb51e['distance']?_0xecb51e['distance']-_0x13f979['distance']:!!_0x13f979['isAdded']!=!!_0xecb51e['isAdded']?-0x1==_0x13f979['side']||0x0==_0x13f979['side']?_0x13f979['isAdded']?-0x1:0x1:_0x13f979['isAdded']?0x1:-0x1:_0x13f979['index']-_0xecb51e['index']),{'commonTape':_0x1e8a59,'iEnd':_0x16c196,'jEnd':_0x1c14a8};function _0xbdc352(_0x26f8aa,_0x279035,_0x2df4c7){let _0x18d661=-0x1,_0x5d1c05=Number['POSITIVE_INFINITY'],_0x47d733=!0x0;for(let _0x10e134=_0x279035;_0x10e134<_0x2df4c7;_0x10e134++)if(_0x340bfd['isInline'](_0x26f8aa[_0x10e134]['item'])||(_0x47d733=!0x1),_0x26f8aa[_0x10e134]['item']['startIndex']<_0x279035&&(_0x18d661=_0x10e134),_0x26f8aa[_0x10e134]['item']['endIndex']>=_0x2df4c7){_0x5d1c05=_0x10e134;break;}_0x47d733&&(_0x18d661=_0x2df4c7-0x1);for(let _0x4278ec=_0x279035;_0x4278ec<_0x2df4c7;_0x4278ec++)_0x26f8aa[_0x4278ec]['side']=_0x4278ec<=_0x18d661?-0x1:_0x4278ec<_0x5d1c05?0x0:0x1,_0x26f8aa[_0x4278ec]['index']=_0x4278ec;let _0x194ae0=0x0;for(let _0x476d28=_0x279035;_0x476d28<=_0x18d661;_0x476d28++)0x0==_0x26f8aa[_0x476d28]['distance']?_0x26f8aa[_0x476d28]['level']=_0x194ae0:(_0x194ae0++,_0x26f8aa[_0x476d28]['level']=_0x194ae0,_0x194ae0++);for(let _0x305840=_0x279035;_0x305840<_0x2df4c7;_0x305840++)0x0==_0x26f8aa[_0x305840]['side']&&(_0x26f8aa[_0x305840]['level']=_0x194ae0);_0x194ae0=0x0;for(let _0x3df6e0=_0x2df4c7-0x1;_0x3df6e0>=_0x5d1c05;_0x3df6e0--)0x0==_0x26f8aa[_0x3df6e0]['distance']?_0x26f8aa[_0x3df6e0]['level']=_0x194ae0:(_0x194ae0--,_0x26f8aa[_0x3df6e0]['level']=_0x194ae0,_0x194ae0--);}}['_fixObsoleteTags'](_0x412ab6){const _0x123610=new Map(),_0xb53038=this['editor']['model']['schema'];for(let _0x5a9959=0x1;_0x5a9959<_0x412ab6['length'];_0x5a9959++){let _0xa69a28,_0x5cc2d,_0x561a08;const _0x51bd49=_0x412ab6[_0x5a9959],_0x5be72e=_0x412ab6[_0x5a9959-0x1];if('text'==_0x51bd49['type'])continue;if(_0x51bd49['type']!=_0x5be72e['type'])continue;if(!_0xb53038['isBlock'](_0x5be72e['item'])||_0xb53038['isLimit'](_0x5be72e['item']))continue;if(!_0xb53038['isBlock'](_0x51bd49['item'])||_0xb53038['isLimit'](_0x51bd49['item']))continue;if((_0x412ab6[_0x5a9959]['isAdded']||_0x412ab6[_0x5a9959]['isAddSuggestion'])&&_0x412ab6[_0x5a9959-0x1]['isRemoved'])_0xa69a28=_0x412ab6[_0x5a9959],_0x5cc2d=_0x412ab6[_0x5a9959-0x1],_0x561a08=_0x5a9959-0x1;else{if(!_0x412ab6[_0x5a9959]['isRemoved']||!_0x412ab6[_0x5a9959-0x1]['isAdded']&&!_0x412ab6[_0x5a9959-0x1]['isAddSuggestion'])continue;_0xa69a28=_0x412ab6[_0x5a9959-0x1],_0x5cc2d=_0x412ab6[_0x5a9959],_0x561a08=_0x5a9959;}const _0x240cca=_0xa69a28['level']==_0x5cc2d['level'],_0x308347=Math['abs'](_0xa69a28['level'])<Math['abs'](_0x5cc2d['level'])&&0x0==_0x5cc2d['distance'];(_0x240cca||_0x308347)&&(_0x123610['set'](_0x5cc2d['id'],_0xa69a28['id']),_0x412ab6['splice'](_0x561a08,0x1),_0x5a9959--,_0xa69a28['isAdded']=!0x1);}for(let _0xcd9076=0x0;_0xcd9076<_0x412ab6['length'];_0xcd9076++)_0x123610['has'](_0x412ab6[_0xcd9076]['pairId'])&&(_0x412ab6[_0xcd9076]['pairId']=_0x123610['get'](_0x412ab6[_0xcd9076]['pairId']));}['_removeMissingPairs'](_0x5e69fb){const _0x2f0bf7=new Set(_0x5e69fb['map'](_0xe510f1=>_0xe510f1['id']));for(let _0x4def62=0x0;_0x4def62<_0x5e69fb['length'];_0x4def62++)_0x2f0bf7['has'](_0x5e69fb[_0x4def62]['pairId'])||0x0==_0x5e69fb[_0x4def62]['distance']||(_0x5e69fb[_0x4def62]['isIncorrect']=!0x0);return _0x5e69fb['filter'](_0x199028=>!_0x199028['isIncorrect']);}['_markMismatchedRemovedTags'](_0x557eff){const _0x47c100=new Set();for(let _0x3bbac3=0x0;_0x3bbac3<_0x557eff['length'];_0x3bbac3++){if(_0x47c100['has'](_0x557eff[_0x3bbac3]['id'])&&_0x557eff[_0x3bbac3]['isRemoved']&&(_0x557eff[_0x3bbac3]['isIncorrect']=!0x0),_0x557eff[_0x3bbac3]['isIncorrect'])continue;if(0x0==_0x557eff[_0x3bbac3]['distance'])continue;if('elementStart'!=_0x557eff[_0x3bbac3]['type'])continue;if(null==_0x557eff[_0x3bbac3]['pairId'])continue;let _0x225310=_0x3bbac3+0x1,_0x192c74=0x0;for(;_0x557eff[_0x225310]['id']!=_0x557eff[_0x3bbac3]['pairId'];)'elementStart'==_0x557eff[_0x225310]['type']?_0x192c74++:'elementEnd'==_0x557eff[_0x225310]['type']&&_0x192c74--,_0x225310++;if(0x0!=_0x192c74){if(_0x557eff[_0x3bbac3]['isRemoved'])_0x557eff[_0x3bbac3]['isIncorrect']=!0x0;else{for(;_0x225310!=_0x3bbac3;)_0x557eff[_0x225310]['isRemoved']&&0x0!=_0x557eff[_0x225310]['distance']&&(_0x557eff[_0x225310]['isIncorrect']=!0x0,_0x47c100['add'](_0x557eff[_0x225310]['pairId'])),_0x225310--;}}}return _0x557eff['filter'](_0x2299d3=>!_0x2299d3['isIncorrect']);}['_removeUnsupportedChanges'](_0x4fbaba){const _0x3653d8=this['editor']['model']['schema'];for(let _0x1180e5=0x0;_0x1180e5<_0x4fbaba['length'];_0x1180e5++){if(!(_0x4fbaba[_0x1180e5]['isAdded']||_0x4fbaba[_0x1180e5]['isAddSuggestion']||_0x4fbaba[_0x1180e5]['isRemoved']||_0x4fbaba[_0x1180e5]['isRemoveSuggestion']))continue;if(0x0==_0x4fbaba[_0x1180e5]['distance'])continue;const _0x4c48fa=_0x4fbaba[_0x1180e5]['item'];_0x3653d8['isBlock'](_0x4c48fa)||_0x3653d8['isLimit'](_0x4c48fa)||(_0x4fbaba[_0x1180e5]['isAdded']&&delete _0x4fbaba[_0x1180e5]['isAdded'],_0x4fbaba[_0x1180e5]['isAddSuggestion']&&delete _0x4fbaba[_0x1180e5]['isAddSuggestion'],_0x4fbaba[_0x1180e5]['isRemoveSuggestion']&&delete _0x4fbaba[_0x1180e5]['isRemoveSuggestion'],_0x4fbaba[_0x1180e5]['isRemoved']&&(_0x4fbaba[_0x1180e5]['isIncorrect']=!0x0));}return _0x4fbaba['filter'](_0x120501=>!_0x120501['isIncorrect']);}['_makeModelFromTape'](_0x1b2abf,_0x52d207,_0x4aa336){const _0x336ade=new ModelDocumentFragment(),_0x3c5db4=[],_0x5e18f6=new Map(),_0x2ed012=this['editor']['model'],_0x33c6dd=_0x2ed012['schema'],_0xbf66e6=[_0x336ade],_0x411008={},_0x751b19={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2d3c52=null;const _0x53d576=[0x0];for(let _0x217d77=0x0;_0x217d77<_0x1b2abf['length'];_0x217d77++)if('elementStart'===_0x1b2abf[_0x217d77]['type']){_0x1b2abf[_0x217d77]['previousPosition']=_0x2ed012['createPositionFromPath'](_0x336ade,_0x53d576);const _0x4d8248=new ModelElement(_0x1b2abf[_0x217d77]['item']['name'],_0x1b2abf[_0x217d77]['item']['getAttributes']());_0xbf66e6[0x0]['_appendChild'](_0x4d8248),_0x53d576['push'](0x0),_0xbf66e6['unshift'](_0x4d8248),_0x1b2abf[_0x217d77]['nextPosition']=_0x2ed012['createPositionFromPath'](_0x336ade,_0x53d576);}else'elementEnd'===_0x1b2abf[_0x217d77]['type']?(_0xbf66e6['shift'](),_0x1b2abf[_0x217d77]['previousPosition']=_0x2ed012['createPositionFromPath'](_0x336ade,_0x53d576),_0x53d576['pop'](),_0x53d576[_0x53d576['length']-0x1]++,_0x1b2abf[_0x217d77]['nextPosition']=_0x2ed012['createPositionFromPath'](_0x336ade,_0x53d576)):(_0x1b2abf[_0x217d77]['previousPosition']=_0x2ed012['createPositionFromPath'](_0x336ade,_0x53d576),_0x2d3c52?_0x2d3c52['_data']+=_0x1b2abf[_0x217d77]['item']['data']:_0x2d3c52=new ModelText(_0x1b2abf[_0x217d77]['item']['data'],_0x1b2abf[_0x217d77]['item']['getAttributes']()),_0x1b2abf[_0x217d77+0x1]&&'text'===_0x1b2abf[_0x217d77+0x1]['type']&&_0x376f73(_0x2d3c52,_0x1b2abf[_0x217d77+0x1]['item'])||(_0xbf66e6[0x0]['_appendChild'](_0x2d3c52),_0x2d3c52=null),_0x53d576[_0x53d576['length']-0x1]+=_0x1b2abf[_0x217d77]['item']['offsetSize'],_0x1b2abf[_0x217d77]['nextPosition']=_0x2ed012['createPositionFromPath'](_0x336ade,_0x53d576));for(let _0x10433d=0x0;_0x10433d<_0x1b2abf['length'];_0x10433d++){const _0x40e499=_0x1b2abf[_0x10433d]['previousPosition'],_0x3ebddc=_0x1b2abf[_0x10433d]['nextPosition'];for(const _0x518d25 of _0x1b2abf[_0x10433d]['markersStart'])_0x5e18f6['set'](_0x518d25,{'start':_0x40e499,'end':null});_0x11a82f('isRemoveSuggestion',_0x10433d,_0x40e499,_0x3ebddc),_0x11a82f('isAddSuggestion',_0x10433d,_0x40e499,_0x3ebddc),_0x11a82f('isRemoved',_0x10433d,_0x40e499,_0x3ebddc),_0x11a82f('isAdded',_0x10433d,_0x40e499,_0x3ebddc);for(const _0x31a800 of _0x1b2abf[_0x10433d]['markersEnd']){const _0x2c403e=_0x5e18f6['get'](_0x31a800);_0x2c403e?_0x2c403e['end']=_0x3ebddc:_0x5e18f6['set'](_0x31a800,{'start':_0x3ebddc,'end':_0x3ebddc});}}for(const [_0xf9ade8,_0x80e6ff]of _0x5e18f6){const _0x49940f=this['editor']['model']['createRange'](_0x80e6ff['start'],_0x80e6ff['end']);_0x336ade['markers']['set'](_0xf9ade8,_0x49940f);}return _0x3c5db4['sort']((_0x208aa7,_0x40b20b)=>{const _0x108f2b=_0x336ade['markers']['get']('revision:'+_0x208aa7['id']),_0x1c1e89=_0x336ade['markers']['get']('revision:'+_0x40b20b['id']);return _0x108f2b['start']['isBefore'](_0x1c1e89['start'])?-0x1:_0x108f2b['start']['isAfter'](_0x1c1e89['start'])?0x1:_0x108f2b['end']['isBefore'](_0x1c1e89['end'])?-0x1:_0x108f2b['end']['isAfter'](_0x1c1e89['end'])?0x1:'add'===_0x208aa7['type']?-0x1:0x1;}),{'root':_0x336ade,'changes':_0x3c5db4};function _0x11a82f(_0x22a1b4,_0x59e557,_0x2b6ff4,_0x33145c){const _0x253145=!!_0x1b2abf[_0x59e557][_0x22a1b4],_0xa5f8cc=_0x253145?_0x1b2abf[_0x59e557][_0x22a1b4]['userId']:null,_0x368c45=_0x59e557===_0x1b2abf['length']-0x1,_0x503b85=_0x751b19[_0x22a1b4][0x0],_0x27f61e=_0x33c6dd['isObject'](_0x1b2abf[_0x59e557]['item']);!_0x411008[_0x22a1b4]&&_0x253145?_0x411008[_0x22a1b4]={'start':_0x2b6ff4,'tapeItem':_0x1b2abf[_0x59e557],'userId':_0xa5f8cc,'type':_0x22a1b4}:_0x411008[_0x22a1b4]&&!_0x253145?(_0x411008[_0x22a1b4]['end']=_0x2b6ff4,_0x4a0454(_0x411008[_0x22a1b4]),_0x411008[_0x22a1b4]=null):_0x411008[_0x22a1b4]&&_0x253145&&_0x411008[_0x22a1b4]['userId']!==_0xa5f8cc&&(_0x411008[_0x22a1b4]['end']=_0x2b6ff4,_0x503b85&&_0x503b85['userId']===_0x411008[_0x22a1b4]['userId']||_0x4a0454(_0x411008[_0x22a1b4]),_0x411008[_0x22a1b4]={'start':_0x2b6ff4,'tapeItem':_0x1b2abf[_0x59e557],'userId':_0xa5f8cc,'type':_0x22a1b4}),_0x411008[_0x22a1b4]&&_0x27f61e&&('elementStart'!==_0x1b2abf[_0x59e557]['type']||_0x503b85&&_0x503b85['userId']===_0xa5f8cc||_0x751b19[_0x22a1b4]['unshift']({'userId':_0xa5f8cc,'object':_0x1b2abf[_0x59e557]['item'],'change':_0x411008[_0x22a1b4]}),'elementEnd'===_0x1b2abf[_0x59e557]['type']&&_0x503b85&&_0x503b85['object']===_0x1b2abf[_0x59e557]['item']&&(_0x751b19[_0x22a1b4]['shift'](),_0x411008[_0x22a1b4]=_0x503b85['change'])),_0x411008[_0x22a1b4]&&_0x368c45&&(_0x411008[_0x22a1b4]['end']=_0x33145c,_0x4a0454(_0x411008[_0x22a1b4]),_0x411008[_0x22a1b4]=null);}function _0x4a0454({start:_0xdfae69,end:_0x38d2cd,tapeItem:_0x2751e3,userId:_0x127193,type:_0x4db897}){const _0x430ca5=_0x2751e3['item'],_0x29546a=_0x2ed012['schema']['isBlock'](_0x430ca5)&&!_0x2ed012['schema']['isLimit'](_0x430ca5),_0xdfff29=_0xdfae69['nodeAfter']==_0x38d2cd['parent']&&_0x38d2cd['isAtStart'];if(_0x29546a&&_0xdfff29)return;const _0x39c037=_0x2ed012['createRange'](_0xdfae69,_0x38d2cd),_0x3af026=_0x52d207['get'](_0x127193),_0x46f20c=new ChangeItem({'author':_0x3af026,'type':'isAdded'==_0x4db897||'isAddSuggestion'==_0x4db897?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4db897||'isRemoveSuggestion'==_0x4db897},'createdAt':new Date(),'rootName':_0x4aa336});_0x3c5db4['push'](_0x46f20c),_0x336ade['markers']['set']('revision:'+_0x46f20c['id'],_0x39c037);}function _0x376f73(_0x29c8d5,_0x3abb10){const _0x5064db=_0x29c8d5['getAttributes'](),_0x49628c=_0x3abb10['getAttributes']();for(const _0x5007fa of _0x5064db){if(_0x5007fa[0x1]!==_0x3abb10['getAttribute'](_0x5007fa[0x0]))return!0x1;_0x49628c['next']();}return _0x49628c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x257deb=>{const _0x15b098=_0x257deb['markerName']['split'](':')[0x1],_0x10b818=this['_getChangeFromId'](_0x15b098);if(!_0x10b818)return null;const _0x4ae74e='add'==_0x10b818['type']?'insertion':'deletion',_0x527989=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4ae74e];return _0x10b818['data']['isSuggestion']&&_0x527989['push']('ck-suggestion-marker-'+_0x4ae74e+'-new'),this['activeChange']==_0x10b818&&_0x527989['push']('ck-suggestion-marker--active'),{'classes':_0x527989,'attributes':{'data-change-id':_0x15b098}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1801b9=>{_0x1801b9['on']('element:pre',(_0xe9665f,_0x328f9e,_0x21410c)=>{const _0x30507b=_0x328f9e['viewItem']['getChild'](0x0);if(!_0x30507b||!_0x30507b['is']('element','code'))return;if(!_0x21410c['consumable']['consume'](_0x30507b,{'attributes':['vid_start','vid_end']}))return;const _0x219607=_0x328f9e['modelRange']['start']['nodeAfter'];_0x21410c['writer']['setAttribute']('vid_start',_0x30507b['getAttribute']('vid_start'),_0x219607),_0x21410c['writer']['setAttribute']('vid_end',_0x30507b['getAttribute']('vid_end'),_0x219607);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x32a0a1=>{_0x32a0a1['on']('element',(_0x482a8f,_0x563e62,_0x18f511)=>{if(!_0x18f511['consumable']['consume'](_0x563e62['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x563e62['modelRange']['isCollapsed'])return;const _0x4cf7d0=_0x563e62['modelRange']['start']['nodeAfter'];_0x4cf7d0['hasAttribute']('vid_start')||_0x4cf7d0['hasAttribute']('vid')||(_0x18f511['writer']['setAttribute']('vid_start',_0x563e62['viewItem']['getAttribute']('vid_start'),_0x4cf7d0),_0x18f511['writer']['setAttribute']('vid_end',_0x563e62['viewItem']['getAttribute']('vid_end'),_0x4cf7d0));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xe13063=>_0xe13063['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x586d22,[,_0x55de42])=>{['vid_start','vid_end','vid']['includes'](_0x55de42)&&(_0x586d22['return']=!0x0,_0x586d22['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x38ebeb=>{_0x38ebeb['on']('attribute:vid',(_0x5b15b2,_0x414fac,_0x3960f7)=>{if('\x20'!=_0x414fac['item']['data']||_0x414fac['item']['parent']['maxOffset']>0x1)return;if(!_0x3960f7['consumable']['consume'](_0x414fac['item'],_0x5b15b2['name']))return;const _0x39c74a=_0x3960f7['writer'],_0x56eb30=_0x3960f7['mapper']['toViewRange'](_0x414fac['range']);_0x39c74a['wrap'](_0x56eb30,_0x39c74a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',downcastSplitMergeMarker(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x271fea,_0x42a6f9,_0x3cd4b1)=>{const _0x25c6ae=_0x3cd4b1['mapper']['markerNameToElements'](_0x42a6f9['markerName']);if(_0x25c6ae){for(const _0x3fc656 of _0x25c6ae)(_0x3fc656['hasClass']('ck-suggestion-marker-split')||_0x3fc656['hasClass']('ck-suggestion-marker-merge'))&&(_0x3cd4b1['mapper']['unbindElementFromMarkerName'](_0x3fc656,_0x42a6f9['markerName']),_0x3cd4b1['writer']['remove'](_0x3fc656));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xeab2d,_0x544c7f,_0x10b608)=>{const _0x48f404=_0x544c7f['markerName']['split'](':')[0x1],_0x579ea7=this['_getChangeFromId'](_0x48f404);if(!_0x579ea7)return null;const _0x3f8785='add'==_0x579ea7['type']?'split':'merge';if(_0x10b608['consumable']['test'](_0x544c7f['markerRange'],_0xeab2d['name']))for(const _0x18f39a of _0x544c7f['markerRange']['getItems']()){if(!_0x18f39a['is']('element','softBreak'))continue;const _0x2c5d48=_0x10b608['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3f8785}),_0x3da2c1=_0x10b608['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x18f39a));_0x579ea7['data']['isSuggestion']&&_0x10b608['writer']['addClass']('ck-suggestion-marker-'+_0x3f8785+'-new',_0x2c5d48),this['activeChange']==_0x579ea7&&_0x10b608['writer']['addClass']('ck-suggestion-marker--active',_0x2c5d48),_0x10b608['writer']['insert'](_0x3da2c1,_0x2c5d48),_0x10b608['mapper']['bindElementToMarker'](_0x2c5d48,_0x544c7f['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x744788=>{for(const _0x10d031 of this['editor']['model']['document']['getRootNames']()){const _0x511ae3=this['editor']['model']['document']['getRoot'](_0x10d031),_0x412e92=this['editor']['editing']['view']['document']['getRoot'](_0x10d031);if(_0x412e92){const _0x14a521=_0x511ae3['getAttribute']('revisionHistoryAttachChange');if(_0x744788['removeAttribute']('data-change-id',_0x412e92),_0x744788['removeClass']('ck-revision-history-root-add',_0x412e92),_0x744788['removeClass']('ck-revision-history-root-remove',_0x412e92),_0x744788['removeClass']('ck-revision-history-root--active',_0x412e92),_0x14a521){const _0x386fd6=this['_getChangeFromId'](_0x14a521);if(!_0x386fd6)return null;_0x744788['setAttribute']('data-change-id',_0x14a521,_0x412e92),_0x744788['addClass']('ck-revision-history-root-'+_0x386fd6['type'],_0x412e92),this['activeChange']==_0x386fd6&&_0x744788['addClass']('ck-revision-history-root--active',_0x412e92);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4b80ab=>'revision-comment:'+_0x4b80ab,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x119dc5=>'revision-suggestion:'+_0x119dc5,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x48e359=>({'name':'suggestion:'+_0x48e359,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xd447ad=>{const _0x6131a4=_0xd447ad['markerName']['split'](':')[0x1];return'insertion'!=_0x6131a4&&'deletion'!=_0x6131a4?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x6131a4]};}}),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',(_0x5d89fc,_0x6191d8,_0x14eff8)=>{const _0xa39b8e=_0x14eff8['mapper']['markerNameToElements'](_0x6191d8['markerName']);if(_0xa39b8e){for(const _0x1b81b7 of _0xa39b8e)_0x1b81b7['is']('uiElement')&&(_0x14eff8['mapper']['unbindElementFromMarkerName'](_0x1b81b7,_0x6191d8['markerName']),_0x14eff8['writer']['remove'](_0x1b81b7));}},{'priority':'high'});}['_getChangeFromId'](_0xf6ce4f){return this['_changeIdToChange']['get'](_0xf6ce4f);}['_getViewForChange'](_0x16729f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new ChangeDetailsView(this['editor']['locale'],_0x16729f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x348d23,_0x3004ec,_0x536711,_0x3aab13)=>{_0x3aab13&&this['_balloon']['remove'](_0x3aab13),_0x536711&&(this['_balloon']['add']({'view':_0x536711,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3f8c87=this['editor']['editing'],_0x3907df=this['_getChangeFromId'](_0x536711['changeId']);let _0x3b7a68;if(_0x3907df['data']['isOnRoot']){const _0x2336a0=_0x3f8c87['view']['getDomRoot'](_0x3907df['rootName']);_0x3b7a68=Array['from'](_0x2336a0['getClientRects']());}else{const _0x1d2b24=this['editor']['model']['markers']['get']('revision:'+_0x536711['changeId']);_0x3b7a68=Array['from'](_0x3f8c87['mapper']['markerNameToElements'](_0x1d2b24['name']))['map'](_0x38a7c5=>_0x3f8c87['view']['domConverter']['mapViewToDom'](_0x38a7c5))['map'](_0x4ace16=>Array['from'](_0x4ace16['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3b7a68[0x0];return _0x3b7a68['find'](_0xaf94f1=>_0xaf94f1['top']-0x3<=this['_activeViewTarget']['y']&&_0xaf94f1['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xaf94f1['left']-0x3<=this['_activeViewTarget']['x']&&_0xaf94f1['right']+0x3>=this['_activeViewTarget']['x'])||_0x3b7a68[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4ee6f7,_0x558b9c,_0x31a811,_0x2a1969)=>{this['activeView']=_0x31a811?this['_getViewForChange'](_0x31a811):null,this['editor']['model']['change'](()=>{const _0x49c95c=this['editor']['editing'];_0x2a1969&&(_0x2a1969['data']['isOnRoot']?_0x49c95c['view']['change'](_0x2b77a2=>{_0x2b77a2['removeClass']('ck-revision-history-root--active',_0x49c95c['view']['document']['getRoot'](_0x2a1969['rootName']));}):_0x49c95c['reconvertMarker']('revision:'+_0x2a1969['id'])),_0x31a811&&(_0x31a811['data']['isOnRoot']?_0x49c95c['view']['change'](_0x5cd6a7=>{_0x5cd6a7['addClass']('ck-revision-history-root--active',_0x49c95c['view']['document']['getRoot'](_0x31a811['rootName']));}):_0x49c95c['reconvertMarker']('revision:'+_0x31a811['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x219ba1,_0x5f0205)=>{if(this['activeChange'])return;const _0x3629ee=this['_findChangeIdFromDomTarget'](_0x5f0205['target']),_0x453cbe=this['_changeIdToChange']['get'](_0x3629ee);_0x453cbe?(this['_activeViewTarget']={'x':_0x5f0205['domEvent']['x'],'y':_0x5f0205['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x453cbe)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x51dd00,_0x1c7502)=>{const _0x349017=this['_findChangeIdFromDomTarget'](_0x1c7502['target']),_0x1d8935=this['_changeIdToChange']['get'](_0x349017);_0x1d8935?(this['_activeViewTarget']={'x':_0x1c7502['domEvent']['x'],'y':_0x1c7502['domEvent']['y']},_0x1d8935===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x1d8935):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xfaa5ab){do{const _0x1b4f80=_0xfaa5ab['getAttribute']('data-change-id');if(_0x1b4f80)return _0x1b4f80;_0xfaa5ab=_0xfaa5ab['parent'];}while(_0xfaa5ab);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x45b0bd=>{for(const _0x476d6d of this['editor']['model']['markers'])_0x45b0bd['removeMarker'](_0x476d6d);});}}function downcastSplitMergeMarker(_0x390e6a){const _0x30a625=_0x390e6a['plugins']['get']('RevisionViewer');return(_0x5de621,_0x2572c1,_0x242618)=>{const _0x306b18=_0x2572c1['markerName']['split'](':')[0x1],_0x563b46=_0x30a625['_getChangeFromId'](_0x306b18);if(!_0x563b46)return null;const _0x104d8a='add'==_0x563b46['type']?'split':'merge';if(!_0x242618['consumable']['test'](_0x2572c1['markerRange'],_0x5de621['name']))return;const _0x20cabb=_0x2572c1['markerRange']['getWalker'](),_0x2f5136=_0x2572c1['markerRange']['start'],_0x32e946=_0x390e6a['model']['schema'];let _0x3e38c8=null,_0x1799ca=null,_0x5ab60a=!0x1,_0x3d2f9d=!0x1;for(const _0x1ddfa5 of _0x20cabb){const _0x56dd73=_0x1ddfa5['item'];_0x5ab60a=_0x5ab60a||_0x32e946['isContent'](_0x56dd73);const _0x58e32f=_0x242618['mapper']['toViewElement'](_0x56dd73);if(_0x58e32f&&_0x58e32f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1ddfa5['type']&&(_0x32e946['isBlock'](_0x56dd73)&&!_0x32e946['isLimit'](_0x56dd73)&&(_0x56dd73['nextSibling']||_0x2f5136['isAtEnd']?_0x3e38c8&&_0x3e38c8['parent']==_0x56dd73||(_0x3e38c8=_0x56dd73,_0x56d849(_0x1ddfa5['previousPosition']),_0x3d2f9d=!0x0):_0x1799ca=_0x1799ca||_0x1ddfa5['previousPosition']));}function _0x56d849(_0x7794bf){const _0x1134be=_0x242618['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x104d8a}),_0x52849c=_0x242618['mapper']['toViewPosition'](_0x7794bf);_0x563b46['data']['isSuggestion']&&_0x242618['writer']['addClass']('ck-suggestion-marker-'+_0x104d8a+'-new',_0x1134be),_0x30a625['activeChange']==_0x563b46&&_0x242618['writer']['addClass']('ck-suggestion-marker--active',_0x1134be),_0x242618['writer']['insert'](_0x52849c,_0x1134be),_0x242618['mapper']['bindElementToMarker'](_0x1134be,_0x2572c1['markerName']);}_0x5ab60a||_0x3d2f9d||!_0x1799ca||_0x56d849(_0x1799ca);};}function downcastSplitMergeMarkerSuggestion(_0x56eb08,_0x167101){return(_0x47905d,_0x4b04bc,_0x478bb5)=>{if(!_0x478bb5['consumable']['test'](_0x4b04bc['markerRange'],_0x47905d['name']))return;const _0x6144e0=_0x4b04bc['markerRange']['getWalker'](),_0x15390d=_0x4b04bc['markerRange']['start'],_0x1b1d5e=_0x56eb08['model']['schema'];let _0x5d2467=null,_0x37c19a=null,_0x252c73=!0x1,_0x1514d7=!0x1;for(const _0x229465 of _0x6144e0){const _0x365591=_0x229465['item'];_0x252c73=_0x252c73||_0x1b1d5e['isContent'](_0x365591);const _0x2d5c2b=_0x478bb5['mapper']['toViewElement'](_0x365591);if(_0x2d5c2b&&_0x2d5c2b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x229465['type']&&(_0x1b1d5e['isBlock'](_0x365591)&&!_0x1b1d5e['isLimit'](_0x365591)&&(_0x365591['nextSibling']||_0x15390d['isAtEnd']?_0x5d2467&&_0x5d2467['parent']==_0x365591||(_0x5d2467=_0x365591,_0x28cc65(_0x229465['previousPosition']),_0x1514d7=!0x0):_0x37c19a=_0x37c19a||_0x229465['previousPosition']));}function _0x28cc65(_0x148e3a){const _0x50b933=_0x478bb5['mapper']['toViewPosition'](_0x148e3a),_0x324204=_0x478bb5['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x167101});_0x478bb5['writer']['insert'](_0x50b933,_0x324204),_0x478bb5['mapper']['bindElementToMarker'](_0x324204,_0x4b04bc['markerName']);}_0x252c73||_0x1514d7||!_0x37c19a||_0x28cc65(_0x37c19a);};}class RestoreRevisionCommand extends Command{constructor(_0x51bd58){super(_0x51bd58);const _0x1639af=_0x51bd58['plugins']['get'](RevisionViewer);this['affectsData']=!0x1,this['listenTo'](_0x1639af,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1639af,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5d1a42=this['editor'],_0x806bdd=_0x5d1a42['plugins']['get'](RevisionViewer),_0x300db1=_0x806bdd['isReady']?_0x806bdd['diff']['newRevisionId']:null;_0x5d1a42['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x300db1);}['refresh'](){const {isReady:_0x54e241,isEnabled:_0x3693c1,repository:_0x2c6dc5,diff:_0x1ac400}=this['editor']['plugins']['get'](RevisionViewer),_0x1a3ef2=_0x1ac400&&_0x2c6dc5['getLaterVisibleRevision'](_0x1ac400['newRevisionId']);this['isEnabled']=_0x54e241&&_0x3693c1&&Boolean(_0x1a3ef2);}}class ShowChangeCommand extends Command{['_step'];constructor(_0x420c1f,{direction:_0x218f29}){super(_0x420c1f);const _0x4a4593=_0x420c1f['plugins']['get'](RevisionViewer);this['affectsData']=!0x1,this['_step']='forward'===_0x218f29?0x1:-0x1,this['listenTo'](_0x4a4593,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4a4593,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4a4593,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3a9cd3=this['editor'],_0x1b60ae=_0x3a9cd3['plugins']['get'](RevisionViewer),{isNavigationMode:_0x4cee23,currentChangeNumber:_0x5070f7}=_0x1b60ae;let _0x3c79ac;if(_0x1b60ae['activeChange']=_0x4cee23?_0x1b60ae['diff']['changes']['get'](_0x5070f7+this['_step']):_0x1b60ae['diff']['changes']['first'],_0x1b60ae['activeChange']['data']['isOnRoot'])_0x3c79ac=_0x3a9cd3['editing']['view']['getDomRoot'](_0x1b60ae['activeChange']['rootName']);else{const _0x30d57f=_0x3a9cd3['model']['markers']['get']('revision:'+_0x1b60ae['activeChange']['id']);_0x3c79ac=getMarkerDomElement(_0x3a9cd3['editing'],_0x30d57f);}scrollViewportToShowTarget({'target':_0x3c79ac,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x544220,currentChangeNumber:_0x5de5a6,numberOfChanges:_0x3c361c,isReady:_0x46235b,isEnabled:_0x2446d7}=this['editor']['plugins']['get'](RevisionViewer);this['isEnabled']=!!(_0x2446d7&&_0x46235b&&_0x3c361c)&&(!_0x544220||(0x1===this['_step']?_0x5de5a6<_0x3c361c-0x1:_0x5de5a6>0x0));}}class ChangesNavigationView extends View{constructor(_0x3329b7){super(_0x3329b7);const _0x1f11ff=this['bindTemplate'],_0x2d8094=new ButtonView(_0x3329b7),_0x1e0944=new ButtonView(_0x3329b7);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',(_0x51bb9e,_0x46ccfe)=>_0x51bb9e&&_0x46ccfe>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x51c384,_0x49dc41,_0x47d3fc,_0x2ae663)=>{if(!_0x51c384)return getTranslation$5(_0x3329b7,'Loading...');if(!_0x47d3fc)return getTranslation$5(_0x3329b7,'No\x20changes');const _0x2ad1ec=getTranslation$5(_0x3329b7,'NUMBER_OF_CHANGES',_0x47d3fc);return _0x2ae663?getTranslation$5(_0x3329b7,'X_OF_Y_CHANGES',[_0x49dc41+0x1,_0x47d3fc]):_0x2ad1ec;}),_0x2d8094['set']({'label':getTranslation$5(_0x3329b7,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':IconChevronUp}),_0x1e0944['set']({'label':getTranslation$5(_0x3329b7,'Show\x20next\x20change'),'tooltip':!0x0,'icon':IconChevronDown}),_0x2d8094['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1e0944['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2d8094['on']('execute',()=>this['fire']('execute','backward')),_0x1e0944['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',_0x1f11ff['if']('_isStatusLabelVisible','ck-hidden',_0x1aed49=>!_0x1aed49)]},'children':[{'text':_0x1f11ff['to']('isNavigationMode',_0x14e035=>_0x14e035?getTranslation$5(_0x3329b7,'EDIT_X_OF_Y_REVISIONS')+':\x20':getTranslation$5(_0x3329b7,'Total')+':\x20')}]},{'text':_0x1f11ff['to']('_statusText')}]},new ToolbarSeparatorView(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2d8094,_0x1e0944]}]});}}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 _0x24c466=this['editor']['editing']['view'];_0x24c466['change'](_0x3ee07d=>{for(const _0x1c7d64 of _0x24c466['document']['roots'])_0x3ee07d['addClass'](OVERLAY_CSS_CLASS,_0x1c7d64);});}['hide'](){const _0x1c54bb=this['editor']['editing']['view'];_0x1c54bb['change'](_0x5598ed=>{for(const _0x1a3dc8 of _0x1c54bb['document']['roots'])_0x5598ed['removeClass'](OVERLAY_CSS_CLASS,_0x1a3dc8);});}}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 _0x29dc4a=this['editor'],_0x3bdc8e=_0x29dc4a['plugins']['get'](RevisionViewer),_0xbf137f=_0x29dc4a['plugins']['get'](RevisionViewerLoadingOverlay);_0x29dc4a['ui']['componentFactory']['add']('exitToEditing',_0x4d9142=>{const _0x4ea0e3=new ButtonView(_0x4d9142);return _0x4ea0e3['set']({'label':getTranslation$5(_0x4d9142,'Back\x20to\x20editing'),'icon':IconUndo,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4ea0e3,'execute',()=>{_0x29dc4a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4ea0e3;}),_0x29dc4a['ui']['componentFactory']['add']('restoreRevision',_0x433b0d=>{const _0x2d34d4=new ButtonView(_0x433b0d);return _0x2d34d4['set']({'label':getTranslation$5(_0x433b0d,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2d34d4['bind']('isEnabled')['to'](_0x29dc4a['commands']['get']('restoreRevision')),this['listenTo'](_0x2d34d4,'execute',()=>_0x29dc4a['execute']('restoreRevision')),_0x2d34d4;}),_0x29dc4a['ui']['componentFactory']['add']('changesNavigation',_0x3e5dc0=>{const _0x521f50=new ChangesNavigationView(_0x3e5dc0),_0x12b8a6=_0x29dc4a['commands']['get']('showPreviousChange'),_0x27a646=_0x29dc4a['commands']['get']('showNextChange');return _0x521f50['bind']('isBackwardNavigationEnabled')['to'](_0x12b8a6,'isEnabled'),_0x521f50['bind']('isForwardNavigationEnabled')['to'](_0x27a646,'isEnabled'),_0x521f50['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3bdc8e),this['listenTo'](_0x521f50,'execute',(_0x36dd4d,_0x47cfb5)=>{_0x29dc4a['execute']('forward'===_0x47cfb5?'showNextChange':'showPreviousChange');}),_0x521f50;}),_0xbf137f['show'](),_0x3bdc8e['on']('change:isReady',(_0x7bd796,_0x459824,_0x5f24bb)=>{_0x5f24bb?_0xbf137f['hide']():_0xbf137f['show']();});}}class RevisionNameView extends LabeledFieldView{['_resizeObserver']=null;constructor(_0x1872d6,_0x5877a7){super(_0x1872d6,_0x5877a7);const _0x1513d4=this['bindTemplate'];this['set']({'label':getTranslation$5(_0x1872d6,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=getTranslation$5(_0x1872d6,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1513d4['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new _0x14bc1d(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0xf45fe5=this['fieldView']['element'];this['_tooltipString']=_0xf45fe5['scrollWidth']>_0xf45fe5['clientWidth']&&_0xf45fe5['value']||'';}}class RevisionAuthorView extends View{constructor(_0x419ec1,_0x48010f,_0x3fb935){super(_0x419ec1);const _0x367e2b=new IconView();_0x367e2b['set']({'content':IconUser,'viewBox':'0\x200\x2011\x2010'});const _0x37a3c9=['ck','ck-revision-history-sidebar__revision-author'];_0x3fb935&&_0x37a3c9['push']('ck-revision-history-sidebar__revision-author_creator');const _0xd56ced=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':getTranslation$5(_0x419ec1,_0x3fb935?'Revision\x20creator':'Revision\x20author')},'children':[_0x367e2b,_0x48010f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x37a3c9},'children':_0xd56ced});}}function dateToPrettyFormat(_0x509df1,_0x362ff5){return _0x362ff5['toLocaleDateString'](_0x509df1,{'month':'long','day':'numeric'})+',\x20'+_0x362ff5['toLocaleTimeString'](_0x509df1,{'hour':'numeric','minute':'numeric'});}function createActionsDropdownView(_0x16c0e7,_0x114d52){const _0x38320e=_0x16c0e7['bindTemplate'],_0x4170c=_0x16c0e7['locale'],_0x26d796=createDropdown(_0x4170c);_0x26d796['panelPosition']='sw';const _0x100d51=_createDropdownOptions(_0x16c0e7,_0x114d52);return _0x16c0e7['bind']('isActionsDropdownOpen')['to'](_0x26d796,'isOpen'),_0x26d796['buttonView']['set']({'label':getTranslation$5(_0x4170c,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':IconThreeVerticalDots}),_0x26d796['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x38320e['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x38320e['to'](_0x33a5b8=>_0x33a5b8['stopPropagation']())}}),_0x26d796['on']('execute',_0x18d4d9=>{_0x16c0e7['isReady']&&'function'==typeof _0x18d4d9['source']['_action']&&_0x18d4d9['source']['_action'](_0x16c0e7);}),addListToDropdown(_0x26d796,_0x100d51,{'role':'menu'}),_0x26d796['listenTo'](_0x16c0e7,'change:isActionsDropdownOpen',(_0x4542ce,_0x4c33df,_0x57f6fc)=>{if(_0x57f6fc)for(const _0xf1fdb2 of _0x26d796['listView']['items']){const _0x274a03=_0xf1fdb2['children']['first'],_0x2278a8=_0x114d52['find'](_0x54469e=>_0x54469e['action']===_0x274a03['_action'])['isVisible'];_0xf1fdb2['isVisible']=void 0x0===_0x2278a8||_0x2278a8(_0x16c0e7);}}),_0x26d796;}function _createDropdownOptions(_0x47b12e,_0x48e917){const _0x5e07eb=_getLocalizedOptions(_0x47b12e,_0x48e917),_0x26049=new Collection();for(const _0x16aa7 of _0x5e07eb){const _0x48afe={'type':'button','model':new UIModel({'label':_0x16aa7['name'],'class':_0x16aa7['class'],'withText':!0x0,'role':'menuitem','_action':_0x16aa7['action']})};_0x48afe['model']['bind']('isEnabled')['to'](_0x47b12e,'isActionsDropdownOpen',_0x3a755b=>'function'!=typeof _0x16aa7['isEnabled']||(!_0x3a755b||_0x16aa7['isEnabled'](_0x47b12e))),_0x26049['add'](_0x48afe);}return _0x26049;}function _getLocalizedOptions(_0x14e1bd,_0x12264){const _0x6cb15b=_0x14e1bd['locale'],_0x555dc1={'Compare\x20against\x20selected':getTranslation$5(_0x6cb15b,'Compare\x20against\x20selected'),'Name\x20this\x20revision':getTranslation$5(_0x6cb15b,'Name\x20this\x20revision'),'Restore\x20this\x20revision':getTranslation$5(_0x6cb15b,'Restore\x20this\x20revision')};return _0x12264['map'](_0x4cfe9c=>{const _0x45a028=_0x555dc1[_0x4cfe9c['name']];return _0x45a028&&_0x45a028!==_0x4cfe9c['name']&&(_0x4cfe9c['name']=_0x45a028),_0x4cfe9c;});}class RevisionView extends/* #__PURE__ -- @preserve */
ConfirmMixin(View){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x27cf6e,_0x368b88,_0x24611e,_0x2770db){super(_0x27cf6e);const _0x3d658e=this['bindTemplate'],_0x1a057f=getAuthorViews(_0x27cf6e,_0x368b88);this['id']=_0x368b88['id'],this['_revision']=_0x368b88,this['_requireRevisionName']=_0x2770db,this['bind']('name','createdAt')['to'](_0x368b88),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x59af38=>dateToPrettyFormat(_0x27cf6e['uiLanguage'],_0x59af38)),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new RevisionNameView(_0x27cf6e,createLabeledInputText),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1c2b04=>_0x1c2b04||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x400c8d,_0x1c56e9)=>_0x400c8d&&_0x1c56e9),this['revisionActionsView']=_0x24611e&&_0x24611e['length']?createActionsDropdownView(this,_0x24611e):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3d658e['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3d658e['if']('isEnabled','ck-disabled',_0x2c8636=>!_0x2c8636),_0x3d658e['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3d658e['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3d658e['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':_0x3d658e['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':_0x1a057f}]},this['revisionActionsView']],'on':{'click':_0x3d658e['to'](_0x211308=>{_0x211308['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4e3ea3=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4e3ea3,'change',()=>{this['_requireRevisionName']&&!_0x4e3ea3['value']||this['fire']('setName',{'id':this['id'],'name':_0x4e3ea3['value']}),_0x4e3ea3['value']||(_0x4e3ea3['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(_0x36f696,_0x3a2eb1){const _0x100bb9=Array['from'](_0x3a2eb1['authors'])['filter'](_0x3a65c8=>_0x3a65c8!=_0x3a2eb1['creator']);return _0x3a2eb1['creator']&&_0x100bb9['unshift'](_0x3a2eb1['creator']),_0x100bb9['map'](_0x4dc2de=>new RevisionAuthorView(_0x36f696,_0x4dc2de,_0x4dc2de==_0x3a2eb1['creator']));}function getDateTimePeriodInfo(_0x2609b4,_0x3f5621){const _0x1c5e8d=DateTime['fromJSDate'](_0x2609b4)['setLocale'](_0x3f5621),_0x4c5a9d=DateTime['local'](),_0x378bd1=_0x4c5a9d['minus']({'days':0x1})['startOf']('day');let _0x35ba04,_0x360daa;return _0x1c5e8d['hasSame'](_0x4c5a9d,'day')?(_0x35ba04=_0x1c5e8d['startOf']('day')['toJSDate'](),_0x360daa=_0x1c5e8d['toRelativeCalendar']()):_0x1c5e8d['hasSame'](_0x378bd1,'day')?(_0x35ba04=_0x378bd1['toJSDate'](),_0x360daa=_0x1c5e8d['toRelativeCalendar']()):_0x1c5e8d['hasSame'](_0x4c5a9d,'week')?(_0x35ba04=_0x1c5e8d['startOf']('week')['toJSDate'](),_0x360daa=_0x1c5e8d['weekdayLong']||''):_0x1c5e8d['hasSame'](_0x4c5a9d,'year')?(_0x35ba04=_0x1c5e8d['startOf']('month')['toJSDate'](),_0x360daa=_0x1c5e8d['monthLong']||''):(_0x35ba04=_0x1c5e8d['startOf']('year')['toJSDate'](),_0x360daa=String(_0x1c5e8d['year'])),{'startDate':_0x35ba04,'localizedPeriodName':_0x360daa};}class RevisionsSidebarTimePeriodView extends View{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3f6eb4,_0x54def7,_0x51f703,_0x337a63){super(_0x3f6eb4);const _0x2f1fea=getDateTimePeriodInfo(_0x54def7,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x54def7,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x51f703,this['_requireRevisionName']=_0x337a63,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':_0x2f1fea}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x175d4c){const _0x5d4456=new RevisionView(this['locale'],_0x175d4c,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5d4456);}['removeRevision'](_0x3d239d){const _0x571991=this['revisionViews']['find'](_0x46977f=>_0x46977f['id']===_0x3d239d['id']);this['revisionViews']['remove'](_0x571991);}}class RevisionsSidebarHeaderView extends View{constructor(_0x59a101){super(_0x59a101);const _0x5642cd=new IconView();_0x5642cd['content']=IconHistory,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5642cd,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[getTranslation$5(_0x59a101,'Revision\x20history')]}]});}}class RevisionsSidebarView extends View{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2ba706,_0x1089af,_0x47f384,_0x272c33){super(_0x2ba706);const _0x4eca4a=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x1089af,this['_revisionActions']=_0x47f384,this['_requireRevisionName']=_0x272c33,this['on']('select',(_0x220e2b,_0x406b01)=>{this['fire']('revisionSelected',_0x406b01);}),this['on']('setName',(_0x3a26ad,_0x465900)=>{this['fire']('revisionSetName',_0x465900);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new RevisionsSidebarHeaderView(_0x2ba706),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x4eca4a['if']('isEnabled','ck-disabled',_0x2de1a0=>!_0x2de1a0)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x23d4eb of this['_revisions'])this['_addRevision'](_0x23d4eb);this['_revisions']['on']('add',(_0xfd44a6,_0x17bed5)=>{this['_addRevision'](_0x17bed5);}),this['_revisions']['on']('remove',(_0x299ace,_0x53f224)=>{this['_removeRevision'](_0x53f224);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x982fd1=>_0x982fd1['revisionViews']['map'](_0x3311f0=>_0x3311f0))['flat']();}['selectRevision'](_0x133869){for(const _0x237d24 of this['revisionViews'])_0x133869&&_0x133869['id']===_0x237d24['id']?_0x237d24['select']():_0x237d24['deselect']();}['highlightRevisions'](_0x261268){for(const _0x312499 of this['revisionViews'])_0x261268['some'](({id:_0x4f37a0})=>_0x4f37a0===_0x312499['id'])?_0x312499['highlight']():_0x312499['unhighlight']();}['_addRevision'](_0x10e6fb){const _0x43a63c=getDateTimePeriodInfo(_0x10e6fb['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x3aeee2=this['timePeriodViews']['get'](0x0);_0x3aeee2&&_0x3aeee2['startDate']['getTime']()===_0x43a63c['getTime']()||(_0x3aeee2=new RevisionsSidebarTimePeriodView(this['locale'],_0x43a63c,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x3aeee2)),_0x3aeee2['addRevision'](_0x10e6fb);}['_removeRevision'](_0x5ab70d){const _0xcb7275=getDateTimePeriodInfo(_0x5ab70d['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xcb7275)['removeRevision'](_0x5ab70d);}['_getTimePeriodViewByStartDate'](_0x4a3497){return this['timePeriodViews']['find'](_0x389611=>_0x389611['startDate']['getTime']()===_0x4a3497['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(_0x5b531c){super(_0x5b531c),this['_revisionViewer']=_0x5b531c['plugins']['get'](RevisionViewer),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x34cb6b=this['_revisionsRepository']['_revisions'],_0x3c7a7f=this['_createRevisionActions'](),_0x513bce=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new RevisionsSidebarView(this['editor']['locale'],_0x34cb6b,_0x3c7a7f,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',(_0x36372d,_0x40bafb)=>{_0x40bafb['revisionViews']['on']('add',(_0x21b6fe,_0x2e859d)=>{_0x2e859d['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)),_0x513bce['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x54b9a2=this['_revisionsRepository']['getRevision'](0x0);if(_0x54b9a2){const _0xc213b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x54b9a2['id']);this['_revisionViewer']['compare'](_0x54b9a2,_0xc213b);}}['_handleRevisionSelected'](_0x354168,_0x254d73){const _0x3a2074=this['_revisionsRepository']['getRevision'](_0x254d73['id']),_0x172dca=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3a2074['id']);this['_revisionViewer']['compare'](_0x3a2074,_0x172dca);}['_handleRevisionSetName'](_0x23c1b1,_0x2e0b47){this['_revisionsRepository']['getRevision'](_0x2e0b47['id'])['setName'](_0x2e0b47['name']);}['_handleDiffChange'](_0x5a6e01,_0x1a1c51,_0x4806bf){const _0x37f977=this['_revisionsRepository']['getRevisionsInDiff'](_0x4806bf);_0x37f977['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x37f977),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x37f977[0x0]));}['_createRevisionActions'](){const _0x30d56a=this['editor'],_0x1ee737=RevisionsSidebar['availableRevisionActions'],_0x54f217=_0x30d56a['config']['get']('revisionHistory.revisionActions')||RevisionsSidebar['defaultRevisionActions'];if(_0x54f217['length'])return _0x54f217['map'](_0x1ff1b3=>{const _0x3f8f2f='string'==typeof _0x1ff1b3?Object['assign']({},_0x1ee737[_0x1ff1b3]):_0x1ff1b3;return _0x3f8f2f['action']=_0x3f8f2f['action']['bind'](this,_0x30d56a),_0x3f8f2f['isVisible']&&(_0x3f8f2f['isVisible']=_0x3f8f2f['isVisible']['bind'](this,_0x30d56a)),_0x3f8f2f;});}}function availableRevisionActions(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1757a7},_0x390926)=>{const _0x5e4afb=_0x1757a7['get'](RevisionViewer),_0x2af952=_0x5e4afb['repository'];let _0x291cd1=_0x5e4afb['diff']['newRevisionId'],_0x1b1e2e=_0x390926['id'];_0x2af952['getIndex'](_0x291cd1)>_0x2af952['getIndex'](_0x1b1e2e)&&([_0x291cd1,_0x1b1e2e]=[_0x1b1e2e,_0x291cd1]),_0x5e4afb['compare'](_0x291cd1,_0x1b1e2e);},'isVisible':({plugins:_0x55ca98},_0x21e997)=>{const _0x4effb1=_0x55ca98['get'](RevisionViewer);return!(_0x4effb1['repository']['getRevisionsInDiff'](_0x4effb1['diff'])['length']>0x2)&&!_0x21e997['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3cf6b2,{id:_0x2ab7d3})=>{_0x3cf6b2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2ab7d3);},'isVisible':({plugins:_0x5da640},_0xe9dbaa)=>!!_0x5da640['get'](RevisionViewer)['repository']['getLaterVisibleRevision'](_0xe9dbaa['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x207c55},{id:_0x5585b9,revisionNameView:_0x26f68c})=>{const _0x1af3d9=_0x207c55['get'](RevisionViewer),_0x404534=_0x1af3d9['repository']['getEarlierVisibleRevision'](_0x5585b9);_0x1af3d9['compare'](_0x5585b9,_0x404534),_0x26f68c['focus'](),_0x26f68c['fieldView']['select']();}}};}class RevisionViewerEditorUI extends EditorUI{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5006af,_0x9a27c8){super(_0x5006af),this['_view']=_0x9a27c8,this['_toolbarConfig']=normalizeToolbarConfig(_0x5006af['config']['get']('toolbar')),this['_elementReplacer']=new ElementReplacer();}get['element'](){return this['view']['element'];}['init'](_0x52de2c){const _0x225c1b=this['editor'],_0x25fbe5=this['view'],_0x472eb4=_0x225c1b['editing']['view'],_0x4fa5dd=_0x25fbe5['editable'],_0x328038=_0x472eb4['document']['getRoot']();_0x4fa5dd['name']=_0x328038['rootName'],_0x25fbe5['render']();const _0x25bca0=_0x4fa5dd['element'];this['setEditableElement'](_0x4fa5dd['name'],_0x25bca0),_0x25fbe5['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x472eb4['attachDomRoot'](_0x25bca0),this['_elementReplacer']['replace'](_0x52de2c,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2ea89d=this['view'],_0x82deb7=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x82deb7['detachDomRoot'](_0x2ea89d['editable']['name']),_0x2ea89d['destroy']();}['_initToolbar'](){const _0xf5545b=this['view'];_0xf5545b['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xf5545b['stickyPanel']['limiterElement']=_0xf5545b['element'],_0xf5545b['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4f3685})=>_0x4f3685),_0xf5545b['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xf5545b['toolbar']);}}class RevisionViewerEditorUIView extends BoxedEditorUIView{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x55281c,_0xf37046,_0x1e8054={}){super(_0x55281c),this['stickyPanel']=new StickyPanelView(_0x55281c),this['toolbar']=new ToolbarView(_0x55281c,{'shouldGroupWhenFull':_0x1e8054['shouldToolbarGroupWhenFull']}),this['_editable']=new InlineEditableUIView(_0x55281c,_0xf37046);}['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(_0x30d31f,_0x5ecbf5){super(_0x5ecbf5),this['sourceElement']=_0x30d31f,this['model']['document']['createRoot']();const _0x4ac20e=new RevisionViewerEditorUIView(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new RevisionViewerEditorUI(this,_0x4ac20e);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x43c35b,_0x271b19){const _0x3a2b5b=new this(_0x43c35b,_0x271b19);return await _0x3a2b5b['initPlugins'](),await _0x3a2b5b['ui']['init'](_0x43c35b),await _0x3a2b5b['data']['init'](_0x3a2b5b['config']['get']('initialData')||''),_0x3a2b5b['fire']('ready'),_0x3a2b5b;}}const blackListedPlugins$1=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions','AIChatShortcuts','AITranslate'];class RevisionViewerIntegration extends Plugin{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ad922){function _0x1dba92(_0xd5c37f){return _0xd5c37f['map'](_0x543dd8=>String['fromCharCode'](_0x543dd8))['join']('');}super(_0x4ad922),this['result']='end',_0x4ad922[_0x1dba92([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1dba92([0x76,0x69,0x65,0x77])][_0x1dba92([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1dba92([0x61,0x75,0x74,0x6f]),_0x4ad922[_0x1dba92([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1dba92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1dba92([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1dba92([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1dba92([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(_0x34063f){if(super(_0x34063f),!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',_0x9c2ec=>this['_showRevisionViewer']({..._0x9c2ec,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x397484=>this['_closeRevisionViewer'](_0x397484)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x73d8d9=>this['_restoreRevision'](_0x73d8d9)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3e3a34){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3e3a34;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2990ba){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2990ba);}['getRevision'](_0x1b3d28){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1b3d28);}['getRevisions'](_0x5e026d){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5e026d||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xfd037c=this['editor'],_0x494bc1=sanitizeEditorConfig(_0xfd037c,blackListedPlugins$1),_0x3230b8=_0xfd037c['plugins']['get']('RevisionTracker'),_0x2b562c=_0xfd037c['plugins']['get']('Users')['users'];return _0x494bc1['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x494bc1['lazyRoots'],(_0x494bc1['plugins']['push'](RevisionViewerIntegration,RevisionViewer,RevisionViewerUI,class extends Plugin{static get['requires'](){return[RevisionViewer,'Users'];}['init'](){const _0x2f0ea8=this['editor']['plugins']['get']('Users');for(const _0x163c36 of _0x2b562c)_0x163c36['isAnonymous']||_0x2f0ea8['getUser'](_0x163c36['id'])||_0x2f0ea8['addUser'](_0x163c36);const _0xf8cf4d=_0x3230b8['repository']['getRevisions']();let _0x3de044=null;const _0x4a15a6=this['editor']['plugins']['get']('RevisionViewer');_0x4a15a6['adapter']=_0x3230b8['adapter'],_0x4a15a6['bind']('isEnabled')['to'](_0x3230b8),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xfd037c,'isReadOnly',_0x276423=>!_0x276423);for(const _0x5dd66f of _0xf8cf4d){const _0x5afa23=null===_0x5dd66f['creator'];if(_0x5afa23&&_0x5dd66f['toVersion']===_0x5dd66f['fromVersion'])continue;const _0x31577c=_0x5dd66f['toJSON']();_0x4a15a6['addRevisionData'](_0x31577c,(_0x21cf1c,_0x59b24c,_0x434bb1)=>{if(_0x5afa23){if(_0x3de044)_0x3de044['_update'](_0x21cf1c,_0x59b24c);else{if(!_0x59b24c){const _0xfa0f20=_0x434bb1['toJSON']();_0xfa0f20['id']=uid(),_0x3230b8['saveRevision'](_0xfa0f20,_0x434bb1['toVersion'])['then'](_0x52a5f8=>{_0x3de044=_0x52a5f8;});}}}else _0x5dd66f['_update'](_0x21cf1c,_0x59b24c);});}}},RevisionsSidebar),_0x494bc1);}['_enhanceShowRevisionViewerCallback'](){const _0x19c7a6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x28f8a9=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x216e63=this['editor']['plugins']['get']('Autosave');await _0x216e63['save']();}else await _0x28f8a9['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5e5ed6=this['editor']['plugins']['get']('Dialog');_0x5e5ed6['isOpen']&&_0x5e5ed6['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x2720f9=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x3be0d4 of _0x2720f9)_0x3be0d4['class']=_0x3be0d4['class']?_0x3be0d4['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0xef902f=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0xef902f&&_0xef902f['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x7be1eb=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x7be1eb&&_0x7be1eb['setAttribute']('tabindex','-1');}}const _0x192ebc=this['_getRevisionViewerEditorConfig']();return _0x19c7a6(_0x192ebc)['then'](_0x2ff497=>{return(this['_viewerEditor']=_0x2ff497,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'),_0x2ff497);})['catch'](_0x44e004=>(console['error'](_0x44e004),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4309c4=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 _0x251c2e=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x3a96bf of _0x251c2e)_0x3a96bf['class']='ck-tab-panel_disabled'===_0x3a96bf['class']?'':_0x3a96bf['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x296760=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x296760&&_0x296760['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x201331=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x201331&&_0x201331['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x4309c4(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x6b20e9=this['editor']['plugins']['get']('Annotations');_0x6b20e9['refreshVisibility'](),_0x6b20e9['refreshPositioning']();}});});}['_showRevisionViewer'](_0xcd6506){const _0x5da779=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2b09f7=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3945dc=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return RevisionViewerEditor['create'](_0x3945dc,_0xcd6506)['then'](_0x4941c2=>(_0x2b09f7['style']['display']='block',_0x5da779['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x4941c2));}['_closeRevisionViewer'](_0x33634e){const _0x22b7d3=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x22b7d3['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x33634e['destroy']();}async['_restoreRevision'](_0x1d69f7){const _0x57c4cf=this['editor'],_0x388f0c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5c636b=_0x57c4cf['plugins']['get']('RevisionTracker'),_0x33f299=_0x57c4cf['plugins']['get']('RevisionHistoryUtils'),_0x75084a=_0x388f0c['repository']['getRevision'](_0x1d69f7);let _0x2dd15e,_0xc02465,_0x5cfd12;try{await _0x33f299['loadRevisionData'](_0x75084a,this['adapter']),_0x2dd15e=_0x33f299['getRevisionDocumentData'](_0x75084a),_0xc02465=_0x33f299['getRevisionRootsAttributes'](_0x75084a);}catch(_0x256d2c){return void console['error'](_0x256d2c);}_0x57c4cf['model']['change'](_0x3c6a22=>{for(const _0x4374e1 of Array['from'](_0x57c4cf['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3c6a22['removeMarker'](_0x4374e1);}),_0x388f0c['isReady']=!0x1,_0x57c4cf['model']['enqueueChange'](_0x3bfb85=>{_0x3bfb85['setSelection'](null),_0x3bfb85['removeSelectionAttribute'](_0x57c4cf['model']['document']['selection']['getAttributeKeys']());const _0x32d3be=Object['keys'](_0x2dd15e);for(const _0x56cb8b of _0x57c4cf['model']['document']['roots'])'$graveyard'!=_0x56cb8b['rootName']&&_0x56cb8b['isAttached']()&&!_0x32d3be['includes'](_0x56cb8b['rootName'])&&_0x3bfb85['detachRoot'](_0x56cb8b);for(const _0x4fcfcd of _0x32d3be){let _0x3fcd3a=_0x57c4cf['model']['document']['getRoot'](_0x4fcfcd);_0x3fcd3a&&_0x3fcd3a['isAttached']()||(_0x3fcd3a=_0x3bfb85['addRoot'](_0x4fcfcd));const _0x575df9=_0xc02465[_0x4fcfcd],_0x265ef9=Object['keys'](_0x575df9),_0x5a8d2a=_0x2dd15e[_0x4fcfcd];for(const _0x191c5c of _0x3fcd3a['getAttributeKeys']())_0x265ef9['includes'](_0x191c5c)||_0x3bfb85['removeAttribute'](_0x191c5c,_0x3fcd3a);for(const _0x19fdc0 of _0x265ef9)_0x3bfb85['setAttribute'](_0x19fdc0,_0xc02465[_0x4fcfcd][_0x19fdc0],_0x3fcd3a);_0x3bfb85['remove'](_0x3bfb85['createRangeIn'](_0x3fcd3a)),_0x3bfb85['insert'](_0x57c4cf['data']['parse'](_0x5a8d2a,_0x3fcd3a),_0x3fcd3a,0x0);}});const _0x1eb03e=getTranslation$5(_0x57c4cf['locale'],'Restored');if(_0x75084a['name'])_0x5cfd12=-0x1==_0x75084a['name']['indexOf'](_0x1eb03e)?_0x1eb03e+':\x20'+_0x75084a['name']:_0x75084a['name'];else _0x5cfd12=_0x1eb03e+':\x20'+(_0x75084a['createdAt']['toLocaleDateString'](_0x57c4cf['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x75084a['createdAt']['toLocaleTimeString'](_0x57c4cf['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5c636b['saveRevision']({'name':_0x5cfd12}),_0x388f0c['isReady']=!0x0,_0x57c4cf['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}function getTranslation$4(_0x124119,_0xadecd0){const t=_0x124119['t'],_0x1a959f=_0x124119['t'];switch(_0xadecd0){case'AI\x20Assistant':return _0x1a959f('AI\x20Assistant');case'Block\x20quote':return _0x1a959f('Block\x20quote');case'Bulleted\x20list':return _0x1a959f('Bulleted\x20list');case'Insert\x20code\x20block':return _0x1a959f('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x1a959f('Open\x20file\x20manager');case'Insert\x20image':return _0x1a959f('Insert\x20image');case'Heading\x201':return _0x1a959f('Heading\x201');case'Heading\x202':return _0x1a959f('Heading\x202');case'Heading\x203':return _0x1a959f('Heading\x203');case'Heading\x204':return _0x1a959f('Heading\x204');case'Heading\x205':return _0x1a959f('Heading\x205');case'Heading\x206':return _0x1a959f('Heading\x206');case'Horizontal\x20line':return _0x1a959f('Horizontal\x20line');case'Insert\x20HTML':return _0x1a959f('Insert\x20HTML');case'Increase\x20indent':return _0x1a959f('Increase\x20indent');case'Insert\x20table':return _0x1a959f('Insert\x20table');case'Table\x20of\x20contents':return _0x1a959f('Table\x20of\x20contents');case'Numbered\x20list':return _0x1a959f('Numbered\x20list');case'Decrease\x20indent':return _0x1a959f('Decrease\x20indent');case'Paragraph':return _0x1a959f('Paragraph');case'To-do\x20list':return _0x1a959f('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');case'Insert\x20a\x20footnote':return t('Insert\x20a\x20footnote');default:return _0xadecd0;}}class SlashCommandConfig extends Plugin{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3430bf){super(_0x3430bf),this['_allowedCommands']=null;}['afterInit'](){const _0x203236=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x2812fe=getExcludedHeadings(this['editor']['config']['get']('heading.options')),_0x3164fc=this['getDefaultCommands']()['filter'](_0x58aa05=>!_0x2812fe['includes'](_0x58aa05['id']));let _0x216fe4=_0x3164fc['filter'](_0x5dd286=>!_0x203236['includes'](_0x5dd286['commandName']));const _0x4cc596=this['editor']['config']['get']('slashCommand.extraCommands');_0x4cc596&&_0x4cc596['length']&&(_0x216fe4=_0x216fe4['concat'](_0x4cc596));const _0x30d4a2=this['editor']['config']['get']('template.definitions');_0x30d4a2&&_0x30d4a2['length']&&(_0x216fe4=_0x216fe4['concat'](mapTemplates(_0x30d4a2)));const _0x346bd4=this['editor']['config']['get']('style.definitions');_0x346bd4&&_0x346bd4['length']&&(_0x216fe4=_0x216fe4['concat'](mapStyles(_0x346bd4)));const _0x256ccb=_0x216fe4['filter'](_0x35f85a=>!_0x35f85a['commandName']||void 0x0!==this['editor']['commands']['get'](_0x35f85a['commandName'])),_0x40db7e=[];for(const _0x4cddfd of _0x256ccb)_0x40db7e['push']({'id':_0x4cddfd['id'],'commandName':_0x4cddfd['commandName'],'title':'function'==typeof _0x4cddfd['title']?_0x4cddfd['title'](this['editor']):_0x4cddfd['title'],'description':_0x4cddfd['description'],'icon':_0x4cddfd['icon'],'isIconColorInherited':_0x4cddfd['isIconColorInherited'],'aliases':_0x4cddfd['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x4cddfd),'execute':()=>this['_proxyExecute'](_0x4cddfd)});this['_allowedCommands']=_0x40db7e['sort'](compareCommands),checkLicense$4(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x43dc3d=_0x53f178=>getTranslation$4(this['editor']['locale'],_0x53f178);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':IconRobotPencil,'title':_0x43dc3d('AI\x20Assistant'),'description':_0x43dc3d('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x167355=>{setTimeout(()=>_0x167355['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':IconQuote,'title':_0x43dc3d('Block\x20quote'),'description':_0x43dc3d('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':IconBulletedList,'title':_0x43dc3d('Bulleted\x20list'),'description':_0x43dc3d('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':IconCodeBlock,'title':_0x43dc3d('Insert\x20code\x20block'),'description':_0x43dc3d('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x45313f,'title':_0x43dc3d('Open\x20file\x20manager'),'description':_0x43dc3d('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x45313f,'title':_0x43dc3d('Insert\x20image'),'description':_0x43dc3d('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':IconEmoji,'title':_0x43dc3d('Emoji'),'description':_0x43dc3d('Insert\x20an\x20emoji'),'execute':_0x1f654a=>{setTimeout(()=>_0x1f654a['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':IconHeading1,'title':_0x43dc3d('Heading\x201'),'description':_0x43dc3d('Create\x20a\x20heading\x20level\x201'),'execute':_0x2c5391=>{_0x2c5391['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':IconHeading2,'title':_0x43dc3d('Heading\x202'),'description':_0x43dc3d('Create\x20a\x20heading\x20level\x202'),'execute':_0x41b03b=>{_0x41b03b['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':IconHeading3,'title':_0x43dc3d('Heading\x203'),'description':_0x43dc3d('Create\x20a\x20heading\x20level\x203'),'execute':_0x13f09a=>{_0x13f09a['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':IconHeading4,'title':_0x43dc3d('Heading\x204'),'description':_0x43dc3d('Create\x20a\x20heading\x20level\x204'),'execute':_0x422e1f=>{_0x422e1f['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':IconHeading5,'title':_0x43dc3d('Heading\x205'),'description':_0x43dc3d('Create\x20a\x20heading\x20level\x205'),'execute':_0x2d2827=>{_0x2d2827['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':IconHeading6,'title':_0x43dc3d('Heading\x206'),'description':_0x43dc3d('Create\x20a\x20heading\x20level\x206'),'execute':_0x455444=>{_0x455444['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':IconHorizontalLine,'title':_0x43dc3d('Horizontal\x20line'),'description':_0x43dc3d('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':IconHtml,'title':_0x43dc3d('Insert\x20HTML'),'description':_0x43dc3d('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':IconIndent,'title':_0x43dc3d('Increase\x20indent'),'description':_0x43dc3d('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x43dc3d('Insert\x20Mermaid\x20diagram'),'description':_0x43dc3d('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':IconTable,'title':_0x43dc3d('Insert\x20table'),'description':_0x43dc3d('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':IconTableOfContents,'title':_0x43dc3d('Table\x20of\x20contents'),'description':_0x43dc3d('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':IconNumberedList,'title':_0x43dc3d('Numbered\x20list'),'description':_0x43dc3d('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':IconOutdent,'title':_0x43dc3d('Decrease\x20indent'),'description':_0x43dc3d('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':IconParagraph,'title':_0x43dc3d('Paragraph'),'description':_0x43dc3d('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':IconTodoList,'title':_0x43dc3d('To-do\x20list'),'description':_0x43dc3d('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':IconFootnote,'title':_0x43dc3d('Footnote'),'description':_0x43dc3d('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x43ce22){return _0x43ce22['isEnabled']?_0x43ce22['isEnabled'](this['editor']):!_0x43ce22['commandName']||this['editor']['commands']['get'](_0x43ce22['commandName'])['isEnabled'];}['_proxyExecute'](_0x28d720){if(_0x28d720['execute'])_0x28d720['execute'](this['editor']);else{if(!_0x28d720['commandName'])throw new CKEditorError('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x28d720});this['editor']['execute'](_0x28d720['commandName']);}}}function compareCommands(_0x1ac67d,_0x13a8b6){return _0x1ac67d['title']<_0x13a8b6['title']?-0x1:_0x1ac67d['title']>_0x13a8b6['title']?0x1:0x0;}function convertTitleToId(_0x441f6c,_0x1988de){return _0x1988de+'-'+_0x441f6c['toLowerCase']()['split']('\x20')['join']('-');}function mapTemplates(_0x2d1d67){return _0x2d1d67['map'](_0x282c80=>{const {title:_0x81f602,icon:_0x544d52,description:_0x310bcb,data:_0x3dca2b}=_0x282c80,_0xa4fe83={'id':convertTitleToId(_0x81f602,'template'),'commandName':'insertTemplate','execute':_0x1219f9=>{_0x1219f9['execute']('insertTemplate',_0x3dca2b);},'description':_0x310bcb,'icon':_0x544d52,'title':_0x81f602};return _0x544d52&&(_0xa4fe83['isIconColorInherited']=!0x1),_0xa4fe83;});}function mapStyles(_0x1524a5){return _0x1524a5['map'](_0x32dec6=>{const _0x43015f={'id':convertTitleToId(_0x32dec6['name'],'style'),'commandName':'style','execute':_0x14fc83=>{_0x14fc83['execute']('style',{'styleName':_0x32dec6['name']});},'isEnabled':_0x5f1d50=>{const _0x5f525f=_0x5f1d50['commands']['get']('style');return _0x5f525f['isEnabled']&&_0x5f525f['enabledStyles']['includes'](_0x32dec6['name']);},'title':_0x32dec6['name']};return _0x43015f;});}function getExcludedHeadings(_0x13c9f6){let _0x3660dd=['heading4','heading5','heading6'];if(_0x13c9f6){const _0xf442ea=_0x13c9f6['map'](_0x39577b=>_0x39577b['model']);_0x3660dd=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x35b2d8=>!_0xf442ea['includes'](_0x35b2d8));}return _0x3660dd;}async function checkLicense$4(_0x3accb5){const _0xf7b4a2=_0xbb787e([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]),_0x4189ae=window[_0xbb787e([0x44,0x61,0x74,0x65])][_0xbb787e([0x6e,0x6f,0x77])](),_0x384d36=_0x3accb5[_0xbb787e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b5853=new window[(_0xbb787e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10e7d5=>{_0x384d36[_0xbb787e([0x6f,0x6e,0x63,0x65])](_0xbb787e([0x72,0x65,0x61,0x64,0x79]),_0x10e7d5);}),_0x145079={[_0xbb787e([0x6b,0x74,0x79])]:_0xbb787e([0x45,0x43]),[_0xbb787e([0x75,0x73,0x65])]:_0xbb787e([0x73,0x69,0x67]),[_0xbb787e([0x63,0x72,0x76])]:_0xbb787e([0x50,0x2d,0x32,0x35,0x36]),[_0xbb787e([0x78])]:_0xbb787e([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]),[_0xbb787e([0x79])]:_0xbb787e([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]),[_0xbb787e([0x61,0x6c,0x67])]:_0xbb787e([0x45,0x53,0x32,0x35,0x36])},_0x415839=_0x384d36[_0xbb787e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xbb787e([0x67,0x65,0x74])](_0xbb787e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x2954b1=await(async function(){let _0x407fb7,_0x35fb09=null,_0x3a845c=null;try{if(_0x415839==_0xbb787e([0x47,0x50,0x4c]))return _0xbb787e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x407fb7=(function(){const _0x3ddb60=_0x415839[_0xbb787e([0x73,0x70,0x6c,0x69,0x74])](_0xbb787e([0x2e]));if(0x3!=_0x3ddb60[_0xbb787e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x25606e=_0x3ddb60[0x1];return _0x5433d4(_0x25606e);function _0x5433d4(_0x4758ca){const _0x2f24fd=_0x32e4de(_0x4758ca);return _0x2f24fd&&_0x5eda57()?_0x2f24fd:null;function _0x5eda57(){const _0x2e65c6=_0x2f24fd[_0xbb787e([0x6a,0x74,0x69])],_0x39a2cb=window[_0xbb787e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e65c6[_0xbb787e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e65c6[_0xbb787e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2fc432={..._0x2f24fd,[_0xbb787e([0x6a,0x74,0x69])]:_0x2e65c6[_0xbb787e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e65c6[_0xbb787e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2fc432[_0xbb787e([0x76,0x63])],_0xbb292(_0x2fc432)==_0x39a2cb;}}}()),!_0x407fb7)return _0xbb787e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x407fb7[_0xbb787e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3a845c=function(_0x513344,_0x390889){return new window[(_0xbb787e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35dad4=>{if(_0x14f15f())return _0x35dad4(_0xbb787e([0x56,0x61,0x6c,0x69,0x64]));_0x425c1b(),_0x384d36[_0xbb787e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xbb787e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2a6fa7=!0x1;const _0x4de09a=uid();function _0x5d79f6(_0x2ea207){return!!_0x2ea207&&(typeof _0x2ea207===_0xbb787e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ea207===_0xbb787e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ea207[_0xbb787e([0x74,0x68,0x65,0x6e])]===_0xbb787e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ea207[_0xbb787e([0x63,0x61,0x74,0x63,0x68])]===_0xbb787e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x561bff(_0x2f0d24){_0x26876d(_0x2f0d24)[_0xbb787e([0x74,0x68,0x65,0x6e])](_0x1b45dd=>{if(!_0x1b45dd||_0x1b45dd[_0xbb787e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xbb787e([0x6f,0x6b]))return _0xbb787e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x20c39c(_0xbb292(_0x4de09a+_0x390889))!=_0x1b45dd[_0xbb787e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xbb787e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xbb787e([0x56,0x61,0x6c,0x69,0x64]);})[_0xbb787e([0x74,0x68,0x65,0x6e])](_0x1de908=>(_0x422c78(),_0x1de908),()=>{const _0x4bca42=_0x50a8e0();return null==_0x4bca42?(_0x422c78(),_0xbb787e([0x56,0x61,0x6c,0x69,0x64])):_0xbb787e(_0x4189ae-_0x4bca42>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xbb787e([0x74,0x68,0x65,0x6e])](_0x35dad4)[_0xbb787e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x35dad4(_0xbb787e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x51b220=0x36ee80;function _0x422c78(){const _0x452169=_0xbb787e([0x6c,0x6c,0x63,0x74,0x2d])+_0x20c39c(_0xbb292(_0x513344)),_0x5f3051=_0x296ac1(_0x20c39c(window[_0xbb787e([0x4d,0x61,0x74,0x68])][_0xbb787e([0x63,0x65,0x69,0x6c])](_0x4189ae/_0x51b220)));window[_0xbb787e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbb787e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x452169,_0x5f3051);}function _0x50a8e0(){const _0x144d81=_0xbb787e([0x6c,0x6c,0x63,0x74,0x2d])+_0x20c39c(_0xbb292(_0x513344)),_0x24f930=window[_0xbb787e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbb787e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x144d81);return _0x24f930?window[_0xbb787e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x296ac1(_0x24f930),0x10)*_0x51b220:null;}function _0x26876d(_0x44bec5){return new window[(_0xbb787e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b6723,_0x171963)=>{_0x44bec5[_0xbb787e([0x74,0x68,0x65,0x6e])](_0x5b6723,_0x171963),window[_0xbb787e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x171963,0x1d4c0);});}}_0x384d36[_0xbb787e([0x6f,0x6e])](_0xbb787e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x422507,_0x1ce13a)=>{if(_0x1ce13a[0x0]!=_0x513344)return _0x35dad4(_0xbb787e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ce13a[0x1]={..._0x1ce13a[0x1],[_0xbb787e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4de09a};},{[_0xbb787e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbb787e([0x68,0x69,0x67,0x68])}),_0x384d36[_0xbb787e([0x6f,0x6e])](_0xbb787e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1be505=>{_0x5d79f6(_0x1be505[_0xbb787e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2a6fa7=!0x0,_0x561bff(_0x1be505[_0xbb787e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xbb787e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbb787e([0x6c,0x6f,0x77])}),_0x2b5853[_0xbb787e([0x74,0x68,0x65,0x6e])](()=>{_0x2a6fa7||_0x35dad4(_0xbb787e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x14f15f(){return _0x384d36[_0xbb787e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbb787e([0x76,0x69,0x65,0x77])][_0xbb787e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xbb787e([0x61,0x75,0x74,0x6f]);}function _0x425c1b(){_0x384d36[_0xbb787e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbb787e([0x76,0x69,0x65,0x77])][_0xbb787e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xbb787e([0x61,0x75,0x74,0x6f]);}}(_0x407fb7[_0xbb787e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x407fb7[_0xbb787e([0x6a,0x74,0x69])]));const _0x10cdab=await(async function(){let _0x2aa8f1=!0x0;try{const _0xb9eb12=_0x415839[_0xbb787e([0x73,0x70,0x6c,0x69,0x74])](_0xbb787e([0x2e])),[_0x5518b0,_0x16f908,_0x3e7b75]=_0xb9eb12;return _0x699eef(_0x5518b0),await _0x30c9b2(_0x5518b0,_0x16f908,_0x3e7b75),_0x2aa8f1;}catch{return!0x1;}function _0x699eef(_0xd16f87){const _0x469a3b=_0x32e4de(_0xd16f87);_0x469a3b&&_0x469a3b[_0xbb787e([0x61,0x6c,0x67])]==_0xbb787e([0x45,0x53,0x32,0x35,0x36])||(_0x2aa8f1=!0x1);}async function _0x30c9b2(_0x4aff8e,_0x55aae7,_0x54ad48){const _0x1d3cc8=window[_0xbb787e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xbb787e([0x66,0x72,0x6f,0x6d])](_0x332059(_0x54ad48),_0x3d5608=>_0x3d5608[_0xbb787e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x134b62=new window[(_0xbb787e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xbb787e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4aff8e+_0xbb787e([0x2e])+_0x55aae7),_0x23a7dc=window[_0xbb787e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xbb787e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23a7dc)return;const _0x2ee174=await _0x23a7dc[_0xbb787e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xbb787e([0x6a,0x77,0x6b]),_0x145079,{[_0xbb787e([0x6e,0x61,0x6d,0x65])]:_0xbb787e([0x45,0x43,0x44,0x53,0x41]),[_0xbb787e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xbb787e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xbb787e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23a7dc[_0xbb787e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xbb787e([0x6e,0x61,0x6d,0x65])]:_0xbb787e([0x45,0x43,0x44,0x53,0x41]),[_0xbb787e([0x68,0x61,0x73,0x68])]:{[_0xbb787e([0x6e,0x61,0x6d,0x65])]:_0xbb787e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2ee174,_0x1d3cc8,_0x134b62)||(_0x2aa8f1=!0x1);}}());return _0x10cdab?(function(){const _0x503e6e=_0x407fb7[_0xbb787e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x503e6e)return!0x1;if(_0x503e6e[_0xbb787e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbb787e([0x2a])))return!0x0;if(_0x503e6e[_0xbb787e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbb787e([0x53,0x43])))return!0x0;if(_0x503e6e[_0xbb787e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbb787e([0x50,0x50])))return!0x0;if(_0x503e6e[_0xbb787e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbb787e([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0xbb787e([0x67,0x6c,0x6f,0x62])]&&window[_0xbb787e([0x67,0x6c,0x6f,0x62])][_0xbb787e([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x4ab716=[_0xbb787e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xbb787e([0x74,0x72,0x69,0x61,0x6c])][_0xbb787e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x407fb7[_0xbb787e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4189ae/0x3e8:0x69e96100;return _0x407fb7[_0xbb787e([0x65,0x78,0x70])]<_0x4ab716;}())?_0xbb787e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x41b01d=_0x407fb7[_0xbb787e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x41b01d||0x0==_0x41b01d[_0xbb787e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x344b52}=new URL(window[_0xbb787e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x41b01d[_0xbb787e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x344b52))return!0x0;const _0x21ce97=_0x344b52[_0xbb787e([0x73,0x70,0x6c,0x69,0x74])](_0xbb787e([0x2e]));return _0x41b01d[_0xbb787e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a3093=>_0x2a3093[_0xbb787e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbb787e([0x2a])))[_0xbb787e([0x6d,0x61,0x70])](_0x226f01=>_0x226f01[_0xbb787e([0x73,0x70,0x6c,0x69,0x74])](_0xbb787e([0x2e])))[_0xbb787e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50a365=>_0x50a365[_0xbb787e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x21ce97[_0xbb787e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xbb787e([0x6d,0x61,0x70])](_0x8177f=>Array(_0x21ce97[_0xbb787e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x8177f[_0xbb787e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xbb787e([0x66,0x69,0x6c,0x6c])](_0x8177f[0x0]===_0xbb787e([0x2a])?_0xbb787e([0x2a]):'')[_0xbb787e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x8177f))[_0xbb787e([0x73,0x6f,0x6d,0x65])](_0x399066=>_0x21ce97[_0xbb787e([0x65,0x76,0x65,0x72,0x79])]((_0xed8afb,_0x110bf7)=>_0x399066[_0x110bf7]===_0xed8afb||_0x399066[_0x110bf7]===_0xbb787e([0x2a])));}())?(_0x407fb7[_0xbb787e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbb787e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x35fb09=function(_0xd0e38f){const _0x297c7b=new window[(_0xbb787e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x308fb3=>setTimeout(_0x308fb3,0x93ecc)),_0xa3cde3=_0x2b5853[_0xbb787e([0x74,0x68,0x65,0x6e])](()=>new window[(_0xbb787e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e950d=>{let _0x400a0a=0x0;_0x384d36[_0xbb787e([0x6d,0x6f,0x64,0x65,0x6c])][_0xbb787e([0x6f,0x6e])](_0xbb787e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5f4c62,_0xcb2158)=>{_0xcb2158[0x0][_0xbb787e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x400a0a++,0x5e8==_0x400a0a&&(_0x4e950d(),_0x5f4c62[_0xbb787e([0x6f,0x66,0x66])]());});})),_0x5c9878=[_0x297c7b,_0xa3cde3];return window[_0xbb787e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xbb787e([0x72,0x61,0x63,0x65])](_0x5c9878)[_0xbb787e([0x74,0x68,0x65,0x6e])](()=>_0xd0e38f);}(_0xbb787e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x35fb09&&_0x3a845c)return new window[(_0xbb787e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x469228,_0x51bd9b)=>{_0x35fb09[_0xbb787e([0x74,0x68,0x65,0x6e])](_0x469228,_0x51bd9b),_0x3a845c[_0xbb787e([0x74,0x68,0x65,0x6e])](_0x170f79=>{_0x170f79!=_0xbb787e([0x56,0x61,0x6c,0x69,0x64])&&_0x469228(_0x170f79);},_0x51bd9b);});return _0x35fb09||_0x3a845c||_0xbb787e([0x56,0x61,0x6c,0x69,0x64]);}())):_0xbb787e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xbb787e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xbb787e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xbb787e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x32e4de(_0x470b0d){return _0x470b0d[_0xbb787e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xbb787e([0x65,0x79]))?JSON[_0xbb787e([0x70,0x61,0x72,0x73,0x65])](_0x332059(_0x470b0d)):null;}function _0x332059(_0x9de059){return window[_0xbb787e([0x61,0x74,0x6f,0x62])](_0x9de059[_0xbb787e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xbb787e([0x2b]))[_0xbb787e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xbb787e([0x2f])));}function _0xbb292(_0x2eefe8){let _0x2c2993=0x1505;function _0x3ab446(_0x45ae46){for(let _0x4a896d=0x0;_0x4a896d<_0x45ae46[_0xbb787e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a896d++){const _0x5ea3f8=_0x45ae46[_0xbb787e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4a896d);_0x2c2993=(_0x2c2993<<0x5)+_0x2c2993+_0x5ea3f8,_0x2c2993&=_0x2c2993;}}return function _0x1b772f(_0x415e1c){Array[_0xbb787e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x415e1c)?_0x415e1c[_0xbb787e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1b772f):_0x415e1c&&typeof _0x415e1c==_0xbb787e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xbb787e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x415e1c)[_0xbb787e([0x73,0x6f,0x72,0x74])]()[_0xbb787e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c974e,_0x57b4c0])=>{_0x3ab446(_0x3c974e),_0x1b772f(_0x57b4c0);}):_0x3ab446(window[_0xbb787e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x415e1c));}(_0x2eefe8),_0x2c2993>>>0x0;}function _0x20c39c(_0x2e222b){return _0x2e222b[_0xbb787e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xbb787e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xbb787e([0x30]));}function _0x296ac1(_0x536270){return _0x536270[_0xbb787e([0x73,0x70,0x6c,0x69,0x74])]('')[_0xbb787e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xbb787e([0x6a,0x6f,0x69,0x6e])]('');}function _0x376773(){}function _0xbb787e(_0x1f82a8){return _0x1f82a8['map'](_0x6191c9=>String['fromCharCode'](_0x6191c9))['join']('');}!function(_0x58b697){const _0x3af1b2=(function(){const _0x4c9cb3=window[_0xbb787e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xbb787e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xbb787e([0x6e,0x6f,0x77])]())[_0xbb787e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xbb787e([0x2e]),'');let _0x4c4fa6=_0xbb787e([0x75]);for(let _0x114ded=0x0;_0x114ded<_0x4c9cb3[_0xbb787e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x114ded+=0x2){let _0x2983f2=window[_0xbb787e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c9cb3[_0xbb787e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x114ded,_0x114ded+0x2));_0x2983f2>=_0xf7b4a2[_0xbb787e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2983f2-=_0xf7b4a2[_0xbb787e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4c4fa6+=_0xf7b4a2[_0x2983f2];}return _0x4c4fa6;}());_0x384d36[_0x3af1b2]=_0xbb787e([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x58b697,_0x58b697!=_0xbb787e([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x2b5853,_0x384d36[_0xbb787e([0x6d,0x6f,0x64,0x65,0x6c])][_0xbb787e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x376773,_0x384d36[_0xbb787e([0x6d,0x6f,0x64,0x65,0x6c])][_0xbb787e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x376773,_0x384d36[_0xbb787e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xbb787e([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x2954b1);}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'](_0x360cb7){const _0xf67bd4=_0x360cb7&&_0x360cb7['toLowerCase']();let _0xb4d399=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0xb4d399=_0xb4d399['filter'](_0x481cce=>_0x481cce['isEnabled']()),_0xf67bd4){const _0x1c095b=[],_0x29cbf2=[],_0x1756d9=[],_0x47dc95=[];for(const _0x1e7bd0 of _0xb4d399)_0x1e7bd0['id']['toLowerCase']()['includes'](_0xf67bd4)?_0x1c095b['push'](_0x1e7bd0):_0x1e7bd0['title']['toLowerCase']()['includes'](_0xf67bd4)?_0x29cbf2['push'](_0x1e7bd0):_0x1e7bd0['aliases']&&_0x1e7bd0['aliases']['some'](_0x487886=>_0x487886['toLowerCase']()['includes'](_0xf67bd4))?_0x1756d9['push'](_0x1e7bd0):_0x1e7bd0['description']&&_0x1e7bd0['description']['toLowerCase']()['includes'](_0xf67bd4)&&_0x47dc95['push'](_0x1e7bd0);_0xb4d399=_0x1c095b['concat'](_0x29cbf2,_0x1756d9,_0x47dc95);}return _0xb4d399;}}class SlashCommandButtonView extends ButtonView{constructor(_0x440ca8,_0x50a630){super(_0x440ca8),this['textPartView']=this['_createTextPartView'](_0x440ca8,_0x50a630),void 0x0!==_0x50a630['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x50a630['isIconColorInherited']),this['set']({'icon':_0x50a630['icon']||IconPlay,'withText':!0x0,'label':_0x50a630['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x5bac6a,_0x455697){const _0x45cab2=new View(_0x5bac6a);return _0x45cab2['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x455697['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x455697['description']}]}]:[this['labelView']]}),_0x45cab2;}}class SlashCommandUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa1338){super(_0xa1338),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x466997=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x91fd68;for(const _0x5b31c4 in _0x466997){const _0x4ca590=_0x5b31c4,_0x5b11de=_0x466997[_0x4ca590];if('slashCommandLicenseKeyValid'==_0x5b11de||'slashCommandLicenseKeyInvalid'==_0x5b11de||'slashCommandLicenseKeyExpired'==_0x5b11de||'slashCommandLicenseKeyDomainLimit'==_0x5b11de||'slashCommandLicenseKeyNotAllowed'==_0x5b11de||'slashCommandLicenseKeyEvaluationLimit'==_0x5b11de||'slashCommandLicenseKeyUsageLimit'==_0x5b11de){delete _0x466997[_0x4ca590],_0x91fd68=_0x5b11de,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x91fd68&&_0x466997['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x91fd68&&_0x466997['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x91fd68&&_0x466997['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x91fd68&&_0x466997['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x91fd68&&_0x466997['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x91fd68&&_0x466997['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x3918a0=this['editor'],_0xb3d14b=this['editor']['plugins']['get']('SlashCommandEditing'),_0xfd377f=_0x3918a0['config']['get']('mention.feeds');_0xfd377f['push']({'marker':'/','feed':_0x10a4e9=>_0xb3d14b['getMatchingCommands'](_0x10a4e9),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x3918a0['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x3918a0['config']['set']('mention.feeds',_0xfd377f);}['_overrideMentionExecuteListener'](){const _0x54bfd5=this['editor'];_0x54bfd5['commands']['get']('mention')['on']('execute',(_0x237038,_0x352608)=>{const _0x289d5f=_0x352608[0x0],_0x52b3ab=_0x54bfd5['model'];'/'===_0x289d5f['marker']&&_0x52b3ab['change'](_0x26e312=>{_0x26e312['remove'](_0x289d5f['range']),_0x289d5f['mention']['execute'](),_0x237038['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x3921ad){const _0x28543e=this['editor']['locale'],_0x2c357b=new SlashCommandButtonView(_0x28543e,_0x3921ad);return _0x2c357b['render'](),_0x2c357b['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(_0x190fda,_0x423a19){const t=_0x190fda['t'];switch(_0x423a19){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 _0x423a19;}}function getActiveRootName(_0x31fffc){const _0x1ae77d=_0x31fffc['editing']['view']['document']['roots'],_0x15cc2d=_0x1ae77d['length'];if(0x0===_0x15cc2d)throw new CKEditorError('source-editing-enhanced-editor-no-root',_0x31fffc);if(0x1===_0x15cc2d)return _0x1ae77d['first']['rootName'];return Array['from'](_0x31fffc['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function formatSource(_0x1cdead){return isHtml(_0x1cdead)?formatHtml(_0x1cdead):_0x1cdead;}function unformatSource(_0x1ab307){return isHtml(_0x1ab307['replace'](/^[\n\s]*/g,''))?_0x1ab307['replace'](/\s+/g,''):_0x1ab307;}function isHtml(_0x182cb5){return _0x182cb5['startsWith']('<');}let rangeFrom=[],rangeTo=[];function isExtendingChar(_0xd39d13){if(_0xd39d13<0x300)return!0x1;for(let _0x542fb5=0x0,_0x43a551=rangeFrom['length'];;){let _0xa1c3dd=_0x542fb5+_0x43a551>>0x1;if(_0xd39d13<rangeFrom[_0xa1c3dd])_0x43a551=_0xa1c3dd;else{if(!(_0xd39d13>=rangeTo[_0xa1c3dd]))return!0x0;_0x542fb5=_0xa1c3dd+0x1;}if(_0x542fb5==_0x43a551)return!0x1;}}function isRegionalIndicator(_0x2862ea){return _0x2862ea>=0x1f1e6&&_0x2862ea<=0x1f1ff;}((()=>{let _0x348d62='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'](_0x1142a1=>_0x1142a1?parseInt(_0x1142a1,0x24):0x1);for(let _0x256ab4=0x0,_0x1df59a=0x0;_0x256ab4<_0x348d62['length'];_0x256ab4++)(_0x256ab4%0x2?rangeTo:rangeFrom)['push'](_0x1df59a+=_0x348d62[_0x256ab4]);})());const ZWJ=0x200d;function findClusterBreak$1(_0x3c2daf,_0x41d124,_0x168740=!0x0,_0x537373=!0x0){return(_0x168740?nextClusterBreak:prevClusterBreak)(_0x3c2daf,_0x41d124,_0x537373);}function nextClusterBreak(_0x54a8b1,_0x47e32a,_0x123c70){if(_0x47e32a==_0x54a8b1['length'])return _0x47e32a;_0x47e32a&&surrogateLow$1(_0x54a8b1['charCodeAt'](_0x47e32a))&&surrogateHigh$1(_0x54a8b1['charCodeAt'](_0x47e32a-0x1))&&_0x47e32a--;let _0xfb9e36=codePointAt$1(_0x54a8b1,_0x47e32a);for(_0x47e32a+=codePointSize$1(_0xfb9e36);_0x47e32a<_0x54a8b1['length'];){let _0x28fe5e=codePointAt$1(_0x54a8b1,_0x47e32a);if(_0xfb9e36==ZWJ||_0x28fe5e==ZWJ||_0x123c70&&isExtendingChar(_0x28fe5e))_0x47e32a+=codePointSize$1(_0x28fe5e),_0xfb9e36=_0x28fe5e;else{if(!isRegionalIndicator(_0x28fe5e))break;{let _0x402f90=0x0,_0x97850e=_0x47e32a-0x2;for(;_0x97850e>=0x0&&isRegionalIndicator(codePointAt$1(_0x54a8b1,_0x97850e));)_0x402f90++,_0x97850e-=0x2;if(_0x402f90%0x2==0x0)break;_0x47e32a+=0x2;}}}return _0x47e32a;}function prevClusterBreak(_0x41515b,_0x311eeb,_0x118829){for(;_0x311eeb>0x0;){let _0x4faf90=nextClusterBreak(_0x41515b,_0x311eeb-0x2,_0x118829);if(_0x4faf90<_0x311eeb)return _0x4faf90;_0x311eeb--;}return 0x0;}function codePointAt$1(_0x5c501d,_0x135429){let _0x2fafca=_0x5c501d['charCodeAt'](_0x135429);if(!surrogateHigh$1(_0x2fafca)||_0x135429+0x1==_0x5c501d['length'])return _0x2fafca;let _0x840840=_0x5c501d['charCodeAt'](_0x135429+0x1);return surrogateLow$1(_0x840840)?_0x840840-0xdc00+(_0x2fafca-0xd800<<0xa)+0x10000:_0x2fafca;}function surrogateLow$1(_0x45f799){return _0x45f799>=0xdc00&&_0x45f799<0xe000;}function surrogateHigh$1(_0x3ec18e){return _0x3ec18e>=0xd800&&_0x3ec18e<0xdc00;}function codePointSize$1(_0x1ca72e){return _0x1ca72e<0x10000?0x1:0x2;}class Text{['lineAt'](_0x49546){if(_0x49546<0x0||_0x49546>this['length'])throw new RangeError('Invalid\x20position\x20'+_0x49546+'\x20in\x20document\x20of\x20length\x20'+this['length']);return this['lineInner'](_0x49546,!0x1,0x1,0x0);}['line'](_0x1993d6){if(_0x1993d6<0x1||_0x1993d6>this['lines'])throw new RangeError('Invalid\x20line\x20number\x20'+_0x1993d6+'\x20in\x20'+this['lines']+'-line\x20document');return this['lineInner'](_0x1993d6,!0x0,0x1,0x0);}['replace'](_0xd4912e,_0xeaf060,_0x40ee24){[_0xd4912e,_0xeaf060]=clip(this,_0xd4912e,_0xeaf060);let _0x4fd357=[];return this['decompose'](0x0,_0xd4912e,_0x4fd357,0x2),_0x40ee24['length']&&_0x40ee24['decompose'](0x0,_0x40ee24['length'],_0x4fd357,0x3),this['decompose'](_0xeaf060,this['length'],_0x4fd357,0x1),TextNode['from'](_0x4fd357,this['length']-(_0xeaf060-_0xd4912e)+_0x40ee24['length']);}['append'](_0x1f490e){return this['replace'](this['length'],this['length'],_0x1f490e);}['slice'](_0x9f25b9,_0xd76892=this['length']){[_0x9f25b9,_0xd76892]=clip(this,_0x9f25b9,_0xd76892);let _0x31edf6=[];return this['decompose'](_0x9f25b9,_0xd76892,_0x31edf6,0x0),TextNode['from'](_0x31edf6,_0xd76892-_0x9f25b9);}['eq'](_0x4688ef){if(_0x4688ef==this)return!0x0;if(_0x4688ef['length']!=this['length']||_0x4688ef['lines']!=this['lines'])return!0x1;let _0x2d086a=this['scanIdentical'](_0x4688ef,0x1),_0x327685=this['length']-this['scanIdentical'](_0x4688ef,-0x1),_0x3004e8=new RawTextCursor(this),_0x14dbe8=new RawTextCursor(_0x4688ef);for(let _0x6f0579=_0x2d086a,_0x3447aa=_0x2d086a;;){if(_0x3004e8['next'](_0x6f0579),_0x14dbe8['next'](_0x6f0579),_0x6f0579=0x0,_0x3004e8['lineBreak']!=_0x14dbe8['lineBreak']||_0x3004e8['done']!=_0x14dbe8['done']||_0x3004e8['value']!=_0x14dbe8['value'])return!0x1;if(_0x3447aa+=_0x3004e8['value']['length'],_0x3004e8['done']||_0x3447aa>=_0x327685)return!0x0;}}['iter'](_0x301ae9=0x1){return new RawTextCursor(this,_0x301ae9);}['iterRange'](_0xf33ef2,_0x2ea773=this['length']){return new PartialTextCursor(this,_0xf33ef2,_0x2ea773);}['iterLines'](_0x7e862e,_0x26ff38){let _0x55338c;if(null==_0x7e862e)_0x55338c=this['iter']();else{null==_0x26ff38&&(_0x26ff38=this['lines']+0x1);let _0x4ac885=this['line'](_0x7e862e)['from'];_0x55338c=this['iterRange'](_0x4ac885,Math['max'](_0x4ac885,_0x26ff38==this['lines']+0x1?this['length']:_0x26ff38<=0x1?0x0:this['line'](_0x26ff38-0x1)['to']));}return new LineCursor(_0x55338c);}['toString'](){return this['sliceString'](0x0);}['toJSON'](){let _0x4ea51a=[];return this['flatten'](_0x4ea51a),_0x4ea51a;}constructor(){}static['of'](_0x14f1a0){if(0x0==_0x14f1a0['length'])throw new RangeError('A\x20document\x20must\x20have\x20at\x20least\x20one\x20line');return 0x1!=_0x14f1a0['length']||_0x14f1a0[0x0]?_0x14f1a0['length']<=0x20?new TextLeaf(_0x14f1a0):TextNode['from'](TextLeaf['split'](_0x14f1a0,[])):Text['empty'];}}class TextLeaf extends Text{constructor(_0x4c900a,_0x2eeec5=textLength(_0x4c900a)){super(),this['text']=_0x4c900a,this['length']=_0x2eeec5;}get['lines'](){return this['text']['length'];}get['children'](){return null;}['lineInner'](_0x4039b0,_0x3eac3b,_0x268a3f,_0x39e4e4){for(let _0x1a881e=0x0;;_0x1a881e++){let _0x33a955=this['text'][_0x1a881e],_0x4396c1=_0x39e4e4+_0x33a955['length'];if((_0x3eac3b?_0x268a3f:_0x4396c1)>=_0x4039b0)return new Line$1(_0x39e4e4,_0x4396c1,_0x268a3f,_0x33a955);_0x39e4e4=_0x4396c1+0x1,_0x268a3f++;}}['decompose'](_0x29c686,_0x11ca7c,_0x1837f4,_0x42d2b0){let _0xa908c0=_0x29c686<=0x0&&_0x11ca7c>=this['length']?this:new TextLeaf(sliceText(this['text'],_0x29c686,_0x11ca7c),Math['min'](_0x11ca7c,this['length'])-Math['max'](0x0,_0x29c686));if(0x1&_0x42d2b0){let _0x4ed4bc=_0x1837f4['pop'](),_0x29ea6f=appendText(_0xa908c0['text'],_0x4ed4bc['text']['slice'](),0x0,_0xa908c0['length']);if(_0x29ea6f['length']<=0x20)_0x1837f4['push'](new TextLeaf(_0x29ea6f,_0x4ed4bc['length']+_0xa908c0['length']));else{let _0x38cb2d=_0x29ea6f['length']>>0x1;_0x1837f4['push'](new TextLeaf(_0x29ea6f['slice'](0x0,_0x38cb2d)),new TextLeaf(_0x29ea6f['slice'](_0x38cb2d)));}}else _0x1837f4['push'](_0xa908c0);}['replace'](_0x4690cf,_0x498fd4,_0x16cc83){if(!(_0x16cc83 instanceof TextLeaf))return super['replace'](_0x4690cf,_0x498fd4,_0x16cc83);[_0x4690cf,_0x498fd4]=clip(this,_0x4690cf,_0x498fd4);let _0x27371f=appendText(this['text'],appendText(_0x16cc83['text'],sliceText(this['text'],0x0,_0x4690cf)),_0x498fd4),_0x1b3051=this['length']+_0x16cc83['length']-(_0x498fd4-_0x4690cf);return _0x27371f['length']<=0x20?new TextLeaf(_0x27371f,_0x1b3051):TextNode['from'](TextLeaf['split'](_0x27371f,[]),_0x1b3051);}['sliceString'](_0x31b3e2,_0x1441a5=this['length'],_0x8539e0='\x0a'){[_0x31b3e2,_0x1441a5]=clip(this,_0x31b3e2,_0x1441a5);let _0x408c90='';for(let _0x370a09=0x0,_0x4272a2=0x0;_0x370a09<=_0x1441a5&&_0x4272a2<this['text']['length'];_0x4272a2++){let _0x59eff4=this['text'][_0x4272a2],_0x4ad692=_0x370a09+_0x59eff4['length'];_0x370a09>_0x31b3e2&&_0x4272a2&&(_0x408c90+=_0x8539e0),_0x31b3e2<_0x4ad692&&_0x1441a5>_0x370a09&&(_0x408c90+=_0x59eff4['slice'](Math['max'](0x0,_0x31b3e2-_0x370a09),_0x1441a5-_0x370a09)),_0x370a09=_0x4ad692+0x1;}return _0x408c90;}['flatten'](_0xf6daae){for(let _0x570750 of this['text'])_0xf6daae['push'](_0x570750);}['scanIdentical'](){return 0x0;}static['split'](_0x2218b1,_0x2c9823){let _0xea0b79=[],_0x2b01dc=-0x1;for(let _0x1c3172 of _0x2218b1)_0xea0b79['push'](_0x1c3172),_0x2b01dc+=_0x1c3172['length']+0x1,0x20==_0xea0b79['length']&&(_0x2c9823['push'](new TextLeaf(_0xea0b79,_0x2b01dc)),_0xea0b79=[],_0x2b01dc=-0x1);return _0x2b01dc>-0x1&&_0x2c9823['push'](new TextLeaf(_0xea0b79,_0x2b01dc)),_0x2c9823;}}class TextNode extends Text{constructor(_0x1b5427,_0x3a37f6){super(),this['children']=_0x1b5427,this['length']=_0x3a37f6,this['lines']=0x0;for(let _0x379e07 of _0x1b5427)this['lines']+=_0x379e07['lines'];}['lineInner'](_0x3f39be,_0x1d8fe0,_0x4a1055,_0xe3e03e){for(let _0x33201b=0x0;;_0x33201b++){let _0x13a18e=this['children'][_0x33201b],_0x13abac=_0xe3e03e+_0x13a18e['length'],_0x27230e=_0x4a1055+_0x13a18e['lines']-0x1;if((_0x1d8fe0?_0x27230e:_0x13abac)>=_0x3f39be)return _0x13a18e['lineInner'](_0x3f39be,_0x1d8fe0,_0x4a1055,_0xe3e03e);_0xe3e03e=_0x13abac+0x1,_0x4a1055=_0x27230e+0x1;}}['decompose'](_0x15c660,_0xa774ab,_0x14574d,_0x1264d0){for(let _0x21abca=0x0,_0x3c3b88=0x0;_0x3c3b88<=_0xa774ab&&_0x21abca<this['children']['length'];_0x21abca++){let _0x2da1c0=this['children'][_0x21abca],_0x35958a=_0x3c3b88+_0x2da1c0['length'];if(_0x15c660<=_0x35958a&&_0xa774ab>=_0x3c3b88){let _0x1882af=_0x1264d0&((_0x3c3b88<=_0x15c660?0x1:0x0)|(_0x35958a>=_0xa774ab?0x2:0x0));_0x3c3b88>=_0x15c660&&_0x35958a<=_0xa774ab&&!_0x1882af?_0x14574d['push'](_0x2da1c0):_0x2da1c0['decompose'](_0x15c660-_0x3c3b88,_0xa774ab-_0x3c3b88,_0x14574d,_0x1882af);}_0x3c3b88=_0x35958a+0x1;}}['replace'](_0x5adec4,_0x1368db,_0x327066){if([_0x5adec4,_0x1368db]=clip(this,_0x5adec4,_0x1368db),_0x327066['lines']<this['lines'])for(let _0x24f29a=0x0,_0x19d0ea=0x0;_0x24f29a<this['children']['length'];_0x24f29a++){let _0x35b0cf=this['children'][_0x24f29a],_0x55272b=_0x19d0ea+_0x35b0cf['length'];if(_0x5adec4>=_0x19d0ea&&_0x1368db<=_0x55272b){let _0x47abdf=_0x35b0cf['replace'](_0x5adec4-_0x19d0ea,_0x1368db-_0x19d0ea,_0x327066),_0x4443f1=this['lines']-_0x35b0cf['lines']+_0x47abdf['lines'];if(_0x47abdf['lines']<_0x4443f1>>0x4&&_0x47abdf['lines']>_0x4443f1>>0x6){let _0x94c19a=this['children']['slice']();return _0x94c19a[_0x24f29a]=_0x47abdf,new TextNode(_0x94c19a,this['length']-(_0x1368db-_0x5adec4)+_0x327066['length']);}return super['replace'](_0x19d0ea,_0x55272b,_0x47abdf);}_0x19d0ea=_0x55272b+0x1;}return super['replace'](_0x5adec4,_0x1368db,_0x327066);}['sliceString'](_0x53814c,_0xde7103=this['length'],_0x190870='\x0a'){[_0x53814c,_0xde7103]=clip(this,_0x53814c,_0xde7103);let _0x771d90='';for(let _0xd69f35=0x0,_0x468382=0x0;_0xd69f35<this['children']['length']&&_0x468382<=_0xde7103;_0xd69f35++){let _0x1e708f=this['children'][_0xd69f35],_0x6872e=_0x468382+_0x1e708f['length'];_0x468382>_0x53814c&&_0xd69f35&&(_0x771d90+=_0x190870),_0x53814c<_0x6872e&&_0xde7103>_0x468382&&(_0x771d90+=_0x1e708f['sliceString'](_0x53814c-_0x468382,_0xde7103-_0x468382,_0x190870)),_0x468382=_0x6872e+0x1;}return _0x771d90;}['flatten'](_0x3b6be6){for(let _0x45fe83 of this['children'])_0x45fe83['flatten'](_0x3b6be6);}['scanIdentical'](_0x4d2a0a,_0x4f445a){if(!(_0x4d2a0a instanceof TextNode))return 0x0;let _0x10f7f9=0x0,[_0xf434a0,_0x5b4248,_0x24bcf1,_0x19b8fa]=_0x4f445a>0x0?[0x0,0x0,this['children']['length'],_0x4d2a0a['children']['length']]:[this['children']['length']-0x1,_0x4d2a0a['children']['length']-0x1,-0x1,-0x1];for(;;_0xf434a0+=_0x4f445a,_0x5b4248+=_0x4f445a){if(_0xf434a0==_0x24bcf1||_0x5b4248==_0x19b8fa)return _0x10f7f9;let _0x5ac7ee=this['children'][_0xf434a0],_0x5b593b=_0x4d2a0a['children'][_0x5b4248];if(_0x5ac7ee!=_0x5b593b)return _0x10f7f9+_0x5ac7ee['scanIdentical'](_0x5b593b,_0x4f445a);_0x10f7f9+=_0x5ac7ee['length']+0x1;}}static['from'](_0x183405,_0x17417c=_0x183405['reduce']((_0x1347a0,_0x40e70f)=>_0x1347a0+_0x40e70f['length']+0x1,-0x1)){let _0x349f14=0x0;for(let _0xdcf7f5 of _0x183405)_0x349f14+=_0xdcf7f5['lines'];if(_0x349f14<0x20){let _0x2328cd=[];for(let _0x2a16d4 of _0x183405)_0x2a16d4['flatten'](_0x2328cd);return new TextLeaf(_0x2328cd,_0x17417c);}let _0x397083=Math['max'](0x20,_0x349f14>>0x5),_0x104e20=_0x397083<<0x1,_0x423701=_0x397083>>0x1,_0x4a06b5=[],_0xf8bc5a=0x0,_0x19008d=-0x1,_0x541064=[];function _0x14ae34(_0x471a50){let _0x27c586;if(_0x471a50['lines']>_0x104e20&&_0x471a50 instanceof TextNode){for(let _0x374e09 of _0x471a50['children'])_0x14ae34(_0x374e09);}else _0x471a50['lines']>_0x423701&&(_0xf8bc5a>_0x423701||!_0xf8bc5a)?(_0x187d6e(),_0x4a06b5['push'](_0x471a50)):_0x471a50 instanceof TextLeaf&&_0xf8bc5a&&(_0x27c586=_0x541064[_0x541064['length']-0x1])instanceof TextLeaf&&_0x471a50['lines']+_0x27c586['lines']<=0x20?(_0xf8bc5a+=_0x471a50['lines'],_0x19008d+=_0x471a50['length']+0x1,_0x541064[_0x541064['length']-0x1]=new TextLeaf(_0x27c586['text']['concat'](_0x471a50['text']),_0x27c586['length']+0x1+_0x471a50['length'])):(_0xf8bc5a+_0x471a50['lines']>_0x397083&&_0x187d6e(),_0xf8bc5a+=_0x471a50['lines'],_0x19008d+=_0x471a50['length']+0x1,_0x541064['push'](_0x471a50));}function _0x187d6e(){0x0!=_0xf8bc5a&&(_0x4a06b5['push'](0x1==_0x541064['length']?_0x541064[0x0]:TextNode['from'](_0x541064,_0x19008d)),_0x19008d=-0x1,_0xf8bc5a=_0x541064['length']=0x0);}for(let _0x51d402 of _0x183405)_0x14ae34(_0x51d402);return _0x187d6e(),0x1==_0x4a06b5['length']?_0x4a06b5[0x0]:new TextNode(_0x4a06b5,_0x17417c);}}function textLength(_0x280a8b){let _0x28a6c0=-0x1;for(let _0x1c6107 of _0x280a8b)_0x28a6c0+=_0x1c6107['length']+0x1;return _0x28a6c0;}function appendText(_0x880cf1,_0x397b0e,_0x48262c=0x0,_0x21e666=0x3b9aca00){for(let _0x3b312f=0x0,_0x365958=0x0,_0xdc7879=!0x0;_0x365958<_0x880cf1['length']&&_0x3b312f<=_0x21e666;_0x365958++){let _0x4667d6=_0x880cf1[_0x365958],_0x9b3ef3=_0x3b312f+_0x4667d6['length'];_0x9b3ef3>=_0x48262c&&(_0x9b3ef3>_0x21e666&&(_0x4667d6=_0x4667d6['slice'](0x0,_0x21e666-_0x3b312f)),_0x3b312f<_0x48262c&&(_0x4667d6=_0x4667d6['slice'](_0x48262c-_0x3b312f)),_0xdc7879?(_0x397b0e[_0x397b0e['length']-0x1]+=_0x4667d6,_0xdc7879=!0x1):_0x397b0e['push'](_0x4667d6)),_0x3b312f=_0x9b3ef3+0x1;}return _0x397b0e;}function sliceText(_0x322067,_0x2fa05f,_0x51949b){return appendText(_0x322067,[''],_0x2fa05f,_0x51949b);}Text['empty']=new TextLeaf([''],0x0);class RawTextCursor{constructor(_0x3581f7,_0x4425f7=0x1){this['dir']=_0x4425f7,this['done']=!0x1,this['lineBreak']=!0x1,this['value']='',this['nodes']=[_0x3581f7],this['offsets']=[_0x4425f7>0x0?0x1:(_0x3581f7 instanceof TextLeaf?_0x3581f7['text']['length']:_0x3581f7['children']['length'])<<0x1];}['nextInner'](_0x29530a,_0x28665b){for(this['done']=this['lineBreak']=!0x1;;){let _0x10b424=this['nodes']['length']-0x1,_0x5a7996=this['nodes'][_0x10b424],_0x49bc1b=this['offsets'][_0x10b424],_0x1762ff=_0x49bc1b>>0x1,_0x406712=_0x5a7996 instanceof TextLeaf?_0x5a7996['text']['length']:_0x5a7996['children']['length'];if(_0x1762ff==(_0x28665b>0x0?_0x406712:0x0)){if(0x0==_0x10b424)return this['done']=!0x0,this['value']='',this;_0x28665b>0x0&&this['offsets'][_0x10b424-0x1]++,this['nodes']['pop'](),this['offsets']['pop']();}else{if((0x1&_0x49bc1b)==(_0x28665b>0x0?0x0:0x1)){if(this['offsets'][_0x10b424]+=_0x28665b,0x0==_0x29530a)return this['lineBreak']=!0x0,this['value']='\x0a',this;_0x29530a--;}else{if(_0x5a7996 instanceof TextLeaf){let _0x3ebe40=_0x5a7996['text'][_0x1762ff+(_0x28665b<0x0?-0x1:0x0)];if(this['offsets'][_0x10b424]+=_0x28665b,_0x3ebe40['length']>Math['max'](0x0,_0x29530a))return this['value']=0x0==_0x29530a?_0x3ebe40:_0x28665b>0x0?_0x3ebe40['slice'](_0x29530a):_0x3ebe40['slice'](0x0,_0x3ebe40['length']-_0x29530a),this;_0x29530a-=_0x3ebe40['length'];}else{let _0x532a82=_0x5a7996['children'][_0x1762ff+(_0x28665b<0x0?-0x1:0x0)];_0x29530a>_0x532a82['length']?(_0x29530a-=_0x532a82['length'],this['offsets'][_0x10b424]+=_0x28665b):(_0x28665b<0x0&&this['offsets'][_0x10b424]--,this['nodes']['push'](_0x532a82),this['offsets']['push'](_0x28665b>0x0?0x1:(_0x532a82 instanceof TextLeaf?_0x532a82['text']['length']:_0x532a82['children']['length'])<<0x1));}}}}}['next'](_0x27feaf=0x0){return _0x27feaf<0x0&&(this['nextInner'](-_0x27feaf,-this['dir']),_0x27feaf=this['value']['length']),this['nextInner'](_0x27feaf,this['dir']);}}class PartialTextCursor{constructor(_0x8e229f,_0x2e0611,_0xbb73b4){this['value']='',this['done']=!0x1,this['cursor']=new RawTextCursor(_0x8e229f,_0x2e0611>_0xbb73b4?-0x1:0x1),this['pos']=_0x2e0611>_0xbb73b4?_0x8e229f['length']:0x0,this['from']=Math['min'](_0x2e0611,_0xbb73b4),this['to']=Math['max'](_0x2e0611,_0xbb73b4);}['nextInner'](_0x150401,_0x28f0fb){if(_0x28f0fb<0x0?this['pos']<=this['from']:this['pos']>=this['to'])return this['value']='',this['done']=!0x0,this;_0x150401+=Math['max'](0x0,_0x28f0fb<0x0?this['pos']-this['to']:this['from']-this['pos']);let _0xa8230b=_0x28f0fb<0x0?this['pos']-this['from']:this['to']-this['pos'];_0x150401>_0xa8230b&&(_0x150401=_0xa8230b),_0xa8230b-=_0x150401;let {value:_0x180983}=this['cursor']['next'](_0x150401);return this['pos']+=(_0x180983['length']+_0x150401)*_0x28f0fb,this['value']=_0x180983['length']<=_0xa8230b?_0x180983:_0x28f0fb<0x0?_0x180983['slice'](_0x180983['length']-_0xa8230b):_0x180983['slice'](0x0,_0xa8230b),this['done']=!this['value'],this;}['next'](_0x249230=0x0){return _0x249230<0x0?_0x249230=Math['max'](_0x249230,this['from']-this['pos']):_0x249230>0x0&&(_0x249230=Math['min'](_0x249230,this['to']-this['pos'])),this['nextInner'](_0x249230,this['cursor']['dir']);}get['lineBreak'](){return this['cursor']['lineBreak']&&''!=this['value'];}}class LineCursor{constructor(_0x2d7e87){this['inner']=_0x2d7e87,this['afterBreak']=!0x0,this['value']='',this['done']=!0x1;}['next'](_0x408a10=0x0){let {done:_0x1466a6,lineBreak:_0x4754bc,value:_0x5a14c6}=this['inner']['next'](_0x408a10);return _0x1466a6&&this['afterBreak']?(this['value']='',this['afterBreak']=!0x1):_0x1466a6?(this['done']=!0x0,this['value']=''):_0x4754bc?this['afterBreak']?this['value']='':(this['afterBreak']=!0x0,this['next']()):(this['value']=_0x5a14c6,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(_0x45fc37,_0x565ef8,_0x252b66,_0x50eedd){this['from']=_0x45fc37,this['to']=_0x565ef8,this['number']=_0x252b66,this['text']=_0x50eedd;}get['length'](){return this['to']-this['from'];}};function clip(_0x2ff1e0,_0x507308,_0x41d327){return[_0x507308=Math['max'](0x0,Math['min'](_0x2ff1e0['length'],_0x507308)),Math['max'](_0x507308,Math['min'](_0x2ff1e0['length'],_0x41d327))];}function findClusterBreak(_0x1e9464,_0x75cc1a,_0x374585=!0x0,_0x717514=!0x0){return findClusterBreak$1(_0x1e9464,_0x75cc1a,_0x374585,_0x717514);}function surrogateLow(_0x55463c){return _0x55463c>=0xdc00&&_0x55463c<0xe000;}function surrogateHigh(_0x1b789d){return _0x1b789d>=0xd800&&_0x1b789d<0xdc00;}function codePointAt(_0x5c98b7,_0x88a000){let _0x35efee=_0x5c98b7['charCodeAt'](_0x88a000);if(!surrogateHigh(_0x35efee)||_0x88a000+0x1==_0x5c98b7['length'])return _0x35efee;let _0xda448a=_0x5c98b7['charCodeAt'](_0x88a000+0x1);return surrogateLow(_0xda448a)?_0xda448a-0xdc00+(_0x35efee-0xd800<<0xa)+0x10000:_0x35efee;}function fromCodePoint(_0x18aa56){return _0x18aa56<=0xffff?String['fromCharCode'](_0x18aa56):(_0x18aa56-=0x10000,String['fromCharCode'](0xd800+(_0x18aa56>>0xa),0xdc00+(0x3ff&_0x18aa56)));}function codePointSize(_0x577404){return _0x577404<0x10000?0x1:0x2;}const DefaultSplit=/\r\n?|\n/;var MapMode=function(_0x53abcd){return _0x53abcd[_0x53abcd['Simple']=0x0]='Simple',_0x53abcd[_0x53abcd['TrackDel']=0x1]='TrackDel',_0x53abcd[_0x53abcd['TrackBefore']=0x2]='TrackBefore',_0x53abcd[_0x53abcd['TrackAfter']=0x3]='TrackAfter',_0x53abcd;}(MapMode||(MapMode={}));class ChangeDesc{constructor(_0x5b6c9a){this['sections']=_0x5b6c9a;}get['length'](){let _0x519558=0x0;for(let _0x58e1bb=0x0;_0x58e1bb<this['sections']['length'];_0x58e1bb+=0x2)_0x519558+=this['sections'][_0x58e1bb];return _0x519558;}get['newLength'](){let _0x3ef2d0=0x0;for(let _0x269fda=0x0;_0x269fda<this['sections']['length'];_0x269fda+=0x2){let _0x26de78=this['sections'][_0x269fda+0x1];_0x3ef2d0+=_0x26de78<0x0?this['sections'][_0x269fda]:_0x26de78;}return _0x3ef2d0;}get['empty'](){return 0x0==this['sections']['length']||0x2==this['sections']['length']&&this['sections'][0x1]<0x0;}['iterGaps'](_0x2f749e){for(let _0x106160=0x0,_0x4f7418=0x0,_0x4cf000=0x0;_0x106160<this['sections']['length'];){let _0x18d2b2=this['sections'][_0x106160++],_0x20e348=this['sections'][_0x106160++];_0x20e348<0x0?(_0x2f749e(_0x4f7418,_0x4cf000,_0x18d2b2),_0x4cf000+=_0x18d2b2):_0x4cf000+=_0x20e348,_0x4f7418+=_0x18d2b2;}}['iterChangedRanges'](_0x49e48f,_0xb33e2a=!0x1){iterChanges(this,_0x49e48f,_0xb33e2a);}get['invertedDesc'](){let _0x2a06dd=[];for(let _0x5c8ea2=0x0;_0x5c8ea2<this['sections']['length'];){let _0x28926d=this['sections'][_0x5c8ea2++],_0x541cde=this['sections'][_0x5c8ea2++];_0x541cde<0x0?_0x2a06dd['push'](_0x28926d,_0x541cde):_0x2a06dd['push'](_0x541cde,_0x28926d);}return new ChangeDesc(_0x2a06dd);}['composeDesc'](_0x219d24){return this['empty']?_0x219d24:_0x219d24['empty']?this:composeSets(this,_0x219d24);}['mapDesc'](_0x33fb02,_0x46e795=!0x1){return _0x33fb02['empty']?this:mapSet(this,_0x33fb02,_0x46e795);}['mapPos'](_0x2f0e7d,_0x317f51=-0x1,_0xb4331b=MapMode['Simple']){let _0x40421c=0x0,_0x33fc13=0x0;for(let _0x491b10=0x0;_0x491b10<this['sections']['length'];){let _0x42ec85=this['sections'][_0x491b10++],_0x5ba97d=this['sections'][_0x491b10++],_0x458261=_0x40421c+_0x42ec85;if(_0x5ba97d<0x0){if(_0x458261>_0x2f0e7d)return _0x33fc13+(_0x2f0e7d-_0x40421c);_0x33fc13+=_0x42ec85;}else{if(_0xb4331b!=MapMode['Simple']&&_0x458261>=_0x2f0e7d&&(_0xb4331b==MapMode['TrackDel']&&_0x40421c<_0x2f0e7d&&_0x458261>_0x2f0e7d||_0xb4331b==MapMode['TrackBefore']&&_0x40421c<_0x2f0e7d||_0xb4331b==MapMode['TrackAfter']&&_0x458261>_0x2f0e7d))return null;if(_0x458261>_0x2f0e7d||_0x458261==_0x2f0e7d&&_0x317f51<0x0&&!_0x42ec85)return _0x2f0e7d==_0x40421c||_0x317f51<0x0?_0x33fc13:_0x33fc13+_0x5ba97d;_0x33fc13+=_0x5ba97d;}_0x40421c=_0x458261;}if(_0x2f0e7d>_0x40421c)throw new RangeError('Position\x20'+_0x2f0e7d+'\x20is\x20out\x20of\x20range\x20for\x20changeset\x20of\x20length\x20'+_0x40421c);return _0x33fc13;}['touchesRange'](_0x14d8ca,_0x5d6f50=_0x14d8ca){for(let _0x279a29=0x0,_0x397cfc=0x0;_0x279a29<this['sections']['length']&&_0x397cfc<=_0x5d6f50;){let _0x3c37eb=_0x397cfc+this['sections'][_0x279a29++];if(this['sections'][_0x279a29++]>=0x0&&_0x397cfc<=_0x5d6f50&&_0x3c37eb>=_0x14d8ca)return!(_0x397cfc<_0x14d8ca&&_0x3c37eb>_0x5d6f50)||'cover';_0x397cfc=_0x3c37eb;}return!0x1;}['toString'](){let _0x595f39='';for(let _0x3614f9=0x0;_0x3614f9<this['sections']['length'];){let _0x5ba39d=this['sections'][_0x3614f9++],_0x4ca0e9=this['sections'][_0x3614f9++];_0x595f39+=(_0x595f39?'\x20':'')+_0x5ba39d+(_0x4ca0e9>=0x0?':'+_0x4ca0e9:'');}return _0x595f39;}['toJSON'](){return this['sections'];}static['fromJSON'](_0x1c7607){if(!Array['isArray'](_0x1c7607)||_0x1c7607['length']%0x2||_0x1c7607['some'](_0xa7018d=>'number'!=typeof _0xa7018d))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeDesc');return new ChangeDesc(_0x1c7607);}static['create'](_0x4fcc4e){return new ChangeDesc(_0x4fcc4e);}}class ChangeSet extends ChangeDesc{constructor(_0x4a7e70,_0x28fa21){super(_0x4a7e70),this['inserted']=_0x28fa21;}['apply'](_0x56821b){if(this['length']!=_0x56821b['length'])throw new RangeError('Applying\x20change\x20set\x20to\x20a\x20document\x20with\x20the\x20wrong\x20length');return iterChanges(this,(_0x153816,_0x1835b4,_0x22ab78,_0x4ec33a,_0x11df8d)=>_0x56821b=_0x56821b['replace'](_0x22ab78,_0x22ab78+(_0x1835b4-_0x153816),_0x11df8d),!0x1),_0x56821b;}['mapDesc'](_0x451642,_0x46caf3=!0x1){return mapSet(this,_0x451642,_0x46caf3,!0x0);}['invert'](_0x148191){let _0x3269ca=this['sections']['slice'](),_0x673de8=[];for(let _0xeee38c=0x0,_0xb70fa4=0x0;_0xeee38c<_0x3269ca['length'];_0xeee38c+=0x2){let _0x33f1ca=_0x3269ca[_0xeee38c],_0x545be5=_0x3269ca[_0xeee38c+0x1];if(_0x545be5>=0x0){_0x3269ca[_0xeee38c]=_0x545be5,_0x3269ca[_0xeee38c+0x1]=_0x33f1ca;let _0x448c4b=_0xeee38c>>0x1;for(;_0x673de8['length']<_0x448c4b;)_0x673de8['push'](Text['empty']);_0x673de8['push'](_0x33f1ca?_0x148191['slice'](_0xb70fa4,_0xb70fa4+_0x33f1ca):Text['empty']);}_0xb70fa4+=_0x33f1ca;}return new ChangeSet(_0x3269ca,_0x673de8);}['compose'](_0x4fd2b3){return this['empty']?_0x4fd2b3:_0x4fd2b3['empty']?this:composeSets(this,_0x4fd2b3,!0x0);}['map'](_0x550090,_0x1260ad=!0x1){return _0x550090['empty']?this:mapSet(this,_0x550090,_0x1260ad,!0x0);}['iterChanges'](_0x589fdf,_0x8ac3b2=!0x1){iterChanges(this,_0x589fdf,_0x8ac3b2);}get['desc'](){return ChangeDesc['create'](this['sections']);}['filter'](_0x155b79){let _0x494de6=[],_0x2d1d48=[],_0xddc178=[],_0x168bd6=new SectionIter(this);t:for(let _0x3b2d52=0x0,_0xb9e043=0x0;;){let _0x1d4d2d=_0x3b2d52==_0x155b79['length']?0x3b9aca00:_0x155b79[_0x3b2d52++];for(;_0xb9e043<_0x1d4d2d||_0xb9e043==_0x1d4d2d&&0x0==_0x168bd6['len'];){if(_0x168bd6['done'])break t;let _0x1a9811=Math['min'](_0x168bd6['len'],_0x1d4d2d-_0xb9e043);addSection(_0xddc178,_0x1a9811,-0x1);let _0x4dd676=-0x1==_0x168bd6['ins']?-0x1:0x0==_0x168bd6['off']?_0x168bd6['ins']:0x0;addSection(_0x494de6,_0x1a9811,_0x4dd676),_0x4dd676>0x0&&addInsert(_0x2d1d48,_0x494de6,_0x168bd6['text']),_0x168bd6['forward'](_0x1a9811),_0xb9e043+=_0x1a9811;}let _0x163094=_0x155b79[_0x3b2d52++];for(;_0xb9e043<_0x163094;){if(_0x168bd6['done'])break t;let _0x231508=Math['min'](_0x168bd6['len'],_0x163094-_0xb9e043);addSection(_0x494de6,_0x231508,-0x1),addSection(_0xddc178,_0x231508,-0x1==_0x168bd6['ins']?-0x1:0x0==_0x168bd6['off']?_0x168bd6['ins']:0x0),_0x168bd6['forward'](_0x231508),_0xb9e043+=_0x231508;}}return{'changes':new ChangeSet(_0x494de6,_0x2d1d48),'filtered':ChangeDesc['create'](_0xddc178)};}['toJSON'](){let _0x28ee2e=[];for(let _0x25d5dc=0x0;_0x25d5dc<this['sections']['length'];_0x25d5dc+=0x2){let _0x2325d9=this['sections'][_0x25d5dc],_0x55d68e=this['sections'][_0x25d5dc+0x1];_0x55d68e<0x0?_0x28ee2e['push'](_0x2325d9):0x0==_0x55d68e?_0x28ee2e['push']([_0x2325d9]):_0x28ee2e['push']([_0x2325d9]['concat'](this['inserted'][_0x25d5dc>>0x1]['toJSON']()));}return _0x28ee2e;}static['of'](_0x22011e,_0x584716,_0x26b86a){let _0x5cea1c=[],_0x5243e4=[],_0x4e4714=0x0,_0x5b34d0=null;function _0x474ea8(_0x3a373e=!0x1){if(!_0x3a373e&&!_0x5cea1c['length'])return;_0x4e4714<_0x584716&&addSection(_0x5cea1c,_0x584716-_0x4e4714,-0x1);let _0x633961=new ChangeSet(_0x5cea1c,_0x5243e4);_0x5b34d0=_0x5b34d0?_0x5b34d0['compose'](_0x633961['map'](_0x5b34d0)):_0x633961,_0x5cea1c=[],_0x5243e4=[],_0x4e4714=0x0;}return function _0x1abefa(_0x3c8075){if(Array['isArray'](_0x3c8075)){for(let _0x11ce30 of _0x3c8075)_0x1abefa(_0x11ce30);}else{if(_0x3c8075 instanceof ChangeSet){if(_0x3c8075['length']!=_0x584716)throw new RangeError('Mismatched\x20change\x20set\x20length\x20(got\x20'+_0x3c8075['length']+',\x20expected\x20'+_0x584716+')');_0x474ea8(),_0x5b34d0=_0x5b34d0?_0x5b34d0['compose'](_0x3c8075['map'](_0x5b34d0)):_0x3c8075;}else{let {from:_0x432149,to:_0xf5c969=_0x432149,insert:_0x49358a}=_0x3c8075;if(_0x432149>_0xf5c969||_0x432149<0x0||_0xf5c969>_0x584716)throw new RangeError('Invalid\x20change\x20range\x20'+_0x432149+'\x20to\x20'+_0xf5c969+'\x20(in\x20doc\x20of\x20length\x20'+_0x584716+')');let _0x1d3b4b=_0x49358a?'string'==typeof _0x49358a?Text['of'](_0x49358a['split'](_0x26b86a||DefaultSplit)):_0x49358a:Text['empty'],_0x5d091b=_0x1d3b4b['length'];if(_0x432149==_0xf5c969&&0x0==_0x5d091b)return;_0x432149<_0x4e4714&&_0x474ea8(),_0x432149>_0x4e4714&&addSection(_0x5cea1c,_0x432149-_0x4e4714,-0x1),addSection(_0x5cea1c,_0xf5c969-_0x432149,_0x5d091b),addInsert(_0x5243e4,_0x5cea1c,_0x1d3b4b),_0x4e4714=_0xf5c969;}}}(_0x22011e),_0x474ea8(!_0x5b34d0),_0x5b34d0;}static['empty'](_0x5a1c93){return new ChangeSet(_0x5a1c93?[_0x5a1c93,-0x1]:[],[]);}static['fromJSON'](_0x2847e7){if(!Array['isArray'](_0x2847e7))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeSet');let _0x47008d=[],_0x4e4f0d=[];for(let _0x391857=0x0;_0x391857<_0x2847e7['length'];_0x391857++){let _0x51e1b9=_0x2847e7[_0x391857];if('number'==typeof _0x51e1b9)_0x47008d['push'](_0x51e1b9,-0x1);else{if(!Array['isArray'](_0x51e1b9)||'number'!=typeof _0x51e1b9[0x0]||_0x51e1b9['some']((_0x108ec0,_0x4c92d8)=>_0x4c92d8&&'string'!=typeof _0x108ec0))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeSet');if(0x1==_0x51e1b9['length'])_0x47008d['push'](_0x51e1b9[0x0],0x0);else{for(;_0x4e4f0d['length']<_0x391857;)_0x4e4f0d['push'](Text['empty']);_0x4e4f0d[_0x391857]=Text['of'](_0x51e1b9['slice'](0x1)),_0x47008d['push'](_0x51e1b9[0x0],_0x4e4f0d[_0x391857]['length']);}}}return new ChangeSet(_0x47008d,_0x4e4f0d);}static['createSet'](_0x5a6168,_0x264be4){return new ChangeSet(_0x5a6168,_0x264be4);}}function addSection(_0x2c6395,_0x672da8,_0xae47c7,_0x5488e5=!0x1){if(0x0==_0x672da8&&_0xae47c7<=0x0)return;let _0x4300f2=_0x2c6395['length']-0x2;_0x4300f2>=0x0&&_0xae47c7<=0x0&&_0xae47c7==_0x2c6395[_0x4300f2+0x1]?_0x2c6395[_0x4300f2]+=_0x672da8:_0x4300f2>=0x0&&0x0==_0x672da8&&0x0==_0x2c6395[_0x4300f2]?_0x2c6395[_0x4300f2+0x1]+=_0xae47c7:_0x5488e5?(_0x2c6395[_0x4300f2]+=_0x672da8,_0x2c6395[_0x4300f2+0x1]+=_0xae47c7):_0x2c6395['push'](_0x672da8,_0xae47c7);}function addInsert(_0x325a5a,_0x54c76c,_0x10022c){if(0x0==_0x10022c['length'])return;let _0x59cdce=_0x54c76c['length']-0x2>>0x1;if(_0x59cdce<_0x325a5a['length'])_0x325a5a[_0x325a5a['length']-0x1]=_0x325a5a[_0x325a5a['length']-0x1]['append'](_0x10022c);else{for(;_0x325a5a['length']<_0x59cdce;)_0x325a5a['push'](Text['empty']);_0x325a5a['push'](_0x10022c);}}function iterChanges(_0x7bf99d,_0x389db6,_0x333502){let _0x43e896=_0x7bf99d['inserted'];for(let _0x6aed51=0x0,_0x2f3dc2=0x0,_0x19ac72=0x0;_0x19ac72<_0x7bf99d['sections']['length'];){let _0x1bf9ba=_0x7bf99d['sections'][_0x19ac72++],_0x213e9c=_0x7bf99d['sections'][_0x19ac72++];if(_0x213e9c<0x0)_0x6aed51+=_0x1bf9ba,_0x2f3dc2+=_0x1bf9ba;else{let _0x17bd1e=_0x6aed51,_0x3b06a8=_0x2f3dc2,_0x277abb=Text['empty'];for(;_0x17bd1e+=_0x1bf9ba,_0x3b06a8+=_0x213e9c,_0x213e9c&&_0x43e896&&(_0x277abb=_0x277abb['append'](_0x43e896[_0x19ac72-0x2>>0x1])),!(_0x333502||_0x19ac72==_0x7bf99d['sections']['length']||_0x7bf99d['sections'][_0x19ac72+0x1]<0x0);)_0x1bf9ba=_0x7bf99d['sections'][_0x19ac72++],_0x213e9c=_0x7bf99d['sections'][_0x19ac72++];_0x389db6(_0x6aed51,_0x17bd1e,_0x2f3dc2,_0x3b06a8,_0x277abb),_0x6aed51=_0x17bd1e,_0x2f3dc2=_0x3b06a8;}}}function mapSet(_0x427492,_0x4fd151,_0x38dc17,_0x2b4371=!0x1){let _0x4d7697=[],_0x3b6b5f=_0x2b4371?[]:null,_0x214cda=new SectionIter(_0x427492),_0x3b1b4b=new SectionIter(_0x4fd151);for(let _0x4f74de=-0x1;;){if(_0x214cda['done']&&_0x3b1b4b['len']||_0x3b1b4b['done']&&_0x214cda['len'])throw new Error('Mismatched\x20change\x20set\x20lengths');if(-0x1==_0x214cda['ins']&&-0x1==_0x3b1b4b['ins']){let _0x126a63=Math['min'](_0x214cda['len'],_0x3b1b4b['len']);addSection(_0x4d7697,_0x126a63,-0x1),_0x214cda['forward'](_0x126a63),_0x3b1b4b['forward'](_0x126a63);}else{if(_0x3b1b4b['ins']>=0x0&&(_0x214cda['ins']<0x0||_0x4f74de==_0x214cda['i']||0x0==_0x214cda['off']&&(_0x3b1b4b['len']<_0x214cda['len']||_0x3b1b4b['len']==_0x214cda['len']&&!_0x38dc17))){let _0x1d890=_0x3b1b4b['len'];for(addSection(_0x4d7697,_0x3b1b4b['ins'],-0x1);_0x1d890;){let _0x3c6e19=Math['min'](_0x214cda['len'],_0x1d890);_0x214cda['ins']>=0x0&&_0x4f74de<_0x214cda['i']&&_0x214cda['len']<=_0x3c6e19&&(addSection(_0x4d7697,0x0,_0x214cda['ins']),_0x3b6b5f&&addInsert(_0x3b6b5f,_0x4d7697,_0x214cda['text']),_0x4f74de=_0x214cda['i']),_0x214cda['forward'](_0x3c6e19),_0x1d890-=_0x3c6e19;}_0x3b1b4b['next']();}else{if(!(_0x214cda['ins']>=0x0)){if(_0x214cda['done']&&_0x3b1b4b['done'])return _0x3b6b5f?ChangeSet['createSet'](_0x4d7697,_0x3b6b5f):ChangeDesc['create'](_0x4d7697);throw new Error('Mismatched\x20change\x20set\x20lengths');}{let _0x41339c=0x0,_0x5b24aa=_0x214cda['len'];for(;_0x5b24aa;)if(-0x1==_0x3b1b4b['ins']){let _0x516498=Math['min'](_0x5b24aa,_0x3b1b4b['len']);_0x41339c+=_0x516498,_0x5b24aa-=_0x516498,_0x3b1b4b['forward'](_0x516498);}else{if(!(0x0==_0x3b1b4b['ins']&&_0x3b1b4b['len']<_0x5b24aa))break;_0x5b24aa-=_0x3b1b4b['len'],_0x3b1b4b['next']();}addSection(_0x4d7697,_0x41339c,_0x4f74de<_0x214cda['i']?_0x214cda['ins']:0x0),_0x3b6b5f&&_0x4f74de<_0x214cda['i']&&addInsert(_0x3b6b5f,_0x4d7697,_0x214cda['text']),_0x4f74de=_0x214cda['i'],_0x214cda['forward'](_0x214cda['len']-_0x5b24aa);}}}}}function composeSets(_0x26ddad,_0x494e52,_0x378a40=!0x1){let _0x2e627a=[],_0x90c0f5=_0x378a40?[]:null,_0x25c6bb=new SectionIter(_0x26ddad),_0x4662dc=new SectionIter(_0x494e52);for(let _0xe666f5=!0x1;;){if(_0x25c6bb['done']&&_0x4662dc['done'])return _0x90c0f5?ChangeSet['createSet'](_0x2e627a,_0x90c0f5):ChangeDesc['create'](_0x2e627a);if(0x0==_0x25c6bb['ins'])addSection(_0x2e627a,_0x25c6bb['len'],0x0,_0xe666f5),_0x25c6bb['next']();else{if(0x0!=_0x4662dc['len']||_0x4662dc['done']){if(_0x25c6bb['done']||_0x4662dc['done'])throw new Error('Mismatched\x20change\x20set\x20lengths');{let _0x1d7839=Math['min'](_0x25c6bb['len2'],_0x4662dc['len']),_0x3b626f=_0x2e627a['length'];if(-0x1==_0x25c6bb['ins']){let _0x2a170c=-0x1==_0x4662dc['ins']?-0x1:_0x4662dc['off']?0x0:_0x4662dc['ins'];addSection(_0x2e627a,_0x1d7839,_0x2a170c,_0xe666f5),_0x90c0f5&&_0x2a170c&&addInsert(_0x90c0f5,_0x2e627a,_0x4662dc['text']);}else-0x1==_0x4662dc['ins']?(addSection(_0x2e627a,_0x25c6bb['off']?0x0:_0x25c6bb['len'],_0x1d7839,_0xe666f5),_0x90c0f5&&addInsert(_0x90c0f5,_0x2e627a,_0x25c6bb['textBit'](_0x1d7839))):(addSection(_0x2e627a,_0x25c6bb['off']?0x0:_0x25c6bb['len'],_0x4662dc['off']?0x0:_0x4662dc['ins'],_0xe666f5),_0x90c0f5&&!_0x4662dc['off']&&addInsert(_0x90c0f5,_0x2e627a,_0x4662dc['text']));_0xe666f5=(_0x25c6bb['ins']>_0x1d7839||_0x4662dc['ins']>=0x0&&_0x4662dc['len']>_0x1d7839)&&(_0xe666f5||_0x2e627a['length']>_0x3b626f),_0x25c6bb['forward2'](_0x1d7839),_0x4662dc['forward'](_0x1d7839);}}else addSection(_0x2e627a,0x0,_0x4662dc['ins'],_0xe666f5),_0x90c0f5&&addInsert(_0x90c0f5,_0x2e627a,_0x4662dc['text']),_0x4662dc['next']();}}}class SectionIter{constructor(_0x6c81){this['set']=_0x6c81,this['i']=0x0,this['next']();}['next'](){let {sections:_0xf13030}=this['set'];this['i']<_0xf13030['length']?(this['len']=_0xf13030[this['i']++],this['ins']=_0xf13030[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:_0x1d69e8}=this['set'],_0x3f8194=this['i']-0x2>>0x1;return _0x3f8194>=_0x1d69e8['length']?Text['empty']:_0x1d69e8[_0x3f8194];}['textBit'](_0x4c05df){let {inserted:_0x43e6a3}=this['set'],_0x3e3244=this['i']-0x2>>0x1;return _0x3e3244>=_0x43e6a3['length']&&!_0x4c05df?Text['empty']:_0x43e6a3[_0x3e3244]['slice'](this['off'],null==_0x4c05df?void 0x0:this['off']+_0x4c05df);}['forward'](_0x4c3b2e){_0x4c3b2e==this['len']?this['next']():(this['len']-=_0x4c3b2e,this['off']+=_0x4c3b2e);}['forward2'](_0x3f955d){-0x1==this['ins']?this['forward'](_0x3f955d):_0x3f955d==this['ins']?this['next']():(this['ins']-=_0x3f955d,this['off']+=_0x3f955d);}}class SelectionRange{constructor(_0xddd2e6,_0x480803,_0x1fb4e4){this['from']=_0xddd2e6,this['to']=_0x480803,this['flags']=_0x1fb4e4;}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 _0x523275=0x7&this['flags'];return 0x7==_0x523275?null:_0x523275;}get['goalColumn'](){let _0x21188c=this['flags']>>0x6;return 0xffffff==_0x21188c?void 0x0:_0x21188c;}['map'](_0x155522,_0x16b603=-0x1){let _0xb027bd,_0x31a9c1;return this['empty']?_0xb027bd=_0x31a9c1=_0x155522['mapPos'](this['from'],_0x16b603):(_0xb027bd=_0x155522['mapPos'](this['from'],0x1),_0x31a9c1=_0x155522['mapPos'](this['to'],-0x1)),_0xb027bd==this['from']&&_0x31a9c1==this['to']?this:new SelectionRange(_0xb027bd,_0x31a9c1,this['flags']);}['extend'](_0x3155ea,_0x3078fa=_0x3155ea){if(_0x3155ea<=this['anchor']&&_0x3078fa>=this['anchor'])return EditorSelection['range'](_0x3155ea,_0x3078fa);let _0x49f204=Math['abs'](_0x3155ea-this['anchor'])>Math['abs'](_0x3078fa-this['anchor'])?_0x3155ea:_0x3078fa;return EditorSelection['range'](this['anchor'],_0x49f204);}['eq'](_0x109f85,_0x249f8b=!0x1){return!(this['anchor']!=_0x109f85['anchor']||this['head']!=_0x109f85['head']||_0x249f8b&&this['empty']&&this['assoc']!=_0x109f85['assoc']);}['toJSON'](){return{'anchor':this['anchor'],'head':this['head']};}static['fromJSON'](_0x228273){if(!_0x228273||'number'!=typeof _0x228273['anchor']||'number'!=typeof _0x228273['head'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20SelectionRange');return EditorSelection['range'](_0x228273['anchor'],_0x228273['head']);}static['create'](_0x2489dd,_0x553c3d,_0x1d9ce5){return new SelectionRange(_0x2489dd,_0x553c3d,_0x1d9ce5);}}class EditorSelection{constructor(_0x15dca6,_0x37c207){this['ranges']=_0x15dca6,this['mainIndex']=_0x37c207;}['map'](_0x2a294a,_0x1609dc=-0x1){return _0x2a294a['empty']?this:EditorSelection['create'](this['ranges']['map'](_0x22850d=>_0x22850d['map'](_0x2a294a,_0x1609dc)),this['mainIndex']);}['eq'](_0x1ee797,_0x3b619e=!0x1){if(this['ranges']['length']!=_0x1ee797['ranges']['length']||this['mainIndex']!=_0x1ee797['mainIndex'])return!0x1;for(let _0x2b2b58=0x0;_0x2b2b58<this['ranges']['length'];_0x2b2b58++)if(!this['ranges'][_0x2b2b58]['eq'](_0x1ee797['ranges'][_0x2b2b58],_0x3b619e))return!0x1;return!0x0;}get['main'](){return this['ranges'][this['mainIndex']];}['asSingle'](){return 0x1==this['ranges']['length']?this:new EditorSelection([this['main']],0x0);}['addRange'](_0x968df2,_0x55db9d=!0x0){return EditorSelection['create']([_0x968df2]['concat'](this['ranges']),_0x55db9d?0x0:this['mainIndex']+0x1);}['replaceRange'](_0x197eed,_0x280a24=this['mainIndex']){let _0x17b9d6=this['ranges']['slice']();return _0x17b9d6[_0x280a24]=_0x197eed,EditorSelection['create'](_0x17b9d6,this['mainIndex']);}['toJSON'](){return{'ranges':this['ranges']['map'](_0x22c5e1=>_0x22c5e1['toJSON']()),'main':this['mainIndex']};}static['fromJSON'](_0x294e24){if(!_0x294e24||!Array['isArray'](_0x294e24['ranges'])||'number'!=typeof _0x294e24['main']||_0x294e24['main']>=_0x294e24['ranges']['length'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20EditorSelection');return new EditorSelection(_0x294e24['ranges']['map'](_0x28a60b=>SelectionRange['fromJSON'](_0x28a60b)),_0x294e24['main']);}static['single'](_0x2ae073,_0x33ab80=_0x2ae073){return new EditorSelection([EditorSelection['range'](_0x2ae073,_0x33ab80)],0x0);}static['create'](_0x492653,_0x4ac6cd=0x0){if(0x0==_0x492653['length'])throw new RangeError('A\x20selection\x20needs\x20at\x20least\x20one\x20range');for(let _0x567fc1=0x0,_0x47a7b3=0x0;_0x47a7b3<_0x492653['length'];_0x47a7b3++){let _0x27bd63=_0x492653[_0x47a7b3];if(_0x27bd63['empty']?_0x27bd63['from']<=_0x567fc1:_0x27bd63['from']<_0x567fc1)return EditorSelection['normalized'](_0x492653['slice'](),_0x4ac6cd);_0x567fc1=_0x27bd63['to'];}return new EditorSelection(_0x492653,_0x4ac6cd);}static['cursor'](_0x5aef09,_0x5cb0c0=0x0,_0x580907,_0x48fa5b){return SelectionRange['create'](_0x5aef09,_0x5aef09,(0x0==_0x5cb0c0?0x0:_0x5cb0c0<0x0?0x8:0x10)|(null==_0x580907?0x7:Math['min'](0x6,_0x580907))|(null!=_0x48fa5b?_0x48fa5b:0xffffff)<<0x6);}static['range'](_0x549d98,_0xa67734,_0x2c5644,_0x5b2977){let _0x3e237d=(null!=_0x2c5644?_0x2c5644:0xffffff)<<0x6|(null==_0x5b2977?0x7:Math['min'](0x6,_0x5b2977));return _0xa67734<_0x549d98?SelectionRange['create'](_0xa67734,_0x549d98,0x30|_0x3e237d):SelectionRange['create'](_0x549d98,_0xa67734,(_0xa67734>_0x549d98?0x8:0x0)|_0x3e237d);}static['normalized'](_0x59ec0a,_0x40f702=0x0){let _0x35620=_0x59ec0a[_0x40f702];_0x59ec0a['sort']((_0x4fea06,_0x19d600)=>_0x4fea06['from']-_0x19d600['from']),_0x40f702=_0x59ec0a['indexOf'](_0x35620);for(let _0x40402d=0x1;_0x40402d<_0x59ec0a['length'];_0x40402d++){let _0x113752=_0x59ec0a[_0x40402d],_0x4f961b=_0x59ec0a[_0x40402d-0x1];if(_0x113752['empty']?_0x113752['from']<=_0x4f961b['to']:_0x113752['from']<_0x4f961b['to']){let _0x3f8bae=_0x4f961b['from'],_0x2a0b06=Math['max'](_0x113752['to'],_0x4f961b['to']);_0x40402d<=_0x40f702&&_0x40f702--,_0x59ec0a['splice'](--_0x40402d,0x2,_0x113752['anchor']>_0x113752['head']?EditorSelection['range'](_0x2a0b06,_0x3f8bae):EditorSelection['range'](_0x3f8bae,_0x2a0b06));}}return new EditorSelection(_0x59ec0a,_0x40f702);}}function checkSelection(_0x5e85e4,_0x43fddd){for(let _0x5b7209 of _0x5e85e4['ranges'])if(_0x5b7209['to']>_0x43fddd)throw new RangeError('Selection\x20points\x20outside\x20of\x20document');}let nextID=0x0;class Facet{constructor(_0x511823,_0x268908,_0x549f0b,_0x537ff8,_0x1f6315){this['combine']=_0x511823,this['compareInput']=_0x268908,this['compare']=_0x549f0b,this['isStatic']=_0x537ff8,this['id']=nextID++,this['default']=_0x511823([]),this['extensions']='function'==typeof _0x1f6315?_0x1f6315(this):_0x1f6315;}get['reader'](){return this;}static['define'](_0x40335e={}){return new Facet(_0x40335e['combine']||(_0xcefbb6=>_0xcefbb6),_0x40335e['compareInput']||((_0x2eea43,_0x4e1dbe)=>_0x2eea43===_0x4e1dbe),_0x40335e['compare']||(_0x40335e['combine']?(_0x4f47b0,_0x1965a5)=>_0x4f47b0===_0x1965a5:sameArray$1),!!_0x40335e['static'],_0x40335e['enables']);}['of'](_0x1f58e3){return new FacetProvider([],this,0x0,_0x1f58e3);}['compute'](_0x46586b,_0xd69ca6){if(this['isStatic'])throw new Error('Can\x27t\x20compute\x20a\x20static\x20facet');return new FacetProvider(_0x46586b,this,0x1,_0xd69ca6);}['computeN'](_0x2e0cde,_0x2772b4){if(this['isStatic'])throw new Error('Can\x27t\x20compute\x20a\x20static\x20facet');return new FacetProvider(_0x2e0cde,this,0x2,_0x2772b4);}['from'](_0x5ba5c6,_0x3e2740){return _0x3e2740||(_0x3e2740=_0xe98d37=>_0xe98d37),this['compute']([_0x5ba5c6],_0x5d9d5d=>_0x3e2740(_0x5d9d5d['field'](_0x5ba5c6)));}}function sameArray$1(_0x57dda6,_0x233f07){return _0x57dda6==_0x233f07||_0x57dda6['length']==_0x233f07['length']&&_0x57dda6['every']((_0x57628f,_0x3e8942)=>_0x57628f===_0x233f07[_0x3e8942]);}class FacetProvider{constructor(_0x54fea5,_0x6c4c11,_0x5d39d8,_0x30e36f){this['dependencies']=_0x54fea5,this['facet']=_0x6c4c11,this['type']=_0x5d39d8,this['value']=_0x30e36f,this['id']=nextID++;}['dynamicSlot'](_0x36c250){var _0x569710;let _0x395874=this['value'],_0xad972c=this['facet']['compareInput'],_0x590760=this['id'],_0x2e4bc1=_0x36c250[_0x590760]>>0x1,_0x4f62ec=0x2==this['type'],_0x2257ce=!0x1,_0x3e06f7=!0x1,_0x5e8cea=[];for(let _0x3a06d8 of this['dependencies'])'doc'==_0x3a06d8?_0x2257ce=!0x0:'selection'==_0x3a06d8?_0x3e06f7=!0x0:0x1&(null!==(_0x569710=_0x36c250[_0x3a06d8['id']])&&void 0x0!==_0x569710?_0x569710:0x1)||_0x5e8cea['push'](_0x36c250[_0x3a06d8['id']]);return{'create':_0x2bdaae=>(_0x2bdaae['values'][_0x2e4bc1]=_0x395874(_0x2bdaae),0x1),'update'(_0x2ce90b,_0x1c8f07){if(_0x2257ce&&_0x1c8f07['docChanged']||_0x3e06f7&&(_0x1c8f07['docChanged']||_0x1c8f07['selection'])||ensureAll(_0x2ce90b,_0x5e8cea)){let _0xce7508=_0x395874(_0x2ce90b);if(_0x4f62ec?!compareArray(_0xce7508,_0x2ce90b['values'][_0x2e4bc1],_0xad972c):!_0xad972c(_0xce7508,_0x2ce90b['values'][_0x2e4bc1]))return _0x2ce90b['values'][_0x2e4bc1]=_0xce7508,0x1;}return 0x0;},'reconfigure':(_0x59965f,_0x14a3c4)=>{let _0x5ad742,_0x4361ea=_0x14a3c4['config']['address'][_0x590760];if(null!=_0x4361ea){let _0x5c349a=getAddr(_0x14a3c4,_0x4361ea);if(this['dependencies']['every'](_0x369884=>_0x369884 instanceof Facet?_0x14a3c4['facet'](_0x369884)===_0x59965f['facet'](_0x369884):!(_0x369884 instanceof StateField)||_0x14a3c4['field'](_0x369884,!0x1)==_0x59965f['field'](_0x369884,!0x1))||(_0x4f62ec?compareArray(_0x5ad742=_0x395874(_0x59965f),_0x5c349a,_0xad972c):_0xad972c(_0x5ad742=_0x395874(_0x59965f),_0x5c349a)))return _0x59965f['values'][_0x2e4bc1]=_0x5c349a,0x0;}else _0x5ad742=_0x395874(_0x59965f);return _0x59965f['values'][_0x2e4bc1]=_0x5ad742,0x1;}};}}function compareArray(_0x52b7c2,_0x5cecea,_0x110547){if(_0x52b7c2['length']!=_0x5cecea['length'])return!0x1;for(let _0x26b992=0x0;_0x26b992<_0x52b7c2['length'];_0x26b992++)if(!_0x110547(_0x52b7c2[_0x26b992],_0x5cecea[_0x26b992]))return!0x1;return!0x0;}function ensureAll(_0x9d9c7c,_0x440e90){let _0x3d80fb=!0x1;for(let _0x10f3a9 of _0x440e90)0x1&ensureAddr(_0x9d9c7c,_0x10f3a9)&&(_0x3d80fb=!0x0);return _0x3d80fb;}function dynamicFacetSlot(_0x263351,_0x4db23f,_0x3937ba){let _0x24994f=_0x3937ba['map'](_0x369110=>_0x263351[_0x369110['id']]),_0x166d36=_0x3937ba['map'](_0x3e1ce4=>_0x3e1ce4['type']),_0x33e25f=_0x24994f['filter'](_0x229ef3=>!(0x1&_0x229ef3)),_0x5515a6=_0x263351[_0x4db23f['id']]>>0x1;function _0x24dcaf(_0x2b9586){let _0x3a7774=[];for(let _0x32c7c8=0x0;_0x32c7c8<_0x24994f['length'];_0x32c7c8++){let _0x5800e7=getAddr(_0x2b9586,_0x24994f[_0x32c7c8]);if(0x2==_0x166d36[_0x32c7c8]){for(let _0x13fe8f of _0x5800e7)_0x3a7774['push'](_0x13fe8f);}else _0x3a7774['push'](_0x5800e7);}return _0x4db23f['combine'](_0x3a7774);}return{'create'(_0x2f93d0){for(let _0x336fe0 of _0x24994f)ensureAddr(_0x2f93d0,_0x336fe0);return _0x2f93d0['values'][_0x5515a6]=_0x24dcaf(_0x2f93d0),0x1;},'update'(_0xac7d6d,_0x50b508){if(!ensureAll(_0xac7d6d,_0x33e25f))return 0x0;let _0x207493=_0x24dcaf(_0xac7d6d);return _0x4db23f['compare'](_0x207493,_0xac7d6d['values'][_0x5515a6])?0x0:(_0xac7d6d['values'][_0x5515a6]=_0x207493,0x1);},'reconfigure'(_0x5382c7,_0x15c727){let _0x123dcb=ensureAll(_0x5382c7,_0x24994f),_0x5dcbe6=_0x15c727['config']['facets'][_0x4db23f['id']],_0x30c6b2=_0x15c727['facet'](_0x4db23f);if(_0x5dcbe6&&!_0x123dcb&&sameArray$1(_0x3937ba,_0x5dcbe6))return _0x5382c7['values'][_0x5515a6]=_0x30c6b2,0x0;let _0x39918b=_0x24dcaf(_0x5382c7);return _0x4db23f['compare'](_0x39918b,_0x30c6b2)?(_0x5382c7['values'][_0x5515a6]=_0x30c6b2,0x0):(_0x5382c7['values'][_0x5515a6]=_0x39918b,0x1);}};}const initField=Facet['define']({'static':!0x0});class StateField{constructor(_0x48217a,_0x5dc8fe,_0x4ddf49,_0x120b19,_0x54d847){this['id']=_0x48217a,this['createF']=_0x5dc8fe,this['updateF']=_0x4ddf49,this['compareF']=_0x120b19,this['spec']=_0x54d847,this['provides']=void 0x0;}static['define'](_0xfa9942){let _0x48ffd0=new StateField(nextID++,_0xfa9942['create'],_0xfa9942['update'],_0xfa9942['compare']||((_0x1a2dd6,_0x55bab3)=>_0x1a2dd6===_0x55bab3),_0xfa9942);return _0xfa9942['provide']&&(_0x48ffd0['provides']=_0xfa9942['provide'](_0x48ffd0)),_0x48ffd0;}['create'](_0x72714c){let _0x589012=_0x72714c['facet'](initField)['find'](_0x5571f5=>_0x5571f5['field']==this);return((null==_0x589012?void 0x0:_0x589012['create'])||this['createF'])(_0x72714c);}['slot'](_0x1bc140){let _0x49e934=_0x1bc140[this['id']]>>0x1;return{'create':_0x453e31=>(_0x453e31['values'][_0x49e934]=this['create'](_0x453e31),0x1),'update':(_0x574ef6,_0xa93fdf)=>{let _0x4f73fe=_0x574ef6['values'][_0x49e934],_0x211c16=this['updateF'](_0x4f73fe,_0xa93fdf);return this['compareF'](_0x4f73fe,_0x211c16)?0x0:(_0x574ef6['values'][_0x49e934]=_0x211c16,0x1);},'reconfigure':(_0x21f717,_0x155efb)=>{let _0x2df755,_0x12d22b=_0x21f717['facet'](initField),_0x40d33c=_0x155efb['facet'](initField);return(_0x2df755=_0x12d22b['find'](_0x12330d=>_0x12330d['field']==this))&&_0x2df755!=_0x40d33c['find'](_0x236a62=>_0x236a62['field']==this)?(_0x21f717['values'][_0x49e934]=_0x2df755['create'](_0x21f717),0x1):null!=_0x155efb['config']['address'][this['id']]?(_0x21f717['values'][_0x49e934]=_0x155efb['field'](this),0x0):(_0x21f717['values'][_0x49e934]=this['create'](_0x21f717),0x1);}};}['init'](_0x2f943f){return[this,initField['of']({'field':this,'create':_0x2f943f})];}get['extension'](){return this;}}const Prec_={'lowest':0x4,'low':0x3,'default':0x2,'high':0x1,'highest':0x0};function prec(_0x49cb0b){return _0x3ef5f0=>new PrecExtension(_0x3ef5f0,_0x49cb0b);}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(_0x51563f,_0x23846d){this['inner']=_0x51563f,this['prec']=_0x23846d;}}class Compartment{['of'](_0x43b4d8){return new CompartmentInstance(this,_0x43b4d8);}['reconfigure'](_0x2d99e7){return Compartment['reconfigure']['of']({'compartment':this,'extension':_0x2d99e7});}['get'](_0x47a320){return _0x47a320['config']['compartments']['get'](this);}}class CompartmentInstance{constructor(_0x3beb88,_0x4fd3b8){this['compartment']=_0x3beb88,this['inner']=_0x4fd3b8;}}class Configuration{constructor(_0xc4cdeb,_0x4cd7db,_0x36db6f,_0x1a6a4a,_0x1e5ded,_0x40eea7){for(this['base']=_0xc4cdeb,this['compartments']=_0x4cd7db,this['dynamicSlots']=_0x36db6f,this['address']=_0x1a6a4a,this['staticValues']=_0x1e5ded,this['facets']=_0x40eea7,this['statusTemplate']=[];this['statusTemplate']['length']<_0x36db6f['length'];)this['statusTemplate']['push'](0x0);}['staticFacet'](_0x1d2147){let _0x16fd62=this['address'][_0x1d2147['id']];return null==_0x16fd62?_0x1d2147['default']:this['staticValues'][_0x16fd62>>0x1];}static['resolve'](_0x13e4b3,_0x3a48df,_0x5b79d5){let _0x3d5713=[],_0x383156=Object['create'](null),_0x459ab6=new Map();for(let _0x5a8635 of flatten(_0x13e4b3,_0x3a48df,_0x459ab6))_0x5a8635 instanceof StateField?_0x3d5713['push'](_0x5a8635):(_0x383156[_0x5a8635['facet']['id']]||(_0x383156[_0x5a8635['facet']['id']]=[]))['push'](_0x5a8635);let _0x49a2a1=Object['create'](null),_0xd0c565=[],_0x431fac=[];for(let _0x5583c4 of _0x3d5713)_0x49a2a1[_0x5583c4['id']]=_0x431fac['length']<<0x1,_0x431fac['push'](_0x59a18a=>_0x5583c4['slot'](_0x59a18a));let _0x334abe=null==_0x5b79d5?void 0x0:_0x5b79d5['config']['facets'];for(let _0x5752a7 in _0x383156){let _0x50a918=_0x383156[_0x5752a7],_0x4b73e1=_0x50a918[0x0]['facet'],_0x2f780a=_0x334abe&&_0x334abe[_0x5752a7]||[];if(_0x50a918['every'](_0x400ba5=>0x0==_0x400ba5['type'])){if(_0x49a2a1[_0x4b73e1['id']]=_0xd0c565['length']<<0x1|0x1,sameArray$1(_0x2f780a,_0x50a918))_0xd0c565['push'](_0x5b79d5['facet'](_0x4b73e1));else{let _0x49eddf=_0x4b73e1['combine'](_0x50a918['map'](_0x4343d7=>_0x4343d7['value']));_0xd0c565['push'](_0x5b79d5&&_0x4b73e1['compare'](_0x49eddf,_0x5b79d5['facet'](_0x4b73e1))?_0x5b79d5['facet'](_0x4b73e1):_0x49eddf);}}else{for(let _0x544854 of _0x50a918)0x0==_0x544854['type']?(_0x49a2a1[_0x544854['id']]=_0xd0c565['length']<<0x1|0x1,_0xd0c565['push'](_0x544854['value'])):(_0x49a2a1[_0x544854['id']]=_0x431fac['length']<<0x1,_0x431fac['push'](_0x455ca5=>_0x544854['dynamicSlot'](_0x455ca5)));_0x49a2a1[_0x4b73e1['id']]=_0x431fac['length']<<0x1,_0x431fac['push'](_0xc4ec02=>dynamicFacetSlot(_0xc4ec02,_0x4b73e1,_0x50a918));}}let _0x291a7c=_0x431fac['map'](_0x227cd1=>_0x227cd1(_0x49a2a1));return new Configuration(_0x13e4b3,_0x459ab6,_0x291a7c,_0x49a2a1,_0xd0c565,_0x383156);}}function flatten(_0x123627,_0x22705c,_0xeb41c9){let _0x54ab6a=[[],[],[],[],[]],_0x5738aa=new Map();return function _0x2669d1(_0x893c57,_0x1b1b89){let _0x354720=_0x5738aa['get'](_0x893c57);if(null!=_0x354720){if(_0x354720<=_0x1b1b89)return;let _0x100389=_0x54ab6a[_0x354720]['indexOf'](_0x893c57);_0x100389>-0x1&&_0x54ab6a[_0x354720]['splice'](_0x100389,0x1),_0x893c57 instanceof CompartmentInstance&&_0xeb41c9['delete'](_0x893c57['compartment']);}if(_0x5738aa['set'](_0x893c57,_0x1b1b89),Array['isArray'](_0x893c57)){for(let _0x465611 of _0x893c57)_0x2669d1(_0x465611,_0x1b1b89);}else{if(_0x893c57 instanceof CompartmentInstance){if(_0xeb41c9['has'](_0x893c57['compartment']))throw new RangeError('Duplicate\x20use\x20of\x20compartment\x20in\x20extensions');let _0x542a0f=_0x22705c['get'](_0x893c57['compartment'])||_0x893c57['inner'];_0xeb41c9['set'](_0x893c57['compartment'],_0x542a0f),_0x2669d1(_0x542a0f,_0x1b1b89);}else{if(_0x893c57 instanceof PrecExtension)_0x2669d1(_0x893c57['inner'],_0x893c57['prec']);else{if(_0x893c57 instanceof StateField)_0x54ab6a[_0x1b1b89]['push'](_0x893c57),_0x893c57['provides']&&_0x2669d1(_0x893c57['provides'],_0x1b1b89);else{if(_0x893c57 instanceof FacetProvider)_0x54ab6a[_0x1b1b89]['push'](_0x893c57),_0x893c57['facet']['extensions']&&_0x2669d1(_0x893c57['facet']['extensions'],Prec_['default']);else{let _0x3da812=_0x893c57['extension'];if(!_0x3da812)throw new Error('Unrecognized\x20extension\x20value\x20in\x20extension\x20set\x20('+_0x893c57+').\x20This\x20sometimes\x20happens\x20because\x20multiple\x20instances\x20of\x20@codemirror/state\x20are\x20loaded,\x20breaking\x20instanceof\x20checks.');_0x2669d1(_0x3da812,_0x1b1b89);}}}}}}(_0x123627,Prec_['default']),_0x54ab6a['reduce']((_0x35b0a0,_0x441869)=>_0x35b0a0['concat'](_0x441869));}function ensureAddr(_0x162405,_0x3cddce){if(0x1&_0x3cddce)return 0x2;let _0x5a5c0c=_0x3cddce>>0x1,_0x52fc04=_0x162405['status'][_0x5a5c0c];if(0x4==_0x52fc04)throw new Error('Cyclic\x20dependency\x20between\x20fields\x20and/or\x20facets');if(0x2&_0x52fc04)return _0x52fc04;_0x162405['status'][_0x5a5c0c]=0x4;let _0x3fa683=_0x162405['computeSlot'](_0x162405,_0x162405['config']['dynamicSlots'][_0x5a5c0c]);return _0x162405['status'][_0x5a5c0c]=0x2|_0x3fa683;}function getAddr(_0x57c093,_0x44c768){return 0x1&_0x44c768?_0x57c093['config']['staticValues'][_0x44c768>>0x1]:_0x57c093['values'][_0x44c768>>0x1];}const languageData=Facet['define'](),allowMultipleSelections=Facet['define']({'combine':_0x30cb8f=>_0x30cb8f['some'](_0x2016ed=>_0x2016ed),'static':!0x0}),lineSeparator=Facet['define']({'combine':_0x54be25=>_0x54be25['length']?_0x54be25[0x0]:void 0x0,'static':!0x0}),changeFilter=Facet['define'](),transactionFilter=Facet['define'](),transactionExtender=Facet['define'](),readOnly=Facet['define']({'combine':_0x1c5519=>!!_0x1c5519['length']&&_0x1c5519[0x0]});class Annotation{constructor(_0x2abd2e,_0xdc78ba){this['type']=_0x2abd2e,this['value']=_0xdc78ba;}static['define'](){return new AnnotationType();}}class AnnotationType{['of'](_0xbedd05){return new Annotation(this,_0xbedd05);}}class StateEffectType{constructor(_0x48103b){this['map']=_0x48103b;}['of'](_0x50ea5c){return new StateEffect(this,_0x50ea5c);}}class StateEffect{constructor(_0x4df5c0,_0x2c3ac9){this['type']=_0x4df5c0,this['value']=_0x2c3ac9;}['map'](_0x180fbd){let _0x42cf65=this['type']['map'](this['value'],_0x180fbd);return void 0x0===_0x42cf65?void 0x0:_0x42cf65==this['value']?this:new StateEffect(this['type'],_0x42cf65);}['is'](_0x16b491){return this['type']==_0x16b491;}static['define'](_0x1d7dc0={}){return new StateEffectType(_0x1d7dc0['map']||(_0x52d6c8=>_0x52d6c8));}static['mapEffects'](_0xcdf102,_0xb8a2aa){if(!_0xcdf102['length'])return _0xcdf102;let _0x2c20cb=[];for(let _0x3163e3 of _0xcdf102){let _0x47c6e7=_0x3163e3['map'](_0xb8a2aa);_0x47c6e7&&_0x2c20cb['push'](_0x47c6e7);}return _0x2c20cb;}}StateEffect['reconfigure']=StateEffect['define'](),StateEffect['appendConfig']=StateEffect['define']();class Transaction{constructor(_0x172f51,_0x32f375,_0x41ce3a,_0x545548,_0x3b3a55,_0x5e4e1a){this['startState']=_0x172f51,this['changes']=_0x32f375,this['selection']=_0x41ce3a,this['effects']=_0x545548,this['annotations']=_0x3b3a55,this['scrollIntoView']=_0x5e4e1a,this['_doc']=null,this['_state']=null,_0x41ce3a&&checkSelection(_0x41ce3a,_0x32f375['newLength']),_0x3b3a55['some'](_0xa41df6=>_0xa41df6['type']==Transaction['time'])||(this['annotations']=_0x3b3a55['concat'](Transaction['time']['of'](Date['now']())));}static['create'](_0x5c159e,_0x52a4c4,_0xfe1d47,_0x13a366,_0x17fede,_0x25af5a){return new Transaction(_0x5c159e,_0x52a4c4,_0xfe1d47,_0x13a366,_0x17fede,_0x25af5a);}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'](_0xa08d40){for(let _0x1f425c of this['annotations'])if(_0x1f425c['type']==_0xa08d40)return _0x1f425c['value'];}get['docChanged'](){return!this['changes']['empty'];}get['reconfigured'](){return this['startState']['config']!=this['state']['config'];}['isUserEvent'](_0x2175b4){let _0x41e90a=this['annotation'](Transaction['userEvent']);return!(!_0x41e90a||!(_0x41e90a==_0x2175b4||_0x41e90a['length']>_0x2175b4['length']&&_0x41e90a['slice'](0x0,_0x2175b4['length'])==_0x2175b4&&'.'==_0x41e90a[_0x2175b4['length']]));}}function joinRanges(_0x2cf11a,_0x5c9260){let _0x2b7aec=[];for(let _0x56df50=0x0,_0x306605=0x0;;){let _0x83ddae,_0x39ca2c;if(_0x56df50<_0x2cf11a['length']&&(_0x306605==_0x5c9260['length']||_0x5c9260[_0x306605]>=_0x2cf11a[_0x56df50]))_0x83ddae=_0x2cf11a[_0x56df50++],_0x39ca2c=_0x2cf11a[_0x56df50++];else{if(!(_0x306605<_0x5c9260['length']))return _0x2b7aec;_0x83ddae=_0x5c9260[_0x306605++],_0x39ca2c=_0x5c9260[_0x306605++];}!_0x2b7aec['length']||_0x2b7aec[_0x2b7aec['length']-0x1]<_0x83ddae?_0x2b7aec['push'](_0x83ddae,_0x39ca2c):_0x2b7aec[_0x2b7aec['length']-0x1]<_0x39ca2c&&(_0x2b7aec[_0x2b7aec['length']-0x1]=_0x39ca2c);}}function mergeTransaction(_0x35784,_0x51ddfb,_0x31e780){var _0x4ccef1;let _0x4997e7,_0x23563f,_0x171ad7;return _0x31e780?(_0x4997e7=_0x51ddfb['changes'],_0x23563f=ChangeSet['empty'](_0x51ddfb['changes']['length']),_0x171ad7=_0x35784['changes']['compose'](_0x51ddfb['changes'])):(_0x4997e7=_0x51ddfb['changes']['map'](_0x35784['changes']),_0x23563f=_0x35784['changes']['mapDesc'](_0x51ddfb['changes'],!0x0),_0x171ad7=_0x35784['changes']['compose'](_0x4997e7)),{'changes':_0x171ad7,'selection':_0x51ddfb['selection']?_0x51ddfb['selection']['map'](_0x23563f):null===(_0x4ccef1=_0x35784['selection'])||void 0x0===_0x4ccef1?void 0x0:_0x4ccef1['map'](_0x4997e7),'effects':StateEffect['mapEffects'](_0x35784['effects'],_0x4997e7)['concat'](StateEffect['mapEffects'](_0x51ddfb['effects'],_0x23563f)),'annotations':_0x35784['annotations']['length']?_0x35784['annotations']['concat'](_0x51ddfb['annotations']):_0x51ddfb['annotations'],'scrollIntoView':_0x35784['scrollIntoView']||_0x51ddfb['scrollIntoView']};}function resolveTransactionInner(_0x3bb108,_0x4ac7c0,_0x538ade){let _0x1a2a64=_0x4ac7c0['selection'],_0x7b7c6e=asArray$2(_0x4ac7c0['annotations']);return _0x4ac7c0['userEvent']&&(_0x7b7c6e=_0x7b7c6e['concat'](Transaction['userEvent']['of'](_0x4ac7c0['userEvent']))),{'changes':_0x4ac7c0['changes']instanceof ChangeSet?_0x4ac7c0['changes']:ChangeSet['of'](_0x4ac7c0['changes']||[],_0x538ade,_0x3bb108['facet'](lineSeparator)),'selection':_0x1a2a64&&(_0x1a2a64 instanceof EditorSelection?_0x1a2a64:EditorSelection['single'](_0x1a2a64['anchor'],_0x1a2a64['head'])),'effects':asArray$2(_0x4ac7c0['effects']),'annotations':_0x7b7c6e,'scrollIntoView':!!_0x4ac7c0['scrollIntoView']};}function resolveTransaction(_0x50e0ed,_0x45cb27,_0x456e7d){let _0x204550=resolveTransactionInner(_0x50e0ed,_0x45cb27['length']?_0x45cb27[0x0]:{},_0x50e0ed['doc']['length']);_0x45cb27['length']&&!0x1===_0x45cb27[0x0]['filter']&&(_0x456e7d=!0x1);for(let _0xc45bd3=0x1;_0xc45bd3<_0x45cb27['length'];_0xc45bd3++){!0x1===_0x45cb27[_0xc45bd3]['filter']&&(_0x456e7d=!0x1);let _0x556546=!!_0x45cb27[_0xc45bd3]['sequential'];_0x204550=mergeTransaction(_0x204550,resolveTransactionInner(_0x50e0ed,_0x45cb27[_0xc45bd3],_0x556546?_0x204550['changes']['newLength']:_0x50e0ed['doc']['length']),_0x556546);}let _0x1c5e6e=Transaction['create'](_0x50e0ed,_0x204550['changes'],_0x204550['selection'],_0x204550['effects'],_0x204550['annotations'],_0x204550['scrollIntoView']);return extendTransaction(_0x456e7d?filterTransaction(_0x1c5e6e):_0x1c5e6e);}function filterTransaction(_0x4dc373){let _0x2db515=_0x4dc373['startState'],_0x146c75=!0x0;for(let _0x506834 of _0x2db515['facet'](changeFilter)){let _0x30dc54=_0x506834(_0x4dc373);if(!0x1===_0x30dc54){_0x146c75=!0x1;break;}Array['isArray'](_0x30dc54)&&(_0x146c75=!0x0===_0x146c75?_0x30dc54:joinRanges(_0x146c75,_0x30dc54));}if(!0x0!==_0x146c75){let _0x502d57,_0x1f8de4;if(!0x1===_0x146c75)_0x1f8de4=_0x4dc373['changes']['invertedDesc'],_0x502d57=ChangeSet['empty'](_0x2db515['doc']['length']);else{let _0x4bed1f=_0x4dc373['changes']['filter'](_0x146c75);_0x502d57=_0x4bed1f['changes'],_0x1f8de4=_0x4bed1f['filtered']['mapDesc'](_0x4bed1f['changes'])['invertedDesc'];}_0x4dc373=Transaction['create'](_0x2db515,_0x502d57,_0x4dc373['selection']&&_0x4dc373['selection']['map'](_0x1f8de4),StateEffect['mapEffects'](_0x4dc373['effects'],_0x1f8de4),_0x4dc373['annotations'],_0x4dc373['scrollIntoView']);}let _0xccf558=_0x2db515['facet'](transactionFilter);for(let _0x150378=_0xccf558['length']-0x1;_0x150378>=0x0;_0x150378--){let _0x57fba9=_0xccf558[_0x150378](_0x4dc373);_0x4dc373=_0x57fba9 instanceof Transaction?_0x57fba9:Array['isArray'](_0x57fba9)&&0x1==_0x57fba9['length']&&_0x57fba9[0x0]instanceof Transaction?_0x57fba9[0x0]:resolveTransaction(_0x2db515,asArray$2(_0x57fba9),!0x1);}return _0x4dc373;}function extendTransaction(_0x40df6e){let _0x731ece=_0x40df6e['startState'],_0xbb88c0=_0x731ece['facet'](transactionExtender),_0x3abf34=_0x40df6e;for(let _0xdb560f=_0xbb88c0['length']-0x1;_0xdb560f>=0x0;_0xdb560f--){let _0x5701b2=_0xbb88c0[_0xdb560f](_0x40df6e);_0x5701b2&&Object['keys'](_0x5701b2)['length']&&(_0x3abf34=mergeTransaction(_0x3abf34,resolveTransactionInner(_0x731ece,_0x5701b2,_0x40df6e['changes']['newLength']),!0x0));}return _0x3abf34==_0x40df6e?_0x40df6e:Transaction['create'](_0x731ece,_0x40df6e['changes'],_0x40df6e['selection'],_0x3abf34['effects'],_0x3abf34['annotations'],_0x3abf34['scrollIntoView']);}Transaction['time']=Annotation['define'](),Transaction['userEvent']=Annotation['define'](),Transaction['addToHistory']=Annotation['define'](),Transaction['remote']=Annotation['define']();const none$3=[];function asArray$2(_0x3bda78){return null==_0x3bda78?none$3:Array['isArray'](_0x3bda78)?_0x3bda78:[_0x3bda78];}var CharCategory=function(_0x3fa22e){return _0x3fa22e[_0x3fa22e['Word']=0x0]='Word',_0x3fa22e[_0x3fa22e['Space']=0x1]='Space',_0x3fa22e[_0x3fa22e['Other']=0x2]='Other',_0x3fa22e;}(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(_0x48ce7a){}function hasWordChar(_0x4b0b90){if(wordChar)return wordChar['test'](_0x4b0b90);for(let _0x2ac482=0x0;_0x2ac482<_0x4b0b90['length'];_0x2ac482++){let _0x4c0cb2=_0x4b0b90[_0x2ac482];if(/\w/['test'](_0x4c0cb2)||_0x4c0cb2>'\u0080'&&(_0x4c0cb2['toUpperCase']()!=_0x4c0cb2['toLowerCase']()||nonASCIISingleCaseWordChar['test'](_0x4c0cb2)))return!0x0;}return!0x1;}function makeCategorizer(_0x321e8b){return _0x18a584=>{if(!/\S/['test'](_0x18a584))return CharCategory['Space'];if(hasWordChar(_0x18a584))return CharCategory['Word'];for(let _0x4857fa=0x0;_0x4857fa<_0x321e8b['length'];_0x4857fa++)if(_0x18a584['indexOf'](_0x321e8b[_0x4857fa])>-0x1)return CharCategory['Word'];return CharCategory['Other'];};}class EditorState{constructor(_0x233b29,_0x2b6d83,_0x128281,_0x2e3b7f,_0xd0f38e,_0x1022be){this['config']=_0x233b29,this['doc']=_0x2b6d83,this['selection']=_0x128281,this['values']=_0x2e3b7f,this['status']=_0x233b29['statusTemplate']['slice'](),this['computeSlot']=_0xd0f38e,_0x1022be&&(_0x1022be['_state']=this);for(let _0x29a073=0x0;_0x29a073<this['config']['dynamicSlots']['length'];_0x29a073++)ensureAddr(this,_0x29a073<<0x1);this['computeSlot']=null;}['field'](_0x4e9195,_0x8415af=!0x0){let _0x41aef9=this['config']['address'][_0x4e9195['id']];if(null!=_0x41aef9)return ensureAddr(this,_0x41aef9),getAddr(this,_0x41aef9);if(_0x8415af)throw new RangeError('Field\x20is\x20not\x20present\x20in\x20this\x20state');}['update'](..._0x2144ab){return resolveTransaction(this,_0x2144ab,!0x0);}['applyTransaction'](_0x29261e){let _0x4b6913,_0x854efb=this['config'],{base:_0x2aae42,compartments:_0x2eef46}=_0x854efb;for(let _0x36c5c9 of _0x29261e['effects'])_0x36c5c9['is'](Compartment['reconfigure'])?(_0x854efb&&(_0x2eef46=new Map(),_0x854efb['compartments']['forEach']((_0x30c867,_0x3c8a0b)=>_0x2eef46['set'](_0x3c8a0b,_0x30c867)),_0x854efb=null),_0x2eef46['set'](_0x36c5c9['value']['compartment'],_0x36c5c9['value']['extension'])):_0x36c5c9['is'](StateEffect['reconfigure'])?(_0x854efb=null,_0x2aae42=_0x36c5c9['value']):_0x36c5c9['is'](StateEffect['appendConfig'])&&(_0x854efb=null,_0x2aae42=asArray$2(_0x2aae42)['concat'](_0x36c5c9['value']));if(_0x854efb)_0x4b6913=_0x29261e['startState']['values']['slice']();else _0x854efb=Configuration['resolve'](_0x2aae42,_0x2eef46,this),_0x4b6913=new EditorState(_0x854efb,this['doc'],this['selection'],_0x854efb['dynamicSlots']['map'](()=>null),(_0x231f9b,_0x3e834e)=>_0x3e834e['reconfigure'](_0x231f9b,this),null)['values'];let _0x3a42d1=_0x29261e['startState']['facet'](allowMultipleSelections)?_0x29261e['newSelection']:_0x29261e['newSelection']['asSingle']();new EditorState(_0x854efb,_0x29261e['newDoc'],_0x3a42d1,_0x4b6913,(_0x350314,_0x497d7e)=>_0x497d7e['update'](_0x350314,_0x29261e),_0x29261e);}['replaceSelection'](_0x54f1a2){return'string'==typeof _0x54f1a2&&(_0x54f1a2=this['toText'](_0x54f1a2)),this['changeByRange'](_0x3720d1=>({'changes':{'from':_0x3720d1['from'],'to':_0x3720d1['to'],'insert':_0x54f1a2},'range':EditorSelection['cursor'](_0x3720d1['from']+_0x54f1a2['length'])}));}['changeByRange'](_0x3e761b){let _0x226e92=this['selection'],_0x5e40a6=_0x3e761b(_0x226e92['ranges'][0x0]),_0x18f7c0=this['changes'](_0x5e40a6['changes']),_0x3cf2a3=[_0x5e40a6['range']],_0xd98a00=asArray$2(_0x5e40a6['effects']);for(let _0x3a241a=0x1;_0x3a241a<_0x226e92['ranges']['length'];_0x3a241a++){let _0x449e0e=_0x3e761b(_0x226e92['ranges'][_0x3a241a]),_0x5964ec=this['changes'](_0x449e0e['changes']),_0x322675=_0x5964ec['map'](_0x18f7c0);for(let _0x3d8206=0x0;_0x3d8206<_0x3a241a;_0x3d8206++)_0x3cf2a3[_0x3d8206]=_0x3cf2a3[_0x3d8206]['map'](_0x322675);let _0x2011bc=_0x18f7c0['mapDesc'](_0x5964ec,!0x0);_0x3cf2a3['push'](_0x449e0e['range']['map'](_0x2011bc)),_0x18f7c0=_0x18f7c0['compose'](_0x322675),_0xd98a00=StateEffect['mapEffects'](_0xd98a00,_0x322675)['concat'](StateEffect['mapEffects'](asArray$2(_0x449e0e['effects']),_0x2011bc));}return{'changes':_0x18f7c0,'selection':EditorSelection['create'](_0x3cf2a3,_0x226e92['mainIndex']),'effects':_0xd98a00};}['changes'](_0x4bd0a=[]){return _0x4bd0a instanceof ChangeSet?_0x4bd0a:ChangeSet['of'](_0x4bd0a,this['doc']['length'],this['facet'](EditorState['lineSeparator']));}['toText'](_0x443562){return Text['of'](_0x443562['split'](this['facet'](EditorState['lineSeparator'])||DefaultSplit));}['sliceDoc'](_0x27ea91=0x0,_0x446570=this['doc']['length']){return this['doc']['sliceString'](_0x27ea91,_0x446570,this['lineBreak']);}['facet'](_0xb9a0d9){let _0x5b72d8=this['config']['address'][_0xb9a0d9['id']];return null==_0x5b72d8?_0xb9a0d9['default']:(ensureAddr(this,_0x5b72d8),getAddr(this,_0x5b72d8));}['toJSON'](_0x1409cd){let _0x4d4ef2={'doc':this['sliceDoc'](),'selection':this['selection']['toJSON']()};if(_0x1409cd)for(let _0x48fe91 in _0x1409cd){let _0x4c1053=_0x1409cd[_0x48fe91];_0x4c1053 instanceof StateField&&null!=this['config']['address'][_0x4c1053['id']]&&(_0x4d4ef2[_0x48fe91]=_0x4c1053['spec']['toJSON'](this['field'](_0x1409cd[_0x48fe91]),this));}return _0x4d4ef2;}static['fromJSON'](_0x5a7d49,_0x3f1764={},_0x288fce){if(!_0x5a7d49||'string'!=typeof _0x5a7d49['doc'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20EditorState');let _0x5385ba=[];if(_0x288fce){for(let _0x37f16f in _0x288fce)if(Object['prototype']['hasOwnProperty']['call'](_0x5a7d49,_0x37f16f)){let _0x14e100=_0x288fce[_0x37f16f],_0x31c17b=_0x5a7d49[_0x37f16f];_0x5385ba['push'](_0x14e100['init'](_0x194295=>_0x14e100['spec']['fromJSON'](_0x31c17b,_0x194295)));}}return EditorState['create']({'doc':_0x5a7d49['doc'],'selection':EditorSelection['fromJSON'](_0x5a7d49['selection']),'extensions':_0x3f1764['extensions']?_0x5385ba['concat']([_0x3f1764['extensions']]):_0x5385ba});}static['create'](_0x1576d3={}){let _0x3be1ae=Configuration['resolve'](_0x1576d3['extensions']||[],new Map()),_0x31c89d=_0x1576d3['doc']instanceof Text?_0x1576d3['doc']:Text['of']((_0x1576d3['doc']||'')['split'](_0x3be1ae['staticFacet'](EditorState['lineSeparator'])||DefaultSplit)),_0x5e22cb=_0x1576d3['selection']?_0x1576d3['selection']instanceof EditorSelection?_0x1576d3['selection']:EditorSelection['single'](_0x1576d3['selection']['anchor'],_0x1576d3['selection']['head']):EditorSelection['single'](0x0);return checkSelection(_0x5e22cb,_0x31c89d['length']),_0x3be1ae['staticFacet'](allowMultipleSelections)||(_0x5e22cb=_0x5e22cb['asSingle']()),new EditorState(_0x3be1ae,_0x31c89d,_0x5e22cb,_0x3be1ae['dynamicSlots']['map'](()=>null),(_0x550a72,_0x198a55)=>_0x198a55['create'](_0x550a72),null);}get['tabSize'](){return this['facet'](EditorState['tabSize']);}get['lineBreak'](){return this['facet'](EditorState['lineSeparator'])||'\x0a';}get['readOnly'](){return this['facet'](readOnly);}['phrase'](_0x3f40f4,..._0x44d235){for(let _0x50c2d3 of this['facet'](EditorState['phrases']))if(Object['prototype']['hasOwnProperty']['call'](_0x50c2d3,_0x3f40f4)){_0x3f40f4=_0x50c2d3[_0x3f40f4];break;}return _0x44d235['length']&&(_0x3f40f4=_0x3f40f4['replace'](/\$(\$|\d*)/g,(_0x320688,_0x38aad4)=>{if('$'==_0x38aad4)return'$';let _0x15d4cf=+(_0x38aad4||0x1);return!_0x15d4cf||_0x15d4cf>_0x44d235['length']?_0x320688:_0x44d235[_0x15d4cf-0x1];})),_0x3f40f4;}['languageDataAt'](_0x48a56d,_0x56e00d,_0x117973=-0x1){let _0x5e57cd=[];for(let _0x37f3de of this['facet'](languageData))for(let _0x54eb31 of _0x37f3de(this,_0x56e00d,_0x117973))Object['prototype']['hasOwnProperty']['call'](_0x54eb31,_0x48a56d)&&_0x5e57cd['push'](_0x54eb31[_0x48a56d]);return _0x5e57cd;}['charCategorizer'](_0x222869){return makeCategorizer(this['languageDataAt']('wordChars',_0x222869)['join'](''));}['wordAt'](_0x43d17c){let {text:_0x4ddae2,from:_0x2d1a7e,length:_0x4140fc}=this['doc']['lineAt'](_0x43d17c),_0x33e9b4=this['charCategorizer'](_0x43d17c),_0x545cff=_0x43d17c-_0x2d1a7e,_0x35c83b=_0x43d17c-_0x2d1a7e;for(;_0x545cff>0x0;){let _0x589bb8=findClusterBreak(_0x4ddae2,_0x545cff,!0x1);if(_0x33e9b4(_0x4ddae2['slice'](_0x589bb8,_0x545cff))!=CharCategory['Word'])break;_0x545cff=_0x589bb8;}for(;_0x35c83b<_0x4140fc;){let _0x1cb7fa=findClusterBreak(_0x4ddae2,_0x35c83b);if(_0x33e9b4(_0x4ddae2['slice'](_0x35c83b,_0x1cb7fa))!=CharCategory['Word'])break;_0x35c83b=_0x1cb7fa;}return _0x545cff==_0x35c83b?null:EditorSelection['range'](_0x545cff+_0x2d1a7e,_0x35c83b+_0x2d1a7e);}}function combineConfig(_0x2fd489,_0x4cde72,_0x37baf6={}){let _0x5dcc9b={};for(let _0x13a5a6 of _0x2fd489)for(let _0x4fb3a3 of Object['keys'](_0x13a5a6)){let _0x3c3e99=_0x13a5a6[_0x4fb3a3],_0xed271e=_0x5dcc9b[_0x4fb3a3];if(void 0x0===_0xed271e)_0x5dcc9b[_0x4fb3a3]=_0x3c3e99;else{if(_0xed271e===_0x3c3e99||void 0x0===_0x3c3e99);else{if(!Object['hasOwnProperty']['call'](_0x37baf6,_0x4fb3a3))throw new Error('Config\x20merge\x20conflict\x20for\x20field\x20'+_0x4fb3a3);_0x5dcc9b[_0x4fb3a3]=_0x37baf6[_0x4fb3a3](_0xed271e,_0x3c3e99);}}}for(let _0x2478e7 in _0x4cde72)void 0x0===_0x5dcc9b[_0x2478e7]&&(_0x5dcc9b[_0x2478e7]=_0x4cde72[_0x2478e7]);return _0x5dcc9b;}EditorState['allowMultipleSelections']=allowMultipleSelections,EditorState['tabSize']=Facet['define']({'combine':_0xa0a647=>_0xa0a647['length']?_0xa0a647[0x0]:0x4}),EditorState['lineSeparator']=lineSeparator,EditorState['readOnly']=readOnly,EditorState['phrases']=Facet['define']({'compare'(_0x264fc9,_0x3f7a04){let _0x3eacdb=Object['keys'](_0x264fc9),_0x1c1e40=Object['keys'](_0x3f7a04);return _0x3eacdb['length']==_0x1c1e40['length']&&_0x3eacdb['every'](_0x4be320=>_0x264fc9[_0x4be320]==_0x3f7a04[_0x4be320]);}}),EditorState['languageData']=languageData,EditorState['changeFilter']=changeFilter,EditorState['transactionFilter']=transactionFilter,EditorState['transactionExtender']=transactionExtender,Compartment['reconfigure']=StateEffect['define']();class RangeValue{['eq'](_0x425f0e){return this==_0x425f0e;}['range'](_0x549eff,_0x5931db=_0x549eff){return Range$1['create'](_0x549eff,_0x5931db,this);}}RangeValue['prototype']['startSide']=RangeValue['prototype']['endSide']=0x0,RangeValue['prototype']['point']=!0x1,RangeValue['prototype']['mapMode']=MapMode['TrackDel'];let Range$1=class e{constructor(_0x4bdfcf,_0x47f453,_0x378bc0){this['from']=_0x4bdfcf,this['to']=_0x47f453,this['value']=_0x378bc0;}static['create'](_0x3b3040,_0x359c38,_0x2bc6af){return new e(_0x3b3040,_0x359c38,_0x2bc6af);}};function cmpRange(_0x531844,_0x2b7539){return _0x531844['from']-_0x2b7539['from']||_0x531844['value']['startSide']-_0x2b7539['value']['startSide'];}class Chunk{constructor(_0x4daf2f,_0x515717,_0x1cb856,_0x5b54ce){this['from']=_0x4daf2f,this['to']=_0x515717,this['value']=_0x1cb856,this['maxPoint']=_0x5b54ce;}get['length'](){return this['to'][this['to']['length']-0x1];}['findIndex'](_0x581c6a,_0x20f0d0,_0x36c764,_0x5d3878=0x0){let _0x6d7cdb=_0x36c764?this['to']:this['from'];for(let _0x4ad2e1=_0x5d3878,_0x27f49a=_0x6d7cdb['length'];;){if(_0x4ad2e1==_0x27f49a)return _0x4ad2e1;let _0x1dda3f=_0x4ad2e1+_0x27f49a>>0x1,_0x258fc3=_0x6d7cdb[_0x1dda3f]-_0x581c6a||(_0x36c764?this['value'][_0x1dda3f]['endSide']:this['value'][_0x1dda3f]['startSide'])-_0x20f0d0;if(_0x1dda3f==_0x4ad2e1)return _0x258fc3>=0x0?_0x4ad2e1:_0x27f49a;_0x258fc3>=0x0?_0x27f49a=_0x1dda3f:_0x4ad2e1=_0x1dda3f+0x1;}}['between'](_0x36b5c2,_0xd4405,_0x2c0963,_0x330e1e){for(let _0x37296a=this['findIndex'](_0xd4405,-0x3b9aca00,!0x0),_0x3a7128=this['findIndex'](_0x2c0963,0x3b9aca00,!0x1,_0x37296a);_0x37296a<_0x3a7128;_0x37296a++)if(!0x1===_0x330e1e(this['from'][_0x37296a]+_0x36b5c2,this['to'][_0x37296a]+_0x36b5c2,this['value'][_0x37296a]))return!0x1;}['map'](_0x248ab2,_0x330827){let _0x115299=[],_0x112421=[],_0x553477=[],_0x268f81=-0x1,_0x26935e=-0x1;for(let _0x467cff=0x0;_0x467cff<this['value']['length'];_0x467cff++){let _0x2ad2a5,_0x5a6034,_0x20d5e2=this['value'][_0x467cff],_0x4151cd=this['from'][_0x467cff]+_0x248ab2,_0x4a8a39=this['to'][_0x467cff]+_0x248ab2;if(_0x4151cd==_0x4a8a39){let _0x5b7a9d=_0x330827['mapPos'](_0x4151cd,_0x20d5e2['startSide'],_0x20d5e2['mapMode']);if(null==_0x5b7a9d)continue;if(_0x2ad2a5=_0x5a6034=_0x5b7a9d,_0x20d5e2['startSide']!=_0x20d5e2['endSide']&&(_0x5a6034=_0x330827['mapPos'](_0x4151cd,_0x20d5e2['endSide']),_0x5a6034<_0x2ad2a5))continue;}else{if(_0x2ad2a5=_0x330827['mapPos'](_0x4151cd,_0x20d5e2['startSide']),_0x5a6034=_0x330827['mapPos'](_0x4a8a39,_0x20d5e2['endSide']),_0x2ad2a5>_0x5a6034||_0x2ad2a5==_0x5a6034&&_0x20d5e2['startSide']>0x0&&_0x20d5e2['endSide']<=0x0)continue;}(_0x5a6034-_0x2ad2a5||_0x20d5e2['endSide']-_0x20d5e2['startSide'])<0x0||(_0x268f81<0x0&&(_0x268f81=_0x2ad2a5),_0x20d5e2['point']&&(_0x26935e=Math['max'](_0x26935e,_0x5a6034-_0x2ad2a5)),_0x115299['push'](_0x20d5e2),_0x112421['push'](_0x2ad2a5-_0x268f81),_0x553477['push'](_0x5a6034-_0x268f81));}return{'mapped':_0x115299['length']?new Chunk(_0x112421,_0x553477,_0x115299,_0x26935e):null,'pos':_0x268f81};}}class RangeSet{constructor(_0x3b31b4,_0x695565,_0x1e27f3,_0x1f7357){this['chunkPos']=_0x3b31b4,this['chunk']=_0x695565,this['nextLayer']=_0x1e27f3,this['maxPoint']=_0x1f7357;}static['create'](_0x40773d,_0x32b429,_0x293628,_0x2b2167){return new RangeSet(_0x40773d,_0x32b429,_0x293628,_0x2b2167);}get['length'](){let _0x20a1a1=this['chunk']['length']-0x1;return _0x20a1a1<0x0?0x0:Math['max'](this['chunkEnd'](_0x20a1a1),this['nextLayer']['length']);}get['size'](){if(this['isEmpty'])return 0x0;let _0x5808bc=this['nextLayer']['size'];for(let _0x2e36b9 of this['chunk'])_0x5808bc+=_0x2e36b9['value']['length'];return _0x5808bc;}['chunkEnd'](_0x378e52){return this['chunkPos'][_0x378e52]+this['chunk'][_0x378e52]['length'];}['update'](_0xbf6b8f){let {add:_0x3e3914=[],sort:_0x15aeb3=!0x1,filterFrom:_0xb41295=0x0,filterTo:_0x8d0289=this['length']}=_0xbf6b8f,_0x33e114=_0xbf6b8f['filter'];if(0x0==_0x3e3914['length']&&!_0x33e114)return this;if(_0x15aeb3&&(_0x3e3914=_0x3e3914['slice']()['sort'](cmpRange)),this['isEmpty'])return _0x3e3914['length']?RangeSet['of'](_0x3e3914):this;let _0x311075=new LayerCursor(this,null,-0x1)['goto'](0x0),_0x226f97=0x0,_0x1a2ea=[],_0xb89ccc=new RangeSetBuilder();for(;_0x311075['value']||_0x226f97<_0x3e3914['length'];)if(_0x226f97<_0x3e3914['length']&&(_0x311075['from']-_0x3e3914[_0x226f97]['from']||_0x311075['startSide']-_0x3e3914[_0x226f97]['value']['startSide'])>=0x0){let _0x4c7240=_0x3e3914[_0x226f97++];_0xb89ccc['addInner'](_0x4c7240['from'],_0x4c7240['to'],_0x4c7240['value'])||_0x1a2ea['push'](_0x4c7240);}else 0x1==_0x311075['rangeIndex']&&_0x311075['chunkIndex']<this['chunk']['length']&&(_0x226f97==_0x3e3914['length']||this['chunkEnd'](_0x311075['chunkIndex'])<_0x3e3914[_0x226f97]['from'])&&(!_0x33e114||_0xb41295>this['chunkEnd'](_0x311075['chunkIndex'])||_0x8d0289<this['chunkPos'][_0x311075['chunkIndex']])&&_0xb89ccc['addChunk'](this['chunkPos'][_0x311075['chunkIndex']],this['chunk'][_0x311075['chunkIndex']])?_0x311075['nextChunk']():((!_0x33e114||_0xb41295>_0x311075['to']||_0x8d0289<_0x311075['from']||_0x33e114(_0x311075['from'],_0x311075['to'],_0x311075['value']))&&(_0xb89ccc['addInner'](_0x311075['from'],_0x311075['to'],_0x311075['value'])||_0x1a2ea['push'](Range$1['create'](_0x311075['from'],_0x311075['to'],_0x311075['value']))),_0x311075['next']());return _0xb89ccc['finishInner'](this['nextLayer']['isEmpty']&&!_0x1a2ea['length']?RangeSet['empty']:this['nextLayer']['update']({'add':_0x1a2ea,'filter':_0x33e114,'filterFrom':_0xb41295,'filterTo':_0x8d0289}));}['map'](_0x91e55c){if(_0x91e55c['empty']||this['isEmpty'])return this;let _0x3e7f0a=[],_0x40b275=[],_0xa4bb16=-0x1;for(let _0x4c1201=0x0;_0x4c1201<this['chunk']['length'];_0x4c1201++){let _0x536ac9=this['chunkPos'][_0x4c1201],_0x548b36=this['chunk'][_0x4c1201],_0x2c8a0d=_0x91e55c['touchesRange'](_0x536ac9,_0x536ac9+_0x548b36['length']);if(!0x1===_0x2c8a0d)_0xa4bb16=Math['max'](_0xa4bb16,_0x548b36['maxPoint']),_0x3e7f0a['push'](_0x548b36),_0x40b275['push'](_0x91e55c['mapPos'](_0x536ac9));else{if(!0x0===_0x2c8a0d){let {mapped:_0xe8f2e1,pos:_0x2cf170}=_0x548b36['map'](_0x536ac9,_0x91e55c);_0xe8f2e1&&(_0xa4bb16=Math['max'](_0xa4bb16,_0xe8f2e1['maxPoint']),_0x3e7f0a['push'](_0xe8f2e1),_0x40b275['push'](_0x2cf170));}}}let _0xf2359b=this['nextLayer']['map'](_0x91e55c);return 0x0==_0x3e7f0a['length']?_0xf2359b:new RangeSet(_0x40b275,_0x3e7f0a,_0xf2359b||RangeSet['empty'],_0xa4bb16);}['between'](_0xc44ede,_0x37acbf,_0x156dc4){if(!this['isEmpty']){for(let _0x1cdb4e=0x0;_0x1cdb4e<this['chunk']['length'];_0x1cdb4e++){let _0x1990ee=this['chunkPos'][_0x1cdb4e],_0x1d6a2b=this['chunk'][_0x1cdb4e];if(_0x37acbf>=_0x1990ee&&_0xc44ede<=_0x1990ee+_0x1d6a2b['length']&&!0x1===_0x1d6a2b['between'](_0x1990ee,_0xc44ede-_0x1990ee,_0x37acbf-_0x1990ee,_0x156dc4))return;}this['nextLayer']['between'](_0xc44ede,_0x37acbf,_0x156dc4);}}['iter'](_0x24dac3=0x0){return HeapCursor['from']([this])['goto'](_0x24dac3);}get['isEmpty'](){return this['nextLayer']==this;}static['iter'](_0x4c83ad,_0xf16976=0x0){return HeapCursor['from'](_0x4c83ad)['goto'](_0xf16976);}static['compare'](_0x1292a2,_0x32dc14,_0x37f324,_0x2a3eea,_0x16b0d9=-0x1){let _0x3847e2=_0x1292a2['filter'](_0x2d6789=>_0x2d6789['maxPoint']>0x0||!_0x2d6789['isEmpty']&&_0x2d6789['maxPoint']>=_0x16b0d9),_0x441f67=_0x32dc14['filter'](_0x52872a=>_0x52872a['maxPoint']>0x0||!_0x52872a['isEmpty']&&_0x52872a['maxPoint']>=_0x16b0d9),_0x8371e8=findSharedChunks(_0x3847e2,_0x441f67,_0x37f324),_0x5f3c1e=new SpanCursor(_0x3847e2,_0x8371e8,_0x16b0d9),_0x490153=new SpanCursor(_0x441f67,_0x8371e8,_0x16b0d9);_0x37f324['iterGaps']((_0x23a9a6,_0xa431f2,_0x10adc5)=>compare(_0x5f3c1e,_0x23a9a6,_0x490153,_0xa431f2,_0x10adc5,_0x2a3eea)),_0x37f324['empty']&&0x0==_0x37f324['length']&&compare(_0x5f3c1e,0x0,_0x490153,0x0,0x0,_0x2a3eea);}static['eq'](_0x3013b4,_0x32e3b0,_0xaf484=0x0,_0x5ca769){null==_0x5ca769&&(_0x5ca769=0x3b9ac9ff);let _0x48c4e2=_0x3013b4['filter'](_0x473efd=>!_0x473efd['isEmpty']&&_0x32e3b0['indexOf'](_0x473efd)<0x0),_0x3b6f7b=_0x32e3b0['filter'](_0x242874=>!_0x242874['isEmpty']&&_0x3013b4['indexOf'](_0x242874)<0x0);if(_0x48c4e2['length']!=_0x3b6f7b['length'])return!0x1;if(!_0x48c4e2['length'])return!0x0;let _0x2c0940=findSharedChunks(_0x48c4e2,_0x3b6f7b),_0x14d1f2=new SpanCursor(_0x48c4e2,_0x2c0940,0x0)['goto'](_0xaf484),_0xb5a2e6=new SpanCursor(_0x3b6f7b,_0x2c0940,0x0)['goto'](_0xaf484);for(;;){if(_0x14d1f2['to']!=_0xb5a2e6['to']||!sameValues(_0x14d1f2['active'],_0xb5a2e6['active'])||_0x14d1f2['point']&&(!_0xb5a2e6['point']||!_0x14d1f2['point']['eq'](_0xb5a2e6['point'])))return!0x1;if(_0x14d1f2['to']>_0x5ca769)return!0x0;_0x14d1f2['next'](),_0xb5a2e6['next']();}}static['spans'](_0x337f49,_0x3ae51f,_0x127afd,_0x420e81,_0x2d2a42=-0x1){let _0x16a457=new SpanCursor(_0x337f49,null,_0x2d2a42)['goto'](_0x3ae51f),_0x5b5de8=_0x3ae51f,_0x4be79c=_0x16a457['openStart'];for(;;){let _0x4e007e=Math['min'](_0x16a457['to'],_0x127afd);if(_0x16a457['point']){let _0x53fea7=_0x16a457['activeForPoint'](_0x16a457['to']),_0x34c08e=_0x16a457['pointFrom']<_0x3ae51f?_0x53fea7['length']+0x1:_0x16a457['point']['startSide']<0x0?_0x53fea7['length']:Math['min'](_0x53fea7['length'],_0x4be79c);_0x420e81['point'](_0x5b5de8,_0x4e007e,_0x16a457['point'],_0x53fea7,_0x34c08e,_0x16a457['pointRank']),_0x4be79c=Math['min'](_0x16a457['openEnd'](_0x4e007e),_0x53fea7['length']);}else _0x4e007e>_0x5b5de8&&(_0x420e81['span'](_0x5b5de8,_0x4e007e,_0x16a457['active'],_0x4be79c),_0x4be79c=_0x16a457['openEnd'](_0x4e007e));if(_0x16a457['to']>_0x127afd)return _0x4be79c+(_0x16a457['point']&&_0x16a457['to']>_0x127afd?0x1:0x0);_0x5b5de8=_0x16a457['to'],_0x16a457['next']();}}static['of'](_0x3736e9,_0x179862=!0x1){let _0x219d07=new RangeSetBuilder();for(let _0x8f0c3d of _0x3736e9 instanceof Range$1?[_0x3736e9]:_0x179862?lazySort(_0x3736e9):_0x3736e9)_0x219d07['add'](_0x8f0c3d['from'],_0x8f0c3d['to'],_0x8f0c3d['value']);return _0x219d07['finish']();}static['join'](_0x2b6fd6){if(!_0x2b6fd6['length'])return RangeSet['empty'];let _0x2b6dff=_0x2b6fd6[_0x2b6fd6['length']-0x1];for(let _0x130be6=_0x2b6fd6['length']-0x2;_0x130be6>=0x0;_0x130be6--)for(let _0x1fd42f=_0x2b6fd6[_0x130be6];_0x1fd42f!=RangeSet['empty'];_0x1fd42f=_0x1fd42f['nextLayer'])_0x2b6dff=new RangeSet(_0x1fd42f['chunkPos'],_0x1fd42f['chunk'],_0x2b6dff,Math['max'](_0x1fd42f['maxPoint'],_0x2b6dff['maxPoint']));return _0x2b6dff;}}function lazySort(_0x1ac4b2){if(_0x1ac4b2['length']>0x1)for(let _0x57bc5d=_0x1ac4b2[0x0],_0x536767=0x1;_0x536767<_0x1ac4b2['length'];_0x536767++){let _0x72624e=_0x1ac4b2[_0x536767];if(cmpRange(_0x57bc5d,_0x72624e)>0x0)return _0x1ac4b2['slice']()['sort'](cmpRange);_0x57bc5d=_0x72624e;}return _0x1ac4b2;}RangeSet['empty']=new RangeSet([],[],null,-0x1),RangeSet['empty']['nextLayer']=RangeSet['empty'];class RangeSetBuilder{['finishChunk'](_0x5776f0){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,_0x5776f0&&(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'](_0x29588e,_0x4d76f7,_0x2cf184){this['addInner'](_0x29588e,_0x4d76f7,_0x2cf184)||(this['nextLayer']||(this['nextLayer']=new RangeSetBuilder()))['add'](_0x29588e,_0x4d76f7,_0x2cf184);}['addInner'](_0x279547,_0x3bc755,_0x584434){let _0x14d3f7=_0x279547-this['lastTo']||_0x584434['startSide']-this['last']['endSide'];if(_0x14d3f7<=0x0&&(_0x279547-this['lastFrom']||_0x584434['startSide']-this['last']['startSide'])<0x0)throw new Error('Ranges\x20must\x20be\x20added\x20sorted\x20by\x20`from`\x20position\x20and\x20`startSide`');return!(_0x14d3f7<0x0)&&(0xfa==this['from']['length']&&this['finishChunk'](!0x0),this['chunkStart']<0x0&&(this['chunkStart']=_0x279547),this['from']['push'](_0x279547-this['chunkStart']),this['to']['push'](_0x3bc755-this['chunkStart']),this['last']=_0x584434,this['lastFrom']=_0x279547,this['lastTo']=_0x3bc755,this['value']['push'](_0x584434),_0x584434['point']&&(this['maxPoint']=Math['max'](this['maxPoint'],_0x3bc755-_0x279547)),!0x0);}['addChunk'](_0x103f3b,_0x50e899){if((_0x103f3b-this['lastTo']||_0x50e899['value'][0x0]['startSide']-this['last']['endSide'])<0x0)return!0x1;this['from']['length']&&this['finishChunk'](!0x0),this['setMaxPoint']=Math['max'](this['setMaxPoint'],_0x50e899['maxPoint']),this['chunks']['push'](_0x50e899),this['chunkPos']['push'](_0x103f3b);let _0x494ae8=_0x50e899['value']['length']-0x1;return this['last']=_0x50e899['value'][_0x494ae8],this['lastFrom']=_0x50e899['from'][_0x494ae8]+_0x103f3b,this['lastTo']=_0x50e899['to'][_0x494ae8]+_0x103f3b,!0x0;}['finish'](){return this['finishInner'](RangeSet['empty']);}['finishInner'](_0x24f292){if(this['from']['length']&&this['finishChunk'](!0x1),0x0==this['chunks']['length'])return _0x24f292;let _0x6a5c7e=RangeSet['create'](this['chunkPos'],this['chunks'],this['nextLayer']?this['nextLayer']['finishInner'](_0x24f292):_0x24f292,this['setMaxPoint']);return this['from']=null,_0x6a5c7e;}}function findSharedChunks(_0x241984,_0x17daa4,_0x4b365a){let _0x32c3c5=new Map();for(let _0x323783 of _0x241984)for(let _0x49d26a=0x0;_0x49d26a<_0x323783['chunk']['length'];_0x49d26a++)_0x323783['chunk'][_0x49d26a]['maxPoint']<=0x0&&_0x32c3c5['set'](_0x323783['chunk'][_0x49d26a],_0x323783['chunkPos'][_0x49d26a]);let _0x5d47b9=new Set();for(let _0x23d502 of _0x17daa4)for(let _0x4114c8=0x0;_0x4114c8<_0x23d502['chunk']['length'];_0x4114c8++){let _0x163715=_0x32c3c5['get'](_0x23d502['chunk'][_0x4114c8]);null==_0x163715||(_0x4b365a?_0x4b365a['mapPos'](_0x163715):_0x163715)!=_0x23d502['chunkPos'][_0x4114c8]||(null==_0x4b365a?void 0x0:_0x4b365a['touchesRange'](_0x163715,_0x163715+_0x23d502['chunk'][_0x4114c8]['length']))||_0x5d47b9['add'](_0x23d502['chunk'][_0x4114c8]);}return _0x5d47b9;}class LayerCursor{constructor(_0x519371,_0x6a042c,_0xcf2742,_0x4d4f22=0x0){this['layer']=_0x519371,this['skip']=_0x6a042c,this['minPoint']=_0xcf2742,this['rank']=_0x4d4f22;}get['startSide'](){return this['value']?this['value']['startSide']:0x0;}get['endSide'](){return this['value']?this['value']['endSide']:0x0;}['goto'](_0x2c8b99,_0x2a2579=-0x3b9aca00){return this['chunkIndex']=this['rangeIndex']=0x0,this['gotoInner'](_0x2c8b99,_0x2a2579,!0x1),this;}['gotoInner'](_0x1977ef,_0x5546fa,_0x938ad){for(;this['chunkIndex']<this['layer']['chunk']['length'];){let _0x23689c=this['layer']['chunk'][this['chunkIndex']];if(!(this['skip']&&this['skip']['has'](_0x23689c)||this['layer']['chunkEnd'](this['chunkIndex'])<_0x1977ef||_0x23689c['maxPoint']<this['minPoint']))break;this['chunkIndex']++,_0x938ad=!0x1;}if(this['chunkIndex']<this['layer']['chunk']['length']){let _0x16652e=this['layer']['chunk'][this['chunkIndex']]['findIndex'](_0x1977ef-this['layer']['chunkPos'][this['chunkIndex']],_0x5546fa,!0x0);(!_0x938ad||this['rangeIndex']<_0x16652e)&&this['setRangeIndex'](_0x16652e);}this['next']();}['forward'](_0x243783,_0x28caf8){(this['to']-_0x243783||this['endSide']-_0x28caf8)<0x0&&this['gotoInner'](_0x243783,_0x28caf8,!0x0);}['next'](){for(;;){if(this['chunkIndex']==this['layer']['chunk']['length']){this['from']=this['to']=0x3b9aca00,this['value']=null;break;}{let _0x40f189=this['layer']['chunkPos'][this['chunkIndex']],_0x2833a3=this['layer']['chunk'][this['chunkIndex']],_0x89cb1=_0x40f189+_0x2833a3['from'][this['rangeIndex']];if(this['from']=_0x89cb1,this['to']=_0x40f189+_0x2833a3['to'][this['rangeIndex']],this['value']=_0x2833a3['value'][this['rangeIndex']],this['setRangeIndex'](this['rangeIndex']+0x1),this['minPoint']<0x0||this['value']['point']&&this['to']-this['from']>=this['minPoint'])break;}}}['setRangeIndex'](_0x3dbac4){if(_0x3dbac4==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']=_0x3dbac4;}['nextChunk'](){this['chunkIndex']++,this['rangeIndex']=0x0,this['next']();}['compare'](_0x438090){return this['from']-_0x438090['from']||this['startSide']-_0x438090['startSide']||this['rank']-_0x438090['rank']||this['to']-_0x438090['to']||this['endSide']-_0x438090['endSide'];}}class HeapCursor{constructor(_0xf97024){this['heap']=_0xf97024;}static['from'](_0x5c4a3d,_0x4dd73a=null,_0x27fddb=-0x1){let _0x2550a1=[];for(let _0x4462df=0x0;_0x4462df<_0x5c4a3d['length'];_0x4462df++)for(let _0x2af5c8=_0x5c4a3d[_0x4462df];!_0x2af5c8['isEmpty'];_0x2af5c8=_0x2af5c8['nextLayer'])_0x2af5c8['maxPoint']>=_0x27fddb&&_0x2550a1['push'](new LayerCursor(_0x2af5c8,_0x4dd73a,_0x27fddb,_0x4462df));return 0x1==_0x2550a1['length']?_0x2550a1[0x0]:new HeapCursor(_0x2550a1);}get['startSide'](){return this['value']?this['value']['startSide']:0x0;}['goto'](_0x4f9d4c,_0x11b2f9=-0x3b9aca00){for(let _0x5e31c8 of this['heap'])_0x5e31c8['goto'](_0x4f9d4c,_0x11b2f9);for(let _0x2487f1=this['heap']['length']>>0x1;_0x2487f1>=0x0;_0x2487f1--)heapBubble(this['heap'],_0x2487f1);return this['next'](),this;}['forward'](_0x5d2d8e,_0x5655c1){for(let _0x5f49e1 of this['heap'])_0x5f49e1['forward'](_0x5d2d8e,_0x5655c1);for(let _0x33d57a=this['heap']['length']>>0x1;_0x33d57a>=0x0;_0x33d57a--)heapBubble(this['heap'],_0x33d57a);(this['to']-_0x5d2d8e||this['value']['endSide']-_0x5655c1)<0x0&&this['next']();}['next'](){if(0x0==this['heap']['length'])this['from']=this['to']=0x3b9aca00,this['value']=null,this['rank']=-0x1;else{let _0x516b6a=this['heap'][0x0];this['from']=_0x516b6a['from'],this['to']=_0x516b6a['to'],this['value']=_0x516b6a['value'],this['rank']=_0x516b6a['rank'],_0x516b6a['value']&&_0x516b6a['next'](),heapBubble(this['heap'],0x0);}}}function heapBubble(_0x2d55af,_0x5764d6){for(let _0x3c530c=_0x2d55af[_0x5764d6];;){let _0x55bce1=0x1+(_0x5764d6<<0x1);if(_0x55bce1>=_0x2d55af['length'])break;let _0x28e877=_0x2d55af[_0x55bce1];if(_0x55bce1+0x1<_0x2d55af['length']&&_0x28e877['compare'](_0x2d55af[_0x55bce1+0x1])>=0x0&&(_0x28e877=_0x2d55af[_0x55bce1+0x1],_0x55bce1++),_0x3c530c['compare'](_0x28e877)<0x0)break;_0x2d55af[_0x55bce1]=_0x3c530c,_0x2d55af[_0x5764d6]=_0x28e877,_0x5764d6=_0x55bce1;}}class SpanCursor{constructor(_0x39ac43,_0x247a50,_0x4d1e1b){this['minPoint']=_0x4d1e1b,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'](_0x39ac43,_0x247a50,_0x4d1e1b);}['goto'](_0x2d856d,_0xce2384=-0x3b9aca00){return this['cursor']['goto'](_0x2d856d,_0xce2384),this['active']['length']=this['activeTo']['length']=this['activeRank']['length']=0x0,this['minActive']=-0x1,this['to']=_0x2d856d,this['endSide']=_0xce2384,this['openStart']=-0x1,this['next'](),this;}['forward'](_0x78cf60,_0x3b7d94){for(;this['minActive']>-0x1&&(this['activeTo'][this['minActive']]-_0x78cf60||this['active'][this['minActive']]['endSide']-_0x3b7d94)<0x0;)this['removeActive'](this['minActive']);this['cursor']['forward'](_0x78cf60,_0x3b7d94);}['removeActive'](_0x468f07){remove(this['active'],_0x468f07),remove(this['activeTo'],_0x468f07),remove(this['activeRank'],_0x468f07),this['minActive']=findMinIndex(this['active'],this['activeTo']);}['addActive'](_0xa822b0){let _0x440942=0x0,{value:_0x2d13db,to:_0x3f2e4b,rank:_0x2160ef}=this['cursor'];for(;_0x440942<this['activeRank']['length']&&(_0x2160ef-this['activeRank'][_0x440942]||_0x3f2e4b-this['activeTo'][_0x440942])>0x0;)_0x440942++;insert(this['active'],_0x440942,_0x2d13db),insert(this['activeTo'],_0x440942,_0x3f2e4b),insert(this['activeRank'],_0x440942,_0x2160ef),_0xa822b0&&insert(_0xa822b0,_0x440942,this['cursor']['from']),this['minActive']=findMinIndex(this['active'],this['activeTo']);}['next'](){let _0x2e0402=this['to'],_0x263599=this['point'];this['point']=null;let _0x259c86=this['openStart']<0x0?[]:null;for(;;){let _0x3a1ab7=this['minActive'];if(_0x3a1ab7>-0x1&&(this['activeTo'][_0x3a1ab7]-this['cursor']['from']||this['active'][_0x3a1ab7]['endSide']-this['cursor']['startSide'])<0x0){if(this['activeTo'][_0x3a1ab7]>_0x2e0402){this['to']=this['activeTo'][_0x3a1ab7],this['endSide']=this['active'][_0x3a1ab7]['endSide'];break;}this['removeActive'](_0x3a1ab7),_0x259c86&&remove(_0x259c86,_0x3a1ab7);}else{if(!this['cursor']['value']){this['to']=this['endSide']=0x3b9aca00;break;}if(this['cursor']['from']>_0x2e0402){this['to']=this['cursor']['from'],this['endSide']=this['cursor']['startSide'];break;}{let _0x4b54e0=this['cursor']['value'];if(_0x4b54e0['point']){if(!(_0x263599&&this['cursor']['to']==this['to']&&this['cursor']['from']<this['cursor']['to'])){this['point']=_0x4b54e0,this['pointFrom']=this['cursor']['from'],this['pointRank']=this['cursor']['rank'],this['to']=this['cursor']['to'],this['endSide']=_0x4b54e0['endSide'],this['cursor']['next'](),this['forward'](this['to'],this['endSide']);break;}this['cursor']['next']();}else this['addActive'](_0x259c86),this['cursor']['next']();}}}if(_0x259c86){this['openStart']=0x0;for(let _0x49d187=_0x259c86['length']-0x1;_0x49d187>=0x0&&_0x259c86[_0x49d187]<_0x2e0402;_0x49d187--)this['openStart']++;}}['activeForPoint'](_0x2cd59d){if(!this['active']['length'])return this['active'];let _0x1dff60=[];for(let _0x4d2c56=this['active']['length']-0x1;_0x4d2c56>=0x0&&!(this['activeRank'][_0x4d2c56]<this['pointRank']);_0x4d2c56--)(this['activeTo'][_0x4d2c56]>_0x2cd59d||this['activeTo'][_0x4d2c56]==_0x2cd59d&&this['active'][_0x4d2c56]['endSide']>=this['point']['endSide'])&&_0x1dff60['push'](this['active'][_0x4d2c56]);return _0x1dff60['reverse']();}['openEnd'](_0x533674){let _0x40b578=0x0;for(let _0x4261e4=this['activeTo']['length']-0x1;_0x4261e4>=0x0&&this['activeTo'][_0x4261e4]>_0x533674;_0x4261e4--)_0x40b578++;return _0x40b578;}}function compare(_0x78c3e0,_0x3fe312,_0x4c038b,_0x5be37f,_0x4b236d,_0x5b123b){_0x78c3e0['goto'](_0x3fe312),_0x4c038b['goto'](_0x5be37f);let _0x1a8224=_0x5be37f+_0x4b236d,_0x559c6c=_0x5be37f,_0x482ed8=_0x5be37f-_0x3fe312;for(;;){let _0x1c0d2c=_0x78c3e0['to']+_0x482ed8-_0x4c038b['to'],_0x241159=_0x1c0d2c||_0x78c3e0['endSide']-_0x4c038b['endSide'],_0x11f03c=_0x241159<0x0?_0x78c3e0['to']+_0x482ed8:_0x4c038b['to'],_0x525897=Math['min'](_0x11f03c,_0x1a8224);if(_0x78c3e0['point']||_0x4c038b['point']?_0x78c3e0['point']&&_0x4c038b['point']&&(_0x78c3e0['point']==_0x4c038b['point']||_0x78c3e0['point']['eq'](_0x4c038b['point']))&&sameValues(_0x78c3e0['activeForPoint'](_0x78c3e0['to']),_0x4c038b['activeForPoint'](_0x4c038b['to']))||_0x5b123b['comparePoint'](_0x559c6c,_0x525897,_0x78c3e0['point'],_0x4c038b['point']):_0x525897>_0x559c6c&&!sameValues(_0x78c3e0['active'],_0x4c038b['active'])&&_0x5b123b['compareRange'](_0x559c6c,_0x525897,_0x78c3e0['active'],_0x4c038b['active']),_0x11f03c>_0x1a8224)break;(_0x1c0d2c||_0x78c3e0['openEnd']!=_0x4c038b['openEnd'])&&_0x5b123b['boundChange']&&_0x5b123b['boundChange'](_0x11f03c),_0x559c6c=_0x11f03c,_0x241159<=0x0&&_0x78c3e0['next'](),_0x241159>=0x0&&_0x4c038b['next']();}}function sameValues(_0x2299ba,_0x3e9d60){if(_0x2299ba['length']!=_0x3e9d60['length'])return!0x1;for(let _0x35ba94=0x0;_0x35ba94<_0x2299ba['length'];_0x35ba94++)if(_0x2299ba[_0x35ba94]!=_0x3e9d60[_0x35ba94]&&!_0x2299ba[_0x35ba94]['eq'](_0x3e9d60[_0x35ba94]))return!0x1;return!0x0;}function remove(_0x139cb9,_0x3862f1){for(let _0x46a864=_0x3862f1,_0x48cca3=_0x139cb9['length']-0x1;_0x46a864<_0x48cca3;_0x46a864++)_0x139cb9[_0x46a864]=_0x139cb9[_0x46a864+0x1];_0x139cb9['pop']();}function insert(_0x586e4a,_0x2afc35,_0x4e77bb){for(let _0xd368e8=_0x586e4a['length']-0x1;_0xd368e8>=_0x2afc35;_0xd368e8--)_0x586e4a[_0xd368e8+0x1]=_0x586e4a[_0xd368e8];_0x586e4a[_0x2afc35]=_0x4e77bb;}function findMinIndex(_0xa32f0e,_0x405aae){let _0x4a3f30=-0x1,_0x15e4a4=0x3b9aca00;for(let _0x56c91f=0x0;_0x56c91f<_0x405aae['length'];_0x56c91f++)(_0x405aae[_0x56c91f]-_0x15e4a4||_0xa32f0e[_0x56c91f]['endSide']-_0xa32f0e[_0x4a3f30]['endSide'])<0x0&&(_0x4a3f30=_0x56c91f,_0x15e4a4=_0x405aae[_0x56c91f]);return _0x4a3f30;}function countColumn(_0x5d1fc6,_0x3d8515,_0x7fea4e=_0x5d1fc6['length']){let _0x5642cc=0x0;for(let _0x57d8dc=0x0;_0x57d8dc<_0x7fea4e&&_0x57d8dc<_0x5d1fc6['length'];)0x9==_0x5d1fc6['charCodeAt'](_0x57d8dc)?(_0x5642cc+=_0x3d8515-_0x5642cc%_0x3d8515,_0x57d8dc++):(_0x5642cc++,_0x57d8dc=findClusterBreak(_0x5d1fc6,_0x57d8dc));return _0x5642cc;}function findColumn(_0x12700c,_0x26016f,_0x1837e6,_0x50eeee){for(let _0x15885f=0x0,_0xd22da1=0x0;;){if(_0xd22da1>=_0x26016f)return _0x15885f;if(_0x15885f==_0x12700c['length'])break;_0xd22da1+=0x9==_0x12700c['charCodeAt'](_0x15885f)?_0x1837e6-_0xd22da1%_0x1837e6:0x1,_0x15885f=findClusterBreak(_0x12700c,_0x15885f);}return!0x0===_0x50eeee?-0x1:_0x12700c['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(_0x46315f,_0x40d397){this['rules']=[];let {finish:_0x2c87e0}=_0x40d397||{};function _0x53f9d5(_0xd45f84){return/^@/['test'](_0xd45f84)?[_0xd45f84]:_0xd45f84['split'](/,\s*/);}function _0x13e049(_0x4757c4,_0x39cf01,_0x420dbf,_0x1158ff){let _0x196a62=[],_0x59c3d6=/^@(\w+)\b/['exec'](_0x4757c4[0x0]),_0x502134=_0x59c3d6&&'keyframes'==_0x59c3d6[0x1];if(_0x59c3d6&&null==_0x39cf01)return _0x420dbf['push'](_0x4757c4[0x0]+';');for(let _0x487b7d in _0x39cf01){let _0x520b42=_0x39cf01[_0x487b7d];if(/&/['test'](_0x487b7d))_0x13e049(_0x487b7d['split'](/,\s*/)['map'](_0x1bc299=>_0x4757c4['map'](_0x3879d2=>_0x1bc299['replace'](/&/,_0x3879d2)))['reduce']((_0x513195,_0x4e1291)=>_0x513195['concat'](_0x4e1291)),_0x520b42,_0x420dbf);else{if(_0x520b42&&'object'==typeof _0x520b42){if(!_0x59c3d6)throw new RangeError('The\x20value\x20of\x20a\x20property\x20('+_0x487b7d+')\x20should\x20be\x20a\x20primitive\x20value.');_0x13e049(_0x53f9d5(_0x487b7d),_0x520b42,_0x196a62,_0x502134);}else null!=_0x520b42&&_0x196a62['push'](_0x487b7d['replace'](/_.*/,'')['replace'](/[A-Z]/g,_0x1fff90=>'-'+_0x1fff90['toLowerCase']())+':\x20'+_0x520b42+';');}}(_0x196a62['length']||_0x502134)&&_0x420dbf['push']((!_0x2c87e0||_0x59c3d6||_0x1158ff?_0x4757c4:_0x4757c4['map'](_0x2c87e0))['join'](',\x20')+'\x20{'+_0x196a62['join']('\x20')+'}');}for(let _0x385c5e in _0x46315f)_0x13e049(_0x53f9d5(_0x385c5e),_0x46315f[_0x385c5e],this['rules']);}['getRules'](){return this['rules']['join']('\x0a');}static['newName'](){let _0x4dae68=top[COUNT]||0x1;return top[COUNT]=_0x4dae68+0x1,C+_0x4dae68['toString'](0x24);}static['mount'](_0x5e4e04,_0x4159ea,_0xab199b){let _0x5055bf=_0x5e4e04[SET],_0xfc913c=_0xab199b&&_0xab199b['nonce'];_0x5055bf?_0xfc913c&&_0x5055bf['setNonce'](_0xfc913c):_0x5055bf=new StyleSet(_0x5e4e04,_0xfc913c),_0x5055bf['mount'](Array['isArray'](_0x4159ea)?_0x4159ea:[_0x4159ea],_0x5e4e04);}}let adoptedSet=new Map();class StyleSet{constructor(_0x1566a0,_0x13c5f6){let _0x423c36=_0x1566a0['ownerDocument']||_0x1566a0,_0x5a98bd=_0x423c36['defaultView'];if(!_0x1566a0['head']&&_0x1566a0['adoptedStyleSheets']&&_0x5a98bd['CSSStyleSheet']){let _0x207aaf=adoptedSet['get'](_0x423c36);if(_0x207aaf)return _0x1566a0[SET]=_0x207aaf;this['sheet']=new _0x5a98bd['CSSStyleSheet'](),adoptedSet['set'](_0x423c36,this);}else this['styleTag']=_0x423c36['createElement']('style'),_0x13c5f6&&this['styleTag']['setAttribute']('nonce',_0x13c5f6);this['modules']=[],_0x1566a0[SET]=this;}['mount'](_0x5d6e3f,_0x219096){let _0x13c47f=this['sheet'],_0x5e46cc=0x0,_0x1ac8b6=0x0;for(let _0x261a37=0x0;_0x261a37<_0x5d6e3f['length'];_0x261a37++){let _0x47aaa0=_0x5d6e3f[_0x261a37],_0x27ddbc=this['modules']['indexOf'](_0x47aaa0);if(_0x27ddbc<_0x1ac8b6&&_0x27ddbc>-0x1&&(this['modules']['splice'](_0x27ddbc,0x1),_0x1ac8b6--,_0x27ddbc=-0x1),-0x1==_0x27ddbc){if(this['modules']['splice'](_0x1ac8b6++,0x0,_0x47aaa0),_0x13c47f){for(let _0x51822f=0x0;_0x51822f<_0x47aaa0['rules']['length'];_0x51822f++)_0x13c47f['insertRule'](_0x47aaa0['rules'][_0x51822f],_0x5e46cc++);}}else{for(;_0x1ac8b6<_0x27ddbc;)_0x5e46cc+=this['modules'][_0x1ac8b6++]['rules']['length'];_0x5e46cc+=_0x47aaa0['rules']['length'],_0x1ac8b6++;}}if(_0x13c47f)_0x219096['adoptedStyleSheets']['indexOf'](this['sheet'])<0x0&&(_0x219096['adoptedStyleSheets']=[this['sheet'],..._0x219096['adoptedStyleSheets']]);else{let _0x368121='';for(let _0x52d059=0x0;_0x52d059<this['modules']['length'];_0x52d059++)_0x368121+=this['modules'][_0x52d059]['getRules']()+'\x0a';this['styleTag']['textContent']=_0x368121;let _0x120b7b=_0x219096['head']||_0x219096;this['styleTag']['parentNode']!=_0x120b7b&&_0x120b7b['insertBefore'](this['styleTag'],_0x120b7b['firstChild']);}}['setNonce'](_0x576d4f){this['styleTag']&&this['styleTag']['getAttribute']('nonce')!=_0x576d4f&&this['styleTag']['setAttribute']('nonce',_0x576d4f);}}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$2=0x0;i$2<0xa;i$2++)base$2[0x30+i$2]=base$2[0x60+i$2]=String(i$2);for(var i$2=0x1;i$2<=0x18;i$2++)base$2[i$2+0x6f]='F'+i$2;for(var i$2=0x41;i$2<=0x5a;i$2++)base$2[i$2]=String['fromCharCode'](i$2+0x20),shift[i$2]=String['fromCharCode'](i$2);for(var code in base$2)shift['hasOwnProperty'](code)||(shift[code]=base$2[code]);function keyName(_0x2ee8e1){var _0x1f840c=!(mac&&_0x2ee8e1['metaKey']&&_0x2ee8e1['shiftKey']&&!_0x2ee8e1['ctrlKey']&&!_0x2ee8e1['altKey']||ie$1&&_0x2ee8e1['shiftKey']&&_0x2ee8e1['key']&&0x1==_0x2ee8e1['key']['length']||'Unidentified'==_0x2ee8e1['key'])&&_0x2ee8e1['key']||(_0x2ee8e1['shiftKey']?shift:base$2)[_0x2ee8e1['keyCode']]||_0x2ee8e1['key']||'Unidentified';return'Esc'==_0x1f840c&&(_0x1f840c='Escape'),'Del'==_0x1f840c&&(_0x1f840c='Delete'),'Left'==_0x1f840c&&(_0x1f840c='ArrowLeft'),'Up'==_0x1f840c&&(_0x1f840c='ArrowUp'),'Right'==_0x1f840c&&(_0x1f840c='ArrowRight'),'Down'==_0x1f840c&&(_0x1f840c='ArrowDown'),_0x1f840c;}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']),'webkit_version':webkit?+(/\bAppleWebKit\/(\d+)/['exec'](nav['userAgent'])||[0x0,0x0])[0x1]:0x0,'safari':safari,'safari_version':safari?+(/\bVersion\/(\d+(\.\d+)?)/['exec'](nav['userAgent'])||[0x0,0x0])[0x1]:0x0,'tabSize':null!=doc['documentElement']['style']['tabSize']?'tab-size':'-moz-tab-size'};function getSelection(_0x3c87e4){let _0x5abcf0;return _0x5abcf0=0xb==_0x3c87e4['nodeType']?_0x3c87e4['getSelection']?_0x3c87e4:_0x3c87e4['ownerDocument']:_0x3c87e4,_0x5abcf0['getSelection']();}function contains(_0x2f3ab6,_0x223755){return!!_0x223755&&(_0x2f3ab6==_0x223755||_0x2f3ab6['contains'](0x1!=_0x223755['nodeType']?_0x223755['parentNode']:_0x223755));}function hasSelection(_0x305f69,_0x292168){if(!_0x292168['anchorNode'])return!0x1;try{return contains(_0x305f69,_0x292168['anchorNode']);}catch(_0x4bd1b4){return!0x1;}}function clientRectsFor(_0x470089){return 0x3==_0x470089['nodeType']?textRange(_0x470089,0x0,_0x470089['nodeValue']['length'])['getClientRects']():0x1==_0x470089['nodeType']?_0x470089['getClientRects']():[];}function isEquivalentPosition(_0x1003ee,_0x10f86f,_0x2ac1f2,_0x5f6289){return!!_0x2ac1f2&&(scanFor(_0x1003ee,_0x10f86f,_0x2ac1f2,_0x5f6289,-0x1)||scanFor(_0x1003ee,_0x10f86f,_0x2ac1f2,_0x5f6289,0x1));}function domIndex(_0x1bb592){for(var _0xf61e51=0x0;;_0xf61e51++)if(!(_0x1bb592=_0x1bb592['previousSibling']))return _0xf61e51;}function isBlockElement(_0x4cdd8b){return 0x1==_0x4cdd8b['nodeType']&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/['test'](_0x4cdd8b['nodeName']);}function scanFor(_0x3a026a,_0x2b0bbb,_0x2df4f9,_0x38f577,_0x3ec2c9){for(;;){if(_0x3a026a==_0x2df4f9&&_0x2b0bbb==_0x38f577)return!0x0;if(_0x2b0bbb==(_0x3ec2c9<0x0?0x0:maxOffset(_0x3a026a))){if('DIV'==_0x3a026a['nodeName'])return!0x1;let _0x57b2fe=_0x3a026a['parentNode'];if(!_0x57b2fe||0x1!=_0x57b2fe['nodeType'])return!0x1;_0x2b0bbb=domIndex(_0x3a026a)+(_0x3ec2c9<0x0?0x0:0x1),_0x3a026a=_0x57b2fe;}else{if(0x1!=_0x3a026a['nodeType'])return!0x1;if(0x1==(_0x3a026a=_0x3a026a['childNodes'][_0x2b0bbb+(_0x3ec2c9<0x0?-0x1:0x0)])['nodeType']&&'false'==_0x3a026a['contentEditable'])return!0x1;_0x2b0bbb=_0x3ec2c9<0x0?maxOffset(_0x3a026a):0x0;}}}function maxOffset(_0xc3f091){return 0x3==_0xc3f091['nodeType']?_0xc3f091['nodeValue']['length']:_0xc3f091['childNodes']['length'];}function flattenRect(_0x33e036,_0x2f2a87){let _0x1a262a=_0x2f2a87?_0x33e036['left']:_0x33e036['right'];return{'left':_0x1a262a,'right':_0x1a262a,'top':_0x33e036['top'],'bottom':_0x33e036['bottom']};}function windowRect(_0x275c21){let _0x127794=_0x275c21['visualViewport'];return _0x127794?{'left':0x0,'right':_0x127794['width'],'top':0x0,'bottom':_0x127794['height']}:{'left':0x0,'right':_0x275c21['innerWidth'],'top':0x0,'bottom':_0x275c21['innerHeight']};}function getScale(_0x498e09,_0x5627c8){let _0x1c101f=_0x5627c8['width']/_0x498e09['offsetWidth'],_0x2ebf96=_0x5627c8['height']/_0x498e09['offsetHeight'];return(_0x1c101f>0.995&&_0x1c101f<1.005||!isFinite(_0x1c101f)||Math['abs'](_0x5627c8['width']-_0x498e09['offsetWidth'])<0x1)&&(_0x1c101f=0x1),(_0x2ebf96>0.995&&_0x2ebf96<1.005||!isFinite(_0x2ebf96)||Math['abs'](_0x5627c8['height']-_0x498e09['offsetHeight'])<0x1)&&(_0x2ebf96=0x1),{'scaleX':_0x1c101f,'scaleY':_0x2ebf96};}function scrollRectIntoView(_0x559bc0,_0x1e5de5,_0x463dc5,_0x39204a,_0x26f9a4,_0x56e14a,_0x5e31e1,_0x17a34d){let _0xa78bc=_0x559bc0['ownerDocument'],_0x3dabba=_0xa78bc['defaultView']||window;for(let _0x5a0b1f=_0x559bc0,_0x15fcc7=!0x1;_0x5a0b1f&&!_0x15fcc7;)if(0x1==_0x5a0b1f['nodeType']){let _0x56a693,_0x4dadf2=_0x5a0b1f==_0xa78bc['body'],_0x759918=0x1,_0xa6900d=0x1;if(_0x4dadf2)_0x56a693=windowRect(_0x3dabba);else{if(/^(fixed|sticky)$/['test'](getComputedStyle(_0x5a0b1f)['position'])&&(_0x15fcc7=!0x0),_0x5a0b1f['scrollHeight']<=_0x5a0b1f['clientHeight']&&_0x5a0b1f['scrollWidth']<=_0x5a0b1f['clientWidth']){_0x5a0b1f=_0x5a0b1f['assignedSlot']||_0x5a0b1f['parentNode'];continue;}let _0x18238a=_0x5a0b1f['getBoundingClientRect']();({scaleX:_0x759918,scaleY:_0xa6900d}=getScale(_0x5a0b1f,_0x18238a),_0x56a693={'left':_0x18238a['left'],'right':_0x18238a['left']+_0x5a0b1f['clientWidth']*_0x759918,'top':_0x18238a['top'],'bottom':_0x18238a['top']+_0x5a0b1f['clientHeight']*_0xa6900d});}let _0x246678=0x0,_0x2f900=0x0;if('nearest'==_0x26f9a4)_0x1e5de5['top']<_0x56a693['top']?(_0x2f900=_0x1e5de5['top']-(_0x56a693['top']+_0x5e31e1),_0x463dc5>0x0&&_0x1e5de5['bottom']>_0x56a693['bottom']+_0x2f900&&(_0x2f900=_0x1e5de5['bottom']-_0x56a693['bottom']+_0x5e31e1)):_0x1e5de5['bottom']>_0x56a693['bottom']&&(_0x2f900=_0x1e5de5['bottom']-_0x56a693['bottom']+_0x5e31e1,_0x463dc5<0x0&&_0x1e5de5['top']-_0x2f900<_0x56a693['top']&&(_0x2f900=_0x1e5de5['top']-(_0x56a693['top']+_0x5e31e1)));else{let _0x4a7132=_0x1e5de5['bottom']-_0x1e5de5['top'],_0x10f35f=_0x56a693['bottom']-_0x56a693['top'];_0x2f900=('center'==_0x26f9a4&&_0x4a7132<=_0x10f35f?_0x1e5de5['top']+_0x4a7132/0x2-_0x10f35f/0x2:'start'==_0x26f9a4||'center'==_0x26f9a4&&_0x463dc5<0x0?_0x1e5de5['top']-_0x5e31e1:_0x1e5de5['bottom']-_0x10f35f+_0x5e31e1)-_0x56a693['top'];}if('nearest'==_0x39204a)_0x1e5de5['left']<_0x56a693['left']?(_0x246678=_0x1e5de5['left']-(_0x56a693['left']+_0x56e14a),_0x463dc5>0x0&&_0x1e5de5['right']>_0x56a693['right']+_0x246678&&(_0x246678=_0x1e5de5['right']-_0x56a693['right']+_0x56e14a)):_0x1e5de5['right']>_0x56a693['right']&&(_0x246678=_0x1e5de5['right']-_0x56a693['right']+_0x56e14a,_0x463dc5<0x0&&_0x1e5de5['left']<_0x56a693['left']+_0x246678&&(_0x246678=_0x1e5de5['left']-(_0x56a693['left']+_0x56e14a)));else _0x246678=('center'==_0x39204a?_0x1e5de5['left']+(_0x1e5de5['right']-_0x1e5de5['left'])/0x2-(_0x56a693['right']-_0x56a693['left'])/0x2:'start'==_0x39204a==_0x17a34d?_0x1e5de5['left']-_0x56e14a:_0x1e5de5['right']-(_0x56a693['right']-_0x56a693['left'])+_0x56e14a)-_0x56a693['left'];if(_0x246678||_0x2f900){if(_0x4dadf2)_0x3dabba['scrollBy'](_0x246678,_0x2f900);else{let _0x56c99a=0x0,_0x6fe9c7=0x0;if(_0x2f900){let _0x34d8d8=_0x5a0b1f['scrollTop'];_0x5a0b1f['scrollTop']+=_0x2f900/_0xa6900d,_0x6fe9c7=(_0x5a0b1f['scrollTop']-_0x34d8d8)*_0xa6900d;}if(_0x246678){let _0x481aaf=_0x5a0b1f['scrollLeft'];_0x5a0b1f['scrollLeft']+=_0x246678/_0x759918,_0x56c99a=(_0x5a0b1f['scrollLeft']-_0x481aaf)*_0x759918;}_0x1e5de5={'left':_0x1e5de5['left']-_0x56c99a,'top':_0x1e5de5['top']-_0x6fe9c7,'right':_0x1e5de5['right']-_0x56c99a,'bottom':_0x1e5de5['bottom']-_0x6fe9c7},_0x56c99a&&Math['abs'](_0x56c99a-_0x246678)<0x1&&(_0x39204a='nearest'),_0x6fe9c7&&Math['abs'](_0x6fe9c7-_0x2f900)<0x1&&(_0x26f9a4='nearest');}}if(_0x4dadf2)break;(_0x1e5de5['top']<_0x56a693['top']||_0x1e5de5['bottom']>_0x56a693['bottom']||_0x1e5de5['left']<_0x56a693['left']||_0x1e5de5['right']>_0x56a693['right'])&&(_0x1e5de5={'left':Math['max'](_0x1e5de5['left'],_0x56a693['left']),'right':Math['min'](_0x1e5de5['right'],_0x56a693['right']),'top':Math['max'](_0x1e5de5['top'],_0x56a693['top']),'bottom':Math['min'](_0x1e5de5['bottom'],_0x56a693['bottom'])}),_0x5a0b1f=_0x5a0b1f['assignedSlot']||_0x5a0b1f['parentNode'];}else{if(0xb!=_0x5a0b1f['nodeType'])break;_0x5a0b1f=_0x5a0b1f['host'];}}function scrollableParents(_0x305e20){let _0x233925,_0x3585ba,_0x3d46ff=_0x305e20['ownerDocument'];for(let _0x337d0b=_0x305e20['parentNode'];_0x337d0b&&!(_0x337d0b==_0x3d46ff['body']||_0x233925&&_0x3585ba);)if(0x1==_0x337d0b['nodeType'])!_0x3585ba&&_0x337d0b['scrollHeight']>_0x337d0b['clientHeight']&&(_0x3585ba=_0x337d0b),!_0x233925&&_0x337d0b['scrollWidth']>_0x337d0b['clientWidth']&&(_0x233925=_0x337d0b),_0x337d0b=_0x337d0b['assignedSlot']||_0x337d0b['parentNode'];else{if(0xb!=_0x337d0b['nodeType'])break;_0x337d0b=_0x337d0b['host'];}return{'x':_0x233925,'y':_0x3585ba};}class DOMSelectionState{constructor(){this['anchorNode']=null,this['anchorOffset']=0x0,this['focusNode']=null,this['focusOffset']=0x0;}['eq'](_0x53d6ca){return this['anchorNode']==_0x53d6ca['anchorNode']&&this['anchorOffset']==_0x53d6ca['anchorOffset']&&this['focusNode']==_0x53d6ca['focusNode']&&this['focusOffset']==_0x53d6ca['focusOffset'];}['setRange'](_0x31eb2b){let {anchorNode:_0x246bf9,focusNode:_0x1e794e}=_0x31eb2b;this['set'](_0x246bf9,Math['min'](_0x31eb2b['anchorOffset'],_0x246bf9?maxOffset(_0x246bf9):0x0),_0x1e794e,Math['min'](_0x31eb2b['focusOffset'],_0x1e794e?maxOffset(_0x1e794e):0x0));}['set'](_0xfee0a1,_0x28f12c,_0x1c92c5,_0xfc1d2e){this['anchorNode']=_0xfee0a1,this['anchorOffset']=_0x28f12c,this['focusNode']=_0x1c92c5,this['focusOffset']=_0xfc1d2e;}}let preventScrollSupported=null,scratchRange;function focusPreventScroll(_0x529cd8){if(_0x529cd8['setActive'])return _0x529cd8['setActive']();if(preventScrollSupported)return _0x529cd8['focus'](preventScrollSupported);let _0x3bcc9b=[];for(let _0x392db0=_0x529cd8;_0x392db0&&(_0x3bcc9b['push'](_0x392db0,_0x392db0['scrollTop'],_0x392db0['scrollLeft']),_0x392db0!=_0x392db0['ownerDocument']);_0x392db0=_0x392db0['parentNode']);if(_0x529cd8['focus'](null==preventScrollSupported?{get 'preventScroll'(){return preventScrollSupported={'preventScroll':!0x0},!0x0;}}:void 0x0),!preventScrollSupported){preventScrollSupported=!0x1;for(let _0x39c57e=0x0;_0x39c57e<_0x3bcc9b['length'];){let _0x36c48d=_0x3bcc9b[_0x39c57e++],_0x333095=_0x3bcc9b[_0x39c57e++],_0x28ecee=_0x3bcc9b[_0x39c57e++];_0x36c48d['scrollTop']!=_0x333095&&(_0x36c48d['scrollTop']=_0x333095),_0x36c48d['scrollLeft']!=_0x28ecee&&(_0x36c48d['scrollLeft']=_0x28ecee);}}}function textRange(_0x2fe845,_0x1586dc,_0x2c14c8=_0x1586dc){let _0x26da54=scratchRange||(scratchRange=document['createRange']());return _0x26da54['setEnd'](_0x2fe845,_0x2c14c8),_0x26da54['setStart'](_0x2fe845,_0x1586dc),_0x26da54;}function dispatchKey(_0x5a1e6e,_0x4c2859,_0x592311,_0xc90bfe){let _0x3a6a26={'key':_0x4c2859,'code':_0x4c2859,'keyCode':_0x592311,'which':_0x592311,'cancelable':!0x0};_0xc90bfe&&({altKey:_0x3a6a26['altKey'],ctrlKey:_0x3a6a26['ctrlKey'],shiftKey:_0x3a6a26['shiftKey'],metaKey:_0x3a6a26['metaKey']}=_0xc90bfe);let _0x54b9d0=new KeyboardEvent('keydown',_0x3a6a26);_0x54b9d0['synthetic']=!0x0,_0x5a1e6e['dispatchEvent'](_0x54b9d0);let _0x1fccde=new KeyboardEvent('keyup',_0x3a6a26);return _0x1fccde['synthetic']=!0x0,_0x5a1e6e['dispatchEvent'](_0x1fccde),_0x54b9d0['defaultPrevented']||_0x1fccde['defaultPrevented'];}function getRoot(_0x2ef20c){for(;_0x2ef20c;){if(_0x2ef20c&&(0x9==_0x2ef20c['nodeType']||0xb==_0x2ef20c['nodeType']&&_0x2ef20c['host']))return _0x2ef20c;_0x2ef20c=_0x2ef20c['assignedSlot']||_0x2ef20c['parentNode'];}return null;}function clearAttributes(_0x28f5a7){for(;_0x28f5a7['attributes']['length'];)_0x28f5a7['removeAttributeNode'](_0x28f5a7['attributes'][0x0]);}function atElementStart(_0x2211e6,_0x21663a){let _0x20e7ac=_0x21663a['focusNode'],_0x147ad1=_0x21663a['focusOffset'];if(!_0x20e7ac||_0x21663a['anchorNode']!=_0x20e7ac||_0x21663a['anchorOffset']!=_0x147ad1)return!0x1;for(_0x147ad1=Math['min'](_0x147ad1,maxOffset(_0x20e7ac));;)if(_0x147ad1){if(0x1!=_0x20e7ac['nodeType'])return!0x1;let _0x4cb368=_0x20e7ac['childNodes'][_0x147ad1-0x1];'false'==_0x4cb368['contentEditable']?_0x147ad1--:(_0x20e7ac=_0x4cb368,_0x147ad1=maxOffset(_0x20e7ac));}else{if(_0x20e7ac==_0x2211e6)return!0x0;_0x147ad1=domIndex(_0x20e7ac),_0x20e7ac=_0x20e7ac['parentNode'];}}function isScrolledToBottom(_0x3eae10){return _0x3eae10['scrollTop']>Math['max'](0x1,_0x3eae10['scrollHeight']-_0x3eae10['clientHeight']-0x4);}function textNodeBefore(_0x5c2f10,_0x19c7ec){for(let _0x26d93e=_0x5c2f10,_0x33988b=_0x19c7ec;;){if(0x3==_0x26d93e['nodeType']&&_0x33988b>0x0)return{'node':_0x26d93e,'offset':_0x33988b};if(0x1==_0x26d93e['nodeType']&&_0x33988b>0x0){if('false'==_0x26d93e['contentEditable'])return null;_0x26d93e=_0x26d93e['childNodes'][_0x33988b-0x1],_0x33988b=maxOffset(_0x26d93e);}else{if(!_0x26d93e['parentNode']||isBlockElement(_0x26d93e))return null;_0x33988b=domIndex(_0x26d93e),_0x26d93e=_0x26d93e['parentNode'];}}}function textNodeAfter(_0x1356c1,_0x1f7fdd){for(let _0x29cfcf=_0x1356c1,_0x4bd833=_0x1f7fdd;;){if(0x3==_0x29cfcf['nodeType']&&_0x4bd833<_0x29cfcf['nodeValue']['length'])return{'node':_0x29cfcf,'offset':_0x4bd833};if(0x1==_0x29cfcf['nodeType']&&_0x4bd833<_0x29cfcf['childNodes']['length']){if('false'==_0x29cfcf['contentEditable'])return null;_0x29cfcf=_0x29cfcf['childNodes'][_0x4bd833],_0x4bd833=0x0;}else{if(!_0x29cfcf['parentNode']||isBlockElement(_0x29cfcf))return null;_0x4bd833=domIndex(_0x29cfcf)+0x1,_0x29cfcf=_0x29cfcf['parentNode'];}}}browser['safari']&&browser['safari_version']>=0x1a&&(preventScrollSupported=!0x1);class DOMPos{constructor(_0x5c7994,_0x4b5049,_0x21fcb4=!0x0){this['node']=_0x5c7994,this['offset']=_0x4b5049,this['precise']=_0x21fcb4;}static['before'](_0x1a72c9,_0x4476ad){return new DOMPos(_0x1a72c9['parentNode'],domIndex(_0x1a72c9),_0x4476ad);}static['after'](_0x1899f0,_0x358463){return new DOMPos(_0x1899f0['parentNode'],domIndex(_0x1899f0)+0x1,_0x358463);}}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'](_0xa9ea4b){let _0x7308f5=this['posAtStart'];for(let _0xaeb42f of this['children']){if(_0xaeb42f==_0xa9ea4b)return _0x7308f5;_0x7308f5+=_0xaeb42f['length']+_0xaeb42f['breakAfter'];}throw new RangeError('Invalid\x20child\x20in\x20posBefore');}['posAfter'](_0xd3edf6){return this['posBefore'](_0xd3edf6)+_0xd3edf6['length'];}['sync'](_0x3fc16a,_0x382cf5){if(0x2&this['flags']){let _0x51bc87,_0x48d782=this['dom'],_0xd865f9=null;for(let _0x31e395 of this['children']){if(0x7&_0x31e395['flags']){if(!_0x31e395['dom']&&(_0x51bc87=_0xd865f9?_0xd865f9['nextSibling']:_0x48d782['firstChild'])){let _0xa152ae=ContentView['get'](_0x51bc87);(!_0xa152ae||!_0xa152ae['parent']&&_0xa152ae['canReuseDOM'](_0x31e395))&&_0x31e395['reuseDOM'](_0x51bc87);}_0x31e395['sync'](_0x3fc16a,_0x382cf5),_0x31e395['flags']&=-0x8;}if(_0x51bc87=_0xd865f9?_0xd865f9['nextSibling']:_0x48d782['firstChild'],_0x382cf5&&!_0x382cf5['written']&&_0x382cf5['node']==_0x48d782&&_0x51bc87!=_0x31e395['dom']&&(_0x382cf5['written']=!0x0),_0x31e395['dom']['parentNode']==_0x48d782){for(;_0x51bc87&&_0x51bc87!=_0x31e395['dom'];)_0x51bc87=rm$1(_0x51bc87);}else _0x48d782['insertBefore'](_0x31e395['dom'],_0x51bc87);_0xd865f9=_0x31e395['dom'];}for(_0x51bc87=_0xd865f9?_0xd865f9['nextSibling']:_0x48d782['firstChild'],_0x51bc87&&_0x382cf5&&_0x382cf5['node']==_0x48d782&&(_0x382cf5['written']=!0x0);_0x51bc87;)_0x51bc87=rm$1(_0x51bc87);}else{if(0x1&this['flags']){for(let _0x106e7b of this['children'])0x7&_0x106e7b['flags']&&(_0x106e7b['sync'](_0x3fc16a,_0x382cf5),_0x106e7b['flags']&=-0x8);}}}['reuseDOM'](_0x1b931c){}['localPosFromDOM'](_0xe47558,_0x2aca5b){let _0x253c3d;if(_0xe47558==this['dom'])_0x253c3d=this['dom']['childNodes'][_0x2aca5b];else{let _0x110a62=0x0==maxOffset(_0xe47558)?0x0:0x0==_0x2aca5b?-0x1:0x1;for(;;){let _0x1c47e9=_0xe47558['parentNode'];if(_0x1c47e9==this['dom'])break;0x0==_0x110a62&&_0x1c47e9['firstChild']!=_0x1c47e9['lastChild']&&(_0x110a62=_0xe47558==_0x1c47e9['firstChild']?-0x1:0x1),_0xe47558=_0x1c47e9;}_0x253c3d=_0x110a62<0x0?_0xe47558:_0xe47558['nextSibling'];}if(_0x253c3d==this['dom']['firstChild'])return 0x0;for(;_0x253c3d&&!ContentView['get'](_0x253c3d);)_0x253c3d=_0x253c3d['nextSibling'];if(!_0x253c3d)return this['length'];for(let _0x8f11a8=0x0,_0x39b13d=0x0;;_0x8f11a8++){let _0x43c87a=this['children'][_0x8f11a8];if(_0x43c87a['dom']==_0x253c3d)return _0x39b13d;_0x39b13d+=_0x43c87a['length']+_0x43c87a['breakAfter'];}}['domBoundsAround'](_0x34ad40,_0x91ba75,_0x188c71=0x0){let _0x4f4a71=-0x1,_0x331994=-0x1,_0x5d052c=-0x1,_0x48f3ab=-0x1;for(let _0xa36371=0x0,_0x915c8=_0x188c71,_0x4fcdfc=_0x188c71;_0xa36371<this['children']['length'];_0xa36371++){let _0x1b9196=this['children'][_0xa36371],_0x4676ff=_0x915c8+_0x1b9196['length'];if(_0x915c8<_0x34ad40&&_0x4676ff>_0x91ba75)return _0x1b9196['domBoundsAround'](_0x34ad40,_0x91ba75,_0x915c8);if(_0x4676ff>=_0x34ad40&&-0x1==_0x4f4a71&&(_0x4f4a71=_0xa36371,_0x331994=_0x915c8),_0x915c8>_0x91ba75&&_0x1b9196['dom']['parentNode']==this['dom']){_0x5d052c=_0xa36371,_0x48f3ab=_0x4fcdfc;break;}_0x4fcdfc=_0x4676ff,_0x915c8=_0x4676ff+_0x1b9196['breakAfter'];}return{'from':_0x331994,'to':_0x48f3ab<0x0?_0x188c71+this['length']:_0x48f3ab,'startDOM':(_0x4f4a71?this['children'][_0x4f4a71-0x1]['dom']['nextSibling']:null)||this['dom']['firstChild'],'endDOM':_0x5d052c<this['children']['length']&&_0x5d052c>=0x0?this['children'][_0x5d052c]['dom']:null};}['markDirty'](_0x228403=!0x1){this['flags']|=0x2,this['markParentsDirty'](_0x228403);}['markParentsDirty'](_0x449797){for(let _0x21c755=this['parent'];_0x21c755;_0x21c755=_0x21c755['parent']){if(_0x449797&&(_0x21c755['flags']|=0x2),0x1&_0x21c755['flags'])return;_0x21c755['flags']|=0x1,_0x449797=!0x1;}}['setParent'](_0x39d223){this['parent']!=_0x39d223&&(this['parent']=_0x39d223,0x7&this['flags']&&this['markParentsDirty'](!0x0));}['setDOM'](_0x25ed6b){this['dom']!=_0x25ed6b&&(this['dom']&&(this['dom']['cmView']=null),this['dom']=_0x25ed6b,_0x25ed6b['cmView']=this);}get['rootView'](){for(let _0x58501b=this;;){let _0x167d1e=_0x58501b['parent'];if(!_0x167d1e)return _0x58501b;_0x58501b=_0x167d1e;}}['replaceChildren'](_0x446d8f,_0x2ff118,_0x140ecf=noChildren){this['markDirty']();for(let _0x5ad428=_0x446d8f;_0x5ad428<_0x2ff118;_0x5ad428++){let _0x1a6e8f=this['children'][_0x5ad428];_0x1a6e8f['parent']==this&&_0x140ecf['indexOf'](_0x1a6e8f)<0x0&&_0x1a6e8f['destroy']();}_0x140ecf['length']<0xfa?this['children']['splice'](_0x446d8f,_0x2ff118-_0x446d8f,..._0x140ecf):this['children']=[]['concat'](this['children']['slice'](0x0,_0x446d8f),_0x140ecf,this['children']['slice'](_0x2ff118));for(let _0x3ae53e=0x0;_0x3ae53e<_0x140ecf['length'];_0x3ae53e++)_0x140ecf[_0x3ae53e]['setParent'](this);}['ignoreMutation'](_0x5ea950){return!0x1;}['ignoreEvent'](_0x483b61){return!0x1;}['childCursor'](_0x43d186=this['length']){return new ChildCursor(this['children'],_0x43d186,this['children']['length']);}['childPos'](_0x511098,_0x59420b=0x1){return this['childCursor']()['findPos'](_0x511098,_0x59420b);}['toString'](){let _0x28557c=this['constructor']['name']['replace']('View','');return _0x28557c+(this['children']['length']?'('+this['children']['join']()+')':this['length']?'['+('Text'==_0x28557c?this['text']:this['length'])+']':'')+(this['breakAfter']?'#':'');}static['get'](_0x2cf81a){return _0x2cf81a['cmView'];}get['isEditable'](){return!0x0;}get['isWidget'](){return!0x1;}get['isHidden'](){return!0x1;}['merge'](_0x3cb2c4,_0x2b4ad1,_0x469ee6,_0xbb0fa3,_0x5aa6d8,_0x4cd160){return!0x1;}['become'](_0x2ab831){return!0x1;}['canReuseDOM'](_0x2a6f71){return _0x2a6f71['constructor']==this['constructor']&&!(0x8&(this['flags']|_0x2a6f71['flags']));}['getSide'](){return 0x0;}['destroy'](){for(let _0x5f0490 of this['children'])_0x5f0490['parent']==this&&_0x5f0490['destroy']();this['parent']=null;}}function rm$1(_0x4d4d52){let _0x10e7f2=_0x4d4d52['nextSibling'];return _0x4d4d52['parentNode']['removeChild'](_0x4d4d52),_0x10e7f2;}ContentView['prototype']['breakAfter']=0x0;class ChildCursor{constructor(_0x418522,_0x2bf794,_0xa6e4b3){this['children']=_0x418522,this['pos']=_0x2bf794,this['i']=_0xa6e4b3,this['off']=0x0;}['findPos'](_0x71e1af,_0x3a9d3e=0x1){for(;;){if(_0x71e1af>this['pos']||_0x71e1af==this['pos']&&(_0x3a9d3e>0x0||0x0==this['i']||this['children'][this['i']-0x1]['breakAfter']))return this['off']=_0x71e1af-this['pos'],this;let _0x2ca2cd=this['children'][--this['i']];this['pos']-=_0x2ca2cd['length']+_0x2ca2cd['breakAfter'];}}}function replaceRange(_0x51373c,_0x4797e1,_0x20c64f,_0x4f4144,_0x2134d6,_0x2c9c09,_0x42bf8e,_0xf762a9,_0x588ef3){let {children:_0x1f4c33}=_0x51373c,_0x449af9=_0x1f4c33['length']?_0x1f4c33[_0x4797e1]:null,_0x474488=_0x2c9c09['length']?_0x2c9c09[_0x2c9c09['length']-0x1]:null,_0x536671=_0x474488?_0x474488['breakAfter']:_0x42bf8e;if(!(_0x4797e1==_0x4f4144&&_0x449af9&&!_0x42bf8e&&!_0x536671&&_0x2c9c09['length']<0x2&&_0x449af9['merge'](_0x20c64f,_0x2134d6,_0x2c9c09['length']?_0x474488:null,0x0==_0x20c64f,_0xf762a9,_0x588ef3))){if(_0x4f4144<_0x1f4c33['length']){let _0x98dd07=_0x1f4c33[_0x4f4144];_0x98dd07&&(_0x2134d6<_0x98dd07['length']||_0x98dd07['breakAfter']&&(null==_0x474488?void 0x0:_0x474488['breakAfter']))?(_0x4797e1==_0x4f4144&&(_0x98dd07=_0x98dd07['split'](_0x2134d6),_0x2134d6=0x0),!_0x536671&&_0x474488&&_0x98dd07['merge'](0x0,_0x2134d6,_0x474488,!0x0,0x0,_0x588ef3)?_0x2c9c09[_0x2c9c09['length']-0x1]=_0x98dd07:((_0x2134d6||_0x98dd07['children']['length']&&!_0x98dd07['children'][0x0]['length'])&&_0x98dd07['merge'](0x0,_0x2134d6,null,!0x1,0x0,_0x588ef3),_0x2c9c09['push'](_0x98dd07))):(null==_0x98dd07?void 0x0:_0x98dd07['breakAfter'])&&(_0x474488?_0x474488['breakAfter']=0x1:_0x42bf8e=0x1),_0x4f4144++;}for(_0x449af9&&(_0x449af9['breakAfter']=_0x42bf8e,_0x20c64f>0x0&&(!_0x42bf8e&&_0x2c9c09['length']&&_0x449af9['merge'](_0x20c64f,_0x449af9['length'],_0x2c9c09[0x0],!0x1,_0xf762a9,0x0)?_0x449af9['breakAfter']=_0x2c9c09['shift']()['breakAfter']:(_0x20c64f<_0x449af9['length']||_0x449af9['children']['length']&&0x0==_0x449af9['children'][_0x449af9['children']['length']-0x1]['length'])&&_0x449af9['merge'](_0x20c64f,_0x449af9['length'],null,!0x1,_0xf762a9,0x0),_0x4797e1++));_0x4797e1<_0x4f4144&&_0x2c9c09['length'];)if(_0x1f4c33[_0x4f4144-0x1]['become'](_0x2c9c09[_0x2c9c09['length']-0x1]))_0x4f4144--,_0x2c9c09['pop'](),_0x588ef3=_0x2c9c09['length']?0x0:_0xf762a9;else{if(!_0x1f4c33[_0x4797e1]['become'](_0x2c9c09[0x0]))break;_0x4797e1++,_0x2c9c09['shift'](),_0xf762a9=_0x2c9c09['length']?0x0:_0x588ef3;}!_0x2c9c09['length']&&_0x4797e1&&_0x4f4144<_0x1f4c33['length']&&!_0x1f4c33[_0x4797e1-0x1]['breakAfter']&&_0x1f4c33[_0x4f4144]['merge'](0x0,0x0,_0x1f4c33[_0x4797e1-0x1],!0x1,_0xf762a9,_0x588ef3)&&_0x4797e1--,(_0x4797e1<_0x4f4144||_0x2c9c09['length'])&&_0x51373c['replaceChildren'](_0x4797e1,_0x4f4144,_0x2c9c09);}}function mergeChildrenInto(_0x439af5,_0x402755,_0x47ea7d,_0x2470ef,_0x318947,_0x5602be){let _0x58c547=_0x439af5['childCursor'](),{i:_0x47aab6,off:_0x132457}=_0x58c547['findPos'](_0x47ea7d,0x1),{i:_0x5e791b,off:_0xda9730}=_0x58c547['findPos'](_0x402755,-0x1),_0x42ba54=_0x402755-_0x47ea7d;for(let _0x5e0d2b of _0x2470ef)_0x42ba54+=_0x5e0d2b['length'];_0x439af5['length']+=_0x42ba54,replaceRange(_0x439af5,_0x5e791b,_0xda9730,_0x47aab6,_0x132457,_0x2470ef,0x0,_0x318947,_0x5602be);}const MaxJoinLen=0x100;class TextView extends ContentView{constructor(_0x5d3981){super(),this['text']=_0x5d3981;}get['length'](){return this['text']['length'];}['createDOM'](_0x18fc31){this['setDOM'](_0x18fc31||document['createTextNode'](this['text']));}['sync'](_0x413535,_0x28049b){this['dom']||this['createDOM'](),this['dom']['nodeValue']!=this['text']&&(_0x28049b&&_0x28049b['node']==this['dom']&&(_0x28049b['written']=!0x0),this['dom']['nodeValue']=this['text']);}['reuseDOM'](_0x17b421){0x3==_0x17b421['nodeType']&&this['createDOM'](_0x17b421);}['merge'](_0x39ebf6,_0x1efaa9,_0x530382){return!(0x8&this['flags']||_0x530382&&(!(_0x530382 instanceof TextView)||this['length']-(_0x1efaa9-_0x39ebf6)+_0x530382['length']>MaxJoinLen||0x8&_0x530382['flags']))&&(this['text']=this['text']['slice'](0x0,_0x39ebf6)+(_0x530382?_0x530382['text']:'')+this['text']['slice'](_0x1efaa9),this['markDirty'](),!0x0);}['split'](_0x4a2d58){let _0x10b2de=new TextView(this['text']['slice'](_0x4a2d58));return this['text']=this['text']['slice'](0x0,_0x4a2d58),this['markDirty'](),_0x10b2de['flags']|=0x8&this['flags'],_0x10b2de;}['localPosFromDOM'](_0x2311f0,_0x1f4c5a){return _0x2311f0==this['dom']?_0x1f4c5a:_0x1f4c5a?this['text']['length']:0x0;}['domAtPos'](_0x31f2b5){return new DOMPos(this['dom'],_0x31f2b5);}['domBoundsAround'](_0x42d7d8,_0x1f2445,_0x22cca6){return{'from':_0x22cca6,'to':_0x22cca6+this['length'],'startDOM':this['dom'],'endDOM':this['dom']['nextSibling']};}['coordsAt'](_0x382ee5,_0x5e09db){return textCoords(this['dom'],_0x382ee5,_0x5e09db);}}class MarkView extends ContentView{constructor(_0x22f1e0,_0x5d71c1=[],_0x47c2ff=0x0){super(),this['mark']=_0x22f1e0,this['children']=_0x5d71c1,this['length']=_0x47c2ff;for(let _0x37cc26 of _0x5d71c1)_0x37cc26['setParent'](this);}['setAttrs'](_0x30d164){if(clearAttributes(_0x30d164),this['mark']['class']&&(_0x30d164['className']=this['mark']['class']),this['mark']['attrs']){for(let _0x458ba5 in this['mark']['attrs'])_0x30d164['setAttribute'](_0x458ba5,this['mark']['attrs'][_0x458ba5]);}return _0x30d164;}['canReuseDOM'](_0x451c7c){return super['canReuseDOM'](_0x451c7c)&&!(0x8&(this['flags']|_0x451c7c['flags']));}['reuseDOM'](_0x556fce){_0x556fce['nodeName']==this['mark']['tagName']['toUpperCase']()&&(this['setDOM'](_0x556fce),this['flags']|=0x6);}['sync'](_0x399a53,_0x237612){this['dom']?0x4&this['flags']&&this['setAttrs'](this['dom']):this['setDOM'](this['setAttrs'](document['createElement'](this['mark']['tagName']))),super['sync'](_0x399a53,_0x237612);}['merge'](_0x26499a,_0x265d3d,_0x3923e6,_0x5c0592,_0x276e9c,_0xbc1bb7){return(!_0x3923e6||!(!(_0x3923e6 instanceof MarkView&&_0x3923e6['mark']['eq'](this['mark']))||_0x26499a&&_0x276e9c<=0x0||_0x265d3d<this['length']&&_0xbc1bb7<=0x0))&&(mergeChildrenInto(this,_0x26499a,_0x265d3d,_0x3923e6?_0x3923e6['children']['slice']():[],_0x276e9c-0x1,_0xbc1bb7-0x1),this['markDirty'](),!0x0);}['split'](_0x3a3197){let _0x4fdeeb=[],_0x1148a5=0x0,_0x5f1704=-0x1,_0x37f0c7=0x0;for(let _0x49c2fa of this['children']){let _0x433226=_0x1148a5+_0x49c2fa['length'];_0x433226>_0x3a3197&&_0x4fdeeb['push'](_0x1148a5<_0x3a3197?_0x49c2fa['split'](_0x3a3197-_0x1148a5):_0x49c2fa),_0x5f1704<0x0&&_0x1148a5>=_0x3a3197&&(_0x5f1704=_0x37f0c7),_0x1148a5=_0x433226,_0x37f0c7++;}let _0x563f06=this['length']-_0x3a3197;return this['length']=_0x3a3197,_0x5f1704>-0x1&&(this['children']['length']=_0x5f1704,this['markDirty']()),new MarkView(this['mark'],_0x4fdeeb,_0x563f06);}['domAtPos'](_0x41541e){return inlineDOMAtPos(this,_0x41541e);}['coordsAt'](_0x5dca63,_0x54a2c0){return coordsInChildren(this,_0x5dca63,_0x54a2c0);}}function textCoords(_0x1313de,_0x2afd66,_0x519425){let _0x41c8fd=_0x1313de['nodeValue']['length'];_0x2afd66>_0x41c8fd&&(_0x2afd66=_0x41c8fd);let _0x33917=_0x2afd66,_0x2f8251=_0x2afd66,_0x5499ef=0x0;0x0==_0x2afd66&&_0x519425<0x0||_0x2afd66==_0x41c8fd&&_0x519425>=0x0?browser['chrome']||browser['gecko']||(_0x2afd66?(_0x33917--,_0x5499ef=0x1):_0x2f8251<_0x41c8fd&&(_0x2f8251++,_0x5499ef=-0x1)):_0x519425<0x0?_0x33917--:_0x2f8251<_0x41c8fd&&_0x2f8251++;let _0x566527=textRange(_0x1313de,_0x33917,_0x2f8251)['getClientRects']();if(!_0x566527['length'])return null;let _0x38aace=_0x566527[(_0x5499ef?_0x5499ef<0x0:_0x519425>=0x0)?0x0:_0x566527['length']-0x1];return browser['safari']&&!_0x5499ef&&0x0==_0x38aace['width']&&(_0x38aace=Array['prototype']['find']['call'](_0x566527,_0x20c500=>_0x20c500['width'])||_0x38aace),_0x5499ef?flattenRect(_0x38aace,_0x5499ef<0x0):_0x38aace||null;}class WidgetView extends ContentView{static['create'](_0x5cdae2,_0x554224,_0x3ef89f){return new WidgetView(_0x5cdae2,_0x554224,_0x3ef89f);}constructor(_0x50cc1f,_0x429206,_0x148818){super(),this['widget']=_0x50cc1f,this['length']=_0x429206,this['side']=_0x148818,this['prevWidget']=null;}['split'](_0x2d376b){let _0x2d225b=WidgetView['create'](this['widget'],this['length']-_0x2d376b,this['side']);return this['length']-=_0x2d376b,_0x2d225b;}['sync'](_0x1b336a){this['dom']&&this['widget']['updateDOM'](this['dom'],_0x1b336a)||(this['dom']&&this['prevWidget']&&this['prevWidget']['destroy'](this['dom']),this['prevWidget']=null,this['setDOM'](this['widget']['toDOM'](_0x1b336a)),this['widget']['editable']||(this['dom']['contentEditable']='false'));}['getSide'](){return this['side'];}['merge'](_0x189c88,_0x1f8b0f,_0x5677dd,_0x5e0b87,_0x4a4a6f,_0x196960){return!(_0x5677dd&&(!(_0x5677dd instanceof WidgetView&&this['widget']['compare'](_0x5677dd['widget']))||_0x189c88>0x0&&_0x4a4a6f<=0x0||_0x1f8b0f<this['length']&&_0x196960<=0x0))&&(this['length']=_0x189c88+(_0x5677dd?_0x5677dd['length']:0x0)+(this['length']-_0x1f8b0f),!0x0);}['become'](_0x45de6f){return _0x45de6f instanceof WidgetView&&_0x45de6f['side']==this['side']&&this['widget']['constructor']==_0x45de6f['widget']['constructor']&&(this['widget']['compare'](_0x45de6f['widget'])||this['markDirty'](!0x0),this['dom']&&!this['prevWidget']&&(this['prevWidget']=this['widget']),this['widget']=_0x45de6f['widget'],this['length']=_0x45de6f['length'],!0x0);}['ignoreMutation'](){return!0x0;}['ignoreEvent'](_0x4fe616){return this['widget']['ignoreEvent'](_0x4fe616);}get['overrideDOMText'](){if(0x0==this['length'])return Text['empty'];let _0x543c2c=this;for(;_0x543c2c['parent'];)_0x543c2c=_0x543c2c['parent'];let {view:_0x3afecf}=_0x543c2c,_0x3302f8=_0x3afecf&&_0x3afecf['state']['doc'],_0x1afd3b=this['posAtStart'];return _0x3302f8?_0x3302f8['slice'](_0x1afd3b,_0x1afd3b+this['length']):Text['empty'];}['domAtPos'](_0x5ec025){return(this['length']?0x0==_0x5ec025:this['side']>0x0)?DOMPos['before'](this['dom']):DOMPos['after'](this['dom'],_0x5ec025==this['length']);}['domBoundsAround'](){return null;}['coordsAt'](_0x44c423,_0x17142c){let _0x4add85=this['widget']['coordsAt'](this['dom'],_0x44c423,_0x17142c);if(_0x4add85)return _0x4add85;let _0x956518=this['dom']['getClientRects'](),_0x3f3422=null;if(!_0x956518['length'])return null;let _0x4a49c4=this['side']?this['side']<0x0:_0x44c423>0x0;for(let _0x5ec8fd=_0x4a49c4?_0x956518['length']-0x1:0x0;_0x3f3422=_0x956518[_0x5ec8fd],!(_0x44c423>0x0?0x0==_0x5ec8fd:_0x5ec8fd==_0x956518['length']-0x1||_0x3f3422['top']<_0x3f3422['bottom']);_0x5ec8fd+=_0x4a49c4?-0x1:0x1);return flattenRect(_0x3f3422,!_0x4a49c4);}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(_0x6f87a8){super(),this['side']=_0x6f87a8;}get['length'](){return 0x0;}['merge'](){return!0x1;}['become'](_0x96fbc9){return _0x96fbc9 instanceof WidgetBufferView&&_0x96fbc9['side']==this['side'];}['split'](){return new WidgetBufferView(this['side']);}['sync'](){if(!this['dom']){let _0x45c1dc=document['createElement']('img');_0x45c1dc['className']='cm-widgetBuffer',_0x45c1dc['setAttribute']('aria-hidden','true'),this['setDOM'](_0x45c1dc);}}['getSide'](){return this['side'];}['domAtPos'](_0x1b9694){return this['side']>0x0?DOMPos['before'](this['dom']):DOMPos['after'](this['dom']);}['localPosFromDOM'](){return 0x0;}['domBoundsAround'](){return null;}['coordsAt'](_0x13afae){return this['dom']['getBoundingClientRect']();}get['overrideDOMText'](){return Text['empty'];}get['isHidden'](){return!0x0;}}function inlineDOMAtPos(_0x9101ca,_0x3e4f00){let _0x4298d6=_0x9101ca['dom'],{children:_0x2e8b70}=_0x9101ca,_0x4b89ba=0x0;for(let _0x1dc30e=0x0;_0x4b89ba<_0x2e8b70['length'];_0x4b89ba++){let _0x2308a2=_0x2e8b70[_0x4b89ba],_0x72bdd2=_0x1dc30e+_0x2308a2['length'];if(!(_0x72bdd2==_0x1dc30e&&_0x2308a2['getSide']()<=0x0)){if(_0x3e4f00>_0x1dc30e&&_0x3e4f00<_0x72bdd2&&_0x2308a2['dom']['parentNode']==_0x4298d6)return _0x2308a2['domAtPos'](_0x3e4f00-_0x1dc30e);if(_0x3e4f00<=_0x1dc30e)break;_0x1dc30e=_0x72bdd2;}}for(let _0x454fb3=_0x4b89ba;_0x454fb3>0x0;_0x454fb3--){let _0xbc5b8c=_0x2e8b70[_0x454fb3-0x1];if(_0xbc5b8c['dom']['parentNode']==_0x4298d6)return _0xbc5b8c['domAtPos'](_0xbc5b8c['length']);}for(let _0x2b14b0=_0x4b89ba;_0x2b14b0<_0x2e8b70['length'];_0x2b14b0++){let _0x4c3fa7=_0x2e8b70[_0x2b14b0];if(_0x4c3fa7['dom']['parentNode']==_0x4298d6)return _0x4c3fa7['domAtPos'](0x0);}return new DOMPos(_0x4298d6,0x0);}function joinInlineInto(_0x140dda,_0x5e23b8,_0x3eebe4){let _0x3df84b,{children:_0x339e2a}=_0x140dda;_0x3eebe4>0x0&&_0x5e23b8 instanceof MarkView&&_0x339e2a['length']&&(_0x3df84b=_0x339e2a[_0x339e2a['length']-0x1])instanceof MarkView&&_0x3df84b['mark']['eq'](_0x5e23b8['mark'])?joinInlineInto(_0x3df84b,_0x5e23b8['children'][0x0],_0x3eebe4-0x1):(_0x339e2a['push'](_0x5e23b8),_0x5e23b8['setParent'](_0x140dda)),_0x140dda['length']+=_0x5e23b8['length'];}function coordsInChildren(_0x365916,_0xa8caf6,_0x492fb0){let _0x22c7a8=null,_0x56dddf=-0x1,_0x130e2f=null,_0x2c2977=-0x1;!function _0x3bfe86(_0x3f083b,_0x3d220d){for(let _0x1ce662=0x0,_0x628493=0x0;_0x1ce662<_0x3f083b['children']['length']&&_0x628493<=_0x3d220d;_0x1ce662++){let _0x21ccd2=_0x3f083b['children'][_0x1ce662],_0x55bd00=_0x628493+_0x21ccd2['length'];_0x55bd00>=_0x3d220d&&(_0x21ccd2['children']['length']?_0x3bfe86(_0x21ccd2,_0x3d220d-_0x628493):(!_0x130e2f||_0x130e2f['isHidden']&&(_0x492fb0>0x0||onSameLine(_0x130e2f,_0x21ccd2)))&&(_0x55bd00>_0x3d220d||_0x628493==_0x55bd00&&_0x21ccd2['getSide']()>0x0)?(_0x130e2f=_0x21ccd2,_0x2c2977=_0x3d220d-_0x628493):(_0x628493<_0x3d220d||_0x628493==_0x55bd00&&_0x21ccd2['getSide']()<0x0&&!_0x21ccd2['isHidden'])&&(_0x22c7a8=_0x21ccd2,_0x56dddf=_0x3d220d-_0x628493)),_0x628493=_0x55bd00;}}(_0x365916,_0xa8caf6);let _0x57d200=(_0x492fb0<0x0?_0x22c7a8:_0x130e2f)||_0x22c7a8||_0x130e2f;return _0x57d200?_0x57d200['coordsAt'](Math['max'](0x0,_0x57d200==_0x22c7a8?_0x56dddf:_0x2c2977),_0x492fb0):fallbackRect(_0x365916);}function fallbackRect(_0x348a00){let _0x244147=_0x348a00['dom']['lastChild'];if(!_0x244147)return _0x348a00['dom']['getBoundingClientRect']();let _0x4b9b09=clientRectsFor(_0x244147);return _0x4b9b09[_0x4b9b09['length']-0x1]||null;}function onSameLine(_0x590030,_0x21edc5){let _0x406d6e=_0x590030['coordsAt'](0x0,0x1),_0x16f695=_0x21edc5['coordsAt'](0x0,0x1);return _0x406d6e&&_0x16f695&&_0x16f695['top']<_0x406d6e['bottom'];}function combineAttrs(_0x2d8c66,_0x5d52e4){for(let _0x4f7969 in _0x2d8c66)'class'==_0x4f7969&&_0x5d52e4['class']?_0x5d52e4['class']+='\x20'+_0x2d8c66['class']:'style'==_0x4f7969&&_0x5d52e4['style']?_0x5d52e4['style']+=';'+_0x2d8c66['style']:_0x5d52e4[_0x4f7969]=_0x2d8c66[_0x4f7969];return _0x5d52e4;}TextView['prototype']['children']=WidgetView['prototype']['children']=WidgetBufferView['prototype']['children']=noChildren;const noAttrs$1=Object['create'](null);function attrsEq(_0x4654a4,_0x355a79,_0x1b2bcd){if(_0x4654a4==_0x355a79)return!0x0;_0x4654a4||(_0x4654a4=noAttrs$1),_0x355a79||(_0x355a79=noAttrs$1);let _0x32da34=Object['keys'](_0x4654a4),_0x149a5e=Object['keys'](_0x355a79);if(_0x32da34['length']-(_0x1b2bcd&&_0x32da34['indexOf'](_0x1b2bcd)>-0x1?0x1:0x0)!=_0x149a5e['length']-(_0x1b2bcd&&_0x149a5e['indexOf'](_0x1b2bcd)>-0x1?0x1:0x0))return!0x1;for(let _0xf9cb77 of _0x32da34)if(_0xf9cb77!=_0x1b2bcd&&(-0x1==_0x149a5e['indexOf'](_0xf9cb77)||_0x4654a4[_0xf9cb77]!==_0x355a79[_0xf9cb77]))return!0x1;return!0x0;}function updateAttrs(_0x3f0aeb,_0x48bd05,_0x243954){let _0x386018=!0x1;if(_0x48bd05){for(let _0x544ed7 in _0x48bd05)_0x243954&&_0x544ed7 in _0x243954||(_0x386018=!0x0,'style'==_0x544ed7?_0x3f0aeb['style']['cssText']='':_0x3f0aeb['removeAttribute'](_0x544ed7));}if(_0x243954){for(let _0x5c78c7 in _0x243954)_0x48bd05&&_0x48bd05[_0x5c78c7]==_0x243954[_0x5c78c7]||(_0x386018=!0x0,'style'==_0x5c78c7?_0x3f0aeb['style']['cssText']=_0x243954[_0x5c78c7]:_0x3f0aeb['setAttribute'](_0x5c78c7,_0x243954[_0x5c78c7]));}return _0x386018;}function getAttrs$1(_0x314b73){let _0x3d5ef1=Object['create'](null);for(let _0x316d95=0x0;_0x316d95<_0x314b73['attributes']['length'];_0x316d95++){let _0x205072=_0x314b73['attributes'][_0x316d95];_0x3d5ef1[_0x205072['name']]=_0x205072['value'];}return _0x3d5ef1;}class WidgetType{['eq'](_0x1bfb98){return!0x1;}['updateDOM'](_0x4dc864,_0x41a08c){return!0x1;}['compare'](_0x59b5f3){return this==_0x59b5f3||this['constructor']==_0x59b5f3['constructor']&&this['eq'](_0x59b5f3);}get['estimatedHeight'](){return-0x1;}get['lineBreaks'](){return 0x0;}['ignoreEvent'](_0x323fc5){return!0x0;}['coordsAt'](_0x5d9477,_0x393426,_0x172369){return null;}get['isHidden'](){return!0x1;}get['editable'](){return!0x1;}['destroy'](_0x2f7e65){}}var BlockType=function(_0x4087d7){return _0x4087d7[_0x4087d7['Text']=0x0]='Text',_0x4087d7[_0x4087d7['WidgetBefore']=0x1]='WidgetBefore',_0x4087d7[_0x4087d7['WidgetAfter']=0x2]='WidgetAfter',_0x4087d7[_0x4087d7['WidgetRange']=0x3]='WidgetRange',_0x4087d7;}(BlockType||(BlockType={}));class Decoration extends RangeValue{constructor(_0x37ca94,_0x3771b5,_0x581741,_0x3d0891){super(),this['startSide']=_0x37ca94,this['endSide']=_0x3771b5,this['widget']=_0x581741,this['spec']=_0x3d0891;}get['heightRelevant'](){return!0x1;}static['mark'](_0x4f55b9){return new MarkDecoration(_0x4f55b9);}static['widget'](_0x147c20){let _0x32b6f8=Math['max'](-0x2710,Math['min'](0x2710,_0x147c20['side']||0x0)),_0xcbf49b=!!_0x147c20['block'];return _0x32b6f8+=_0xcbf49b&&!_0x147c20['inlineOrder']?_0x32b6f8>0x0?0x11e1a300:-0x17d78400:_0x32b6f8>0x0?0x5f5e100:-0x5f5e100,new PointDecoration(_0x147c20,_0x32b6f8,_0x32b6f8,_0xcbf49b,_0x147c20['widget']||null,!0x1);}static['replace'](_0x5d4701){let _0x369e36,_0x5e95eb,_0x2eed63=!!_0x5d4701['block'];if(_0x5d4701['isBlockGap'])_0x369e36=-0x1dcd6500,_0x5e95eb=0x17d78400;else{let {start:_0xade250,end:_0x517bbb}=getInclusive(_0x5d4701,_0x2eed63);_0x369e36=(_0xade250?_0x2eed63?-0x11e1a300:-0x1:0x1dcd6500)-0x1,_0x5e95eb=0x1+(_0x517bbb?_0x2eed63?0xbebc200:0x1:-0x23c34600);}return new PointDecoration(_0x5d4701,_0x369e36,_0x5e95eb,_0x2eed63,_0x5d4701['widget']||null,!0x0);}static['line'](_0x270f7f){return new LineDecoration(_0x270f7f);}static['set'](_0x4a2cf3,_0x116450=!0x1){return RangeSet['of'](_0x4a2cf3,_0x116450);}['hasHeight'](){return!!this['widget']&&this['widget']['estimatedHeight']>-0x1;}}Decoration['none']=RangeSet['empty'];class MarkDecoration extends Decoration{constructor(_0x568c7f){let {start:_0x331ee7,end:_0x1927cb}=getInclusive(_0x568c7f);super(_0x331ee7?-0x1:0x1dcd6500,_0x1927cb?0x1:-0x23c34600,null,_0x568c7f),this['tagName']=_0x568c7f['tagName']||'span',this['class']=_0x568c7f['class']||'',this['attrs']=_0x568c7f['attributes']||null;}['eq'](_0x314f87){var _0x31a13d,_0x43cc6b;return this==_0x314f87||_0x314f87 instanceof MarkDecoration&&this['tagName']==_0x314f87['tagName']&&(this['class']||(null===(_0x31a13d=this['attrs'])||void 0x0===_0x31a13d?void 0x0:_0x31a13d['class']))==(_0x314f87['class']||(null===(_0x43cc6b=_0x314f87['attrs'])||void 0x0===_0x43cc6b?void 0x0:_0x43cc6b['class']))&&attrsEq(this['attrs'],_0x314f87['attrs'],'class');}['range'](_0x3ae71c,_0x18ee9a=_0x3ae71c){if(_0x3ae71c>=_0x18ee9a)throw new RangeError('Mark\x20decorations\x20may\x20not\x20be\x20empty');return super['range'](_0x3ae71c,_0x18ee9a);}}MarkDecoration['prototype']['point']=!0x1;class LineDecoration extends Decoration{constructor(_0x1843eb){super(-0xbebc200,-0xbebc200,null,_0x1843eb);}['eq'](_0x377049){return _0x377049 instanceof LineDecoration&&this['spec']['class']==_0x377049['spec']['class']&&attrsEq(this['spec']['attributes'],_0x377049['spec']['attributes']);}['range'](_0x637cae,_0x16cc1f=_0x637cae){if(_0x16cc1f!=_0x637cae)throw new RangeError('Line\x20decoration\x20ranges\x20must\x20be\x20zero-length');return super['range'](_0x637cae,_0x16cc1f);}}LineDecoration['prototype']['mapMode']=MapMode['TrackBefore'],LineDecoration['prototype']['point']=!0x0;class PointDecoration extends Decoration{constructor(_0x2153e7,_0x2191b4,_0x1b6a5e,_0x3ebbd0,_0x1b2740,_0x3ac865){super(_0x2191b4,_0x1b6a5e,_0x1b2740,_0x2153e7),this['block']=_0x3ebbd0,this['isReplace']=_0x3ac865,this['mapMode']=_0x3ebbd0?_0x2191b4<=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'](_0xe3e416){return _0xe3e416 instanceof PointDecoration&&widgetsEq(this['widget'],_0xe3e416['widget'])&&this['block']==_0xe3e416['block']&&this['startSide']==_0xe3e416['startSide']&&this['endSide']==_0xe3e416['endSide'];}['range'](_0x1e1022,_0x4c1aaf=_0x1e1022){if(this['isReplace']&&(_0x1e1022>_0x4c1aaf||_0x1e1022==_0x4c1aaf&&this['startSide']>0x0&&this['endSide']<=0x0))throw new RangeError('Invalid\x20range\x20for\x20replacement\x20decoration');if(!this['isReplace']&&_0x4c1aaf!=_0x1e1022)throw new RangeError('Widget\x20decorations\x20can\x20only\x20have\x20zero-length\x20ranges');return super['range'](_0x1e1022,_0x4c1aaf);}}function getInclusive(_0x3ba50b,_0x2f9396=!0x1){let {inclusiveStart:_0x4472af,inclusiveEnd:_0x37da2c}=_0x3ba50b;return null==_0x4472af&&(_0x4472af=_0x3ba50b['inclusive']),null==_0x37da2c&&(_0x37da2c=_0x3ba50b['inclusive']),{'start':null!=_0x4472af?_0x4472af:_0x2f9396,'end':null!=_0x37da2c?_0x37da2c:_0x2f9396};}function widgetsEq(_0xc249c8,_0x477ce8){return _0xc249c8==_0x477ce8||!!(_0xc249c8&&_0x477ce8&&_0xc249c8['compare'](_0x477ce8));}function addRange(_0x22b367,_0x1c321f,_0x466f56,_0x101f13=0x0){let _0x15b7f1=_0x466f56['length']-0x1;_0x15b7f1>=0x0&&_0x466f56[_0x15b7f1]+_0x101f13>=_0x22b367?_0x466f56[_0x15b7f1]=Math['max'](_0x466f56[_0x15b7f1],_0x1c321f):_0x466f56['push'](_0x22b367,_0x1c321f);}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'](_0x55c44f,_0x30451d,_0x5bbdc7,_0x433400,_0x1a0806,_0x562a48){if(_0x5bbdc7){if(!(_0x5bbdc7 instanceof LineView))return!0x1;this['dom']||_0x5bbdc7['transferDOM'](this);}return _0x433400&&this['setDeco'](_0x5bbdc7?_0x5bbdc7['attrs']:null),mergeChildrenInto(this,_0x55c44f,_0x30451d,_0x5bbdc7?_0x5bbdc7['children']['slice']():[],_0x1a0806,_0x562a48),!0x0;}['split'](_0x541325){let _0x13f0d2=new LineView();if(_0x13f0d2['breakAfter']=this['breakAfter'],0x0==this['length'])return _0x13f0d2;let {i:_0x514876,off:_0x348fdb}=this['childPos'](_0x541325);_0x348fdb&&(_0x13f0d2['append'](this['children'][_0x514876]['split'](_0x348fdb),0x0),this['children'][_0x514876]['merge'](_0x348fdb,this['children'][_0x514876]['length'],null,!0x1,0x0,0x0),_0x514876++);for(let _0x3a7b22=_0x514876;_0x3a7b22<this['children']['length'];_0x3a7b22++)_0x13f0d2['append'](this['children'][_0x3a7b22],0x0);for(;_0x514876>0x0&&0x0==this['children'][_0x514876-0x1]['length'];)this['children'][--_0x514876]['destroy']();return this['children']['length']=_0x514876,this['markDirty'](),this['length']=_0x541325,_0x13f0d2;}['transferDOM'](_0x2c7269){this['dom']&&(this['markDirty'](),_0x2c7269['setDOM'](this['dom']),_0x2c7269['prevAttrs']=void 0x0===this['prevAttrs']?this['attrs']:this['prevAttrs'],this['prevAttrs']=void 0x0,this['dom']=null);}['setDeco'](_0x21bfc9){attrsEq(this['attrs'],_0x21bfc9)||(this['dom']&&(this['prevAttrs']=this['attrs'],this['markDirty']()),this['attrs']=_0x21bfc9);}['append'](_0x2ecf35,_0x2fb892){joinInlineInto(this,_0x2ecf35,_0x2fb892);}['addLineDeco'](_0x3d1f12){let _0x455ba1=_0x3d1f12['spec']['attributes'],_0x8d36d9=_0x3d1f12['spec']['class'];_0x455ba1&&(this['attrs']=combineAttrs(_0x455ba1,this['attrs']||{})),_0x8d36d9&&(this['attrs']=combineAttrs({'class':_0x8d36d9},this['attrs']||{}));}['domAtPos'](_0x55927d){return inlineDOMAtPos(this,_0x55927d);}['reuseDOM'](_0x21eaf6){'DIV'==_0x21eaf6['nodeName']&&(this['setDOM'](_0x21eaf6),this['flags']|=0x6);}['sync'](_0xffc545,_0x456162){var _0x11e57d;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'](_0xffc545,_0x456162);let _0x14da14=this['dom']['lastChild'];for(;_0x14da14&&ContentView['get'](_0x14da14)instanceof MarkView;)_0x14da14=_0x14da14['lastChild'];if(!(_0x14da14&&this['length']&&('BR'==_0x14da14['nodeName']||0x0!=(null===(_0x11e57d=ContentView['get'](_0x14da14))||void 0x0===_0x11e57d?void 0x0:_0x11e57d['isEditable'])||browser['ios']&&this['children']['some'](_0x4c56fd=>_0x4c56fd instanceof TextView)))){let _0x5bcf62=document['createElement']('BR');_0x5bcf62['cmIgnore']=!0x0,this['dom']['appendChild'](_0x5bcf62);}}['measureTextSize'](){if(0x0==this['children']['length']||this['length']>0x14)return null;let _0x27fc3d,_0x357404=0x0;for(let _0x500966 of this['children']){if(!(_0x500966 instanceof TextView)||/[^ -~]/['test'](_0x500966['text']))return null;let _0x1ca5ab=clientRectsFor(_0x500966['dom']);if(0x1!=_0x1ca5ab['length'])return null;_0x357404+=_0x1ca5ab[0x0]['width'],_0x27fc3d=_0x1ca5ab[0x0]['height'];}return _0x357404?{'lineHeight':this['dom']['getBoundingClientRect']()['height'],'charWidth':_0x357404/this['length'],'textHeight':_0x27fc3d}:null;}['coordsAt'](_0x5864ac,_0x3fc3b5){let _0x14df13=coordsInChildren(this,_0x5864ac,_0x3fc3b5);if(!this['children']['length']&&_0x14df13&&this['parent']){let {heightOracle:_0x1c672a}=this['parent']['view']['viewState'],_0x4fe5ef=_0x14df13['bottom']-_0x14df13['top'];if(Math['abs'](_0x4fe5ef-_0x1c672a['lineHeight'])<0x2&&_0x1c672a['textHeight']<_0x4fe5ef){let _0x517fbf=(_0x4fe5ef-_0x1c672a['textHeight'])/0x2;return{'top':_0x14df13['top']+_0x517fbf,'bottom':_0x14df13['bottom']-_0x517fbf,'left':_0x14df13['left'],'right':_0x14df13['left']};}}return _0x14df13;}['become'](_0x48e7b9){return _0x48e7b9 instanceof LineView&&0x0==this['children']['length']&&0x0==_0x48e7b9['children']['length']&&attrsEq(this['attrs'],_0x48e7b9['attrs'])&&this['breakAfter']==_0x48e7b9['breakAfter'];}['covers'](){return!0x0;}static['find'](_0x197e91,_0x531384){for(let _0x247adc=0x0,_0x25e7ec=0x0;_0x247adc<_0x197e91['children']['length'];_0x247adc++){let _0x4680e7=_0x197e91['children'][_0x247adc],_0x303ae5=_0x25e7ec+_0x4680e7['length'];if(_0x303ae5>=_0x531384){if(_0x4680e7 instanceof LineView)return _0x4680e7;if(_0x303ae5>_0x531384)break;}_0x25e7ec=_0x303ae5+_0x4680e7['breakAfter'];}return null;}}class BlockWidgetView extends ContentView{constructor(_0x3781fb,_0x2c9705,_0x4e138a){super(),this['widget']=_0x3781fb,this['length']=_0x2c9705,this['deco']=_0x4e138a,this['breakAfter']=0x0,this['prevWidget']=null;}['merge'](_0x5e7dfc,_0x32183b,_0xf76c48,_0x5be551,_0x336c62,_0x2df772){return!(_0xf76c48&&(!(_0xf76c48 instanceof BlockWidgetView&&this['widget']['compare'](_0xf76c48['widget']))||_0x5e7dfc>0x0&&_0x336c62<=0x0||_0x32183b<this['length']&&_0x2df772<=0x0))&&(this['length']=_0x5e7dfc+(_0xf76c48?_0xf76c48['length']:0x0)+(this['length']-_0x32183b),!0x0);}['domAtPos'](_0x2f5b31){return 0x0==_0x2f5b31?DOMPos['before'](this['dom']):DOMPos['after'](this['dom'],_0x2f5b31==this['length']);}['split'](_0x362f6a){let _0x1170ba=this['length']-_0x362f6a;this['length']=_0x362f6a;let _0x52b753=new BlockWidgetView(this['widget'],_0x1170ba,this['deco']);return _0x52b753['breakAfter']=this['breakAfter'],_0x52b753;}get['children'](){return noChildren;}['sync'](_0x1dbecb){this['dom']&&this['widget']['updateDOM'](this['dom'],_0x1dbecb)||(this['dom']&&this['prevWidget']&&this['prevWidget']['destroy'](this['dom']),this['prevWidget']=null,this['setDOM'](this['widget']['toDOM'](_0x1dbecb)),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'](_0x316744){return _0x316744 instanceof BlockWidgetView&&_0x316744['widget']['constructor']==this['widget']['constructor']&&(_0x316744['widget']['compare'](this['widget'])||this['markDirty'](!0x0),this['dom']&&!this['prevWidget']&&(this['prevWidget']=this['widget']),this['widget']=_0x316744['widget'],this['length']=_0x316744['length'],this['deco']=_0x316744['deco'],this['breakAfter']=_0x316744['breakAfter'],!0x0);}['ignoreMutation'](){return!0x0;}['ignoreEvent'](_0x24f9d0){return this['widget']['ignoreEvent'](_0x24f9d0);}get['isEditable'](){return!0x1;}get['isWidget'](){return!0x0;}['coordsAt'](_0x4f8e7f,_0x431b3e){let _0x4b9116=this['widget']['coordsAt'](this['dom'],_0x4f8e7f,_0x431b3e);return _0x4b9116||(this['widget']instanceof BlockGapWidget?null:flattenRect(this['dom']['getBoundingClientRect'](),this['length']?0x0==_0x4f8e7f:_0x431b3e<=0x0));}['destroy'](){super['destroy'](),this['dom']&&this['widget']['destroy'](this['dom']);}['covers'](_0x34a33c){let {startSide:_0x11dd92,endSide:_0x4b97e7}=this['deco'];return _0x11dd92!=_0x4b97e7&&(_0x34a33c<0x0?_0x11dd92<0x0:_0x4b97e7>0x0);}}class BlockGapWidget extends WidgetType{constructor(_0x4ace34){super(),this['height']=_0x4ace34;}['toDOM'](){let _0x461aa2=document['createElement']('div');return _0x461aa2['className']='cm-gap',this['updateDOM'](_0x461aa2),_0x461aa2;}['eq'](_0x5e60f6){return _0x5e60f6['height']==this['height'];}['updateDOM'](_0x4beb58){return _0x4beb58['style']['height']=this['height']+'px',!0x0;}get['editable'](){return!0x0;}get['estimatedHeight'](){return this['height'];}['ignoreEvent'](){return!0x1;}}class ContentBuilder{constructor(_0x47de1c,_0x405225,_0x284004,_0x533087){this['doc']=_0x47de1c,this['pos']=_0x405225,this['end']=_0x284004,this['disallowBlockEffectsFor']=_0x533087,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']=_0x47de1c['iter'](),this['skip']=_0x405225;}['posCovered'](){if(0x0==this['content']['length'])return!this['breakAtStart']&&this['doc']['lineAt'](this['pos'])['from']!=this['pos'];let _0x161e2b=this['content'][this['content']['length']-0x1];return!(_0x161e2b['breakAfter']||_0x161e2b instanceof BlockWidgetView&&_0x161e2b['deco']['endSide']<0x0);}['getLine'](){return this['curLine']||(this['content']['push'](this['curLine']=new LineView()),this['atCursorPos']=!0x0),this['curLine'];}['flushBuffer'](_0x3fffeb=this['bufferMarks']){this['pendingBuffer']&&(this['curLine']['append'](wrapMarks(new WidgetBufferView(-0x1),_0x3fffeb),_0x3fffeb['length']),this['pendingBuffer']=0x0);}['addBlockWidget'](_0x427f24){this['flushBuffer'](),this['curLine']=null,this['content']['push'](_0x427f24);}['finish'](_0xe07023){this['pendingBuffer']&&_0xe07023<=this['bufferMarks']['length']?this['flushBuffer']():this['pendingBuffer']=0x0,this['posCovered']()||_0xe07023&&this['content']['length']&&this['content'][this['content']['length']-0x1]instanceof BlockWidgetView||this['getLine']();}['buildText'](_0x262261,_0x2f586c,_0x2cf80a){for(;_0x262261>0x0;){if(this['textOff']==this['text']['length']){let {value:_0x483cbb,lineBreak:_0x38b345,done:_0x5a6dd3}=this['cursor']['next'](this['skip']);if(this['skip']=0x0,_0x5a6dd3)throw new Error('Ran\x20out\x20of\x20text\x20content\x20when\x20drawing\x20inline\x20views');if(_0x38b345){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,_0x262261--;continue;}this['text']=_0x483cbb,this['textOff']=0x0;}let _0x5cce82=Math['min'](this['text']['length']-this['textOff'],_0x262261),_0x2833f5=Math['min'](_0x5cce82,0x200);this['flushBuffer'](_0x2f586c['slice'](_0x2f586c['length']-_0x2cf80a)),this['getLine']()['append'](wrapMarks(new TextView(this['text']['slice'](this['textOff'],this['textOff']+_0x2833f5)),_0x2f586c),_0x2cf80a),this['atCursorPos']=!0x0,this['textOff']+=_0x2833f5,_0x262261-=_0x2833f5,_0x2cf80a=_0x5cce82<=_0x2833f5?0x0:_0x2f586c['length'];}}['span'](_0x4d9c53,_0x494cd7,_0x109836,_0x3d0c6b){this['buildText'](_0x494cd7-_0x4d9c53,_0x109836,_0x3d0c6b),this['pos']=_0x494cd7,this['openStart']<0x0&&(this['openStart']=_0x3d0c6b);}['point'](_0x3f90ff,_0x4c5a6d,_0xbb933a,_0xa94276,_0x52d669,_0x1d0e88){if(this['disallowBlockEffectsFor'][_0x1d0e88]&&_0xbb933a instanceof PointDecoration){if(_0xbb933a['block'])throw new RangeError('Block\x20decorations\x20may\x20not\x20be\x20specified\x20via\x20plugins');if(_0x4c5a6d>this['doc']['lineAt'](this['pos'])['to'])throw new RangeError('Decorations\x20that\x20replace\x20line\x20breaks\x20may\x20not\x20be\x20specified\x20via\x20plugins');}let _0x11b01a=_0x4c5a6d-_0x3f90ff;if(_0xbb933a instanceof PointDecoration){if(_0xbb933a['block'])_0xbb933a['startSide']>0x0&&!this['posCovered']()&&this['getLine'](),this['addBlockWidget'](new BlockWidgetView(_0xbb933a['widget']||NullWidget['block'],_0x11b01a,_0xbb933a));else{let _0x216946=WidgetView['create'](_0xbb933a['widget']||NullWidget['inline'],_0x11b01a,_0x11b01a?0x0:_0xbb933a['startSide']),_0x4f3e8e=this['atCursorPos']&&!_0x216946['isEditable']&&_0x52d669<=_0xa94276['length']&&(_0x3f90ff<_0x4c5a6d||_0xbb933a['startSide']>0x0),_0x3b22d5=!_0x216946['isEditable']&&(_0x3f90ff<_0x4c5a6d||_0x52d669>_0xa94276['length']||_0xbb933a['startSide']<=0x0),_0x245fd3=this['getLine']();0x2!=this['pendingBuffer']||_0x4f3e8e||_0x216946['isEditable']||(this['pendingBuffer']=0x0),this['flushBuffer'](_0xa94276),_0x4f3e8e&&(_0x245fd3['append'](wrapMarks(new WidgetBufferView(0x1),_0xa94276),_0x52d669),_0x52d669=_0xa94276['length']+Math['max'](0x0,_0x52d669-_0xa94276['length'])),_0x245fd3['append'](wrapMarks(_0x216946,_0xa94276),_0x52d669),this['atCursorPos']=_0x3b22d5,this['pendingBuffer']=_0x3b22d5?_0x3f90ff<_0x4c5a6d||_0x52d669>_0xa94276['length']?0x1:0x2:0x0,this['pendingBuffer']&&(this['bufferMarks']=_0xa94276['slice']());}}else this['doc']['lineAt'](this['pos'])['from']==this['pos']&&this['getLine']()['addLineDeco'](_0xbb933a);_0x11b01a&&(this['textOff']+_0x11b01a<=this['text']['length']?this['textOff']+=_0x11b01a:(this['skip']+=_0x11b01a-(this['text']['length']-this['textOff']),this['text']='',this['textOff']=0x0),this['pos']=_0x4c5a6d),this['openStart']<0x0&&(this['openStart']=_0x52d669);}static['build'](_0x31bba9,_0x3c1c81,_0xbabcb2,_0x517878,_0x27b994){let _0x3518b7=new ContentBuilder(_0x31bba9,_0x3c1c81,_0xbabcb2,_0x27b994);return _0x3518b7['openEnd']=RangeSet['spans'](_0x517878,_0x3c1c81,_0xbabcb2,_0x3518b7),_0x3518b7['openStart']<0x0&&(_0x3518b7['openStart']=_0x3518b7['openEnd']),_0x3518b7['finish'](_0x3518b7['openEnd']),_0x3518b7;}}function wrapMarks(_0x5747e2,_0x3c1cd1){for(let _0x24e3b9 of _0x3c1cd1)_0x5747e2=new MarkView(_0x24e3b9,[_0x5747e2],_0x5747e2['length']);return _0x5747e2;}class NullWidget extends WidgetType{constructor(_0x47ce7c){super(),this['tag']=_0x47ce7c;}['eq'](_0x4051f1){return _0x4051f1['tag']==this['tag'];}['toDOM'](){return document['createElement'](this['tag']);}['updateDOM'](_0x1a3f9f){return _0x1a3f9f['nodeName']['toLowerCase']()==this['tag'];}get['isHidden'](){return!0x0;}}NullWidget['inline']=new NullWidget('span'),NullWidget['block']=new NullWidget('div');var Direction=function(_0x48348e){return _0x48348e[_0x48348e['LTR']=0x0]='LTR',_0x48348e[_0x48348e['RTL']=0x1]='RTL',_0x48348e;}(Direction||(Direction={}));const LTR=Direction['LTR'],RTL=Direction['RTL'];function dec(_0x19134a){let _0x12ebd2=[];for(let _0x51d583=0x0;_0x51d583<_0x19134a['length'];_0x51d583++)_0x12ebd2['push'](0x1<<+_0x19134a[_0x51d583]);return _0x12ebd2;}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(_0x4d4e95){return _0x4d4e95<=0xf7?LowTypes[_0x4d4e95]:0x590<=_0x4d4e95&&_0x4d4e95<=0x5f4?0x2:0x600<=_0x4d4e95&&_0x4d4e95<=0x6f9?ArabicTypes[_0x4d4e95-0x600]:0x6ee<=_0x4d4e95&&_0x4d4e95<=0x8ac?0x4:0x2000<=_0x4d4e95&&_0x4d4e95<=0x200c?0x100:0xfb50<=_0x4d4e95&&_0x4d4e95<=0xfdff?0x4:0x1;}const BidiRE=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class BidiSpan{get['dir'](){return this['level']%0x2?RTL:LTR;}constructor(_0x58c73e,_0x27acc3,_0x198310){this['from']=_0x58c73e,this['to']=_0x27acc3,this['level']=_0x198310;}['side'](_0x35e88a,_0x6121ce){return this['dir']==_0x6121ce==_0x35e88a?this['to']:this['from'];}['forward'](_0x4b7e05,_0x3c5e1b){return _0x4b7e05==(this['dir']==_0x3c5e1b);}static['find'](_0x149809,_0x1cc0eb,_0xaf58d5,_0x2c3328){let _0x7a6bb6=-0x1;for(let _0x46295f=0x0;_0x46295f<_0x149809['length'];_0x46295f++){let _0x541358=_0x149809[_0x46295f];if(_0x541358['from']<=_0x1cc0eb&&_0x541358['to']>=_0x1cc0eb){if(_0x541358['level']==_0xaf58d5)return _0x46295f;(_0x7a6bb6<0x0||(0x0!=_0x2c3328?_0x2c3328<0x0?_0x541358['from']<_0x1cc0eb:_0x541358['to']>_0x1cc0eb:_0x149809[_0x7a6bb6]['level']>_0x541358['level']))&&(_0x7a6bb6=_0x46295f);}}if(_0x7a6bb6<0x0)throw new RangeError('Index\x20out\x20of\x20range');return _0x7a6bb6;}}function isolatesEq(_0xba5375,_0x2ac44e){if(_0xba5375['length']!=_0x2ac44e['length'])return!0x1;for(let _0x3623b=0x0;_0x3623b<_0xba5375['length'];_0x3623b++){let _0x2ee47b=_0xba5375[_0x3623b],_0x35286e=_0x2ac44e[_0x3623b];if(_0x2ee47b['from']!=_0x35286e['from']||_0x2ee47b['to']!=_0x35286e['to']||_0x2ee47b['direction']!=_0x35286e['direction']||!isolatesEq(_0x2ee47b['inner'],_0x35286e['inner']))return!0x1;}return!0x0;}const types=[];function computeCharTypes(_0x2a844c,_0x107a3c,_0x3f642b,_0x5bb73e,_0x37447e){for(let _0x1e38a0=0x0;_0x1e38a0<=_0x5bb73e['length'];_0x1e38a0++){let _0x73ba0b=_0x1e38a0?_0x5bb73e[_0x1e38a0-0x1]['to']:_0x107a3c,_0x32edd7=_0x1e38a0<_0x5bb73e['length']?_0x5bb73e[_0x1e38a0]['from']:_0x3f642b,_0xacf045=_0x1e38a0?0x100:_0x37447e;for(let _0x48f2de=_0x73ba0b,_0x381ca4=_0xacf045,_0x35d31e=_0xacf045;_0x48f2de<_0x32edd7;_0x48f2de++){let _0x4bc506=charType(_0x2a844c['charCodeAt'](_0x48f2de));0x200==_0x4bc506?_0x4bc506=_0x381ca4:0x8==_0x4bc506&&0x4==_0x35d31e&&(_0x4bc506=0x10),types[_0x48f2de]=0x4==_0x4bc506?0x2:_0x4bc506,0x7&_0x4bc506&&(_0x35d31e=_0x4bc506),_0x381ca4=_0x4bc506;}for(let _0x58fd21=_0x73ba0b,_0x3b4cb8=_0xacf045,_0x399d7a=_0xacf045;_0x58fd21<_0x32edd7;_0x58fd21++){let _0x5a5c3e=types[_0x58fd21];if(0x80==_0x5a5c3e)_0x58fd21<_0x32edd7-0x1&&_0x3b4cb8==types[_0x58fd21+0x1]&&0x18&_0x3b4cb8?_0x5a5c3e=types[_0x58fd21]=_0x3b4cb8:types[_0x58fd21]=0x100;else{if(0x40==_0x5a5c3e){let _0x556f70=_0x58fd21+0x1;for(;_0x556f70<_0x32edd7&&0x40==types[_0x556f70];)_0x556f70++;let _0x18dff6=_0x58fd21&&0x8==_0x3b4cb8||_0x556f70<_0x3f642b&&0x8==types[_0x556f70]?0x1==_0x399d7a?0x1:0x8:0x100;for(let _0x44e37e=_0x58fd21;_0x44e37e<_0x556f70;_0x44e37e++)types[_0x44e37e]=_0x18dff6;_0x58fd21=_0x556f70-0x1;}else 0x8==_0x5a5c3e&&0x1==_0x399d7a&&(types[_0x58fd21]=0x1);}_0x3b4cb8=_0x5a5c3e,0x7&_0x5a5c3e&&(_0x399d7a=_0x5a5c3e);}}}function processBracketPairs(_0x358283,_0x2b57e8,_0x259ba9,_0x187ba1,_0xa7c9c5){let _0x1913e2=0x1==_0xa7c9c5?0x2:0x1;for(let _0x293095=0x0,_0x5d4f4e=0x0,_0x3149c7=0x0;_0x293095<=_0x187ba1['length'];_0x293095++){let _0x2d0286=_0x293095?_0x187ba1[_0x293095-0x1]['to']:_0x2b57e8,_0x23bc5d=_0x293095<_0x187ba1['length']?_0x187ba1[_0x293095]['from']:_0x259ba9;for(let _0x5f40ce,_0x169641,_0x49f10a,_0x1831e0=_0x2d0286;_0x1831e0<_0x23bc5d;_0x1831e0++)if(_0x169641=Brackets[_0x5f40ce=_0x358283['charCodeAt'](_0x1831e0)]){if(_0x169641<0x0){for(let _0x485fe6=_0x5d4f4e-0x3;_0x485fe6>=0x0;_0x485fe6-=0x3)if(BracketStack[_0x485fe6+0x1]==-_0x169641){let _0x49346f=BracketStack[_0x485fe6+0x2],_0x59663b=0x2&_0x49346f?_0xa7c9c5:0x4&_0x49346f?0x1&_0x49346f?_0x1913e2:_0xa7c9c5:0x0;_0x59663b&&(types[_0x1831e0]=types[BracketStack[_0x485fe6]]=_0x59663b),_0x5d4f4e=_0x485fe6;break;}}else{if(0xbd==BracketStack['length'])break;BracketStack[_0x5d4f4e++]=_0x1831e0,BracketStack[_0x5d4f4e++]=_0x5f40ce,BracketStack[_0x5d4f4e++]=_0x3149c7;}}else{if(0x2==(_0x49f10a=types[_0x1831e0])||0x1==_0x49f10a){let _0x56d600=_0x49f10a==_0xa7c9c5;_0x3149c7=_0x56d600?0x0:0x1;for(let _0x55ed5b=_0x5d4f4e-0x3;_0x55ed5b>=0x0;_0x55ed5b-=0x3){let _0x39581c=BracketStack[_0x55ed5b+0x2];if(0x2&_0x39581c)break;if(_0x56d600)BracketStack[_0x55ed5b+0x2]|=0x2;else{if(0x4&_0x39581c)break;BracketStack[_0x55ed5b+0x2]|=0x4;}}}}}}function processNeutrals(_0x24d558,_0x2a0d29,_0x189422,_0x4c0e1c){for(let _0x33ca4d=0x0,_0x5841ad=_0x4c0e1c;_0x33ca4d<=_0x189422['length'];_0x33ca4d++){let _0x40c0bf=_0x33ca4d?_0x189422[_0x33ca4d-0x1]['to']:_0x24d558,_0x44878b=_0x33ca4d<_0x189422['length']?_0x189422[_0x33ca4d]['from']:_0x2a0d29;for(let _0x49b809=_0x40c0bf;_0x49b809<_0x44878b;){let _0x19df09=types[_0x49b809];if(0x100==_0x19df09){let _0x5737e1=_0x49b809+0x1;for(;;)if(_0x5737e1==_0x44878b){if(_0x33ca4d==_0x189422['length'])break;_0x5737e1=_0x189422[_0x33ca4d++]['to'],_0x44878b=_0x33ca4d<_0x189422['length']?_0x189422[_0x33ca4d]['from']:_0x2a0d29;}else{if(0x100!=types[_0x5737e1])break;_0x5737e1++;}let _0x15e388=0x1==_0x5841ad,_0x595fc2=_0x15e388==(0x1==(_0x5737e1<_0x2a0d29?types[_0x5737e1]:_0x4c0e1c))?_0x15e388?0x1:0x2:_0x4c0e1c;for(let _0x5e4abf=_0x5737e1,_0xc316a6=_0x33ca4d,_0x406630=_0xc316a6?_0x189422[_0xc316a6-0x1]['to']:_0x24d558;_0x5e4abf>_0x49b809;)_0x5e4abf==_0x406630&&(_0x5e4abf=_0x189422[--_0xc316a6]['from'],_0x406630=_0xc316a6?_0x189422[_0xc316a6-0x1]['to']:_0x24d558),types[--_0x5e4abf]=_0x595fc2;_0x49b809=_0x5737e1;}else _0x5841ad=_0x19df09,_0x49b809++;}}}function emitSpans(_0x207423,_0x2a592e,_0x19021e,_0x1e51fb,_0x5a0d12,_0x9322d5,_0x45a32b){let _0x22d54d=_0x1e51fb%0x2?0x2:0x1;if(_0x1e51fb%0x2==_0x5a0d12%0x2)for(let _0x5b1bc9=_0x2a592e,_0x1ac3c6=0x0;_0x5b1bc9<_0x19021e;){let _0x3e574b=!0x0,_0x2b0a7=!0x1;if(_0x1ac3c6==_0x9322d5['length']||_0x5b1bc9<_0x9322d5[_0x1ac3c6]['from']){let _0x16bd59=types[_0x5b1bc9];_0x16bd59!=_0x22d54d&&(_0x3e574b=!0x1,_0x2b0a7=0x10==_0x16bd59);}let _0x213ebd=_0x3e574b||0x1!=_0x22d54d?null:[],_0x1594a1=_0x3e574b?_0x1e51fb:_0x1e51fb+0x1,_0x4c13a6=_0x5b1bc9;t:for(;;)if(_0x1ac3c6<_0x9322d5['length']&&_0x4c13a6==_0x9322d5[_0x1ac3c6]['from']){if(_0x2b0a7)break t;let _0x57dfb7=_0x9322d5[_0x1ac3c6];if(!_0x3e574b)for(let _0x3fee39=_0x57dfb7['to'],_0x1c0071=_0x1ac3c6+0x1;;){if(_0x3fee39==_0x19021e)break t;if(!(_0x1c0071<_0x9322d5['length']&&_0x9322d5[_0x1c0071]['from']==_0x3fee39)){if(types[_0x3fee39]==_0x22d54d)break t;break;}_0x3fee39=_0x9322d5[_0x1c0071++]['to'];}if(_0x1ac3c6++,_0x213ebd)_0x213ebd['push'](_0x57dfb7);else _0x57dfb7['from']>_0x5b1bc9&&_0x45a32b['push'](new BidiSpan(_0x5b1bc9,_0x57dfb7['from'],_0x1594a1)),computeSectionOrder(_0x207423,_0x57dfb7['direction']==LTR!=!(_0x1594a1%0x2)?_0x1e51fb+0x1:_0x1e51fb,_0x5a0d12,_0x57dfb7['inner'],_0x57dfb7['from'],_0x57dfb7['to'],_0x45a32b),_0x5b1bc9=_0x57dfb7['to'];_0x4c13a6=_0x57dfb7['to'];}else{if(_0x4c13a6==_0x19021e||(_0x3e574b?types[_0x4c13a6]!=_0x22d54d:types[_0x4c13a6]==_0x22d54d))break;_0x4c13a6++;}_0x213ebd?emitSpans(_0x207423,_0x5b1bc9,_0x4c13a6,_0x1e51fb+0x1,_0x5a0d12,_0x213ebd,_0x45a32b):_0x5b1bc9<_0x4c13a6&&_0x45a32b['push'](new BidiSpan(_0x5b1bc9,_0x4c13a6,_0x1594a1)),_0x5b1bc9=_0x4c13a6;}else for(let _0x5f3499=_0x19021e,_0x4806e6=_0x9322d5['length'];_0x5f3499>_0x2a592e;){let _0x3a9e0c=!0x0,_0x192276=!0x1;if(!_0x4806e6||_0x5f3499>_0x9322d5[_0x4806e6-0x1]['to']){let _0x282edc=types[_0x5f3499-0x1];_0x282edc!=_0x22d54d&&(_0x3a9e0c=!0x1,_0x192276=0x10==_0x282edc);}let _0x8ee425=_0x3a9e0c||0x1!=_0x22d54d?null:[],_0x4cc3b9=_0x3a9e0c?_0x1e51fb:_0x1e51fb+0x1,_0xc9c452=_0x5f3499;t:for(;;)if(_0x4806e6&&_0xc9c452==_0x9322d5[_0x4806e6-0x1]['to']){if(_0x192276)break t;let _0x3bc3c1=_0x9322d5[--_0x4806e6];if(!_0x3a9e0c)for(let _0x449fd0=_0x3bc3c1['from'],_0x44d362=_0x4806e6;;){if(_0x449fd0==_0x2a592e)break t;if(!_0x44d362||_0x9322d5[_0x44d362-0x1]['to']!=_0x449fd0){if(types[_0x449fd0-0x1]==_0x22d54d)break t;break;}_0x449fd0=_0x9322d5[--_0x44d362]['from'];}if(_0x8ee425)_0x8ee425['push'](_0x3bc3c1);else _0x3bc3c1['to']<_0x5f3499&&_0x45a32b['push'](new BidiSpan(_0x3bc3c1['to'],_0x5f3499,_0x4cc3b9)),computeSectionOrder(_0x207423,_0x3bc3c1['direction']==LTR!=!(_0x4cc3b9%0x2)?_0x1e51fb+0x1:_0x1e51fb,_0x5a0d12,_0x3bc3c1['inner'],_0x3bc3c1['from'],_0x3bc3c1['to'],_0x45a32b),_0x5f3499=_0x3bc3c1['from'];_0xc9c452=_0x3bc3c1['from'];}else{if(_0xc9c452==_0x2a592e||(_0x3a9e0c?types[_0xc9c452-0x1]!=_0x22d54d:types[_0xc9c452-0x1]==_0x22d54d))break;_0xc9c452--;}_0x8ee425?emitSpans(_0x207423,_0xc9c452,_0x5f3499,_0x1e51fb+0x1,_0x5a0d12,_0x8ee425,_0x45a32b):_0xc9c452<_0x5f3499&&_0x45a32b['push'](new BidiSpan(_0xc9c452,_0x5f3499,_0x4cc3b9)),_0x5f3499=_0xc9c452;}}function computeSectionOrder(_0x4a16e3,_0xdacffa,_0x5d66f9,_0x3b5c4b,_0x19d65a,_0x1c4efd,_0x167929){let _0x194439=_0xdacffa%0x2?0x2:0x1;computeCharTypes(_0x4a16e3,_0x19d65a,_0x1c4efd,_0x3b5c4b,_0x194439),processBracketPairs(_0x4a16e3,_0x19d65a,_0x1c4efd,_0x3b5c4b,_0x194439),processNeutrals(_0x19d65a,_0x1c4efd,_0x3b5c4b,_0x194439),emitSpans(_0x4a16e3,_0x19d65a,_0x1c4efd,_0xdacffa,_0x5d66f9,_0x3b5c4b,_0x167929);}function computeOrder(_0x5cac3f,_0x2eeaee,_0x4eb056){if(!_0x5cac3f)return[new BidiSpan(0x0,0x0,_0x2eeaee==RTL?0x1:0x0)];if(_0x2eeaee==LTR&&!_0x4eb056['length']&&!BidiRE['test'](_0x5cac3f))return trivialOrder(_0x5cac3f['length']);if(_0x4eb056['length']){for(;_0x5cac3f['length']>types['length'];)types[types['length']]=0x100;}let _0x5c8635=[],_0x5b6b2e=_0x2eeaee==LTR?0x0:0x1;return computeSectionOrder(_0x5cac3f,_0x5b6b2e,_0x5b6b2e,_0x4eb056,0x0,_0x5cac3f['length'],_0x5c8635),_0x5c8635;}function trivialOrder(_0x2ae3d7){return[new BidiSpan(0x0,_0x2ae3d7,0x0)];}let movedOver='';function moveVisually(_0x1cefde,_0x463c26,_0x18b27c,_0x56c1d8,_0x1e4d93){var _0x4ef35c;let _0x1171d3=_0x56c1d8['head']-_0x1cefde['from'],_0x595458=BidiSpan['find'](_0x463c26,_0x1171d3,null!==(_0x4ef35c=_0x56c1d8['bidiLevel'])&&void 0x0!==_0x4ef35c?_0x4ef35c:-0x1,_0x56c1d8['assoc']),_0x28293b=_0x463c26[_0x595458],_0x5e9580=_0x28293b['side'](_0x1e4d93,_0x18b27c);if(_0x1171d3==_0x5e9580){let _0x3c1fad=_0x595458+=_0x1e4d93?0x1:-0x1;if(_0x3c1fad<0x0||_0x3c1fad>=_0x463c26['length'])return null;_0x28293b=_0x463c26[_0x595458=_0x3c1fad],_0x1171d3=_0x28293b['side'](!_0x1e4d93,_0x18b27c),_0x5e9580=_0x28293b['side'](_0x1e4d93,_0x18b27c);}let _0x524468=findClusterBreak(_0x1cefde['text'],_0x1171d3,_0x28293b['forward'](_0x1e4d93,_0x18b27c));(_0x524468<_0x28293b['from']||_0x524468>_0x28293b['to'])&&(_0x524468=_0x5e9580),movedOver=_0x1cefde['text']['slice'](Math['min'](_0x1171d3,_0x524468),Math['max'](_0x1171d3,_0x524468));let _0x3b0627=_0x595458==(_0x1e4d93?_0x463c26['length']-0x1:0x0)?null:_0x463c26[_0x595458+(_0x1e4d93?0x1:-0x1)];return _0x3b0627&&_0x524468==_0x5e9580&&_0x3b0627['level']+(_0x1e4d93?0x0:0x1)<_0x28293b['level']?EditorSelection['cursor'](_0x3b0627['side'](!_0x1e4d93,_0x18b27c)+_0x1cefde['from'],_0x3b0627['forward'](_0x1e4d93,_0x18b27c)?0x1:-0x1,_0x3b0627['level']):EditorSelection['cursor'](_0x524468+_0x1cefde['from'],_0x28293b['forward'](_0x1e4d93,_0x18b27c)?-0x1:0x1,_0x28293b['level']);}function autoDirection(_0x2cfe84,_0x2cc7ed,_0x17b1be){for(let _0x30f195=_0x2cc7ed;_0x30f195<_0x17b1be;_0x30f195++){let _0x443f66=charType(_0x2cfe84['charCodeAt'](_0x30f195));if(0x1==_0x443f66)return LTR;if(0x2==_0x443f66||0x4==_0x443f66)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':_0x3161c4=>_0x3161c4['some'](_0x3a4781=>_0x3a4781)}),nativeSelectionHidden=Facet['define']({'combine':_0x4c6a98=>_0x4c6a98['some'](_0x2c1ff6=>_0x2c1ff6)}),scrollHandler=Facet['define']();class ScrollTarget{constructor(_0x31eb4f,_0x22cc3b='nearest',_0x19a04e='nearest',_0x23f804=0x5,_0xfefb5e=0x5,_0x135f51=!0x1){this['range']=_0x31eb4f,this['y']=_0x22cc3b,this['x']=_0x19a04e,this['yMargin']=_0x23f804,this['xMargin']=_0xfefb5e,this['isSnapshot']=_0x135f51;}['map'](_0x169361){return _0x169361['empty']?this:new ScrollTarget(this['range']['map'](_0x169361),this['y'],this['x'],this['yMargin'],this['xMargin'],this['isSnapshot']);}['clip'](_0x334780){return this['range']['to']<=_0x334780['doc']['length']?this:new ScrollTarget(EditorSelection['cursor'](_0x334780['doc']['length']),this['y'],this['x'],this['yMargin'],this['xMargin'],this['isSnapshot']);}}const scrollIntoView$1=StateEffect['define']({'map':(t,_0x2b03fc)=>t['map'](_0x2b03fc)}),setEditContextFormatting=StateEffect['define']();function logException(_0x3a2490,_0x21cff4,_0x1435f4){let _0x47ff9c=_0x3a2490['facet'](exceptionSink);_0x47ff9c['length']?_0x47ff9c[0x0](_0x21cff4):window['onerror']&&window['onerror'](String(_0x21cff4),_0x1435f4,void 0x0,void 0x0,_0x21cff4)||(_0x1435f4?console['error'](_0x1435f4+':',_0x21cff4):console['error'](_0x21cff4));}const editable=Facet['define']({'combine':_0x598575=>!_0x598575['length']||_0x598575[0x0]});let nextPluginID=0x0;const viewPlugin=Facet['define']({'combine':_0x2db3ab=>_0x2db3ab['filter']((_0x2c62b1,_0x5e9386)=>{for(let _0x124e09=0x0;_0x124e09<_0x5e9386;_0x124e09++)if(_0x2db3ab[_0x124e09]['plugin']==_0x2c62b1['plugin'])return!0x1;return!0x0;})});class ViewPlugin{constructor(_0x306869,_0x4a9360,_0x5e8382,_0x3a1d72,_0x403ccc){this['id']=_0x306869,this['create']=_0x4a9360,this['domEventHandlers']=_0x5e8382,this['domEventObservers']=_0x3a1d72,this['baseExtensions']=_0x403ccc(this),this['extension']=this['baseExtensions']['concat'](viewPlugin['of']({'plugin':this,'arg':void 0x0}));}['of'](_0x46cdaf){return this['baseExtensions']['concat'](viewPlugin['of']({'plugin':this,'arg':_0x46cdaf}));}static['define'](_0x376685,_0x30e063){const {eventHandlers:_0x38a6e6,eventObservers:_0x136241,provide:_0x5442d3,decorations:_0x4fc59c}=_0x30e063||{};return new ViewPlugin(nextPluginID++,_0x376685,_0x38a6e6,_0x136241,_0x40c2e3=>{let _0x2a6192=[];return _0x4fc59c&&_0x2a6192['push'](decorations['of'](_0x4180dc=>{let _0x4dcc25=_0x4180dc['plugin'](_0x40c2e3);return _0x4dcc25?_0x4fc59c(_0x4dcc25):Decoration['none'];})),_0x5442d3&&_0x2a6192['push'](_0x5442d3(_0x40c2e3)),_0x2a6192;});}static['fromClass'](_0x2e988d,_0x25c4b7){return ViewPlugin['define']((_0x1070cb,_0x160f6d)=>new _0x2e988d(_0x1070cb,_0x160f6d),_0x25c4b7);}}class PluginInstance{constructor(_0x3f7fed){this['spec']=_0x3f7fed,this['mustUpdate']=null,this['value']=null;}get['plugin'](){return this['spec']&&this['spec']['plugin'];}['update'](_0x1e5388){if(this['value']){if(this['mustUpdate']){let _0x13a757=this['mustUpdate'];if(this['mustUpdate']=null,this['value']['update'])try{this['value']['update'](_0x13a757);}catch(_0x39a1b6){if(logException(_0x13a757['state'],_0x39a1b6,'CodeMirror\x20plugin\x20crashed'),this['value']['destroy'])try{this['value']['destroy']();}catch(_0xfee85a){}this['deactivate']();}}}else{if(this['spec'])try{this['value']=this['spec']['plugin']['create'](_0x1e5388,this['spec']['arg']);}catch(_0x563a73){logException(_0x1e5388['state'],_0x563a73,'CodeMirror\x20plugin\x20crashed'),this['deactivate']();}}return this;}['destroy'](_0x12b615){var _0x50e007;if(null===(_0x50e007=this['value'])||void 0x0===_0x50e007?void 0x0:_0x50e007['destroy'])try{this['value']['destroy']();}catch(_0x1c798c){logException(_0x12b615['state'],_0x1c798c,'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(_0x123960,_0x1b96df){let _0x10d05a=_0x123960['state']['facet'](bidiIsolatedRanges);if(!_0x10d05a['length'])return _0x10d05a;let _0x326077=_0x10d05a['map'](_0x580a4b=>_0x580a4b instanceof Function?_0x580a4b(_0x123960):_0x580a4b),_0x3cb02b=[];return RangeSet['spans'](_0x326077,_0x1b96df['from'],_0x1b96df['to'],{'point'(){},'span'(_0x18490b,_0x287b96,_0x350faa,_0x4e4d0b){let _0x31914f=_0x18490b-_0x1b96df['from'],_0x2d4614=_0x287b96-_0x1b96df['from'],_0x3314c4=_0x3cb02b;for(let _0x469ae5=_0x350faa['length']-0x1;_0x469ae5>=0x0;_0x469ae5--,_0x4e4d0b--){let _0x39144e,_0x343991=_0x350faa[_0x469ae5]['spec']['bidiIsolate'];if(null==_0x343991&&(_0x343991=autoDirection(_0x1b96df['text'],_0x31914f,_0x2d4614)),_0x4e4d0b>0x0&&_0x3314c4['length']&&(_0x39144e=_0x3314c4[_0x3314c4['length']-0x1])['to']==_0x31914f&&_0x39144e['direction']==_0x343991)_0x39144e['to']=_0x2d4614,_0x3314c4=_0x39144e['inner'];else{let _0x893c73={'from':_0x31914f,'to':_0x2d4614,'direction':_0x343991,'inner':[]};_0x3314c4['push'](_0x893c73),_0x3314c4=_0x893c73['inner'];}}}}),_0x3cb02b;}const scrollMargins=Facet['define']();function getScrollMargins(_0x18ceee){let _0x5a81c0=0x0,_0x1645ff=0x0,_0x2f6aa4=0x0,_0x4714bf=0x0;for(let _0x532bcb of _0x18ceee['state']['facet'](scrollMargins)){let _0x55ae4a=_0x532bcb(_0x18ceee);_0x55ae4a&&(null!=_0x55ae4a['left']&&(_0x5a81c0=Math['max'](_0x5a81c0,_0x55ae4a['left'])),null!=_0x55ae4a['right']&&(_0x1645ff=Math['max'](_0x1645ff,_0x55ae4a['right'])),null!=_0x55ae4a['top']&&(_0x2f6aa4=Math['max'](_0x2f6aa4,_0x55ae4a['top'])),null!=_0x55ae4a['bottom']&&(_0x4714bf=Math['max'](_0x4714bf,_0x55ae4a['bottom'])));}return{'left':_0x5a81c0,'right':_0x1645ff,'top':_0x2f6aa4,'bottom':_0x4714bf};}const styleModule=Facet['define']();class ChangedRange{constructor(_0x57aaff,_0x180259,_0x20e7f0,_0x257a6f){this['fromA']=_0x57aaff,this['toA']=_0x180259,this['fromB']=_0x20e7f0,this['toB']=_0x257a6f;}['join'](_0xbdbca4){return new ChangedRange(Math['min'](this['fromA'],_0xbdbca4['fromA']),Math['max'](this['toA'],_0xbdbca4['toA']),Math['min'](this['fromB'],_0xbdbca4['fromB']),Math['max'](this['toB'],_0xbdbca4['toB']));}['addToSet'](_0x527130){let _0x3ffb74=_0x527130['length'],_0x5a898a=this;for(;_0x3ffb74>0x0;_0x3ffb74--){let _0x2195ae=_0x527130[_0x3ffb74-0x1];if(!(_0x2195ae['fromA']>_0x5a898a['toA'])){if(_0x2195ae['toA']<_0x5a898a['fromA'])break;_0x5a898a=_0x5a898a['join'](_0x2195ae),_0x527130['splice'](_0x3ffb74-0x1,0x1);}}return _0x527130['splice'](_0x3ffb74,0x0,_0x5a898a),_0x527130;}static['extendWithRanges'](_0x44dbe4,_0x46a389){if(0x0==_0x46a389['length'])return _0x44dbe4;let _0x5862b4=[];for(let _0x4f7eb8=0x0,_0x592327=0x0,_0x1ff411=0x0,_0xc8c488=0x0;;_0x4f7eb8++){let _0x324b1b=_0x4f7eb8==_0x44dbe4['length']?null:_0x44dbe4[_0x4f7eb8],_0x48eb3e=_0x1ff411-_0xc8c488,_0x1a962f=_0x324b1b?_0x324b1b['fromB']:0x3b9aca00;for(;_0x592327<_0x46a389['length']&&_0x46a389[_0x592327]<_0x1a962f;){let _0x19f513=_0x46a389[_0x592327],_0x2c1ba5=_0x46a389[_0x592327+0x1],_0x17fc67=Math['max'](_0xc8c488,_0x19f513),_0x2cf575=Math['min'](_0x1a962f,_0x2c1ba5);if(_0x17fc67<=_0x2cf575&&new ChangedRange(_0x17fc67+_0x48eb3e,_0x2cf575+_0x48eb3e,_0x17fc67,_0x2cf575)['addToSet'](_0x5862b4),_0x2c1ba5>_0x1a962f)break;_0x592327+=0x2;}if(!_0x324b1b)return _0x5862b4;new ChangedRange(_0x324b1b['fromA'],_0x324b1b['toA'],_0x324b1b['fromB'],_0x324b1b['toB'])['addToSet'](_0x5862b4),_0x1ff411=_0x324b1b['toA'],_0xc8c488=_0x324b1b['toB'];}}}class ViewUpdate{constructor(_0xb3ed26,_0x262aa1,_0xf9a6df){this['view']=_0xb3ed26,this['state']=_0x262aa1,this['transactions']=_0xf9a6df,this['flags']=0x0,this['startState']=_0xb3ed26['state'],this['changes']=ChangeSet['empty'](this['startState']['doc']['length']);for(let _0x36c2e7 of _0xf9a6df)this['changes']=this['changes']['compose'](_0x36c2e7['changes']);let _0x2f8750=[];this['changes']['iterChangedRanges']((_0x37e7d3,_0x4a7d4d,_0x97d442,_0x317e50)=>_0x2f8750['push'](new ChangedRange(_0x37e7d3,_0x4a7d4d,_0x97d442,_0x317e50))),this['changedRanges']=_0x2f8750;}static['create'](_0x2d9d63,_0x208f77,_0x3ec004){return new ViewUpdate(_0x2d9d63,_0x208f77,_0x3ec004);}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'](_0x474ffa=>_0x474ffa['selection']);}get['empty'](){return 0x0==this['flags']&&0x0==this['transactions']['length'];}}class DocView extends ContentView{get['length'](){return this['view']['state']['doc']['length'];}constructor(_0x41e22c){super(),this['view']=_0x41e22c,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'](_0x41e22c['contentDOM']),this['children']=[new LineView()],this['children'][0x0]['setParent'](this),this['updateDeco'](),this['updateInner']([new ChangedRange(0x0,0x0,0x0,_0x41e22c['state']['doc']['length'])],0x0,null);}['update'](_0xdcd785){var _0x33ea08;let _0x46df2a=_0xdcd785['changedRanges'];this['minWidth']>0x0&&_0x46df2a['length']&&(_0x46df2a['every'](({fromA:_0x25c83e,toA:_0x33f25c})=>_0x33f25c<this['minWidthFrom']||_0x25c83e>this['minWidthTo'])?(this['minWidthFrom']=_0xdcd785['changes']['mapPos'](this['minWidthFrom'],0x1),this['minWidthTo']=_0xdcd785['changes']['mapPos'](this['minWidthTo'],0x1)):this['minWidth']=this['minWidthFrom']=this['minWidthTo']=0x0),this['updateEditContextFormatting'](_0xdcd785);let _0x3b19e4=-0x1;this['view']['inputState']['composing']>=0x0&&!this['view']['observer']['editContext']&&((null===(_0x33ea08=this['domChanged'])||void 0x0===_0x33ea08?void 0x0:_0x33ea08['newSel'])?_0x3b19e4=this['domChanged']['newSel']['head']:touchesComposition(_0xdcd785['changes'],this['hasComposition'])||_0xdcd785['selectionSet']||(_0x3b19e4=_0xdcd785['state']['selection']['main']['head']));let _0x47a996=_0x3b19e4>-0x1?findCompositionRange(this['view'],_0xdcd785['changes'],_0x3b19e4):null;if(this['domChanged']=null,this['hasComposition']){this['markedForComposition']['clear']();let {from:_0x171e86,to:_0x14a975}=this['hasComposition'];_0x46df2a=new ChangedRange(_0x171e86,_0x14a975,_0xdcd785['changes']['mapPos'](_0x171e86,-0x1),_0xdcd785['changes']['mapPos'](_0x14a975,0x1))['addToSet'](_0x46df2a['slice']());}this['hasComposition']=_0x47a996?{'from':_0x47a996['range']['fromB'],'to':_0x47a996['range']['toB']}:null,(browser['ie']||browser['chrome'])&&!_0x47a996&&_0xdcd785&&_0xdcd785['state']['doc']['lines']!=_0xdcd785['startState']['doc']['lines']&&(this['forceSelection']=!0x0);let _0x2c3559=findChangedDeco(this['decorations'],this['updateDeco'](),_0xdcd785['changes']);return _0x46df2a=ChangedRange['extendWithRanges'](_0x46df2a,_0x2c3559),!!(0x7&this['flags']||0x0!=_0x46df2a['length'])&&(this['updateInner'](_0x46df2a,_0xdcd785['startState']['doc']['length'],_0x47a996),_0xdcd785['transactions']['length']&&(this['lastUpdate']=Date['now']()),!0x0);}['updateInner'](_0x2619eb,_0x2e6022,_0x254b6f){this['view']['viewState']['mustMeasureContent']=!0x0,this['updateChildren'](_0x2619eb,_0x2e6022,_0x254b6f);let {observer:_0xda1f07}=this['view'];_0xda1f07['ignore'](()=>{this['dom']['style']['height']=this['view']['viewState']['contentHeight']/this['view']['scaleY']+'px',this['dom']['style']['flexBasis']=this['minWidth']?this['minWidth']+'px':'';let _0x41036f=browser['chrome']||browser['ios']?{'node':_0xda1f07['selectionRange']['focusNode'],'written':!0x1}:void 0x0;this['sync'](this['view'],_0x41036f),this['flags']&=-0x8,_0x41036f&&(_0x41036f['written']||_0xda1f07['selectionRange']['focusNode']!=_0x41036f['node'])&&(this['forceSelection']=!0x0),this['dom']['style']['height']='';}),this['markedForComposition']['forEach'](_0xfa2d80=>_0xfa2d80['flags']&=-0x9);let _0x2663be=[];if(this['view']['viewport']['from']||this['view']['viewport']['to']<this['view']['state']['doc']['length']){for(let _0xc4f62e of this['children'])_0xc4f62e instanceof BlockWidgetView&&_0xc4f62e['widget']instanceof BlockGapWidget&&_0x2663be['push'](_0xc4f62e['dom']);}_0xda1f07['updateGaps'](_0x2663be);}['updateChildren'](_0x303901,_0xe0212e,_0x4d3095){let _0x33e435=_0x4d3095?_0x4d3095['range']['addToSet'](_0x303901['slice']()):_0x303901,_0xe709b6=this['childCursor'](_0xe0212e);for(let _0xd3b55f=_0x33e435['length']-0x1;;_0xd3b55f--){let _0x14573a=_0xd3b55f>=0x0?_0x33e435[_0xd3b55f]:null;if(!_0x14573a)break;let _0x204700,_0x4f4ffb,_0x178086,_0x5057f7,{fromA:_0x54bd32,toA:_0x150792,fromB:_0x107a56,toB:_0x5d5b0d}=_0x14573a;if(_0x4d3095&&_0x4d3095['range']['fromB']<_0x5d5b0d&&_0x4d3095['range']['toB']>_0x107a56){let _0x10d490=ContentBuilder['build'](this['view']['state']['doc'],_0x107a56,_0x4d3095['range']['fromB'],this['decorations'],this['dynamicDecorationMap']),_0x5249cd=ContentBuilder['build'](this['view']['state']['doc'],_0x4d3095['range']['toB'],_0x5d5b0d,this['decorations'],this['dynamicDecorationMap']);_0x4f4ffb=_0x10d490['breakAtStart'],_0x178086=_0x10d490['openStart'],_0x5057f7=_0x5249cd['openEnd'];let _0x5cbf03=this['compositionView'](_0x4d3095);_0x5249cd['breakAtStart']?_0x5cbf03['breakAfter']=0x1:_0x5249cd['content']['length']&&_0x5cbf03['merge'](_0x5cbf03['length'],_0x5cbf03['length'],_0x5249cd['content'][0x0],!0x1,_0x5249cd['openStart'],0x0)&&(_0x5cbf03['breakAfter']=_0x5249cd['content'][0x0]['breakAfter'],_0x5249cd['content']['shift']()),_0x10d490['content']['length']&&_0x5cbf03['merge'](0x0,0x0,_0x10d490['content'][_0x10d490['content']['length']-0x1],!0x0,0x0,_0x10d490['openEnd'])&&_0x10d490['content']['pop'](),_0x204700=_0x10d490['content']['concat'](_0x5cbf03)['concat'](_0x5249cd['content']);}else({content:_0x204700,breakAtStart:_0x4f4ffb,openStart:_0x178086,openEnd:_0x5057f7}=ContentBuilder['build'](this['view']['state']['doc'],_0x107a56,_0x5d5b0d,this['decorations'],this['dynamicDecorationMap']));let {i:_0x4dbf00,off:_0x316cc}=_0xe709b6['findPos'](_0x150792,0x1),{i:_0x426b7a,off:_0x1f8a89}=_0xe709b6['findPos'](_0x54bd32,-0x1);replaceRange(this,_0x426b7a,_0x1f8a89,_0x4dbf00,_0x316cc,_0x204700,_0x4f4ffb,_0x178086,_0x5057f7);}_0x4d3095&&this['fixCompositionDOM'](_0x4d3095);}['updateEditContextFormatting'](_0x2dc1ec){this['editContextFormatting']=this['editContextFormatting']['map'](_0x2dc1ec['changes']);for(let _0x19a45a of _0x2dc1ec['transactions'])for(let _0x4bb78a of _0x19a45a['effects'])_0x4bb78a['is'](setEditContextFormatting)&&(this['editContextFormatting']=_0x4bb78a['value']);}['compositionView'](_0x3bd634){let _0x5d0524=new TextView(_0x3bd634['text']['nodeValue']);_0x5d0524['flags']|=0x8;for(let {deco:_0x2fb6fe}of _0x3bd634['marks'])_0x5d0524=new MarkView(_0x2fb6fe,[_0x5d0524],_0x5d0524['length']);let _0x13206a=new LineView();return _0x13206a['append'](_0x5d0524,0x0),_0x13206a;}['fixCompositionDOM'](_0x2542b8){let _0x41d3a2=(_0x49660e,_0xcbc6a5)=>{_0xcbc6a5['flags']|=0x8|(_0xcbc6a5['children']['some'](_0x3d9186=>0x7&_0x3d9186['flags'])?0x1:0x0),this['markedForComposition']['add'](_0xcbc6a5);let _0x1013cf=ContentView['get'](_0x49660e);_0x1013cf&&_0x1013cf!=_0xcbc6a5&&(_0x1013cf['dom']=null),_0xcbc6a5['setDOM'](_0x49660e);},_0x400fe5=this['childPos'](_0x2542b8['range']['fromB'],0x1),_0x383dcb=this['children'][_0x400fe5['i']];_0x41d3a2(_0x2542b8['line'],_0x383dcb);for(let _0x53c9d=_0x2542b8['marks']['length']-0x1;_0x53c9d>=-0x1;_0x53c9d--)_0x400fe5=_0x383dcb['childPos'](_0x400fe5['off'],0x1),_0x383dcb=_0x383dcb['children'][_0x400fe5['i']],_0x41d3a2(_0x53c9d>=0x0?_0x2542b8['marks'][_0x53c9d]['node']:_0x2542b8['text'],_0x383dcb);}['updateSelection'](_0x13e0a8=!0x1,_0x2e64c6=!0x1){!_0x13e0a8&&this['view']['observer']['selectionRange']['focusNode']||this['view']['observer']['readSelectionRange']();let _0x21788b=this['view']['root']['activeElement'],_0x3fef47=_0x21788b==this['dom'],_0x2bcdd9=!_0x3fef47&&!(this['view']['state']['facet'](editable)||this['dom']['tabIndex']>-0x1)&&hasSelection(this['dom'],this['view']['observer']['selectionRange'])&&!(_0x21788b&&this['dom']['contains'](_0x21788b));if(!(_0x3fef47||_0x2e64c6||_0x2bcdd9))return;let _0x23369a=this['forceSelection'];this['forceSelection']=!0x1;let _0xaa9fb6=this['view']['state']['selection']['main'],_0x55ce4f=this['moveToLine'](this['domAtPos'](_0xaa9fb6['anchor'])),_0x5881bb=_0xaa9fb6['empty']?_0x55ce4f:this['moveToLine'](this['domAtPos'](_0xaa9fb6['head']));if(browser['gecko']&&_0xaa9fb6['empty']&&!this['hasComposition']&&betweenUneditable(_0x55ce4f)){let _0x3a3209=document['createTextNode']('');this['view']['observer']['ignore'](()=>_0x55ce4f['node']['insertBefore'](_0x3a3209,_0x55ce4f['node']['childNodes'][_0x55ce4f['offset']]||null)),_0x55ce4f=_0x5881bb=new DOMPos(_0x3a3209,0x0),_0x23369a=!0x0;}let _0x348abf=this['view']['observer']['selectionRange'];!_0x23369a&&_0x348abf['focusNode']&&(isEquivalentPosition(_0x55ce4f['node'],_0x55ce4f['offset'],_0x348abf['anchorNode'],_0x348abf['anchorOffset'])&&isEquivalentPosition(_0x5881bb['node'],_0x5881bb['offset'],_0x348abf['focusNode'],_0x348abf['focusOffset'])||this['suppressWidgetCursorChange'](_0x348abf,_0xaa9fb6))||(this['view']['observer']['ignore'](()=>{browser['android']&&browser['chrome']&&this['dom']['contains'](_0x348abf['focusNode'])&&inUneditable(_0x348abf['focusNode'],this['dom'])&&(this['dom']['blur'](),this['dom']['focus']({'preventScroll':!0x0}));let _0x1610c9=getSelection(this['view']['root']);if(_0x1610c9){if(_0xaa9fb6['empty']){if(browser['gecko']){let _0x20ebe7=nextToUneditable(_0x55ce4f['node'],_0x55ce4f['offset']);if(_0x20ebe7&&0x3!=_0x20ebe7){let _0x4ea8e5=(0x1==_0x20ebe7?textNodeBefore:textNodeAfter)(_0x55ce4f['node'],_0x55ce4f['offset']);_0x4ea8e5&&(_0x55ce4f=new DOMPos(_0x4ea8e5['node'],_0x4ea8e5['offset']));}}_0x1610c9['collapse'](_0x55ce4f['node'],_0x55ce4f['offset']),null!=_0xaa9fb6['bidiLevel']&&void 0x0!==_0x1610c9['caretBidiLevel']&&(_0x1610c9['caretBidiLevel']=_0xaa9fb6['bidiLevel']);}else{if(_0x1610c9['extend']){_0x1610c9['collapse'](_0x55ce4f['node'],_0x55ce4f['offset']);try{_0x1610c9['extend'](_0x5881bb['node'],_0x5881bb['offset']);}catch(_0x309145){}}else{let _0x4db75e=document['createRange']();_0xaa9fb6['anchor']>_0xaa9fb6['head']&&([_0x55ce4f,_0x5881bb]=[_0x5881bb,_0x55ce4f]),_0x4db75e['setEnd'](_0x5881bb['node'],_0x5881bb['offset']),_0x4db75e['setStart'](_0x55ce4f['node'],_0x55ce4f['offset']),_0x1610c9['removeAllRanges'](),_0x1610c9['addRange'](_0x4db75e);}}}else;_0x2bcdd9&&this['view']['root']['activeElement']==this['dom']&&(this['dom']['blur'](),_0x21788b&&_0x21788b['focus']());}),this['view']['observer']['setSelectionRange'](_0x55ce4f,_0x5881bb)),this['impreciseAnchor']=_0x55ce4f['precise']?null:new DOMPos(_0x348abf['anchorNode'],_0x348abf['anchorOffset']),this['impreciseHead']=_0x5881bb['precise']?null:new DOMPos(_0x348abf['focusNode'],_0x348abf['focusOffset']);}['suppressWidgetCursorChange'](_0x2cbc1e,_0x1687a4){return this['hasComposition']&&_0x1687a4['empty']&&isEquivalentPosition(_0x2cbc1e['focusNode'],_0x2cbc1e['focusOffset'],_0x2cbc1e['anchorNode'],_0x2cbc1e['anchorOffset'])&&this['posFromDOM'](_0x2cbc1e['focusNode'],_0x2cbc1e['focusOffset'])==_0x1687a4['head'];}['enforceCursorAssoc'](){if(this['hasComposition'])return;let {view:_0x4a92e5}=this,_0x2c3ab7=_0x4a92e5['state']['selection']['main'],_0x2b2a57=getSelection(_0x4a92e5['root']),{anchorNode:_0x53ac5e,anchorOffset:_0xa89594}=_0x4a92e5['observer']['selectionRange'];if(!(_0x2b2a57&&_0x2c3ab7['empty']&&_0x2c3ab7['assoc']&&_0x2b2a57['modify']))return;let _0x20e0d6=LineView['find'](this,_0x2c3ab7['head']);if(!_0x20e0d6)return;let _0x2a9e95=_0x20e0d6['posAtStart'];if(_0x2c3ab7['head']==_0x2a9e95||_0x2c3ab7['head']==_0x2a9e95+_0x20e0d6['length'])return;let _0x190b55=this['coordsAt'](_0x2c3ab7['head'],-0x1),_0x1d2629=this['coordsAt'](_0x2c3ab7['head'],0x1);if(!_0x190b55||!_0x1d2629||_0x190b55['bottom']>_0x1d2629['top'])return;let _0x1cfa39=this['domAtPos'](_0x2c3ab7['head']+_0x2c3ab7['assoc']);_0x2b2a57['collapse'](_0x1cfa39['node'],_0x1cfa39['offset']),_0x2b2a57['modify']('move',_0x2c3ab7['assoc']<0x0?'forward':'backward','lineboundary'),_0x4a92e5['observer']['readSelectionRange']();let _0x3903e0=_0x4a92e5['observer']['selectionRange'];_0x4a92e5['docView']['posFromDOM'](_0x3903e0['anchorNode'],_0x3903e0['anchorOffset'])!=_0x2c3ab7['from']&&_0x2b2a57['collapse'](_0x53ac5e,_0xa89594);}['moveToLine'](_0x19f931){let _0x2afd1b,_0x183d56=this['dom'];if(_0x19f931['node']!=_0x183d56)return _0x19f931;for(let _0x18dcac=_0x19f931['offset'];!_0x2afd1b&&_0x18dcac<_0x183d56['childNodes']['length'];_0x18dcac++){let _0x16b959=ContentView['get'](_0x183d56['childNodes'][_0x18dcac]);_0x16b959 instanceof LineView&&(_0x2afd1b=_0x16b959['domAtPos'](0x0));}for(let _0x45cde1=_0x19f931['offset']-0x1;!_0x2afd1b&&_0x45cde1>=0x0;_0x45cde1--){let _0xe12dba=ContentView['get'](_0x183d56['childNodes'][_0x45cde1]);_0xe12dba instanceof LineView&&(_0x2afd1b=_0xe12dba['domAtPos'](_0xe12dba['length']));}return _0x2afd1b?new DOMPos(_0x2afd1b['node'],_0x2afd1b['offset'],!0x0):_0x19f931;}['nearest'](_0x976994){for(let _0x510e9c=_0x976994;_0x510e9c;){let _0x54adb9=ContentView['get'](_0x510e9c);if(_0x54adb9&&_0x54adb9['rootView']==this)return _0x54adb9;_0x510e9c=_0x510e9c['parentNode'];}return null;}['posFromDOM'](_0x47c63a,_0x598821){let _0x5eb74e=this['nearest'](_0x47c63a);if(!_0x5eb74e)throw new RangeError('Trying\x20to\x20find\x20position\x20for\x20a\x20DOM\x20position\x20outside\x20of\x20the\x20document');return _0x5eb74e['localPosFromDOM'](_0x47c63a,_0x598821)+_0x5eb74e['posAtStart'];}['domAtPos'](_0xc4f7df){let {i:_0x2cacb4,off:_0x5509ce}=this['childCursor']()['findPos'](_0xc4f7df,-0x1);for(;_0x2cacb4<this['children']['length']-0x1;){let _0x2131cd=this['children'][_0x2cacb4];if(_0x5509ce<_0x2131cd['length']||_0x2131cd instanceof LineView)break;_0x2cacb4++,_0x5509ce=0x0;}return this['children'][_0x2cacb4]['domAtPos'](_0x5509ce);}['coordsAt'](_0x3d7e3c,_0x19a695){let _0x1910b0=null,_0x4997d8=0x0;for(let _0x4bb45d=this['length'],_0x125a9a=this['children']['length']-0x1;_0x125a9a>=0x0;_0x125a9a--){let _0x21546e=this['children'][_0x125a9a],_0x499b4e=_0x4bb45d-_0x21546e['breakAfter'],_0x3aa7fe=_0x499b4e-_0x21546e['length'];if(_0x499b4e<_0x3d7e3c)break;if(_0x3aa7fe<=_0x3d7e3c&&(_0x3aa7fe<_0x3d7e3c||_0x21546e['covers'](-0x1))&&(_0x499b4e>_0x3d7e3c||_0x21546e['covers'](0x1))&&(!_0x1910b0||_0x21546e instanceof LineView&&!(_0x1910b0 instanceof LineView&&_0x19a695>=0x0)))_0x1910b0=_0x21546e,_0x4997d8=_0x3aa7fe;else{if(_0x1910b0&&_0x3aa7fe==_0x3d7e3c&&_0x499b4e==_0x3d7e3c&&_0x21546e instanceof BlockWidgetView&&Math['abs'](_0x19a695)<0x2){if(_0x21546e['deco']['startSide']<0x0)break;_0x125a9a&&(_0x1910b0=null);}}_0x4bb45d=_0x3aa7fe;}return _0x1910b0?_0x1910b0['coordsAt'](_0x3d7e3c-_0x4997d8,_0x19a695):null;}['coordsForChar'](_0x18fd64){let {i:_0x3fcaf5,off:_0x3c56b8}=this['childPos'](_0x18fd64,0x1),_0x348725=this['children'][_0x3fcaf5];if(!(_0x348725 instanceof LineView))return null;for(;_0x348725['children']['length'];){let {i:_0x541bec,off:_0xafff32}=_0x348725['childPos'](_0x3c56b8,0x1);for(;;_0x541bec++){if(_0x541bec==_0x348725['children']['length'])return null;if((_0x348725=_0x348725['children'][_0x541bec])['length'])break;}_0x3c56b8=_0xafff32;}if(!(_0x348725 instanceof TextView))return null;let _0x56ebb9=findClusterBreak(_0x348725['text'],_0x3c56b8);if(_0x56ebb9==_0x3c56b8)return null;let _0x34ddcd=textRange(_0x348725['dom'],_0x3c56b8,_0x56ebb9)['getClientRects']();for(let _0x192763=0x0;_0x192763<_0x34ddcd['length'];_0x192763++){let _0x17a28e=_0x34ddcd[_0x192763];if(_0x192763==_0x34ddcd['length']-0x1||_0x17a28e['top']<_0x17a28e['bottom']&&_0x17a28e['left']<_0x17a28e['right'])return _0x17a28e;}return null;}['measureVisibleLineHeights'](_0x38b1fb){let _0x294129=[],{from:_0x5b6b06,to:_0x37d89a}=_0x38b1fb,_0x8053da=this['view']['contentDOM']['clientWidth'],_0x4de631=_0x8053da>Math['max'](this['view']['scrollDOM']['clientWidth'],this['minWidth'])+0x1,_0x463995=-0x1,_0x28e3cd=this['view']['textDirection']==Direction['LTR'];for(let _0x5ec154=0x0,_0x17c7b5=0x0;_0x17c7b5<this['children']['length'];_0x17c7b5++){let _0x3378da=this['children'][_0x17c7b5],_0x47a8d3=_0x5ec154+_0x3378da['length'];if(_0x47a8d3>_0x37d89a)break;if(_0x5ec154>=_0x5b6b06){let _0x1e8faa=_0x3378da['dom']['getBoundingClientRect']();if(_0x294129['push'](_0x1e8faa['height']),_0x4de631){let _0x8940d8=_0x3378da['dom']['lastChild'],_0x59e550=_0x8940d8?clientRectsFor(_0x8940d8):[];if(_0x59e550['length']){let _0x56bf50=_0x59e550[_0x59e550['length']-0x1],_0x22f484=_0x28e3cd?_0x56bf50['right']-_0x1e8faa['left']:_0x1e8faa['right']-_0x56bf50['left'];_0x22f484>_0x463995&&(_0x463995=_0x22f484,this['minWidth']=_0x8053da,this['minWidthFrom']=_0x5ec154,this['minWidthTo']=_0x47a8d3);}}}_0x5ec154=_0x47a8d3+_0x3378da['breakAfter'];}return _0x294129;}['textDirectionAt'](_0x511403){let {i:_0x5ef03b}=this['childPos'](_0x511403,0x1);return'rtl'==getComputedStyle(this['children'][_0x5ef03b]['dom'])['direction']?Direction['RTL']:Direction['LTR'];}['measureTextSize'](){for(let _0x43b31b of this['children'])if(_0x43b31b instanceof LineView){let _0x605207=_0x43b31b['measureTextSize']();if(_0x605207)return _0x605207;}let _0x375691,_0x3131b1,_0x1cba5b,_0xaf0094=document['createElement']('div');return _0xaf0094['className']='cm-line',_0xaf0094['style']['width']='99999px',_0xaf0094['style']['position']='absolute',_0xaf0094['textContent']='abc\x20def\x20ghi\x20jkl\x20mno\x20pqr\x20stu',this['view']['observer']['ignore'](()=>{this['dom']['appendChild'](_0xaf0094);let _0x91e33c=clientRectsFor(_0xaf0094['firstChild'])[0x0];_0x375691=_0xaf0094['getBoundingClientRect']()['height'],_0x3131b1=_0x91e33c?_0x91e33c['width']/0x1b:0x7,_0x1cba5b=_0x91e33c?_0x91e33c['height']:_0x375691,_0xaf0094['remove']();}),{'lineHeight':_0x375691,'charWidth':_0x3131b1,'textHeight':_0x1cba5b};}['childCursor'](_0xfdf754=this['length']){let _0x42fa86=this['children']['length'];return _0x42fa86&&(_0xfdf754-=this['children'][--_0x42fa86]['length']),new ChildCursor(this['children'],_0xfdf754,_0x42fa86);}['computeBlockGapDeco'](){let _0x4c2e62=[],_0x227c70=this['view']['viewState'];for(let _0xb3d70a=0x0,_0x7191bf=0x0;;_0x7191bf++){let _0x52158c=_0x7191bf==_0x227c70['viewports']['length']?null:_0x227c70['viewports'][_0x7191bf],_0x334c83=_0x52158c?_0x52158c['from']-0x1:this['length'];if(_0x334c83>_0xb3d70a){let _0x38b77d=(_0x227c70['lineBlockAt'](_0x334c83)['bottom']-_0x227c70['lineBlockAt'](_0xb3d70a)['top'])/this['view']['scaleY'];_0x4c2e62['push'](Decoration['replace']({'widget':new BlockGapWidget(_0x38b77d),'block':!0x0,'inclusive':!0x0,'isBlockGap':!0x0})['range'](_0xb3d70a,_0x334c83));}if(!_0x52158c)break;_0xb3d70a=_0x52158c['to']+0x1;}return Decoration['set'](_0x4c2e62);}['updateDeco'](){let _0x5de205=0x1,_0x2f1bf8=this['view']['state']['facet'](decorations)['map'](_0x31cf28=>(this['dynamicDecorationMap'][_0x5de205++]='function'==typeof _0x31cf28)?_0x31cf28(this['view']):_0x31cf28),_0x137197=!0x1,_0x222746=this['view']['state']['facet'](outerDecorations)['map']((_0x56c2fb,_0xfa47e2)=>{let _0xc1f999='function'==typeof _0x56c2fb;return _0xc1f999&&(_0x137197=!0x0),_0xc1f999?_0x56c2fb(this['view']):_0x56c2fb;});for(_0x222746['length']&&(this['dynamicDecorationMap'][_0x5de205++]=_0x137197,_0x2f1bf8['push'](RangeSet['join'](_0x222746))),this['decorations']=[this['editContextFormatting'],..._0x2f1bf8,this['computeBlockGapDeco'](),this['view']['viewState']['lineGapDeco']];_0x5de205<this['decorations']['length'];)this['dynamicDecorationMap'][_0x5de205++]=!0x1;return this['decorations'];}['scrollIntoView'](_0x2b63c4){if(_0x2b63c4['isSnapshot']){let _0x247145=this['view']['viewState']['lineBlockAt'](_0x2b63c4['range']['head']);return this['view']['scrollDOM']['scrollTop']=_0x247145['top']-_0x2b63c4['yMargin'],void(this['view']['scrollDOM']['scrollLeft']=_0x2b63c4['xMargin']);}for(let _0x3edd31 of this['view']['state']['facet'](scrollHandler))try{if(_0x3edd31(this['view'],_0x2b63c4['range'],_0x2b63c4))return!0x0;}catch(_0x2b98dd){logException(this['view']['state'],_0x2b98dd,'scroll\x20handler');}let _0x2cb41e,{range:_0x2b485b}=_0x2b63c4,_0x4f8ba4=this['coordsAt'](_0x2b485b['head'],_0x2b485b['empty']?_0x2b485b['assoc']:_0x2b485b['head']>_0x2b485b['anchor']?-0x1:0x1);if(!_0x4f8ba4)return;!_0x2b485b['empty']&&(_0x2cb41e=this['coordsAt'](_0x2b485b['anchor'],_0x2b485b['anchor']>_0x2b485b['head']?-0x1:0x1))&&(_0x4f8ba4={'left':Math['min'](_0x4f8ba4['left'],_0x2cb41e['left']),'top':Math['min'](_0x4f8ba4['top'],_0x2cb41e['top']),'right':Math['max'](_0x4f8ba4['right'],_0x2cb41e['right']),'bottom':Math['max'](_0x4f8ba4['bottom'],_0x2cb41e['bottom'])});let _0x40ea6d=getScrollMargins(this['view']),_0x5956f5={'left':_0x4f8ba4['left']-_0x40ea6d['left'],'top':_0x4f8ba4['top']-_0x40ea6d['top'],'right':_0x4f8ba4['right']+_0x40ea6d['right'],'bottom':_0x4f8ba4['bottom']+_0x40ea6d['bottom']},{offsetWidth:_0x374eea,offsetHeight:_0x5352a2}=this['view']['scrollDOM'];scrollRectIntoView(this['view']['scrollDOM'],_0x5956f5,_0x2b485b['head']<_0x2b485b['anchor']?-0x1:0x1,_0x2b63c4['x'],_0x2b63c4['y'],Math['max'](Math['min'](_0x2b63c4['xMargin'],_0x374eea),-_0x374eea),Math['max'](Math['min'](_0x2b63c4['yMargin'],_0x5352a2),-_0x5352a2),this['view']['textDirection']==Direction['LTR']);}}function betweenUneditable(_0x1aeb8d){return 0x1==_0x1aeb8d['node']['nodeType']&&_0x1aeb8d['node']['firstChild']&&(0x0==_0x1aeb8d['offset']||'false'==_0x1aeb8d['node']['childNodes'][_0x1aeb8d['offset']-0x1]['contentEditable'])&&(_0x1aeb8d['offset']==_0x1aeb8d['node']['childNodes']['length']||'false'==_0x1aeb8d['node']['childNodes'][_0x1aeb8d['offset']]['contentEditable']);}function findCompositionNode(_0x237086,_0x538932){let _0x42939c=_0x237086['observer']['selectionRange'];if(!_0x42939c['focusNode'])return null;let _0x14a3e0=textNodeBefore(_0x42939c['focusNode'],_0x42939c['focusOffset']),_0x4ea592=textNodeAfter(_0x42939c['focusNode'],_0x42939c['focusOffset']),_0x264d04=_0x14a3e0||_0x4ea592;if(_0x4ea592&&_0x14a3e0&&_0x4ea592['node']!=_0x14a3e0['node']){let _0x5c2dbe=ContentView['get'](_0x4ea592['node']);if(!_0x5c2dbe||_0x5c2dbe instanceof TextView&&_0x5c2dbe['text']!=_0x4ea592['node']['nodeValue'])_0x264d04=_0x4ea592;else{if(_0x237086['docView']['lastCompositionAfterCursor']){let _0x21e1aa=ContentView['get'](_0x14a3e0['node']);!_0x21e1aa||_0x21e1aa instanceof TextView&&_0x21e1aa['text']!=_0x14a3e0['node']['nodeValue']||(_0x264d04=_0x4ea592);}}}if(_0x237086['docView']['lastCompositionAfterCursor']=_0x264d04!=_0x14a3e0,!_0x264d04)return null;let _0xb2bff8=_0x538932-_0x264d04['offset'];return{'from':_0xb2bff8,'to':_0xb2bff8+_0x264d04['node']['nodeValue']['length'],'node':_0x264d04['node']};}function findCompositionRange(_0x3b96a9,_0x3dcfc4,_0x2568c9){let _0x486255=findCompositionNode(_0x3b96a9,_0x2568c9);if(!_0x486255)return null;let {node:_0x1fb6ea,from:_0x55e4f9,to:_0x3e1455}=_0x486255,_0x54451e=_0x1fb6ea['nodeValue'];if(/[\n\r]/['test'](_0x54451e))return null;if(_0x3b96a9['state']['doc']['sliceString'](_0x486255['from'],_0x486255['to'])!=_0x54451e)return null;let _0x594abe=_0x3dcfc4['invertedDesc'],_0x46ef36=new ChangedRange(_0x594abe['mapPos'](_0x55e4f9),_0x594abe['mapPos'](_0x3e1455),_0x55e4f9,_0x3e1455),_0x52e85a=[];for(let _0x3d60e7=_0x1fb6ea['parentNode'];;_0x3d60e7=_0x3d60e7['parentNode']){let _0x55554a=ContentView['get'](_0x3d60e7);if(_0x55554a instanceof MarkView)_0x52e85a['push']({'node':_0x3d60e7,'deco':_0x55554a['mark']});else{if(_0x55554a instanceof LineView||'DIV'==_0x3d60e7['nodeName']&&_0x3d60e7['parentNode']==_0x3b96a9['contentDOM'])return{'range':_0x46ef36,'text':_0x1fb6ea,'marks':_0x52e85a,'line':_0x3d60e7};if(_0x3d60e7==_0x3b96a9['contentDOM'])return null;_0x52e85a['push']({'node':_0x3d60e7,'deco':new MarkDecoration({'inclusive':!0x0,'attributes':getAttrs$1(_0x3d60e7),'tagName':_0x3d60e7['tagName']['toLowerCase']()})});}}}function nextToUneditable(_0x4820d6,_0x6c6d3){return 0x1!=_0x4820d6['nodeType']?0x0:(_0x6c6d3&&'false'==_0x4820d6['childNodes'][_0x6c6d3-0x1]['contentEditable']?0x1:0x0)|(_0x6c6d3<_0x4820d6['childNodes']['length']&&'false'==_0x4820d6['childNodes'][_0x6c6d3]['contentEditable']?0x2:0x0);}let DecorationComparator$1=class{constructor(){this['changes']=[];}['compareRange'](_0x24bd22,_0x3a2626){addRange(_0x24bd22,_0x3a2626,this['changes']);}['comparePoint'](_0x52d233,_0x3a8670){addRange(_0x52d233,_0x3a8670,this['changes']);}['boundChange'](_0x20eb78){addRange(_0x20eb78,_0x20eb78,this['changes']);}};function findChangedDeco(_0x41f495,_0x527c72,_0x468136){let _0x1b4a20=new DecorationComparator$1();return RangeSet['compare'](_0x41f495,_0x527c72,_0x468136,_0x1b4a20),_0x1b4a20['changes'];}function inUneditable(_0x8b8376,_0x50b81d){for(let _0x3f6555=_0x8b8376;_0x3f6555&&_0x3f6555!=_0x50b81d;_0x3f6555=_0x3f6555['assignedSlot']||_0x3f6555['parentNode'])if(0x1==_0x3f6555['nodeType']&&'false'==_0x3f6555['contentEditable'])return!0x0;return!0x1;}function touchesComposition(_0x20e80b,_0x48ccce){let _0x4d80aa=!0x1;return _0x48ccce&&_0x20e80b['iterChangedRanges']((_0x6eaa13,_0x465827)=>{_0x6eaa13<_0x48ccce['to']&&_0x465827>_0x48ccce['from']&&(_0x4d80aa=!0x0);}),_0x4d80aa;}function groupAt(_0xf1bd65,_0x3264f6,_0x3c7e76=0x1){let _0x243491=_0xf1bd65['charCategorizer'](_0x3264f6),_0x38df31=_0xf1bd65['doc']['lineAt'](_0x3264f6),_0x3448b9=_0x3264f6-_0x38df31['from'];if(0x0==_0x38df31['length'])return EditorSelection['cursor'](_0x3264f6);0x0==_0x3448b9?_0x3c7e76=0x1:_0x3448b9==_0x38df31['length']&&(_0x3c7e76=-0x1);let _0x2b6108=_0x3448b9,_0x27b911=_0x3448b9;_0x3c7e76<0x0?_0x2b6108=findClusterBreak(_0x38df31['text'],_0x3448b9,!0x1):_0x27b911=findClusterBreak(_0x38df31['text'],_0x3448b9);let _0x5cf889=_0x243491(_0x38df31['text']['slice'](_0x2b6108,_0x27b911));for(;_0x2b6108>0x0;){let _0x2aab92=findClusterBreak(_0x38df31['text'],_0x2b6108,!0x1);if(_0x243491(_0x38df31['text']['slice'](_0x2aab92,_0x2b6108))!=_0x5cf889)break;_0x2b6108=_0x2aab92;}for(;_0x27b911<_0x38df31['length'];){let _0x1b2014=findClusterBreak(_0x38df31['text'],_0x27b911);if(_0x243491(_0x38df31['text']['slice'](_0x27b911,_0x1b2014))!=_0x5cf889)break;_0x27b911=_0x1b2014;}return EditorSelection['range'](_0x2b6108+_0x38df31['from'],_0x27b911+_0x38df31['from']);}function getdx(_0x5b46ba,_0x268e8b){return _0x268e8b['left']>_0x5b46ba?_0x268e8b['left']-_0x5b46ba:Math['max'](0x0,_0x5b46ba-_0x268e8b['right']);}function getdy(_0x36920b,_0x423ed7){return _0x423ed7['top']>_0x36920b?_0x423ed7['top']-_0x36920b:Math['max'](0x0,_0x36920b-_0x423ed7['bottom']);}function yOverlap(_0x24bc45,_0x5a9425){return _0x24bc45['top']<_0x5a9425['bottom']-0x1&&_0x24bc45['bottom']>_0x5a9425['top']+0x1;}function upTop(_0x515d55,_0x5373e8){return _0x5373e8<_0x515d55['top']?{'top':_0x5373e8,'left':_0x515d55['left'],'right':_0x515d55['right'],'bottom':_0x515d55['bottom']}:_0x515d55;}function upBot(_0x1685c8,_0x3412f1){return _0x3412f1>_0x1685c8['bottom']?{'top':_0x1685c8['top'],'left':_0x1685c8['left'],'right':_0x1685c8['right'],'bottom':_0x3412f1}:_0x1685c8;}function domPosAtCoords(_0xcb490a,_0x2137c1,_0x37aaf2){let _0x16fb66,_0xcdcb8c,_0x30e50d,_0xbae055,_0x14cfe2,_0x3f2ba7,_0x43effe,_0x49746f,_0x3455ae=!0x1;for(let _0x502334=_0xcb490a['firstChild'];_0x502334;_0x502334=_0x502334['nextSibling']){let _0x9e65d=clientRectsFor(_0x502334);for(let _0x5c3691=0x0;_0x5c3691<_0x9e65d['length'];_0x5c3691++){let _0x7bfcde=_0x9e65d[_0x5c3691];_0xcdcb8c&&yOverlap(_0xcdcb8c,_0x7bfcde)&&(_0x7bfcde=upTop(upBot(_0x7bfcde,_0xcdcb8c['bottom']),_0xcdcb8c['top']));let _0x336658=getdx(_0x2137c1,_0x7bfcde),_0x2ae92c=getdy(_0x37aaf2,_0x7bfcde);if(0x0==_0x336658&&0x0==_0x2ae92c)return 0x3==_0x502334['nodeType']?domPosInText(_0x502334,_0x2137c1,_0x37aaf2):domPosAtCoords(_0x502334,_0x2137c1,_0x37aaf2);(!_0x16fb66||_0xbae055>_0x2ae92c||_0xbae055==_0x2ae92c&&_0x30e50d>_0x336658)&&(_0x16fb66=_0x502334,_0xcdcb8c=_0x7bfcde,_0x30e50d=_0x336658,_0xbae055=_0x2ae92c,_0x3455ae=!_0x336658||(_0x2137c1<_0x7bfcde['left']?_0x5c3691>0x0:_0x5c3691<_0x9e65d['length']-0x1)),0x0==_0x336658?_0x37aaf2>_0x7bfcde['bottom']&&(!_0x43effe||_0x43effe['bottom']<_0x7bfcde['bottom'])?(_0x14cfe2=_0x502334,_0x43effe=_0x7bfcde):_0x37aaf2<_0x7bfcde['top']&&(!_0x49746f||_0x49746f['top']>_0x7bfcde['top'])&&(_0x3f2ba7=_0x502334,_0x49746f=_0x7bfcde):_0x43effe&&yOverlap(_0x43effe,_0x7bfcde)?_0x43effe=upBot(_0x43effe,_0x7bfcde['bottom']):_0x49746f&&yOverlap(_0x49746f,_0x7bfcde)&&(_0x49746f=upTop(_0x49746f,_0x7bfcde['top']));}}if(_0x43effe&&_0x43effe['bottom']>=_0x37aaf2?(_0x16fb66=_0x14cfe2,_0xcdcb8c=_0x43effe):_0x49746f&&_0x49746f['top']<=_0x37aaf2&&(_0x16fb66=_0x3f2ba7,_0xcdcb8c=_0x49746f),!_0x16fb66)return{'node':_0xcb490a,'offset':0x0};let _0x2cfbce=Math['max'](_0xcdcb8c['left'],Math['min'](_0xcdcb8c['right'],_0x2137c1));return 0x3==_0x16fb66['nodeType']?domPosInText(_0x16fb66,_0x2cfbce,_0x37aaf2):_0x3455ae&&'false'!=_0x16fb66['contentEditable']?domPosAtCoords(_0x16fb66,_0x2cfbce,_0x37aaf2):{'node':_0xcb490a,'offset':Array['prototype']['indexOf']['call'](_0xcb490a['childNodes'],_0x16fb66)+(_0x2137c1>=(_0xcdcb8c['left']+_0xcdcb8c['right'])/0x2?0x1:0x0)};}function domPosInText(_0x509fa4,_0x4d9286,_0x2515a3){let _0x86cced=_0x509fa4['nodeValue']['length'],_0x55c387=-0x1,_0x598f06=0x3b9aca00,_0xefa0e7=0x0;for(let _0xe7f566=0x0;_0xe7f566<_0x86cced;_0xe7f566++){let _0x4ecb88=textRange(_0x509fa4,_0xe7f566,_0xe7f566+0x1)['getClientRects']();for(let _0x367b3a=0x0;_0x367b3a<_0x4ecb88['length'];_0x367b3a++){let _0x5e0bee=_0x4ecb88[_0x367b3a];if(_0x5e0bee['top']==_0x5e0bee['bottom'])continue;_0xefa0e7||(_0xefa0e7=_0x4d9286-_0x5e0bee['left']);let _0x492e16=(_0x5e0bee['top']>_0x2515a3?_0x5e0bee['top']-_0x2515a3:_0x2515a3-_0x5e0bee['bottom'])-0x1;if(_0x5e0bee['left']-0x1<=_0x4d9286&&_0x5e0bee['right']+0x1>=_0x4d9286&&_0x492e16<_0x598f06){let _0x1018a7=_0x4d9286>=(_0x5e0bee['left']+_0x5e0bee['right'])/0x2,_0x3837be=_0x1018a7;(browser['chrome']||browser['gecko'])&&(textRange(_0x509fa4,_0xe7f566)['getBoundingClientRect']()['left']==_0x5e0bee['right']&&(_0x3837be=!_0x1018a7));if(_0x492e16<=0x0)return{'node':_0x509fa4,'offset':_0xe7f566+(_0x3837be?0x1:0x0)};_0x55c387=_0xe7f566+(_0x3837be?0x1:0x0),_0x598f06=_0x492e16;}}}return{'node':_0x509fa4,'offset':_0x55c387>-0x1?_0x55c387:_0xefa0e7>0x0?_0x509fa4['nodeValue']['length']:0x0};}function posAtCoords(_0xe786a1,_0x37f3fc,_0x301038,_0x4edada=-0x1){var _0x397661,_0x187b71;let _0xf0117e,_0x1cf09a=_0xe786a1['contentDOM']['getBoundingClientRect'](),_0x30a160=_0x1cf09a['top']+_0xe786a1['viewState']['paddingTop'],{docHeight:_0x1e0688}=_0xe786a1['viewState'],{x:_0x3879bd,y:_0x580a02}=_0x37f3fc,_0x2dcbe6=_0x580a02-_0x30a160;if(_0x2dcbe6<0x0)return 0x0;if(_0x2dcbe6>_0x1e0688)return _0xe786a1['state']['doc']['length'];for(let _0x5efd33=_0xe786a1['viewState']['heightOracle']['textHeight']/0x2,_0x164043=!0x1;_0xf0117e=_0xe786a1['elementAtHeight'](_0x2dcbe6),_0xf0117e['type']!=BlockType['Text'];)for(;_0x2dcbe6=_0x4edada>0x0?_0xf0117e['bottom']+_0x5efd33:_0xf0117e['top']-_0x5efd33,!(_0x2dcbe6>=0x0&&_0x2dcbe6<=_0x1e0688);){if(_0x164043)return _0x301038?null:0x0;_0x164043=!0x0,_0x4edada=-_0x4edada;}_0x580a02=_0x30a160+_0x2dcbe6;let _0x1b8045=_0xf0117e['from'];if(_0x1b8045<_0xe786a1['viewport']['from'])return 0x0==_0xe786a1['viewport']['from']?0x0:_0x301038?null:posAtCoordsImprecise(_0xe786a1,_0x1cf09a,_0xf0117e,_0x3879bd,_0x580a02);if(_0x1b8045>_0xe786a1['viewport']['to'])return _0xe786a1['viewport']['to']==_0xe786a1['state']['doc']['length']?_0xe786a1['state']['doc']['length']:_0x301038?null:posAtCoordsImprecise(_0xe786a1,_0x1cf09a,_0xf0117e,_0x3879bd,_0x580a02);let _0x17aedb=_0xe786a1['dom']['ownerDocument'],_0x2595e4=_0xe786a1['root']['elementFromPoint']?_0xe786a1['root']:_0x17aedb,_0x745538=_0x2595e4['elementFromPoint'](_0x3879bd,_0x580a02);_0x745538&&!_0xe786a1['contentDOM']['contains'](_0x745538)&&(_0x745538=null),_0x745538||(_0x3879bd=Math['max'](_0x1cf09a['left']+0x1,Math['min'](_0x1cf09a['right']-0x1,_0x3879bd)),_0x745538=_0x2595e4['elementFromPoint'](_0x3879bd,_0x580a02),_0x745538&&!_0xe786a1['contentDOM']['contains'](_0x745538)&&(_0x745538=null));let _0x3c0973,_0x364b1f=-0x1;if(_0x745538&&0x0!=(null===(_0x397661=_0xe786a1['docView']['nearest'](_0x745538))||void 0x0===_0x397661?void 0x0:_0x397661['isEditable'])){if(_0x17aedb['caretPositionFromPoint']){let _0x1c73c1=_0x17aedb['caretPositionFromPoint'](_0x3879bd,_0x580a02);_0x1c73c1&&({offsetNode:_0x3c0973,offset:_0x364b1f}=_0x1c73c1);}else{if(_0x17aedb['caretRangeFromPoint']){let _0xa525b1=_0x17aedb['caretRangeFromPoint'](_0x3879bd,_0x580a02);_0xa525b1&&({startContainer:_0x3c0973,startOffset:_0x364b1f}=_0xa525b1);}}_0x3c0973&&(!_0xe786a1['contentDOM']['contains'](_0x3c0973)||browser['safari']&&isSuspiciousSafariCaretResult(_0x3c0973,_0x364b1f,_0x3879bd)||browser['chrome']&&isSuspiciousChromeCaretResult(_0x3c0973,_0x364b1f,_0x3879bd))&&(_0x3c0973=void 0x0),_0x3c0973&&(_0x364b1f=Math['min'](maxOffset(_0x3c0973),_0x364b1f));}if(!_0x3c0973||!_0xe786a1['docView']['dom']['contains'](_0x3c0973)){let _0x10d997=LineView['find'](_0xe786a1['docView'],_0x1b8045);if(!_0x10d997)return _0x2dcbe6>_0xf0117e['top']+_0xf0117e['height']/0x2?_0xf0117e['to']:_0xf0117e['from'];({node:_0x3c0973,offset:_0x364b1f}=domPosAtCoords(_0x10d997['dom'],_0x3879bd,_0x580a02));}let _0x59545e=_0xe786a1['docView']['nearest'](_0x3c0973);if(!_0x59545e)return null;if(_0x59545e['isWidget']&&0x1==(null===(_0x187b71=_0x59545e['dom'])||void 0x0===_0x187b71?void 0x0:_0x187b71['nodeType'])){let _0x308205=_0x59545e['dom']['getBoundingClientRect']();return _0x37f3fc['y']<_0x308205['top']||_0x37f3fc['y']<=_0x308205['bottom']&&_0x37f3fc['x']<=(_0x308205['left']+_0x308205['right'])/0x2?_0x59545e['posAtStart']:_0x59545e['posAtEnd'];}return _0x59545e['localPosFromDOM'](_0x3c0973,_0x364b1f)+_0x59545e['posAtStart'];}function posAtCoordsImprecise(_0x3e50f8,_0x21cf9d,_0x42d66f,_0x54e3b4,_0x4d5d41){let _0xa47942=Math['round']((_0x54e3b4-_0x21cf9d['left'])*_0x3e50f8['defaultCharacterWidth']);if(_0x3e50f8['lineWrapping']&&_0x42d66f['height']>1.5*_0x3e50f8['defaultLineHeight']){let _0x8a18b2=_0x3e50f8['viewState']['heightOracle']['textHeight'];_0xa47942+=Math['floor']((_0x4d5d41-_0x42d66f['top']-0.5*(_0x3e50f8['defaultLineHeight']-_0x8a18b2))/_0x8a18b2)*_0x3e50f8['viewState']['heightOracle']['lineLength'];}let _0x10fb19=_0x3e50f8['state']['sliceDoc'](_0x42d66f['from'],_0x42d66f['to']);return _0x42d66f['from']+findColumn(_0x10fb19,_0xa47942,_0x3e50f8['state']['tabSize']);}function isEndOfLineBefore(_0x2c51f9,_0x59aa0f,_0xb6a0a3){let _0x1acc2f,_0x52ab19=_0x2c51f9;if(0x3!=_0x2c51f9['nodeType']||_0x59aa0f!=(_0x1acc2f=_0x2c51f9['nodeValue']['length']))return!0x1;for(;;){let _0x2c74bd=_0x52ab19['nextSibling'];if(_0x2c74bd){if('BR'==_0x2c74bd['nodeName'])break;return!0x1;}{let _0x106196=_0x52ab19['parentNode'];if(!_0x106196||'DIV'==_0x106196['nodeName'])break;_0x52ab19=_0x106196;}}return textRange(_0x2c51f9,_0x1acc2f-0x1,_0x1acc2f)['getBoundingClientRect']()['right']>_0xb6a0a3;}function isSuspiciousSafariCaretResult(_0x3ee43e,_0x4f650b,_0x5ea39d){return isEndOfLineBefore(_0x3ee43e,_0x4f650b,_0x5ea39d);}function isSuspiciousChromeCaretResult(_0x3059f9,_0x41447d,_0x2d9bc8){if(0x0!=_0x41447d)return isEndOfLineBefore(_0x3059f9,_0x41447d,_0x2d9bc8);for(let _0x1f07f3=_0x3059f9;;){let _0x4fd410=_0x1f07f3['parentNode'];if(!_0x4fd410||0x1!=_0x4fd410['nodeType']||_0x4fd410['firstChild']!=_0x1f07f3)return!0x1;if(_0x4fd410['classList']['contains']('cm-line'))break;_0x1f07f3=_0x4fd410;}return _0x2d9bc8-(0x1==_0x3059f9['nodeType']?_0x3059f9['getBoundingClientRect']():textRange(_0x3059f9,0x0,Math['max'](_0x3059f9['nodeValue']['length'],0x1))['getBoundingClientRect']())['left']>0x5;}function blockAt(_0x2fcd35,_0x3e1154,_0x3f3a5c){let _0x39a9dd=_0x2fcd35['lineBlockAt'](_0x3e1154);if(Array['isArray'](_0x39a9dd['type'])){let _0x2eb2eb;for(let _0x3e334d of _0x39a9dd['type']){if(_0x3e334d['from']>_0x3e1154)break;if(!(_0x3e334d['to']<_0x3e1154)){if(_0x3e334d['from']<_0x3e1154&&_0x3e334d['to']>_0x3e1154)return _0x3e334d;_0x2eb2eb&&(_0x3e334d['type']!=BlockType['Text']||_0x2eb2eb['type']==_0x3e334d['type']&&!(_0x3f3a5c<0x0?_0x3e334d['from']<_0x3e1154:_0x3e334d['to']>_0x3e1154))||(_0x2eb2eb=_0x3e334d);}}return _0x2eb2eb||_0x39a9dd;}return _0x39a9dd;}function moveToLineBoundary(_0x498184,_0x1cc4e3,_0x43ba4a,_0x59ee66){let _0x12ca81=blockAt(_0x498184,_0x1cc4e3['head'],_0x1cc4e3['assoc']||-0x1),_0x3ac0a7=_0x59ee66&&_0x12ca81['type']==BlockType['Text']&&(_0x498184['lineWrapping']||_0x12ca81['widgetLineBreaks'])?_0x498184['coordsAtPos'](_0x1cc4e3['assoc']<0x0&&_0x1cc4e3['head']>_0x12ca81['from']?_0x1cc4e3['head']-0x1:_0x1cc4e3['head']):null;if(_0x3ac0a7){let _0x48b481=_0x498184['dom']['getBoundingClientRect'](),_0x5e83d3=_0x498184['textDirectionAt'](_0x12ca81['from']),_0x4cc828=_0x498184['posAtCoords']({'x':_0x43ba4a==(_0x5e83d3==Direction['LTR'])?_0x48b481['right']-0x1:_0x48b481['left']+0x1,'y':(_0x3ac0a7['top']+_0x3ac0a7['bottom'])/0x2});if(null!=_0x4cc828)return EditorSelection['cursor'](_0x4cc828,_0x43ba4a?-0x1:0x1);}return EditorSelection['cursor'](_0x43ba4a?_0x12ca81['to']:_0x12ca81['from'],_0x43ba4a?-0x1:0x1);}function moveByChar(_0x2eb905,_0x19356d,_0x3ca90c,_0x554b55){let _0x386ac2=_0x2eb905['state']['doc']['lineAt'](_0x19356d['head']),_0x3ac87a=_0x2eb905['bidiSpans'](_0x386ac2),_0x13ea1a=_0x2eb905['textDirectionAt'](_0x386ac2['from']);for(let _0xa9a7ed=_0x19356d,_0x4d170d=null;;){let _0x18c642=moveVisually(_0x386ac2,_0x3ac87a,_0x13ea1a,_0xa9a7ed,_0x3ca90c),_0x2712d0=movedOver;if(!_0x18c642){if(_0x386ac2['number']==(_0x3ca90c?_0x2eb905['state']['doc']['lines']:0x1))return _0xa9a7ed;_0x2712d0='\x0a',_0x386ac2=_0x2eb905['state']['doc']['line'](_0x386ac2['number']+(_0x3ca90c?0x1:-0x1)),_0x3ac87a=_0x2eb905['bidiSpans'](_0x386ac2),_0x18c642=_0x2eb905['visualLineSide'](_0x386ac2,!_0x3ca90c);}if(_0x4d170d){if(!_0x4d170d(_0x2712d0))return _0xa9a7ed;}else{if(!_0x554b55)return _0x18c642;_0x4d170d=_0x554b55(_0x2712d0);}_0xa9a7ed=_0x18c642;}}function byGroup(_0x49dd75,_0x473fdc,_0x1d7964){let _0x462b2c=_0x49dd75['state']['charCategorizer'](_0x473fdc),_0x3f701e=_0x462b2c(_0x1d7964);return _0x129ab9=>{let _0x332b6d=_0x462b2c(_0x129ab9);return _0x3f701e==CharCategory['Space']&&(_0x3f701e=_0x332b6d),_0x3f701e==_0x332b6d;};}function moveVertically(_0x1c8259,_0x50decb,_0x176338,_0x68d66b){let _0x99a5bc=_0x50decb['head'],_0x202cb9=_0x176338?0x1:-0x1;if(_0x99a5bc==(_0x176338?_0x1c8259['state']['doc']['length']:0x0))return EditorSelection['cursor'](_0x99a5bc,_0x50decb['assoc']);let _0x46fbf8,_0xd70cf7=_0x50decb['goalColumn'],_0xe3adae=_0x1c8259['contentDOM']['getBoundingClientRect'](),_0x5d208d=_0x1c8259['coordsAtPos'](_0x99a5bc,_0x50decb['assoc']||-0x1),_0x1c61b3=_0x1c8259['documentTop'];if(_0x5d208d)null==_0xd70cf7&&(_0xd70cf7=_0x5d208d['left']-_0xe3adae['left']),_0x46fbf8=_0x202cb9<0x0?_0x5d208d['top']:_0x5d208d['bottom'];else{let _0x2491d7=_0x1c8259['viewState']['lineBlockAt'](_0x99a5bc);null==_0xd70cf7&&(_0xd70cf7=Math['min'](_0xe3adae['right']-_0xe3adae['left'],_0x1c8259['defaultCharacterWidth']*(_0x99a5bc-_0x2491d7['from']))),_0x46fbf8=(_0x202cb9<0x0?_0x2491d7['top']:_0x2491d7['bottom'])+_0x1c61b3;}let _0x1e9651=_0xe3adae['left']+_0xd70cf7,_0x5031d6=null!=_0x68d66b?_0x68d66b:_0x1c8259['viewState']['heightOracle']['textHeight']>>0x1;for(let _0xe2e5bf=0x0;;_0xe2e5bf+=0xa){let _0x3de37c=_0x46fbf8+(_0x5031d6+_0xe2e5bf)*_0x202cb9,_0x1ca850=posAtCoords(_0x1c8259,{'x':_0x1e9651,'y':_0x3de37c},!0x1,_0x202cb9);if(_0x3de37c<_0xe3adae['top']||_0x3de37c>_0xe3adae['bottom']||(_0x202cb9<0x0?_0x1ca850<_0x99a5bc:_0x1ca850>_0x99a5bc)){let _0x2a975d=_0x1c8259['docView']['coordsForChar'](_0x1ca850),_0x13f780=!_0x2a975d||_0x3de37c<_0x2a975d['top']?-0x1:0x1;return EditorSelection['cursor'](_0x1ca850,_0x13f780,void 0x0,_0xd70cf7);}}}function skipAtomicRanges(_0x22d91b,_0x252c7e,_0x5810f4){for(;;){let _0x468a49=0x0;for(let _0x52a106 of _0x22d91b)_0x52a106['between'](_0x252c7e-0x1,_0x252c7e+0x1,(_0x36a558,_0x1cf646,_0x13aafa)=>{if(_0x252c7e>_0x36a558&&_0x252c7e<_0x1cf646){let _0x40be17=_0x468a49||_0x5810f4||(_0x252c7e-_0x36a558<_0x1cf646-_0x252c7e?-0x1:0x1);_0x252c7e=_0x40be17<0x0?_0x36a558:_0x1cf646,_0x468a49=_0x40be17;}});if(!_0x468a49)return _0x252c7e;}}function skipAtomsForSelection(_0x419ec0,_0x29d6d0){let _0x26e00b=null;for(let _0x36553e=0x0;_0x36553e<_0x29d6d0['ranges']['length'];_0x36553e++){let _0x17b7d3=_0x29d6d0['ranges'][_0x36553e],_0x6105a7=null;if(_0x17b7d3['empty']){let _0x362785=skipAtomicRanges(_0x419ec0,_0x17b7d3['from'],0x0);_0x362785!=_0x17b7d3['from']&&(_0x6105a7=EditorSelection['cursor'](_0x362785,-0x1));}else{let _0x364ca5=skipAtomicRanges(_0x419ec0,_0x17b7d3['from'],-0x1),_0x2e9b51=skipAtomicRanges(_0x419ec0,_0x17b7d3['to'],0x1);_0x364ca5==_0x17b7d3['from']&&_0x2e9b51==_0x17b7d3['to']||(_0x6105a7=EditorSelection['range'](_0x17b7d3['from']==_0x17b7d3['anchor']?_0x364ca5:_0x2e9b51,_0x17b7d3['from']==_0x17b7d3['head']?_0x364ca5:_0x2e9b51));}_0x6105a7&&(_0x26e00b||(_0x26e00b=_0x29d6d0['ranges']['slice']()),_0x26e00b[_0x36553e]=_0x6105a7);}return _0x26e00b?EditorSelection['create'](_0x26e00b,_0x29d6d0['mainIndex']):_0x29d6d0;}function skipAtoms(_0x5adcc5,_0x43d234,_0x3726d3){let _0x49f304=skipAtomicRanges(_0x5adcc5['state']['facet'](atomicRanges)['map'](_0x527d6e=>_0x527d6e(_0x5adcc5)),_0x3726d3['from'],_0x43d234['head']>_0x3726d3['from']?-0x1:0x1);return _0x49f304==_0x3726d3['from']?_0x3726d3:EditorSelection['cursor'](_0x49f304,_0x49f304<_0x3726d3['from']?0x1:-0x1);}const LineBreakPlaceholder='';class DOMReader{constructor(_0x6f07e2,_0x11ed06){this['points']=_0x6f07e2,this['text']='',this['lineSeparator']=_0x11ed06['facet'](EditorState['lineSeparator']);}['append'](_0x672452){this['text']+=_0x672452;}['lineBreak'](){this['text']+=LineBreakPlaceholder;}['readRange'](_0x13818b,_0x41f6e1){if(!_0x13818b)return this;let _0x24847f=_0x13818b['parentNode'];for(let _0x36cfe4=_0x13818b;;){this['findPointBefore'](_0x24847f,_0x36cfe4);let _0xd9748e=this['text']['length'];this['readNode'](_0x36cfe4);let _0x3733ac=_0x36cfe4['nextSibling'];if(_0x3733ac==_0x41f6e1)break;let _0x5e1021=ContentView['get'](_0x36cfe4),_0x4c076f=ContentView['get'](_0x3733ac);(_0x5e1021&&_0x4c076f?_0x5e1021['breakAfter']:(_0x5e1021?_0x5e1021['breakAfter']:isBlockElement(_0x36cfe4))||isBlockElement(_0x3733ac)&&('BR'!=_0x36cfe4['nodeName']||_0x36cfe4['cmIgnore'])&&this['text']['length']>_0xd9748e)&&!isEmptyToEnd(_0x3733ac,_0x41f6e1)&&this['lineBreak'](),_0x36cfe4=_0x3733ac;}return this['findPointBefore'](_0x24847f,_0x41f6e1),this;}['readTextNode'](_0xa45545){let _0x484c49=_0xa45545['nodeValue'];for(let _0x26af97 of this['points'])_0x26af97['node']==_0xa45545&&(_0x26af97['pos']=this['text']['length']+Math['min'](_0x26af97['offset'],_0x484c49['length']));for(let _0x5ba096=0x0,_0x5d9b2d=this['lineSeparator']?null:/\r\n?|\n/g;;){let _0x5e6a46,_0x5568ae=-0x1,_0x4793d8=0x1;if(this['lineSeparator']?(_0x5568ae=_0x484c49['indexOf'](this['lineSeparator'],_0x5ba096),_0x4793d8=this['lineSeparator']['length']):(_0x5e6a46=_0x5d9b2d['exec'](_0x484c49))&&(_0x5568ae=_0x5e6a46['index'],_0x4793d8=_0x5e6a46[0x0]['length']),this['append'](_0x484c49['slice'](_0x5ba096,_0x5568ae<0x0?_0x484c49['length']:_0x5568ae)),_0x5568ae<0x0)break;if(this['lineBreak'](),_0x4793d8>0x1){for(let _0x87cf63 of this['points'])_0x87cf63['node']==_0xa45545&&_0x87cf63['pos']>this['text']['length']&&(_0x87cf63['pos']-=_0x4793d8-0x1);}_0x5ba096=_0x5568ae+_0x4793d8;}}['readNode'](_0x15c972){if(_0x15c972['cmIgnore'])return;let _0x499b51=ContentView['get'](_0x15c972),_0x5672f1=_0x499b51&&_0x499b51['overrideDOMText'];if(null!=_0x5672f1){this['findPointInside'](_0x15c972,_0x5672f1['length']);for(let _0x72cd6d=_0x5672f1['iter']();!_0x72cd6d['next']()['done'];)_0x72cd6d['lineBreak']?this['lineBreak']():this['append'](_0x72cd6d['value']);}else 0x3==_0x15c972['nodeType']?this['readTextNode'](_0x15c972):'BR'==_0x15c972['nodeName']?_0x15c972['nextSibling']&&this['lineBreak']():0x1==_0x15c972['nodeType']&&this['readRange'](_0x15c972['firstChild'],null);}['findPointBefore'](_0x40e310,_0x107717){for(let _0x5b438c of this['points'])_0x5b438c['node']==_0x40e310&&_0x40e310['childNodes'][_0x5b438c['offset']]==_0x107717&&(_0x5b438c['pos']=this['text']['length']);}['findPointInside'](_0x4bff82,_0x49c7b5){for(let _0x51f2d1 of this['points'])(0x3==_0x4bff82['nodeType']?_0x51f2d1['node']==_0x4bff82:_0x4bff82['contains'](_0x51f2d1['node']))&&(_0x51f2d1['pos']=this['text']['length']+(isAtEnd(_0x4bff82,_0x51f2d1['node'],_0x51f2d1['offset'])?_0x49c7b5:0x0));}}function isAtEnd(_0x89507d,_0x202546,_0x2227f1){for(;;){if(!_0x202546||_0x2227f1<maxOffset(_0x202546))return!0x1;if(_0x202546==_0x89507d)return!0x0;_0x2227f1=domIndex(_0x202546)+0x1,_0x202546=_0x202546['parentNode'];}}function isEmptyToEnd(_0x3cf6a1,_0x4018f3){let _0x7293e8;for(;_0x3cf6a1!=_0x4018f3&&_0x3cf6a1;_0x3cf6a1=_0x3cf6a1['nextSibling']){let _0x2a276b=ContentView['get'](_0x3cf6a1);if(!(null==_0x2a276b?void 0x0:_0x2a276b['isWidget'])&&!_0x3cf6a1['cmIgnore'])return!0x1;_0x2a276b&&(_0x7293e8||(_0x7293e8=[]))['push'](_0x2a276b);}if(_0x7293e8)for(let _0x3f70be of _0x7293e8){let _0x3713b8=_0x3f70be['overrideDOMText'];if(null==_0x3713b8?void 0x0:_0x3713b8['length'])return!0x1;}return!0x0;}class DOMPoint{constructor(_0x533524,_0xc64930){this['node']=_0x533524,this['offset']=_0xc64930,this['pos']=-0x1;}}class DOMChange{constructor(_0x5d3d3c,_0x197894,_0x1c2fec,_0x3cbe1a){this['typeOver']=_0x3cbe1a,this['bounds']=null,this['text']='',this['domChanged']=_0x197894>-0x1;let {impreciseHead:_0x5180cb,impreciseAnchor:_0x3b89c7}=_0x5d3d3c['docView'];if(_0x5d3d3c['state']['readOnly']&&_0x197894>-0x1)this['newSel']=null;else{if(_0x197894>-0x1&&(this['bounds']=_0x5d3d3c['docView']['domBoundsAround'](_0x197894,_0x1c2fec,0x0))){let _0x3e0696=_0x5180cb||_0x3b89c7?[]:selectionPoints(_0x5d3d3c),_0x2b09c7=new DOMReader(_0x3e0696,_0x5d3d3c['state']);_0x2b09c7['readRange'](this['bounds']['startDOM'],this['bounds']['endDOM']),this['text']=_0x2b09c7['text'],this['newSel']=selectionFromPoints(_0x3e0696,this['bounds']['from']);}else{let _0x301d81=_0x5d3d3c['observer']['selectionRange'],_0x580257=_0x5180cb&&_0x5180cb['node']==_0x301d81['focusNode']&&_0x5180cb['offset']==_0x301d81['focusOffset']||!contains(_0x5d3d3c['contentDOM'],_0x301d81['focusNode'])?_0x5d3d3c['state']['selection']['main']['head']:_0x5d3d3c['docView']['posFromDOM'](_0x301d81['focusNode'],_0x301d81['focusOffset']),_0x309fe8=_0x3b89c7&&_0x3b89c7['node']==_0x301d81['anchorNode']&&_0x3b89c7['offset']==_0x301d81['anchorOffset']||!contains(_0x5d3d3c['contentDOM'],_0x301d81['anchorNode'])?_0x5d3d3c['state']['selection']['main']['anchor']:_0x5d3d3c['docView']['posFromDOM'](_0x301d81['anchorNode'],_0x301d81['anchorOffset']),_0x1538e7=_0x5d3d3c['viewport'];if((browser['ios']||browser['chrome'])&&_0x5d3d3c['state']['selection']['main']['empty']&&_0x580257!=_0x309fe8&&(_0x1538e7['from']>0x0||_0x1538e7['to']<_0x5d3d3c['state']['doc']['length'])){let _0x1a3bf7=Math['min'](_0x580257,_0x309fe8),_0x184a68=Math['max'](_0x580257,_0x309fe8),_0xe594c=_0x1538e7['from']-_0x1a3bf7,_0x5d3eb9=_0x1538e7['to']-_0x184a68;0x0!=_0xe594c&&0x1!=_0xe594c&&0x0!=_0x1a3bf7||0x0!=_0x5d3eb9&&-0x1!=_0x5d3eb9&&_0x184a68!=_0x5d3d3c['state']['doc']['length']||(_0x580257=0x0,_0x309fe8=_0x5d3d3c['state']['doc']['length']);}this['newSel']=EditorSelection['single'](_0x309fe8,_0x580257);}}}}function applyDOMChange(_0x5b216e,_0x27bc1e){let _0x4539bf,{newSel:_0x239253}=_0x27bc1e,_0x5aa760=_0x5b216e['state']['selection']['main'],_0x587788=_0x5b216e['inputState']['lastKeyTime']>Date['now']()-0x64?_0x5b216e['inputState']['lastKeyCode']:-0x1;if(_0x27bc1e['bounds']){let {from:_0x4e083c,to:_0x191d3f}=_0x27bc1e['bounds'],_0x57f31d=_0x5aa760['from'],_0x42c9e2=null;(0x8===_0x587788||browser['android']&&_0x27bc1e['text']['length']<_0x191d3f-_0x4e083c)&&(_0x57f31d=_0x5aa760['to'],_0x42c9e2='end');let _0x529072=findDiff(_0x5b216e['state']['doc']['sliceString'](_0x4e083c,_0x191d3f,LineBreakPlaceholder),_0x27bc1e['text'],_0x57f31d-_0x4e083c,_0x42c9e2);_0x529072&&(browser['chrome']&&0xd==_0x587788&&_0x529072['toB']==_0x529072['from']+0x2&&_0x27bc1e['text']['slice'](_0x529072['from'],_0x529072['toB'])==LineBreakPlaceholder+LineBreakPlaceholder&&_0x529072['toB']--,_0x4539bf={'from':_0x4e083c+_0x529072['from'],'to':_0x4e083c+_0x529072['toA'],'insert':Text['of'](_0x27bc1e['text']['slice'](_0x529072['from'],_0x529072['toB'])['split'](LineBreakPlaceholder))});}else _0x239253&&(!_0x5b216e['hasFocus']&&_0x5b216e['state']['facet'](editable)||_0x239253['main']['eq'](_0x5aa760))&&(_0x239253=null);if(!_0x4539bf&&!_0x239253)return!0x1;if(!_0x4539bf&&_0x27bc1e['typeOver']&&!_0x5aa760['empty']&&_0x239253&&_0x239253['main']['empty']?_0x4539bf={'from':_0x5aa760['from'],'to':_0x5aa760['to'],'insert':_0x5b216e['state']['doc']['slice'](_0x5aa760['from'],_0x5aa760['to'])}:(browser['mac']||browser['android'])&&_0x4539bf&&_0x4539bf['from']==_0x4539bf['to']&&_0x4539bf['from']==_0x5aa760['head']-0x1&&/^\. ?$/['test'](_0x4539bf['insert']['toString']())&&'off'==_0x5b216e['contentDOM']['getAttribute']('autocorrect')?(_0x239253&&0x2==_0x4539bf['insert']['length']&&(_0x239253=EditorSelection['single'](_0x239253['main']['anchor']-0x1,_0x239253['main']['head']-0x1)),_0x4539bf={'from':_0x4539bf['from'],'to':_0x4539bf['to'],'insert':Text['of']([_0x4539bf['insert']['toString']()['replace']('.','\x20')])}):_0x4539bf&&_0x4539bf['from']>=_0x5aa760['from']&&_0x4539bf['to']<=_0x5aa760['to']&&(_0x4539bf['from']!=_0x5aa760['from']||_0x4539bf['to']!=_0x5aa760['to'])&&_0x5aa760['to']-_0x5aa760['from']-(_0x4539bf['to']-_0x4539bf['from'])<=0x4?_0x4539bf={'from':_0x5aa760['from'],'to':_0x5aa760['to'],'insert':_0x5b216e['state']['doc']['slice'](_0x5aa760['from'],_0x4539bf['from'])['append'](_0x4539bf['insert'])['append'](_0x5b216e['state']['doc']['slice'](_0x4539bf['to'],_0x5aa760['to']))}:browser['chrome']&&_0x4539bf&&_0x4539bf['from']==_0x4539bf['to']&&_0x4539bf['from']==_0x5aa760['head']&&'\x0a\x20'==_0x4539bf['insert']['toString']()&&_0x5b216e['lineWrapping']&&(_0x239253&&(_0x239253=EditorSelection['single'](_0x239253['main']['anchor']-0x1,_0x239253['main']['head']-0x1)),_0x4539bf={'from':_0x5aa760['from'],'to':_0x5aa760['to'],'insert':Text['of'](['\x20'])}),_0x4539bf)return applyDOMChangeInner(_0x5b216e,_0x4539bf,_0x239253,_0x587788);if(_0x239253&&!_0x239253['main']['eq'](_0x5aa760)){let _0x3374a5=!0x1,_0x2f97fe='select';return _0x5b216e['inputState']['lastSelectionTime']>Date['now']()-0x32&&('select'==_0x5b216e['inputState']['lastSelectionOrigin']&&(_0x3374a5=!0x0),_0x2f97fe=_0x5b216e['inputState']['lastSelectionOrigin'],'select.pointer'==_0x2f97fe&&(_0x239253=skipAtomsForSelection(_0x5b216e['state']['facet'](atomicRanges)['map'](_0x78442f=>_0x78442f(_0x5b216e)),_0x239253))),_0x5b216e['dispatch']({'selection':_0x239253,'scrollIntoView':_0x3374a5,'userEvent':_0x2f97fe}),!0x0;}return!0x1;}function applyDOMChangeInner(_0x5dda2c,_0x4cff89,_0x580025,_0xd4ee5b=-0x1){if(browser['ios']&&_0x5dda2c['inputState']['flushIOSKey'](_0x4cff89))return!0x0;let _0x159f48=_0x5dda2c['state']['selection']['main'];if(browser['android']&&(_0x4cff89['to']==_0x159f48['to']&&(_0x4cff89['from']==_0x159f48['from']||_0x4cff89['from']==_0x159f48['from']-0x1&&'\x20'==_0x5dda2c['state']['sliceDoc'](_0x4cff89['from'],_0x159f48['from']))&&0x1==_0x4cff89['insert']['length']&&0x2==_0x4cff89['insert']['lines']&&dispatchKey(_0x5dda2c['contentDOM'],'Enter',0xd)||(_0x4cff89['from']==_0x159f48['from']-0x1&&_0x4cff89['to']==_0x159f48['to']&&0x0==_0x4cff89['insert']['length']||0x8==_0xd4ee5b&&_0x4cff89['insert']['length']<_0x4cff89['to']-_0x4cff89['from']&&_0x4cff89['to']>_0x159f48['head'])&&dispatchKey(_0x5dda2c['contentDOM'],'Backspace',0x8)||_0x4cff89['from']==_0x159f48['from']&&_0x4cff89['to']==_0x159f48['to']+0x1&&0x0==_0x4cff89['insert']['length']&&dispatchKey(_0x5dda2c['contentDOM'],'Delete',0x2e)))return!0x0;let _0x21b80c,_0x2e4c81=_0x4cff89['insert']['toString']();_0x5dda2c['inputState']['composing']>=0x0&&_0x5dda2c['inputState']['composing']++;let _0x41f8d8=()=>_0x21b80c||(_0x21b80c=applyDefaultInsert(_0x5dda2c,_0x4cff89,_0x580025));return _0x5dda2c['state']['facet'](inputHandler$1)['some'](_0x473423=>_0x473423(_0x5dda2c,_0x4cff89['from'],_0x4cff89['to'],_0x2e4c81,_0x41f8d8))||_0x5dda2c['dispatch'](_0x41f8d8()),!0x0;}function applyDefaultInsert(_0x49f020,_0x28bcf1,_0x2c8635){let _0x536f18,_0x57abd6=_0x49f020['state'],_0x4c321d=_0x57abd6['selection']['main'],_0x584f0b=-0x1;if(_0x28bcf1['from']==_0x28bcf1['to']&&_0x28bcf1['from']<_0x4c321d['from']||_0x28bcf1['from']>_0x4c321d['to']){let _0x50253c=_0x28bcf1['from']<_0x4c321d['from']?-0x1:0x1,_0x1a9aec=_0x50253c<0x0?_0x4c321d['from']:_0x4c321d['to'],_0x3fb814=skipAtomicRanges(_0x57abd6['facet'](atomicRanges)['map'](_0x583030=>_0x583030(_0x49f020)),_0x1a9aec,_0x50253c);_0x28bcf1['from']==_0x3fb814&&(_0x584f0b=_0x3fb814);}if(_0x584f0b>-0x1)_0x536f18={'changes':_0x28bcf1,'selection':EditorSelection['cursor'](_0x28bcf1['from']+_0x28bcf1['insert']['length'],-0x1)};else{if(_0x28bcf1['from']>=_0x4c321d['from']&&_0x28bcf1['to']<=_0x4c321d['to']&&_0x28bcf1['to']-_0x28bcf1['from']>=(_0x4c321d['to']-_0x4c321d['from'])/0x3&&(!_0x2c8635||_0x2c8635['main']['empty']&&_0x2c8635['main']['from']==_0x28bcf1['from']+_0x28bcf1['insert']['length'])&&_0x49f020['inputState']['composing']<0x0){let _0x4f91e2=_0x4c321d['from']<_0x28bcf1['from']?_0x57abd6['sliceDoc'](_0x4c321d['from'],_0x28bcf1['from']):'',_0xc8f2d6=_0x4c321d['to']>_0x28bcf1['to']?_0x57abd6['sliceDoc'](_0x28bcf1['to'],_0x4c321d['to']):'';_0x536f18=_0x57abd6['replaceSelection'](_0x49f020['state']['toText'](_0x4f91e2+_0x28bcf1['insert']['sliceString'](0x0,void 0x0,_0x49f020['state']['lineBreak'])+_0xc8f2d6));}else{let _0x2afc21=_0x57abd6['changes'](_0x28bcf1),_0x68ba9f=_0x2c8635&&_0x2c8635['main']['to']<=_0x2afc21['newLength']?_0x2c8635['main']:void 0x0;if(_0x57abd6['selection']['ranges']['length']>0x1&&_0x49f020['inputState']['composing']>=0x0&&_0x28bcf1['to']<=_0x4c321d['to']&&_0x28bcf1['to']>=_0x4c321d['to']-0xa){let _0x483390,_0x2793a7=_0x49f020['state']['sliceDoc'](_0x28bcf1['from'],_0x28bcf1['to']),_0x36bda2=_0x2c8635&&findCompositionNode(_0x49f020,_0x2c8635['main']['head']);if(_0x36bda2){let _0x23c547=_0x28bcf1['insert']['length']-(_0x28bcf1['to']-_0x28bcf1['from']);_0x483390={'from':_0x36bda2['from'],'to':_0x36bda2['to']-_0x23c547};}else _0x483390=_0x49f020['state']['doc']['lineAt'](_0x4c321d['head']);let _0x167b75=_0x4c321d['to']-_0x28bcf1['to'],_0x15306f=_0x4c321d['to']-_0x4c321d['from'];_0x536f18=_0x57abd6['changeByRange'](_0x7585d0=>{if(_0x7585d0['from']==_0x4c321d['from']&&_0x7585d0['to']==_0x4c321d['to'])return{'changes':_0x2afc21,'range':_0x68ba9f||_0x7585d0['map'](_0x2afc21)};let _0x2e48d8=_0x7585d0['to']-_0x167b75,_0x5361ed=_0x2e48d8-_0x2793a7['length'];if(_0x7585d0['to']-_0x7585d0['from']!=_0x15306f||_0x49f020['state']['sliceDoc'](_0x5361ed,_0x2e48d8)!=_0x2793a7||_0x7585d0['to']>=_0x483390['from']&&_0x7585d0['from']<=_0x483390['to'])return{'range':_0x7585d0};let _0x5830b8=_0x57abd6['changes']({'from':_0x5361ed,'to':_0x2e48d8,'insert':_0x28bcf1['insert']}),_0x475560=_0x7585d0['to']-_0x4c321d['to'];return{'changes':_0x5830b8,'range':_0x68ba9f?EditorSelection['range'](Math['max'](0x0,_0x68ba9f['anchor']+_0x475560),Math['max'](0x0,_0x68ba9f['head']+_0x475560)):_0x7585d0['map'](_0x5830b8)};});}else _0x536f18={'changes':_0x2afc21,'selection':_0x68ba9f&&_0x57abd6['selection']['replaceRange'](_0x68ba9f)};}}let _0x214514='input.type';return(_0x49f020['composing']||_0x49f020['inputState']['compositionPendingChange']&&_0x49f020['inputState']['compositionEndedAt']>Date['now']()-0x32)&&(_0x49f020['inputState']['compositionPendingChange']=!0x1,_0x214514+='.compose',_0x49f020['inputState']['compositionFirstChange']&&(_0x214514+='.start',_0x49f020['inputState']['compositionFirstChange']=!0x1)),_0x57abd6['update'](_0x536f18,{'userEvent':_0x214514,'scrollIntoView':!0x0});}function findDiff(_0x4c9b66,_0xf68efe,_0x1f03ea,_0x5e6b5e){let _0x1ff9b1=Math['min'](_0x4c9b66['length'],_0xf68efe['length']),_0x21ef26=0x0;for(;_0x21ef26<_0x1ff9b1&&_0x4c9b66['charCodeAt'](_0x21ef26)==_0xf68efe['charCodeAt'](_0x21ef26);)_0x21ef26++;if(_0x21ef26==_0x1ff9b1&&_0x4c9b66['length']==_0xf68efe['length'])return null;let _0x149af0=_0x4c9b66['length'],_0x49b654=_0xf68efe['length'];for(;_0x149af0>0x0&&_0x49b654>0x0&&_0x4c9b66['charCodeAt'](_0x149af0-0x1)==_0xf68efe['charCodeAt'](_0x49b654-0x1);)_0x149af0--,_0x49b654--;'end'==_0x5e6b5e&&(_0x1f03ea-=_0x149af0+Math['max'](0x0,_0x21ef26-Math['min'](_0x149af0,_0x49b654))-_0x21ef26);if(_0x149af0<_0x21ef26&&_0x4c9b66['length']<_0xf68efe['length'])_0x21ef26-=_0x1f03ea<=_0x21ef26&&_0x1f03ea>=_0x149af0?_0x21ef26-_0x1f03ea:0x0,_0x49b654=_0x21ef26+(_0x49b654-_0x149af0),_0x149af0=_0x21ef26;else _0x49b654<_0x21ef26&&(_0x21ef26-=_0x1f03ea<=_0x21ef26&&_0x1f03ea>=_0x49b654?_0x21ef26-_0x1f03ea:0x0,_0x149af0=_0x21ef26+(_0x149af0-_0x49b654),_0x49b654=_0x21ef26);return{'from':_0x21ef26,'toA':_0x149af0,'toB':_0x49b654};}function selectionPoints(_0x78d16f){let _0x5b24d2=[];if(_0x78d16f['root']['activeElement']!=_0x78d16f['contentDOM'])return _0x5b24d2;let {anchorNode:_0x513719,anchorOffset:_0x6211e8,focusNode:_0x326356,focusOffset:_0x311806}=_0x78d16f['observer']['selectionRange'];return _0x513719&&(_0x5b24d2['push'](new DOMPoint(_0x513719,_0x6211e8)),_0x326356==_0x513719&&_0x311806==_0x6211e8||_0x5b24d2['push'](new DOMPoint(_0x326356,_0x311806))),_0x5b24d2;}function selectionFromPoints(_0x1a96c5,_0x117796){if(0x0==_0x1a96c5['length'])return null;let _0x447e97=_0x1a96c5[0x0]['pos'],_0x4c05c9=0x2==_0x1a96c5['length']?_0x1a96c5[0x1]['pos']:_0x447e97;return _0x447e97>-0x1&&_0x4c05c9>-0x1?EditorSelection['single'](_0x447e97+_0x117796,_0x4c05c9+_0x117796):null;}class InputState{['setSelectionOrigin'](_0x201716){this['lastSelectionOrigin']=_0x201716,this['lastSelectionTime']=Date['now']();}constructor(_0x54077a){this['view']=_0x54077a,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']=_0x54077a['hasFocus'],browser['safari']&&_0x54077a['contentDOM']['addEventListener']('input',()=>null),browser['gecko']&&firefoxCopyCutHack(_0x54077a['contentDOM']['ownerDocument']);}['handleEvent'](_0x300cea){eventBelongsToEditor(this['view'],_0x300cea)&&!this['ignoreDuringComposition'](_0x300cea)&&('keydown'==_0x300cea['type']&&this['keydown'](_0x300cea)||(0x0!=this['view']['updateState']?Promise['resolve']()['then'](()=>this['runHandlers'](_0x300cea['type'],_0x300cea)):this['runHandlers'](_0x300cea['type'],_0x300cea)));}['runHandlers'](_0x3038b6,_0x21d6ba){let _0x4ac809=this['handlers'][_0x3038b6];if(_0x4ac809){for(let _0x59af0a of _0x4ac809['observers'])_0x59af0a(this['view'],_0x21d6ba);for(let _0x5b602a of _0x4ac809['handlers']){if(_0x21d6ba['defaultPrevented'])break;if(_0x5b602a(this['view'],_0x21d6ba)){_0x21d6ba['preventDefault']();break;}}}}['ensureHandlers'](_0xe85e67){let _0x3f78a2=computeHandlers(_0xe85e67),_0x26d99e=this['handlers'],_0x479341=this['view']['contentDOM'];for(let _0x49e04a in _0x3f78a2)if('scroll'!=_0x49e04a){let _0x4a985e=!_0x3f78a2[_0x49e04a]['handlers']['length'],_0x4de392=_0x26d99e[_0x49e04a];_0x4de392&&_0x4a985e!=!_0x4de392['handlers']['length']&&(_0x479341['removeEventListener'](_0x49e04a,this['handleEvent']),_0x4de392=null),_0x4de392||_0x479341['addEventListener'](_0x49e04a,this['handleEvent'],{'passive':_0x4a985e});}for(let _0x48b57d in _0x26d99e)'scroll'==_0x48b57d||_0x3f78a2[_0x48b57d]||_0x479341['removeEventListener'](_0x48b57d,this['handleEvent']);this['handlers']=_0x3f78a2;}['keydown'](_0x52375a){if(this['lastKeyCode']=_0x52375a['keyCode'],this['lastKeyTime']=Date['now'](),0x9==_0x52375a['keyCode']&&this['tabFocusMode']>-0x1&&(!this['tabFocusMode']||Date['now']()<=this['tabFocusMode']))return!0x0;if(this['tabFocusMode']>0x0&&0x1b!=_0x52375a['keyCode']&&modifierCodes['indexOf'](_0x52375a['keyCode'])<0x0&&(this['tabFocusMode']=-0x1),browser['android']&&browser['chrome']&&!_0x52375a['synthetic']&&(0xd==_0x52375a['keyCode']||0x8==_0x52375a['keyCode']))return this['view']['observer']['delayAndroidKey'](_0x52375a['key'],_0x52375a['keyCode']),!0x0;let _0x236735;return!browser['ios']||_0x52375a['synthetic']||_0x52375a['altKey']||_0x52375a['metaKey']||!((_0x236735=PendingKeys['find'](_0x16aa5b=>_0x16aa5b['keyCode']==_0x52375a['keyCode']))&&!_0x52375a['ctrlKey']||EmacsyPendingKeys['indexOf'](_0x52375a['key'])>-0x1&&_0x52375a['ctrlKey']&&!_0x52375a['shiftKey'])?(0xe5!=_0x52375a['keyCode']&&this['view']['observer']['forceFlush'](),!0x1):(this['pendingIOSKey']=_0x236735||_0x52375a,setTimeout(()=>this['flushIOSKey'](),0xfa),!0x0);}['flushIOSKey'](_0x1e9713){let _0x1683b4=this['pendingIOSKey'];return!!_0x1683b4&&(!('Enter'==_0x1683b4['key']&&_0x1e9713&&_0x1e9713['from']<_0x1e9713['to']&&/^\S+$/['test'](_0x1e9713['insert']['toString']()))&&(this['pendingIOSKey']=void 0x0,dispatchKey(this['view']['contentDOM'],_0x1683b4['key'],_0x1683b4['keyCode'],_0x1683b4 instanceof KeyboardEvent?_0x1683b4:void 0x0)));}['ignoreDuringComposition'](_0x4e79b3){return!(!/^key/['test'](_0x4e79b3['type'])||_0x4e79b3['synthetic'])&&(this['composing']>0x0||!!(browser['safari']&&!browser['ios']&&this['compositionPendingKey']&&Date['now']()-this['compositionEndedAt']<0x64)&&(this['compositionPendingKey']=!0x1,!0x0));}['startMouseSelection'](_0x2380df){this['mouseSelection']&&this['mouseSelection']['destroy'](),this['mouseSelection']=_0x2380df;}['update'](_0x34d7ab){this['view']['observer']['update'](_0x34d7ab),this['mouseSelection']&&this['mouseSelection']['update'](_0x34d7ab),this['draggedContent']&&_0x34d7ab['docChanged']&&(this['draggedContent']=this['draggedContent']['map'](_0x34d7ab['changes'])),_0x34d7ab['transactions']['length']&&(this['lastKeyCode']=this['lastSelectionTime']=0x0);}['destroy'](){this['mouseSelection']&&this['mouseSelection']['destroy']();}}function bindHandler(_0x5e1eff,_0x5a469c){return(_0x2ad040,_0x38ec58)=>{try{return _0x5a469c['call'](_0x5e1eff,_0x38ec58,_0x2ad040);}catch(_0x58d8c6){logException(_0x2ad040['state'],_0x58d8c6);}};}function computeHandlers(_0x3253f5){let _0x46b6f9=Object['create'](null);function _0x25b5b2(_0x261197){return _0x46b6f9[_0x261197]||(_0x46b6f9[_0x261197]={'observers':[],'handlers':[]});}for(let _0x4d32b6 of _0x3253f5){let _0x3c85d0=_0x4d32b6['spec'],_0x2a7b3b=_0x3c85d0&&_0x3c85d0['plugin']['domEventHandlers'],_0x204e91=_0x3c85d0&&_0x3c85d0['plugin']['domEventObservers'];if(_0x2a7b3b)for(let _0x52d86d in _0x2a7b3b){let _0x59dd2d=_0x2a7b3b[_0x52d86d];_0x59dd2d&&_0x25b5b2(_0x52d86d)['handlers']['push'](bindHandler(_0x4d32b6['value'],_0x59dd2d));}if(_0x204e91)for(let _0x4af916 in _0x204e91){let _0x54ea2d=_0x204e91[_0x4af916];_0x54ea2d&&_0x25b5b2(_0x4af916)['observers']['push'](bindHandler(_0x4d32b6['value'],_0x54ea2d));}}for(let _0x25ab58 in handlers)_0x25b5b2(_0x25ab58)['handlers']['push'](handlers[_0x25ab58]);for(let _0x4ad59a in observers)_0x25b5b2(_0x4ad59a)['observers']['push'](observers[_0x4ad59a]);return _0x46b6f9;}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(_0x301a02){return 0.7*Math['max'](0x0,_0x301a02)+0x8;}function dist(_0x40c73b,_0x1d898e){return Math['max'](Math['abs'](_0x40c73b['clientX']-_0x1d898e['clientX']),Math['abs'](_0x40c73b['clientY']-_0x1d898e['clientY']));}class MouseSelection{constructor(_0x3677f1,_0x324b91,_0x5045bc,_0x4de230){this['view']=_0x3677f1,this['startEvent']=_0x324b91,this['style']=_0x5045bc,this['mustSelect']=_0x4de230,this['scrollSpeed']={'x':0x0,'y':0x0},this['scrolling']=-0x1,this['lastEvent']=_0x324b91,this['scrollParents']=scrollableParents(_0x3677f1['contentDOM']),this['atoms']=_0x3677f1['state']['facet'](atomicRanges)['map'](_0x55b088=>_0x55b088(_0x3677f1));let _0x153f5a=_0x3677f1['contentDOM']['ownerDocument'];_0x153f5a['addEventListener']('mousemove',this['move']=this['move']['bind'](this)),_0x153f5a['addEventListener']('mouseup',this['up']=this['up']['bind'](this)),this['extend']=_0x324b91['shiftKey'],this['multiple']=_0x3677f1['state']['facet'](EditorState['allowMultipleSelections'])&&addsSelectionRange(_0x3677f1,_0x324b91),this['dragging']=!(!isInPrimarySelection(_0x3677f1,_0x324b91)||0x1!=getClickType(_0x324b91))&&null;}['start'](_0x195f0d){!0x1===this['dragging']&&this['select'](_0x195f0d);}['move'](_0x1e0b36){if(0x0==_0x1e0b36['buttons'])return this['destroy']();if(this['dragging']||null==this['dragging']&&dist(this['startEvent'],_0x1e0b36)<0xa)return;this['select'](this['lastEvent']=_0x1e0b36);let _0x4d22a0=0x0,_0x527237=0x0,_0x34db7b=0x0,_0x5e66f9=0x0,_0x3dea21=this['view']['win']['innerWidth'],_0x5578d7=this['view']['win']['innerHeight'];this['scrollParents']['x']&&({left:_0x34db7b,right:_0x3dea21}=this['scrollParents']['x']['getBoundingClientRect']()),this['scrollParents']['y']&&({top:_0x5e66f9,bottom:_0x5578d7}=this['scrollParents']['y']['getBoundingClientRect']());let _0x419ac9=getScrollMargins(this['view']);_0x1e0b36['clientX']-_0x419ac9['left']<=_0x34db7b+dragScrollMargin?_0x4d22a0=-dragScrollSpeed(_0x34db7b-_0x1e0b36['clientX']):_0x1e0b36['clientX']+_0x419ac9['right']>=_0x3dea21-dragScrollMargin&&(_0x4d22a0=dragScrollSpeed(_0x1e0b36['clientX']-_0x3dea21)),_0x1e0b36['clientY']-_0x419ac9['top']<=_0x5e66f9+dragScrollMargin?_0x527237=-dragScrollSpeed(_0x5e66f9-_0x1e0b36['clientY']):_0x1e0b36['clientY']+_0x419ac9['bottom']>=_0x5578d7-dragScrollMargin&&(_0x527237=dragScrollSpeed(_0x1e0b36['clientY']-_0x5578d7)),this['setScrollSpeed'](_0x4d22a0,_0x527237);}['up'](_0x279323){null==this['dragging']&&this['select'](this['lastEvent']),this['dragging']||_0x279323['preventDefault'](),this['destroy']();}['destroy'](){this['setScrollSpeed'](0x0,0x0);let _0x55df0d=this['view']['contentDOM']['ownerDocument'];_0x55df0d['removeEventListener']('mousemove',this['move']),_0x55df0d['removeEventListener']('mouseup',this['up']),this['view']['inputState']['mouseSelection']=this['view']['inputState']['draggedContent']=null;}['setScrollSpeed'](_0x21ab61,_0xf57039){this['scrollSpeed']={'x':_0x21ab61,'y':_0xf57039},_0x21ab61||_0xf57039?this['scrolling']<0x0&&(this['scrolling']=setInterval(()=>this['scroll'](),0x32)):this['scrolling']>-0x1&&(clearInterval(this['scrolling']),this['scrolling']=-0x1);}['scroll'](){let {x:_0x2548af,y:_0x5956ad}=this['scrollSpeed'];_0x2548af&&this['scrollParents']['x']&&(this['scrollParents']['x']['scrollLeft']+=_0x2548af,_0x2548af=0x0),_0x5956ad&&this['scrollParents']['y']&&(this['scrollParents']['y']['scrollTop']+=_0x5956ad,_0x5956ad=0x0),(_0x2548af||_0x5956ad)&&this['view']['win']['scrollBy'](_0x2548af,_0x5956ad),!0x1===this['dragging']&&this['select'](this['lastEvent']);}['select'](_0x45ac71){let {view:_0x4046b1}=this,_0x4925d2=skipAtomsForSelection(this['atoms'],this['style']['get'](_0x45ac71,this['extend'],this['multiple']));!this['mustSelect']&&_0x4925d2['eq'](_0x4046b1['state']['selection'],!0x1===this['dragging'])||this['view']['dispatch']({'selection':_0x4925d2,'userEvent':'select.pointer'}),this['mustSelect']=!0x1;}['update'](_0x412eda){_0x412eda['transactions']['some'](_0x1efc64=>_0x1efc64['isUserEvent']('input.type'))?this['destroy']():this['style']['update'](_0x412eda)&&setTimeout(()=>this['select'](this['lastEvent']),0x14);}}function addsSelectionRange(_0x5b0a3e,_0x2c0c91){let _0x18d3ee=_0x5b0a3e['state']['facet'](clickAddsSelectionRange);return _0x18d3ee['length']?_0x18d3ee[0x0](_0x2c0c91):browser['mac']?_0x2c0c91['metaKey']:_0x2c0c91['ctrlKey'];}function dragMovesSelection(_0x54e4a0,_0xb1442d){let _0x264a76=_0x54e4a0['state']['facet'](dragMovesSelection$1);return _0x264a76['length']?_0x264a76[0x0](_0xb1442d):browser['mac']?!_0xb1442d['altKey']:!_0xb1442d['ctrlKey'];}function isInPrimarySelection(_0x5d2f58,_0x5a2f92){let {main:_0x208344}=_0x5d2f58['state']['selection'];if(_0x208344['empty'])return!0x1;let _0x447b29=getSelection(_0x5d2f58['root']);if(!_0x447b29||0x0==_0x447b29['rangeCount'])return!0x0;let _0x27efe2=_0x447b29['getRangeAt'](0x0)['getClientRects']();for(let _0x517120=0x0;_0x517120<_0x27efe2['length'];_0x517120++){let _0x340884=_0x27efe2[_0x517120];if(_0x340884['left']<=_0x5a2f92['clientX']&&_0x340884['right']>=_0x5a2f92['clientX']&&_0x340884['top']<=_0x5a2f92['clientY']&&_0x340884['bottom']>=_0x5a2f92['clientY'])return!0x0;}return!0x1;}function eventBelongsToEditor(_0xfbd934,_0x245466){if(!_0x245466['bubbles'])return!0x0;if(_0x245466['defaultPrevented'])return!0x1;for(let _0x246b6d,_0x5f2cef=_0x245466['target'];_0x5f2cef!=_0xfbd934['contentDOM'];_0x5f2cef=_0x5f2cef['parentNode'])if(!_0x5f2cef||0xb==_0x5f2cef['nodeType']||(_0x246b6d=ContentView['get'](_0x5f2cef))&&_0x246b6d['ignoreEvent'](_0x245466))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(_0x1ce023){let _0x330831=_0x1ce023['dom']['parentNode'];if(!_0x330831)return;let _0x24513f=_0x330831['appendChild'](document['createElement']('textarea'));_0x24513f['style']['cssText']='position:\x20fixed;\x20left:\x20-10000px;\x20top:\x2010px',_0x24513f['focus'](),setTimeout(()=>{_0x1ce023['focus'](),_0x24513f['remove'](),doPaste(_0x1ce023,_0x24513f['value']);},0x32);}function textFilter(_0x1099c1,_0x368219,_0x4a9f74){for(let _0xc44f11 of _0x1099c1['facet'](_0x368219))_0x4a9f74=_0xc44f11(_0x4a9f74,_0x1099c1);return _0x4a9f74;}function doPaste(_0x1ea4d4,_0x5a7c16){_0x5a7c16=textFilter(_0x1ea4d4['state'],clipboardInputFilter,_0x5a7c16);let _0x57795f,{state:_0x370d42}=_0x1ea4d4,_0x522e7a=0x1,_0x5b88a5=_0x370d42['toText'](_0x5a7c16),_0x1e199b=_0x5b88a5['lines']==_0x370d42['selection']['ranges']['length'];if(null!=lastLinewiseCopy&&_0x370d42['selection']['ranges']['every'](_0x35b80f=>_0x35b80f['empty'])&&lastLinewiseCopy==_0x5b88a5['toString']()){let _0x3bb74d=-0x1;_0x57795f=_0x370d42['changeByRange'](_0x1424b7=>{let _0x10e063=_0x370d42['doc']['lineAt'](_0x1424b7['from']);if(_0x10e063['from']==_0x3bb74d)return{'range':_0x1424b7};_0x3bb74d=_0x10e063['from'];let _0x213e66=_0x370d42['toText']((_0x1e199b?_0x5b88a5['line'](_0x522e7a++)['text']:_0x5a7c16)+_0x370d42['lineBreak']);return{'changes':{'from':_0x10e063['from'],'insert':_0x213e66},'range':EditorSelection['cursor'](_0x1424b7['from']+_0x213e66['length'])};});}else _0x57795f=_0x1e199b?_0x370d42['changeByRange'](_0x1f3e57=>{let _0x22ba28=_0x5b88a5['line'](_0x522e7a++);return{'changes':{'from':_0x1f3e57['from'],'to':_0x1f3e57['to'],'insert':_0x22ba28['text']},'range':EditorSelection['cursor'](_0x1f3e57['from']+_0x22ba28['length'])};}):_0x370d42['replaceSelection'](_0x5b88a5);_0x1ea4d4['dispatch'](_0x57795f,{'userEvent':'input.paste','scrollIntoView':!0x0});}function rangeForClick(_0x33529a,_0x2b55ad,_0xd023e8,_0x73ffd3){if(0x1==_0x73ffd3)return EditorSelection['cursor'](_0x2b55ad,_0xd023e8);if(0x2==_0x73ffd3)return groupAt(_0x33529a['state'],_0x2b55ad,_0xd023e8);{let _0x2fc8da=LineView['find'](_0x33529a['docView'],_0x2b55ad),_0x29b8bb=_0x33529a['state']['doc']['lineAt'](_0x2fc8da?_0x2fc8da['posAtEnd']:_0x2b55ad),_0x268f05=_0x2fc8da?_0x2fc8da['posAtStart']:_0x29b8bb['from'],_0x296df3=_0x2fc8da?_0x2fc8da['posAtEnd']:_0x29b8bb['to'];return _0x296df3<_0x33529a['state']['doc']['length']&&_0x296df3==_0x29b8bb['to']&&_0x296df3++,EditorSelection['range'](_0x268f05,_0x296df3);}}observers['scroll']=_0x3d352c=>{_0x3d352c['inputState']['lastScrollTop']=_0x3d352c['scrollDOM']['scrollTop'],_0x3d352c['inputState']['lastScrollLeft']=_0x3d352c['scrollDOM']['scrollLeft'];},handlers['keydown']=(_0x50362c,_0x1a47d9)=>(_0x50362c['inputState']['setSelectionOrigin']('select'),0x1b==_0x1a47d9['keyCode']&&0x0!=_0x50362c['inputState']['tabFocusMode']&&(_0x50362c['inputState']['tabFocusMode']=Date['now']()+0x7d0),!0x1),observers['touchstart']=(_0x9ba7c0,_0x14d0ed)=>{_0x9ba7c0['inputState']['lastTouchTime']=Date['now'](),_0x9ba7c0['inputState']['setSelectionOrigin']('select.pointer');},observers['touchmove']=_0x3e28b8=>{_0x3e28b8['inputState']['setSelectionOrigin']('select.pointer');},handlers['mousedown']=(_0x41a8f2,_0x4c8957)=>{if(_0x41a8f2['observer']['flush'](),_0x41a8f2['inputState']['lastTouchTime']>Date['now']()-0x7d0)return!0x1;let _0x53cc41=null;for(let _0x308b43 of _0x41a8f2['state']['facet'](mouseSelectionStyle))if(_0x53cc41=_0x308b43(_0x41a8f2,_0x4c8957),_0x53cc41)break;if(_0x53cc41||0x0!=_0x4c8957['button']||(_0x53cc41=basicMouseSelection(_0x41a8f2,_0x4c8957)),_0x53cc41){let _0x590749=!_0x41a8f2['hasFocus'];_0x41a8f2['inputState']['startMouseSelection'](new MouseSelection(_0x41a8f2,_0x4c8957,_0x53cc41,_0x590749)),_0x590749&&_0x41a8f2['observer']['ignore'](()=>{focusPreventScroll(_0x41a8f2['contentDOM']);let _0xa4f737=_0x41a8f2['root']['activeElement'];_0xa4f737&&!_0xa4f737['contains'](_0x41a8f2['contentDOM'])&&_0xa4f737['blur']();});let _0x249516=_0x41a8f2['inputState']['mouseSelection'];if(_0x249516)return _0x249516['start'](_0x4c8957),!0x1===_0x249516['dragging'];}else _0x41a8f2['inputState']['setSelectionOrigin']('select.pointer');return!0x1;};let inside=(_0x3f1f36,_0x4f3027,_0x3955db)=>_0x4f3027>=_0x3955db['top']&&_0x4f3027<=_0x3955db['bottom']&&_0x3f1f36>=_0x3955db['left']&&_0x3f1f36<=_0x3955db['right'];function findPositionSide(_0x434f58,_0x2efaf4,_0x145f39,_0x33a7bb){let _0x5ed0a3=LineView['find'](_0x434f58['docView'],_0x2efaf4);if(!_0x5ed0a3)return 0x1;let _0x579f4e=_0x2efaf4-_0x5ed0a3['posAtStart'];if(0x0==_0x579f4e)return 0x1;if(_0x579f4e==_0x5ed0a3['length'])return-0x1;let _0x6ffa6=_0x5ed0a3['coordsAt'](_0x579f4e,-0x1);if(_0x6ffa6&&inside(_0x145f39,_0x33a7bb,_0x6ffa6))return-0x1;let _0x32e9f5=_0x5ed0a3['coordsAt'](_0x579f4e,0x1);return _0x32e9f5&&inside(_0x145f39,_0x33a7bb,_0x32e9f5)?0x1:_0x6ffa6&&_0x6ffa6['bottom']>=_0x33a7bb?-0x1:0x1;}function queryPos(_0x432515,_0x400c6a){let _0x12a04a=_0x432515['posAtCoords']({'x':_0x400c6a['clientX'],'y':_0x400c6a['clientY']},!0x1);return{'pos':_0x12a04a,'bias':findPositionSide(_0x432515,_0x12a04a,_0x400c6a['clientX'],_0x400c6a['clientY'])};}const BadMouseDetail=browser['ie']&&browser['ie_version']<=0xb;let lastMouseDown=null,lastMouseDownCount=0x0,lastMouseDownTime=0x0;function getClickType(_0x3e20b6){if(!BadMouseDetail)return _0x3e20b6['detail'];let _0x19a9f8=lastMouseDown,_0x4d5d70=lastMouseDownTime;return lastMouseDown=_0x3e20b6,lastMouseDownTime=Date['now'](),lastMouseDownCount=!_0x19a9f8||_0x4d5d70>Date['now']()-0x190&&Math['abs'](_0x19a9f8['clientX']-_0x3e20b6['clientX'])<0x2&&Math['abs'](_0x19a9f8['clientY']-_0x3e20b6['clientY'])<0x2?(lastMouseDownCount+0x1)%0x3:0x1;}function basicMouseSelection(_0x2fe72e,_0x411e06){let _0x459a56=queryPos(_0x2fe72e,_0x411e06),_0x30f8aa=getClickType(_0x411e06),_0x133476=_0x2fe72e['state']['selection'];return{'update'(_0x3279e0){_0x3279e0['docChanged']&&(_0x459a56['pos']=_0x3279e0['changes']['mapPos'](_0x459a56['pos']),_0x133476=_0x133476['map'](_0x3279e0['changes']));},'get'(_0x4385ee,_0x56880a,_0x5a9f6c){let _0x500fcf,_0x561e87=queryPos(_0x2fe72e,_0x4385ee),_0x2e8876=rangeForClick(_0x2fe72e,_0x561e87['pos'],_0x561e87['bias'],_0x30f8aa);if(_0x459a56['pos']!=_0x561e87['pos']&&!_0x56880a){let _0x49d001=rangeForClick(_0x2fe72e,_0x459a56['pos'],_0x459a56['bias'],_0x30f8aa),_0x103b8e=Math['min'](_0x49d001['from'],_0x2e8876['from']),_0x376fd7=Math['max'](_0x49d001['to'],_0x2e8876['to']);_0x2e8876=_0x103b8e<_0x2e8876['from']?EditorSelection['range'](_0x103b8e,_0x376fd7):EditorSelection['range'](_0x376fd7,_0x103b8e);}return _0x56880a?_0x133476['replaceRange'](_0x133476['main']['extend'](_0x2e8876['from'],_0x2e8876['to'])):_0x5a9f6c&&0x1==_0x30f8aa&&_0x133476['ranges']['length']>0x1&&(_0x500fcf=removeRangeAround(_0x133476,_0x561e87['pos']))?_0x500fcf:_0x5a9f6c?_0x133476['addRange'](_0x2e8876):EditorSelection['create']([_0x2e8876]);}};}function removeRangeAround(_0x53973c,_0x132e26){for(let _0x5474bc=0x0;_0x5474bc<_0x53973c['ranges']['length'];_0x5474bc++){let {from:_0x3624b5,to:_0x24b0f1}=_0x53973c['ranges'][_0x5474bc];if(_0x3624b5<=_0x132e26&&_0x24b0f1>=_0x132e26)return EditorSelection['create'](_0x53973c['ranges']['slice'](0x0,_0x5474bc)['concat'](_0x53973c['ranges']['slice'](_0x5474bc+0x1)),_0x53973c['mainIndex']==_0x5474bc?0x0:_0x53973c['mainIndex']-(_0x53973c['mainIndex']>_0x5474bc?0x1:0x0));}return null;}function dropText(_0x3d6b0d,_0x5542a4,_0x286c2f,_0x5d1abd){if(!(_0x286c2f=textFilter(_0x3d6b0d['state'],clipboardInputFilter,_0x286c2f)))return;let _0x3d807b=_0x3d6b0d['posAtCoords']({'x':_0x5542a4['clientX'],'y':_0x5542a4['clientY']},!0x1),{draggedContent:_0x362003}=_0x3d6b0d['inputState'],_0x23cfc7=_0x5d1abd&&_0x362003&&dragMovesSelection(_0x3d6b0d,_0x5542a4)?{'from':_0x362003['from'],'to':_0x362003['to']}:null,_0x1b02b8={'from':_0x3d807b,'insert':_0x286c2f},_0x1f4cb9=_0x3d6b0d['state']['changes'](_0x23cfc7?[_0x23cfc7,_0x1b02b8]:_0x1b02b8);_0x3d6b0d['focus'](),_0x3d6b0d['dispatch']({'changes':_0x1f4cb9,'selection':{'anchor':_0x1f4cb9['mapPos'](_0x3d807b,-0x1),'head':_0x1f4cb9['mapPos'](_0x3d807b,0x1)},'userEvent':_0x23cfc7?'move.drop':'input.drop'}),_0x3d6b0d['inputState']['draggedContent']=null;}function captureCopy(_0x4cfc9b,_0x1cb61e){let _0x49a0cc=_0x4cfc9b['dom']['parentNode'];if(!_0x49a0cc)return;let _0x139650=_0x49a0cc['appendChild'](document['createElement']('textarea'));_0x139650['style']['cssText']='position:\x20fixed;\x20left:\x20-10000px;\x20top:\x2010px',_0x139650['value']=_0x1cb61e,_0x139650['focus'](),_0x139650['selectionEnd']=_0x1cb61e['length'],_0x139650['selectionStart']=0x0,setTimeout(()=>{_0x139650['remove'](),_0x4cfc9b['focus']();},0x32);}function copiedRange(_0x8fb163){let _0x3d7357=[],_0x10a9e6=[],_0x47e7ab=!0x1;for(let _0x4e6373 of _0x8fb163['selection']['ranges'])_0x4e6373['empty']||(_0x3d7357['push'](_0x8fb163['sliceDoc'](_0x4e6373['from'],_0x4e6373['to'])),_0x10a9e6['push'](_0x4e6373));if(!_0x3d7357['length']){let _0x1f2f1b=-0x1;for(let {from:_0x1d7811}of _0x8fb163['selection']['ranges']){let _0x51ff25=_0x8fb163['doc']['lineAt'](_0x1d7811);_0x51ff25['number']>_0x1f2f1b&&(_0x3d7357['push'](_0x51ff25['text']),_0x10a9e6['push']({'from':_0x51ff25['from'],'to':Math['min'](_0x8fb163['doc']['length'],_0x51ff25['to']+0x1)})),_0x1f2f1b=_0x51ff25['number'];}_0x47e7ab=!0x0;}return{'text':textFilter(_0x8fb163,clipboardOutputFilter,_0x3d7357['join'](_0x8fb163['lineBreak'])),'ranges':_0x10a9e6,'linewise':_0x47e7ab};}handlers['dragstart']=(_0x4ab625,_0x21dad6)=>{let {selection:{main:_0x4a6dac}}=_0x4ab625['state'];if(_0x21dad6['target']['draggable']){let _0x1c5234=_0x4ab625['docView']['nearest'](_0x21dad6['target']);if(_0x1c5234&&_0x1c5234['isWidget']){let _0x1c2a13=_0x1c5234['posAtStart'],_0x41f782=_0x1c2a13+_0x1c5234['length'];(_0x1c2a13>=_0x4a6dac['to']||_0x41f782<=_0x4a6dac['from'])&&(_0x4a6dac=EditorSelection['range'](_0x1c2a13,_0x41f782));}}let {inputState:_0x5208da}=_0x4ab625;return _0x5208da['mouseSelection']&&(_0x5208da['mouseSelection']['dragging']=!0x0),_0x5208da['draggedContent']=_0x4a6dac,_0x21dad6['dataTransfer']&&(_0x21dad6['dataTransfer']['setData']('Text',textFilter(_0x4ab625['state'],clipboardOutputFilter,_0x4ab625['state']['sliceDoc'](_0x4a6dac['from'],_0x4a6dac['to']))),_0x21dad6['dataTransfer']['effectAllowed']='copyMove'),!0x1;},handlers['dragend']=_0x3a1c24=>(_0x3a1c24['inputState']['draggedContent']=null,!0x1),handlers['drop']=(_0x5b6f33,_0x599743)=>{if(!_0x599743['dataTransfer'])return!0x1;if(_0x5b6f33['state']['readOnly'])return!0x0;let _0xace685=_0x599743['dataTransfer']['files'];if(_0xace685&&_0xace685['length']){let _0x40e86d=Array(_0xace685['length']),_0x57c84d=0x0,_0x4cf17a=()=>{++_0x57c84d==_0xace685['length']&&dropText(_0x5b6f33,_0x599743,_0x40e86d['filter'](_0x2c5d5c=>null!=_0x2c5d5c)['join'](_0x5b6f33['state']['lineBreak']),!0x1);};for(let _0x204e17=0x0;_0x204e17<_0xace685['length'];_0x204e17++){let _0x5bf141=new FileReader();_0x5bf141['onerror']=_0x4cf17a,_0x5bf141['onload']=()=>{/[\x00-\x08\x0e-\x1f]{2}/['test'](_0x5bf141['result'])||(_0x40e86d[_0x204e17]=_0x5bf141['result']),_0x4cf17a();},_0x5bf141['readAsText'](_0xace685[_0x204e17]);}return!0x0;}{let _0x48b02e=_0x599743['dataTransfer']['getData']('Text');if(_0x48b02e)return dropText(_0x5b6f33,_0x599743,_0x48b02e,!0x0),!0x0;}return!0x1;},handlers['paste']=(_0x43a6cd,_0x3728f8)=>{if(_0x43a6cd['state']['readOnly'])return!0x0;_0x43a6cd['observer']['flush']();let _0x2c9d05=brokenClipboardAPI?null:_0x3728f8['clipboardData'];return _0x2c9d05?(doPaste(_0x43a6cd,_0x2c9d05['getData']('text/plain')||_0x2c9d05['getData']('text/uri-list')),!0x0):(capturePaste(_0x43a6cd),!0x1);};let lastLinewiseCopy=null;handlers['copy']=handlers['cut']=(_0x1bfdd0,_0x35d520)=>{let {text:_0x31e0e4,ranges:_0x4220d3,linewise:_0x3f716e}=copiedRange(_0x1bfdd0['state']);if(!_0x31e0e4&&!_0x3f716e)return!0x1;lastLinewiseCopy=_0x3f716e?_0x31e0e4:null,'cut'!=_0x35d520['type']||_0x1bfdd0['state']['readOnly']||_0x1bfdd0['dispatch']({'changes':_0x4220d3,'scrollIntoView':!0x0,'userEvent':'delete.cut'});let _0x28b580=brokenClipboardAPI?null:_0x35d520['clipboardData'];return _0x28b580?(_0x28b580['clearData'](),_0x28b580['setData']('text/plain',_0x31e0e4),!0x0):(captureCopy(_0x1bfdd0,_0x31e0e4),!0x1);};const isFocusChange=Annotation['define']();function focusChangeTransaction(_0x50ac5a,_0x1599e8){let _0xeeea51=[];for(let _0x3df7c9 of _0x50ac5a['facet'](focusChangeEffect)){let _0x559572=_0x3df7c9(_0x50ac5a,_0x1599e8);_0x559572&&_0xeeea51['push'](_0x559572);}return _0xeeea51['length']?_0x50ac5a['update']({'effects':_0xeeea51,'annotations':isFocusChange['of'](!0x0)}):null;}function updateForFocusChange(_0x5393d2){setTimeout(()=>{let _0x8a75cd=_0x5393d2['hasFocus'];if(_0x8a75cd!=_0x5393d2['inputState']['notifiedFocused']){let _0x578011=focusChangeTransaction(_0x5393d2['state'],_0x8a75cd);_0x578011?_0x5393d2['dispatch'](_0x578011):_0x5393d2['update']([]);}},0xa);}observers['focus']=_0x22b6a2=>{_0x22b6a2['inputState']['lastFocusTime']=Date['now'](),_0x22b6a2['scrollDOM']['scrollTop']||!_0x22b6a2['inputState']['lastScrollTop']&&!_0x22b6a2['inputState']['lastScrollLeft']||(_0x22b6a2['scrollDOM']['scrollTop']=_0x22b6a2['inputState']['lastScrollTop'],_0x22b6a2['scrollDOM']['scrollLeft']=_0x22b6a2['inputState']['lastScrollLeft']),updateForFocusChange(_0x22b6a2);},observers['blur']=_0x3512ff=>{_0x3512ff['observer']['clearSelectionRange'](),updateForFocusChange(_0x3512ff);},observers['compositionstart']=observers['compositionupdate']=_0x52bd3c=>{_0x52bd3c['observer']['editContext']||(null==_0x52bd3c['inputState']['compositionFirstChange']&&(_0x52bd3c['inputState']['compositionFirstChange']=!0x0),_0x52bd3c['inputState']['composing']<0x0&&(_0x52bd3c['inputState']['composing']=0x0));},observers['compositionend']=_0x374e2e=>{_0x374e2e['observer']['editContext']||(_0x374e2e['inputState']['composing']=-0x1,_0x374e2e['inputState']['compositionEndedAt']=Date['now'](),_0x374e2e['inputState']['compositionPendingKey']=!0x0,_0x374e2e['inputState']['compositionPendingChange']=_0x374e2e['observer']['pendingRecords']()['length']>0x0,_0x374e2e['inputState']['compositionFirstChange']=null,browser['chrome']&&browser['android']?_0x374e2e['observer']['flushSoon']():_0x374e2e['inputState']['compositionPendingChange']?Promise['resolve']()['then'](()=>_0x374e2e['observer']['flush']()):setTimeout(()=>{_0x374e2e['inputState']['composing']<0x0&&_0x374e2e['docView']['hasComposition']&&_0x374e2e['update']([]);},0x32));},observers['contextmenu']=_0x1dbf9f=>{_0x1dbf9f['inputState']['lastContextMenu']=Date['now']();},handlers['beforeinput']=(_0x54403f,_0x54e040)=>{var _0x28d8e9,_0x3d33ad;if('insertReplacementText'==_0x54e040['inputType']&&_0x54403f['observer']['editContext']){let _0x4c1801=null===(_0x28d8e9=_0x54e040['dataTransfer'])||void 0x0===_0x28d8e9?void 0x0:_0x28d8e9['getData']('text/plain'),_0x8c1593=_0x54e040['getTargetRanges']();if(_0x4c1801&&_0x8c1593['length']){let _0x592194=_0x8c1593[0x0],_0x5ef7aa=_0x54403f['posAtDOM'](_0x592194['startContainer'],_0x592194['startOffset']),_0x52361d=_0x54403f['posAtDOM'](_0x592194['endContainer'],_0x592194['endOffset']);return applyDOMChangeInner(_0x54403f,{'from':_0x5ef7aa,'to':_0x52361d,'insert':_0x54403f['state']['toText'](_0x4c1801)},null),!0x0;}}let _0x80f900;if(browser['chrome']&&browser['android']&&(_0x80f900=PendingKeys['find'](_0x224c82=>_0x224c82['inputType']==_0x54e040['inputType']))&&(_0x54403f['observer']['delayAndroidKey'](_0x80f900['key'],_0x80f900['keyCode']),'Backspace'==_0x80f900['key']||'Delete'==_0x80f900['key'])){let _0x243c56=(null===(_0x3d33ad=window['visualViewport'])||void 0x0===_0x3d33ad?void 0x0:_0x3d33ad['height'])||0x0;setTimeout(()=>{var _0x88205e;((null===(_0x88205e=window['visualViewport'])||void 0x0===_0x88205e?void 0x0:_0x88205e['height'])||0x0)>_0x243c56+0xa&&_0x54403f['hasFocus']&&(_0x54403f['contentDOM']['blur'](),_0x54403f['focus']());},0x64);}return browser['ios']&&'deleteContentForward'==_0x54e040['inputType']&&_0x54403f['observer']['flushSoon'](),browser['safari']&&'insertText'==_0x54e040['inputType']&&_0x54403f['inputState']['composing']>=0x0&&setTimeout(()=>observers['compositionend'](_0x54403f,_0x54e040),0x14),!0x1;};const appliedFirefoxHack=new Set();function firefoxCopyCutHack(_0x15071d){appliedFirefoxHack['has'](_0x15071d)||(appliedFirefoxHack['add'](_0x15071d),_0x15071d['addEventListener']('copy',()=>{}),_0x15071d['addEventListener']('cut',()=>{}));}const wrappingWhiteSpace=['pre-wrap','normal','pre-line','break-spaces'];let heightChangeFlag=!0x1;function clearHeightChangeFlag(){heightChangeFlag=!0x1;}class HeightOracle{constructor(_0x4d167a){this['lineWrapping']=_0x4d167a,this['doc']=Text['empty'],this['heightSamples']={},this['lineHeight']=0xe,this['charWidth']=0x7,this['textHeight']=0xe,this['lineLength']=0x1e;}['heightForGap'](_0x7ab8c6,_0x30fefe){let _0x21d409=this['doc']['lineAt'](_0x30fefe)['number']-this['doc']['lineAt'](_0x7ab8c6)['number']+0x1;return this['lineWrapping']&&(_0x21d409+=Math['max'](0x0,Math['ceil']((_0x30fefe-_0x7ab8c6-_0x21d409*this['lineLength']*0.5)/this['lineLength']))),this['lineHeight']*_0x21d409;}['heightForLine'](_0x607310){if(!this['lineWrapping'])return this['lineHeight'];return(0x1+Math['max'](0x0,Math['ceil']((_0x607310-this['lineLength'])/Math['max'](0x1,this['lineLength']-0x5))))*this['lineHeight'];}['setDoc'](_0x48ad65){return this['doc']=_0x48ad65,this;}['mustRefreshForWrapping'](_0x55cf06){return wrappingWhiteSpace['indexOf'](_0x55cf06)>-0x1!=this['lineWrapping'];}['mustRefreshForHeights'](_0x43577b){let _0x4823fb=!0x1;for(let _0x311343=0x0;_0x311343<_0x43577b['length'];_0x311343++){let _0x5e7fce=_0x43577b[_0x311343];_0x5e7fce<0x0?_0x311343++:this['heightSamples'][Math['floor'](0xa*_0x5e7fce)]||(_0x4823fb=!0x0,this['heightSamples'][Math['floor'](0xa*_0x5e7fce)]=!0x0);}return _0x4823fb;}['refresh'](_0x5ef169,_0x505086,_0x3a1853,_0x1e217b,_0x54b4a6,_0x39aa29){let _0x4ac1a6=wrappingWhiteSpace['indexOf'](_0x5ef169)>-0x1,_0x468296=Math['round'](_0x505086)!=Math['round'](this['lineHeight'])||this['lineWrapping']!=_0x4ac1a6;if(this['lineWrapping']=_0x4ac1a6,this['lineHeight']=_0x505086,this['charWidth']=_0x3a1853,this['textHeight']=_0x1e217b,this['lineLength']=_0x54b4a6,_0x468296){this['heightSamples']={};for(let _0x379b95=0x0;_0x379b95<_0x39aa29['length'];_0x379b95++){let _0xf70708=_0x39aa29[_0x379b95];_0xf70708<0x0?_0x379b95++:this['heightSamples'][Math['floor'](0xa*_0xf70708)]=!0x0;}}return _0x468296;}}class MeasuredHeights{constructor(_0x23d80d,_0x3c8be9){this['from']=_0x23d80d,this['heights']=_0x3c8be9,this['index']=0x0;}get['more'](){return this['index']<this['heights']['length'];}}class BlockInfo{constructor(_0xd7f8c3,_0x52dd9f,_0x3bd0a1,_0x350d80,_0x19b3f3){this['from']=_0xd7f8c3,this['length']=_0x52dd9f,this['top']=_0x3bd0a1,this['height']=_0x350d80,this['_content']=_0x19b3f3;}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'](_0x129e6a){let _0x19a307=(Array['isArray'](this['_content'])?this['_content']:[this])['concat'](Array['isArray'](_0x129e6a['_content'])?_0x129e6a['_content']:[_0x129e6a]);return new BlockInfo(this['from'],this['length']+_0x129e6a['length'],this['top'],this['height']+_0x129e6a['height'],_0x19a307);}}var QueryType=function(_0x11a30f){return _0x11a30f[_0x11a30f['ByPos']=0x0]='ByPos',_0x11a30f[_0x11a30f['ByHeight']=0x1]='ByHeight',_0x11a30f[_0x11a30f['ByPosNoHeight']=0x2]='ByPosNoHeight',_0x11a30f;}(QueryType||(QueryType={}));const Epsilon=0.001;class HeightMap{constructor(_0x4c691a,_0x2db705,_0x53e8df=0x2){this['length']=_0x4c691a,this['height']=_0x2db705,this['flags']=_0x53e8df;}get['outdated'](){return(0x2&this['flags'])>0x0;}set['outdated'](_0x4efa7f){this['flags']=(_0x4efa7f?0x2:0x0)|-0x3&this['flags'];}['setHeight'](_0x3c3a00){this['height']!=_0x3c3a00&&(Math['abs'](this['height']-_0x3c3a00)>Epsilon&&(heightChangeFlag=!0x0),this['height']=_0x3c3a00);}['replace'](_0x5c676d,_0x2aacc8,_0x2771ab){return HeightMap['of'](_0x2771ab);}['decomposeLeft'](_0x2b984b,_0x26b7d2){_0x26b7d2['push'](this);}['decomposeRight'](_0x1982ff,_0x36bd4d){_0x36bd4d['push'](this);}['applyChanges'](_0x326e5d,_0x724502,_0x379193,_0x54e19c){let _0x4bf838=this,_0x5bc877=_0x379193['doc'];for(let _0x13105b=_0x54e19c['length']-0x1;_0x13105b>=0x0;_0x13105b--){let {fromA:_0x487e98,toA:_0x323079,fromB:_0x489b6f,toB:_0x1e0c33}=_0x54e19c[_0x13105b],_0x5cb9bd=_0x4bf838['lineAt'](_0x487e98,QueryType['ByPosNoHeight'],_0x379193['setDoc'](_0x724502),0x0,0x0),_0x36db7e=_0x5cb9bd['to']>=_0x323079?_0x5cb9bd:_0x4bf838['lineAt'](_0x323079,QueryType['ByPosNoHeight'],_0x379193,0x0,0x0);for(_0x1e0c33+=_0x36db7e['to']-_0x323079,_0x323079=_0x36db7e['to'];_0x13105b>0x0&&_0x5cb9bd['from']<=_0x54e19c[_0x13105b-0x1]['toA'];)_0x487e98=_0x54e19c[_0x13105b-0x1]['fromA'],_0x489b6f=_0x54e19c[_0x13105b-0x1]['fromB'],_0x13105b--,_0x487e98<_0x5cb9bd['from']&&(_0x5cb9bd=_0x4bf838['lineAt'](_0x487e98,QueryType['ByPosNoHeight'],_0x379193,0x0,0x0));_0x489b6f+=_0x5cb9bd['from']-_0x487e98,_0x487e98=_0x5cb9bd['from'];let _0x12f099=NodeBuilder['build'](_0x379193['setDoc'](_0x5bc877),_0x326e5d,_0x489b6f,_0x1e0c33);_0x4bf838=replace(_0x4bf838,_0x4bf838['replace'](_0x487e98,_0x323079,_0x12f099));}return _0x4bf838['updateHeight'](_0x379193,0x0);}static['empty'](){return new HeightMapText(0x0,0x0);}static['of'](_0x55a087){if(0x1==_0x55a087['length'])return _0x55a087[0x0];let _0x43f5b7=0x0,_0x1eb5cf=_0x55a087['length'],_0x1dc56f=0x0,_0x1280ec=0x0;for(;;)if(_0x43f5b7==_0x1eb5cf){if(_0x1dc56f>0x2*_0x1280ec){let _0x1c7472=_0x55a087[_0x43f5b7-0x1];_0x1c7472['break']?_0x55a087['splice'](--_0x43f5b7,0x1,_0x1c7472['left'],null,_0x1c7472['right']):_0x55a087['splice'](--_0x43f5b7,0x1,_0x1c7472['left'],_0x1c7472['right']),_0x1eb5cf+=0x1+_0x1c7472['break'],_0x1dc56f-=_0x1c7472['size'];}else{if(!(_0x1280ec>0x2*_0x1dc56f))break;{let _0x580ae8=_0x55a087[_0x1eb5cf];_0x580ae8['break']?_0x55a087['splice'](_0x1eb5cf,0x1,_0x580ae8['left'],null,_0x580ae8['right']):_0x55a087['splice'](_0x1eb5cf,0x1,_0x580ae8['left'],_0x580ae8['right']),_0x1eb5cf+=0x2+_0x580ae8['break'],_0x1280ec-=_0x580ae8['size'];}}}else{if(_0x1dc56f<_0x1280ec){let _0x462db8=_0x55a087[_0x43f5b7++];_0x462db8&&(_0x1dc56f+=_0x462db8['size']);}else{let _0x41afc2=_0x55a087[--_0x1eb5cf];_0x41afc2&&(_0x1280ec+=_0x41afc2['size']);}}let _0x3ece2e=0x0;return null==_0x55a087[_0x43f5b7-0x1]?(_0x3ece2e=0x1,_0x43f5b7--):null==_0x55a087[_0x43f5b7]&&(_0x3ece2e=0x1,_0x1eb5cf++),new HeightMapBranch(HeightMap['of'](_0x55a087['slice'](0x0,_0x43f5b7)),_0x3ece2e,HeightMap['of'](_0x55a087['slice'](_0x1eb5cf)));}}function replace(_0x30c77d,_0x27865e){return _0x30c77d==_0x27865e?_0x30c77d:(_0x30c77d['constructor']!=_0x27865e['constructor']&&(heightChangeFlag=!0x0),_0x27865e);}HeightMap['prototype']['size']=0x1;class HeightMapBlock extends HeightMap{constructor(_0x874471,_0xa6fa8e,_0x25acc0){super(_0x874471,_0xa6fa8e),this['deco']=_0x25acc0;}['blockAt'](_0x1dec76,_0x18ca26,_0x5b2897,_0x57c2c7){return new BlockInfo(_0x57c2c7,this['length'],_0x5b2897,this['height'],this['deco']||0x0);}['lineAt'](_0x2442b7,_0x3a6fd0,_0x1e8f2a,_0x561bfe,_0x2da64e){return this['blockAt'](0x0,_0x1e8f2a,_0x561bfe,_0x2da64e);}['forEachLine'](_0x5c8f2d,_0x48d652,_0x36a5a0,_0x27e6e5,_0x5edbfa,_0x138623){_0x5c8f2d<=_0x5edbfa+this['length']&&_0x48d652>=_0x5edbfa&&_0x138623(this['blockAt'](0x0,_0x36a5a0,_0x27e6e5,_0x5edbfa));}['updateHeight'](_0x4f27a7,_0x26fa3c=0x0,_0x5bc519=!0x1,_0x1a72b3){return _0x1a72b3&&_0x1a72b3['from']<=_0x26fa3c&&_0x1a72b3['more']&&this['setHeight'](_0x1a72b3['heights'][_0x1a72b3['index']++]),this['outdated']=!0x1,this;}['toString'](){return'block('+this['length']+')';}}class HeightMapText extends HeightMapBlock{constructor(_0x5ad9e8,_0x431e9e){super(_0x5ad9e8,_0x431e9e,null),this['collapsed']=0x0,this['widgetHeight']=0x0,this['breaks']=0x0;}['blockAt'](_0x272016,_0x36d07f,_0x45863d,_0x2cdcae){return new BlockInfo(_0x2cdcae,this['length'],_0x45863d,this['height'],this['breaks']);}['replace'](_0x4baecd,_0x48e7ef,_0x4d7777){let _0x5b090f=_0x4d7777[0x0];return 0x1==_0x4d7777['length']&&(_0x5b090f instanceof HeightMapText||_0x5b090f instanceof HeightMapGap&&0x4&_0x5b090f['flags'])&&Math['abs'](this['length']-_0x5b090f['length'])<0xa?(_0x5b090f instanceof HeightMapGap?_0x5b090f=new HeightMapText(_0x5b090f['length'],this['height']):_0x5b090f['height']=this['height'],this['outdated']||(_0x5b090f['outdated']=!0x1),_0x5b090f):HeightMap['of'](_0x4d7777);}['updateHeight'](_0x61ab68,_0x514f3c=0x0,_0x537c84=!0x1,_0x36ac29){return _0x36ac29&&_0x36ac29['from']<=_0x514f3c&&_0x36ac29['more']?this['setHeight'](_0x36ac29['heights'][_0x36ac29['index']++]):(_0x537c84||this['outdated'])&&this['setHeight'](Math['max'](this['widgetHeight'],_0x61ab68['heightForLine'](this['length']-this['collapsed']))+this['breaks']*_0x61ab68['lineHeight']),this['outdated']=!0x1,this;}['toString'](){return'line('+this['length']+(this['collapsed']?-this['collapsed']:'')+(this['widgetHeight']?':'+this['widgetHeight']:'')+')';}}class HeightMapGap extends HeightMap{constructor(_0x3a0493){super(_0x3a0493,0x0);}['heightMetrics'](_0x19987e,_0xe16ad8){let _0x343281,_0x5dd58c=_0x19987e['doc']['lineAt'](_0xe16ad8)['number'],_0x4fae4c=_0x19987e['doc']['lineAt'](_0xe16ad8+this['length'])['number'],_0x3f8435=_0x4fae4c-_0x5dd58c+0x1,_0x1c8954=0x0;if(_0x19987e['lineWrapping']){let _0x5a4f31=Math['min'](this['height'],_0x19987e['lineHeight']*_0x3f8435);_0x343281=_0x5a4f31/_0x3f8435,this['length']>_0x3f8435+0x1&&(_0x1c8954=(this['height']-_0x5a4f31)/(this['length']-_0x3f8435-0x1));}else _0x343281=this['height']/_0x3f8435;return{'firstLine':_0x5dd58c,'lastLine':_0x4fae4c,'perLine':_0x343281,'perChar':_0x1c8954};}['blockAt'](_0x3cdc4a,_0x12ef22,_0x2016b5,_0x55b717){let {firstLine:_0x5e4ccb,lastLine:_0x33cf24,perLine:_0x33ff61,perChar:_0x26e7b4}=this['heightMetrics'](_0x12ef22,_0x55b717);if(_0x12ef22['lineWrapping']){let _0x2aa933=_0x55b717+(_0x3cdc4a<_0x12ef22['lineHeight']?0x0:Math['round'](Math['max'](0x0,Math['min'](0x1,(_0x3cdc4a-_0x2016b5)/this['height']))*this['length'])),_0x5d30b0=_0x12ef22['doc']['lineAt'](_0x2aa933),_0x43dfe7=_0x33ff61+_0x5d30b0['length']*_0x26e7b4,_0xbfbc19=Math['max'](_0x2016b5,_0x3cdc4a-_0x43dfe7/0x2);return new BlockInfo(_0x5d30b0['from'],_0x5d30b0['length'],_0xbfbc19,_0x43dfe7,0x0);}{let _0x460db1=Math['max'](0x0,Math['min'](_0x33cf24-_0x5e4ccb,Math['floor']((_0x3cdc4a-_0x2016b5)/_0x33ff61))),{from:_0x4b70fb,length:_0x369d6d}=_0x12ef22['doc']['line'](_0x5e4ccb+_0x460db1);return new BlockInfo(_0x4b70fb,_0x369d6d,_0x2016b5+_0x33ff61*_0x460db1,_0x33ff61,0x0);}}['lineAt'](_0x3875b9,_0x244fd5,_0x3168f3,_0x170e19,_0x1b0459){if(_0x244fd5==QueryType['ByHeight'])return this['blockAt'](_0x3875b9,_0x3168f3,_0x170e19,_0x1b0459);if(_0x244fd5==QueryType['ByPosNoHeight']){let {from:_0x595af5,to:_0x9bfa65}=_0x3168f3['doc']['lineAt'](_0x3875b9);return new BlockInfo(_0x595af5,_0x9bfa65-_0x595af5,0x0,0x0,0x0);}let {firstLine:_0x2a6130,perLine:_0x27c7d3,perChar:_0x112967}=this['heightMetrics'](_0x3168f3,_0x1b0459),_0x5df88a=_0x3168f3['doc']['lineAt'](_0x3875b9),_0x516314=_0x27c7d3+_0x5df88a['length']*_0x112967,_0x41caca=_0x5df88a['number']-_0x2a6130,_0x243a96=_0x170e19+_0x27c7d3*_0x41caca+_0x112967*(_0x5df88a['from']-_0x1b0459-_0x41caca);return new BlockInfo(_0x5df88a['from'],_0x5df88a['length'],Math['max'](_0x170e19,Math['min'](_0x243a96,_0x170e19+this['height']-_0x516314)),_0x516314,0x0);}['forEachLine'](_0x1086c1,_0x4f9051,_0x3c953b,_0x3c175c,_0x2ac7c3,_0x45a879){_0x1086c1=Math['max'](_0x1086c1,_0x2ac7c3),_0x4f9051=Math['min'](_0x4f9051,_0x2ac7c3+this['length']);let {firstLine:_0x109b32,perLine:_0x2e7a6c,perChar:_0x5885aa}=this['heightMetrics'](_0x3c953b,_0x2ac7c3);for(let _0x4e47fa=_0x1086c1,_0x46034c=_0x3c175c;_0x4e47fa<=_0x4f9051;){let _0x45c807=_0x3c953b['doc']['lineAt'](_0x4e47fa);if(_0x4e47fa==_0x1086c1){let _0x3574dc=_0x45c807['number']-_0x109b32;_0x46034c+=_0x2e7a6c*_0x3574dc+_0x5885aa*(_0x1086c1-_0x2ac7c3-_0x3574dc);}let _0x20adbb=_0x2e7a6c+_0x5885aa*_0x45c807['length'];_0x45a879(new BlockInfo(_0x45c807['from'],_0x45c807['length'],_0x46034c,_0x20adbb,0x0)),_0x46034c+=_0x20adbb,_0x4e47fa=_0x45c807['to']+0x1;}}['replace'](_0x362715,_0x556a8b,_0x663808){let _0x58b15a=this['length']-_0x556a8b;if(_0x58b15a>0x0){let _0x4eecb3=_0x663808[_0x663808['length']-0x1];_0x4eecb3 instanceof HeightMapGap?_0x663808[_0x663808['length']-0x1]=new HeightMapGap(_0x4eecb3['length']+_0x58b15a):_0x663808['push'](null,new HeightMapGap(_0x58b15a-0x1));}if(_0x362715>0x0){let _0x8bffe0=_0x663808[0x0];_0x8bffe0 instanceof HeightMapGap?_0x663808[0x0]=new HeightMapGap(_0x362715+_0x8bffe0['length']):_0x663808['unshift'](new HeightMapGap(_0x362715-0x1),null);}return HeightMap['of'](_0x663808);}['decomposeLeft'](_0x7b6aad,_0x2889ca){_0x2889ca['push'](new HeightMapGap(_0x7b6aad-0x1),null);}['decomposeRight'](_0x5e6a85,_0x4fed9b){_0x4fed9b['push'](null,new HeightMapGap(this['length']-_0x5e6a85-0x1));}['updateHeight'](_0x2f7138,_0x4f625f=0x0,_0x40feb4=!0x1,_0x25668f){let _0x1587bb=_0x4f625f+this['length'];if(_0x25668f&&_0x25668f['from']<=_0x4f625f+this['length']&&_0x25668f['more']){let _0xd62ac5=[],_0x3aeea1=Math['max'](_0x4f625f,_0x25668f['from']),_0x2c50a5=-0x1;for(_0x25668f['from']>_0x4f625f&&_0xd62ac5['push'](new HeightMapGap(_0x25668f['from']-_0x4f625f-0x1)['updateHeight'](_0x2f7138,_0x4f625f));_0x3aeea1<=_0x1587bb&&_0x25668f['more'];){let _0x3f79a8=_0x2f7138['doc']['lineAt'](_0x3aeea1)['length'];_0xd62ac5['length']&&_0xd62ac5['push'](null);let _0x4e82fd=_0x25668f['heights'][_0x25668f['index']++];-0x1==_0x2c50a5?_0x2c50a5=_0x4e82fd:Math['abs'](_0x4e82fd-_0x2c50a5)>=Epsilon&&(_0x2c50a5=-0x2);let _0x481eeb=new HeightMapText(_0x3f79a8,_0x4e82fd);_0x481eeb['outdated']=!0x1,_0xd62ac5['push'](_0x481eeb),_0x3aeea1+=_0x3f79a8+0x1;}_0x3aeea1<=_0x1587bb&&_0xd62ac5['push'](null,new HeightMapGap(_0x1587bb-_0x3aeea1)['updateHeight'](_0x2f7138,_0x3aeea1));let _0x461ebb=HeightMap['of'](_0xd62ac5);return(_0x2c50a5<0x0||Math['abs'](_0x461ebb['height']-this['height'])>=Epsilon||Math['abs'](_0x2c50a5-this['heightMetrics'](_0x2f7138,_0x4f625f)['perLine'])>=Epsilon)&&(heightChangeFlag=!0x0),replace(this,_0x461ebb);}return(_0x40feb4||this['outdated'])&&(this['setHeight'](_0x2f7138['heightForGap'](_0x4f625f,_0x4f625f+this['length'])),this['outdated']=!0x1),this;}['toString'](){return'gap('+this['length']+')';}}class HeightMapBranch extends HeightMap{constructor(_0x39e68c,_0x3dd509,_0x4404c7){super(_0x39e68c['length']+_0x3dd509+_0x4404c7['length'],_0x39e68c['height']+_0x4404c7['height'],_0x3dd509|(_0x39e68c['outdated']||_0x4404c7['outdated']?0x2:0x0)),this['left']=_0x39e68c,this['right']=_0x4404c7,this['size']=_0x39e68c['size']+_0x4404c7['size'];}get['break'](){return 0x1&this['flags'];}['blockAt'](_0x297d1d,_0x2433b6,_0x2f017e,_0x1a7cac){let _0x37cfe5=_0x2f017e+this['left']['height'];return _0x297d1d<_0x37cfe5?this['left']['blockAt'](_0x297d1d,_0x2433b6,_0x2f017e,_0x1a7cac):this['right']['blockAt'](_0x297d1d,_0x2433b6,_0x37cfe5,_0x1a7cac+this['left']['length']+this['break']);}['lineAt'](_0x43cca0,_0x403e75,_0x1e734d,_0x3877e7,_0x1a5cca){let _0xd731c8=_0x3877e7+this['left']['height'],_0x30d3ef=_0x1a5cca+this['left']['length']+this['break'],_0x4b895b=_0x403e75==QueryType['ByHeight']?_0x43cca0<_0xd731c8:_0x43cca0<_0x30d3ef,_0x511bfa=_0x4b895b?this['left']['lineAt'](_0x43cca0,_0x403e75,_0x1e734d,_0x3877e7,_0x1a5cca):this['right']['lineAt'](_0x43cca0,_0x403e75,_0x1e734d,_0xd731c8,_0x30d3ef);if(this['break']||(_0x4b895b?_0x511bfa['to']<_0x30d3ef:_0x511bfa['from']>_0x30d3ef))return _0x511bfa;let _0x19e9a5=_0x403e75==QueryType['ByPosNoHeight']?QueryType['ByPosNoHeight']:QueryType['ByPos'];return _0x4b895b?_0x511bfa['join'](this['right']['lineAt'](_0x30d3ef,_0x19e9a5,_0x1e734d,_0xd731c8,_0x30d3ef)):this['left']['lineAt'](_0x30d3ef,_0x19e9a5,_0x1e734d,_0x3877e7,_0x1a5cca)['join'](_0x511bfa);}['forEachLine'](_0x40f991,_0x563bb2,_0x23c896,_0x4f7bb5,_0x963f11,_0x172dd9){let _0x52c770=_0x4f7bb5+this['left']['height'],_0xf669e7=_0x963f11+this['left']['length']+this['break'];if(this['break'])_0x40f991<_0xf669e7&&this['left']['forEachLine'](_0x40f991,_0x563bb2,_0x23c896,_0x4f7bb5,_0x963f11,_0x172dd9),_0x563bb2>=_0xf669e7&&this['right']['forEachLine'](_0x40f991,_0x563bb2,_0x23c896,_0x52c770,_0xf669e7,_0x172dd9);else{let _0x4d38ce=this['lineAt'](_0xf669e7,QueryType['ByPos'],_0x23c896,_0x4f7bb5,_0x963f11);_0x40f991<_0x4d38ce['from']&&this['left']['forEachLine'](_0x40f991,_0x4d38ce['from']-0x1,_0x23c896,_0x4f7bb5,_0x963f11,_0x172dd9),_0x4d38ce['to']>=_0x40f991&&_0x4d38ce['from']<=_0x563bb2&&_0x172dd9(_0x4d38ce),_0x563bb2>_0x4d38ce['to']&&this['right']['forEachLine'](_0x4d38ce['to']+0x1,_0x563bb2,_0x23c896,_0x52c770,_0xf669e7,_0x172dd9);}}['replace'](_0x539860,_0x190ddb,_0x371a80){let _0x45e25e=this['left']['length']+this['break'];if(_0x190ddb<_0x45e25e)return this['balanced'](this['left']['replace'](_0x539860,_0x190ddb,_0x371a80),this['right']);if(_0x539860>this['left']['length'])return this['balanced'](this['left'],this['right']['replace'](_0x539860-_0x45e25e,_0x190ddb-_0x45e25e,_0x371a80));let _0x1f5d47=[];_0x539860>0x0&&this['decomposeLeft'](_0x539860,_0x1f5d47);let _0x43dfa0=_0x1f5d47['length'];for(let _0x33597a of _0x371a80)_0x1f5d47['push'](_0x33597a);if(_0x539860>0x0&&mergeGaps(_0x1f5d47,_0x43dfa0-0x1),_0x190ddb<this['length']){let _0x1bb3ad=_0x1f5d47['length'];this['decomposeRight'](_0x190ddb,_0x1f5d47),mergeGaps(_0x1f5d47,_0x1bb3ad);}return HeightMap['of'](_0x1f5d47);}['decomposeLeft'](_0x1c649e,_0x4b9477){let _0x5a58fc=this['left']['length'];if(_0x1c649e<=_0x5a58fc)return this['left']['decomposeLeft'](_0x1c649e,_0x4b9477);_0x4b9477['push'](this['left']),this['break']&&(_0x5a58fc++,_0x1c649e>=_0x5a58fc&&_0x4b9477['push'](null)),_0x1c649e>_0x5a58fc&&this['right']['decomposeLeft'](_0x1c649e-_0x5a58fc,_0x4b9477);}['decomposeRight'](_0x5626b9,_0x301e3c){let _0x1fce18=this['left']['length'],_0x2366c3=_0x1fce18+this['break'];if(_0x5626b9>=_0x2366c3)return this['right']['decomposeRight'](_0x5626b9-_0x2366c3,_0x301e3c);_0x5626b9<_0x1fce18&&this['left']['decomposeRight'](_0x5626b9,_0x301e3c),this['break']&&_0x5626b9<_0x2366c3&&_0x301e3c['push'](null),_0x301e3c['push'](this['right']);}['balanced'](_0x4714aa,_0xfabb43){return _0x4714aa['size']>0x2*_0xfabb43['size']||_0xfabb43['size']>0x2*_0x4714aa['size']?HeightMap['of'](this['break']?[_0x4714aa,null,_0xfabb43]:[_0x4714aa,_0xfabb43]):(this['left']=replace(this['left'],_0x4714aa),this['right']=replace(this['right'],_0xfabb43),this['setHeight'](_0x4714aa['height']+_0xfabb43['height']),this['outdated']=_0x4714aa['outdated']||_0xfabb43['outdated'],this['size']=_0x4714aa['size']+_0xfabb43['size'],this['length']=_0x4714aa['length']+this['break']+_0xfabb43['length'],this);}['updateHeight'](_0x20b5e4,_0x2bfd2c=0x0,_0x543ba7=!0x1,_0x409f9f){let {left:_0x165605,right:_0x3ef324}=this,_0x4bc1fe=_0x2bfd2c+_0x165605['length']+this['break'],_0xaf5abf=null;return _0x409f9f&&_0x409f9f['from']<=_0x2bfd2c+_0x165605['length']&&_0x409f9f['more']?_0xaf5abf=_0x165605=_0x165605['updateHeight'](_0x20b5e4,_0x2bfd2c,_0x543ba7,_0x409f9f):_0x165605['updateHeight'](_0x20b5e4,_0x2bfd2c,_0x543ba7),_0x409f9f&&_0x409f9f['from']<=_0x4bc1fe+_0x3ef324['length']&&_0x409f9f['more']?_0xaf5abf=_0x3ef324=_0x3ef324['updateHeight'](_0x20b5e4,_0x4bc1fe,_0x543ba7,_0x409f9f):_0x3ef324['updateHeight'](_0x20b5e4,_0x4bc1fe,_0x543ba7),_0xaf5abf?this['balanced'](_0x165605,_0x3ef324):(this['height']=this['left']['height']+this['right']['height'],this['outdated']=!0x1,this);}['toString'](){return this['left']+(this['break']?'\x20':'-')+this['right'];}}function mergeGaps(_0x2ab97a,_0x2f0c24){let _0x194a99,_0x1064c2;null==_0x2ab97a[_0x2f0c24]&&(_0x194a99=_0x2ab97a[_0x2f0c24-0x1])instanceof HeightMapGap&&(_0x1064c2=_0x2ab97a[_0x2f0c24+0x1])instanceof HeightMapGap&&_0x2ab97a['splice'](_0x2f0c24-0x1,0x3,new HeightMapGap(_0x194a99['length']+0x1+_0x1064c2['length']));}const relevantWidgetHeight=0x5;class NodeBuilder{constructor(_0xfaa72a,_0xd11039){this['pos']=_0xfaa72a,this['oracle']=_0xd11039,this['nodes']=[],this['lineStart']=-0x1,this['lineEnd']=-0x1,this['covering']=null,this['writtenTo']=_0xfaa72a;}get['isCovered'](){return this['covering']&&this['nodes'][this['nodes']['length']-0x1]==this['covering'];}['span'](_0x4226fd,_0x27092a){if(this['lineStart']>-0x1){let _0x3f82b3=Math['min'](_0x27092a,this['lineEnd']),_0x551c1c=this['nodes'][this['nodes']['length']-0x1];_0x551c1c instanceof HeightMapText?_0x551c1c['length']+=_0x3f82b3-this['pos']:(_0x3f82b3>this['pos']||!this['isCovered'])&&this['nodes']['push'](new HeightMapText(_0x3f82b3-this['pos'],-0x1)),this['writtenTo']=_0x3f82b3,_0x27092a>_0x3f82b3&&(this['nodes']['push'](null),this['writtenTo']++,this['lineStart']=-0x1);}this['pos']=_0x27092a;}['point'](_0x2ea392,_0xe1a68f,_0x3300c1){if(_0x2ea392<_0xe1a68f||_0x3300c1['heightRelevant']){let _0x30e273=_0x3300c1['widget']?_0x3300c1['widget']['estimatedHeight']:0x0,_0x5eab63=_0x3300c1['widget']?_0x3300c1['widget']['lineBreaks']:0x0;_0x30e273<0x0&&(_0x30e273=this['oracle']['lineHeight']);let _0x59f352=_0xe1a68f-_0x2ea392;_0x3300c1['block']?this['addBlock'](new HeightMapBlock(_0x59f352,_0x30e273,_0x3300c1)):(_0x59f352||_0x5eab63||_0x30e273>=relevantWidgetHeight)&&this['addLineDeco'](_0x30e273,_0x5eab63,_0x59f352);}else _0xe1a68f>_0x2ea392&&this['span'](_0x2ea392,_0xe1a68f);this['lineEnd']>-0x1&&this['lineEnd']<this['pos']&&(this['lineEnd']=this['oracle']['doc']['lineAt'](this['pos'])['to']);}['enterLine'](){if(this['lineStart']>-0x1)return;let {from:_0x587f89,to:_0x26327f}=this['oracle']['doc']['lineAt'](this['pos']);this['lineStart']=_0x587f89,this['lineEnd']=_0x26327f,this['writtenTo']<_0x587f89&&((this['writtenTo']<_0x587f89-0x1||null==this['nodes'][this['nodes']['length']-0x1])&&this['nodes']['push'](this['blankContent'](this['writtenTo'],_0x587f89-0x1)),this['nodes']['push'](null)),this['pos']>_0x587f89&&this['nodes']['push'](new HeightMapText(this['pos']-_0x587f89,-0x1)),this['writtenTo']=this['pos'];}['blankContent'](_0x5804e6,_0x10a5a8){let _0x195c61=new HeightMapGap(_0x10a5a8-_0x5804e6);return this['oracle']['doc']['lineAt'](_0x5804e6)['to']==_0x10a5a8&&(_0x195c61['flags']|=0x4),_0x195c61;}['ensureLine'](){this['enterLine']();let _0x4121f2=this['nodes']['length']?this['nodes'][this['nodes']['length']-0x1]:null;if(_0x4121f2 instanceof HeightMapText)return _0x4121f2;let _0x315705=new HeightMapText(0x0,-0x1);return this['nodes']['push'](_0x315705),_0x315705;}['addBlock'](_0x48f738){this['enterLine']();let _0x2d30b1=_0x48f738['deco'];_0x2d30b1&&_0x2d30b1['startSide']>0x0&&!this['isCovered']&&this['ensureLine'](),this['nodes']['push'](_0x48f738),this['writtenTo']=this['pos']=this['pos']+_0x48f738['length'],_0x2d30b1&&_0x2d30b1['endSide']>0x0&&(this['covering']=_0x48f738);}['addLineDeco'](_0x5c9a98,_0x5d49ef,_0x5cf6d5){let _0x46ed8f=this['ensureLine']();_0x46ed8f['length']+=_0x5cf6d5,_0x46ed8f['collapsed']+=_0x5cf6d5,_0x46ed8f['widgetHeight']=Math['max'](_0x46ed8f['widgetHeight'],_0x5c9a98),_0x46ed8f['breaks']+=_0x5d49ef,this['writtenTo']=this['pos']=this['pos']+_0x5cf6d5;}['finish'](_0x255edb){let _0x41ac9c=0x0==this['nodes']['length']?null:this['nodes'][this['nodes']['length']-0x1];!(this['lineStart']>-0x1)||_0x41ac9c instanceof HeightMapText||this['isCovered']?(this['writtenTo']<this['pos']||null==_0x41ac9c)&&this['nodes']['push'](this['blankContent'](this['writtenTo'],this['pos'])):this['nodes']['push'](new HeightMapText(0x0,-0x1));let _0x33c6f7=_0x255edb;for(let _0x5ba83f of this['nodes'])_0x5ba83f instanceof HeightMapText&&_0x5ba83f['updateHeight'](this['oracle'],_0x33c6f7),_0x33c6f7+=_0x5ba83f?_0x5ba83f['length']:0x1;return this['nodes'];}static['build'](_0x29590d,_0x1eab1b,_0x299763,_0x5d148e){let _0x132530=new NodeBuilder(_0x299763,_0x29590d);return RangeSet['spans'](_0x1eab1b,_0x299763,_0x5d148e,_0x132530,0x0),_0x132530['finish'](_0x299763);}}function heightRelevantDecoChanges(_0x4d37bd,_0x50356a,_0x524f80){let _0x526eb8=new DecorationComparator();return RangeSet['compare'](_0x4d37bd,_0x50356a,_0x524f80,_0x526eb8,0x0),_0x526eb8['changes'];}class DecorationComparator{constructor(){this['changes']=[];}['compareRange'](){}['comparePoint'](_0x5a70e6,_0x32b866,_0x183890,_0x5bce1e){(_0x5a70e6<_0x32b866||_0x183890&&_0x183890['heightRelevant']||_0x5bce1e&&_0x5bce1e['heightRelevant'])&&addRange(_0x5a70e6,_0x32b866,this['changes'],0x5);}}function visiblePixelRange(_0x37b925,_0x121e46){let _0x7f109d=_0x37b925['getBoundingClientRect'](),_0x4ed300=_0x37b925['ownerDocument'],_0x5714d5=_0x4ed300['defaultView']||window,_0x44bfe1=Math['max'](0x0,_0x7f109d['left']),_0xbfcadd=Math['min'](_0x5714d5['innerWidth'],_0x7f109d['right']),_0x107309=Math['max'](0x0,_0x7f109d['top']),_0x82c0fe=Math['min'](_0x5714d5['innerHeight'],_0x7f109d['bottom']);for(let _0x5bb514=_0x37b925['parentNode'];_0x5bb514&&_0x5bb514!=_0x4ed300['body'];)if(0x1==_0x5bb514['nodeType']){let _0x2d9108=_0x5bb514,_0x40df30=window['getComputedStyle'](_0x2d9108);if((_0x2d9108['scrollHeight']>_0x2d9108['clientHeight']||_0x2d9108['scrollWidth']>_0x2d9108['clientWidth'])&&'visible'!=_0x40df30['overflow']){let _0x501bc1=_0x2d9108['getBoundingClientRect']();_0x44bfe1=Math['max'](_0x44bfe1,_0x501bc1['left']),_0xbfcadd=Math['min'](_0xbfcadd,_0x501bc1['right']),_0x107309=Math['max'](_0x107309,_0x501bc1['top']),_0x82c0fe=Math['min'](_0x5bb514==_0x37b925['parentNode']?_0x5714d5['innerHeight']:_0x82c0fe,_0x501bc1['bottom']);}_0x5bb514='absolute'==_0x40df30['position']||'fixed'==_0x40df30['position']?_0x2d9108['offsetParent']:_0x2d9108['parentNode'];}else{if(0xb!=_0x5bb514['nodeType'])break;_0x5bb514=_0x5bb514['host'];}return{'left':_0x44bfe1-_0x7f109d['left'],'right':Math['max'](_0x44bfe1,_0xbfcadd)-_0x7f109d['left'],'top':_0x107309-(_0x7f109d['top']+_0x121e46),'bottom':Math['max'](_0x107309,_0x82c0fe)-(_0x7f109d['top']+_0x121e46)};}function inWindow(_0x50a0a2){let _0x3a9b26=_0x50a0a2['getBoundingClientRect'](),_0x204646=_0x50a0a2['ownerDocument']['defaultView']||window;return _0x3a9b26['left']<_0x204646['innerWidth']&&_0x3a9b26['right']>0x0&&_0x3a9b26['top']<_0x204646['innerHeight']&&_0x3a9b26['bottom']>0x0;}function fullPixelRange(_0x338b19,_0x22b8a6){let _0xa58e7f=_0x338b19['getBoundingClientRect']();return{'left':0x0,'right':_0xa58e7f['right']-_0xa58e7f['left'],'top':_0x22b8a6,'bottom':_0xa58e7f['bottom']-(_0xa58e7f['top']+_0x22b8a6)};}class LineGap{constructor(_0x583c17,_0x2fffb4,_0x556b9d,_0x3308ae){this['from']=_0x583c17,this['to']=_0x2fffb4,this['size']=_0x556b9d,this['displaySize']=_0x3308ae;}static['same'](_0x3dff8e,_0x538a1b){if(_0x3dff8e['length']!=_0x538a1b['length'])return!0x1;for(let _0x2ae6eb=0x0;_0x2ae6eb<_0x3dff8e['length'];_0x2ae6eb++){let _0x31a81a=_0x3dff8e[_0x2ae6eb],_0x51c7ac=_0x538a1b[_0x2ae6eb];if(_0x31a81a['from']!=_0x51c7ac['from']||_0x31a81a['to']!=_0x51c7ac['to']||_0x31a81a['size']!=_0x51c7ac['size'])return!0x1;}return!0x0;}['draw'](_0x24aa10,_0x8796ff){return Decoration['replace']({'widget':new LineGapWidget(this['displaySize']*(_0x8796ff?_0x24aa10['scaleY']:_0x24aa10['scaleX']),_0x8796ff)})['range'](this['from'],this['to']);}}class LineGapWidget extends WidgetType{constructor(_0x34ae8d,_0x3fc8f9){super(),this['size']=_0x34ae8d,this['vertical']=_0x3fc8f9;}['eq'](_0x55657b){return _0x55657b['size']==this['size']&&_0x55657b['vertical']==this['vertical'];}['toDOM'](){let _0xdf25a8=document['createElement']('div');return this['vertical']?_0xdf25a8['style']['height']=this['size']+'px':(_0xdf25a8['style']['width']=this['size']+'px',_0xdf25a8['style']['height']='2px',_0xdf25a8['style']['display']='inline-block'),_0xdf25a8;}get['estimatedHeight'](){return this['vertical']?this['size']:-0x1;}}class ViewState{constructor(_0x2ca55d){this['state']=_0x2ca55d,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 _0x43e104=_0x2ca55d['facet'](contentAttributes)['some'](_0x4e143a=>'function'!=typeof _0x4e143a&&'cm-lineWrapping'==_0x4e143a['class']);this['heightOracle']=new HeightOracle(_0x43e104),this['stateDeco']=_0x2ca55d['facet'](decorations)['filter'](_0x1bddf7=>'function'!=typeof _0x1bddf7),this['heightMap']=HeightMap['empty']()['applyChanges'](this['stateDeco'],Text['empty'],this['heightOracle']['setDoc'](_0x2ca55d['doc']),[new ChangedRange(0x0,0x0,0x0,_0x2ca55d['doc']['length'])]);for(let _0x569dff=0x0;_0x569dff<0x2&&(this['viewport']=this['getViewport'](0x0,null),this['updateForViewport']());_0x569dff++);this['updateViewportLines'](),this['lineGaps']=this['ensureLineGaps']([]),this['lineGapDeco']=Decoration['set'](this['lineGaps']['map'](_0x33c563=>_0x33c563['draw'](this,!0x1))),this['computeVisibleRanges']();}['updateForViewport'](){let _0x4a99b8=[this['viewport']],{main:_0x111384}=this['state']['selection'];for(let _0x5ab346=0x0;_0x5ab346<=0x1;_0x5ab346++){let _0x44d766=_0x5ab346?_0x111384['head']:_0x111384['anchor'];if(!_0x4a99b8['some'](({from:_0x49b449,to:_0x56ce16})=>_0x44d766>=_0x49b449&&_0x44d766<=_0x56ce16)){let {from:_0x14ada2,to:_0x33c6e5}=this['lineBlockAt'](_0x44d766);_0x4a99b8['push'](new Viewport(_0x14ada2,_0x33c6e5));}}return this['viewports']=_0x4a99b8['sort']((_0x2547c6,_0x3138d1)=>_0x2547c6['from']-_0x3138d1['from']),this['updateScaler']();}['updateScaler'](){let _0x287275=this['scaler'];return this['scaler']=this['heightMap']['height']<=0x6acfc0?IdScaler:new BigScaler(this['heightOracle'],this['heightMap'],this['viewports']),_0x287275['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,_0x51cebe=>{this['viewportLines']['push'](scaleBlock(_0x51cebe,this['scaler']));});}['update'](_0x404ce1,_0xb1dcae=null){this['state']=_0x404ce1['state'];let _0x53c962=this['stateDeco'];this['stateDeco']=this['state']['facet'](decorations)['filter'](_0x187a47=>'function'!=typeof _0x187a47);let _0x8b6935=_0x404ce1['changedRanges'],_0x4303cd=ChangedRange['extendWithRanges'](_0x8b6935,heightRelevantDecoChanges(_0x53c962,this['stateDeco'],_0x404ce1?_0x404ce1['changes']:ChangeSet['empty'](this['state']['doc']['length']))),_0x2790da=this['heightMap']['height'],_0x2ae418=this['scrolledToBottom']?null:this['scrollAnchorAt'](this['scrollTop']);clearHeightChangeFlag(),this['heightMap']=this['heightMap']['applyChanges'](this['stateDeco'],_0x404ce1['startState']['doc'],this['heightOracle']['setDoc'](this['state']['doc']),_0x4303cd),(this['heightMap']['height']!=_0x2790da||heightChangeFlag)&&(_0x404ce1['flags']|=0x2),_0x2ae418?(this['scrollAnchorPos']=_0x404ce1['changes']['mapPos'](_0x2ae418['from'],-0x1),this['scrollAnchorHeight']=_0x2ae418['top']):(this['scrollAnchorPos']=-0x1,this['scrollAnchorHeight']=_0x2790da);let _0x1d1794=_0x4303cd['length']?this['mapViewport'](this['viewport'],_0x404ce1['changes']):this['viewport'];(_0xb1dcae&&(_0xb1dcae['range']['head']<_0x1d1794['from']||_0xb1dcae['range']['head']>_0x1d1794['to'])||!this['viewportIsAppropriate'](_0x1d1794))&&(_0x1d1794=this['getViewport'](0x0,_0xb1dcae));let _0x462f39=_0x1d1794['from']!=this['viewport']['from']||_0x1d1794['to']!=this['viewport']['to'];this['viewport']=_0x1d1794,_0x404ce1['flags']|=this['updateForViewport'](),(_0x462f39||!_0x404ce1['changes']['empty']||0x2&_0x404ce1['flags'])&&this['updateViewportLines'](),(this['lineGaps']['length']||this['viewport']['to']-this['viewport']['from']>0xfa0)&&this['updateLineGaps'](this['ensureLineGaps'](this['mapLineGaps'](this['lineGaps'],_0x404ce1['changes']))),_0x404ce1['flags']|=this['computeVisibleRanges'](_0x404ce1['changes']),_0xb1dcae&&(this['scrollTarget']=_0xb1dcae),!this['mustEnforceCursorAssoc']&&_0x404ce1['selectionSet']&&_0x404ce1['view']['lineWrapping']&&_0x404ce1['state']['selection']['main']['empty']&&_0x404ce1['state']['selection']['main']['assoc']&&!_0x404ce1['state']['facet'](nativeSelectionHidden)&&(this['mustEnforceCursorAssoc']=!0x0);}['measure'](_0x180713){let _0x480aff=_0x180713['contentDOM'],_0x59f58d=window['getComputedStyle'](_0x480aff),_0x10d2c9=this['heightOracle'],_0x1d2bc8=_0x59f58d['whiteSpace'];this['defaultTextDirection']='rtl'==_0x59f58d['direction']?Direction['RTL']:Direction['LTR'];let _0x1291cc=this['heightOracle']['mustRefreshForWrapping'](_0x1d2bc8),_0xe8e04e=_0x480aff['getBoundingClientRect'](),_0x284268=_0x1291cc||this['mustMeasureContent']||this['contentDOMHeight']!=_0xe8e04e['height'];this['contentDOMHeight']=_0xe8e04e['height'],this['mustMeasureContent']=!0x1;let _0x3823da=0x0,_0x3f891c=0x0;if(_0xe8e04e['width']&&_0xe8e04e['height']){let {scaleX:_0x179863,scaleY:_0x3e50a1}=getScale(_0x480aff,_0xe8e04e);(_0x179863>0.005&&Math['abs'](this['scaleX']-_0x179863)>0.005||_0x3e50a1>0.005&&Math['abs'](this['scaleY']-_0x3e50a1)>0.005)&&(this['scaleX']=_0x179863,this['scaleY']=_0x3e50a1,_0x3823da|=0x10,_0x1291cc=_0x284268=!0x0);}let _0x3088aa=(parseInt(_0x59f58d['paddingTop'])||0x0)*this['scaleY'],_0x5d8c14=(parseInt(_0x59f58d['paddingBottom'])||0x0)*this['scaleY'];this['paddingTop']==_0x3088aa&&this['paddingBottom']==_0x5d8c14||(this['paddingTop']=_0x3088aa,this['paddingBottom']=_0x5d8c14,_0x3823da|=0x12),this['editorWidth']!=_0x180713['scrollDOM']['clientWidth']&&(_0x10d2c9['lineWrapping']&&(_0x284268=!0x0),this['editorWidth']=_0x180713['scrollDOM']['clientWidth'],_0x3823da|=0x10);let _0x33047a=_0x180713['scrollDOM']['scrollTop']*this['scaleY'];this['scrollTop']!=_0x33047a&&(this['scrollAnchorHeight']=-0x1,this['scrollTop']=_0x33047a),this['scrolledToBottom']=isScrolledToBottom(_0x180713['scrollDOM']);let _0x3d1f6a=(this['printing']?fullPixelRange:visiblePixelRange)(_0x480aff,this['paddingTop']),_0x358bcb=_0x3d1f6a['top']-this['pixelViewport']['top'],_0x1e50dc=_0x3d1f6a['bottom']-this['pixelViewport']['bottom'];this['pixelViewport']=_0x3d1f6a;let _0x4549e5=this['pixelViewport']['bottom']>this['pixelViewport']['top']&&this['pixelViewport']['right']>this['pixelViewport']['left'];if(_0x4549e5!=this['inView']&&(this['inView']=_0x4549e5,_0x4549e5&&(_0x284268=!0x0)),!this['inView']&&!this['scrollTarget']&&!inWindow(_0x180713['dom']))return 0x0;let _0x1d76ea=_0xe8e04e['width'];if(this['contentDOMWidth']==_0x1d76ea&&this['editorHeight']==_0x180713['scrollDOM']['clientHeight']||(this['contentDOMWidth']=_0xe8e04e['width'],this['editorHeight']=_0x180713['scrollDOM']['clientHeight'],_0x3823da|=0x10),_0x284268){let _0x558c20=_0x180713['docView']['measureVisibleLineHeights'](this['viewport']);if(_0x10d2c9['mustRefreshForHeights'](_0x558c20)&&(_0x1291cc=!0x0),_0x1291cc||_0x10d2c9['lineWrapping']&&Math['abs'](_0x1d76ea-this['contentDOMWidth'])>_0x10d2c9['charWidth']){let {lineHeight:_0x5226da,charWidth:_0x390c6f,textHeight:_0x35a1a3}=_0x180713['docView']['measureTextSize']();_0x1291cc=_0x5226da>0x0&&_0x10d2c9['refresh'](_0x1d2bc8,_0x5226da,_0x390c6f,_0x35a1a3,Math['max'](0x5,_0x1d76ea/_0x390c6f),_0x558c20),_0x1291cc&&(_0x180713['docView']['minWidth']=0x0,_0x3823da|=0x10);}_0x358bcb>0x0&&_0x1e50dc>0x0?_0x3f891c=Math['max'](_0x358bcb,_0x1e50dc):_0x358bcb<0x0&&_0x1e50dc<0x0&&(_0x3f891c=Math['min'](_0x358bcb,_0x1e50dc)),clearHeightChangeFlag();for(let _0x12d3de of this['viewports']){let _0x3f7101=_0x12d3de['from']==this['viewport']['from']?_0x558c20:_0x180713['docView']['measureVisibleLineHeights'](_0x12d3de);this['heightMap']=(_0x1291cc?HeightMap['empty']()['applyChanges'](this['stateDeco'],Text['empty'],this['heightOracle'],[new ChangedRange(0x0,0x0,0x0,_0x180713['state']['doc']['length'])]):this['heightMap'])['updateHeight'](_0x10d2c9,0x0,_0x1291cc,new MeasuredHeights(_0x12d3de['from'],_0x3f7101));}heightChangeFlag&&(_0x3823da|=0x2);}let _0x9ef848=!this['viewportIsAppropriate'](this['viewport'],_0x3f891c)||this['scrollTarget']&&(this['scrollTarget']['range']['head']<this['viewport']['from']||this['scrollTarget']['range']['head']>this['viewport']['to']);return _0x9ef848&&(0x2&_0x3823da&&(_0x3823da|=this['updateScaler']()),this['viewport']=this['getViewport'](_0x3f891c,this['scrollTarget']),_0x3823da|=this['updateForViewport']()),(0x2&_0x3823da||_0x9ef848)&&this['updateViewportLines'](),(this['lineGaps']['length']||this['viewport']['to']-this['viewport']['from']>0xfa0)&&this['updateLineGaps'](this['ensureLineGaps'](_0x1291cc?[]:this['lineGaps'],_0x180713)),_0x3823da|=this['computeVisibleRanges'](),this['mustEnforceCursorAssoc']&&(this['mustEnforceCursorAssoc']=!0x1,_0x180713['docView']['enforceCursorAssoc']()),_0x3823da;}get['visibleTop'](){return this['scaler']['fromDOM'](this['pixelViewport']['top']);}get['visibleBottom'](){return this['scaler']['fromDOM'](this['pixelViewport']['bottom']);}['getViewport'](_0x50dd50,_0x28e427){let _0x1eab7a=0.5-Math['max'](-0.5,Math['min'](0.5,_0x50dd50/0x3e8/0x2)),_0x2fa7fc=this['heightMap'],_0x1792b1=this['heightOracle'],{visibleTop:_0x4e1087,visibleBottom:_0x2037cd}=this,_0x37bc6a=new Viewport(_0x2fa7fc['lineAt'](_0x4e1087-0x3e8*_0x1eab7a,QueryType['ByHeight'],_0x1792b1,0x0,0x0)['from'],_0x2fa7fc['lineAt'](_0x2037cd+0x3e8*(0x1-_0x1eab7a),QueryType['ByHeight'],_0x1792b1,0x0,0x0)['to']);if(_0x28e427){let {head:_0x3dff45}=_0x28e427['range'];if(_0x3dff45<_0x37bc6a['from']||_0x3dff45>_0x37bc6a['to']){let _0x2d8255,_0x4d4df0=Math['min'](this['editorHeight'],this['pixelViewport']['bottom']-this['pixelViewport']['top']),_0x3793c3=_0x2fa7fc['lineAt'](_0x3dff45,QueryType['ByPos'],_0x1792b1,0x0,0x0);_0x2d8255='center'==_0x28e427['y']?(_0x3793c3['top']+_0x3793c3['bottom'])/0x2-_0x4d4df0/0x2:'start'==_0x28e427['y']||'nearest'==_0x28e427['y']&&_0x3dff45<_0x37bc6a['from']?_0x3793c3['top']:_0x3793c3['bottom']-_0x4d4df0,_0x37bc6a=new Viewport(_0x2fa7fc['lineAt'](_0x2d8255-0x1f4,QueryType['ByHeight'],_0x1792b1,0x0,0x0)['from'],_0x2fa7fc['lineAt'](_0x2d8255+_0x4d4df0+0x1f4,QueryType['ByHeight'],_0x1792b1,0x0,0x0)['to']);}}return _0x37bc6a;}['mapViewport'](_0x1cae96,_0xc2f1f){let _0xc41f87=_0xc2f1f['mapPos'](_0x1cae96['from'],-0x1),_0x35e5fd=_0xc2f1f['mapPos'](_0x1cae96['to'],0x1);return new Viewport(this['heightMap']['lineAt'](_0xc41f87,QueryType['ByPos'],this['heightOracle'],0x0,0x0)['from'],this['heightMap']['lineAt'](_0x35e5fd,QueryType['ByPos'],this['heightOracle'],0x0,0x0)['to']);}['viewportIsAppropriate']({from:_0x1bc3f4,to:_0xb1c102},_0x4d3e4f=0x0){if(!this['inView'])return!0x0;let {top:_0x513157}=this['heightMap']['lineAt'](_0x1bc3f4,QueryType['ByPos'],this['heightOracle'],0x0,0x0),{bottom:_0x5132d2}=this['heightMap']['lineAt'](_0xb1c102,QueryType['ByPos'],this['heightOracle'],0x0,0x0),{visibleTop:_0x2498d9,visibleBottom:_0x320145}=this;return(0x0==_0x1bc3f4||_0x513157<=_0x2498d9-Math['max'](0xa,Math['min'](-_0x4d3e4f,0xfa)))&&(_0xb1c102==this['state']['doc']['length']||_0x5132d2>=_0x320145+Math['max'](0xa,Math['min'](_0x4d3e4f,0xfa)))&&_0x513157>_0x2498d9-0x7d0&&_0x5132d2<_0x320145+0x7d0;}['mapLineGaps'](_0x2092de,_0xc1c0e0){if(!_0x2092de['length']||_0xc1c0e0['empty'])return _0x2092de;let _0x4fcf8c=[];for(let _0x45fa7c of _0x2092de)_0xc1c0e0['touchesRange'](_0x45fa7c['from'],_0x45fa7c['to'])||_0x4fcf8c['push'](new LineGap(_0xc1c0e0['mapPos'](_0x45fa7c['from']),_0xc1c0e0['mapPos'](_0x45fa7c['to']),_0x45fa7c['size'],_0x45fa7c['displaySize']));return _0x4fcf8c;}['ensureLineGaps'](_0x35d1e0,_0x27b29e){let _0x5bd916=this['heightOracle']['lineWrapping'],_0x5dd2e4=_0x5bd916?0x2710:0x7d0,_0x5c6bd5=_0x5dd2e4>>0x1,_0x4f50a7=_0x5dd2e4<<0x1;if(this['defaultTextDirection']!=Direction['LTR']&&!_0x5bd916)return[];let _0x3c1309=[],_0x5d7c83=(_0x3b0bd4,_0x347aa2,_0x57f439,_0x25308f)=>{if(_0x347aa2-_0x3b0bd4<_0x5c6bd5)return;let _0x909b00=this['state']['selection']['main'],_0x115a19=[_0x909b00['from']];_0x909b00['empty']||_0x115a19['push'](_0x909b00['to']);for(let _0x5851ba of _0x115a19)if(_0x5851ba>_0x3b0bd4&&_0x5851ba<_0x347aa2)return _0x5d7c83(_0x3b0bd4,_0x5851ba-0xa,_0x57f439,_0x25308f),void _0x5d7c83(_0x5851ba+0xa,_0x347aa2,_0x57f439,_0x25308f);let _0x2a26dc=find(_0x35d1e0,_0x1a0591=>_0x1a0591['from']>=_0x57f439['from']&&_0x1a0591['to']<=_0x57f439['to']&&Math['abs'](_0x1a0591['from']-_0x3b0bd4)<_0x5c6bd5&&Math['abs'](_0x1a0591['to']-_0x347aa2)<_0x5c6bd5&&!_0x115a19['some'](_0x56884a=>_0x1a0591['from']<_0x56884a&&_0x1a0591['to']>_0x56884a));if(!_0x2a26dc){if(_0x347aa2<_0x57f439['to']&&_0x27b29e&&_0x5bd916&&_0x27b29e['visibleRanges']['some'](_0xa12406=>_0xa12406['from']<=_0x347aa2&&_0xa12406['to']>=_0x347aa2)){let _0xe178b6=_0x27b29e['moveToLineBoundary'](EditorSelection['cursor'](_0x347aa2),!0x1,!0x0)['head'];_0xe178b6>_0x3b0bd4&&(_0x347aa2=_0xe178b6);}let _0x392bca=this['gapSize'](_0x57f439,_0x3b0bd4,_0x347aa2,_0x25308f);_0x2a26dc=new LineGap(_0x3b0bd4,_0x347aa2,_0x392bca,_0x5bd916||_0x392bca<0x1e8480?_0x392bca:0x1e8480);}_0x3c1309['push'](_0x2a26dc);},_0x1f562f=_0x529a20=>{if(_0x529a20['length']<_0x4f50a7||_0x529a20['type']!=BlockType['Text'])return;let _0x1541f7=lineStructure(_0x529a20['from'],_0x529a20['to'],this['stateDeco']);if(_0x1541f7['total']<_0x4f50a7)return;let _0x24968e,_0x499844,_0x131aca=this['scrollTarget']?this['scrollTarget']['range']['head']:null;if(_0x5bd916){let _0x3b18bf,_0x387bcf,_0x58ff44=_0x5dd2e4/this['heightOracle']['lineLength']*this['heightOracle']['lineHeight'];if(null!=_0x131aca){let _0x9cbe28=findFraction(_0x1541f7,_0x131aca),_0x2a3716=((this['visibleBottom']-this['visibleTop'])/0x2+_0x58ff44)/_0x529a20['height'];_0x3b18bf=_0x9cbe28-_0x2a3716,_0x387bcf=_0x9cbe28+_0x2a3716;}else _0x3b18bf=(this['visibleTop']-_0x529a20['top']-_0x58ff44)/_0x529a20['height'],_0x387bcf=(this['visibleBottom']-_0x529a20['top']+_0x58ff44)/_0x529a20['height'];_0x24968e=findPosition(_0x1541f7,_0x3b18bf),_0x499844=findPosition(_0x1541f7,_0x387bcf);}else{let _0x58faa5=_0x1541f7['total']*this['heightOracle']['charWidth'],_0x3c3702=_0x5dd2e4*this['heightOracle']['charWidth'],_0x5baad8=0x0;if(_0x58faa5>0x1e8480){for(let _0x5b3cfa of _0x35d1e0)_0x5b3cfa['from']>=_0x529a20['from']&&_0x5b3cfa['from']<_0x529a20['to']&&_0x5b3cfa['size']!=_0x5b3cfa['displaySize']&&_0x5b3cfa['from']*this['heightOracle']['charWidth']+_0x5baad8<this['pixelViewport']['left']&&(_0x5baad8=_0x5b3cfa['size']-_0x5b3cfa['displaySize']);}let _0x55ac7b,_0x5122b3,_0x5c8c94=this['pixelViewport']['left']+_0x5baad8,_0x4a4e70=this['pixelViewport']['right']+_0x5baad8;if(null!=_0x131aca){let _0x3ef627=findFraction(_0x1541f7,_0x131aca),_0x4ad36b=((_0x4a4e70-_0x5c8c94)/0x2+_0x3c3702)/_0x58faa5;_0x55ac7b=_0x3ef627-_0x4ad36b,_0x5122b3=_0x3ef627+_0x4ad36b;}else _0x55ac7b=(_0x5c8c94-_0x3c3702)/_0x58faa5,_0x5122b3=(_0x4a4e70+_0x3c3702)/_0x58faa5;_0x24968e=findPosition(_0x1541f7,_0x55ac7b),_0x499844=findPosition(_0x1541f7,_0x5122b3);}_0x24968e>_0x529a20['from']&&_0x5d7c83(_0x529a20['from'],_0x24968e,_0x529a20,_0x1541f7),_0x499844<_0x529a20['to']&&_0x5d7c83(_0x499844,_0x529a20['to'],_0x529a20,_0x1541f7);};for(let _0x4b5c5d of this['viewportLines'])Array['isArray'](_0x4b5c5d['type'])?_0x4b5c5d['type']['forEach'](_0x1f562f):_0x1f562f(_0x4b5c5d);return _0x3c1309;}['gapSize'](_0x4de8f3,_0xed10f6,_0x408fac,_0xf8f43){let _0x4256e2=findFraction(_0xf8f43,_0x408fac)-findFraction(_0xf8f43,_0xed10f6);return this['heightOracle']['lineWrapping']?_0x4de8f3['height']*_0x4256e2:_0xf8f43['total']*this['heightOracle']['charWidth']*_0x4256e2;}['updateLineGaps'](_0xc416b4){LineGap['same'](_0xc416b4,this['lineGaps'])||(this['lineGaps']=_0xc416b4,this['lineGapDeco']=Decoration['set'](_0xc416b4['map'](_0x27ff24=>_0x27ff24['draw'](this,this['heightOracle']['lineWrapping']))));}['computeVisibleRanges'](_0xd84c0b){let _0x495a1a=this['stateDeco'];this['lineGaps']['length']&&(_0x495a1a=_0x495a1a['concat'](this['lineGapDeco']));let _0x83e0=[];RangeSet['spans'](_0x495a1a,this['viewport']['from'],this['viewport']['to'],{'span'(_0x1315aa,_0x638ee8){_0x83e0['push']({'from':_0x1315aa,'to':_0x638ee8});},'point'(){}},0x14);let _0x5bf229=0x0;if(_0x83e0['length']!=this['visibleRanges']['length'])_0x5bf229=0xc;else for(let _0x510a9c=0x0;_0x510a9c<_0x83e0['length']&&!(0x8&_0x5bf229);_0x510a9c++){let _0x149da0=this['visibleRanges'][_0x510a9c],_0x3408e6=_0x83e0[_0x510a9c];_0x149da0['from']==_0x3408e6['from']&&_0x149da0['to']==_0x3408e6['to']||(_0x5bf229|=0x4,_0xd84c0b&&_0xd84c0b['mapPos'](_0x149da0['from'],-0x1)==_0x3408e6['from']&&_0xd84c0b['mapPos'](_0x149da0['to'],0x1)==_0x3408e6['to']||(_0x5bf229|=0x8));}return this['visibleRanges']=_0x83e0,_0x5bf229;}['lineBlockAt'](_0x4e5631){return _0x4e5631>=this['viewport']['from']&&_0x4e5631<=this['viewport']['to']&&this['viewportLines']['find'](_0x208d49=>_0x208d49['from']<=_0x4e5631&&_0x208d49['to']>=_0x4e5631)||scaleBlock(this['heightMap']['lineAt'](_0x4e5631,QueryType['ByPos'],this['heightOracle'],0x0,0x0),this['scaler']);}['lineBlockAtHeight'](_0x929e57){return _0x929e57>=this['viewportLines'][0x0]['top']&&_0x929e57<=this['viewportLines'][this['viewportLines']['length']-0x1]['bottom']&&this['viewportLines']['find'](_0xd32e38=>_0xd32e38['top']<=_0x929e57&&_0xd32e38['bottom']>=_0x929e57)||scaleBlock(this['heightMap']['lineAt'](this['scaler']['fromDOM'](_0x929e57),QueryType['ByHeight'],this['heightOracle'],0x0,0x0),this['scaler']);}['scrollAnchorAt'](_0x19ed6b){let _0x28d1af=this['lineBlockAtHeight'](_0x19ed6b+0x8);return _0x28d1af['from']>=this['viewport']['from']||this['viewportLines'][0x0]['top']-_0x19ed6b>0xc8?_0x28d1af:this['viewportLines'][0x0];}['elementAtHeight'](_0x1a1f18){return scaleBlock(this['heightMap']['blockAt'](this['scaler']['fromDOM'](_0x1a1f18),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(_0x37ede3,_0x100638){this['from']=_0x37ede3,this['to']=_0x100638;}}function lineStructure(_0x524735,_0x38a740,_0x274fcf){let _0x9c3029=[],_0x32a82b=_0x524735,_0x5da73e=0x0;return RangeSet['spans'](_0x274fcf,_0x524735,_0x38a740,{'span'(){},'point'(_0x448f1a,_0x45790d){_0x448f1a>_0x32a82b&&(_0x9c3029['push']({'from':_0x32a82b,'to':_0x448f1a}),_0x5da73e+=_0x448f1a-_0x32a82b),_0x32a82b=_0x45790d;}},0x14),_0x32a82b<_0x38a740&&(_0x9c3029['push']({'from':_0x32a82b,'to':_0x38a740}),_0x5da73e+=_0x38a740-_0x32a82b),{'total':_0x5da73e,'ranges':_0x9c3029};}function findPosition({total:_0x174ff0,ranges:_0x30888e},_0xa7b139){if(_0xa7b139<=0x0)return _0x30888e[0x0]['from'];if(_0xa7b139>=0x1)return _0x30888e[_0x30888e['length']-0x1]['to'];let _0x536776=Math['floor'](_0x174ff0*_0xa7b139);for(let _0x55dc2b=0x0;;_0x55dc2b++){let {from:_0xdd44af,to:_0x5be89a}=_0x30888e[_0x55dc2b],_0x40961b=_0x5be89a-_0xdd44af;if(_0x536776<=_0x40961b)return _0xdd44af+_0x536776;_0x536776-=_0x40961b;}}function findFraction(_0x170bce,_0x1268ad){let _0x4f58ef=0x0;for(let {from:_0x2e5645,to:_0x4a7bd5}of _0x170bce['ranges']){if(_0x1268ad<=_0x4a7bd5){_0x4f58ef+=_0x1268ad-_0x2e5645;break;}_0x4f58ef+=_0x4a7bd5-_0x2e5645;}return _0x4f58ef/_0x170bce['total'];}function find(_0xe5f4bc,_0x5aaff8){for(let _0x1c5301 of _0xe5f4bc)if(_0x5aaff8(_0x1c5301))return _0x1c5301;}const IdScaler={'toDOM':_0x3e9caa=>_0x3e9caa,'fromDOM':_0xb09e55=>_0xb09e55,'scale':0x1,'eq'(_0x19b801){return _0x19b801==this;}};class BigScaler{constructor(_0x1f9fa4,_0x27cf17,_0x514149){let _0x1edf70=0x0,_0x545dc4=0x0,_0x224b0a=0x0;this['viewports']=_0x514149['map'](({from:_0x5b4bec,to:_0x17522a})=>{let _0x314241=_0x27cf17['lineAt'](_0x5b4bec,QueryType['ByPos'],_0x1f9fa4,0x0,0x0)['top'],_0x325b43=_0x27cf17['lineAt'](_0x17522a,QueryType['ByPos'],_0x1f9fa4,0x0,0x0)['bottom'];return _0x1edf70+=_0x325b43-_0x314241,{'from':_0x5b4bec,'to':_0x17522a,'top':_0x314241,'bottom':_0x325b43,'domTop':0x0,'domBottom':0x0};}),this['scale']=(0x6acfc0-_0x1edf70)/(_0x27cf17['height']-_0x1edf70);for(let _0x238b0b of this['viewports'])_0x238b0b['domTop']=_0x224b0a+(_0x238b0b['top']-_0x545dc4)*this['scale'],_0x224b0a=_0x238b0b['domBottom']=_0x238b0b['domTop']+(_0x238b0b['bottom']-_0x238b0b['top']),_0x545dc4=_0x238b0b['bottom'];}['toDOM'](_0x53089d){for(let _0x12a418=0x0,_0x206c75=0x0,_0x5990c7=0x0;;_0x12a418++){let _0x3f2ed6=_0x12a418<this['viewports']['length']?this['viewports'][_0x12a418]:null;if(!_0x3f2ed6||_0x53089d<_0x3f2ed6['top'])return _0x5990c7+(_0x53089d-_0x206c75)*this['scale'];if(_0x53089d<=_0x3f2ed6['bottom'])return _0x3f2ed6['domTop']+(_0x53089d-_0x3f2ed6['top']);_0x206c75=_0x3f2ed6['bottom'],_0x5990c7=_0x3f2ed6['domBottom'];}}['fromDOM'](_0x40f504){for(let _0x20581a=0x0,_0x5cb851=0x0,_0x4b795f=0x0;;_0x20581a++){let _0x3f92c5=_0x20581a<this['viewports']['length']?this['viewports'][_0x20581a]:null;if(!_0x3f92c5||_0x40f504<_0x3f92c5['domTop'])return _0x5cb851+(_0x40f504-_0x4b795f)/this['scale'];if(_0x40f504<=_0x3f92c5['domBottom'])return _0x3f92c5['top']+(_0x40f504-_0x3f92c5['domTop']);_0x5cb851=_0x3f92c5['bottom'],_0x4b795f=_0x3f92c5['domBottom'];}}['eq'](_0x3ff878){return _0x3ff878 instanceof BigScaler&&(this['scale']==_0x3ff878['scale']&&this['viewports']['length']==_0x3ff878['viewports']['length']&&this['viewports']['every']((_0x3aafde,_0x2034b1)=>_0x3aafde['from']==_0x3ff878['viewports'][_0x2034b1]['from']&&_0x3aafde['to']==_0x3ff878['viewports'][_0x2034b1]['to']));}}function scaleBlock(_0x54d68d,_0x4ef69f){if(0x1==_0x4ef69f['scale'])return _0x54d68d;let _0x194aef=_0x4ef69f['toDOM'](_0x54d68d['top']),_0x525e29=_0x4ef69f['toDOM'](_0x54d68d['bottom']);return new BlockInfo(_0x54d68d['from'],_0x54d68d['length'],_0x194aef,_0x525e29-_0x194aef,Array['isArray'](_0x54d68d['_content'])?_0x54d68d['_content']['map'](_0xdbdbc=>scaleBlock(_0xdbdbc,_0x4ef69f)):_0x54d68d['_content']);}const theme=Facet['define']({'combine':_0x4ccfca=>_0x4ccfca['join']('\x20')}),darkTheme=Facet['define']({'combine':_0x5aa0fd=>_0x5aa0fd['indexOf'](!0x0)>-0x1}),baseThemeID=StyleModule['newName'](),baseLightID=StyleModule['newName'](),baseDarkID=StyleModule['newName'](),lightDarkIDs={'&light':'.'+baseLightID,'&dark':'.'+baseDarkID};function buildTheme(_0x4ded25,_0x3ff259,_0x1af9f3){return new StyleModule(_0x3ff259,{'finish':_0x3ffe63=>/&/['test'](_0x3ffe63)?_0x3ffe63['replace'](/&\w*/,_0x170088=>{if('&'==_0x170088)return _0x4ded25;if(!_0x1af9f3||!_0x1af9f3[_0x170088])throw new RangeError('Unsupported\x20selector:\x20'+_0x170088);return _0x1af9f3[_0x170088];}):_0x4ded25+'\x20'+_0x3ffe63});}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(_0x5c85c1){this['view']=_0x5c85c1,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']=_0x5c85c1['contentDOM'],this['observer']=new MutationObserver(_0x17029a=>{for(let _0x22206a of _0x17029a)this['queue']['push'](_0x22206a);(browser['ie']&&browser['ie_version']<=0xb||browser['ios']&&_0x5c85c1['composing'])&&_0x17029a['some'](_0x3d9a0b=>'childList'==_0x3d9a0b['type']&&_0x3d9a0b['removedNodes']['length']||'characterData'==_0x3d9a0b['type']&&_0x3d9a0b['oldValue']['length']>_0x3d9a0b['target']['nodeValue']['length'])?this['flushSoon']():this['flush']();}),!window['EditContext']||!browser['android']||!0x1===_0x5c85c1['constructor']['EDIT_CONTEXT']||browser['chrome']&&browser['chrome_version']<0x7e||(this['editContext']=new EditContextManager(_0x5c85c1),_0x5c85c1['state']['facet'](editable)&&(_0x5c85c1['contentDOM']['editContext']=this['editContext']['editContext'])),useCharData&&(this['onCharData']=_0x46a72f=>{this['queue']['push']({'target':_0x46a72f['target'],'type':'characterData','oldValue':_0x46a72f['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 _0x554db9;(null===(_0x554db9=this['view']['docView'])||void 0x0===_0x554db9?void 0x0:_0x554db9['lastUpdate'])<Date['now']()-0x4b&&this['onResize']();}),this['resizeScroll']['observe'](_0x5c85c1['scrollDOM'])),this['addWindowListeners'](this['win']=_0x5c85c1['win']),this['start'](),'function'==typeof IntersectionObserver&&(this['intersection']=new IntersectionObserver(_0x22c4e1=>{this['parentCheck']<0x0&&(this['parentCheck']=setTimeout(this['listenForScroll']['bind'](this),0x3e8)),_0x22c4e1['length']>0x0&&_0x22c4e1[_0x22c4e1['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(_0x1f0036=>{_0x1f0036['length']>0x0&&_0x1f0036[_0x1f0036['length']-0x1]['intersectionRatio']>0x0&&this['onScrollChanged'](document['createEvent']('Event'));},{})),this['listenForScroll'](),this['readSelectionRange']();}['onScrollChanged'](_0x38cc41){this['view']['inputState']['runHandlers']('scroll',_0x38cc41),this['intersecting']&&this['view']['measure']();}['onScroll'](_0xf14867){this['intersecting']&&this['flush'](!0x1),this['editContext']&&this['view']['requestMeasure'](this['editContext']['measureReq']),this['onScrollChanged'](_0xf14867);}['onResize'](){this['resizeTimeout']<0x0&&(this['resizeTimeout']=setTimeout(()=>{this['resizeTimeout']=-0x1,this['view']['requestMeasure']();},0x32));}['onPrint'](_0x85160c){('change'!=_0x85160c['type']&&_0x85160c['type']||_0x85160c['matches'])&&(this['view']['viewState']['printing']=!0x0,this['view']['measure'](),setTimeout(()=>{this['view']['viewState']['printing']=!0x1,this['view']['requestMeasure']();},0x1f4));}['updateGaps'](_0x236699){if(this['gapIntersection']&&(_0x236699['length']!=this['gaps']['length']||this['gaps']['some']((_0x25a82e,_0x1a01a7)=>_0x25a82e!=_0x236699[_0x1a01a7]))){this['gapIntersection']['disconnect']();for(let _0x7af7f3 of _0x236699)this['gapIntersection']['observe'](_0x7af7f3);this['gaps']=_0x236699;}}['onSelectionChange'](_0x35f9e4){let _0x5e85f4=this['selectionChanged'];if(!this['readSelectionRange']()||this['delayedAndroidKey'])return;let {view:_0x3c992c}=this,_0x53c0cc=this['selectionRange'];if(_0x3c992c['state']['facet'](editable)?_0x3c992c['root']['activeElement']!=this['dom']:!hasSelection(this['dom'],_0x53c0cc))return;let _0x2ebe00=_0x53c0cc['anchorNode']&&_0x3c992c['docView']['nearest'](_0x53c0cc['anchorNode']);_0x2ebe00&&_0x2ebe00['ignoreEvent'](_0x35f9e4)?_0x5e85f4||(this['selectionChanged']=!0x1):(browser['ie']&&browser['ie_version']<=0xb||browser['android']&&browser['chrome'])&&!_0x3c992c['state']['selection']['main']['empty']&&_0x53c0cc['focusNode']&&isEquivalentPosition(_0x53c0cc['focusNode'],_0x53c0cc['focusOffset'],_0x53c0cc['anchorNode'],_0x53c0cc['anchorOffset'])?this['flushSoon']():this['flush'](!0x1);}['readSelectionRange'](){let {view:_0x712f52}=this,_0x515fa4=getSelection(_0x712f52['root']);if(!_0x515fa4)return!0x1;let _0x2c97b0=browser['safari']&&0xb==_0x712f52['root']['nodeType']&&_0x712f52['root']['activeElement']==this['dom']&&safariSelectionRangeHack(this['view'],_0x515fa4)||_0x515fa4;if(!_0x2c97b0||this['selectionRange']['eq'](_0x2c97b0))return!0x1;let _0x2f904e=hasSelection(this['dom'],_0x2c97b0);return _0x2f904e&&!this['selectionChanged']&&_0x712f52['inputState']['lastFocusTime']>Date['now']()-0xc8&&_0x712f52['inputState']['lastTouchTime']<Date['now']()-0x12c&&atElementStart(this['dom'],_0x2c97b0)?(this['view']['inputState']['lastFocusTime']=0x0,_0x712f52['docView']['updateSelection'](),!0x1):(this['selectionRange']['setRange'](_0x2c97b0),_0x2f904e&&(this['selectionChanged']=!0x0),!0x0);}['setSelectionRange'](_0x16dccc,_0x254202){this['selectionRange']['set'](_0x16dccc['node'],_0x16dccc['offset'],_0x254202['node'],_0x254202['offset']),this['selectionChanged']=!0x1;}['clearSelectionRange'](){this['selectionRange']['set'](null,0x0,null,0x0);}['listenForScroll'](){this['parentCheck']=-0x1;let _0x324b53=0x0,_0xc7aed1=null;for(let _0x26cede=this['dom'];_0x26cede;)if(0x1==_0x26cede['nodeType'])!_0xc7aed1&&_0x324b53<this['scrollTargets']['length']&&this['scrollTargets'][_0x324b53]==_0x26cede?_0x324b53++:_0xc7aed1||(_0xc7aed1=this['scrollTargets']['slice'](0x0,_0x324b53)),_0xc7aed1&&_0xc7aed1['push'](_0x26cede),_0x26cede=_0x26cede['assignedSlot']||_0x26cede['parentNode'];else{if(0xb!=_0x26cede['nodeType'])break;_0x26cede=_0x26cede['host'];}if(_0x324b53<this['scrollTargets']['length']&&!_0xc7aed1&&(_0xc7aed1=this['scrollTargets']['slice'](0x0,_0x324b53)),_0xc7aed1){for(let _0x40e81c of this['scrollTargets'])_0x40e81c['removeEventListener']('scroll',this['onScroll']);for(let _0x21a927 of this['scrollTargets']=_0xc7aed1)_0x21a927['addEventListener']('scroll',this['onScroll']);}}['ignore'](_0x1adc92){if(!this['active'])return _0x1adc92();try{return this['stop'](),_0x1adc92();}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'](_0x57ccf6,_0x1fc6d){var _0x45ca88;if(!this['delayedAndroidKey']){let _0x33e53a=()=>{let _0x3c2953=this['delayedAndroidKey'];_0x3c2953&&(this['clearDelayedAndroidKey'](),this['view']['inputState']['lastKeyCode']=_0x3c2953['keyCode'],this['view']['inputState']['lastKeyTime']=Date['now'](),!this['flush']()&&_0x3c2953['force']&&dispatchKey(this['dom'],_0x3c2953['key'],_0x3c2953['keyCode']));};this['flushingAndroidKey']=this['view']['win']['requestAnimationFrame'](_0x33e53a);}this['delayedAndroidKey']&&'Enter'!=_0x57ccf6||(this['delayedAndroidKey']={'key':_0x57ccf6,'keyCode':_0x1fc6d,'force':this['lastChange']<Date['now']()-0x32||!!(null===(_0x45ca88=this['delayedAndroidKey'])||void 0x0===_0x45ca88?void 0x0:_0x45ca88['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 _0x469595 of this['observer']['takeRecords']())this['queue']['push'](_0x469595);return this['queue'];}['processRecords'](){let _0x54b602=this['pendingRecords']();_0x54b602['length']&&(this['queue']=[]);let _0x4f9efc=-0x1,_0x528381=-0x1,_0x2f08b7=!0x1;for(let _0x1dff86 of _0x54b602){let _0x46920d=this['readMutation'](_0x1dff86);_0x46920d&&(_0x46920d['typeOver']&&(_0x2f08b7=!0x0),-0x1==_0x4f9efc?{from:_0x4f9efc,to:_0x528381}=_0x46920d:(_0x4f9efc=Math['min'](_0x46920d['from'],_0x4f9efc),_0x528381=Math['max'](_0x46920d['to'],_0x528381)));}return{'from':_0x4f9efc,'to':_0x528381,'typeOver':_0x2f08b7};}['readChange'](){let {from:_0x180a41,to:_0x290557,typeOver:_0x2743dd}=this['processRecords'](),_0x1dcae1=this['selectionChanged']&&hasSelection(this['dom'],this['selectionRange']);if(_0x180a41<0x0&&!_0x1dcae1)return null;_0x180a41>-0x1&&(this['lastChange']=Date['now']()),this['view']['inputState']['lastFocusTime']=0x0,this['selectionChanged']=!0x1;let _0x1efbac=new DOMChange(this['view'],_0x180a41,_0x290557,_0x2743dd);return this['view']['docView']['domChanged']={'newSel':_0x1efbac['newSel']?_0x1efbac['newSel']['main']:null},_0x1efbac;}['flush'](_0x1ece50=!0x0){if(this['delayedFlush']>=0x0||this['delayedAndroidKey'])return!0x1;_0x1ece50&&this['readSelectionRange']();let _0xec9dfd=this['readChange']();if(!_0xec9dfd)return this['view']['requestMeasure'](),!0x1;let _0x4b4109=this['view']['state'],_0x51f638=applyDOMChange(this['view'],_0xec9dfd);return this['view']['state']==_0x4b4109&&(_0xec9dfd['domChanged']||_0xec9dfd['newSel']&&!_0xec9dfd['newSel']['main']['eq'](this['view']['state']['selection']['main']))&&this['view']['update']([]),_0x51f638;}['readMutation'](_0x3e2c25){let _0x4e8e8a=this['view']['docView']['nearest'](_0x3e2c25['target']);if(!_0x4e8e8a||_0x4e8e8a['ignoreMutation'](_0x3e2c25))return null;if(_0x4e8e8a['markDirty']('attributes'==_0x3e2c25['type']),'attributes'==_0x3e2c25['type']&&(_0x4e8e8a['flags']|=0x4),'childList'==_0x3e2c25['type']){let _0x2a6ae2=findChild(_0x4e8e8a,_0x3e2c25['previousSibling']||_0x3e2c25['target']['previousSibling'],-0x1),_0x4b3065=findChild(_0x4e8e8a,_0x3e2c25['nextSibling']||_0x3e2c25['target']['nextSibling'],0x1);return{'from':_0x2a6ae2?_0x4e8e8a['posAfter'](_0x2a6ae2):_0x4e8e8a['posAtStart'],'to':_0x4b3065?_0x4e8e8a['posBefore'](_0x4b3065):_0x4e8e8a['posAtEnd'],'typeOver':!0x1};}return'characterData'==_0x3e2c25['type']?{'from':_0x4e8e8a['posAtStart'],'to':_0x4e8e8a['posAtEnd'],'typeOver':_0x3e2c25['target']['nodeValue']==_0x3e2c25['oldValue']}:null;}['setWindow'](_0x3bffd6){_0x3bffd6!=this['win']&&(this['removeWindowListeners'](this['win']),this['win']=_0x3bffd6,this['addWindowListeners'](this['win']));}['addWindowListeners'](_0x3881eb){_0x3881eb['addEventListener']('resize',this['onResize']),this['printQuery']?this['printQuery']['addEventListener']?this['printQuery']['addEventListener']('change',this['onPrint']):this['printQuery']['addListener'](this['onPrint']):_0x3881eb['addEventListener']('beforeprint',this['onPrint']),_0x3881eb['addEventListener']('scroll',this['onScroll']),_0x3881eb['document']['addEventListener']('selectionchange',this['onSelectionChange']);}['removeWindowListeners'](_0x1885d0){_0x1885d0['removeEventListener']('scroll',this['onScroll']),_0x1885d0['removeEventListener']('resize',this['onResize']),this['printQuery']?this['printQuery']['removeEventListener']?this['printQuery']['removeEventListener']('change',this['onPrint']):this['printQuery']['removeListener'](this['onPrint']):_0x1885d0['removeEventListener']('beforeprint',this['onPrint']),_0x1885d0['document']['removeEventListener']('selectionchange',this['onSelectionChange']);}['update'](_0x4c01c8){this['editContext']&&(this['editContext']['update'](_0x4c01c8),_0x4c01c8['startState']['facet'](editable)!=_0x4c01c8['state']['facet'](editable)&&(_0x4c01c8['view']['contentDOM']['editContext']=_0x4c01c8['state']['facet'](editable)?this['editContext']['editContext']:null));}['destroy'](){var _0x422d72,_0x4bbf74,_0x5cdaea;this['stop'](),null===(_0x422d72=this['intersection'])||void 0x0===_0x422d72||_0x422d72['disconnect'](),null===(_0x4bbf74=this['gapIntersection'])||void 0x0===_0x4bbf74||_0x4bbf74['disconnect'](),null===(_0x5cdaea=this['resizeScroll'])||void 0x0===_0x5cdaea||_0x5cdaea['disconnect']();for(let _0x2e5a61 of this['scrollTargets'])_0x2e5a61['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(_0x221d13,_0x4358ad,_0x5eeb5a){for(;_0x4358ad;){let _0x314776=ContentView['get'](_0x4358ad);if(_0x314776&&_0x314776['parent']==_0x221d13)return _0x314776;let _0x2af851=_0x4358ad['parentNode'];_0x4358ad=_0x2af851!=_0x221d13['dom']?_0x2af851:_0x5eeb5a>0x0?_0x4358ad['nextSibling']:_0x4358ad['previousSibling'];}return null;}function buildSelectionRangeFromRange(_0x5ce749,_0x3d45e2){let _0x515a36=_0x3d45e2['startContainer'],_0xd62251=_0x3d45e2['startOffset'],_0x38cedb=_0x3d45e2['endContainer'],_0x5caf09=_0x3d45e2['endOffset'],_0xa381c4=_0x5ce749['docView']['domAtPos'](_0x5ce749['state']['selection']['main']['anchor']);return isEquivalentPosition(_0xa381c4['node'],_0xa381c4['offset'],_0x38cedb,_0x5caf09)&&([_0x515a36,_0xd62251,_0x38cedb,_0x5caf09]=[_0x38cedb,_0x5caf09,_0x515a36,_0xd62251]),{'anchorNode':_0x515a36,'anchorOffset':_0xd62251,'focusNode':_0x38cedb,'focusOffset':_0x5caf09};}function safariSelectionRangeHack(_0x4e5278,_0xb8b43b){if(_0xb8b43b['getComposedRanges']){let _0x3559e0=_0xb8b43b['getComposedRanges'](_0x4e5278['root'])[0x0];if(_0x3559e0)return buildSelectionRangeFromRange(_0x4e5278,_0x3559e0);}let _0x1976b0=null;function _0x2ed90f(_0x1d05d2){_0x1d05d2['preventDefault'](),_0x1d05d2['stopImmediatePropagation'](),_0x1976b0=_0x1d05d2['getTargetRanges']()[0x0];}return _0x4e5278['contentDOM']['addEventListener']('beforeinput',_0x2ed90f,!0x0),_0x4e5278['dom']['ownerDocument']['execCommand']('indent'),_0x4e5278['contentDOM']['removeEventListener']('beforeinput',_0x2ed90f,!0x0),_0x1976b0?buildSelectionRangeFromRange(_0x4e5278,_0x1976b0):null;}class EditContextManager{constructor(_0xd5ec49){this['from']=0x0,this['to']=0x0,this['pendingContextChange']=null,this['handlers']=Object['create'](null),this['composing']=null,this['resetRange'](_0xd5ec49['state']);let _0x5cbb24=this['editContext']=new window['EditContext']({'text':_0xd5ec49['state']['doc']['sliceString'](this['from'],this['to']),'selectionStart':this['toContextPos'](Math['max'](this['from'],Math['min'](this['to'],_0xd5ec49['state']['selection']['main']['anchor']))),'selectionEnd':this['toContextPos'](_0xd5ec49['state']['selection']['main']['head'])});this['handlers']['textupdate']=_0xe3fc59=>{let _0x4ee5d1=_0xd5ec49['state']['selection']['main'],{anchor:_0x353dc0,head:_0x1534aa}=_0x4ee5d1,_0x3cdef8=this['toEditorPos'](_0xe3fc59['updateRangeStart']),_0x4772ec=this['toEditorPos'](_0xe3fc59['updateRangeEnd']);_0xd5ec49['inputState']['composing']>=0x0&&!this['composing']&&(this['composing']={'contextBase':_0xe3fc59['updateRangeStart'],'editorBase':_0x3cdef8,'drifted':!0x1});let _0x12fcbe=_0x4772ec-_0x3cdef8>_0xe3fc59['text']['length'];_0x3cdef8==this['from']&&_0x353dc0<this['from']?_0x3cdef8=_0x353dc0:_0x4772ec==this['to']&&_0x353dc0>this['to']&&(_0x4772ec=_0x353dc0);let _0x9a44f1=findDiff(_0xd5ec49['state']['sliceDoc'](_0x3cdef8,_0x4772ec),_0xe3fc59['text'],(_0x12fcbe?_0x4ee5d1['from']:_0x4ee5d1['to'])-_0x3cdef8,_0x12fcbe?'end':null);if(!_0x9a44f1){let _0x2c481c=EditorSelection['single'](this['toEditorPos'](_0xe3fc59['selectionStart']),this['toEditorPos'](_0xe3fc59['selectionEnd']));return void(_0x2c481c['main']['eq'](_0x4ee5d1)||_0xd5ec49['dispatch']({'selection':_0x2c481c,'userEvent':'select'}));}let _0x1c5acd={'from':_0x9a44f1['from']+_0x3cdef8,'to':_0x9a44f1['toA']+_0x3cdef8,'insert':Text['of'](_0xe3fc59['text']['slice'](_0x9a44f1['from'],_0x9a44f1['toB'])['split']('\x0a'))};if((browser['mac']||browser['android'])&&_0x1c5acd['from']==_0x1534aa-0x1&&/^\. ?$/['test'](_0xe3fc59['text'])&&'off'==_0xd5ec49['contentDOM']['getAttribute']('autocorrect')&&(_0x1c5acd={'from':_0x3cdef8,'to':_0x4772ec,'insert':Text['of']([_0xe3fc59['text']['replace']('.','\x20')])}),this['pendingContextChange']=_0x1c5acd,!_0xd5ec49['state']['readOnly']){let _0x1b2f77=this['to']-this['from']+(_0x1c5acd['to']-_0x1c5acd['from']+_0x1c5acd['insert']['length']);applyDOMChangeInner(_0xd5ec49,_0x1c5acd,EditorSelection['single'](this['toEditorPos'](_0xe3fc59['selectionStart'],_0x1b2f77),this['toEditorPos'](_0xe3fc59['selectionEnd'],_0x1b2f77)));}this['pendingContextChange']&&(this['revertPending'](_0xd5ec49['state']),this['setSelection'](_0xd5ec49['state'])),_0x1c5acd['from']<_0x1c5acd['to']&&!_0x1c5acd['insert']['length']&&_0xd5ec49['inputState']['composing']>=0x0&&!/[\\p{Alphabetic}\\p{Number}_]/['test'](_0x5cbb24['text']['slice'](Math['max'](0x0,_0xe3fc59['updateRangeStart']-0x1),Math['min'](_0x5cbb24['text']['length'],_0xe3fc59['updateRangeStart']+0x1)))&&this['handlers']['compositionend'](_0xe3fc59);},this['handlers']['characterboundsupdate']=_0x377ba5=>{let _0x508071=[],_0xbb90f1=null;for(let _0x3e5c35=this['toEditorPos'](_0x377ba5['rangeStart']),_0x1ab6fc=this['toEditorPos'](_0x377ba5['rangeEnd']);_0x3e5c35<_0x1ab6fc;_0x3e5c35++){let _0x2c03ed=_0xd5ec49['coordsForChar'](_0x3e5c35);_0xbb90f1=_0x2c03ed&&new DOMRect(_0x2c03ed['left'],_0x2c03ed['top'],_0x2c03ed['right']-_0x2c03ed['left'],_0x2c03ed['bottom']-_0x2c03ed['top'])||_0xbb90f1||new DOMRect(),_0x508071['push'](_0xbb90f1);}_0x5cbb24['updateCharacterBounds'](_0x377ba5['rangeStart'],_0x508071);},this['handlers']['textformatupdate']=_0xeab2c=>{let _0x1a5739=[];for(let _0x25c5b3 of _0xeab2c['getTextFormats']()){let _0x5c5c1d=_0x25c5b3['underlineStyle'],_0x2bafa4=_0x25c5b3['underlineThickness'];if(!/none/i['test'](_0x5c5c1d)&&!/none/i['test'](_0x2bafa4)){let _0x2da52c=this['toEditorPos'](_0x25c5b3['rangeStart']),_0x22cb43=this['toEditorPos'](_0x25c5b3['rangeEnd']);if(_0x2da52c<_0x22cb43){let _0x1a971f='text-decoration:\x20underline\x20'+(/^[a-z]/['test'](_0x5c5c1d)?_0x5c5c1d+'\x20':'Dashed'==_0x5c5c1d?'dashed\x20':'Squiggle'==_0x5c5c1d?'wavy\x20':'')+(/thin/i['test'](_0x2bafa4)?0x1:0x2)+'px';_0x1a5739['push'](Decoration['mark']({'attributes':{'style':_0x1a971f}})['range'](_0x2da52c,_0x22cb43));}}}_0xd5ec49['dispatch']({'effects':setEditContextFormatting['of'](Decoration['set'](_0x1a5739))});},this['handlers']['compositionstart']=()=>{_0xd5ec49['inputState']['composing']<0x0&&(_0xd5ec49['inputState']['composing']=0x0,_0xd5ec49['inputState']['compositionFirstChange']=!0x0);},this['handlers']['compositionend']=()=>{if(_0xd5ec49['inputState']['composing']=-0x1,_0xd5ec49['inputState']['compositionFirstChange']=null,this['composing']){let {drifted:_0x53529f}=this['composing'];this['composing']=null,_0x53529f&&this['reset'](_0xd5ec49['state']);}};for(let _0x3b97c2 in this['handlers'])_0x5cbb24['addEventListener'](_0x3b97c2,this['handlers'][_0x3b97c2]);this['measureReq']={'read':_0x523a06=>{this['editContext']['updateControlBounds'](_0x523a06['contentDOM']['getBoundingClientRect']());let _0x5cb98f=getSelection(_0x523a06['root']);_0x5cb98f&&_0x5cb98f['rangeCount']&&this['editContext']['updateSelectionBounds'](_0x5cb98f['getRangeAt'](0x0)['getBoundingClientRect']());}};}['applyEdits'](_0x14bb10){let _0x27985c=0x0,_0x4e048a=!0x1,_0x250a68=this['pendingContextChange'];return _0x14bb10['changes']['iterChanges']((_0xfc45e9,_0x3b0afd,_0x2f67e5,_0x4e634b,_0x1ba14a)=>{if(_0x4e048a)return;let _0x5c363d=_0x1ba14a['length']-(_0x3b0afd-_0xfc45e9);if(_0x250a68&&_0x3b0afd>=_0x250a68['to']){if(_0x250a68['from']==_0xfc45e9&&_0x250a68['to']==_0x3b0afd&&_0x250a68['insert']['eq'](_0x1ba14a))return _0x250a68=this['pendingContextChange']=null,_0x27985c+=_0x5c363d,void(this['to']+=_0x5c363d);_0x250a68=null,this['revertPending'](_0x14bb10['state']);}if(_0xfc45e9+=_0x27985c,(_0x3b0afd+=_0x27985c)<=this['from'])this['from']+=_0x5c363d,this['to']+=_0x5c363d;else{if(_0xfc45e9<this['to']){if(_0xfc45e9<this['from']||_0x3b0afd>this['to']||this['to']-this['from']+_0x1ba14a['length']>0x7530)return void(_0x4e048a=!0x0);this['editContext']['updateText'](this['toContextPos'](_0xfc45e9),this['toContextPos'](_0x3b0afd),_0x1ba14a['toString']()),this['to']+=_0x5c363d;}}_0x27985c+=_0x5c363d;}),_0x250a68&&!_0x4e048a&&this['revertPending'](_0x14bb10['state']),!_0x4e048a;}['update'](_0x195d6e){let _0x369726=this['pendingContextChange'],_0x4bc1af=_0x195d6e['startState']['selection']['main'];this['composing']&&(this['composing']['drifted']||!_0x195d6e['changes']['touchesRange'](_0x4bc1af['from'],_0x4bc1af['to'])&&_0x195d6e['transactions']['some'](_0x3bb3ec=>!_0x3bb3ec['isUserEvent']('input.type')&&_0x3bb3ec['changes']['touchesRange'](this['from'],this['to'])))?(this['composing']['drifted']=!0x0,this['composing']['editorBase']=_0x195d6e['changes']['mapPos'](this['composing']['editorBase'])):this['applyEdits'](_0x195d6e)&&this['rangeIsValid'](_0x195d6e['state'])?(_0x195d6e['docChanged']||_0x195d6e['selectionSet']||_0x369726)&&this['setSelection'](_0x195d6e['state']):(this['pendingContextChange']=null,this['reset'](_0x195d6e['state'])),(_0x195d6e['geometryChanged']||_0x195d6e['docChanged']||_0x195d6e['selectionSet'])&&_0x195d6e['view']['requestMeasure'](this['measureReq']);}['resetRange'](_0x5e6a80){let {head:_0x3135c9}=_0x5e6a80['selection']['main'];this['from']=Math['max'](0x0,_0x3135c9-0x2710),this['to']=Math['min'](_0x5e6a80['doc']['length'],_0x3135c9+0x2710);}['reset'](_0x39b938){this['resetRange'](_0x39b938),this['editContext']['updateText'](0x0,this['editContext']['text']['length'],_0x39b938['doc']['sliceString'](this['from'],this['to'])),this['setSelection'](_0x39b938);}['revertPending'](_0x153dff){let _0x3a5249=this['pendingContextChange'];this['pendingContextChange']=null,this['editContext']['updateText'](this['toContextPos'](_0x3a5249['from']),this['toContextPos'](_0x3a5249['from']+_0x3a5249['insert']['length']),_0x153dff['doc']['sliceString'](_0x3a5249['from'],_0x3a5249['to']));}['setSelection'](_0x19201f){let {main:_0x427e43}=_0x19201f['selection'],_0x1affa7=this['toContextPos'](Math['max'](this['from'],Math['min'](this['to'],_0x427e43['anchor']))),_0x2ce3f9=this['toContextPos'](_0x427e43['head']);this['editContext']['selectionStart']==_0x1affa7&&this['editContext']['selectionEnd']==_0x2ce3f9||this['editContext']['updateSelection'](_0x1affa7,_0x2ce3f9);}['rangeIsValid'](_0x3894d3){let {head:_0x488ebb}=_0x3894d3['selection']['main'];return!(this['from']>0x0&&_0x488ebb-this['from']<0x1f4||this['to']<_0x3894d3['doc']['length']&&this['to']-_0x488ebb<0x1f4||this['to']-this['from']>0x7530);}['toEditorPos'](_0xad0fab,_0x3055b3=this['to']-this['from']){_0xad0fab=Math['min'](_0xad0fab,_0x3055b3);let _0xfc129d=this['composing'];return _0xfc129d&&_0xfc129d['drifted']?_0xfc129d['editorBase']+(_0xad0fab-_0xfc129d['contextBase']):_0xad0fab+this['from'];}['toContextPos'](_0x10bfe6){let _0x2afce9=this['composing'];return _0x2afce9&&_0x2afce9['drifted']?_0x2afce9['contextBase']+(_0x10bfe6-_0x2afce9['editorBase']):_0x10bfe6-this['from'];}['destroy'](){for(let _0x3c3b24 in this['handlers'])this['editContext']['removeEventListener'](_0x3c3b24,this['handlers'][_0x3c3b24]);}}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(_0x4d3778={}){var _0x58add8;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']),_0x4d3778['parent']&&_0x4d3778['parent']['appendChild'](this['dom']);let {dispatch:_0x10234d}=_0x4d3778;this['dispatchTransactions']=_0x4d3778['dispatchTransactions']||_0x10234d&&(_0x28833b=>_0x28833b['forEach'](_0x3affb3=>_0x10234d(_0x3affb3,this)))||(_0x130dd3=>this['update'](_0x130dd3)),this['dispatch']=this['dispatch']['bind'](this),this['_root']=_0x4d3778['root']||getRoot(_0x4d3778['parent'])||document,this['viewState']=new ViewState(_0x4d3778['state']||EditorState['create'](_0x4d3778)),_0x4d3778['scrollTo']&&_0x4d3778['scrollTo']['is'](scrollIntoView$1)&&(this['viewState']['scrollTarget']=_0x4d3778['scrollTo']['value']['clip'](this['viewState']['state'])),this['plugins']=this['state']['facet'](viewPlugin)['map'](_0x1a15bf=>new PluginInstance(_0x1a15bf));for(let _0x18cddd of this['plugins'])_0x18cddd['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===(_0x58add8=document['fonts'])||void 0x0===_0x58add8?void 0x0:_0x58add8['ready'])&&document['fonts']['ready']['then'](()=>this['requestMeasure']());}['dispatch'](..._0x128a00){let _0x3a1c2c=0x1==_0x128a00['length']&&_0x128a00[0x0]instanceof Transaction?_0x128a00:0x1==_0x128a00['length']&&Array['isArray'](_0x128a00[0x0])?_0x128a00[0x0]:[this['state']['update'](..._0x128a00)];this['dispatchTransactions'](_0x3a1c2c,this);}['update'](_0xdf9bdd){if(0x0!=this['updateState'])throw new Error('Calls\x20to\x20EditorView.update\x20are\x20not\x20allowed\x20while\x20an\x20update\x20is\x20in\x20progress');let _0x2f4334,_0x2e9bde=!0x1,_0x487f4b=!0x1,_0x524db9=this['state'];for(let _0x578e7b of _0xdf9bdd){if(_0x578e7b['startState']!=_0x524db9)throw new RangeError('Trying\x20to\x20update\x20state\x20with\x20a\x20transaction\x20that\x20doesn\x27t\x20start\x20from\x20the\x20previous\x20state.');_0x524db9=_0x578e7b['state'];}if(this['destroyed'])return void(this['viewState']['state']=_0x524db9);let _0x4215b1=this['hasFocus'],_0x506a4c=0x0,_0x3284fc=null;_0xdf9bdd['some'](_0x588b82=>_0x588b82['annotation'](isFocusChange))?(this['inputState']['notifiedFocused']=_0x4215b1,_0x506a4c=0x1):_0x4215b1!=this['inputState']['notifiedFocused']&&(this['inputState']['notifiedFocused']=_0x4215b1,_0x3284fc=focusChangeTransaction(_0x524db9,_0x4215b1),_0x3284fc||(_0x506a4c=0x1));let _0x10c74e=this['observer']['delayedAndroidKey'],_0x493df4=null;if(_0x10c74e?(this['observer']['clearDelayedAndroidKey'](),_0x493df4=this['observer']['readChange'](),(_0x493df4&&!this['state']['doc']['eq'](_0x524db9['doc'])||!this['state']['selection']['eq'](_0x524db9['selection']))&&(_0x493df4=null)):this['observer']['clear'](),_0x524db9['facet'](EditorState['phrases'])!=this['state']['facet'](EditorState['phrases']))return this['setState'](_0x524db9);_0x2f4334=ViewUpdate['create'](this,_0x524db9,_0xdf9bdd),_0x2f4334['flags']|=_0x506a4c;let _0x31933e=this['viewState']['scrollTarget'];try{this['updateState']=0x2;for(let _0xcf8a6e of _0xdf9bdd){if(_0x31933e&&(_0x31933e=_0x31933e['map'](_0xcf8a6e['changes'])),_0xcf8a6e['scrollIntoView']){let {main:_0x194331}=_0xcf8a6e['state']['selection'];_0x31933e=new ScrollTarget(_0x194331['empty']?_0x194331:EditorSelection['cursor'](_0x194331['head'],_0x194331['head']>_0x194331['anchor']?-0x1:0x1));}for(let _0x17bb37 of _0xcf8a6e['effects'])_0x17bb37['is'](scrollIntoView$1)&&(_0x31933e=_0x17bb37['value']['clip'](this['state']));}this['viewState']['update'](_0x2f4334,_0x31933e),this['bidiCache']=CachedOrder['update'](this['bidiCache'],_0x2f4334['changes']),_0x2f4334['empty']||(this['updatePlugins'](_0x2f4334),this['inputState']['update'](_0x2f4334)),_0x2e9bde=this['docView']['update'](_0x2f4334),this['state']['facet'](styleModule)!=this['styleModules']&&this['mountStyles'](),_0x487f4b=this['updateAttrs'](),this['showAnnouncements'](_0xdf9bdd),this['docView']['updateSelection'](_0x2e9bde,_0xdf9bdd['some'](_0x322ef4=>_0x322ef4['isUserEvent']('select.pointer')));}finally{this['updateState']=0x0;}if(_0x2f4334['startState']['facet'](theme)!=_0x2f4334['state']['facet'](theme)&&(this['viewState']['mustMeasureContent']=!0x0),(_0x2e9bde||_0x487f4b||_0x31933e||this['viewState']['mustEnforceCursorAssoc']||this['viewState']['mustMeasureContent'])&&this['requestMeasure'](),_0x2e9bde&&this['docViewUpdate'](),!_0x2f4334['empty']){for(let _0x8f1455 of this['state']['facet'](updateListener))try{_0x8f1455(_0x2f4334);}catch(_0x2ff640){logException(this['state'],_0x2ff640,'update\x20listener');}}(_0x3284fc||_0x493df4)&&Promise['resolve']()['then'](()=>{_0x3284fc&&this['state']==_0x3284fc['startState']&&this['dispatch'](_0x3284fc),_0x493df4&&!applyDOMChange(this,_0x493df4)&&_0x10c74e['force']&&dispatchKey(this['contentDOM'],_0x10c74e['key'],_0x10c74e['keyCode']);});}['setState'](_0x239c51){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']=_0x239c51);this['updateState']=0x2;let _0x23918b=this['hasFocus'];try{for(let _0x19c06f of this['plugins'])_0x19c06f['destroy'](this);this['viewState']=new ViewState(_0x239c51),this['plugins']=_0x239c51['facet'](viewPlugin)['map'](_0x5cf451=>new PluginInstance(_0x5cf451)),this['pluginMap']['clear']();for(let _0x2d643d of this['plugins'])_0x2d643d['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;}_0x23918b&&this['focus'](),this['requestMeasure']();}['updatePlugins'](_0x522271){let _0x2fec62=_0x522271['startState']['facet'](viewPlugin),_0x2e087=_0x522271['state']['facet'](viewPlugin);if(_0x2fec62!=_0x2e087){let _0x532034=[];for(let _0x49a853 of _0x2e087){let _0x5cfaac=_0x2fec62['indexOf'](_0x49a853);if(_0x5cfaac<0x0)_0x532034['push'](new PluginInstance(_0x49a853));else{let _0x59c2bb=this['plugins'][_0x5cfaac];_0x59c2bb['mustUpdate']=_0x522271,_0x532034['push'](_0x59c2bb);}}for(let _0x2054eb of this['plugins'])_0x2054eb['mustUpdate']!=_0x522271&&_0x2054eb['destroy'](this);this['plugins']=_0x532034,this['pluginMap']['clear']();}else{for(let _0x9ade23 of this['plugins'])_0x9ade23['mustUpdate']=_0x522271;}for(let _0x1b5916=0x0;_0x1b5916<this['plugins']['length'];_0x1b5916++)this['plugins'][_0x1b5916]['update'](this);_0x2fec62!=_0x2e087&&this['inputState']['ensureHandlers'](this['plugins']);}['docViewUpdate'](){for(let _0x28791f of this['plugins']){let _0x190ee3=_0x28791f['value'];if(_0x190ee3&&_0x190ee3['docViewUpdate'])try{_0x190ee3['docViewUpdate'](this);}catch(_0x110636){logException(this['state'],_0x110636,'doc\x20view\x20update\x20listener');}}}['measure'](_0x505847=!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,_0x505847&&this['observer']['forceFlush']();let _0x226c78=null,_0x48d50d=this['scrollDOM'],_0x29cfd9=_0x48d50d['scrollTop']*this['scaleY'],{scrollAnchorPos:_0x4d2c4a,scrollAnchorHeight:_0x215d1d}=this['viewState'];Math['abs'](_0x29cfd9-this['viewState']['scrollTop'])>0x1&&(_0x215d1d=-0x1),this['viewState']['scrollAnchorHeight']=-0x1;try{for(let _0x3b6478=0x0;;_0x3b6478++){if(_0x215d1d<0x0){if(isScrolledToBottom(_0x48d50d))_0x4d2c4a=-0x1,_0x215d1d=this['viewState']['heightMap']['height'];else{let _0x292b12=this['viewState']['scrollAnchorAt'](_0x29cfd9);_0x4d2c4a=_0x292b12['from'],_0x215d1d=_0x292b12['top'];}}this['updateState']=0x1;let _0x9e24cd=this['viewState']['measure'](this);if(!_0x9e24cd&&!this['measureRequests']['length']&&null==this['viewState']['scrollTarget'])break;if(_0x3b6478>0x5){console['warn'](this['measureRequests']['length']?'Measure\x20loop\x20restarted\x20more\x20than\x205\x20times':'Viewport\x20failed\x20to\x20stabilize');break;}let _0x4f33aa=[];0x4&_0x9e24cd||([this['measureRequests'],_0x4f33aa]=[_0x4f33aa,this['measureRequests']]);let _0x3a0b92=_0x4f33aa['map'](_0x134289=>{try{return _0x134289['read'](this);}catch(_0x2cea61){return logException(this['state'],_0x2cea61),BadMeasure;}}),_0x28a6cd=ViewUpdate['create'](this,this['state'],[]),_0x251971=!0x1;_0x28a6cd['flags']|=_0x9e24cd,_0x226c78?_0x226c78['flags']|=_0x9e24cd:_0x226c78=_0x28a6cd,this['updateState']=0x2,_0x28a6cd['empty']||(this['updatePlugins'](_0x28a6cd),this['inputState']['update'](_0x28a6cd),this['updateAttrs'](),_0x251971=this['docView']['update'](_0x28a6cd),_0x251971&&this['docViewUpdate']());for(let _0x336e24=0x0;_0x336e24<_0x4f33aa['length'];_0x336e24++)if(_0x3a0b92[_0x336e24]!=BadMeasure)try{let _0x16617a=_0x4f33aa[_0x336e24];_0x16617a['write']&&_0x16617a['write'](_0x3a0b92[_0x336e24],this);}catch(_0x20edca){logException(this['state'],_0x20edca);}if(_0x251971&&this['docView']['updateSelection'](!0x0),!_0x28a6cd['viewportChanged']&&0x0==this['measureRequests']['length']){if(this['viewState']['editorHeight']){if(this['viewState']['scrollTarget']){this['docView']['scrollIntoView'](this['viewState']['scrollTarget']),this['viewState']['scrollTarget']=null,_0x215d1d=-0x1;continue;}{let _0x14e135=(_0x4d2c4a<0x0?this['viewState']['heightMap']['height']:this['viewState']['lineBlockAt'](_0x4d2c4a)['top'])-_0x215d1d;if(_0x14e135>0x1||_0x14e135<-0x1){_0x29cfd9+=_0x14e135,_0x48d50d['scrollTop']=_0x29cfd9/this['scaleY'],_0x215d1d=-0x1;continue;}}}break;}}}finally{this['updateState']=0x0,this['measureScheduled']=-0x1;}if(_0x226c78&&!_0x226c78['empty']){for(let _0x19f551 of this['state']['facet'](updateListener))_0x19f551(_0x226c78);}}get['themeClasses'](){return baseThemeID+'\x20'+(this['state']['facet'](darkTheme)?baseDarkID:baseLightID)+'\x20'+this['state']['facet'](theme);}['updateAttrs'](){let _0x5aa3c9=attrsFromFacet(this,editorAttributes,{'class':'cm-editor'+(this['hasFocus']?'\x20cm-focused\x20':'\x20')+this['themeClasses']}),_0x18ba41={'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']&&(_0x18ba41['aria-readonly']='true'),attrsFromFacet(this,contentAttributes,_0x18ba41);let _0x3284e9=this['observer']['ignore'](()=>{let _0x34a6f3=updateAttrs(this['contentDOM'],this['contentAttrs'],_0x18ba41),_0x25fda6=updateAttrs(this['dom'],this['editorAttrs'],_0x5aa3c9);return _0x34a6f3||_0x25fda6;});return this['editorAttrs']=_0x5aa3c9,this['contentAttrs']=_0x18ba41,_0x3284e9;}['showAnnouncements'](_0x56bde9){let _0x4da1a7=!0x0;for(let _0x3cfddb of _0x56bde9)for(let _0x578c09 of _0x3cfddb['effects'])_0x578c09['is'](EditorView['announce'])&&(_0x4da1a7&&(this['announceDOM']['textContent']=''),_0x4da1a7=!0x1,this['announceDOM']['appendChild'](document['createElement']('div'))['textContent']=_0x578c09['value']);}['mountStyles'](){this['styleModules']=this['state']['facet'](styleModule);let _0x513c64=this['state']['facet'](EditorView['cspNonce']);StyleModule['mount'](this['root'],this['styleModules']['concat'](baseTheme$1$1)['reverse'](),_0x513c64?{'nonce':_0x513c64}: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'](_0x454ea3){if(this['measureScheduled']<0x0&&(this['measureScheduled']=this['win']['requestAnimationFrame'](()=>this['measure']())),_0x454ea3){if(this['measureRequests']['indexOf'](_0x454ea3)>-0x1)return;if(null!=_0x454ea3['key']){for(let _0x5bd558=0x0;_0x5bd558<this['measureRequests']['length'];_0x5bd558++)if(this['measureRequests'][_0x5bd558]['key']===_0x454ea3['key'])return void(this['measureRequests'][_0x5bd558]=_0x454ea3);}this['measureRequests']['push'](_0x454ea3);}}['plugin'](_0x35dda6){let _0x45fc71=this['pluginMap']['get'](_0x35dda6);return(void 0x0===_0x45fc71||_0x45fc71&&_0x45fc71['plugin']!=_0x35dda6)&&this['pluginMap']['set'](_0x35dda6,_0x45fc71=this['plugins']['find'](_0x17e4c4=>_0x17e4c4['plugin']==_0x35dda6)||null),_0x45fc71&&_0x45fc71['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'](_0x2d5ca0){return this['readMeasured'](),this['viewState']['elementAtHeight'](_0x2d5ca0);}['lineBlockAtHeight'](_0x3f4508){return this['readMeasured'](),this['viewState']['lineBlockAtHeight'](_0x3f4508);}get['viewportLineBlocks'](){return this['viewState']['viewportLines'];}['lineBlockAt'](_0x15b517){return this['viewState']['lineBlockAt'](_0x15b517);}get['contentHeight'](){return this['viewState']['contentHeight'];}['moveByChar'](_0x218181,_0x42007f,_0x5310d8){return skipAtoms(this,_0x218181,moveByChar(this,_0x218181,_0x42007f,_0x5310d8));}['moveByGroup'](_0x592cff,_0x25d702){return skipAtoms(this,_0x592cff,moveByChar(this,_0x592cff,_0x25d702,_0x3bf188=>byGroup(this,_0x592cff['head'],_0x3bf188)));}['visualLineSide'](_0x4ae4cd,_0x470b53){let _0x324962=this['bidiSpans'](_0x4ae4cd),_0x59cd80=this['textDirectionAt'](_0x4ae4cd['from']),_0x2e7677=_0x324962[_0x470b53?_0x324962['length']-0x1:0x0];return EditorSelection['cursor'](_0x2e7677['side'](_0x470b53,_0x59cd80)+_0x4ae4cd['from'],_0x2e7677['forward'](!_0x470b53,_0x59cd80)?0x1:-0x1);}['moveToLineBoundary'](_0x324cc8,_0x4fe4b0,_0x3e0b26=!0x0){return moveToLineBoundary(this,_0x324cc8,_0x4fe4b0,_0x3e0b26);}['moveVertically'](_0x10a7c4,_0x101a5d,_0x224ba6){return skipAtoms(this,_0x10a7c4,moveVertically(this,_0x10a7c4,_0x101a5d,_0x224ba6));}['domAtPos'](_0x4b096b){return this['docView']['domAtPos'](_0x4b096b);}['posAtDOM'](_0x5665b8,_0x11b1d9=0x0){return this['docView']['posFromDOM'](_0x5665b8,_0x11b1d9);}['posAtCoords'](_0x1407aa,_0x20b9af=!0x0){return this['readMeasured'](),posAtCoords(this,_0x1407aa,_0x20b9af);}['coordsAtPos'](_0x242f47,_0x11dd4c=0x1){this['readMeasured']();let _0x4dc5b5=this['docView']['coordsAt'](_0x242f47,_0x11dd4c);if(!_0x4dc5b5||_0x4dc5b5['left']==_0x4dc5b5['right'])return _0x4dc5b5;let _0x14f181=this['state']['doc']['lineAt'](_0x242f47),_0x4070f3=this['bidiSpans'](_0x14f181);return flattenRect(_0x4dc5b5,_0x4070f3[BidiSpan['find'](_0x4070f3,_0x242f47-_0x14f181['from'],-0x1,_0x11dd4c)]['dir']==Direction['LTR']==_0x11dd4c>0x0);}['coordsForChar'](_0x3b57e4){return this['readMeasured'](),this['docView']['coordsForChar'](_0x3b57e4);}get['defaultCharacterWidth'](){return this['viewState']['heightOracle']['charWidth'];}get['defaultLineHeight'](){return this['viewState']['heightOracle']['lineHeight'];}get['textDirection'](){return this['viewState']['defaultTextDirection'];}['textDirectionAt'](_0x2dca6a){return!this['state']['facet'](perLineTextDirection)||_0x2dca6a<this['viewport']['from']||_0x2dca6a>this['viewport']['to']?this['textDirection']:(this['readMeasured'](),this['docView']['textDirectionAt'](_0x2dca6a));}get['lineWrapping'](){return this['viewState']['heightOracle']['lineWrapping'];}['bidiSpans'](_0xcbe3de){if(_0xcbe3de['length']>MaxBidiLine)return trivialOrder(_0xcbe3de['length']);let _0x91684d,_0x2b8354=this['textDirectionAt'](_0xcbe3de['from']);for(let _0x147ae1 of this['bidiCache'])if(_0x147ae1['from']==_0xcbe3de['from']&&_0x147ae1['dir']==_0x2b8354&&(_0x147ae1['fresh']||isolatesEq(_0x147ae1['isolates'],_0x91684d=getIsolatedRanges(this,_0xcbe3de))))return _0x147ae1['order'];_0x91684d||(_0x91684d=getIsolatedRanges(this,_0xcbe3de));let _0x249e96=computeOrder(_0xcbe3de['text'],_0x2b8354,_0x91684d);return this['bidiCache']['push'](new CachedOrder(_0xcbe3de['from'],_0xcbe3de['to'],_0x2b8354,_0x91684d,!0x0,_0x249e96)),_0x249e96;}get['hasFocus'](){var _0xb47f71;return(this['dom']['ownerDocument']['hasFocus']()||browser['safari']&&(null===(_0xb47f71=this['inputState'])||void 0x0===_0xb47f71?void 0x0:_0xb47f71['lastContextMenu'])>Date['now']()-0x7530)&&this['root']['activeElement']==this['contentDOM'];}['focus'](){this['observer']['ignore'](()=>{focusPreventScroll(this['contentDOM']),this['docView']['updateSelection']();});}['setRoot'](_0x5845ec){this['_root']!=_0x5845ec&&(this['_root']=_0x5845ec,this['observer']['setWindow']((0x9==_0x5845ec['nodeType']?_0x5845ec:_0x5845ec['ownerDocument'])['defaultView']||window),this['mountStyles']());}['destroy'](){this['root']['activeElement']==this['contentDOM']&&this['contentDOM']['blur']();for(let _0x5c4874 of this['plugins'])_0x5c4874['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'](_0x5009a2,_0x2a276e={}){return scrollIntoView$1['of'](new ScrollTarget('number'==typeof _0x5009a2?EditorSelection['cursor'](_0x5009a2):_0x5009a2,_0x2a276e['y'],_0x2a276e['x'],_0x2a276e['yMargin'],_0x2a276e['xMargin']));}['scrollSnapshot'](){let {scrollTop:_0x2f80bf,scrollLeft:_0x52a8fd}=this['scrollDOM'],_0x55264f=this['viewState']['scrollAnchorAt'](_0x2f80bf);return scrollIntoView$1['of'](new ScrollTarget(EditorSelection['cursor'](_0x55264f['from']),'start','start',_0x55264f['top']-_0x2f80bf,_0x52a8fd,!0x0));}['setTabFocusMode'](_0x585eee){null==_0x585eee?this['inputState']['tabFocusMode']=this['inputState']['tabFocusMode']<0x0?0x0:-0x1:'boolean'==typeof _0x585eee?this['inputState']['tabFocusMode']=_0x585eee?0x0:-0x1:0x0!=this['inputState']['tabFocusMode']&&(this['inputState']['tabFocusMode']=Date['now']()+_0x585eee);}static['domEventHandlers'](_0x28353a){return ViewPlugin['define'](()=>({}),{'eventHandlers':_0x28353a});}static['domEventObservers'](_0x2bd11d){return ViewPlugin['define'](()=>({}),{'eventObservers':_0x2bd11d});}static['theme'](_0x1aea17,_0x40f92d){let _0x5aef48=StyleModule['newName'](),_0x543695=[theme['of'](_0x5aef48),styleModule['of'](buildTheme('.'+_0x5aef48,_0x1aea17))];return _0x40f92d&&_0x40f92d['dark']&&_0x543695['push'](darkTheme['of'](!0x0)),_0x543695;}static['baseTheme'](_0x41903f){return Prec['lowest'](styleModule['of'](buildTheme('.'+baseThemeID,_0x41903f,lightDarkIDs)));}static['findFromDOM'](_0x5dec63){var _0xaf672c;let _0x53fabb=_0x5dec63['querySelector']('.cm-content'),_0x30341c=_0x53fabb&&ContentView['get'](_0x53fabb)||ContentView['get'](_0x5dec63);return(null===(_0xaf672c=null==_0x30341c?void 0x0:_0x30341c['rootView'])||void 0x0===_0xaf672c?void 0x0:_0xaf672c['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':_0xcb9e37=>_0xcb9e37['length']?_0xcb9e37[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(_0x468a19,_0x5d1d97,_0xf24e89,_0x2fcd50,_0x117773,_0x32bac4){this['from']=_0x468a19,this['to']=_0x5d1d97,this['dir']=_0xf24e89,this['isolates']=_0x2fcd50,this['fresh']=_0x117773,this['order']=_0x32bac4;}static['update'](_0x4e6b93,_0x5bc022){if(_0x5bc022['empty']&&!_0x4e6b93['some'](_0x4edaa0=>_0x4edaa0['fresh']))return _0x4e6b93;let _0xb27b04=[],_0x4fba4f=_0x4e6b93['length']?_0x4e6b93[_0x4e6b93['length']-0x1]['dir']:Direction['LTR'];for(let _0x9c975d=Math['max'](0x0,_0x4e6b93['length']-0xa);_0x9c975d<_0x4e6b93['length'];_0x9c975d++){let _0xff6ef8=_0x4e6b93[_0x9c975d];_0xff6ef8['dir']!=_0x4fba4f||_0x5bc022['touchesRange'](_0xff6ef8['from'],_0xff6ef8['to'])||_0xb27b04['push'](new CachedOrder(_0x5bc022['mapPos'](_0xff6ef8['from'],0x1),_0x5bc022['mapPos'](_0xff6ef8['to'],-0x1),_0xff6ef8['dir'],_0xff6ef8['isolates'],!0x1,_0xff6ef8['order']));}return _0xb27b04;}}function attrsFromFacet(_0x34ec22,_0x4e115d,_0x2f5caf){for(let _0x372e42=_0x34ec22['state']['facet'](_0x4e115d),_0x2bc4a5=_0x372e42['length']-0x1;_0x2bc4a5>=0x0;_0x2bc4a5--){let _0xc77242=_0x372e42[_0x2bc4a5],_0x303c67='function'==typeof _0xc77242?_0xc77242(_0x34ec22):_0xc77242;_0x303c67&&combineAttrs(_0x303c67,_0x2f5caf);}return _0x2f5caf;}const currentPlatform=browser['mac']?'mac':browser['windows']?'win':browser['linux']?'linux':'key';function normalizeKeyName(_0x1b49b7,_0x3f5421){const _0x1ba215=_0x1b49b7['split'](/-(?!$)/);let _0x17e534,_0x49952b,_0x3a1b03,_0x5e3359,_0x18b78d=_0x1ba215[_0x1ba215['length']-0x1];'Space'==_0x18b78d&&(_0x18b78d='\x20');for(let _0x568a36=0x0;_0x568a36<_0x1ba215['length']-0x1;++_0x568a36){const _0x2ca24b=_0x1ba215[_0x568a36];if(/^(cmd|meta|m)$/i['test'](_0x2ca24b))_0x5e3359=!0x0;else{if(/^a(lt)?$/i['test'](_0x2ca24b))_0x17e534=!0x0;else{if(/^(c|ctrl|control)$/i['test'](_0x2ca24b))_0x49952b=!0x0;else{if(/^s(hift)?$/i['test'](_0x2ca24b))_0x3a1b03=!0x0;else{if(!/^mod$/i['test'](_0x2ca24b))throw new Error('Unrecognized\x20modifier\x20name:\x20'+_0x2ca24b);'mac'==_0x3f5421?_0x5e3359=!0x0:_0x49952b=!0x0;}}}}}return _0x17e534&&(_0x18b78d='Alt-'+_0x18b78d),_0x49952b&&(_0x18b78d='Ctrl-'+_0x18b78d),_0x5e3359&&(_0x18b78d='Meta-'+_0x18b78d),_0x3a1b03&&(_0x18b78d='Shift-'+_0x18b78d),_0x18b78d;}function modifiers(_0x48b32d,_0x39295d,_0x15cce8){return _0x39295d['altKey']&&(_0x48b32d='Alt-'+_0x48b32d),_0x39295d['ctrlKey']&&(_0x48b32d='Ctrl-'+_0x48b32d),_0x39295d['metaKey']&&(_0x48b32d='Meta-'+_0x48b32d),!0x1!==_0x15cce8&&_0x39295d['shiftKey']&&(_0x48b32d='Shift-'+_0x48b32d),_0x48b32d;}const handleKeyEvents=Prec['default'](EditorView['domEventHandlers']({'keydown':(_0x5e72b2,_0x2f2b9c)=>runHandlers(getKeymap(_0x2f2b9c['state']),_0x5e72b2,_0x2f2b9c,'editor')})),keymap=Facet['define']({'enables':handleKeyEvents}),Keymaps=new WeakMap();function getKeymap(_0x37e4a3){let _0x3ddccc=_0x37e4a3['facet'](keymap),_0x18668c=Keymaps['get'](_0x3ddccc);return _0x18668c||Keymaps['set'](_0x3ddccc,_0x18668c=buildKeymap(_0x3ddccc['reduce']((_0x36d377,_0x2b6465)=>_0x36d377['concat'](_0x2b6465),[]))),_0x18668c;}let storedPrefix=null;const PrefixTimeout=0xfa0;function buildKeymap(_0x6306f8,_0x47c259=currentPlatform){let _0x41a037=Object['create'](null),_0x5e3381=Object['create'](null),_0x1b82b8=(_0x5e6a22,_0x176e2f)=>{let _0x24d3dc=_0x5e3381[_0x5e6a22];if(null==_0x24d3dc)_0x5e3381[_0x5e6a22]=_0x176e2f;else{if(_0x24d3dc!=_0x176e2f)throw new Error('Key\x20binding\x20'+_0x5e6a22+'\x20is\x20used\x20both\x20as\x20a\x20regular\x20binding\x20and\x20as\x20a\x20multi-stroke\x20prefix');}},_0x386040=(_0x4ab2b9,_0x158186,_0x3bb6c0,_0x1fd908,_0x14502d)=>{var _0x10ffe3,_0x5580e0;let _0x3f856a=_0x41a037[_0x4ab2b9]||(_0x41a037[_0x4ab2b9]=Object['create'](null)),_0x19b517=_0x158186['split'](/ (?!$)/)['map'](_0x3d2ff4=>normalizeKeyName(_0x3d2ff4,_0x47c259));for(let _0x26e77b=0x1;_0x26e77b<_0x19b517['length'];_0x26e77b++){let _0x4f9b73=_0x19b517['slice'](0x0,_0x26e77b)['join']('\x20');_0x1b82b8(_0x4f9b73,!0x0),_0x3f856a[_0x4f9b73]||(_0x3f856a[_0x4f9b73]={'preventDefault':!0x0,'stopPropagation':!0x1,'run':[_0x308503=>{let _0x3b69ca=storedPrefix={'view':_0x308503,'prefix':_0x4f9b73,'scope':_0x4ab2b9};return setTimeout(()=>{storedPrefix==_0x3b69ca&&(storedPrefix=null);},PrefixTimeout),!0x0;}]});}let _0x5c197e=_0x19b517['join']('\x20');_0x1b82b8(_0x5c197e,!0x1);let _0x54dbe8=_0x3f856a[_0x5c197e]||(_0x3f856a[_0x5c197e]={'preventDefault':!0x1,'stopPropagation':!0x1,'run':(null===(_0x5580e0=null===(_0x10ffe3=_0x3f856a['_any'])||void 0x0===_0x10ffe3?void 0x0:_0x10ffe3['run'])||void 0x0===_0x5580e0?void 0x0:_0x5580e0['slice']())||[]});_0x3bb6c0&&_0x54dbe8['run']['push'](_0x3bb6c0),_0x1fd908&&(_0x54dbe8['preventDefault']=!0x0),_0x14502d&&(_0x54dbe8['stopPropagation']=!0x0);};for(let _0x588b7d of _0x6306f8){let _0xdf71b0=_0x588b7d['scope']?_0x588b7d['scope']['split']('\x20'):['editor'];if(_0x588b7d['any'])for(let _0x4b0b75 of _0xdf71b0){let _0x52c377=_0x41a037[_0x4b0b75]||(_0x41a037[_0x4b0b75]=Object['create'](null));_0x52c377['_any']||(_0x52c377['_any']={'preventDefault':!0x1,'stopPropagation':!0x1,'run':[]});let {any:_0x4f5b89}=_0x588b7d;for(let _0x5a3f01 in _0x52c377)_0x52c377[_0x5a3f01]['run']['push'](_0x6674a1=>_0x4f5b89(_0x6674a1,currentKeyEvent));}let _0x154328=_0x588b7d[_0x47c259]||_0x588b7d['key'];if(_0x154328){for(let _0x37944e of _0xdf71b0)_0x386040(_0x37944e,_0x154328,_0x588b7d['run'],_0x588b7d['preventDefault'],_0x588b7d['stopPropagation']),_0x588b7d['shift']&&_0x386040(_0x37944e,'Shift-'+_0x154328,_0x588b7d['shift'],_0x588b7d['preventDefault'],_0x588b7d['stopPropagation']);}}return _0x41a037;}let currentKeyEvent=null;function runHandlers(_0x1491c7,_0x4c226b,_0x5e1a97,_0x1cf575){currentKeyEvent=_0x4c226b;let _0x331fd5=keyName(_0x4c226b),_0x3fdac9=codePointSize(codePointAt(_0x331fd5,0x0))==_0x331fd5['length']&&'\x20'!=_0x331fd5,_0xd79bf4='',_0x1c7779=!0x1,_0xe94c5=!0x1,_0x3ae563=!0x1;storedPrefix&&storedPrefix['view']==_0x5e1a97&&storedPrefix['scope']==_0x1cf575&&(_0xd79bf4=storedPrefix['prefix']+'\x20',modifierCodes['indexOf'](_0x4c226b['keyCode'])<0x0&&(_0xe94c5=!0x0,storedPrefix=null));let _0x210132,_0x30f89a,_0x570502=new Set(),_0x364e69=_0x556c8d=>{if(_0x556c8d){for(let _0x4ded8f of _0x556c8d['run'])if(!_0x570502['has'](_0x4ded8f)&&(_0x570502['add'](_0x4ded8f),_0x4ded8f(_0x5e1a97)))return _0x556c8d['stopPropagation']&&(_0x3ae563=!0x0),!0x0;_0x556c8d['preventDefault']&&(_0x556c8d['stopPropagation']&&(_0x3ae563=!0x0),_0xe94c5=!0x0);}return!0x1;},_0x534808=_0x1491c7[_0x1cf575];return _0x534808&&(_0x364e69(_0x534808[_0xd79bf4+modifiers(_0x331fd5,_0x4c226b,!_0x3fdac9)])?_0x1c7779=!0x0:!_0x3fdac9||!(_0x4c226b['altKey']||_0x4c226b['metaKey']||_0x4c226b['ctrlKey'])||browser['windows']&&_0x4c226b['ctrlKey']&&_0x4c226b['altKey']||browser['mac']&&_0x4c226b['altKey']&&!_0x4c226b['ctrlKey']&&!_0x4c226b['metaKey']||!(_0x210132=base$2[_0x4c226b['keyCode']])||_0x210132==_0x331fd5?_0x3fdac9&&_0x4c226b['shiftKey']&&_0x364e69(_0x534808[_0xd79bf4+modifiers(_0x331fd5,_0x4c226b,!0x0)])&&(_0x1c7779=!0x0):(_0x364e69(_0x534808[_0xd79bf4+modifiers(_0x210132,_0x4c226b,!0x0)])||_0x4c226b['shiftKey']&&(_0x30f89a=shift[_0x4c226b['keyCode']])!=_0x331fd5&&_0x30f89a!=_0x210132&&_0x364e69(_0x534808[_0xd79bf4+modifiers(_0x30f89a,_0x4c226b,!0x1)]))&&(_0x1c7779=!0x0),!_0x1c7779&&_0x364e69(_0x534808['_any'])&&(_0x1c7779=!0x0)),_0xe94c5&&(_0x1c7779=!0x0),_0x1c7779&&_0x3ae563&&_0x4c226b['stopPropagation'](),currentKeyEvent=null,_0x1c7779;}class RectangleMarker{constructor(_0x3d517c,_0x4936d0,_0x2559e9,_0x1cf82f,_0x39fc4b){this['className']=_0x3d517c,this['left']=_0x4936d0,this['top']=_0x2559e9,this['width']=_0x1cf82f,this['height']=_0x39fc4b;}['draw'](){let _0xb0a63c=document['createElement']('div');return _0xb0a63c['className']=this['className'],this['adjust'](_0xb0a63c),_0xb0a63c;}['update'](_0x6e2b12,_0x53333d){return _0x53333d['className']==this['className']&&(this['adjust'](_0x6e2b12),!0x0);}['adjust'](_0x59c93d){_0x59c93d['style']['left']=this['left']+'px',_0x59c93d['style']['top']=this['top']+'px',null!=this['width']&&(_0x59c93d['style']['width']=this['width']+'px'),_0x59c93d['style']['height']=this['height']+'px';}['eq'](_0x1a73d5){return this['left']==_0x1a73d5['left']&&this['top']==_0x1a73d5['top']&&this['width']==_0x1a73d5['width']&&this['height']==_0x1a73d5['height']&&this['className']==_0x1a73d5['className'];}static['forRange'](_0x3bcbe4,_0x40a9bd,_0x2e5c0c){if(_0x2e5c0c['empty']){let _0x3e1a53=_0x3bcbe4['coordsAtPos'](_0x2e5c0c['head'],_0x2e5c0c['assoc']||0x1);if(!_0x3e1a53)return[];let _0xe15c1=getBase(_0x3bcbe4);return[new RectangleMarker(_0x40a9bd,_0x3e1a53['left']-_0xe15c1['left'],_0x3e1a53['top']-_0xe15c1['top'],null,_0x3e1a53['bottom']-_0x3e1a53['top'])];}return rectanglesForRange(_0x3bcbe4,_0x40a9bd,_0x2e5c0c);}}function getBase(_0x1eb5b6){let _0x175b00=_0x1eb5b6['scrollDOM']['getBoundingClientRect']();return{'left':(_0x1eb5b6['textDirection']==Direction['LTR']?_0x175b00['left']:_0x175b00['right']-_0x1eb5b6['scrollDOM']['clientWidth']*_0x1eb5b6['scaleX'])-_0x1eb5b6['scrollDOM']['scrollLeft']*_0x1eb5b6['scaleX'],'top':_0x175b00['top']-_0x1eb5b6['scrollDOM']['scrollTop']*_0x1eb5b6['scaleY']};}function wrappedLine(_0x4e3f0c,_0x3b689b,_0x30ee77,_0x20a9a8){let _0x25a771=_0x4e3f0c['coordsAtPos'](_0x3b689b,0x2*_0x30ee77);if(!_0x25a771)return _0x20a9a8;let _0x40a6ca=_0x4e3f0c['dom']['getBoundingClientRect'](),_0x3a8490=(_0x25a771['top']+_0x25a771['bottom'])/0x2,_0x28b8f0=_0x4e3f0c['posAtCoords']({'x':_0x40a6ca['left']+0x1,'y':_0x3a8490}),_0x2a1c19=_0x4e3f0c['posAtCoords']({'x':_0x40a6ca['right']-0x1,'y':_0x3a8490});return null==_0x28b8f0||null==_0x2a1c19?_0x20a9a8:{'from':Math['max'](_0x20a9a8['from'],Math['min'](_0x28b8f0,_0x2a1c19)),'to':Math['min'](_0x20a9a8['to'],Math['max'](_0x28b8f0,_0x2a1c19))};}function rectanglesForRange(_0x33554e,_0xe5d260,_0x7219e8){if(_0x7219e8['to']<=_0x33554e['viewport']['from']||_0x7219e8['from']>=_0x33554e['viewport']['to'])return[];let _0x10073a=Math['max'](_0x7219e8['from'],_0x33554e['viewport']['from']),_0x19c4ef=Math['min'](_0x7219e8['to'],_0x33554e['viewport']['to']),_0x2f9fcf=_0x33554e['textDirection']==Direction['LTR'],_0x333329=_0x33554e['contentDOM'],_0x5e2861=_0x333329['getBoundingClientRect'](),_0x1e8db7=getBase(_0x33554e),_0xb50663=_0x333329['querySelector']('.cm-line'),_0x559356=_0xb50663&&window['getComputedStyle'](_0xb50663),_0x3f0416=_0x5e2861['left']+(_0x559356?parseInt(_0x559356['paddingLeft'])+Math['min'](0x0,parseInt(_0x559356['textIndent'])):0x0),_0x142789=_0x5e2861['right']-(_0x559356?parseInt(_0x559356['paddingRight']):0x0),_0x119a74=blockAt(_0x33554e,_0x10073a,0x1),_0xc888d=blockAt(_0x33554e,_0x19c4ef,-0x1),_0x16c786=_0x119a74['type']==BlockType['Text']?_0x119a74:null,_0x408fff=_0xc888d['type']==BlockType['Text']?_0xc888d:null;if(_0x16c786&&(_0x33554e['lineWrapping']||_0x119a74['widgetLineBreaks'])&&(_0x16c786=wrappedLine(_0x33554e,_0x10073a,0x1,_0x16c786)),_0x408fff&&(_0x33554e['lineWrapping']||_0xc888d['widgetLineBreaks'])&&(_0x408fff=wrappedLine(_0x33554e,_0x19c4ef,-0x1,_0x408fff)),_0x16c786&&_0x408fff&&_0x16c786['from']==_0x408fff['from']&&_0x16c786['to']==_0x408fff['to'])return _0x488091(_0x28bb43(_0x7219e8['from'],_0x7219e8['to'],_0x16c786));{let _0xc10f99=_0x16c786?_0x28bb43(_0x7219e8['from'],null,_0x16c786):_0x5894bb(_0x119a74,!0x1),_0x583516=_0x408fff?_0x28bb43(null,_0x7219e8['to'],_0x408fff):_0x5894bb(_0xc888d,!0x0),_0x196b0d=[];return(_0x16c786||_0x119a74)['to']<(_0x408fff||_0xc888d)['from']-(_0x16c786&&_0x408fff?0x1:0x0)||_0x119a74['widgetLineBreaks']>0x1&&_0xc10f99['bottom']+_0x33554e['defaultLineHeight']/0x2<_0x583516['top']?_0x196b0d['push'](_0x1f83eb(_0x3f0416,_0xc10f99['bottom'],_0x142789,_0x583516['top'])):_0xc10f99['bottom']<_0x583516['top']&&_0x33554e['elementAtHeight']((_0xc10f99['bottom']+_0x583516['top'])/0x2)['type']==BlockType['Text']&&(_0xc10f99['bottom']=_0x583516['top']=(_0xc10f99['bottom']+_0x583516['top'])/0x2),_0x488091(_0xc10f99)['concat'](_0x196b0d)['concat'](_0x488091(_0x583516));}function _0x1f83eb(_0x18f7d1,_0x58a1ac,_0x5697db,_0x24a776){return new RectangleMarker(_0xe5d260,_0x18f7d1-_0x1e8db7['left'],_0x58a1ac-_0x1e8db7['top'],_0x5697db-_0x18f7d1,_0x24a776-_0x58a1ac);}function _0x488091({top:_0x2e706b,bottom:_0x414290,horizontal:_0x172db8}){let _0x74347d=[];for(let _0x4dd5ac=0x0;_0x4dd5ac<_0x172db8['length'];_0x4dd5ac+=0x2)_0x74347d['push'](_0x1f83eb(_0x172db8[_0x4dd5ac],_0x2e706b,_0x172db8[_0x4dd5ac+0x1],_0x414290));return _0x74347d;}function _0x28bb43(_0xcda71,_0x2d4e37,_0x454915){let _0x2a8649=0x3b9aca00,_0x2b802e=-0x3b9aca00,_0x190084=[];function _0x51231f(_0xadd2b,_0x23dea1,_0x573594,_0xb1dbfd,_0x46b592){let _0x57fd25=_0x33554e['coordsAtPos'](_0xadd2b,_0xadd2b==_0x454915['to']?-0x2:0x2),_0x516a47=_0x33554e['coordsAtPos'](_0x573594,_0x573594==_0x454915['from']?0x2:-0x2);_0x57fd25&&_0x516a47&&(_0x2a8649=Math['min'](_0x57fd25['top'],_0x516a47['top'],_0x2a8649),_0x2b802e=Math['max'](_0x57fd25['bottom'],_0x516a47['bottom'],_0x2b802e),_0x46b592==Direction['LTR']?_0x190084['push'](_0x2f9fcf&&_0x23dea1?_0x3f0416:_0x57fd25['left'],_0x2f9fcf&&_0xb1dbfd?_0x142789:_0x516a47['right']):_0x190084['push'](!_0x2f9fcf&&_0xb1dbfd?_0x3f0416:_0x516a47['left'],!_0x2f9fcf&&_0x23dea1?_0x142789:_0x57fd25['right']));}let _0x4377ef=null!=_0xcda71?_0xcda71:_0x454915['from'],_0x1a1486=null!=_0x2d4e37?_0x2d4e37:_0x454915['to'];for(let _0x22cdf8 of _0x33554e['visibleRanges'])if(_0x22cdf8['to']>_0x4377ef&&_0x22cdf8['from']<_0x1a1486)for(let _0x20fc49=Math['max'](_0x22cdf8['from'],_0x4377ef),_0x198491=Math['min'](_0x22cdf8['to'],_0x1a1486);;){let _0x2facbd=_0x33554e['state']['doc']['lineAt'](_0x20fc49);for(let _0x16886a of _0x33554e['bidiSpans'](_0x2facbd)){let _0x55fe29=_0x16886a['from']+_0x2facbd['from'],_0x58d8e3=_0x16886a['to']+_0x2facbd['from'];if(_0x55fe29>=_0x198491)break;_0x58d8e3>_0x20fc49&&_0x51231f(Math['max'](_0x55fe29,_0x20fc49),null==_0xcda71&&_0x55fe29<=_0x4377ef,Math['min'](_0x58d8e3,_0x198491),null==_0x2d4e37&&_0x58d8e3>=_0x1a1486,_0x16886a['dir']);}if(_0x20fc49=_0x2facbd['to']+0x1,_0x20fc49>=_0x198491)break;}return 0x0==_0x190084['length']&&_0x51231f(_0x4377ef,null==_0xcda71,_0x1a1486,null==_0x2d4e37,_0x33554e['textDirection']),{'top':_0x2a8649,'bottom':_0x2b802e,'horizontal':_0x190084};}function _0x5894bb(_0x4aa6ea,_0x422add){let _0x587f19=_0x5e2861['top']+(_0x422add?_0x4aa6ea['top']:_0x4aa6ea['bottom']);return{'top':_0x587f19,'bottom':_0x587f19,'horizontal':[]};}}function sameMarker(_0x40ea0b,_0x111a1e){return _0x40ea0b['constructor']==_0x111a1e['constructor']&&_0x40ea0b['eq'](_0x111a1e);}class LayerView{constructor(_0xc3aafa,_0x3ca8a5){this['view']=_0xc3aafa,this['layer']=_0x3ca8a5,this['drawn']=[],this['scaleX']=0x1,this['scaleY']=0x1,this['measureReq']={'read':this['measure']['bind'](this),'write':this['draw']['bind'](this)},this['dom']=_0xc3aafa['scrollDOM']['appendChild'](document['createElement']('div')),this['dom']['classList']['add']('cm-layer'),_0x3ca8a5['above']&&this['dom']['classList']['add']('cm-layer-above'),_0x3ca8a5['class']&&this['dom']['classList']['add'](_0x3ca8a5['class']),this['scale'](),this['dom']['setAttribute']('aria-hidden','true'),this['setOrder'](_0xc3aafa['state']),_0xc3aafa['requestMeasure'](this['measureReq']),_0x3ca8a5['mount']&&_0x3ca8a5['mount'](this['dom'],_0xc3aafa);}['update'](_0x2a7526){_0x2a7526['startState']['facet'](layerOrder)!=_0x2a7526['state']['facet'](layerOrder)&&this['setOrder'](_0x2a7526['state']),(this['layer']['update'](_0x2a7526,this['dom'])||_0x2a7526['geometryChanged'])&&(this['scale'](),_0x2a7526['view']['requestMeasure'](this['measureReq']));}['docViewUpdate'](_0x40bdb2){!0x1!==this['layer']['updateOnDocViewUpdate']&&_0x40bdb2['requestMeasure'](this['measureReq']);}['setOrder'](_0x452683){let _0x5ed448=0x0,_0x1bcd02=_0x452683['facet'](layerOrder);for(;_0x5ed448<_0x1bcd02['length']&&_0x1bcd02[_0x5ed448]!=this['layer'];)_0x5ed448++;this['dom']['style']['zIndex']=String((this['layer']['above']?0x96:-0x1)-_0x5ed448);}['measure'](){return this['layer']['markers'](this['view']);}['scale'](){let {scaleX:_0x5285b4,scaleY:_0x54eb9b}=this['view'];_0x5285b4==this['scaleX']&&_0x54eb9b==this['scaleY']||(this['scaleX']=_0x5285b4,this['scaleY']=_0x54eb9b,this['dom']['style']['transform']='scale('+0x1/_0x5285b4+',\x20'+0x1/_0x54eb9b+')');}['draw'](_0x51d531){if(_0x51d531['length']!=this['drawn']['length']||_0x51d531['some']((_0x2ca8b5,_0x437d09)=>!sameMarker(_0x2ca8b5,this['drawn'][_0x437d09]))){let _0x4658ce=this['dom']['firstChild'],_0x11be0b=0x0;for(let _0x3469a0 of _0x51d531)_0x3469a0['update']&&_0x4658ce&&_0x3469a0['constructor']&&this['drawn'][_0x11be0b]['constructor']&&_0x3469a0['update'](_0x4658ce,this['drawn'][_0x11be0b])?(_0x4658ce=_0x4658ce['nextSibling'],_0x11be0b++):this['dom']['insertBefore'](_0x3469a0['draw'](),_0x4658ce);for(;_0x4658ce;){let _0x3761c9=_0x4658ce['nextSibling'];_0x4658ce['remove'](),_0x4658ce=_0x3761c9;}this['drawn']=_0x51d531,browser['safari']&&browser['safari_version']>=0x1a&&(this['dom']['style']['display']=this['dom']['firstChild']?'':'none');}}['destroy'](){this['layer']['destroy']&&this['layer']['destroy'](this['dom'],this['view']),this['dom']['remove']();}}const layerOrder=Facet['define']();function layer(_0x71e8e4){return[ViewPlugin['define'](_0x1dc7bb=>new LayerView(_0x1dc7bb,_0x71e8e4)),layerOrder['of'](_0x71e8e4)];}const selectionConfig=Facet['define']({'combine':_0x1a477c=>combineConfig(_0x1a477c,{'cursorBlinkRate':0x4b0,'drawRangeCursor':!0x0},{'cursorBlinkRate':(_0x1c43f0,_0x31444c)=>Math['min'](_0x1c43f0,_0x31444c),'drawRangeCursor':(_0x8fbca5,_0x5a941b)=>_0x8fbca5||_0x5a941b})});function drawSelection(_0x459370={}){return[selectionConfig['of'](_0x459370),cursorLayer,selectionLayer,hideNativeSelection,nativeSelectionHidden['of'](!0x0)];}function configChanged(_0x449f31){return _0x449f31['startState']['facet'](selectionConfig)!=_0x449f31['state']['facet'](selectionConfig);}const cursorLayer=layer({'above':!0x0,'markers'(_0x4ea531){let {state:_0x167229}=_0x4ea531,_0x494df7=_0x167229['facet'](selectionConfig),_0x320b1f=[];for(let _0x5eda8e of _0x167229['selection']['ranges']){let _0x41ad82=_0x5eda8e==_0x167229['selection']['main'];if(_0x5eda8e['empty']||_0x494df7['drawRangeCursor']){let _0x85b38a=_0x41ad82?'cm-cursor\x20cm-cursor-primary':'cm-cursor\x20cm-cursor-secondary',_0x139f65=_0x5eda8e['empty']?_0x5eda8e:EditorSelection['cursor'](_0x5eda8e['head'],_0x5eda8e['head']>_0x5eda8e['anchor']?-0x1:0x1);for(let _0x3e77c5 of RectangleMarker['forRange'](_0x4ea531,_0x85b38a,_0x139f65))_0x320b1f['push'](_0x3e77c5);}}return _0x320b1f;},'update'(_0xad566f,_0x4295e7){_0xad566f['transactions']['some'](_0x3fc8ff=>_0x3fc8ff['selection'])&&(_0x4295e7['style']['animationName']='cm-blink'==_0x4295e7['style']['animationName']?'cm-blink2':'cm-blink');let _0x3d9123=configChanged(_0xad566f);return _0x3d9123&&setBlinkRate(_0xad566f['state'],_0x4295e7),_0xad566f['docChanged']||_0xad566f['selectionSet']||_0x3d9123;},'mount'(_0x58e928,_0x346fbd){setBlinkRate(_0x346fbd['state'],_0x58e928);},'class':'cm-cursorLayer'});function setBlinkRate(_0x4cd406,_0x5a8e38){_0x5a8e38['style']['animationDuration']=_0x4cd406['facet'](selectionConfig)['cursorBlinkRate']+'ms';}const selectionLayer=layer({'above':!0x1,'markers':_0x1ae204=>_0x1ae204['state']['selection']['ranges']['map'](_0x1def7b=>_0x1def7b['empty']?[]:RectangleMarker['forRange'](_0x1ae204,'cm-selectionBackground',_0x1def7b))['reduce']((_0x4e1c0e,_0x165f6a)=>_0x4e1c0e['concat'](_0x165f6a)),'update':(_0x50e832,_0x29d4a7)=>_0x50e832['docChanged']||_0x50e832['selectionSet']||_0x50e832['viewportChanged']||configChanged(_0x50e832),'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':(_0x4a0f14,_0x23610e)=>null==_0x4a0f14?null:_0x23610e['mapPos'](_0x4a0f14)}),dropCursorPos=StateField['define']({'create':()=>null,'update':(_0x583b58,_0x3c3fa1)=>(null!=_0x583b58&&(_0x583b58=_0x3c3fa1['changes']['mapPos'](_0x583b58)),_0x3c3fa1['effects']['reduce']((_0x37fe42,_0x23f3ac)=>_0x23f3ac['is'](setDropCursorPos)?_0x23f3ac['value']:_0x37fe42,_0x583b58))}),drawDropCursor=ViewPlugin['fromClass'](class{constructor(_0x109cd7){this['view']=_0x109cd7,this['cursor']=null,this['measureReq']={'read':this['readPos']['bind'](this),'write':this['drawCursor']['bind'](this)};}['update'](_0x39faf3){var _0x48e6e2;let _0x1ddcd9=_0x39faf3['state']['field'](dropCursorPos);null==_0x1ddcd9?null!=this['cursor']&&(null===(_0x48e6e2=this['cursor'])||void 0x0===_0x48e6e2||_0x48e6e2['remove'](),this['cursor']=null):(this['cursor']||(this['cursor']=this['view']['scrollDOM']['appendChild'](document['createElement']('div')),this['cursor']['className']='cm-dropCursor'),(_0x39faf3['startState']['field'](dropCursorPos)!=_0x1ddcd9||_0x39faf3['docChanged']||_0x39faf3['geometryChanged'])&&this['view']['requestMeasure'](this['measureReq']));}['readPos'](){let {view:_0x4bd82a}=this,_0x5a53da=_0x4bd82a['state']['field'](dropCursorPos),_0x12c1ae=null!=_0x5a53da&&_0x4bd82a['coordsAtPos'](_0x5a53da);if(!_0x12c1ae)return null;let _0x4aae53=_0x4bd82a['scrollDOM']['getBoundingClientRect']();return{'left':_0x12c1ae['left']-_0x4aae53['left']+_0x4bd82a['scrollDOM']['scrollLeft']*_0x4bd82a['scaleX'],'top':_0x12c1ae['top']-_0x4aae53['top']+_0x4bd82a['scrollDOM']['scrollTop']*_0x4bd82a['scaleY'],'height':_0x12c1ae['bottom']-_0x12c1ae['top']};}['drawCursor'](_0x43feaa){if(this['cursor']){let {scaleX:_0x4cafd0,scaleY:_0xd5ad76}=this['view'];_0x43feaa?(this['cursor']['style']['left']=_0x43feaa['left']/_0x4cafd0+'px',this['cursor']['style']['top']=_0x43feaa['top']/_0xd5ad76+'px',this['cursor']['style']['height']=_0x43feaa['height']/_0xd5ad76+'px'):this['cursor']['style']['left']='-100000px';}}['destroy'](){this['cursor']&&this['cursor']['remove']();}['setDropPos'](_0x572b7e){this['view']['state']['field'](dropCursorPos)!=_0x572b7e&&this['view']['dispatch']({'effects':setDropCursorPos['of'](_0x572b7e)});}},{'eventObservers':{'dragover'(_0x409bd7){this['setDropPos'](this['view']['posAtCoords']({'x':_0x409bd7['clientX'],'y':_0x409bd7['clientY']}));},'dragleave'(_0x393ab7){_0x393ab7['target']!=this['view']['contentDOM']&&this['view']['contentDOM']['contains'](_0x393ab7['relatedTarget'])||this['setDropPos'](null);},'dragend'(){this['setDropPos'](null);},'drop'(){this['setDropPos'](null);}}});function dropCursor(){return[dropCursorPos,drawDropCursor];}function iterMatches(_0xf7a093,_0x22460f,_0x480d3c,_0xcd598c,_0x571a3f){_0x22460f['lastIndex']=0x0;for(let _0x15f80a,_0x2e48dd=_0xf7a093['iterRange'](_0x480d3c,_0xcd598c),_0x2e3aa3=_0x480d3c;!_0x2e48dd['next']()['done'];_0x2e3aa3+=_0x2e48dd['value']['length'])if(!_0x2e48dd['lineBreak']){for(;_0x15f80a=_0x22460f['exec'](_0x2e48dd['value']);)_0x571a3f(_0x2e3aa3+_0x15f80a['index'],_0x15f80a);}}function matchRanges(_0x257b20,_0x3dd27f){let _0x313092=_0x257b20['visibleRanges'];if(0x1==_0x313092['length']&&_0x313092[0x0]['from']==_0x257b20['viewport']['from']&&_0x313092[0x0]['to']==_0x257b20['viewport']['to'])return _0x313092;let _0x4bb527=[];for(let {from:_0x4b9f1a,to:_0x36f7e0}of _0x313092)_0x4b9f1a=Math['max'](_0x257b20['state']['doc']['lineAt'](_0x4b9f1a)['from'],_0x4b9f1a-_0x3dd27f),_0x36f7e0=Math['min'](_0x257b20['state']['doc']['lineAt'](_0x36f7e0)['to'],_0x36f7e0+_0x3dd27f),_0x4bb527['length']&&_0x4bb527[_0x4bb527['length']-0x1]['to']>=_0x4b9f1a?_0x4bb527[_0x4bb527['length']-0x1]['to']=_0x36f7e0:_0x4bb527['push']({'from':_0x4b9f1a,'to':_0x36f7e0});return _0x4bb527;}class MatchDecorator{constructor(_0xa4388e){const {regexp:_0x3543cd,decoration:_0x532a19,decorate:_0x276558,boundary:_0x58c1f8,maxLength:_0x3e2b2a=0x3e8}=_0xa4388e;if(!_0x3543cd['global'])throw new RangeError('The\x20regular\x20expression\x20given\x20to\x20MatchDecorator\x20should\x20have\x20its\x20\x27g\x27\x20flag\x20set');if(this['regexp']=_0x3543cd,_0x276558)this['addMatch']=(_0x118c03,_0xa45c52,_0x178a86,_0x125c42)=>_0x276558(_0x125c42,_0x178a86,_0x178a86+_0x118c03[0x0]['length'],_0x118c03,_0xa45c52);else{if('function'==typeof _0x532a19)this['addMatch']=(_0x17b5c9,_0x4cd479,_0x3097dc,_0x5a88d6)=>{let _0x18133e=_0x532a19(_0x17b5c9,_0x4cd479,_0x3097dc);_0x18133e&&_0x5a88d6(_0x3097dc,_0x3097dc+_0x17b5c9[0x0]['length'],_0x18133e);};else{if(!_0x532a19)throw new RangeError('Either\x20\x27decorate\x27\x20or\x20\x27decoration\x27\x20should\x20be\x20provided\x20to\x20MatchDecorator');this['addMatch']=(_0x3d7691,_0x395487,_0xad8def,_0x338a09)=>_0x338a09(_0xad8def,_0xad8def+_0x3d7691[0x0]['length'],_0x532a19);}}this['boundary']=_0x58c1f8,this['maxLength']=_0x3e2b2a;}['createDeco'](_0x3ee036){let _0x222616=new RangeSetBuilder(),_0x3bbedf=_0x222616['add']['bind'](_0x222616);for(let {from:_0x463847,to:_0xad716b}of matchRanges(_0x3ee036,this['maxLength']))iterMatches(_0x3ee036['state']['doc'],this['regexp'],_0x463847,_0xad716b,(_0x55a927,_0x1dcc79)=>this['addMatch'](_0x1dcc79,_0x3ee036,_0x55a927,_0x3bbedf));return _0x222616['finish']();}['updateDeco'](_0x1b1de1,_0x5acade){let _0x3af125=0x3b9aca00,_0x487206=-0x1;return _0x1b1de1['docChanged']&&_0x1b1de1['changes']['iterChanges']((_0x2db272,_0x42cc58,_0x584472,_0x4df2ec)=>{_0x4df2ec>=_0x1b1de1['view']['viewport']['from']&&_0x584472<=_0x1b1de1['view']['viewport']['to']&&(_0x3af125=Math['min'](_0x584472,_0x3af125),_0x487206=Math['max'](_0x4df2ec,_0x487206));}),_0x1b1de1['viewportMoved']||_0x487206-_0x3af125>0x3e8?this['createDeco'](_0x1b1de1['view']):_0x487206>-0x1?this['updateRange'](_0x1b1de1['view'],_0x5acade['map'](_0x1b1de1['changes']),_0x3af125,_0x487206):_0x5acade;}['updateRange'](_0x4bd5ff,_0x3366d2,_0x18e978,_0x2ed7d2){for(let _0x1c56ac of _0x4bd5ff['visibleRanges']){let _0x3ae2b9=Math['max'](_0x1c56ac['from'],_0x18e978),_0x4b2c14=Math['min'](_0x1c56ac['to'],_0x2ed7d2);if(_0x4b2c14>=_0x3ae2b9){let _0x37300e=_0x4bd5ff['state']['doc']['lineAt'](_0x3ae2b9),_0x46b302=_0x37300e['to']<_0x4b2c14?_0x4bd5ff['state']['doc']['lineAt'](_0x4b2c14):_0x37300e,_0x351a2b=Math['max'](_0x1c56ac['from'],_0x37300e['from']),_0x542d38=Math['min'](_0x1c56ac['to'],_0x46b302['to']);if(this['boundary']){for(;_0x3ae2b9>_0x37300e['from'];_0x3ae2b9--)if(this['boundary']['test'](_0x37300e['text'][_0x3ae2b9-0x1-_0x37300e['from']])){_0x351a2b=_0x3ae2b9;break;}for(;_0x4b2c14<_0x46b302['to'];_0x4b2c14++)if(this['boundary']['test'](_0x46b302['text'][_0x4b2c14-_0x46b302['from']])){_0x542d38=_0x4b2c14;break;}}let _0xf54b74,_0x4a3bd4=[],_0x4d7b44=(_0x131127,_0x2791a4,_0x2f697f)=>_0x4a3bd4['push'](_0x2f697f['range'](_0x131127,_0x2791a4));if(_0x37300e==_0x46b302){for(this['regexp']['lastIndex']=_0x351a2b-_0x37300e['from'];(_0xf54b74=this['regexp']['exec'](_0x37300e['text']))&&_0xf54b74['index']<_0x542d38-_0x37300e['from'];)this['addMatch'](_0xf54b74,_0x4bd5ff,_0xf54b74['index']+_0x37300e['from'],_0x4d7b44);}else iterMatches(_0x4bd5ff['state']['doc'],this['regexp'],_0x351a2b,_0x542d38,(_0x88972c,_0x351eb2)=>this['addMatch'](_0x351eb2,_0x4bd5ff,_0x88972c,_0x4d7b44));_0x3366d2=_0x3366d2['update']({'filterFrom':_0x351a2b,'filterTo':_0x542d38,'filter':(_0x3883f4,_0x1c93c2)=>_0x3883f4<_0x351a2b||_0x1c93c2>_0x542d38,'add':_0x4a3bd4});}}return _0x3366d2;}}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 _0x305789;if(null==_supportsTabSize&&'undefined'!=typeof document&&document['body']){let _0x3a1f32=document['body']['style'];_supportsTabSize=null!=(null!==(_0x305789=_0x3a1f32['tabSize'])&&void 0x0!==_0x305789?_0x305789:_0x3a1f32['MozTabSize']);}return _supportsTabSize||!0x1;}const specialCharConfig=Facet['define']({'combine'(_0x125d16){let _0xe7be4f=combineConfig(_0x125d16,{'render':null,'specialChars':Specials,'addSpecialChars':null});return(_0xe7be4f['replaceTabs']=!supportsTabSize())&&(_0xe7be4f['specialChars']=new RegExp('\x09|'+_0xe7be4f['specialChars']['source'],UnicodeRegexpSupport)),_0xe7be4f['addSpecialChars']&&(_0xe7be4f['specialChars']=new RegExp(_0xe7be4f['specialChars']['source']+'|'+_0xe7be4f['addSpecialChars']['source'],UnicodeRegexpSupport)),_0xe7be4f;}});function highlightSpecialChars(_0x1f8bda={}){return[specialCharConfig['of'](_0x1f8bda),specialCharPlugin()];}let _plugin=null;function specialCharPlugin(){return _plugin||(_plugin=ViewPlugin['fromClass'](class{constructor(_0x216bdc){this['view']=_0x216bdc,this['decorations']=Decoration['none'],this['decorationCache']=Object['create'](null),this['decorator']=this['makeDecorator'](_0x216bdc['state']['facet'](specialCharConfig)),this['decorations']=this['decorator']['createDeco'](_0x216bdc);}['makeDecorator'](_0x348e63){return new MatchDecorator({'regexp':_0x348e63['specialChars'],'decoration':(_0x51e7e5,_0x2ba961,_0x4606f2)=>{let {doc:_0x48ca26}=_0x2ba961['state'],_0x5128bb=codePointAt(_0x51e7e5[0x0],0x0);if(0x9==_0x5128bb){let _0x4aa4e8=_0x48ca26['lineAt'](_0x4606f2),_0x489940=_0x2ba961['state']['tabSize'],_0x363426=countColumn(_0x4aa4e8['text'],_0x489940,_0x4606f2-_0x4aa4e8['from']);return Decoration['replace']({'widget':new TabWidget((_0x489940-_0x363426%_0x489940)*this['view']['defaultCharacterWidth']/this['view']['scaleX'])});}return this['decorationCache'][_0x5128bb]||(this['decorationCache'][_0x5128bb]=Decoration['replace']({'widget':new SpecialCharWidget(_0x348e63,_0x5128bb)}));},'boundary':_0x348e63['replaceTabs']?void 0x0:/[^]/});}['update'](_0x2702e6){let _0x56d81c=_0x2702e6['state']['facet'](specialCharConfig);_0x2702e6['startState']['facet'](specialCharConfig)!=_0x56d81c?(this['decorator']=this['makeDecorator'](_0x56d81c),this['decorations']=this['decorator']['createDeco'](_0x2702e6['view'])):this['decorations']=this['decorator']['updateDeco'](_0x2702e6,this['decorations']);}},{'decorations':_0x371e25=>_0x371e25['decorations']}));}const DefaultPlaceholder='•';function placeholder$1(_0x3e1d91){return _0x3e1d91>=0x20?DefaultPlaceholder:0xa==_0x3e1d91?'␤':String['fromCharCode'](0x2400+_0x3e1d91);}class SpecialCharWidget extends WidgetType{constructor(_0x24cf7a,_0x42fa83){super(),this['options']=_0x24cf7a,this['code']=_0x42fa83;}['eq'](_0x444a12){return _0x444a12['code']==this['code'];}['toDOM'](_0x362790){let _0x27b159=placeholder$1(this['code']),_0x15e6ab=_0x362790['state']['phrase']('Control\x20character')+'\x20'+(Names[this['code']]||'0x'+this['code']['toString'](0x10)),_0x4979e2=this['options']['render']&&this['options']['render'](this['code'],_0x15e6ab,_0x27b159);if(_0x4979e2)return _0x4979e2;let _0x2df563=document['createElement']('span');return _0x2df563['textContent']=_0x27b159,_0x2df563['title']=_0x15e6ab,_0x2df563['setAttribute']('aria-label',_0x15e6ab),_0x2df563['className']='cm-specialChar',_0x2df563;}['ignoreEvent'](){return!0x1;}}class TabWidget extends WidgetType{constructor(_0x2e0ff6){super(),this['width']=_0x2e0ff6;}['eq'](_0x6bb8aa){return _0x6bb8aa['width']==this['width'];}['toDOM'](){let _0x151921=document['createElement']('span');return _0x151921['textContent']='\x09',_0x151921['className']='cm-tab',_0x151921['style']['width']=this['width']+'px',_0x151921;}['ignoreEvent'](){return!0x1;}}function highlightActiveLine(){return activeLineHighlighter;}const lineDeco=Decoration['line']({'class':'cm-activeLine'}),activeLineHighlighter=ViewPlugin['fromClass'](class{constructor(_0x22600f){this['decorations']=this['getDeco'](_0x22600f);}['update'](_0x19216d){(_0x19216d['docChanged']||_0x19216d['selectionSet'])&&(this['decorations']=this['getDeco'](_0x19216d['view']));}['getDeco'](_0x286726){let _0x2dca78=-0x1,_0x5182a7=[];for(let _0x20186d of _0x286726['state']['selection']['ranges']){let _0x3f56ff=_0x286726['lineBlockAt'](_0x20186d['head']);_0x3f56ff['from']>_0x2dca78&&(_0x5182a7['push'](lineDeco['range'](_0x3f56ff['from'])),_0x2dca78=_0x3f56ff['from']);}return Decoration['set'](_0x5182a7);}},{'decorations':_0x5a0f61=>_0x5a0f61['decorations']}),MaxOff=0x7d0;function rectangleFor(_0x23b6bc,_0x55b482,_0x1081a2){let _0x1185bc=Math['min'](_0x55b482['line'],_0x1081a2['line']),_0x2eafd5=Math['max'](_0x55b482['line'],_0x1081a2['line']),_0x2fa4a7=[];if(_0x55b482['off']>MaxOff||_0x1081a2['off']>MaxOff||_0x55b482['col']<0x0||_0x1081a2['col']<0x0){let _0x4a6500=Math['min'](_0x55b482['off'],_0x1081a2['off']),_0x2d8ff5=Math['max'](_0x55b482['off'],_0x1081a2['off']);for(let _0x394f8c=_0x1185bc;_0x394f8c<=_0x2eafd5;_0x394f8c++){let _0x580c5f=_0x23b6bc['doc']['line'](_0x394f8c);_0x580c5f['length']<=_0x2d8ff5&&_0x2fa4a7['push'](EditorSelection['range'](_0x580c5f['from']+_0x4a6500,_0x580c5f['to']+_0x2d8ff5));}}else{let _0xb08e02=Math['min'](_0x55b482['col'],_0x1081a2['col']),_0x2edff1=Math['max'](_0x55b482['col'],_0x1081a2['col']);for(let _0x24a247=_0x1185bc;_0x24a247<=_0x2eafd5;_0x24a247++){let _0x11fec3=_0x23b6bc['doc']['line'](_0x24a247),_0x3ea3e6=findColumn(_0x11fec3['text'],_0xb08e02,_0x23b6bc['tabSize'],!0x0);if(_0x3ea3e6<0x0)_0x2fa4a7['push'](EditorSelection['cursor'](_0x11fec3['to']));else{let _0x495f80=findColumn(_0x11fec3['text'],_0x2edff1,_0x23b6bc['tabSize']);_0x2fa4a7['push'](EditorSelection['range'](_0x11fec3['from']+_0x3ea3e6,_0x11fec3['from']+_0x495f80));}}}return _0x2fa4a7;}function absoluteColumn(_0x3552d0,_0x2f14ea){let _0x3363ca=_0x3552d0['coordsAtPos'](_0x3552d0['viewport']['from']);return _0x3363ca?Math['round'](Math['abs']((_0x3363ca['left']-_0x2f14ea)/_0x3552d0['defaultCharacterWidth'])):-0x1;}function getPos(_0x1265c1,_0x257800){let _0xcc51f2=_0x1265c1['posAtCoords']({'x':_0x257800['clientX'],'y':_0x257800['clientY']},!0x1),_0x8e0d19=_0x1265c1['state']['doc']['lineAt'](_0xcc51f2),_0x1c76c9=_0xcc51f2-_0x8e0d19['from'],_0x1e973d=_0x1c76c9>MaxOff?-0x1:_0x1c76c9==_0x8e0d19['length']?absoluteColumn(_0x1265c1,_0x257800['clientX']):countColumn(_0x8e0d19['text'],_0x1265c1['state']['tabSize'],_0xcc51f2-_0x8e0d19['from']);return{'line':_0x8e0d19['number'],'col':_0x1e973d,'off':_0x1c76c9};}function rectangleSelectionStyle(_0x321a07,_0x5a1f1b){let _0x4ee613=getPos(_0x321a07,_0x5a1f1b),_0x2a474c=_0x321a07['state']['selection'];return _0x4ee613?{'update'(_0x15e555){if(_0x15e555['docChanged']){let _0x58cc05=_0x15e555['changes']['mapPos'](_0x15e555['startState']['doc']['line'](_0x4ee613['line'])['from']),_0x3b1969=_0x15e555['state']['doc']['lineAt'](_0x58cc05);_0x4ee613={'line':_0x3b1969['number'],'col':_0x4ee613['col'],'off':Math['min'](_0x4ee613['off'],_0x3b1969['length'])},_0x2a474c=_0x2a474c['map'](_0x15e555['changes']);}},'get'(_0x45bd21,_0x147855,_0x4ecf55){let _0x53fdc7=getPos(_0x321a07,_0x45bd21);if(!_0x53fdc7)return _0x2a474c;let _0x513678=rectangleFor(_0x321a07['state'],_0x4ee613,_0x53fdc7);return _0x513678['length']?_0x4ecf55?EditorSelection['create'](_0x513678['concat'](_0x2a474c['ranges'])):EditorSelection['create'](_0x513678):_0x2a474c;}}:null;}function rectangularSelection(_0x44f98b){return EditorView['mouseSelectionStyle']['of']((_0x1eb3b7,_0xb95ce2)=>{return(_0x2416f3=_0xb95ce2)['altKey']&&0x0==_0x2416f3['button']?rectangleSelectionStyle(_0x1eb3b7,_0xb95ce2):null;var _0x2416f3;});}const keys={'Alt':[0x12,_0x1024ba=>!!_0x1024ba['altKey']],'Control':[0x11,_0x180051=>!!_0x180051['ctrlKey']],'Shift':[0x10,_0x4b770d=>!!_0x4b770d['shiftKey']],'Meta':[0x5b,_0x5d54ee=>!!_0x5d54ee['metaKey']]},showCrosshair={'style':'cursor:\x20crosshair'};function crosshairCursor(_0x578183={}){let [_0x17395c,_0x59a71f]=keys[_0x578183['key']||'Alt'],_0x5156be=ViewPlugin['fromClass'](class{constructor(_0x2bbe6c){this['view']=_0x2bbe6c,this['isDown']=!0x1;}['set'](_0xe353d9){this['isDown']!=_0xe353d9&&(this['isDown']=_0xe353d9,this['view']['update']([]));}},{'eventObservers':{'keydown'(_0x5dbe87){this['set'](_0x5dbe87['keyCode']==_0x17395c||_0x59a71f(_0x5dbe87));},'keyup'(_0x2eb1ba){_0x2eb1ba['keyCode']!=_0x17395c&&_0x59a71f(_0x2eb1ba)||this['set'](!0x1);},'mousemove'(_0x5263c1){this['set'](_0x59a71f(_0x5263c1));}}});return[_0x5156be,EditorView['contentAttributes']['of'](_0x167009=>{var _0x2e62c4;return(null===(_0x2e62c4=_0x167009['plugin'](_0x5156be))||void 0x0===_0x2e62c4?void 0x0:_0x2e62c4['isDown'])?showCrosshair:null;})];}const Outside='-10000px';class TooltipViewManager{constructor(_0x26c8f2,_0x3a5315,_0x2f16d0,_0x124a97){this['facet']=_0x3a5315,this['createTooltipView']=_0x2f16d0,this['removeTooltipView']=_0x124a97,this['input']=_0x26c8f2['state']['facet'](_0x3a5315),this['tooltips']=this['input']['filter'](t=>t);let _0x5888a2=null;this['tooltipViews']=this['tooltips']['map'](t=>_0x5888a2=_0x2f16d0(t,_0x5888a2));}['update'](_0xe9fa85,_0xee1043){var _0xdb61a6;let _0x5bd028=_0xe9fa85['state']['facet'](this['facet']),_0x354944=_0x5bd028['filter'](_0x124b2e=>_0x124b2e);if(_0x5bd028===this['input']){for(let t of this['tooltipViews'])t['update']&&t['update'](_0xe9fa85);return!0x1;}let _0x1cbed9=[],_0x209394=_0xee1043?[]:null;for(let _0x133003=0x0;_0x133003<_0x354944['length'];_0x133003++){let _0x1f4280=_0x354944[_0x133003],_0x52eaf9=-0x1;if(_0x1f4280){for(let _0x51bf59=0x0;_0x51bf59<this['tooltips']['length'];_0x51bf59++){let _0xfaea4a=this['tooltips'][_0x51bf59];_0xfaea4a&&_0xfaea4a['create']==_0x1f4280['create']&&(_0x52eaf9=_0x51bf59);}if(_0x52eaf9<0x0)_0x1cbed9[_0x133003]=this['createTooltipView'](_0x1f4280,_0x133003?_0x1cbed9[_0x133003-0x1]:null),_0x209394&&(_0x209394[_0x133003]=!!_0x1f4280['above']);else{let _0x2a80b3=_0x1cbed9[_0x133003]=this['tooltipViews'][_0x52eaf9];_0x209394&&(_0x209394[_0x133003]=_0xee1043[_0x52eaf9]),_0x2a80b3['update']&&_0x2a80b3['update'](_0xe9fa85);}}}for(let t of this['tooltipViews'])_0x1cbed9['indexOf'](t)<0x0&&(this['removeTooltipView'](t),null===(_0xdb61a6=t['destroy'])||void 0x0===_0xdb61a6||_0xdb61a6['call'](t));return _0xee1043&&(_0x209394['forEach']((_0x5240af,_0x4fd00c)=>_0xee1043[_0x4fd00c]=_0x5240af),_0xee1043['length']=_0x209394['length']),this['input']=_0x5bd028,this['tooltips']=_0x354944,this['tooltipViews']=_0x1cbed9,!0x0;}}function windowSpace(_0x5acb25){let _0x4362df=_0x5acb25['dom']['ownerDocument']['documentElement'];return{'top':0x0,'left':0x0,'bottom':_0x4362df['clientHeight'],'right':_0x4362df['clientWidth']};}const tooltipConfig=Facet['define']({'combine':_0x5449b8=>{var _0x508c60,_0x366f91,_0x36f8b1;return{'position':browser['ios']?'absolute':(null===(_0x508c60=_0x5449b8['find'](_0xf0eb22=>_0xf0eb22['position']))||void 0x0===_0x508c60?void 0x0:_0x508c60['position'])||'fixed','parent':(null===(_0x366f91=_0x5449b8['find'](_0x567bf6=>_0x567bf6['parent']))||void 0x0===_0x366f91?void 0x0:_0x366f91['parent'])||null,'tooltipSpace':(null===(_0x36f8b1=_0x5449b8['find'](_0x231eec=>_0x231eec['tooltipSpace']))||void 0x0===_0x36f8b1?void 0x0:_0x36f8b1['tooltipSpace'])||windowSpace};}}),knownHeight=new WeakMap(),tooltipPlugin=ViewPlugin['fromClass'](class{constructor(_0x2de893){this['view']=_0x2de893,this['above']=[],this['inView']=!0x0,this['madeAbsolute']=!0x1,this['lastTransaction']=0x0,this['measureTimeout']=-0x1;let _0x5bb5e1=_0x2de893['state']['facet'](tooltipConfig);this['position']=_0x5bb5e1['position'],this['parent']=_0x5bb5e1['parent'],this['classes']=_0x2de893['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(_0x2de893,showTooltip,(t,_0x321f67)=>this['createTooltip'](t,_0x321f67),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(_0x34ec7f=>{Date['now']()>this['lastTransaction']-0x32&&_0x34ec7f['length']>0x0&&_0x34ec7f[_0x34ec7f['length']-0x1]['intersectionRatio']<0x1&&this['measureSoon']();},{'threshold':[0x1]}):null,this['observeIntersection'](),_0x2de893['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 _0x1f487f of this['manager']['tooltipViews'])this['intersectionObserver']['observe'](_0x1f487f['dom']);}}['measureSoon'](){this['measureTimeout']<0x0&&(this['measureTimeout']=setTimeout(()=>{this['measureTimeout']=-0x1,this['maybeMeasure']();},0x32));}['update'](_0x33f86a){_0x33f86a['transactions']['length']&&(this['lastTransaction']=Date['now']());let _0xb05133=this['manager']['update'](_0x33f86a,this['above']);_0xb05133&&this['observeIntersection']();let _0x1986c4=_0xb05133||_0x33f86a['geometryChanged'],_0x574ef4=_0x33f86a['state']['facet'](tooltipConfig);if(_0x574ef4['position']!=this['position']&&!this['madeAbsolute']){this['position']=_0x574ef4['position'];for(let t of this['manager']['tooltipViews'])t['dom']['style']['position']=this['position'];_0x1986c4=!0x0;}if(_0x574ef4['parent']!=this['parent']){this['parent']&&this['container']['remove'](),this['parent']=_0x574ef4['parent'],this['createContainer']();for(let t of this['manager']['tooltipViews'])this['container']['appendChild'](t['dom']);_0x1986c4=!0x0;}else this['parent']&&this['view']['themeClasses']!=this['classes']&&(this['classes']=this['container']['className']=this['view']['themeClasses']);_0x1986c4&&this['maybeMeasure']();}['createTooltip'](_0x3900de,_0x3cf250){let _0x4ea80e=_0x3900de['create'](this['view']),_0x1add19=_0x3cf250?_0x3cf250['dom']:null;if(_0x4ea80e['dom']['classList']['add']('cm-tooltip'),_0x3900de['arrow']&&!_0x4ea80e['dom']['querySelector']('.cm-tooltip\x20>\x20.cm-tooltip-arrow')){let _0x58e64b=document['createElement']('div');_0x58e64b['className']='cm-tooltip-arrow',_0x4ea80e['dom']['appendChild'](_0x58e64b);}return _0x4ea80e['dom']['style']['position']=this['position'],_0x4ea80e['dom']['style']['top']=Outside,_0x4ea80e['dom']['style']['left']='0px',this['container']['insertBefore'](_0x4ea80e['dom'],_0x1add19),_0x4ea80e['mount']&&_0x4ea80e['mount'](this['view']),this['resizeObserver']&&this['resizeObserver']['observe'](_0x4ea80e['dom']),_0x4ea80e;}['destroy'](){var _0x312f87,_0x3ec1f8,_0x3446c2;this['view']['win']['removeEventListener']('resize',this['measureSoon']);for(let _0x3e103b of this['manager']['tooltipViews'])_0x3e103b['dom']['remove'](),null===(_0x312f87=_0x3e103b['destroy'])||void 0x0===_0x312f87||_0x312f87['call'](_0x3e103b);this['parent']&&this['container']['remove'](),null===(_0x3ec1f8=this['resizeObserver'])||void 0x0===_0x3ec1f8||_0x3ec1f8['disconnect'](),null===(_0x3446c2=this['intersectionObserver'])||void 0x0===_0x3446c2||_0x3446c2['disconnect'](),clearTimeout(this['measureTimeout']);}['readMeasure'](){let _0x4182d2=0x1,_0x50b9c9=0x1,_0x360cef=!0x1;if('fixed'==this['position']&&this['manager']['tooltipViews']['length']){let {dom:_0x3800d4}=this['manager']['tooltipViews'][0x0];if(browser['gecko'])_0x360cef=_0x3800d4['offsetParent']!=this['container']['ownerDocument']['body'];else{if(_0x3800d4['style']['top']==Outside&&'0px'==_0x3800d4['style']['left']){let _0x169f70=_0x3800d4['getBoundingClientRect']();_0x360cef=Math['abs'](_0x169f70['top']+0x2710)>0x1||Math['abs'](_0x169f70['left'])>0x1;}}}if(_0x360cef||'absolute'==this['position']){if(this['parent']){let _0x27e200=this['parent']['getBoundingClientRect']();_0x27e200['width']&&_0x27e200['height']&&(_0x4182d2=_0x27e200['width']/this['parent']['offsetWidth'],_0x50b9c9=_0x27e200['height']/this['parent']['offsetHeight']);}else({scaleX:_0x4182d2,scaleY:_0x50b9c9}=this['view']['viewState']);}let _0x3d99bc=this['view']['scrollDOM']['getBoundingClientRect'](),_0x5306c2=getScrollMargins(this['view']);return{'visible':{'left':_0x3d99bc['left']+_0x5306c2['left'],'top':_0x3d99bc['top']+_0x5306c2['top'],'right':_0x3d99bc['right']-_0x5306c2['right'],'bottom':_0x3d99bc['bottom']-_0x5306c2['bottom']},'parent':this['parent']?this['container']['getBoundingClientRect']():this['view']['dom']['getBoundingClientRect'](),'pos':this['manager']['tooltips']['map']((t,_0x46bd9b)=>{let _0x5952fe=this['manager']['tooltipViews'][_0x46bd9b];return _0x5952fe['getCoords']?_0x5952fe['getCoords'](t['pos']):this['view']['coordsAtPos'](t['pos']);}),'size':this['manager']['tooltipViews']['map'](({dom:_0x232e76})=>_0x232e76['getBoundingClientRect']()),'space':this['view']['state']['facet'](tooltipConfig)['tooltipSpace'](this['view']),'scaleX':_0x4182d2,'scaleY':_0x50b9c9,'makeAbsolute':_0x360cef};}['writeMeasure'](_0x50c3a2){var _0x2fb378;if(_0x50c3a2['makeAbsolute']){this['madeAbsolute']=!0x0,this['position']='absolute';for(let t of this['manager']['tooltipViews'])t['dom']['style']['position']='absolute';}let {visible:_0x550c92,space:_0x982ff,scaleX:_0x24bcfd,scaleY:_0x2b284f}=_0x50c3a2,_0x2ab83c=[];for(let _0x7f61b1=0x0;_0x7f61b1<this['manager']['tooltips']['length'];_0x7f61b1++){let _0x240504=this['manager']['tooltips'][_0x7f61b1],_0x4bc3a5=this['manager']['tooltipViews'][_0x7f61b1],{dom:_0x4a9456}=_0x4bc3a5,_0x342139=_0x50c3a2['pos'][_0x7f61b1],_0x479c5f=_0x50c3a2['size'][_0x7f61b1];if(!_0x342139||!0x1!==_0x240504['clip']&&(_0x342139['bottom']<=Math['max'](_0x550c92['top'],_0x982ff['top'])||_0x342139['top']>=Math['min'](_0x550c92['bottom'],_0x982ff['bottom'])||_0x342139['right']<Math['max'](_0x550c92['left'],_0x982ff['left'])-0.1||_0x342139['left']>Math['min'](_0x550c92['right'],_0x982ff['right'])+0.1)){_0x4a9456['style']['top']=Outside;continue;}let _0x26561a=_0x240504['arrow']?_0x4bc3a5['dom']['querySelector']('.cm-tooltip-arrow'):null,_0x476565=_0x26561a?0x7:0x0,_0x5f5c6c=_0x479c5f['right']-_0x479c5f['left'],_0xcd8b2d=null!==(_0x2fb378=knownHeight['get'](_0x4bc3a5))&&void 0x0!==_0x2fb378?_0x2fb378:_0x479c5f['bottom']-_0x479c5f['top'],_0x3d508c=_0x4bc3a5['offset']||noOffset,_0x5aa2e7=this['view']['textDirection']==Direction['LTR'],_0x5ba63f=_0x479c5f['width']>_0x982ff['right']-_0x982ff['left']?_0x5aa2e7?_0x982ff['left']:_0x982ff['right']-_0x479c5f['width']:_0x5aa2e7?Math['max'](_0x982ff['left'],Math['min'](_0x342139['left']-(_0x26561a?0xe:0x0)+_0x3d508c['x'],_0x982ff['right']-_0x5f5c6c)):Math['min'](Math['max'](_0x982ff['left'],_0x342139['left']-_0x5f5c6c+(_0x26561a?0xe:0x0)-_0x3d508c['x']),_0x982ff['right']-_0x5f5c6c),_0x1aa25b=this['above'][_0x7f61b1];!_0x240504['strictSide']&&(_0x1aa25b?_0x342139['top']-_0xcd8b2d-_0x476565-_0x3d508c['y']<_0x982ff['top']:_0x342139['bottom']+_0xcd8b2d+_0x476565+_0x3d508c['y']>_0x982ff['bottom'])&&_0x1aa25b==_0x982ff['bottom']-_0x342139['bottom']>_0x342139['top']-_0x982ff['top']&&(_0x1aa25b=this['above'][_0x7f61b1]=!_0x1aa25b);let _0x90d46d=(_0x1aa25b?_0x342139['top']-_0x982ff['top']:_0x982ff['bottom']-_0x342139['bottom'])-_0x476565;if(_0x90d46d<_0xcd8b2d&&!0x1!==_0x4bc3a5['resize']){if(_0x90d46d<this['view']['defaultLineHeight']){_0x4a9456['style']['top']=Outside;continue;}knownHeight['set'](_0x4bc3a5,_0xcd8b2d),_0x4a9456['style']['height']=(_0xcd8b2d=_0x90d46d)/_0x2b284f+'px';}else _0x4a9456['style']['height']&&(_0x4a9456['style']['height']='');let _0x52cc87=_0x1aa25b?_0x342139['top']-_0xcd8b2d-_0x476565-_0x3d508c['y']:_0x342139['bottom']+_0x476565+_0x3d508c['y'],_0x45a560=_0x5ba63f+_0x5f5c6c;if(!0x0!==_0x4bc3a5['overlap']){for(let _0x493584 of _0x2ab83c)_0x493584['left']<_0x45a560&&_0x493584['right']>_0x5ba63f&&_0x493584['top']<_0x52cc87+_0xcd8b2d&&_0x493584['bottom']>_0x52cc87&&(_0x52cc87=_0x1aa25b?_0x493584['top']-_0xcd8b2d-0x2-_0x476565:_0x493584['bottom']+_0x476565+0x2);}if('absolute'==this['position']?(_0x4a9456['style']['top']=(_0x52cc87-_0x50c3a2['parent']['top'])/_0x2b284f+'px',setLeftStyle(_0x4a9456,(_0x5ba63f-_0x50c3a2['parent']['left'])/_0x24bcfd)):(_0x4a9456['style']['top']=_0x52cc87/_0x2b284f+'px',setLeftStyle(_0x4a9456,_0x5ba63f/_0x24bcfd)),_0x26561a){let _0x251e39=_0x342139['left']+(_0x5aa2e7?_0x3d508c['x']:-_0x3d508c['x'])-(_0x5ba63f+0xe-0x7);_0x26561a['style']['left']=_0x251e39/_0x24bcfd+'px';}!0x0!==_0x4bc3a5['overlap']&&_0x2ab83c['push']({'left':_0x5ba63f,'top':_0x52cc87,'right':_0x45a560,'bottom':_0x52cc87+_0xcd8b2d}),_0x4a9456['classList']['toggle']('cm-tooltip-above',_0x1aa25b),_0x4a9456['classList']['toggle']('cm-tooltip-below',!_0x1aa25b),_0x4bc3a5['positioned']&&_0x4bc3a5['positioned'](_0x50c3a2['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 _0x545673 of this['manager']['tooltipViews'])_0x545673['dom']['style']['top']=Outside;}}},{'eventObservers':{'scroll'(){this['maybeMeasure']();}}});function setLeftStyle(_0x1528ee,_0x42d96d){let _0x30bcc4=parseInt(_0x1528ee['style']['left'],0xa);(isNaN(_0x30bcc4)||Math['abs'](_0x42d96d-_0x30bcc4)>0x1)&&(_0x1528ee['style']['left']=_0x42d96d+'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(_0x5cbed8,_0x20b72d){let _0x508d61=_0x5cbed8['plugin'](tooltipPlugin);if(!_0x508d61)return null;let _0x31a1d7=_0x508d61['manager']['tooltips']['indexOf'](_0x20b72d);return _0x31a1d7<0x0?null:_0x508d61['manager']['tooltipViews'][_0x31a1d7];}class GutterMarker extends RangeValue{['compare'](_0x3325c3){return this==_0x3325c3||this['constructor']==_0x3325c3['constructor']&&this['eq'](_0x3325c3);}['eq'](_0x385046){return!0x1;}['destroy'](_0x2b94fc){}}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(_0x421ada){return[gutters(),activeGutters['of']({...defaults$1,..._0x421ada})];}const unfixGutters=Facet['define']({'combine':_0x5c9a73=>_0x5c9a73['some'](_0x1b7a21=>_0x1b7a21)});function gutters(_0x49e8fa){return[gutterView];}const gutterView=ViewPlugin['fromClass'](class{constructor(_0x3a2b38){this['view']=_0x3a2b38,this['domAfter']=null,this['prevViewport']=_0x3a2b38['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']=_0x3a2b38['state']['facet'](activeGutters)['map'](_0x37885a=>new SingleGutterView(_0x3a2b38,_0x37885a)),this['fixed']=!_0x3a2b38['state']['facet'](unfixGutters);for(let _0x1dd261 of this['gutters'])'after'==_0x1dd261['config']['side']?this['getDOMAfter']()['appendChild'](_0x1dd261['dom']):this['dom']['appendChild'](_0x1dd261['dom']);this['fixed']&&(this['dom']['style']['position']='sticky'),this['syncGutters'](!0x1),_0x3a2b38['scrollDOM']['insertBefore'](this['dom'],_0x3a2b38['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'](_0x5c94cb){if(this['updateGutters'](_0x5c94cb)){let _0xee026e=this['prevViewport'],_0x273627=_0x5c94cb['view']['viewport'],_0x2ba267=Math['min'](_0xee026e['to'],_0x273627['to'])-Math['max'](_0xee026e['from'],_0x273627['from']);this['syncGutters'](_0x2ba267<0.8*(_0x273627['to']-_0x273627['from']));}if(_0x5c94cb['geometryChanged']){let _0x204728=this['view']['contentHeight']/this['view']['scaleY']+'px';this['dom']['style']['minHeight']=_0x204728,this['domAfter']&&(this['domAfter']['style']['minHeight']=_0x204728);}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']=_0x5c94cb['view']['viewport'];}['syncGutters'](_0x5c808a){let _0xd32676=this['dom']['nextSibling'];_0x5c808a&&(this['dom']['remove'](),this['domAfter']&&this['domAfter']['remove']());let _0x32e463=RangeSet['iter'](this['view']['state']['facet'](gutterLineClass),this['view']['viewport']['from']),_0x4c4a26=[],_0x5ba1f7=this['gutters']['map'](_0x157d56=>new UpdateContext(_0x157d56,this['view']['viewport'],-this['view']['documentPadding']['top']));for(let _0xd7fe7 of this['view']['viewportLineBlocks'])if(_0x4c4a26['length']&&(_0x4c4a26=[]),Array['isArray'](_0xd7fe7['type'])){let _0x1d6bd2=!0x0;for(let _0x58c1c6 of _0xd7fe7['type'])if(_0x58c1c6['type']==BlockType['Text']&&_0x1d6bd2){advanceCursor(_0x32e463,_0x4c4a26,_0x58c1c6['from']);for(let _0x273592 of _0x5ba1f7)_0x273592['line'](this['view'],_0x58c1c6,_0x4c4a26);_0x1d6bd2=!0x1;}else{if(_0x58c1c6['widget']){for(let _0x8f2535 of _0x5ba1f7)_0x8f2535['widget'](this['view'],_0x58c1c6);}}}else{if(_0xd7fe7['type']==BlockType['Text']){advanceCursor(_0x32e463,_0x4c4a26,_0xd7fe7['from']);for(let _0x5c2946 of _0x5ba1f7)_0x5c2946['line'](this['view'],_0xd7fe7,_0x4c4a26);}else{if(_0xd7fe7['widget']){for(let _0x308204 of _0x5ba1f7)_0x308204['widget'](this['view'],_0xd7fe7);}}}for(let _0x57a56f of _0x5ba1f7)_0x57a56f['finish']();_0x5c808a&&(this['view']['scrollDOM']['insertBefore'](this['dom'],_0xd32676),this['domAfter']&&this['view']['scrollDOM']['appendChild'](this['domAfter']));}['updateGutters'](_0x4f6263){let _0x4bb6d3=_0x4f6263['startState']['facet'](activeGutters),_0xcf24cf=_0x4f6263['state']['facet'](activeGutters),_0x179375=_0x4f6263['docChanged']||_0x4f6263['heightChanged']||_0x4f6263['viewportChanged']||!RangeSet['eq'](_0x4f6263['startState']['facet'](gutterLineClass),_0x4f6263['state']['facet'](gutterLineClass),_0x4f6263['view']['viewport']['from'],_0x4f6263['view']['viewport']['to']);if(_0x4bb6d3==_0xcf24cf){for(let _0x450ebc of this['gutters'])_0x450ebc['update'](_0x4f6263)&&(_0x179375=!0x0);}else{_0x179375=!0x0;let _0x1d9eff=[];for(let _0x409189 of _0xcf24cf){let _0x20b417=_0x4bb6d3['indexOf'](_0x409189);_0x20b417<0x0?_0x1d9eff['push'](new SingleGutterView(this['view'],_0x409189)):(this['gutters'][_0x20b417]['update'](_0x4f6263),_0x1d9eff['push'](this['gutters'][_0x20b417]));}for(let _0x3d9c9b of this['gutters'])_0x3d9c9b['dom']['remove'](),_0x1d9eff['indexOf'](_0x3d9c9b)<0x0&&_0x3d9c9b['destroy']();for(let _0x2ab437 of _0x1d9eff)'after'==_0x2ab437['config']['side']?this['getDOMAfter']()['appendChild'](_0x2ab437['dom']):this['dom']['appendChild'](_0x2ab437['dom']);this['gutters']=_0x1d9eff;}return _0x179375;}['destroy'](){for(let _0x54fb4f of this['gutters'])_0x54fb4f['destroy']();this['dom']['remove'](),this['domAfter']&&this['domAfter']['remove']();}},{'provide':_0x38527a=>EditorView['scrollMargins']['of'](_0x65a954=>{let _0x5adab8=_0x65a954['plugin'](_0x38527a);if(!_0x5adab8||0x0==_0x5adab8['gutters']['length']||!_0x5adab8['fixed'])return null;let _0x3664f7=_0x5adab8['dom']['offsetWidth']*_0x65a954['scaleX'],_0x2daa65=_0x5adab8['domAfter']?_0x5adab8['domAfter']['offsetWidth']*_0x65a954['scaleX']:0x0;return _0x65a954['textDirection']==Direction['LTR']?{'left':_0x3664f7,'right':_0x2daa65}:{'right':_0x3664f7,'left':_0x2daa65};})});function asArray$1(_0x31932f){return Array['isArray'](_0x31932f)?_0x31932f:[_0x31932f];}function advanceCursor(_0x3d4378,_0x583aaa,_0x2af4ec){for(;_0x3d4378['value']&&_0x3d4378['from']<=_0x2af4ec;)_0x3d4378['from']==_0x2af4ec&&_0x583aaa['push'](_0x3d4378['value']),_0x3d4378['next']();}class UpdateContext{constructor(_0x504738,_0x1a69c6,_0x196ff7){this['gutter']=_0x504738,this['height']=_0x196ff7,this['i']=0x0,this['cursor']=RangeSet['iter'](_0x504738['markers'],_0x1a69c6['from']);}['addElement'](_0x37d6a,_0x1aa8ce,_0x5297c9){let {gutter:_0x22e23c}=this,_0x553da8=(_0x1aa8ce['top']-this['height'])/_0x37d6a['scaleY'],_0x237ba5=_0x1aa8ce['height']/_0x37d6a['scaleY'];if(this['i']==_0x22e23c['elements']['length']){let _0x4464e=new GutterElement(_0x37d6a,_0x237ba5,_0x553da8,_0x5297c9);_0x22e23c['elements']['push'](_0x4464e),_0x22e23c['dom']['appendChild'](_0x4464e['dom']);}else _0x22e23c['elements'][this['i']]['update'](_0x37d6a,_0x237ba5,_0x553da8,_0x5297c9);this['height']=_0x1aa8ce['bottom'],this['i']++;}['line'](_0xa79d10,_0xc3e107,_0x852abe){let _0x57cbbf=[];advanceCursor(this['cursor'],_0x57cbbf,_0xc3e107['from']),_0x852abe['length']&&(_0x57cbbf=_0x57cbbf['concat'](_0x852abe));let _0x1da050=this['gutter']['config']['lineMarker'](_0xa79d10,_0xc3e107,_0x57cbbf);_0x1da050&&_0x57cbbf['unshift'](_0x1da050);let _0x3fd09b=this['gutter'];(0x0!=_0x57cbbf['length']||_0x3fd09b['config']['renderEmptyElements'])&&this['addElement'](_0xa79d10,_0xc3e107,_0x57cbbf);}['widget'](_0x34098f,_0xc34479){let _0x528b2a=this['gutter']['config']['widgetMarker'](_0x34098f,_0xc34479['widget'],_0xc34479),_0x15c465=_0x528b2a?[_0x528b2a]:null;for(let _0x3ef1e9 of _0x34098f['state']['facet'](gutterWidgetClass)){let _0xe4a6f2=_0x3ef1e9(_0x34098f,_0xc34479['widget'],_0xc34479);_0xe4a6f2&&(_0x15c465||(_0x15c465=[]))['push'](_0xe4a6f2);}_0x15c465&&this['addElement'](_0x34098f,_0xc34479,_0x15c465);}['finish'](){let _0x31b069=this['gutter'];for(;_0x31b069['elements']['length']>this['i'];){let _0x26c2da=_0x31b069['elements']['pop']();_0x31b069['dom']['removeChild'](_0x26c2da['dom']),_0x26c2da['destroy']();}}}class SingleGutterView{constructor(_0x15ee23,_0x48c829){this['view']=_0x15ee23,this['config']=_0x48c829,this['elements']=[],this['spacer']=null,this['dom']=document['createElement']('div'),this['dom']['className']='cm-gutter'+(this['config']['class']?'\x20'+this['config']['class']:'');for(let _0x4b4a4a in _0x48c829['domEventHandlers'])this['dom']['addEventListener'](_0x4b4a4a,_0x11f2f0=>{let _0x27dd9f,_0x4f1993=_0x11f2f0['target'];if(_0x4f1993!=this['dom']&&this['dom']['contains'](_0x4f1993)){for(;_0x4f1993['parentNode']!=this['dom'];)_0x4f1993=_0x4f1993['parentNode'];let _0x4944c1=_0x4f1993['getBoundingClientRect']();_0x27dd9f=(_0x4944c1['top']+_0x4944c1['bottom'])/0x2;}else _0x27dd9f=_0x11f2f0['clientY'];let _0x1524bf=_0x15ee23['lineBlockAtHeight'](_0x27dd9f-_0x15ee23['documentTop']);_0x48c829['domEventHandlers'][_0x4b4a4a](_0x15ee23,_0x1524bf,_0x11f2f0)&&_0x11f2f0['preventDefault']();});this['markers']=asArray$1(_0x48c829['markers'](_0x15ee23)),_0x48c829['initialSpacer']&&(this['spacer']=new GutterElement(_0x15ee23,0x0,0x0,[_0x48c829['initialSpacer'](_0x15ee23)]),this['dom']['appendChild'](this['spacer']['dom']),this['spacer']['dom']['style']['cssText']+='visibility:\x20hidden;\x20pointer-events:\x20none');}['update'](_0x463dd6){let _0x51c77c=this['markers'];if(this['markers']=asArray$1(this['config']['markers'](_0x463dd6['view'])),this['spacer']&&this['config']['updateSpacer']){let _0x27b3f8=this['config']['updateSpacer'](this['spacer']['markers'][0x0],_0x463dd6);_0x27b3f8!=this['spacer']['markers'][0x0]&&this['spacer']['update'](_0x463dd6['view'],0x0,0x0,[_0x27b3f8]);}let _0x359732=_0x463dd6['view']['viewport'];return!RangeSet['eq'](this['markers'],_0x51c77c,_0x359732['from'],_0x359732['to'])||!!this['config']['lineMarkerChange']&&this['config']['lineMarkerChange'](_0x463dd6);}['destroy'](){for(let _0x42216a of this['elements'])_0x42216a['destroy']();}}class GutterElement{constructor(_0x18fc96,_0x82a86f,_0x1c4a08,_0x19c1fb){this['height']=-0x1,this['above']=0x0,this['markers']=[],this['dom']=document['createElement']('div'),this['dom']['className']='cm-gutterElement',this['update'](_0x18fc96,_0x82a86f,_0x1c4a08,_0x19c1fb);}['update'](_0x3cf66f,_0x4be162,_0x284c58,_0xd0af51){this['height']!=_0x4be162&&(this['height']=_0x4be162,this['dom']['style']['height']=_0x4be162+'px'),this['above']!=_0x284c58&&(this['dom']['style']['marginTop']=(this['above']=_0x284c58)?_0x284c58+'px':''),sameMarkers(this['markers'],_0xd0af51)||this['setMarkers'](_0x3cf66f,_0xd0af51);}['setMarkers'](_0x2eb57b,_0x4915f0){let _0x4e9c76='cm-gutterElement',_0x3460e5=this['dom']['firstChild'];for(let _0x207b7b=0x0,_0x276573=0x0;;){let _0x5a2b2f=_0x276573,_0x1ec5df=_0x207b7b<_0x4915f0['length']?_0x4915f0[_0x207b7b++]:null,_0x541523=!0x1;if(_0x1ec5df){let _0x551066=_0x1ec5df['elementClass'];_0x551066&&(_0x4e9c76+='\x20'+_0x551066);for(let _0x124af3=_0x276573;_0x124af3<this['markers']['length'];_0x124af3++)if(this['markers'][_0x124af3]['compare'](_0x1ec5df)){_0x5a2b2f=_0x124af3,_0x541523=!0x0;break;}}else _0x5a2b2f=this['markers']['length'];for(;_0x276573<_0x5a2b2f;){let _0x345e7a=this['markers'][_0x276573++];if(_0x345e7a['toDOM']){_0x345e7a['destroy'](_0x3460e5);let _0x8e06f9=_0x3460e5['nextSibling'];_0x3460e5['remove'](),_0x3460e5=_0x8e06f9;}}if(!_0x1ec5df)break;_0x1ec5df['toDOM']&&(_0x541523?_0x3460e5=_0x3460e5['nextSibling']:this['dom']['insertBefore'](_0x1ec5df['toDOM'](_0x2eb57b),_0x3460e5)),_0x541523&&_0x276573++;}this['dom']['className']=_0x4e9c76,this['markers']=_0x4915f0;}['destroy'](){this['setMarkers'](null,[]);}}function sameMarkers(_0x531259,_0x4dae01){if(_0x531259['length']!=_0x4dae01['length'])return!0x1;for(let _0x363fdd=0x0;_0x363fdd<_0x531259['length'];_0x363fdd++)if(!_0x531259[_0x363fdd]['compare'](_0x4dae01[_0x363fdd]))return!0x1;return!0x0;}const lineNumberMarkers=Facet['define'](),lineNumberWidgetMarker=Facet['define'](),lineNumberConfig=Facet['define']({'combine':_0x3cfa07=>combineConfig(_0x3cfa07,{'formatNumber':String,'domEventHandlers':{}},{'domEventHandlers'(_0x5aacc0,_0x313aa1){let _0x357595=Object['assign']({},_0x5aacc0);for(let _0x52cce2 in _0x313aa1){let _0x4f2a87=_0x357595[_0x52cce2],_0x1b7fad=_0x313aa1[_0x52cce2];_0x357595[_0x52cce2]=_0x4f2a87?(_0x72d6b1,_0x3b4599,_0x521a27)=>_0x4f2a87(_0x72d6b1,_0x3b4599,_0x521a27)||_0x1b7fad(_0x72d6b1,_0x3b4599,_0x521a27):_0x1b7fad;}return _0x357595;}})});class NumberMarker extends GutterMarker{constructor(_0x2eed1a){super(),this['number']=_0x2eed1a;}['eq'](_0x42375c){return this['number']==_0x42375c['number'];}['toDOM'](){return document['createTextNode'](this['number']);}}function formatNumber(_0x5d1126,_0x423954){return _0x5d1126['state']['facet'](lineNumberConfig)['formatNumber'](_0x423954,_0x5d1126['state']);}const lineNumberGutter=activeGutters['compute']([lineNumberConfig],_0x28047b=>({'class':'cm-lineNumbers','renderEmptyElements':!0x1,'markers':_0x449130=>_0x449130['state']['facet'](lineNumberMarkers),'lineMarker':(_0x1b990e,_0x3232aa,_0x1a86fd)=>_0x1a86fd['some'](_0x155cc1=>_0x155cc1['toDOM'])?null:new NumberMarker(formatNumber(_0x1b990e,_0x1b990e['state']['doc']['lineAt'](_0x3232aa['from'])['number'])),'widgetMarker':(_0x27e3bc,_0x2a51d1,_0x4494e4)=>{for(let _0xaa64f1 of _0x27e3bc['state']['facet'](lineNumberWidgetMarker)){let _0x5b1ab4=_0xaa64f1(_0x27e3bc,_0x2a51d1,_0x4494e4);if(_0x5b1ab4)return _0x5b1ab4;}return null;},'lineMarkerChange':_0x28d665=>_0x28d665['startState']['facet'](lineNumberConfig)!=_0x28d665['state']['facet'](lineNumberConfig),'initialSpacer':_0x1979ab=>new NumberMarker(formatNumber(_0x1979ab,maxLineNumber(_0x1979ab['state']['doc']['lines']))),'updateSpacer'(_0x44bbbd,_0x4eb111){let _0x40f219=formatNumber(_0x4eb111['view'],maxLineNumber(_0x4eb111['view']['state']['doc']['lines']));return _0x40f219==_0x44bbbd['number']?_0x44bbbd:new NumberMarker(_0x40f219);},'domEventHandlers':_0x28047b['facet'](lineNumberConfig)['domEventHandlers'],'side':'before'}));function lineNumbers(_0x3bf9ca={}){return[lineNumberConfig['of'](_0x3bf9ca),gutters(),lineNumberGutter];}function maxLineNumber(_0x6b75e7){let _0x2c5bd9=0x9;for(;_0x2c5bd9<_0x6b75e7;)_0x2c5bd9=0xa*_0x2c5bd9+0x9;return _0x2c5bd9;}const activeLineGutterMarker=new class extends GutterMarker{constructor(){super(...arguments),this['elementClass']='cm-activeLineGutter';}}(),activeLineGutterHighlighter=gutterLineClass['compute'](['selection'],_0x57b657=>{let _0x1b35ca=[],_0x54300e=-0x1;for(let _0x1cdb65 of _0x57b657['selection']['ranges']){let _0x47e2a2=_0x57b657['doc']['lineAt'](_0x1cdb65['head'])['from'];_0x47e2a2>_0x54300e&&(_0x54300e=_0x47e2a2,_0x1b35ca['push'](activeLineGutterMarker['range'](_0x47e2a2)));}return RangeSet['of'](_0x1b35ca);});function highlightActiveLineGutter(){return activeLineGutterHighlighter;}const DefaultBufferLength=0x400;let nextPropID=0x0;class Range{constructor(_0x5eaed2,_0x4dd5ca){this['from']=_0x5eaed2,this['to']=_0x4dd5ca;}}class NodeProp{constructor(_0x33d9bc={}){this['id']=nextPropID++,this['perNode']=!!_0x33d9bc['perNode'],this['deserialize']=_0x33d9bc['deserialize']||(()=>{throw new Error('This\x20node\x20type\x20doesn\x27t\x20define\x20a\x20deserialize\x20function');}),this['combine']=_0x33d9bc['combine']||null;}['add'](_0x34b85d){if(this['perNode'])throw new RangeError('Can\x27t\x20add\x20per-node\x20props\x20to\x20node\x20types');return'function'!=typeof _0x34b85d&&(_0x34b85d=NodeType['match'](_0x34b85d)),_0x5760d7=>{let _0x3874e0=_0x34b85d(_0x5760d7);return void 0x0===_0x3874e0?null:[this,_0x3874e0];};}}NodeProp['closedBy']=new NodeProp({'deserialize':_0x994761=>_0x994761['split']('\x20')}),NodeProp['openedBy']=new NodeProp({'deserialize':_0x4e7689=>_0x4e7689['split']('\x20')}),NodeProp['group']=new NodeProp({'deserialize':_0x1216a3=>_0x1216a3['split']('\x20')}),NodeProp['isolate']=new NodeProp({'deserialize':_0x409858=>{if(_0x409858&&'rtl'!=_0x409858&&'ltr'!=_0x409858&&'auto'!=_0x409858)throw new RangeError('Invalid\x20value\x20for\x20isolate:\x20'+_0x409858);return _0x409858||'auto';}}),NodeProp['contextHash']=new NodeProp({'perNode':!0x0}),NodeProp['lookAhead']=new NodeProp({'perNode':!0x0}),NodeProp['mounted']=new NodeProp({'perNode':!0x0});class MountedTree{constructor(_0x17a01e,_0x21c6ca,_0x1f9728){this['tree']=_0x17a01e,this['overlay']=_0x21c6ca,this['parser']=_0x1f9728;}static['get'](_0x13f3a7){return _0x13f3a7&&_0x13f3a7['props']&&_0x13f3a7['props'][NodeProp['mounted']['id']];}}const noProps=Object['create'](null);class NodeType{constructor(_0x22672f,_0x42fba1,_0x3ef01f,_0x50f21b=0x0){this['name']=_0x22672f,this['props']=_0x42fba1,this['id']=_0x3ef01f,this['flags']=_0x50f21b;}static['define'](_0x46a095){let _0x5e7f3a=_0x46a095['props']&&_0x46a095['props']['length']?Object['create'](null):noProps,_0xe90128=(_0x46a095['top']?0x1:0x0)|(_0x46a095['skipped']?0x2:0x0)|(_0x46a095['error']?0x4:0x0)|(null==_0x46a095['name']?0x8:0x0),_0x5c9bc9=new NodeType(_0x46a095['name']||'',_0x5e7f3a,_0x46a095['id'],_0xe90128);if(_0x46a095['props']){for(let _0x3ae7cf of _0x46a095['props'])if(Array['isArray'](_0x3ae7cf)||(_0x3ae7cf=_0x3ae7cf(_0x5c9bc9)),_0x3ae7cf){if(_0x3ae7cf[0x0]['perNode'])throw new RangeError('Can\x27t\x20store\x20a\x20per-node\x20prop\x20on\x20a\x20node\x20type');_0x5e7f3a[_0x3ae7cf[0x0]['id']]=_0x3ae7cf[0x1];}}return _0x5c9bc9;}['prop'](_0x285d5b){return this['props'][_0x285d5b['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'](_0x46ef52){if('string'==typeof _0x46ef52){if(this['name']==_0x46ef52)return!0x0;let _0x4cc8c8=this['prop'](NodeProp['group']);return!!_0x4cc8c8&&_0x4cc8c8['indexOf'](_0x46ef52)>-0x1;}return this['id']==_0x46ef52;}static['match'](_0x5f56c0){let _0x5eb5d2=Object['create'](null);for(let _0x38be09 in _0x5f56c0)for(let _0x548ed5 of _0x38be09['split']('\x20'))_0x5eb5d2[_0x548ed5]=_0x5f56c0[_0x38be09];return _0x2db10c=>{for(let _0x48c35e=_0x2db10c['prop'](NodeProp['group']),_0x3b1c34=-0x1;_0x3b1c34<(_0x48c35e?_0x48c35e['length']:0x0);_0x3b1c34++){let _0x57360b=_0x5eb5d2[_0x3b1c34<0x0?_0x2db10c['name']:_0x48c35e[_0x3b1c34]];if(_0x57360b)return _0x57360b;}};}}NodeType['none']=new NodeType('',Object['create'](null),0x0,0x8);class NodeSet{constructor(_0x453c39){this['types']=_0x453c39;for(let _0x2c2980=0x0;_0x2c2980<_0x453c39['length'];_0x2c2980++)if(_0x453c39[_0x2c2980]['id']!=_0x2c2980)throw new RangeError('Node\x20type\x20ids\x20should\x20correspond\x20to\x20array\x20positions\x20when\x20creating\x20a\x20node\x20set');}['extend'](..._0x1ec8c0){let _0x4e3c42=[];for(let _0x28552e of this['types']){let _0x5e44f2=null;for(let _0x2b784c of _0x1ec8c0){let _0x348dbf=_0x2b784c(_0x28552e);if(_0x348dbf){_0x5e44f2||(_0x5e44f2=Object['assign']({},_0x28552e['props']));let _0x160885=_0x348dbf[0x1],_0x3d24e9=_0x348dbf[0x0];_0x3d24e9['combine']&&_0x3d24e9['id']in _0x5e44f2&&(_0x160885=_0x3d24e9['combine'](_0x5e44f2[_0x3d24e9['id']],_0x160885)),_0x5e44f2[_0x3d24e9['id']]=_0x160885;}}_0x4e3c42['push'](_0x5e44f2?new NodeType(_0x28552e['name'],_0x5e44f2,_0x28552e['id'],_0x28552e['flags']):_0x28552e);}return new NodeSet(_0x4e3c42);}}const CachedNode=new WeakMap(),CachedInnerNode=new WeakMap();var IterMode;!function(_0x539926){_0x539926[_0x539926['ExcludeBuffers']=0x1]='ExcludeBuffers',_0x539926[_0x539926['IncludeAnonymous']=0x2]='IncludeAnonymous',_0x539926[_0x539926['IgnoreMounts']=0x4]='IgnoreMounts',_0x539926[_0x539926['IgnoreOverlays']=0x8]='IgnoreOverlays';}(IterMode||(IterMode={}));class Tree{constructor(_0x2358fa,_0x1b536b,_0x17937c,_0x3ffd64,_0xb576ff){if(this['type']=_0x2358fa,this['children']=_0x1b536b,this['positions']=_0x17937c,this['length']=_0x3ffd64,this['props']=null,_0xb576ff&&_0xb576ff['length']){this['props']=Object['create'](null);for(let [_0x2231f5,_0x189ad4]of _0xb576ff)this['props']['number'==typeof _0x2231f5?_0x2231f5:_0x2231f5['id']]=_0x189ad4;}}['toString'](){let _0x18679b=MountedTree['get'](this);if(_0x18679b&&!_0x18679b['overlay'])return _0x18679b['tree']['toString']();let _0x24872f='';for(let _0x2daf97 of this['children']){let _0x1ff6e9=_0x2daf97['toString']();_0x1ff6e9&&(_0x24872f&&(_0x24872f+=','),_0x24872f+=_0x1ff6e9);}return this['type']['name']?(/\W/['test'](this['type']['name'])&&!this['type']['isError']?JSON['stringify'](this['type']['name']):this['type']['name'])+(_0x24872f['length']?'('+_0x24872f+')':''):_0x24872f;}['cursor'](_0x9ed23b=0x0){return new TreeCursor(this['topNode'],_0x9ed23b);}['cursorAt'](_0x58b7ab,_0x2fe062=0x0,_0x1ecbd0=0x0){let _0x4451dd=CachedNode['get'](this)||this['topNode'],_0x4c0043=new TreeCursor(_0x4451dd);return _0x4c0043['moveTo'](_0x58b7ab,_0x2fe062),CachedNode['set'](this,_0x4c0043['_tree']),_0x4c0043;}get['topNode'](){return new TreeNode(this,0x0,0x0,null);}['resolve'](_0x5bf630,_0xde5542=0x0){let _0x2639a0=resolveNode(CachedNode['get'](this)||this['topNode'],_0x5bf630,_0xde5542,!0x1);return CachedNode['set'](this,_0x2639a0),_0x2639a0;}['resolveInner'](_0x5d699c,_0x22bbfc=0x0){let _0x5a95a7=resolveNode(CachedInnerNode['get'](this)||this['topNode'],_0x5d699c,_0x22bbfc,!0x0);return CachedInnerNode['set'](this,_0x5a95a7),_0x5a95a7;}['resolveStack'](_0x33049c,_0x1f88c4=0x0){return stackIterator(this,_0x33049c,_0x1f88c4);}['iterate'](_0x2490ac){let {enter:_0xd2d0b7,leave:_0x27740c,from:_0xabff82=0x0,to:_0x4635d0=this['length']}=_0x2490ac,_0x15da09=_0x2490ac['mode']||0x0,_0x5d180c=(_0x15da09&IterMode['IncludeAnonymous'])>0x0;for(let _0x2e4448=this['cursor'](_0x15da09|IterMode['IncludeAnonymous']);;){let _0x3824d1=!0x1;if(_0x2e4448['from']<=_0x4635d0&&_0x2e4448['to']>=_0xabff82&&(!_0x5d180c&&_0x2e4448['type']['isAnonymous']||!0x1!==_0xd2d0b7(_0x2e4448))){if(_0x2e4448['firstChild']())continue;_0x3824d1=!0x0;}for(;_0x3824d1&&_0x27740c&&(_0x5d180c||!_0x2e4448['type']['isAnonymous'])&&_0x27740c(_0x2e4448),!_0x2e4448['nextSibling']();){if(!_0x2e4448['parent']())return;_0x3824d1=!0x0;}}}['prop'](_0x46f2ce){return _0x46f2ce['perNode']?this['props']?this['props'][_0x46f2ce['id']]:void 0x0:this['type']['prop'](_0x46f2ce);}get['propValues'](){let _0x5486e6=[];if(this['props']){for(let _0x3d94eb in this['props'])_0x5486e6['push']([+_0x3d94eb,this['props'][_0x3d94eb]]);}return _0x5486e6;}['balance'](_0x5084d2={}){return this['children']['length']<=0x8?this:balanceRange(NodeType['none'],this['children'],this['positions'],0x0,this['children']['length'],0x0,this['length'],(_0x18bc2c,_0x541723,_0x5de606)=>new Tree(this['type'],_0x18bc2c,_0x541723,_0x5de606,this['propValues']),_0x5084d2['makeTree']||((_0x3e65fc,_0x12d5b9,_0xfd5b08)=>new Tree(NodeType['none'],_0x3e65fc,_0x12d5b9,_0xfd5b08)));}static['build'](_0x19482d){return buildTree(_0x19482d);}}Tree['empty']=new Tree(NodeType['none'],[],[],0x0);class FlatBufferCursor{constructor(_0x1f6592,_0x3ff8c5){this['buffer']=_0x1f6592,this['index']=_0x3ff8c5;}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(_0x33e3a0,_0x1840c0,_0x1c09e3){this['buffer']=_0x33e3a0,this['length']=_0x1840c0,this['set']=_0x1c09e3;}get['type'](){return NodeType['none'];}['toString'](){let _0x936364=[];for(let _0x3c6b8d=0x0;_0x3c6b8d<this['buffer']['length'];)_0x936364['push'](this['childString'](_0x3c6b8d)),_0x3c6b8d=this['buffer'][_0x3c6b8d+0x3];return _0x936364['join'](',');}['childString'](_0x22b394){let _0x4b4829=this['buffer'][_0x22b394],_0x40acb6=this['buffer'][_0x22b394+0x3],_0x2ed0a5=this['set']['types'][_0x4b4829],_0x24fcf7=_0x2ed0a5['name'];if(/\W/['test'](_0x24fcf7)&&!_0x2ed0a5['isError']&&(_0x24fcf7=JSON['stringify'](_0x24fcf7)),_0x40acb6==(_0x22b394+=0x4))return _0x24fcf7;let _0x5325b2=[];for(;_0x22b394<_0x40acb6;)_0x5325b2['push'](this['childString'](_0x22b394)),_0x22b394=this['buffer'][_0x22b394+0x3];return _0x24fcf7+'('+_0x5325b2['join'](',')+')';}['findChild'](_0x2d0ea8,_0x45c7ff,_0x251395,_0x18be9d,_0x5014f2){let {buffer:_0x43bbd9}=this,_0x3732ce=-0x1;for(let _0x3c92bd=_0x2d0ea8;_0x3c92bd!=_0x45c7ff&&!(checkSide(_0x5014f2,_0x18be9d,_0x43bbd9[_0x3c92bd+0x1],_0x43bbd9[_0x3c92bd+0x2])&&(_0x3732ce=_0x3c92bd,_0x251395>0x0));_0x3c92bd=_0x43bbd9[_0x3c92bd+0x3]);return _0x3732ce;}['slice'](_0x377982,_0x4d77b6,_0x350a0d){let _0x192dbd=this['buffer'],_0xe18559=new Uint16Array(_0x4d77b6-_0x377982),_0x3d2347=0x0;for(let _0x4c0ba5=_0x377982,_0x166f7b=0x0;_0x4c0ba5<_0x4d77b6;){_0xe18559[_0x166f7b++]=_0x192dbd[_0x4c0ba5++],_0xe18559[_0x166f7b++]=_0x192dbd[_0x4c0ba5++]-_0x350a0d;let _0x2c2a1b=_0xe18559[_0x166f7b++]=_0x192dbd[_0x4c0ba5++]-_0x350a0d;_0xe18559[_0x166f7b++]=_0x192dbd[_0x4c0ba5++]-_0x377982,_0x3d2347=Math['max'](_0x3d2347,_0x2c2a1b);}return new TreeBuffer(_0xe18559,_0x3d2347,this['set']);}}function checkSide(_0xd33d9f,_0x107d63,_0x5628a0,_0x3fcc3a){switch(_0xd33d9f){case-0x2:return _0x5628a0<_0x107d63;case-0x1:return _0x3fcc3a>=_0x107d63&&_0x5628a0<_0x107d63;case 0x0:return _0x5628a0<_0x107d63&&_0x3fcc3a>_0x107d63;case 0x1:return _0x5628a0<=_0x107d63&&_0x3fcc3a>_0x107d63;case 0x2:return _0x3fcc3a>_0x107d63;case 0x4:return!0x0;}}function resolveNode(_0x3d0b1c,_0x4b4326,_0x43ac38,_0x114c09){for(var _0x4e4780;_0x3d0b1c['from']==_0x3d0b1c['to']||(_0x43ac38<0x1?_0x3d0b1c['from']>=_0x4b4326:_0x3d0b1c['from']>_0x4b4326)||(_0x43ac38>-0x1?_0x3d0b1c['to']<=_0x4b4326:_0x3d0b1c['to']<_0x4b4326);){let _0x3eeeaa=!_0x114c09&&_0x3d0b1c instanceof TreeNode&&_0x3d0b1c['index']<0x0?null:_0x3d0b1c['parent'];if(!_0x3eeeaa)return _0x3d0b1c;_0x3d0b1c=_0x3eeeaa;}let _0x13b300=_0x114c09?0x0:IterMode['IgnoreOverlays'];if(_0x114c09){for(let _0x24ba4a=_0x3d0b1c,_0x5975f5=_0x24ba4a['parent'];_0x5975f5;_0x24ba4a=_0x5975f5,_0x5975f5=_0x24ba4a['parent'])_0x24ba4a instanceof TreeNode&&_0x24ba4a['index']<0x0&&(null===(_0x4e4780=_0x5975f5['enter'](_0x4b4326,_0x43ac38,_0x13b300))||void 0x0===_0x4e4780?void 0x0:_0x4e4780['from'])!=_0x24ba4a['from']&&(_0x3d0b1c=_0x5975f5);}for(;;){let _0xebb2b3=_0x3d0b1c['enter'](_0x4b4326,_0x43ac38,_0x13b300);if(!_0xebb2b3)return _0x3d0b1c;_0x3d0b1c=_0xebb2b3;}}class BaseNode{['cursor'](_0x566c80=0x0){return new TreeCursor(this,_0x566c80);}['getChild'](_0x4b1087,_0x186b7a=null,_0x34d84a=null){let _0x4cd6fc=getChildren(this,_0x4b1087,_0x186b7a,_0x34d84a);return _0x4cd6fc['length']?_0x4cd6fc[0x0]:null;}['getChildren'](_0x55f5f5,_0x4ff32e=null,_0x330570=null){return getChildren(this,_0x55f5f5,_0x4ff32e,_0x330570);}['resolve'](_0xb36d9d,_0x22b7c7=0x0){return resolveNode(this,_0xb36d9d,_0x22b7c7,!0x1);}['resolveInner'](_0x2e4bdc,_0x1b374a=0x0){return resolveNode(this,_0x2e4bdc,_0x1b374a,!0x0);}['matchContext'](_0x194b3a){return matchNodeContext(this['parent'],_0x194b3a);}['enterUnfinishedNodesBefore'](_0x32d957){let _0x147e5e=this['childBefore'](_0x32d957),_0xf670c9=this;for(;_0x147e5e;){let _0x14caf7=_0x147e5e['lastChild'];if(!_0x14caf7||_0x14caf7['to']!=_0x147e5e['to'])break;_0x14caf7['type']['isError']&&_0x14caf7['from']==_0x14caf7['to']?(_0xf670c9=_0x147e5e,_0x147e5e=_0x14caf7['prevSibling']):_0x147e5e=_0x14caf7;}return _0xf670c9;}get['node'](){return this;}get['next'](){return this['parent'];}}class TreeNode extends BaseNode{constructor(_0x414a8e,_0x383578,_0x180056,_0x3e3105){super(),this['_tree']=_0x414a8e,this['from']=_0x383578,this['index']=_0x180056,this['_parent']=_0x3e3105;}get['type'](){return this['_tree']['type'];}get['name'](){return this['_tree']['type']['name'];}get['to'](){return this['from']+this['_tree']['length'];}['nextChild'](_0xa0e0da,_0x592820,_0xf13e2b,_0xfa38fc,_0x28bffd=0x0){for(let _0xce4129=this;;){for(let {children:_0x3a9ebe,positions:_0x119cd1}=_0xce4129['_tree'],_0x8262cf=_0x592820>0x0?_0x3a9ebe['length']:-0x1;_0xa0e0da!=_0x8262cf;_0xa0e0da+=_0x592820){let _0x2424bb=_0x3a9ebe[_0xa0e0da],_0x3f7333=_0x119cd1[_0xa0e0da]+_0xce4129['from'];if(checkSide(_0xfa38fc,_0xf13e2b,_0x3f7333,_0x3f7333+_0x2424bb['length'])){if(_0x2424bb instanceof TreeBuffer){if(_0x28bffd&IterMode['ExcludeBuffers'])continue;let _0x598ee4=_0x2424bb['findChild'](0x0,_0x2424bb['buffer']['length'],_0x592820,_0xf13e2b-_0x3f7333,_0xfa38fc);if(_0x598ee4>-0x1)return new BufferNode(new BufferContext(_0xce4129,_0x2424bb,_0xa0e0da,_0x3f7333),null,_0x598ee4);}else{if(_0x28bffd&IterMode['IncludeAnonymous']||!_0x2424bb['type']['isAnonymous']||hasChild(_0x2424bb)){let _0x31df41;if(!(_0x28bffd&IterMode['IgnoreMounts'])&&(_0x31df41=MountedTree['get'](_0x2424bb))&&!_0x31df41['overlay'])return new TreeNode(_0x31df41['tree'],_0x3f7333,_0xa0e0da,_0xce4129);let _0x516e80=new TreeNode(_0x2424bb,_0x3f7333,_0xa0e0da,_0xce4129);return _0x28bffd&IterMode['IncludeAnonymous']||!_0x516e80['type']['isAnonymous']?_0x516e80:_0x516e80['nextChild'](_0x592820<0x0?_0x2424bb['children']['length']-0x1:0x0,_0x592820,_0xf13e2b,_0xfa38fc);}}}}if(_0x28bffd&IterMode['IncludeAnonymous']||!_0xce4129['type']['isAnonymous'])return null;if(_0xa0e0da=_0xce4129['index']>=0x0?_0xce4129['index']+_0x592820:_0x592820<0x0?-0x1:_0xce4129['_parent']['_tree']['children']['length'],_0xce4129=_0xce4129['_parent'],!_0xce4129)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'](_0x5b89cc){return this['nextChild'](0x0,0x1,_0x5b89cc,0x2);}['childBefore'](_0x26ad1e){return this['nextChild'](this['_tree']['children']['length']-0x1,-0x1,_0x26ad1e,-0x2);}['enter'](_0x468355,_0x2a6338,_0x568cda=0x0){let _0x363be3;if(!(_0x568cda&IterMode['IgnoreOverlays'])&&(_0x363be3=MountedTree['get'](this['_tree']))&&_0x363be3['overlay']){let _0x1f1eb8=_0x468355-this['from'];for(let {from:_0x1d0cfb,to:_0x24fffa}of _0x363be3['overlay'])if((_0x2a6338>0x0?_0x1d0cfb<=_0x1f1eb8:_0x1d0cfb<_0x1f1eb8)&&(_0x2a6338<0x0?_0x24fffa>=_0x1f1eb8:_0x24fffa>_0x1f1eb8))return new TreeNode(_0x363be3['tree'],_0x363be3['overlay'][0x0]['from']+this['from'],-0x1,this);}return this['nextChild'](0x0,0x1,_0x468355,_0x2a6338,_0x568cda);}['nextSignificantParent'](){let _0x3295a6=this;for(;_0x3295a6['type']['isAnonymous']&&_0x3295a6['_parent'];)_0x3295a6=_0x3295a6['_parent'];return _0x3295a6;}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(_0x4f5caa,_0x125dbd,_0x19e998,_0x21ad2d){let _0x441267=_0x4f5caa['cursor'](),_0x1fcd39=[];if(!_0x441267['firstChild']())return _0x1fcd39;if(null!=_0x19e998){for(let _0x5a5be8=!0x1;!_0x5a5be8;)if(_0x5a5be8=_0x441267['type']['is'](_0x19e998),!_0x441267['nextSibling']())return _0x1fcd39;}for(;;){if(null!=_0x21ad2d&&_0x441267['type']['is'](_0x21ad2d))return _0x1fcd39;if(_0x441267['type']['is'](_0x125dbd)&&_0x1fcd39['push'](_0x441267['node']),!_0x441267['nextSibling']())return null==_0x21ad2d?_0x1fcd39:[];}}function matchNodeContext(_0x376028,_0x4ea688,_0x2ba02e=_0x4ea688['length']-0x1){for(let _0x43f3be=_0x376028;_0x2ba02e>=0x0;_0x43f3be=_0x43f3be['parent']){if(!_0x43f3be)return!0x1;if(!_0x43f3be['type']['isAnonymous']){if(_0x4ea688[_0x2ba02e]&&_0x4ea688[_0x2ba02e]!=_0x43f3be['name'])return!0x1;_0x2ba02e--;}}return!0x0;}class BufferContext{constructor(_0x2d2fdf,_0x5762e6,_0x1df6b4,_0x6d76){this['parent']=_0x2d2fdf,this['buffer']=_0x5762e6,this['index']=_0x1df6b4,this['start']=_0x6d76;}}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(_0x277e6c,_0x5d49f8,_0x80073c){super(),this['context']=_0x277e6c,this['_parent']=_0x5d49f8,this['index']=_0x80073c,this['type']=_0x277e6c['buffer']['set']['types'][_0x277e6c['buffer']['buffer'][_0x80073c]];}['child'](_0x522c1e,_0x46430d,_0x1c7621){let {buffer:_0x5eef0d}=this['context'],_0x4137af=_0x5eef0d['findChild'](this['index']+0x4,_0x5eef0d['buffer'][this['index']+0x3],_0x522c1e,_0x46430d-this['context']['start'],_0x1c7621);return _0x4137af<0x0?null:new BufferNode(this['context'],this,_0x4137af);}get['firstChild'](){return this['child'](0x1,0x0,0x4);}get['lastChild'](){return this['child'](-0x1,0x0,0x4);}['childAfter'](_0x1555e2){return this['child'](0x1,_0x1555e2,0x2);}['childBefore'](_0x3f39db){return this['child'](-0x1,_0x3f39db,-0x2);}['enter'](_0x500375,_0x1455e8,_0x5e8c56=0x0){if(_0x5e8c56&IterMode['ExcludeBuffers'])return null;let {buffer:_0x17ca94}=this['context'],_0x5bac2e=_0x17ca94['findChild'](this['index']+0x4,_0x17ca94['buffer'][this['index']+0x3],_0x1455e8>0x0?0x1:-0x1,_0x500375-this['context']['start'],_0x1455e8);return _0x5bac2e<0x0?null:new BufferNode(this['context'],this,_0x5bac2e);}get['parent'](){return this['_parent']||this['context']['parent']['nextSignificantParent']();}['externalSibling'](_0x3a83c5){return this['_parent']?null:this['context']['parent']['nextChild'](this['context']['index']+_0x3a83c5,_0x3a83c5,0x0,0x4);}get['nextSibling'](){let {buffer:_0x5f538a}=this['context'],_0x481a8a=_0x5f538a['buffer'][this['index']+0x3];return _0x481a8a<(this['_parent']?_0x5f538a['buffer'][this['_parent']['index']+0x3]:_0x5f538a['buffer']['length'])?new BufferNode(this['context'],this['_parent'],_0x481a8a):this['externalSibling'](0x1);}get['prevSibling'](){let {buffer:_0x5e0bea}=this['context'],_0x1672d1=this['_parent']?this['_parent']['index']+0x4:0x0;return this['index']==_0x1672d1?this['externalSibling'](-0x1):new BufferNode(this['context'],this['_parent'],_0x5e0bea['findChild'](_0x1672d1,this['index'],-0x1,0x0,0x4));}get['tree'](){return null;}['toTree'](){let _0x52dc22=[],_0x546431=[],{buffer:_0x204ca9}=this['context'],_0x40be14=this['index']+0x4,_0x21b7ee=_0x204ca9['buffer'][this['index']+0x3];if(_0x21b7ee>_0x40be14){let _0xbb024=_0x204ca9['buffer'][this['index']+0x1];_0x52dc22['push'](_0x204ca9['slice'](_0x40be14,_0x21b7ee,_0xbb024)),_0x546431['push'](0x0);}return new Tree(this['type'],_0x52dc22,_0x546431,this['to']-this['from']);}['toString'](){return this['context']['buffer']['childString'](this['index']);}}function iterStack(_0x3cdfa4){if(!_0x3cdfa4['length'])return null;let _0x5d9740=0x0,_0x12db54=_0x3cdfa4[0x0];for(let _0x159b03=0x1;_0x159b03<_0x3cdfa4['length'];_0x159b03++){let _0x1cbdcf=_0x3cdfa4[_0x159b03];(_0x1cbdcf['from']>_0x12db54['from']||_0x1cbdcf['to']<_0x12db54['to'])&&(_0x12db54=_0x1cbdcf,_0x5d9740=_0x159b03);}let _0x78d45a=_0x12db54 instanceof TreeNode&&_0x12db54['index']<0x0?null:_0x12db54['parent'],_0x2516da=_0x3cdfa4['slice']();return _0x78d45a?_0x2516da[_0x5d9740]=_0x78d45a:_0x2516da['splice'](_0x5d9740,0x1),new StackIterator(_0x2516da,_0x12db54);}class StackIterator{constructor(_0x5bc771,_0x227bf4){this['heads']=_0x5bc771,this['node']=_0x227bf4;}get['next'](){return iterStack(this['heads']);}}function stackIterator(_0x353d5f,_0xcc86d1,_0x539f3c){let _0x213502=_0x353d5f['resolveInner'](_0xcc86d1,_0x539f3c),_0x345522=null;for(let _0x350517=_0x213502 instanceof TreeNode?_0x213502:_0x213502['context']['parent'];_0x350517;_0x350517=_0x350517['parent'])if(_0x350517['index']<0x0){let _0x5b0f59=_0x350517['parent'];(_0x345522||(_0x345522=[_0x213502]))['push'](_0x5b0f59['resolve'](_0xcc86d1,_0x539f3c)),_0x350517=_0x5b0f59;}else{let _0x271ca2=MountedTree['get'](_0x350517['tree']);if(_0x271ca2&&_0x271ca2['overlay']&&_0x271ca2['overlay'][0x0]['from']<=_0xcc86d1&&_0x271ca2['overlay'][_0x271ca2['overlay']['length']-0x1]['to']>=_0xcc86d1){let _0x2038f7=new TreeNode(_0x271ca2['tree'],_0x271ca2['overlay'][0x0]['from']+_0x350517['from'],-0x1,_0x350517);(_0x345522||(_0x345522=[_0x213502]))['push'](resolveNode(_0x2038f7,_0xcc86d1,_0x539f3c,!0x1));}}return _0x345522?iterStack(_0x345522):_0x213502;}class TreeCursor{get['name'](){return this['type']['name'];}constructor(_0x4197c7,_0x4fb726=0x0){if(this['mode']=_0x4fb726,this['buffer']=null,this['stack']=[],this['index']=0x0,this['bufferNode']=null,_0x4197c7 instanceof TreeNode)this['yieldNode'](_0x4197c7);else{this['_tree']=_0x4197c7['context']['parent'],this['buffer']=_0x4197c7['context'];for(let _0x1ef80c=_0x4197c7['_parent'];_0x1ef80c;_0x1ef80c=_0x1ef80c['_parent'])this['stack']['unshift'](_0x1ef80c['index']);this['bufferNode']=_0x4197c7,this['yieldBuf'](_0x4197c7['index']);}}['yieldNode'](_0x1565fb){return!!_0x1565fb&&(this['_tree']=_0x1565fb,this['type']=_0x1565fb['type'],this['from']=_0x1565fb['from'],this['to']=_0x1565fb['to'],!0x0);}['yieldBuf'](_0x9a5746,_0x2b4d94){this['index']=_0x9a5746;let {start:_0x1da663,buffer:_0x2d6275}=this['buffer'];return this['type']=_0x2b4d94||_0x2d6275['set']['types'][_0x2d6275['buffer'][_0x9a5746]],this['from']=_0x1da663+_0x2d6275['buffer'][_0x9a5746+0x1],this['to']=_0x1da663+_0x2d6275['buffer'][_0x9a5746+0x2],!0x0;}['yield'](_0x42b1fd){return!!_0x42b1fd&&(_0x42b1fd instanceof TreeNode?(this['buffer']=null,this['yieldNode'](_0x42b1fd)):(this['buffer']=_0x42b1fd['context'],this['yieldBuf'](_0x42b1fd['index'],_0x42b1fd['type'])));}['toString'](){return this['buffer']?this['buffer']['buffer']['childString'](this['index']):this['_tree']['toString']();}['enterChild'](_0x36c4a3,_0x12945c,_0x360b87){if(!this['buffer'])return this['yield'](this['_tree']['nextChild'](_0x36c4a3<0x0?this['_tree']['_tree']['children']['length']-0x1:0x0,_0x36c4a3,_0x12945c,_0x360b87,this['mode']));let {buffer:_0x8a6b23}=this['buffer'],_0x23bbac=_0x8a6b23['findChild'](this['index']+0x4,_0x8a6b23['buffer'][this['index']+0x3],_0x36c4a3,_0x12945c-this['buffer']['start'],_0x360b87);return!(_0x23bbac<0x0)&&(this['stack']['push'](this['index']),this['yieldBuf'](_0x23bbac));}['firstChild'](){return this['enterChild'](0x1,0x0,0x4);}['lastChild'](){return this['enterChild'](-0x1,0x0,0x4);}['childAfter'](_0x2cfb63){return this['enterChild'](0x1,_0x2cfb63,0x2);}['childBefore'](_0xf47752){return this['enterChild'](-0x1,_0xf47752,-0x2);}['enter'](_0x1c2bc2,_0x382f38,_0x13a2c9=this['mode']){return this['buffer']?!(_0x13a2c9&IterMode['ExcludeBuffers'])&&this['enterChild'](0x1,_0x1c2bc2,_0x382f38):this['yield'](this['_tree']['enter'](_0x1c2bc2,_0x382f38,_0x13a2c9));}['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 _0x5e1cae=this['mode']&IterMode['IncludeAnonymous']?this['buffer']['parent']:this['buffer']['parent']['nextSignificantParent']();return this['buffer']=null,this['yieldNode'](_0x5e1cae);}['sibling'](_0x123f12){if(!this['buffer'])return!!this['_tree']['_parent']&&this['yield'](this['_tree']['index']<0x0?null:this['_tree']['_parent']['nextChild'](this['_tree']['index']+_0x123f12,_0x123f12,0x0,0x4,this['mode']));let {buffer:_0x1fd1bc}=this['buffer'],_0x91b819=this['stack']['length']-0x1;if(_0x123f12<0x0){let _0x5b7cec=_0x91b819<0x0?0x0:this['stack'][_0x91b819]+0x4;if(this['index']!=_0x5b7cec)return this['yieldBuf'](_0x1fd1bc['findChild'](_0x5b7cec,this['index'],-0x1,0x0,0x4));}else{let _0x33fbe9=_0x1fd1bc['buffer'][this['index']+0x3];if(_0x33fbe9<(_0x91b819<0x0?_0x1fd1bc['buffer']['length']:_0x1fd1bc['buffer'][this['stack'][_0x91b819]+0x3]))return this['yieldBuf'](_0x33fbe9);}return _0x91b819<0x0&&this['yield'](this['buffer']['parent']['nextChild'](this['buffer']['index']+_0x123f12,_0x123f12,0x0,0x4,this['mode']));}['nextSibling'](){return this['sibling'](0x1);}['prevSibling'](){return this['sibling'](-0x1);}['atLastNode'](_0x401b23){let _0x333f7f,_0x2595f0,{buffer:_0x3a7592}=this;if(_0x3a7592){if(_0x401b23>0x0){if(this['index']<_0x3a7592['buffer']['buffer']['length'])return!0x1;}else{for(let _0x417a0d=0x0;_0x417a0d<this['index'];_0x417a0d++)if(_0x3a7592['buffer']['buffer'][_0x417a0d+0x3]<this['index'])return!0x1;}({index:_0x333f7f,parent:_0x2595f0}=_0x3a7592);}else({index:_0x333f7f,_parent:_0x2595f0}=this['_tree']);for(;_0x2595f0;{index:_0x333f7f,_parent:_0x2595f0}=_0x2595f0)if(_0x333f7f>-0x1)for(let _0xfa3339=_0x333f7f+_0x401b23,_0x577890=_0x401b23<0x0?-0x1:_0x2595f0['_tree']['children']['length'];_0xfa3339!=_0x577890;_0xfa3339+=_0x401b23){let _0x964446=_0x2595f0['_tree']['children'][_0xfa3339];if(this['mode']&IterMode['IncludeAnonymous']||_0x964446 instanceof TreeBuffer||!_0x964446['type']['isAnonymous']||hasChild(_0x964446))return!0x1;}return!0x0;}['move'](_0x270749,_0x4e7513){if(_0x4e7513&&this['enterChild'](_0x270749,0x0,0x4))return!0x0;for(;;){if(this['sibling'](_0x270749))return!0x0;if(this['atLastNode'](_0x270749)||!this['parent']())return!0x1;}}['next'](_0x120c92=!0x0){return this['move'](0x1,_0x120c92);}['prev'](_0x4398bf=!0x0){return this['move'](-0x1,_0x4398bf);}['moveTo'](_0x5134df,_0x4e73d2=0x0){for(;(this['from']==this['to']||(_0x4e73d2<0x1?this['from']>=_0x5134df:this['from']>_0x5134df)||(_0x4e73d2>-0x1?this['to']<=_0x5134df:this['to']<_0x5134df))&&this['parent'](););for(;this['enterChild'](0x1,_0x5134df,_0x4e73d2););return this;}get['node'](){if(!this['buffer'])return this['_tree'];let _0x3d2fd3=this['bufferNode'],_0x56595e=null,_0x2d2a51=0x0;if(_0x3d2fd3&&_0x3d2fd3['context']==this['buffer']){t:for(let _0x317a6b=this['index'],_0x321207=this['stack']['length'];_0x321207>=0x0;){for(let _0x3cefe9=_0x3d2fd3;_0x3cefe9;_0x3cefe9=_0x3cefe9['_parent'])if(_0x3cefe9['index']==_0x317a6b){if(_0x317a6b==this['index'])return _0x3cefe9;_0x56595e=_0x3cefe9,_0x2d2a51=_0x321207+0x1;break t;}_0x317a6b=this['stack'][--_0x321207];}}for(let _0x23c8df=_0x2d2a51;_0x23c8df<this['stack']['length'];_0x23c8df++)_0x56595e=new BufferNode(this['buffer'],_0x56595e,this['stack'][_0x23c8df]);return this['bufferNode']=new BufferNode(this['buffer'],_0x56595e,this['index']);}get['tree'](){return this['buffer']?null:this['_tree']['_tree'];}['iterate'](_0xda80d6,_0x46a0ea){for(let _0xa0addc=0x0;;){let _0x54e8a4=!0x1;if(this['type']['isAnonymous']||!0x1!==_0xda80d6(this)){if(this['firstChild']()){_0xa0addc++;continue;}this['type']['isAnonymous']||(_0x54e8a4=!0x0);}for(;;){if(_0x54e8a4&&_0x46a0ea&&_0x46a0ea(this),_0x54e8a4=this['type']['isAnonymous'],!_0xa0addc)return;if(this['nextSibling']())break;this['parent'](),_0xa0addc--,_0x54e8a4=!0x0;}}}['matchContext'](_0x40424f){if(!this['buffer'])return matchNodeContext(this['node']['parent'],_0x40424f);let {buffer:_0x5edb53}=this['buffer'],{types:_0x5e3b83}=_0x5edb53['set'];for(let _0xffe14=_0x40424f['length']-0x1,_0x2ebf3d=this['stack']['length']-0x1;_0xffe14>=0x0;_0x2ebf3d--){if(_0x2ebf3d<0x0)return matchNodeContext(this['_tree'],_0x40424f,_0xffe14);let _0x11db21=_0x5e3b83[_0x5edb53['buffer'][this['stack'][_0x2ebf3d]]];if(!_0x11db21['isAnonymous']){if(_0x40424f[_0xffe14]&&_0x40424f[_0xffe14]!=_0x11db21['name'])return!0x1;_0xffe14--;}}return!0x0;}}function hasChild(_0x55be09){return _0x55be09['children']['some'](_0x419905=>_0x419905 instanceof TreeBuffer||!_0x419905['type']['isAnonymous']||hasChild(_0x419905));}function buildTree(_0x12e821){var _0x1224d8;let {buffer:_0x3fc5e6,nodeSet:_0x350de3,maxBufferLength:_0x52c187=DefaultBufferLength,reused:_0x16ab9e=[],minRepeatType:_0x2a8684=_0x350de3['types']['length']}=_0x12e821,_0x46f192=Array['isArray'](_0x3fc5e6)?new FlatBufferCursor(_0x3fc5e6,_0x3fc5e6['length']):_0x3fc5e6,_0x1a7311=_0x350de3['types'],_0xa57293=0x0,_0x419b55=0x0;function _0x2bee4b(_0x217a4b,_0x4ac999,_0x2e268d,_0x29c5cd,_0x3247d6,_0x43ec1a){let {id:_0x34c35c,start:_0x3512b0,end:_0x1af695,size:_0x424809}=_0x46f192,_0x5db0d3=_0x419b55,_0x350c20=_0xa57293;if(_0x424809<0x0){if(_0x46f192['next'](),-0x1==_0x424809){let _0x228409=_0x16ab9e[_0x34c35c];return _0x2e268d['push'](_0x228409),void _0x29c5cd['push'](_0x3512b0-_0x217a4b);}if(-0x3==_0x424809)return void(_0xa57293=_0x34c35c);if(-0x4==_0x424809)return void(_0x419b55=_0x34c35c);throw new RangeError('Unrecognized\x20record\x20size:\x20'+_0x424809);}let _0x1efedc,_0x4a827a,_0x40d51b=_0x1a7311[_0x34c35c],_0x4876ed=_0x3512b0-_0x217a4b;if(_0x1af695-_0x3512b0<=_0x52c187&&(_0x4a827a=function(_0x529004,_0x14d531){let _0x488408=_0x46f192['fork'](),_0x22f1ce=0x0,_0x5b473b=0x0,_0x21b8f5=0x0,_0xce0c2c=_0x488408['end']-_0x52c187,_0x1ffe49={'size':0x0,'start':0x0,'skip':0x0};t:for(let _0xb5d939=_0x488408['pos']-_0x529004;_0x488408['pos']>_0xb5d939;){let _0x380283=_0x488408['size'];if(_0x488408['id']==_0x14d531&&_0x380283>=0x0){_0x1ffe49['size']=_0x22f1ce,_0x1ffe49['start']=_0x5b473b,_0x1ffe49['skip']=_0x21b8f5,_0x21b8f5+=0x4,_0x22f1ce+=0x4,_0x488408['next']();continue;}let _0x1714db=_0x488408['pos']-_0x380283;if(_0x380283<0x0||_0x1714db<_0xb5d939||_0x488408['start']<_0xce0c2c)break;let _0x1c430a=_0x488408['id']>=_0x2a8684?0x4:0x0,_0x1150bb=_0x488408['start'];for(_0x488408['next']();_0x488408['pos']>_0x1714db;){if(_0x488408['size']<0x0){if(-0x3!=_0x488408['size'])break t;_0x1c430a+=0x4;}else _0x488408['id']>=_0x2a8684&&(_0x1c430a+=0x4);_0x488408['next']();}_0x5b473b=_0x1150bb,_0x22f1ce+=_0x380283,_0x21b8f5+=_0x1c430a;}return(_0x14d531<0x0||_0x22f1ce==_0x529004)&&(_0x1ffe49['size']=_0x22f1ce,_0x1ffe49['start']=_0x5b473b,_0x1ffe49['skip']=_0x21b8f5),_0x1ffe49['size']>0x4?_0x1ffe49:void 0x0;}(_0x46f192['pos']-_0x4ac999,_0x3247d6))){let _0x194a17=new Uint16Array(_0x4a827a['size']-_0x4a827a['skip']),_0x17ddf6=_0x46f192['pos']-_0x4a827a['size'],_0x38bf7e=_0x194a17['length'];for(;_0x46f192['pos']>_0x17ddf6;)_0x38bf7e=_0x446740(_0x4a827a['start'],_0x194a17,_0x38bf7e);_0x1efedc=new TreeBuffer(_0x194a17,_0x1af695-_0x4a827a['start'],_0x350de3),_0x4876ed=_0x4a827a['start']-_0x217a4b;}else{let _0x5264d5=_0x46f192['pos']-_0x424809;_0x46f192['next']();let _0x6c8565=[],_0x2ef069=[],_0x893505=_0x34c35c>=_0x2a8684?_0x34c35c:-0x1,_0x2561fa=0x0,_0x3965b3=_0x1af695;for(;_0x46f192['pos']>_0x5264d5;)_0x893505>=0x0&&_0x46f192['id']==_0x893505&&_0x46f192['size']>=0x0?(_0x46f192['end']<=_0x3965b3-_0x52c187&&(_0x1a8253(_0x6c8565,_0x2ef069,_0x3512b0,_0x2561fa,_0x46f192['end'],_0x3965b3,_0x893505,_0x5db0d3,_0x350c20),_0x2561fa=_0x6c8565['length'],_0x3965b3=_0x46f192['end']),_0x46f192['next']()):_0x43ec1a>0x9c4?_0x47de7b(_0x3512b0,_0x5264d5,_0x6c8565,_0x2ef069):_0x2bee4b(_0x3512b0,_0x5264d5,_0x6c8565,_0x2ef069,_0x893505,_0x43ec1a+0x1);if(_0x893505>=0x0&&_0x2561fa>0x0&&_0x2561fa<_0x6c8565['length']&&_0x1a8253(_0x6c8565,_0x2ef069,_0x3512b0,_0x2561fa,_0x3512b0,_0x3965b3,_0x893505,_0x5db0d3,_0x350c20),_0x6c8565['reverse'](),_0x2ef069['reverse'](),_0x893505>-0x1&&_0x2561fa>0x0){let _0x410789=function(_0x37572d,_0x40d9a8){return(_0x436c4e,_0x450e40,_0x5584be)=>{let _0xa08651,_0x2530db,_0x222965=0x0,_0x34086b=_0x436c4e['length']-0x1;if(_0x34086b>=0x0&&(_0xa08651=_0x436c4e[_0x34086b])instanceof Tree){if(!_0x34086b&&_0xa08651['type']==_0x37572d&&_0xa08651['length']==_0x5584be)return _0xa08651;(_0x2530db=_0xa08651['prop'](NodeProp['lookAhead']))&&(_0x222965=_0x450e40[_0x34086b]+_0xa08651['length']+_0x2530db);}return _0x4887b7(_0x37572d,_0x436c4e,_0x450e40,_0x5584be,_0x222965,_0x40d9a8);};}(_0x40d51b,_0x350c20);_0x1efedc=balanceRange(_0x40d51b,_0x6c8565,_0x2ef069,0x0,_0x6c8565['length'],0x0,_0x1af695-_0x3512b0,_0x410789,_0x410789);}else _0x1efedc=_0x4887b7(_0x40d51b,_0x6c8565,_0x2ef069,_0x1af695-_0x3512b0,_0x5db0d3-_0x1af695,_0x350c20);}_0x2e268d['push'](_0x1efedc),_0x29c5cd['push'](_0x4876ed);}function _0x47de7b(_0x2a5394,_0x5bf45e,_0x3b93d6,_0x4a3700){let _0x49e02b=[],_0x47e20e=0x0,_0x53561f=-0x1;for(;_0x46f192['pos']>_0x5bf45e;){let {id:_0x24d8fc,start:_0x3a296e,end:_0x207b4b,size:_0x4c8395}=_0x46f192;if(_0x4c8395>0x4)_0x46f192['next']();else{if(_0x53561f>-0x1&&_0x3a296e<_0x53561f)break;_0x53561f<0x0&&(_0x53561f=_0x207b4b-_0x52c187),_0x49e02b['push'](_0x24d8fc,_0x3a296e,_0x207b4b),_0x47e20e++,_0x46f192['next']();}}if(_0x47e20e){let _0x2f2e10=new Uint16Array(0x4*_0x47e20e),_0xc20475=_0x49e02b[_0x49e02b['length']-0x2];for(let _0x4e34a7=_0x49e02b['length']-0x3,_0x81c0c3=0x0;_0x4e34a7>=0x0;_0x4e34a7-=0x3)_0x2f2e10[_0x81c0c3++]=_0x49e02b[_0x4e34a7],_0x2f2e10[_0x81c0c3++]=_0x49e02b[_0x4e34a7+0x1]-_0xc20475,_0x2f2e10[_0x81c0c3++]=_0x49e02b[_0x4e34a7+0x2]-_0xc20475,_0x2f2e10[_0x81c0c3++]=_0x81c0c3;_0x3b93d6['push'](new TreeBuffer(_0x2f2e10,_0x49e02b[0x2]-_0xc20475,_0x350de3)),_0x4a3700['push'](_0xc20475-_0x2a5394);}}function _0x1a8253(_0x5a5ebb,_0x34d03e,_0xf1fae4,_0x3e2993,_0x432ab9,_0x50e95c,_0x4dc7af,_0x2ef343,_0x285dd4){let _0x5ac642=[],_0x5e34a3=[];for(;_0x5a5ebb['length']>_0x3e2993;)_0x5ac642['push'](_0x5a5ebb['pop']()),_0x5e34a3['push'](_0x34d03e['pop']()+_0xf1fae4-_0x432ab9);_0x5a5ebb['push'](_0x4887b7(_0x350de3['types'][_0x4dc7af],_0x5ac642,_0x5e34a3,_0x50e95c-_0x432ab9,_0x2ef343-_0x50e95c,_0x285dd4)),_0x34d03e['push'](_0x432ab9-_0xf1fae4);}function _0x4887b7(_0x4ac30a,_0x408534,_0xe87115,_0x2d337e,_0x353f35,_0x449767,_0x3777cb){if(_0x449767){let _0x4dc6df=[NodeProp['contextHash'],_0x449767];_0x3777cb=_0x3777cb?[_0x4dc6df]['concat'](_0x3777cb):[_0x4dc6df];}if(_0x353f35>0x19){let _0x131e84=[NodeProp['lookAhead'],_0x353f35];_0x3777cb=_0x3777cb?[_0x131e84]['concat'](_0x3777cb):[_0x131e84];}return new Tree(_0x4ac30a,_0x408534,_0xe87115,_0x2d337e,_0x3777cb);}function _0x446740(_0x39b8e4,_0x25bdc0,_0xe6afa3){let {id:_0x35c559,start:_0x5e307e,end:_0x37a7de,size:_0x2b90c9}=_0x46f192;if(_0x46f192['next'](),_0x2b90c9>=0x0&&_0x35c559<_0x2a8684){let _0x4661ce=_0xe6afa3;if(_0x2b90c9>0x4){let _0x4bda37=_0x46f192['pos']-(_0x2b90c9-0x4);for(;_0x46f192['pos']>_0x4bda37;)_0xe6afa3=_0x446740(_0x39b8e4,_0x25bdc0,_0xe6afa3);}_0x25bdc0[--_0xe6afa3]=_0x4661ce,_0x25bdc0[--_0xe6afa3]=_0x37a7de-_0x39b8e4,_0x25bdc0[--_0xe6afa3]=_0x5e307e-_0x39b8e4,_0x25bdc0[--_0xe6afa3]=_0x35c559;}else-0x3==_0x2b90c9?_0xa57293=_0x35c559:-0x4==_0x2b90c9&&(_0x419b55=_0x35c559);return _0xe6afa3;}let _0x5c50f9=[],_0x1173ae=[];for(;_0x46f192['pos']>0x0;)_0x2bee4b(_0x12e821['start']||0x0,_0x12e821['bufferStart']||0x0,_0x5c50f9,_0x1173ae,-0x1,0x0);let _0x1941e6=null!==(_0x1224d8=_0x12e821['length'])&&void 0x0!==_0x1224d8?_0x1224d8:_0x5c50f9['length']?_0x1173ae[0x0]+_0x5c50f9[0x0]['length']:0x0;return new Tree(_0x1a7311[_0x12e821['topID']],_0x5c50f9['reverse'](),_0x1173ae['reverse'](),_0x1941e6);}const nodeSizeCache=new WeakMap();function nodeSize(_0x1fbe94,_0x39b253){if(!_0x1fbe94['isAnonymous']||_0x39b253 instanceof TreeBuffer||_0x39b253['type']!=_0x1fbe94)return 0x1;let _0x2db8c5=nodeSizeCache['get'](_0x39b253);if(null==_0x2db8c5){_0x2db8c5=0x1;for(let _0x3756b4 of _0x39b253['children']){if(_0x3756b4['type']!=_0x1fbe94||!(_0x3756b4 instanceof Tree)){_0x2db8c5=0x1;break;}_0x2db8c5+=nodeSize(_0x1fbe94,_0x3756b4);}nodeSizeCache['set'](_0x39b253,_0x2db8c5);}return _0x2db8c5;}function balanceRange(_0x4ab57a,_0x3f4b6f,_0x4b6ee3,_0x100719,_0x42229a,_0x48dce6,_0x423244,_0x3bdc16,_0x4d08bc){let _0x5856da=0x0;for(let _0x2a8283=_0x100719;_0x2a8283<_0x42229a;_0x2a8283++)_0x5856da+=nodeSize(_0x4ab57a,_0x3f4b6f[_0x2a8283]);let _0x3288af=Math['ceil'](1.5*_0x5856da/0x8),_0x4b165d=[],_0x4ecd27=[];return function _0x450831(_0xcc3c34,_0x476f3a,_0x393d93,_0x461db4,_0xd6340a){for(let _0x5eaca3=_0x393d93;_0x5eaca3<_0x461db4;){let _0x3f1018=_0x5eaca3,_0x5edede=_0x476f3a[_0x5eaca3],_0x48b87d=nodeSize(_0x4ab57a,_0xcc3c34[_0x5eaca3]);for(_0x5eaca3++;_0x5eaca3<_0x461db4;_0x5eaca3++){let _0x127a08=nodeSize(_0x4ab57a,_0xcc3c34[_0x5eaca3]);if(_0x48b87d+_0x127a08>=_0x3288af)break;_0x48b87d+=_0x127a08;}if(_0x5eaca3==_0x3f1018+0x1){if(_0x48b87d>_0x3288af){let _0x129954=_0xcc3c34[_0x3f1018];_0x450831(_0x129954['children'],_0x129954['positions'],0x0,_0x129954['children']['length'],_0x476f3a[_0x3f1018]+_0xd6340a);continue;}_0x4b165d['push'](_0xcc3c34[_0x3f1018]);}else{let _0x53146c=_0x476f3a[_0x5eaca3-0x1]+_0xcc3c34[_0x5eaca3-0x1]['length']-_0x5edede;_0x4b165d['push'](balanceRange(_0x4ab57a,_0xcc3c34,_0x476f3a,_0x3f1018,_0x5eaca3,_0x5edede,_0x53146c,null,_0x4d08bc));}_0x4ecd27['push'](_0x5edede+_0xd6340a-_0x48dce6);}}(_0x3f4b6f,_0x4b6ee3,_0x100719,_0x42229a,0x0),(_0x3bdc16||_0x4d08bc)(_0x4b165d,_0x4ecd27,_0x423244);}class NodeWeakMap{constructor(){this['map']=new WeakMap();}['setBuffer'](_0x4cdf66,_0x2000ba,_0xf978f0){let _0x95cf6=this['map']['get'](_0x4cdf66);_0x95cf6||this['map']['set'](_0x4cdf66,_0x95cf6=new Map()),_0x95cf6['set'](_0x2000ba,_0xf978f0);}['getBuffer'](_0x6864b3,_0xa9e935){let _0x48d3dd=this['map']['get'](_0x6864b3);return _0x48d3dd&&_0x48d3dd['get'](_0xa9e935);}['set'](_0x4988e9,_0x546d48){_0x4988e9 instanceof BufferNode?this['setBuffer'](_0x4988e9['context']['buffer'],_0x4988e9['index'],_0x546d48):_0x4988e9 instanceof TreeNode&&this['map']['set'](_0x4988e9['tree'],_0x546d48);}['get'](_0x1fb65f){return _0x1fb65f instanceof BufferNode?this['getBuffer'](_0x1fb65f['context']['buffer'],_0x1fb65f['index']):_0x1fb65f instanceof TreeNode?this['map']['get'](_0x1fb65f['tree']):void 0x0;}['cursorSet'](_0x3a5562,_0x1e30ff){_0x3a5562['buffer']?this['setBuffer'](_0x3a5562['buffer']['buffer'],_0x3a5562['index'],_0x1e30ff):this['map']['set'](_0x3a5562['tree'],_0x1e30ff);}['cursorGet'](_0x382914){return _0x382914['buffer']?this['getBuffer'](_0x382914['buffer']['buffer'],_0x382914['index']):this['map']['get'](_0x382914['tree']);}}class TreeFragment{constructor(_0x3e1668,_0x481503,_0x233955,_0xe78a0c,_0x15a2c7=!0x1,_0x540a83=!0x1){this['from']=_0x3e1668,this['to']=_0x481503,this['tree']=_0x233955,this['offset']=_0xe78a0c,this['open']=(_0x15a2c7?0x1:0x0)|(_0x540a83?0x2:0x0);}get['openStart'](){return(0x1&this['open'])>0x0;}get['openEnd'](){return(0x2&this['open'])>0x0;}static['addTree'](_0x2e9ca8,_0x2b910e=[],_0x59b9a2=!0x1){let _0x11bb02=[new TreeFragment(0x0,_0x2e9ca8['length'],_0x2e9ca8,0x0,!0x1,_0x59b9a2)];for(let _0x292939 of _0x2b910e)_0x292939['to']>_0x2e9ca8['length']&&_0x11bb02['push'](_0x292939);return _0x11bb02;}static['applyChanges'](_0x346a8d,_0x38fb6e,_0x26c969=0x80){if(!_0x38fb6e['length'])return _0x346a8d;let _0x41d18b=[],_0x5eddbf=0x1,_0x1a7abb=_0x346a8d['length']?_0x346a8d[0x0]:null;for(let _0x1283b0=0x0,_0x18009a=0x0,_0x252cbb=0x0;;_0x1283b0++){let _0x5897b7=_0x1283b0<_0x38fb6e['length']?_0x38fb6e[_0x1283b0]:null,_0x718b4a=_0x5897b7?_0x5897b7['fromA']:0x3b9aca00;if(_0x718b4a-_0x18009a>=_0x26c969)for(;_0x1a7abb&&_0x1a7abb['from']<_0x718b4a;){let _0x296838=_0x1a7abb;if(_0x18009a>=_0x296838['from']||_0x718b4a<=_0x296838['to']||_0x252cbb){let _0x3cf36e=Math['max'](_0x296838['from'],_0x18009a)-_0x252cbb,_0x19afeb=Math['min'](_0x296838['to'],_0x718b4a)-_0x252cbb;_0x296838=_0x3cf36e>=_0x19afeb?null:new TreeFragment(_0x3cf36e,_0x19afeb,_0x296838['tree'],_0x296838['offset']+_0x252cbb,_0x1283b0>0x0,!!_0x5897b7);}if(_0x296838&&_0x41d18b['push'](_0x296838),_0x1a7abb['to']>_0x718b4a)break;_0x1a7abb=_0x5eddbf<_0x346a8d['length']?_0x346a8d[_0x5eddbf++]:null;}if(!_0x5897b7)break;_0x18009a=_0x5897b7['toA'],_0x252cbb=_0x5897b7['toA']-_0x5897b7['toB'];}return _0x41d18b;}}class Parser{['startParse'](_0xf5426,_0x48eef7,_0x4a42ba){return'string'==typeof _0xf5426&&(_0xf5426=new StringInput(_0xf5426)),_0x4a42ba=_0x4a42ba?_0x4a42ba['length']?_0x4a42ba['map'](_0x34e307=>new Range(_0x34e307['from'],_0x34e307['to'])):[new Range(0x0,0x0)]:[new Range(0x0,_0xf5426['length'])],this['createParse'](_0xf5426,_0x48eef7||[],_0x4a42ba);}['parse'](_0x46cb68,_0x5f1c0e,_0x41e28a){let _0x58d5dd=this['startParse'](_0x46cb68,_0x5f1c0e,_0x41e28a);for(;;){let _0x466331=_0x58d5dd['advance']();if(_0x466331)return _0x466331;}}}class StringInput{constructor(_0x1e3b53){this['string']=_0x1e3b53;}get['length'](){return this['string']['length'];}['chunk'](_0x12ef6a){return this['string']['slice'](_0x12ef6a);}get['lineChunks'](){return!0x1;}['read'](_0x575602,_0xc25bf4){return this['string']['slice'](_0x575602,_0xc25bf4);}}function parseMixed(_0x4246f6){return(_0x2a7c44,_0x18ea04,_0x51d8ab,_0x5bf253)=>new MixedParse(_0x2a7c44,_0x4246f6,_0x18ea04,_0x51d8ab,_0x5bf253);}class InnerParse{constructor(_0x5ad8f1,_0x78e85f,_0x4b4c55,_0x217512,_0x1423ac){this['parser']=_0x5ad8f1,this['parse']=_0x78e85f,this['overlay']=_0x4b4c55,this['target']=_0x217512,this['from']=_0x1423ac;}}function checkRanges(_0x40462c){if(!_0x40462c['length']||_0x40462c['some'](_0x5ad42f=>_0x5ad42f['from']>=_0x5ad42f['to']))throw new RangeError('Invalid\x20inner\x20parse\x20ranges\x20given:\x20'+JSON['stringify'](_0x40462c));}class ActiveOverlay{constructor(_0x20245f,_0x1b38be,_0x50f24a,_0x2707db,_0x4ec3d0,_0x392e76,_0x51350b){this['parser']=_0x20245f,this['predicate']=_0x1b38be,this['mounts']=_0x50f24a,this['index']=_0x2707db,this['start']=_0x4ec3d0,this['target']=_0x392e76,this['prev']=_0x51350b,this['depth']=0x0,this['ranges']=[];}}const stoppedInner=new NodeProp({'perNode':!0x0});class MixedParse{constructor(_0x375d50,_0x2a037c,_0x26ae9a,_0x145030,_0x1c3319){this['nest']=_0x2a037c,this['input']=_0x26ae9a,this['fragments']=_0x145030,this['ranges']=_0x1c3319,this['inner']=[],this['innerDone']=0x0,this['baseTree']=null,this['stoppedAt']=null,this['baseParse']=_0x375d50;}['advance'](){if(this['baseParse']){let _0x4823f1=this['baseParse']['advance']();if(!_0x4823f1)return null;if(this['baseParse']=null,this['baseTree']=_0x4823f1,this['startInner'](),null!=this['stoppedAt']){for(let _0x199f63 of this['inner'])_0x199f63['parse']['stopAt'](this['stoppedAt']);}}if(this['innerDone']==this['inner']['length']){let _0x1a71c0=this['baseTree'];return null!=this['stoppedAt']&&(_0x1a71c0=new Tree(_0x1a71c0['type'],_0x1a71c0['children'],_0x1a71c0['positions'],_0x1a71c0['length'],_0x1a71c0['propValues']['concat']([[stoppedInner,this['stoppedAt']]]))),_0x1a71c0;}let _0x26c358=this['inner'][this['innerDone']],_0x3e09f1=_0x26c358['parse']['advance']();if(_0x3e09f1){this['innerDone']++;let _0x246851=Object['assign'](Object['create'](null),_0x26c358['target']['props']);_0x246851[NodeProp['mounted']['id']]=new MountedTree(_0x3e09f1,_0x26c358['overlay'],_0x26c358['parser']),_0x26c358['target']['props']=_0x246851;}return null;}get['parsedPos'](){if(this['baseParse'])return 0x0;let _0x54617b=this['input']['length'];for(let _0x133ffe=this['innerDone'];_0x133ffe<this['inner']['length'];_0x133ffe++)this['inner'][_0x133ffe]['from']<_0x54617b&&(_0x54617b=Math['min'](_0x54617b,this['inner'][_0x133ffe]['parse']['parsedPos']));return _0x54617b;}['stopAt'](_0x1de83f){if(this['stoppedAt']=_0x1de83f,this['baseParse'])this['baseParse']['stopAt'](_0x1de83f);else{for(let _0x40e57c=this['innerDone'];_0x40e57c<this['inner']['length'];_0x40e57c++)this['inner'][_0x40e57c]['parse']['stopAt'](_0x1de83f);}}['startInner'](){let _0x42a738=new FragmentCursor$2(this['fragments']),_0x237f03=null,_0x98e46f=null,_0x4ff443=new TreeCursor(new TreeNode(this['baseTree'],this['ranges'][0x0]['from'],0x0,null),IterMode['IncludeAnonymous']|IterMode['IgnoreMounts']);t:for(let _0x417970,_0x4e4d44;;){let _0x355c9e,_0x49f9eb=!0x0;if(null!=this['stoppedAt']&&_0x4ff443['from']>=this['stoppedAt'])_0x49f9eb=!0x1;else{if(_0x42a738['hasNode'](_0x4ff443)){if(_0x237f03){let _0x4aeef3=_0x237f03['mounts']['find'](_0x466fca=>_0x466fca['frag']['from']<=_0x4ff443['from']&&_0x466fca['frag']['to']>=_0x4ff443['to']&&_0x466fca['mount']['overlay']);if(_0x4aeef3)for(let _0x89ef20 of _0x4aeef3['mount']['overlay']){let _0x562a9e=_0x89ef20['from']+_0x4aeef3['pos'],_0x31084a=_0x89ef20['to']+_0x4aeef3['pos'];_0x562a9e>=_0x4ff443['from']&&_0x31084a<=_0x4ff443['to']&&!_0x237f03['ranges']['some'](_0x2769a4=>_0x2769a4['from']<_0x31084a&&_0x2769a4['to']>_0x562a9e)&&_0x237f03['ranges']['push']({'from':_0x562a9e,'to':_0x31084a});}}_0x49f9eb=!0x1;}else{if(_0x98e46f&&(_0x4e4d44=checkCover(_0x98e46f['ranges'],_0x4ff443['from'],_0x4ff443['to'])))_0x49f9eb=0x2!=_0x4e4d44;else{if(!_0x4ff443['type']['isAnonymous']&&(_0x417970=this['nest'](_0x4ff443,this['input']))&&(_0x4ff443['from']<_0x4ff443['to']||!_0x417970['overlay'])){_0x4ff443['tree']||(materialize(_0x4ff443),_0x237f03&&_0x237f03['depth']++,_0x98e46f&&_0x98e46f['depth']++);let _0x3c6af3=_0x42a738['findMounts'](_0x4ff443['from'],_0x417970['parser']);if('function'==typeof _0x417970['overlay'])_0x237f03=new ActiveOverlay(_0x417970['parser'],_0x417970['overlay'],_0x3c6af3,this['inner']['length'],_0x4ff443['from'],_0x4ff443['tree'],_0x237f03);else{let _0x5747a2=punchRanges(this['ranges'],_0x417970['overlay']||(_0x4ff443['from']<_0x4ff443['to']?[new Range(_0x4ff443['from'],_0x4ff443['to'])]:[]));_0x5747a2['length']&&checkRanges(_0x5747a2),!_0x5747a2['length']&&_0x417970['overlay']||this['inner']['push'](new InnerParse(_0x417970['parser'],_0x5747a2['length']?_0x417970['parser']['startParse'](this['input'],enterFragments(_0x3c6af3,_0x5747a2),_0x5747a2):_0x417970['parser']['startParse'](''),_0x417970['overlay']?_0x417970['overlay']['map'](_0x300a62=>new Range(_0x300a62['from']-_0x4ff443['from'],_0x300a62['to']-_0x4ff443['from'])):null,_0x4ff443['tree'],_0x5747a2['length']?_0x5747a2[0x0]['from']:_0x4ff443['from'])),_0x417970['overlay']?_0x5747a2['length']&&(_0x98e46f={'ranges':_0x5747a2,'depth':0x0,'prev':_0x98e46f}):_0x49f9eb=!0x1;}}else{if(_0x237f03&&(_0x355c9e=_0x237f03['predicate'](_0x4ff443))&&(!0x0===_0x355c9e&&(_0x355c9e=new Range(_0x4ff443['from'],_0x4ff443['to'])),_0x355c9e['from']<_0x355c9e['to'])){let _0x5a0152=_0x237f03['ranges']['length']-0x1;_0x5a0152>=0x0&&_0x237f03['ranges'][_0x5a0152]['to']==_0x355c9e['from']?_0x237f03['ranges'][_0x5a0152]={'from':_0x237f03['ranges'][_0x5a0152]['from'],'to':_0x355c9e['to']}:_0x237f03['ranges']['push'](_0x355c9e);}}}}}if(_0x49f9eb&&_0x4ff443['firstChild']())_0x237f03&&_0x237f03['depth']++,_0x98e46f&&_0x98e46f['depth']++;else for(;!_0x4ff443['nextSibling']();){if(!_0x4ff443['parent']())break t;if(_0x237f03&&!--_0x237f03['depth']){let _0x49c7dc=punchRanges(this['ranges'],_0x237f03['ranges']);_0x49c7dc['length']&&(checkRanges(_0x49c7dc),this['inner']['splice'](_0x237f03['index'],0x0,new InnerParse(_0x237f03['parser'],_0x237f03['parser']['startParse'](this['input'],enterFragments(_0x237f03['mounts'],_0x49c7dc),_0x49c7dc),_0x237f03['ranges']['map'](_0x3bd7ac=>new Range(_0x3bd7ac['from']-_0x237f03['start'],_0x3bd7ac['to']-_0x237f03['start'])),_0x237f03['target'],_0x49c7dc[0x0]['from']))),_0x237f03=_0x237f03['prev'];}_0x98e46f&&!--_0x98e46f['depth']&&(_0x98e46f=_0x98e46f['prev']);}}}}function checkCover(_0x5d0ce6,_0x168de5,_0x1643b1){for(let _0x1a7ae6 of _0x5d0ce6){if(_0x1a7ae6['from']>=_0x1643b1)break;if(_0x1a7ae6['to']>_0x168de5)return _0x1a7ae6['from']<=_0x168de5&&_0x1a7ae6['to']>=_0x1643b1?0x2:0x1;}return 0x0;}function sliceBuf(_0x33714e,_0x3cde2b,_0x4a06d2,_0x4ed2d2,_0x1b03ee,_0x2ccde0){if(_0x3cde2b<_0x4a06d2){let _0x25a1ae=_0x33714e['buffer'][_0x3cde2b+0x1];_0x4ed2d2['push'](_0x33714e['slice'](_0x3cde2b,_0x4a06d2,_0x25a1ae)),_0x1b03ee['push'](_0x25a1ae-_0x2ccde0);}}function materialize(_0x47cc5f){let {node:_0x133dcf}=_0x47cc5f,_0x58fb62=[],_0x358e18=_0x133dcf['context']['buffer'];do{_0x58fb62['push'](_0x47cc5f['index']),_0x47cc5f['parent']();}while(!_0x47cc5f['tree']);let _0x54d5da=_0x47cc5f['tree'],_0xa28419=_0x54d5da['children']['indexOf'](_0x358e18),_0x44b1da=_0x54d5da['children'][_0xa28419],_0x17130b=_0x44b1da['buffer'],_0x47fd0a=[_0xa28419];_0x54d5da['children'][_0xa28419]=function _0x2f6707(_0x2e8a64,_0x3e98f6,_0x3ed23f,_0x54c357,_0x2440cc,_0x197ddc){let _0x378c8a=_0x58fb62[_0x197ddc],_0x275fc8=[],_0x1c2228=[];sliceBuf(_0x44b1da,_0x2e8a64,_0x378c8a,_0x275fc8,_0x1c2228,_0x54c357);let _0x59eca1=_0x17130b[_0x378c8a+0x1],_0x47bfa4=_0x17130b[_0x378c8a+0x2];_0x47fd0a['push'](_0x275fc8['length']);let _0x563d59=_0x197ddc?_0x2f6707(_0x378c8a+0x4,_0x17130b[_0x378c8a+0x3],_0x44b1da['set']['types'][_0x17130b[_0x378c8a]],_0x59eca1,_0x47bfa4-_0x59eca1,_0x197ddc-0x1):_0x133dcf['toTree']();return _0x275fc8['push'](_0x563d59),_0x1c2228['push'](_0x59eca1-_0x54c357),sliceBuf(_0x44b1da,_0x17130b[_0x378c8a+0x3],_0x3e98f6,_0x275fc8,_0x1c2228,_0x54c357),new Tree(_0x3ed23f,_0x275fc8,_0x1c2228,_0x2440cc);}(0x0,_0x17130b['length'],NodeType['none'],0x0,_0x44b1da['length'],_0x58fb62['length']-0x1);for(let _0x40b037 of _0x47fd0a){let _0x8c307e=_0x47cc5f['tree']['children'][_0x40b037],_0x4c9235=_0x47cc5f['tree']['positions'][_0x40b037];_0x47cc5f['yield'](new TreeNode(_0x8c307e,_0x4c9235+_0x47cc5f['from'],_0x40b037,_0x47cc5f['_tree']));}}class StructureCursor{constructor(_0x1852a9,_0x15e077){this['offset']=_0x15e077,this['done']=!0x1,this['cursor']=_0x1852a9['cursor'](IterMode['IncludeAnonymous']|IterMode['IgnoreMounts']);}['moveTo'](_0x29c180){let {cursor:_0x88a9f6}=this,_0xaa1b7f=_0x29c180-this['offset'];for(;!this['done']&&_0x88a9f6['from']<_0xaa1b7f;)_0x88a9f6['to']>=_0x29c180&&_0x88a9f6['enter'](_0xaa1b7f,0x1,IterMode['IgnoreOverlays']|IterMode['ExcludeBuffers'])||_0x88a9f6['next'](!0x1)||(this['done']=!0x0);}['hasNode'](_0x4773b4){if(this['moveTo'](_0x4773b4['from']),!this['done']&&this['cursor']['from']+this['offset']==_0x4773b4['from']&&this['cursor']['tree'])for(let _0x5f230b=this['cursor']['tree'];;){if(_0x5f230b==_0x4773b4['tree'])return!0x0;if(!(_0x5f230b['children']['length']&&0x0==_0x5f230b['positions'][0x0]&&_0x5f230b['children'][0x0]instanceof Tree))break;_0x5f230b=_0x5f230b['children'][0x0];}return!0x1;}}let FragmentCursor$2=class{constructor(_0x10fdf6){var _0x17b2cd;if(this['fragments']=_0x10fdf6,this['curTo']=0x0,this['fragI']=0x0,_0x10fdf6['length']){let _0x4acad5=this['curFrag']=_0x10fdf6[0x0];this['curTo']=null!==(_0x17b2cd=_0x4acad5['tree']['prop'](stoppedInner))&&void 0x0!==_0x17b2cd?_0x17b2cd:_0x4acad5['to'],this['inner']=new StructureCursor(_0x4acad5['tree'],-_0x4acad5['offset']);}else this['curFrag']=this['inner']=null;}['hasNode'](_0x57730a){for(;this['curFrag']&&_0x57730a['from']>=this['curTo'];)this['nextFrag']();return this['curFrag']&&this['curFrag']['from']<=_0x57730a['from']&&this['curTo']>=_0x57730a['to']&&this['inner']['hasNode'](_0x57730a);}['nextFrag'](){var _0x16ada2;if(this['fragI']++,this['fragI']==this['fragments']['length'])this['curFrag']=this['inner']=null;else{let _0x344aa8=this['curFrag']=this['fragments'][this['fragI']];this['curTo']=null!==(_0x16ada2=_0x344aa8['tree']['prop'](stoppedInner))&&void 0x0!==_0x16ada2?_0x16ada2:_0x344aa8['to'],this['inner']=new StructureCursor(_0x344aa8['tree'],-_0x344aa8['offset']);}}['findMounts'](_0xc21630,_0x1008fd){var _0x547b40;let _0x593d51=[];if(this['inner']){this['inner']['cursor']['moveTo'](_0xc21630,0x1);for(let _0xdecd66=this['inner']['cursor']['node'];_0xdecd66;_0xdecd66=_0xdecd66['parent']){let _0x24b8b6=null===(_0x547b40=_0xdecd66['tree'])||void 0x0===_0x547b40?void 0x0:_0x547b40['prop'](NodeProp['mounted']);if(_0x24b8b6&&_0x24b8b6['parser']==_0x1008fd)for(let _0x37c8b6=this['fragI'];_0x37c8b6<this['fragments']['length'];_0x37c8b6++){let _0x233f33=this['fragments'][_0x37c8b6];if(_0x233f33['from']>=_0xdecd66['to'])break;_0x233f33['tree']==this['curFrag']['tree']&&_0x593d51['push']({'frag':_0x233f33,'pos':_0xdecd66['from']-_0x233f33['offset'],'mount':_0x24b8b6});}}}return _0x593d51;}};function punchRanges(_0x4faa99,_0x2e19d2){let _0xe21473=null,_0x280cfe=_0x2e19d2;for(let _0x2c542c=0x1,_0x22a2aa=0x0;_0x2c542c<_0x4faa99['length'];_0x2c542c++){let _0x40166c=_0x4faa99[_0x2c542c-0x1]['to'],_0x32c07f=_0x4faa99[_0x2c542c]['from'];for(;_0x22a2aa<_0x280cfe['length'];_0x22a2aa++){let _0x4b8d57=_0x280cfe[_0x22a2aa];if(_0x4b8d57['from']>=_0x32c07f)break;_0x4b8d57['to']<=_0x40166c||(_0xe21473||(_0x280cfe=_0xe21473=_0x2e19d2['slice']()),_0x4b8d57['from']<_0x40166c?(_0xe21473[_0x22a2aa]=new Range(_0x4b8d57['from'],_0x40166c),_0x4b8d57['to']>_0x32c07f&&_0xe21473['splice'](_0x22a2aa+0x1,0x0,new Range(_0x32c07f,_0x4b8d57['to']))):_0x4b8d57['to']>_0x32c07f?_0xe21473[_0x22a2aa--]=new Range(_0x32c07f,_0x4b8d57['to']):_0xe21473['splice'](_0x22a2aa--,0x1));}}return _0x280cfe;}function findCoverChanges(_0x560083,_0x434d49,_0x5c77d1,_0x785734){let _0x1032a5=0x0,_0x468e91=0x0,_0xb3c07f=!0x1,_0x317634=!0x1,_0x351c13=-0x3b9aca00,_0x146d15=[];for(;;){let _0x3a02c9=_0x1032a5==_0x560083['length']?0x3b9aca00:_0xb3c07f?_0x560083[_0x1032a5]['to']:_0x560083[_0x1032a5]['from'],_0x435ca4=_0x468e91==_0x434d49['length']?0x3b9aca00:_0x317634?_0x434d49[_0x468e91]['to']:_0x434d49[_0x468e91]['from'];if(_0xb3c07f!=_0x317634){let _0xb312e=Math['max'](_0x351c13,_0x5c77d1),_0x4e85d0=Math['min'](_0x3a02c9,_0x435ca4,_0x785734);_0xb312e<_0x4e85d0&&_0x146d15['push'](new Range(_0xb312e,_0x4e85d0));}if(_0x351c13=Math['min'](_0x3a02c9,_0x435ca4),0x3b9aca00==_0x351c13)break;_0x3a02c9==_0x351c13&&(_0xb3c07f?(_0xb3c07f=!0x1,_0x1032a5++):_0xb3c07f=!0x0),_0x435ca4==_0x351c13&&(_0x317634?(_0x317634=!0x1,_0x468e91++):_0x317634=!0x0);}return _0x146d15;}function enterFragments(_0x3ae6f0,_0x15395){let _0x29e5ea=[];for(let {pos:_0x4b153f,mount:_0x4dfcbb,frag:_0x2a560e}of _0x3ae6f0){let _0x321250=_0x4b153f+(_0x4dfcbb['overlay']?_0x4dfcbb['overlay'][0x0]['from']:0x0),_0x5c6324=_0x321250+_0x4dfcbb['tree']['length'],_0x2986ba=Math['max'](_0x2a560e['from'],_0x321250),_0x50b097=Math['min'](_0x2a560e['to'],_0x5c6324);if(_0x4dfcbb['overlay']){let _0x288a1f=findCoverChanges(_0x15395,_0x4dfcbb['overlay']['map'](_0x2a563a=>new Range(_0x2a563a['from']+_0x4b153f,_0x2a563a['to']+_0x4b153f)),_0x2986ba,_0x50b097);for(let _0x1105e0=0x0,_0x25b562=_0x2986ba;;_0x1105e0++){let _0x300007=_0x1105e0==_0x288a1f['length'],_0x2ce49e=_0x300007?_0x50b097:_0x288a1f[_0x1105e0]['from'];if(_0x2ce49e>_0x25b562&&_0x29e5ea['push'](new TreeFragment(_0x25b562,_0x2ce49e,_0x4dfcbb['tree'],-_0x321250,_0x2a560e['from']>=_0x25b562||_0x2a560e['openStart'],_0x2a560e['to']<=_0x2ce49e||_0x2a560e['openEnd'])),_0x300007)break;_0x25b562=_0x288a1f[_0x1105e0]['to'];}}else _0x29e5ea['push'](new TreeFragment(_0x2986ba,_0x50b097,_0x4dfcbb['tree'],-_0x321250,_0x2a560e['from']>=_0x321250||_0x2a560e['openStart'],_0x2a560e['to']<=_0x5c6324||_0x2a560e['openEnd']));}return _0x29e5ea;}let nextTagID=0x0;class Tag{constructor(_0x5fa6e2,_0x553732,_0x49833f,_0x3de63d){this['name']=_0x5fa6e2,this['set']=_0x553732,this['base']=_0x49833f,this['modified']=_0x3de63d,this['id']=nextTagID++;}['toString'](){let {name:_0x5435b1}=this;for(let _0x1fb2c1 of this['modified'])_0x1fb2c1['name']&&(_0x5435b1=_0x1fb2c1['name']+'('+_0x5435b1+')');return _0x5435b1;}static['define'](_0x10972a,_0x5da90f){let _0x531c7d='string'==typeof _0x10972a?_0x10972a:'?';if(_0x10972a instanceof Tag&&(_0x5da90f=_0x10972a),null==_0x5da90f?void 0x0:_0x5da90f['base'])throw new Error('Can\x20not\x20derive\x20from\x20a\x20modified\x20tag');let _0x17b5b0=new Tag(_0x531c7d,[],null,[]);if(_0x17b5b0['set']['push'](_0x17b5b0),_0x5da90f){for(let t of _0x5da90f['set'])_0x17b5b0['set']['push'](t);}return _0x17b5b0;}static['defineModifier'](_0xfe2cc6){let _0x5ecfb4=new Modifier(_0xfe2cc6);return _0x42e3c2=>_0x42e3c2['modified']['indexOf'](_0x5ecfb4)>-0x1?_0x42e3c2:Modifier['get'](_0x42e3c2['base']||_0x42e3c2,_0x42e3c2['modified']['concat'](_0x5ecfb4)['sort']((_0x1dbdf3,_0x34db68)=>_0x1dbdf3['id']-_0x34db68['id']));}}let nextModifierID=0x0;class Modifier{constructor(_0x3bf7cd){this['name']=_0x3bf7cd,this['instances']=[],this['id']=nextModifierID++;}static['get'](_0x310f4c,_0x4ed0a0){if(!_0x4ed0a0['length'])return _0x310f4c;let _0x2601b7=_0x4ed0a0[0x0]['instances']['find'](t=>t['base']==_0x310f4c&&sameArray(_0x4ed0a0,t['modified']));if(_0x2601b7)return _0x2601b7;let _0x970c5b=[],_0x46a1fb=new Tag(_0x310f4c['name'],_0x970c5b,_0x310f4c,_0x4ed0a0);for(let _0x1246a5 of _0x4ed0a0)_0x1246a5['instances']['push'](_0x46a1fb);let _0x62f30b=powerSet(_0x4ed0a0);for(let _0x4d48b5 of _0x310f4c['set'])if(!_0x4d48b5['modified']['length']){for(let _0x22c577 of _0x62f30b)_0x970c5b['push'](Modifier['get'](_0x4d48b5,_0x22c577));}return _0x46a1fb;}}function sameArray(_0x53c652,_0x49525c){return _0x53c652['length']==_0x49525c['length']&&_0x53c652['every']((_0x4b07ba,_0x5308e5)=>_0x4b07ba==_0x49525c[_0x5308e5]);}function powerSet(_0x15cc6c){let _0x24e2dc=[[]];for(let _0xccf215=0x0;_0xccf215<_0x15cc6c['length'];_0xccf215++)for(let _0x1572a5=0x0,_0x30c44c=_0x24e2dc['length'];_0x1572a5<_0x30c44c;_0x1572a5++)_0x24e2dc['push'](_0x24e2dc[_0x1572a5]['concat'](_0x15cc6c[_0xccf215]));return _0x24e2dc['sort']((_0x70ba43,_0x3f94bb)=>_0x3f94bb['length']-_0x70ba43['length']);}function styleTags(_0x1ce0fc){let _0x523ba3=Object['create'](null);for(let _0x5ef513 in _0x1ce0fc){let _0xd4681f=_0x1ce0fc[_0x5ef513];Array['isArray'](_0xd4681f)||(_0xd4681f=[_0xd4681f]);for(let _0x59e68b of _0x5ef513['split']('\x20'))if(_0x59e68b){let _0x39f4f5=[],_0x574816=0x2,_0x1ebd47=_0x59e68b;for(let _0x354e6f=0x0;;){if('...'==_0x1ebd47&&_0x354e6f>0x0&&_0x354e6f+0x3==_0x59e68b['length']){_0x574816=0x1;break;}let _0x489ca3=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/['exec'](_0x1ebd47);if(!_0x489ca3)throw new RangeError('Invalid\x20path:\x20'+_0x59e68b);if(_0x39f4f5['push']('*'==_0x489ca3[0x0]?'':'\x22'==_0x489ca3[0x0][0x0]?JSON['parse'](_0x489ca3[0x0]):_0x489ca3[0x0]),_0x354e6f+=_0x489ca3[0x0]['length'],_0x354e6f==_0x59e68b['length'])break;let _0x521896=_0x59e68b[_0x354e6f++];if(_0x354e6f==_0x59e68b['length']&&'!'==_0x521896){_0x574816=0x0;break;}if('/'!=_0x521896)throw new RangeError('Invalid\x20path:\x20'+_0x59e68b);_0x1ebd47=_0x59e68b['slice'](_0x354e6f);}let _0x2abc35=_0x39f4f5['length']-0x1,_0x39d9a2=_0x39f4f5[_0x2abc35];if(!_0x39d9a2)throw new RangeError('Invalid\x20path:\x20'+_0x59e68b);let _0x5974fb=new Rule(_0xd4681f,_0x574816,_0x2abc35>0x0?_0x39f4f5['slice'](0x0,_0x2abc35):null);_0x523ba3[_0x39d9a2]=_0x5974fb['sort'](_0x523ba3[_0x39d9a2]);}}return ruleNodeProp['add'](_0x523ba3);}const ruleNodeProp=new NodeProp({'combine'(_0x10eac8,_0x1e4a6f){let _0x3d6027,_0x26e6f0,_0x3cf6f8;for(;_0x10eac8||_0x1e4a6f;){if(!_0x10eac8||_0x1e4a6f&&_0x10eac8['depth']>=_0x1e4a6f['depth']?(_0x3cf6f8=_0x1e4a6f,_0x1e4a6f=_0x1e4a6f['next']):(_0x3cf6f8=_0x10eac8,_0x10eac8=_0x10eac8['next']),_0x3d6027&&_0x3d6027['mode']==_0x3cf6f8['mode']&&!_0x3cf6f8['context']&&!_0x3d6027['context'])continue;let _0x21c6d1=new Rule(_0x3cf6f8['tags'],_0x3cf6f8['mode'],_0x3cf6f8['context']);_0x3d6027?_0x3d6027['next']=_0x21c6d1:_0x26e6f0=_0x21c6d1,_0x3d6027=_0x21c6d1;}return _0x26e6f0;}});class Rule{constructor(_0x4d79b6,_0x5928ea,_0x4ca1dd,_0x49b468){this['tags']=_0x4d79b6,this['mode']=_0x5928ea,this['context']=_0x4ca1dd,this['next']=_0x49b468;}get['opaque'](){return 0x0==this['mode'];}get['inherit'](){return 0x1==this['mode'];}['sort'](_0x4f2a66){return!_0x4f2a66||_0x4f2a66['depth']<this['depth']?(this['next']=_0x4f2a66,this):(_0x4f2a66['next']=this['sort'](_0x4f2a66['next']),_0x4f2a66);}get['depth'](){return this['context']?this['context']['length']:0x0;}}function tagHighlighter(_0x5294b0,_0x3802ba){let _0x383854=Object['create'](null);for(let _0x3f3bd4 of _0x5294b0)if(Array['isArray'](_0x3f3bd4['tag'])){for(let _0x3ee006 of _0x3f3bd4['tag'])_0x383854[_0x3ee006['id']]=_0x3f3bd4['class'];}else _0x383854[_0x3f3bd4['tag']['id']]=_0x3f3bd4['class'];let {scope:_0x261d6f,all:_0x1ef5e1=null}=_0x3802ba||{};return{'style':_0x129491=>{let _0x29993b=_0x1ef5e1;for(let _0x49e961 of _0x129491)for(let _0x10c9ce of _0x49e961['set']){let _0x26e65e=_0x383854[_0x10c9ce['id']];if(_0x26e65e){_0x29993b=_0x29993b?_0x29993b+'\x20'+_0x26e65e:_0x26e65e;break;}}return _0x29993b;},'scope':_0x261d6f};}function highlightTags(_0x268f73,_0x34e6e3){let _0x404704=null;for(let _0x2ec24f of _0x268f73){let _0x4d04f3=_0x2ec24f['style'](_0x34e6e3);_0x4d04f3&&(_0x404704=_0x404704?_0x404704+'\x20'+_0x4d04f3:_0x4d04f3);}return _0x404704;}function highlightTree(_0x4ea834,_0x39b1b4,_0x174b10,_0x4f3d0b=0x0,_0x1d0ddf=_0x4ea834['length']){let _0x3eb518=new HighlightBuilder(_0x4f3d0b,Array['isArray'](_0x39b1b4)?_0x39b1b4:[_0x39b1b4],_0x174b10);_0x3eb518['highlightRange'](_0x4ea834['cursor'](),_0x4f3d0b,_0x1d0ddf,'',_0x3eb518['highlighters']),_0x3eb518['flush'](_0x1d0ddf);}Rule['empty']=new Rule([],0x2,null);class HighlightBuilder{constructor(_0x289cfe,_0x1642f6,_0x59e7a2){this['at']=_0x289cfe,this['highlighters']=_0x1642f6,this['span']=_0x59e7a2,this['class']='';}['startSpan'](_0x26c54e,_0x10023d){_0x10023d!=this['class']&&(this['flush'](_0x26c54e),_0x26c54e>this['at']&&(this['at']=_0x26c54e),this['class']=_0x10023d);}['flush'](_0x3b507c){_0x3b507c>this['at']&&this['class']&&this['span'](this['at'],_0x3b507c,this['class']);}['highlightRange'](_0xfb9c77,_0x3a43a7,_0x4fb63f,_0x245937,_0x325944){let {type:_0x1d6e15,from:_0x103862,to:_0x1e96fc}=_0xfb9c77;if(_0x103862>=_0x4fb63f||_0x1e96fc<=_0x3a43a7)return;_0x1d6e15['isTop']&&(_0x325944=this['highlighters']['filter'](_0x1e5bed=>!_0x1e5bed['scope']||_0x1e5bed['scope'](_0x1d6e15)));let _0x14d88a=_0x245937,_0xebe9b8=getStyleTags(_0xfb9c77)||Rule['empty'],_0x59897c=highlightTags(_0x325944,_0xebe9b8['tags']);if(_0x59897c&&(_0x14d88a&&(_0x14d88a+='\x20'),_0x14d88a+=_0x59897c,0x1==_0xebe9b8['mode']&&(_0x245937+=(_0x245937?'\x20':'')+_0x59897c)),this['startSpan'](Math['max'](_0x3a43a7,_0x103862),_0x14d88a),_0xebe9b8['opaque'])return;let _0x3c4277=_0xfb9c77['tree']&&_0xfb9c77['tree']['prop'](NodeProp['mounted']);if(_0x3c4277&&_0x3c4277['overlay']){let _0x46b03f=_0xfb9c77['node']['enter'](_0x3c4277['overlay'][0x0]['from']+_0x103862,0x1),_0x4dac65=this['highlighters']['filter'](_0x28223b=>!_0x28223b['scope']||_0x28223b['scope'](_0x3c4277['tree']['type'])),_0x3b6531=_0xfb9c77['firstChild']();for(let _0x452b95=0x0,_0x20db4b=_0x103862;;_0x452b95++){let _0x5eea2f=_0x452b95<_0x3c4277['overlay']['length']?_0x3c4277['overlay'][_0x452b95]:null,_0x50e431=_0x5eea2f?_0x5eea2f['from']+_0x103862:_0x1e96fc,_0x3ed6ed=Math['max'](_0x3a43a7,_0x20db4b),_0x2cb032=Math['min'](_0x4fb63f,_0x50e431);if(_0x3ed6ed<_0x2cb032&&_0x3b6531){for(;_0xfb9c77['from']<_0x2cb032&&(this['highlightRange'](_0xfb9c77,_0x3ed6ed,_0x2cb032,_0x245937,_0x325944),this['startSpan'](Math['min'](_0x2cb032,_0xfb9c77['to']),_0x14d88a),!(_0xfb9c77['to']>=_0x50e431)&&_0xfb9c77['nextSibling']()););}if(!_0x5eea2f||_0x50e431>_0x4fb63f)break;_0x20db4b=_0x5eea2f['to']+_0x103862,_0x20db4b>_0x3a43a7&&(this['highlightRange'](_0x46b03f['cursor'](),Math['max'](_0x3a43a7,_0x5eea2f['from']+_0x103862),Math['min'](_0x4fb63f,_0x20db4b),'',_0x4dac65),this['startSpan'](Math['min'](_0x4fb63f,_0x20db4b),_0x14d88a));}_0x3b6531&&_0xfb9c77['parent']();}else{if(_0xfb9c77['firstChild']()){_0x3c4277&&(_0x245937='');do{if(!(_0xfb9c77['to']<=_0x3a43a7)){if(_0xfb9c77['from']>=_0x4fb63f)break;this['highlightRange'](_0xfb9c77,_0x3a43a7,_0x4fb63f,_0x245937,_0x325944),this['startSpan'](Math['min'](_0x4fb63f,_0xfb9c77['to']),_0x14d88a);}}while(_0xfb9c77['nextSibling']());_0xfb9c77['parent']();}}}}function getStyleTags(_0x1f5e28){let _0x59f630=_0x1f5e28['type']['prop'](ruleNodeProp);for(;_0x59f630&&_0x59f630['context']&&!_0x1f5e28['matchContext'](_0x59f630['context']);)_0x59f630=_0x59f630['next'];return _0x59f630||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(_0x50f9c2){return Facet['define']({'combine':_0x50f9c2?_0x4a4855=>_0x4a4855['concat'](_0x50f9c2):void 0x0});}const sublanguageProp=new NodeProp();class Language{constructor(_0x401d17,_0x1177a2,_0x5aa95d=[],_0x440eda=''){this['data']=_0x401d17,this['name']=_0x440eda,EditorState['prototype']['hasOwnProperty']('tree')||Object['defineProperty'](EditorState['prototype'],'tree',{'get'(){return syntaxTree(this);}}),this['parser']=_0x1177a2,this['extension']=[language['of'](this),EditorState['languageData']['of']((_0x4547f9,_0x1a2b84,_0x34c1a4)=>{let _0x56269f=topNodeAt(_0x4547f9,_0x1a2b84,_0x34c1a4),_0x2d22a6=_0x56269f['type']['prop'](languageDataProp);if(!_0x2d22a6)return[];let _0x3b74fa=_0x4547f9['facet'](_0x2d22a6),_0x254922=_0x56269f['type']['prop'](sublanguageProp);if(_0x254922){let _0x10fc55=_0x56269f['resolve'](_0x1a2b84-_0x56269f['from'],_0x34c1a4);for(let _0x3433bc of _0x254922)if(_0x3433bc['test'](_0x10fc55,_0x4547f9)){let _0x264f95=_0x4547f9['facet'](_0x3433bc['facet']);return'replace'==_0x3433bc['type']?_0x264f95:_0x264f95['concat'](_0x3b74fa);}}return _0x3b74fa;})]['concat'](_0x5aa95d);}['isActiveAt'](_0x33548f,_0x3a5845,_0x2c0834=-0x1){return topNodeAt(_0x33548f,_0x3a5845,_0x2c0834)['type']['prop'](languageDataProp)==this['data'];}['findRegions'](_0x55119e){let _0x16184a=_0x55119e['facet'](language);if((null==_0x16184a?void 0x0:_0x16184a['data'])==this['data'])return[{'from':0x0,'to':_0x55119e['doc']['length']}];if(!_0x16184a||!_0x16184a['allowsNesting'])return[];let _0x34a54a=[],_0x4666fb=(_0xdcba07,_0x1c1dcf)=>{if(_0xdcba07['prop'](languageDataProp)==this['data'])return void _0x34a54a['push']({'from':_0x1c1dcf,'to':_0x1c1dcf+_0xdcba07['length']});let _0x27848d=_0xdcba07['prop'](NodeProp['mounted']);if(_0x27848d){if(_0x27848d['tree']['prop'](languageDataProp)==this['data']){if(_0x27848d['overlay']){for(let _0x283869 of _0x27848d['overlay'])_0x34a54a['push']({'from':_0x283869['from']+_0x1c1dcf,'to':_0x283869['to']+_0x1c1dcf});}else _0x34a54a['push']({'from':_0x1c1dcf,'to':_0x1c1dcf+_0xdcba07['length']});return;}if(_0x27848d['overlay']){let _0x594242=_0x34a54a['length'];if(_0x4666fb(_0x27848d['tree'],_0x27848d['overlay'][0x0]['from']+_0x1c1dcf),_0x34a54a['length']>_0x594242)return;}}for(let _0x57c828=0x0;_0x57c828<_0xdcba07['children']['length'];_0x57c828++){let _0x298a3f=_0xdcba07['children'][_0x57c828];_0x298a3f instanceof Tree&&_0x4666fb(_0x298a3f,_0xdcba07['positions'][_0x57c828]+_0x1c1dcf);}};return _0x4666fb(syntaxTree(_0x55119e),0x0),_0x34a54a;}get['allowsNesting'](){return!0x0;}}function topNodeAt(_0x1cbcb0,_0x5aa922,_0x387696){let _0x553581=_0x1cbcb0['facet'](language),_0x52d3d0=syntaxTree(_0x1cbcb0)['topNode'];if(!_0x553581||_0x553581['allowsNesting']){for(let _0x3edef2=_0x52d3d0;_0x3edef2;_0x3edef2=_0x3edef2['enter'](_0x5aa922,_0x387696,IterMode['ExcludeBuffers']))_0x3edef2['type']['isTop']&&(_0x52d3d0=_0x3edef2);}return _0x52d3d0;}Language['setState']=StateEffect['define']();class LRLanguage extends Language{constructor(_0x56f842,_0x174215,_0x29de6c){super(_0x56f842,_0x174215,[],_0x29de6c),this['parser']=_0x174215;}static['define'](_0x3ef2d3){let _0x3c1c88=defineLanguageFacet(_0x3ef2d3['languageData']);return new LRLanguage(_0x3c1c88,_0x3ef2d3['parser']['configure']({'props':[languageDataProp['add'](_0x5d68cb=>_0x5d68cb['isTop']?_0x3c1c88:void 0x0)]}),_0x3ef2d3['name']);}['configure'](_0x1bab55,_0x52b3fb){return new LRLanguage(this['data'],this['parser']['configure'](_0x1bab55),_0x52b3fb||this['name']);}get['allowsNesting'](){return this['parser']['hasWrappers']();}}function syntaxTree(_0x671c44){let _0x42c2a6=_0x671c44['field'](Language['state'],!0x1);return _0x42c2a6?_0x42c2a6['tree']:Tree['empty'];}class DocInput{constructor(_0x2a1eb7){this['doc']=_0x2a1eb7,this['cursorPos']=0x0,this['string']='',this['cursor']=_0x2a1eb7['iter']();}get['length'](){return this['doc']['length'];}['syncTo'](_0x578720){return this['string']=this['cursor']['next'](_0x578720-this['cursorPos'])['value'],this['cursorPos']=_0x578720+this['string']['length'],this['cursorPos']-this['string']['length'];}['chunk'](_0x36278c){return this['syncTo'](_0x36278c),this['string'];}get['lineChunks'](){return!0x0;}['read'](_0xaee1f2,_0x228703){let _0x182b3a=this['cursorPos']-this['string']['length'];return _0xaee1f2<_0x182b3a||_0x228703>=this['cursorPos']?this['doc']['sliceString'](_0xaee1f2,_0x228703):this['string']['slice'](_0xaee1f2-_0x182b3a,_0x228703-_0x182b3a);}}let currentContext=null;class ParseContext{constructor(_0x244c89,_0x1fe445,_0x12a9f6=[],_0x1f24b0,_0x6add58,_0xe86355,_0x3f7031,_0x4d0908){this['parser']=_0x244c89,this['state']=_0x1fe445,this['fragments']=_0x12a9f6,this['tree']=_0x1f24b0,this['treeLen']=_0x6add58,this['viewport']=_0xe86355,this['skipped']=_0x3f7031,this['scheduleOn']=_0x4d0908,this['parse']=null,this['tempSkipped']=[];}static['create'](_0x4d9e76,_0xbbe0cc,_0x2b1f08){return new ParseContext(_0x4d9e76,_0xbbe0cc,[],Tree['empty'],0x0,_0x2b1f08,[],null);}['startParse'](){return this['parser']['startParse'](new DocInput(this['state']['doc']),this['fragments']);}['work'](_0x41e758,_0x3fb5ef){return null!=_0x3fb5ef&&_0x3fb5ef>=this['state']['doc']['length']&&(_0x3fb5ef=void 0x0),this['tree']!=Tree['empty']&&this['isDone'](null!=_0x3fb5ef?_0x3fb5ef:this['state']['doc']['length'])?(this['takeTree'](),!0x0):this['withContext'](()=>{var _0x2f2605;if('number'==typeof _0x41e758){let _0x2ab170=Date['now']()+_0x41e758;_0x41e758=()=>Date['now']()>_0x2ab170;}for(this['parse']||(this['parse']=this['startParse']()),null!=_0x3fb5ef&&(null==this['parse']['stoppedAt']||this['parse']['stoppedAt']>_0x3fb5ef)&&_0x3fb5ef<this['state']['doc']['length']&&this['parse']['stopAt'](_0x3fb5ef);;){let _0x4a9aa2=this['parse']['advance']();if(_0x4a9aa2){if(this['fragments']=this['withoutTempSkipped'](TreeFragment['addTree'](_0x4a9aa2,this['fragments'],null!=this['parse']['stoppedAt'])),this['treeLen']=null!==(_0x2f2605=this['parse']['stoppedAt'])&&void 0x0!==_0x2f2605?_0x2f2605:this['state']['doc']['length'],this['tree']=_0x4a9aa2,this['parse']=null,!(this['treeLen']<(null!=_0x3fb5ef?_0x3fb5ef:this['state']['doc']['length'])))return!0x0;this['parse']=this['startParse']();}if(_0x41e758())return!0x1;}});}['takeTree'](){let _0x3234bf,_0x17d1d9;this['parse']&&(_0x3234bf=this['parse']['parsedPos'])>=this['treeLen']&&((null==this['parse']['stoppedAt']||this['parse']['stoppedAt']>_0x3234bf)&&this['parse']['stopAt'](_0x3234bf),this['withContext'](()=>{for(;!(_0x17d1d9=this['parse']['advance']()););}),this['treeLen']=_0x3234bf,this['tree']=_0x17d1d9,this['fragments']=this['withoutTempSkipped'](TreeFragment['addTree'](this['tree'],this['fragments'],!0x0)),this['parse']=null);}['withContext'](_0x228395){let _0x5b6c04=currentContext;currentContext=this;try{return _0x228395();}finally{currentContext=_0x5b6c04;}}['withoutTempSkipped'](_0x438edb){for(let _0x52c4d0;_0x52c4d0=this['tempSkipped']['pop']();)_0x438edb=cutFragments(_0x438edb,_0x52c4d0['from'],_0x52c4d0['to']);return _0x438edb;}['changes'](_0x516069,_0x47738d){let {fragments:_0x357fdf,tree:_0x77531a,treeLen:_0x3e8f0c,viewport:_0x5f1f05,skipped:_0x5c86c7}=this;if(this['takeTree'](),!_0x516069['empty']){let _0x235dfc=[];if(_0x516069['iterChangedRanges']((_0xc25e24,_0x4148d4,_0x1e8f9d,_0x12800c)=>_0x235dfc['push']({'fromA':_0xc25e24,'toA':_0x4148d4,'fromB':_0x1e8f9d,'toB':_0x12800c})),_0x357fdf=TreeFragment['applyChanges'](_0x357fdf,_0x235dfc),_0x77531a=Tree['empty'],_0x3e8f0c=0x0,_0x5f1f05={'from':_0x516069['mapPos'](_0x5f1f05['from'],-0x1),'to':_0x516069['mapPos'](_0x5f1f05['to'],0x1)},this['skipped']['length']){_0x5c86c7=[];for(let _0x239f28 of this['skipped']){let _0x3ca628=_0x516069['mapPos'](_0x239f28['from'],0x1),_0x109b54=_0x516069['mapPos'](_0x239f28['to'],-0x1);_0x3ca628<_0x109b54&&_0x5c86c7['push']({'from':_0x3ca628,'to':_0x109b54});}}}return new ParseContext(this['parser'],_0x47738d,_0x357fdf,_0x77531a,_0x3e8f0c,_0x5f1f05,_0x5c86c7,this['scheduleOn']);}['updateViewport'](_0x51ccf3){if(this['viewport']['from']==_0x51ccf3['from']&&this['viewport']['to']==_0x51ccf3['to'])return!0x1;this['viewport']=_0x51ccf3;let _0x5a8067=this['skipped']['length'];for(let _0x39ce82=0x0;_0x39ce82<this['skipped']['length'];_0x39ce82++){let {from:_0x867033,to:_0x53abdb}=this['skipped'][_0x39ce82];_0x867033<_0x51ccf3['to']&&_0x53abdb>_0x51ccf3['from']&&(this['fragments']=cutFragments(this['fragments'],_0x867033,_0x53abdb),this['skipped']['splice'](_0x39ce82--,0x1));}return!(this['skipped']['length']>=_0x5a8067)&&(this['reset'](),!0x0);}['reset'](){this['parse']&&(this['takeTree'](),this['parse']=null);}['skipUntilInView'](_0x1d3067,_0x27845f){this['skipped']['push']({'from':_0x1d3067,'to':_0x27845f});}static['getSkippingParser'](_0x5bb0b5){return new class extends Parser{['createParse'](_0x151202,_0x1eb1f2,_0xb09006){let _0x4f6208=_0xb09006[0x0]['from'],_0xce7599=_0xb09006[_0xb09006['length']-0x1]['to'];return{'parsedPos':_0x4f6208,'advance'(){let _0x193982=currentContext;if(_0x193982){for(let _0x1c76b4 of _0xb09006)_0x193982['tempSkipped']['push'](_0x1c76b4);_0x5bb0b5&&(_0x193982['scheduleOn']=_0x193982['scheduleOn']?Promise['all']([_0x193982['scheduleOn'],_0x5bb0b5]):_0x5bb0b5);}return this['parsedPos']=_0xce7599,new Tree(NodeType['none'],[],[],_0xce7599-_0x4f6208);},'stoppedAt':null,'stopAt'(){}};}}();}['isDone'](_0x2aadc1){_0x2aadc1=Math['min'](_0x2aadc1,this['state']['doc']['length']);let _0x163e4a=this['fragments'];return this['treeLen']>=_0x2aadc1&&_0x163e4a['length']&&0x0==_0x163e4a[0x0]['from']&&_0x163e4a[0x0]['to']>=_0x2aadc1;}static['get'](){return currentContext;}}function cutFragments(_0x159b43,_0x463b2e,_0x4ce521){return TreeFragment['applyChanges'](_0x159b43,[{'fromA':_0x463b2e,'toA':_0x4ce521,'fromB':_0x463b2e,'toB':_0x4ce521}]);}class LanguageState{constructor(_0x4d16f){this['context']=_0x4d16f,this['tree']=_0x4d16f['tree'];}['apply'](_0xa4d689){if(!_0xa4d689['docChanged']&&this['tree']==this['context']['tree'])return this;let _0x1335f3=this['context']['changes'](_0xa4d689['changes'],_0xa4d689['state']),_0x2054a4=this['context']['treeLen']==_0xa4d689['startState']['doc']['length']?void 0x0:Math['max'](_0xa4d689['changes']['mapPos'](this['context']['treeLen']),_0x1335f3['viewport']['to']);return _0x1335f3['work'](0x14,_0x2054a4)||_0x1335f3['takeTree'](),new LanguageState(_0x1335f3);}static['init'](_0x5eca85){let _0x274090=Math['min'](0xbb8,_0x5eca85['doc']['length']),_0x4ab357=ParseContext['create'](_0x5eca85['facet'](language)['parser'],_0x5eca85,{'from':0x0,'to':_0x274090});return _0x4ab357['work'](0x14,_0x274090)||_0x4ab357['takeTree'](),new LanguageState(_0x4ab357);}}Language['state']=StateField['define']({'create':LanguageState['init'],'update'(_0x4bfa15,_0x51b1ce){for(let _0x5da5e9 of _0x51b1ce['effects'])if(_0x5da5e9['is'](Language['setState']))return _0x5da5e9['value'];return _0x51b1ce['startState']['facet'](language)!=_0x51b1ce['state']['facet'](language)?LanguageState['init'](_0x51b1ce['state']):_0x4bfa15['apply'](_0x51b1ce);}});let requestIdle=_0x3d951e=>{let _0x75d4c1=setTimeout(()=>_0x3d951e(),0x1f4);return()=>clearTimeout(_0x75d4c1);};'undefined'!=typeof requestIdleCallback&&(requestIdle=_0x3bfba8=>{let _0x4eb916=-0x1,_0x5c121f=setTimeout(()=>{_0x4eb916=requestIdleCallback(_0x3bfba8,{'timeout':0x190});},0x64);return()=>_0x4eb916<0x0?clearTimeout(_0x5c121f):cancelIdleCallback(_0x4eb916);});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(_0x46464e){this['view']=_0x46464e,this['working']=null,this['workScheduled']=0x0,this['chunkEnd']=-0x1,this['chunkBudget']=-0x1,this['work']=this['work']['bind'](this),this['scheduleWork']();}['update'](_0x1ed683){let _0x4a08a1=this['view']['state']['field'](Language['state'])['context'];(_0x4a08a1['updateViewport'](_0x1ed683['view']['viewport'])||this['view']['viewport']['to']>_0x4a08a1['treeLen'])&&this['scheduleWork'](),(_0x1ed683['docChanged']||_0x1ed683['selectionSet'])&&(this['view']['hasFocus']&&(this['chunkBudget']+=0x32),this['scheduleWork']()),this['checkAsyncSchedule'](_0x4a08a1);}['scheduleWork'](){if(this['working'])return;let {state:_0x4ff6f2}=this['view'],_0x549735=_0x4ff6f2['field'](Language['state']);_0x549735['tree']==_0x549735['context']['tree']&&_0x549735['context']['isDone'](_0x4ff6f2['doc']['length'])||(this['working']=requestIdle(this['work']));}['work'](_0x443428){this['working']=null;let _0x2fe096=Date['now']();if(this['chunkEnd']<_0x2fe096&&(this['chunkEnd']<0x0||this['view']['hasFocus'])&&(this['chunkEnd']=_0x2fe096+0x7530,this['chunkBudget']=0xbb8),this['chunkBudget']<=0x0)return;let {state:_0x239a4b,viewport:{to:_0x5c39cf}}=this['view'],_0x183f42=_0x239a4b['field'](Language['state']);if(_0x183f42['tree']==_0x183f42['context']['tree']&&_0x183f42['context']['isDone'](_0x5c39cf+0x186a0))return;let _0x2bf3d5=Date['now']()+Math['min'](this['chunkBudget'],0x64,_0x443428&&!isInputPending?Math['max'](0x19,_0x443428['timeRemaining']()-0x5):0x3b9aca00),_0x1cacc7=_0x183f42['context']['treeLen']<_0x5c39cf&&_0x239a4b['doc']['length']>_0x5c39cf+0x3e8,_0x1e9bbd=_0x183f42['context']['work'](()=>isInputPending&&isInputPending()||Date['now']()>_0x2bf3d5,_0x5c39cf+(_0x1cacc7?0x0:0x186a0));this['chunkBudget']-=Date['now']()-_0x2fe096,(_0x1e9bbd||this['chunkBudget']<=0x0)&&(_0x183f42['context']['takeTree'](),this['view']['dispatch']({'effects':Language['setState']['of'](new LanguageState(_0x183f42['context']))})),this['chunkBudget']>0x0&&(!_0x1e9bbd||_0x1cacc7)&&this['scheduleWork'](),this['checkAsyncSchedule'](_0x183f42['context']);}['checkAsyncSchedule'](_0x37bcf6){_0x37bcf6['scheduleOn']&&(this['workScheduled']++,_0x37bcf6['scheduleOn']['then'](()=>this['scheduleWork']())['catch'](_0x288b4b=>logException(this['view']['state'],_0x288b4b))['then'](()=>this['workScheduled']--),_0x37bcf6['scheduleOn']=null);}['destroy'](){this['working']&&this['working']();}['isWorking'](){return!!(this['working']||this['workScheduled']>0x0);}},{'eventHandlers':{'focus'(){this['scheduleWork']();}}}),language=Facet['define']({'combine':_0x8af4b2=>_0x8af4b2['length']?_0x8af4b2[0x0]:null,'enables':_0x1125ac=>[Language['state'],parseWorker,EditorView['contentAttributes']['compute']([_0x1125ac],_0x228c47=>{let _0x557f90=_0x228c47['facet'](_0x1125ac);return _0x557f90&&_0x557f90['name']?{'data-language':_0x557f90['name']}:{};})]});class LanguageSupport{constructor(_0x16606e,_0x332e76=[]){this['language']=_0x16606e,this['support']=_0x332e76,this['extension']=[_0x16606e,_0x332e76];}}class LanguageDescription{constructor(_0x46cf59,_0x580fea,_0x33969a,_0x45c44d,_0x3e9e03,_0x5d7ac3=void 0x0){this['name']=_0x46cf59,this['alias']=_0x580fea,this['extensions']=_0x33969a,this['filename']=_0x45c44d,this['loadFunc']=_0x3e9e03,this['support']=_0x5d7ac3,this['loading']=null;}['load'](){return this['loading']||(this['loading']=this['loadFunc']()['then'](_0x43d4e9=>this['support']=_0x43d4e9,_0x29eca6=>{throw this['loading']=null,_0x29eca6;}));}static['of'](_0x226f1f){let {load:_0x17df79,support:_0x55e366}=_0x226f1f;if(!_0x17df79){if(!_0x55e366)throw new RangeError('Must\x20pass\x20either\x20\x27load\x27\x20or\x20\x27support\x27\x20to\x20LanguageDescription.of');_0x17df79=()=>Promise['resolve'](_0x55e366);}return new LanguageDescription(_0x226f1f['name'],(_0x226f1f['alias']||[])['concat'](_0x226f1f['name'])['map'](_0x4f34ec=>_0x4f34ec['toLowerCase']()),_0x226f1f['extensions']||[],_0x226f1f['filename'],_0x17df79,_0x55e366);}static['matchFilename'](_0x2d7d67,_0x2574a7){for(let _0x118065 of _0x2d7d67)if(_0x118065['filename']&&_0x118065['filename']['test'](_0x2574a7))return _0x118065;let _0x5cd416=/\.([^.]+)$/['exec'](_0x2574a7);if(_0x5cd416){for(let _0x52229b of _0x2d7d67)if(_0x52229b['extensions']['indexOf'](_0x5cd416[0x1])>-0x1)return _0x52229b;}return null;}static['matchLanguageName'](_0x40f7e1,_0x4e7124,_0x2c666c=!0x0){_0x4e7124=_0x4e7124['toLowerCase']();for(let _0x9f49db of _0x40f7e1)if(_0x9f49db['alias']['some'](_0x238bb7=>_0x238bb7==_0x4e7124))return _0x9f49db;if(_0x2c666c){for(let _0x419dc0 of _0x40f7e1)for(let _0x44894b of _0x419dc0['alias']){let _0x890188=_0x4e7124['indexOf'](_0x44894b);if(_0x890188>-0x1&&(_0x44894b['length']>0x2||!/\w/['test'](_0x4e7124[_0x890188-0x1])&&!/\w/['test'](_0x4e7124[_0x890188+_0x44894b['length']])))return _0x419dc0;}}return null;}}const indentService=Facet['define'](),indentUnit=Facet['define']({'combine':_0x42ca14=>{if(!_0x42ca14['length'])return'\x20\x20';let _0x2cc95c=_0x42ca14[0x0];if(!_0x2cc95c||/\S/['test'](_0x2cc95c)||Array['from'](_0x2cc95c)['some'](_0x56390d=>_0x56390d!=_0x2cc95c[0x0]))throw new Error('Invalid\x20indent\x20unit:\x20'+JSON['stringify'](_0x42ca14[0x0]));return _0x2cc95c;}});function getIndentUnit(_0x27c4fb){let _0x7bd92a=_0x27c4fb['facet'](indentUnit);return 0x9==_0x7bd92a['charCodeAt'](0x0)?_0x27c4fb['tabSize']*_0x7bd92a['length']:_0x7bd92a['length'];}function indentString(_0x1ecd92,_0x5d3c2f){let _0x8b3cd0='',_0x1dfb50=_0x1ecd92['tabSize'],_0x58e963=_0x1ecd92['facet'](indentUnit)[0x0];if('\x09'==_0x58e963){for(;_0x5d3c2f>=_0x1dfb50;)_0x8b3cd0+='\x09',_0x5d3c2f-=_0x1dfb50;_0x58e963='\x20';}for(let _0x5ce156=0x0;_0x5ce156<_0x5d3c2f;_0x5ce156++)_0x8b3cd0+=_0x58e963;return _0x8b3cd0;}function getIndentation(_0x2772de,_0x473cf6){_0x2772de instanceof EditorState&&(_0x2772de=new IndentContext(_0x2772de));for(let _0x4ea7b8 of _0x2772de['state']['facet'](indentService)){let _0x3079ce=_0x4ea7b8(_0x2772de,_0x473cf6);if(void 0x0!==_0x3079ce)return _0x3079ce;}let _0x1912c9=syntaxTree(_0x2772de['state']);return _0x1912c9['length']>=_0x473cf6?syntaxIndentation(_0x2772de,_0x1912c9,_0x473cf6):null;}class IndentContext{constructor(_0x55c443,_0x557e9d={}){this['state']=_0x55c443,this['options']=_0x557e9d,this['unit']=getIndentUnit(_0x55c443);}['lineAt'](_0x502272,_0x14da63=0x1){let _0x544611=this['state']['doc']['lineAt'](_0x502272),{simulateBreak:_0x1b85b4,simulateDoubleBreak:_0x4b437b}=this['options'];return null!=_0x1b85b4&&_0x1b85b4>=_0x544611['from']&&_0x1b85b4<=_0x544611['to']?_0x4b437b&&_0x1b85b4==_0x502272?{'text':'','from':_0x502272}:(_0x14da63<0x0?_0x1b85b4<_0x502272:_0x1b85b4<=_0x502272)?{'text':_0x544611['text']['slice'](_0x1b85b4-_0x544611['from']),'from':_0x1b85b4}:{'text':_0x544611['text']['slice'](0x0,_0x1b85b4-_0x544611['from']),'from':_0x544611['from']}:_0x544611;}['textAfterPos'](_0x1e3b36,_0x230ce5=0x1){if(this['options']['simulateDoubleBreak']&&_0x1e3b36==this['options']['simulateBreak'])return'';let {text:_0x2ca29a,from:_0x3d2ccf}=this['lineAt'](_0x1e3b36,_0x230ce5);return _0x2ca29a['slice'](_0x1e3b36-_0x3d2ccf,Math['min'](_0x2ca29a['length'],_0x1e3b36+0x64-_0x3d2ccf));}['column'](_0x1aa1d4,_0x26217d=0x1){let {text:_0x3cce28,from:_0x5a5dd3}=this['lineAt'](_0x1aa1d4,_0x26217d),_0x4254f6=this['countColumn'](_0x3cce28,_0x1aa1d4-_0x5a5dd3),_0x381fed=this['options']['overrideIndentation']?this['options']['overrideIndentation'](_0x5a5dd3):-0x1;return _0x381fed>-0x1&&(_0x4254f6+=_0x381fed-this['countColumn'](_0x3cce28,_0x3cce28['search'](/\S|$/))),_0x4254f6;}['countColumn'](_0x5097e5,_0xc69e81=_0x5097e5['length']){return countColumn(_0x5097e5,this['state']['tabSize'],_0xc69e81);}['lineIndent'](_0x1494af,_0x72e7b4=0x1){let {text:_0x551433,from:_0x3c4f29}=this['lineAt'](_0x1494af,_0x72e7b4),_0x2c8a0c=this['options']['overrideIndentation'];if(_0x2c8a0c){let _0x1a2fbe=_0x2c8a0c(_0x3c4f29);if(_0x1a2fbe>-0x1)return _0x1a2fbe;}return this['countColumn'](_0x551433,_0x551433['search'](/\S|$/));}get['simulatedBreak'](){return this['options']['simulateBreak']||null;}}const indentNodeProp=new NodeProp();function syntaxIndentation(_0x229cd7,_0x10ceda,_0x2ee957){let _0x37a777=_0x10ceda['resolveStack'](_0x2ee957),_0xf99ea6=_0x10ceda['resolveInner'](_0x2ee957,-0x1)['resolve'](_0x2ee957,0x0)['enterUnfinishedNodesBefore'](_0x2ee957);if(_0xf99ea6!=_0x37a777['node']){let _0x29fa1e=[];for(let _0x3b765c=_0xf99ea6;_0x3b765c&&!(_0x3b765c['from']<_0x37a777['node']['from']||_0x3b765c['to']>_0x37a777['node']['to']||_0x3b765c['from']==_0x37a777['node']['from']&&_0x3b765c['type']==_0x37a777['node']['type']);_0x3b765c=_0x3b765c['parent'])_0x29fa1e['push'](_0x3b765c);for(let _0x3b7b2b=_0x29fa1e['length']-0x1;_0x3b7b2b>=0x0;_0x3b7b2b--)_0x37a777={'node':_0x29fa1e[_0x3b7b2b],'next':_0x37a777};}return indentFor(_0x37a777,_0x229cd7,_0x2ee957);}function indentFor(_0x1fbead,_0xcb6e55,_0xc7a863){for(let _0x488f09=_0x1fbead;_0x488f09;_0x488f09=_0x488f09['next']){let _0x1fef10=indentStrategy(_0x488f09['node']);if(_0x1fef10)return _0x1fef10(TreeIndentContext['create'](_0xcb6e55,_0xc7a863,_0x488f09));}return 0x0;}function ignoreClosed(_0xc791d9){return _0xc791d9['pos']==_0xc791d9['options']['simulateBreak']&&_0xc791d9['options']['simulateDoubleBreak'];}function indentStrategy(_0xe8fb4e){let _0x3669b0=_0xe8fb4e['type']['prop'](indentNodeProp);if(_0x3669b0)return _0x3669b0;let _0x1f7482,_0x17c211=_0xe8fb4e['firstChild'];if(_0x17c211&&(_0x1f7482=_0x17c211['type']['prop'](NodeProp['closedBy']))){let _0x5d1fd7=_0xe8fb4e['lastChild'],_0x5c49aa=_0x5d1fd7&&_0x1f7482['indexOf'](_0x5d1fd7['name'])>-0x1;return _0xe317c9=>delimitedStrategy(_0xe317c9,!0x0,0x1,void 0x0,_0x5c49aa&&!ignoreClosed(_0xe317c9)?_0x5d1fd7['from']:void 0x0);}return null==_0xe8fb4e['parent']?topIndent:null;}function topIndent(){return 0x0;}class TreeIndentContext extends IndentContext{constructor(_0x541562,_0x254fa5,_0x50d54d){super(_0x541562['state'],_0x541562['options']),this['base']=_0x541562,this['pos']=_0x254fa5,this['context']=_0x50d54d;}get['node'](){return this['context']['node'];}static['create'](_0x28917d,_0x1266c6,_0x443811){return new TreeIndentContext(_0x28917d,_0x1266c6,_0x443811);}get['textAfter'](){return this['textAfterPos'](this['pos']);}get['baseIndent'](){return this['baseIndentFor'](this['node']);}['baseIndentFor'](_0x1c70b9){let _0x1dde0e=this['state']['doc']['lineAt'](_0x1c70b9['from']);for(;;){let _0x4fcb05=_0x1c70b9['resolve'](_0x1dde0e['from']);for(;_0x4fcb05['parent']&&_0x4fcb05['parent']['from']==_0x4fcb05['from'];)_0x4fcb05=_0x4fcb05['parent'];if(isParent(_0x4fcb05,_0x1c70b9))break;_0x1dde0e=this['state']['doc']['lineAt'](_0x4fcb05['from']);}return this['lineIndent'](_0x1dde0e['from']);}['continue'](){return indentFor(this['context']['next'],this['base'],this['pos']);}}function isParent(_0x9a7f7f,_0x54308b){for(let _0x227eab=_0x54308b;_0x227eab;_0x227eab=_0x227eab['parent'])if(_0x9a7f7f==_0x227eab)return!0x0;return!0x1;}function bracketedAligned(_0x5d7127){let _0x16731b=_0x5d7127['node'],_0x3733fe=_0x16731b['childAfter'](_0x16731b['from']),_0x4f64ed=_0x16731b['lastChild'];if(!_0x3733fe)return null;let _0x22044c=_0x5d7127['options']['simulateBreak'],_0x33caf4=_0x5d7127['state']['doc']['lineAt'](_0x3733fe['from']),_0x18f0ea=null==_0x22044c||_0x22044c<=_0x33caf4['from']?_0x33caf4['to']:Math['min'](_0x33caf4['to'],_0x22044c);for(let _0x54866b=_0x3733fe['to'];;){let _0x5eef14=_0x16731b['childAfter'](_0x54866b);if(!_0x5eef14||_0x5eef14==_0x4f64ed)return null;if(!_0x5eef14['type']['isSkipped']){if(_0x5eef14['from']>=_0x18f0ea)return null;let _0x1b7349=/^ */['exec'](_0x33caf4['text']['slice'](_0x3733fe['to']-_0x33caf4['from']))[0x0]['length'];return{'from':_0x3733fe['from'],'to':_0x3733fe['to']+_0x1b7349};}_0x54866b=_0x5eef14['to'];}}function delimitedIndent({closing:_0x1eca65,align:_0x39e76b=!0x0,units:_0x1949cb=0x1}){return _0x164c4d=>delimitedStrategy(_0x164c4d,_0x39e76b,_0x1949cb,_0x1eca65);}function delimitedStrategy(_0x3d152e,_0x3cbe76,_0x203eb0,_0x1f8ac3,_0xa219e3){let _0x3ca35b=_0x3d152e['textAfter'],_0x80d074=_0x3ca35b['match'](/^\s*/)[0x0]['length'],_0x339637=_0x1f8ac3&&_0x3ca35b['slice'](_0x80d074,_0x80d074+_0x1f8ac3['length'])==_0x1f8ac3||_0xa219e3==_0x3d152e['pos']+_0x80d074,_0x492bc9=_0x3cbe76?bracketedAligned(_0x3d152e):null;return _0x492bc9?_0x339637?_0x3d152e['column'](_0x492bc9['from']):_0x3d152e['column'](_0x492bc9['to']):_0x3d152e['baseIndent']+(_0x339637?0x0:_0x3d152e['unit']*_0x203eb0);}const flatIndent=_0x249ed1=>_0x249ed1['baseIndent'];function continuedIndent({except:_0x41c171,units:_0x469205=0x1}={}){return _0x4be51f=>{let _0x44ddad=_0x41c171&&_0x41c171['test'](_0x4be51f['textAfter']);return _0x4be51f['baseIndent']+(_0x44ddad?0x0:_0x469205*_0x4be51f['unit']);};}const DontIndentBeyond=0xc8;function indentOnInput(){return EditorState['transactionFilter']['of'](_0x157ccb=>{if(!_0x157ccb['docChanged']||!_0x157ccb['isUserEvent']('input.type')&&!_0x157ccb['isUserEvent']('input.complete'))return _0x157ccb;let _0x498ccc=_0x157ccb['startState']['languageDataAt']('indentOnInput',_0x157ccb['startState']['selection']['main']['head']);if(!_0x498ccc['length'])return _0x157ccb;let _0x45ebe9=_0x157ccb['newDoc'],{head:_0x1cd19b}=_0x157ccb['newSelection']['main'],_0x4e6dfe=_0x45ebe9['lineAt'](_0x1cd19b);if(_0x1cd19b>_0x4e6dfe['from']+DontIndentBeyond)return _0x157ccb;let _0x3a3b09=_0x45ebe9['sliceString'](_0x4e6dfe['from'],_0x1cd19b);if(!_0x498ccc['some'](_0x2ff5ca=>_0x2ff5ca['test'](_0x3a3b09)))return _0x157ccb;let {state:_0x150d64}=_0x157ccb,_0x5731aa=-0x1,_0xb8c610=[];for(let {head:_0x1dbe46}of _0x150d64['selection']['ranges']){let _0x16ec48=_0x150d64['doc']['lineAt'](_0x1dbe46);if(_0x16ec48['from']==_0x5731aa)continue;_0x5731aa=_0x16ec48['from'];let _0x1d28dd=getIndentation(_0x150d64,_0x16ec48['from']);if(null==_0x1d28dd)continue;let _0x22269e=/^\s*/['exec'](_0x16ec48['text'])[0x0],_0x35b1f7=indentString(_0x150d64,_0x1d28dd);_0x22269e!=_0x35b1f7&&_0xb8c610['push']({'from':_0x16ec48['from'],'to':_0x16ec48['from']+_0x22269e['length'],'insert':_0x35b1f7});}return _0xb8c610['length']?[_0x157ccb,{'changes':_0xb8c610,'sequential':!0x0}]:_0x157ccb;});}const foldService=Facet['define'](),foldNodeProp=new NodeProp();function foldInside(_0x19c769){let _0x21183a=_0x19c769['firstChild'],_0x63fe0a=_0x19c769['lastChild'];return _0x21183a&&_0x21183a['to']<_0x63fe0a['from']?{'from':_0x21183a['to'],'to':_0x63fe0a['type']['isError']?_0x19c769['to']:_0x63fe0a['from']}:null;}function syntaxFolding(_0x321127,_0xc5602b,_0x407058){let _0x395cce=syntaxTree(_0x321127);if(_0x395cce['length']<_0x407058)return null;let _0x1e6ded=null;for(let _0x14c349=_0x395cce['resolveStack'](_0x407058,0x1);_0x14c349;_0x14c349=_0x14c349['next']){let _0x3482d4=_0x14c349['node'];if(_0x3482d4['to']<=_0x407058||_0x3482d4['from']>_0x407058)continue;if(_0x1e6ded&&_0x3482d4['from']<_0xc5602b)break;let _0x4846f4=_0x3482d4['type']['prop'](foldNodeProp);if(_0x4846f4&&(_0x3482d4['to']<_0x395cce['length']-0x32||_0x395cce['length']==_0x321127['doc']['length']||!isUnfinished(_0x3482d4))){let _0x4faae6=_0x4846f4(_0x3482d4,_0x321127);_0x4faae6&&_0x4faae6['from']<=_0x407058&&_0x4faae6['from']>=_0xc5602b&&_0x4faae6['to']>_0x407058&&(_0x1e6ded=_0x4faae6);}}return _0x1e6ded;}function isUnfinished(_0x346a1a){let _0x425863=_0x346a1a['lastChild'];return _0x425863&&_0x425863['to']==_0x346a1a['to']&&_0x425863['type']['isError'];}function foldable(_0x310db1,_0x3c2781,_0x1b280a){for(let _0xe8b3ea of _0x310db1['facet'](foldService)){let _0x14e09b=_0xe8b3ea(_0x310db1,_0x3c2781,_0x1b280a);if(_0x14e09b)return _0x14e09b;}return syntaxFolding(_0x310db1,_0x3c2781,_0x1b280a);}function mapRange(_0x208dbb,_0x59a918){let _0x1a4c6a=_0x59a918['mapPos'](_0x208dbb['from'],0x1),_0x590d00=_0x59a918['mapPos'](_0x208dbb['to'],-0x1);return _0x1a4c6a>=_0x590d00?void 0x0:{'from':_0x1a4c6a,'to':_0x590d00};}const foldEffect=StateEffect['define']({'map':mapRange}),unfoldEffect=StateEffect['define']({'map':mapRange});function selectedLines(_0x1c14cd){let _0x495279=[];for(let {head:_0x3935c8}of _0x1c14cd['state']['selection']['ranges'])_0x495279['some'](_0x24d273=>_0x24d273['from']<=_0x3935c8&&_0x24d273['to']>=_0x3935c8)||_0x495279['push'](_0x1c14cd['lineBlockAt'](_0x3935c8));return _0x495279;}const foldState=StateField['define']({'create':()=>Decoration['none'],'update'(_0x33b5d5,_0x572858){_0x572858['isUserEvent']('delete')&&_0x572858['changes']['iterChangedRanges']((_0x2fd789,_0x2b1177)=>_0x33b5d5=clearTouchedFolds(_0x33b5d5,_0x2fd789,_0x2b1177)),_0x33b5d5=_0x33b5d5['map'](_0x572858['changes']);for(let _0x1bb524 of _0x572858['effects'])if(_0x1bb524['is'](foldEffect)&&!foldExists(_0x33b5d5,_0x1bb524['value']['from'],_0x1bb524['value']['to'])){let {preparePlaceholder:_0x29a0cc}=_0x572858['state']['facet'](foldConfig),_0x1bb4ed=_0x29a0cc?Decoration['replace']({'widget':new PreparedFoldWidget(_0x29a0cc(_0x572858['state'],_0x1bb524['value']))}):foldWidget;_0x33b5d5=_0x33b5d5['update']({'add':[_0x1bb4ed['range'](_0x1bb524['value']['from'],_0x1bb524['value']['to'])]});}else _0x1bb524['is'](unfoldEffect)&&(_0x33b5d5=_0x33b5d5['update']({'filter':(_0x555bea,_0x446f42)=>_0x1bb524['value']['from']!=_0x555bea||_0x1bb524['value']['to']!=_0x446f42,'filterFrom':_0x1bb524['value']['from'],'filterTo':_0x1bb524['value']['to']}));return _0x572858['selection']&&(_0x33b5d5=clearTouchedFolds(_0x33b5d5,_0x572858['selection']['main']['head'])),_0x33b5d5;},'provide':_0x22cb56=>EditorView['decorations']['from'](_0x22cb56),'toJSON'(_0x3a59d5,_0x3fe3b0){let _0x382ae7=[];return _0x3a59d5['between'](0x0,_0x3fe3b0['doc']['length'],(_0x391c2b,_0x325197)=>{_0x382ae7['push'](_0x391c2b,_0x325197);}),_0x382ae7;},'fromJSON'(_0x836d3b){if(!Array['isArray'](_0x836d3b)||_0x836d3b['length']%0x2)throw new RangeError('Invalid\x20JSON\x20for\x20fold\x20state');let _0x37b9f7=[];for(let _0x15d305=0x0;_0x15d305<_0x836d3b['length'];){let _0x82819a=_0x836d3b[_0x15d305++],_0x531243=_0x836d3b[_0x15d305++];if('number'!=typeof _0x82819a||'number'!=typeof _0x531243)throw new RangeError('Invalid\x20JSON\x20for\x20fold\x20state');_0x37b9f7['push'](foldWidget['range'](_0x82819a,_0x531243));}return Decoration['set'](_0x37b9f7,!0x0);}});function clearTouchedFolds(_0x28d6ec,_0x53c815,_0x21eaba=_0x53c815){let _0x766e33=!0x1;return _0x28d6ec['between'](_0x53c815,_0x21eaba,(_0x91639b,_0x5eb534)=>{_0x91639b<_0x21eaba&&_0x5eb534>_0x53c815&&(_0x766e33=!0x0);}),_0x766e33?_0x28d6ec['update']({'filterFrom':_0x53c815,'filterTo':_0x21eaba,'filter':(_0x660dae,_0x333378)=>_0x660dae>=_0x21eaba||_0x333378<=_0x53c815}):_0x28d6ec;}function findFold(_0x510d5c,_0x1bb144,_0x2cd400){var _0x19294e;let _0x990a61=null;return null===(_0x19294e=_0x510d5c['field'](foldState,!0x1))||void 0x0===_0x19294e||_0x19294e['between'](_0x1bb144,_0x2cd400,(_0x36a3d6,_0x5ccef9)=>{(!_0x990a61||_0x990a61['from']>_0x36a3d6)&&(_0x990a61={'from':_0x36a3d6,'to':_0x5ccef9});}),_0x990a61;}function foldExists(_0x3ceea6,_0x2f2e90,_0x246762){let _0x17f6cd=!0x1;return _0x3ceea6['between'](_0x2f2e90,_0x2f2e90,(_0xa6e9af,_0x1937eb)=>{_0xa6e9af==_0x2f2e90&&_0x1937eb==_0x246762&&(_0x17f6cd=!0x0);}),_0x17f6cd;}function maybeEnable(_0x354616,_0x3e09ff){return _0x354616['field'](foldState,!0x1)?_0x3e09ff:_0x3e09ff['concat'](StateEffect['appendConfig']['of'](codeFolding()));}const foldCode=_0x4f5dfc=>{for(let _0x723a65 of selectedLines(_0x4f5dfc)){let _0x34028a=foldable(_0x4f5dfc['state'],_0x723a65['from'],_0x723a65['to']);if(_0x34028a)return _0x4f5dfc['dispatch']({'effects':maybeEnable(_0x4f5dfc['state'],[foldEffect['of'](_0x34028a),announceFold(_0x4f5dfc,_0x34028a)])}),!0x0;}return!0x1;},unfoldCode=_0x45ef6a=>{if(!_0x45ef6a['state']['field'](foldState,!0x1))return!0x1;let _0x706861=[];for(let _0x289b8b of selectedLines(_0x45ef6a)){let _0x41e518=findFold(_0x45ef6a['state'],_0x289b8b['from'],_0x289b8b['to']);_0x41e518&&_0x706861['push'](unfoldEffect['of'](_0x41e518),announceFold(_0x45ef6a,_0x41e518,!0x1));}return _0x706861['length']&&_0x45ef6a['dispatch']({'effects':_0x706861}),_0x706861['length']>0x0;};function announceFold(_0xb31973,_0x518926,_0x48097e=!0x0){let _0x3c8765=_0xb31973['state']['doc']['lineAt'](_0x518926['from'])['number'],_0x4fa549=_0xb31973['state']['doc']['lineAt'](_0x518926['to'])['number'];return EditorView['announce']['of'](_0xb31973['state']['phrase'](_0x48097e?'Folded\x20lines':'Unfolded\x20lines')+'\x20'+_0x3c8765+'\x20'+_0xb31973['state']['phrase']('to')+'\x20'+_0x4fa549+'.');}const foldAll=_0x4892de=>{let {state:_0x120298}=_0x4892de,_0x11f881=[];for(let _0x4c78fb=0x0;_0x4c78fb<_0x120298['doc']['length'];){let _0x420367=_0x4892de['lineBlockAt'](_0x4c78fb),_0x302125=foldable(_0x120298,_0x420367['from'],_0x420367['to']);_0x302125&&_0x11f881['push'](foldEffect['of'](_0x302125)),_0x4c78fb=(_0x302125?_0x4892de['lineBlockAt'](_0x302125['to']):_0x420367)['to']+0x1;}return _0x11f881['length']&&_0x4892de['dispatch']({'effects':maybeEnable(_0x4892de['state'],_0x11f881)}),!!_0x11f881['length'];},unfoldAll=_0x5a814d=>{let _0xd4499=_0x5a814d['state']['field'](foldState,!0x1);if(!_0xd4499||!_0xd4499['size'])return!0x1;let _0xc7c37e=[];return _0xd4499['between'](0x0,_0x5a814d['state']['doc']['length'],(_0xff7319,_0x228cca)=>{_0xc7c37e['push'](unfoldEffect['of']({'from':_0xff7319,'to':_0x228cca}));}),_0x5a814d['dispatch']({'effects':_0xc7c37e}),!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':_0x27965f=>combineConfig(_0x27965f,defaultConfig)});function codeFolding(_0x26c566){return[foldState,baseTheme$1];}function widgetToDOM(_0x510937,_0x3ccaf9){let {state:_0x99ba70}=_0x510937,_0x49cca9=_0x99ba70['facet'](foldConfig),_0x5266f7=_0x1ccc43=>{let _0x1af270=_0x510937['lineBlockAt'](_0x510937['posAtDOM'](_0x1ccc43['target'])),_0x3f3830=findFold(_0x510937['state'],_0x1af270['from'],_0x1af270['to']);_0x3f3830&&_0x510937['dispatch']({'effects':unfoldEffect['of'](_0x3f3830)}),_0x1ccc43['preventDefault']();};if(_0x49cca9['placeholderDOM'])return _0x49cca9['placeholderDOM'](_0x510937,_0x5266f7,_0x3ccaf9);let _0x11e9a6=document['createElement']('span');return _0x11e9a6['textContent']=_0x49cca9['placeholderText'],_0x11e9a6['setAttribute']('aria-label',_0x99ba70['phrase']('folded\x20code')),_0x11e9a6['title']=_0x99ba70['phrase']('unfold'),_0x11e9a6['className']='cm-foldPlaceholder',_0x11e9a6['onclick']=_0x5266f7,_0x11e9a6;}const foldWidget=Decoration['replace']({'widget':new class extends WidgetType{['toDOM'](_0x2b927d){return widgetToDOM(_0x2b927d,null);}}()});class PreparedFoldWidget extends WidgetType{constructor(_0x35bbed){super(),this['value']=_0x35bbed;}['eq'](_0x4b9a70){return this['value']==_0x4b9a70['value'];}['toDOM'](_0x45c6a0){return widgetToDOM(_0x45c6a0,this['value']);}}const foldGutterDefaults={'openText':'⌄','closedText':'›','markerDOM':null,'domEventHandlers':{},'foldingChanged':()=>!0x1};class FoldMarker extends GutterMarker{constructor(_0xbca1e6,_0x1ae922){super(),this['config']=_0xbca1e6,this['open']=_0x1ae922;}['eq'](_0x56002b){return this['config']==_0x56002b['config']&&this['open']==_0x56002b['open'];}['toDOM'](_0x38777d){if(this['config']['markerDOM'])return this['config']['markerDOM'](this['open']);let _0x5b4807=document['createElement']('span');return _0x5b4807['textContent']=this['open']?this['config']['openText']:this['config']['closedText'],_0x5b4807['title']=_0x38777d['state']['phrase'](this['open']?'Fold\x20line':'Unfold\x20line'),_0x5b4807;}}function foldGutter(_0x1729d6={}){let _0x1720f2={...foldGutterDefaults,..._0x1729d6},_0x767195=new FoldMarker(_0x1720f2,!0x0),_0x1c33cb=new FoldMarker(_0x1720f2,!0x1),_0x4a8711=ViewPlugin['fromClass'](class{constructor(_0x421fda){this['from']=_0x421fda['viewport']['from'],this['markers']=this['buildMarkers'](_0x421fda);}['update'](_0x3210ff){(_0x3210ff['docChanged']||_0x3210ff['viewportChanged']||_0x3210ff['startState']['facet'](language)!=_0x3210ff['state']['facet'](language)||_0x3210ff['startState']['field'](foldState,!0x1)!=_0x3210ff['state']['field'](foldState,!0x1)||syntaxTree(_0x3210ff['startState'])!=syntaxTree(_0x3210ff['state'])||_0x1720f2['foldingChanged'](_0x3210ff))&&(this['markers']=this['buildMarkers'](_0x3210ff['view']));}['buildMarkers'](_0x11dda0){let _0xa80ab4=new RangeSetBuilder();for(let _0x2dacb3 of _0x11dda0['viewportLineBlocks']){let _0x249345=findFold(_0x11dda0['state'],_0x2dacb3['from'],_0x2dacb3['to'])?_0x1c33cb:foldable(_0x11dda0['state'],_0x2dacb3['from'],_0x2dacb3['to'])?_0x767195:null;_0x249345&&_0xa80ab4['add'](_0x2dacb3['from'],_0x2dacb3['from'],_0x249345);}return _0xa80ab4['finish']();}}),{domEventHandlers:_0x4bb8dc}=_0x1720f2;return[_0x4a8711,gutter({'class':'cm-foldGutter','markers'(_0x2464aa){var _0x1a2a82;return(null===(_0x1a2a82=_0x2464aa['plugin'](_0x4a8711))||void 0x0===_0x1a2a82?void 0x0:_0x1a2a82['markers'])||RangeSet['empty'];},'initialSpacer':()=>new FoldMarker(_0x1720f2,!0x1),'domEventHandlers':{..._0x4bb8dc,'click':(_0x271096,_0x452038,_0x53590e)=>{if(_0x4bb8dc['click']&&_0x4bb8dc['click'](_0x271096,_0x452038,_0x53590e))return!0x0;let _0x2152e0=findFold(_0x271096['state'],_0x452038['from'],_0x452038['to']);if(_0x2152e0)return _0x271096['dispatch']({'effects':unfoldEffect['of'](_0x2152e0)}),!0x0;let _0x3ba363=foldable(_0x271096['state'],_0x452038['from'],_0x452038['to']);return!!_0x3ba363&&(_0x271096['dispatch']({'effects':foldEffect['of'](_0x3ba363)}),!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(_0x4c3489,_0x3311ed){let _0xdb7572;function _0x58e7f0(_0x5eaaed){let _0x21e480=StyleModule['newName']();return(_0xdb7572||(_0xdb7572=Object['create'](null)))['.'+_0x21e480]=_0x5eaaed,_0x21e480;}this['specs']=_0x4c3489;const _0x546c7a='string'==typeof _0x3311ed['all']?_0x3311ed['all']:_0x3311ed['all']?_0x58e7f0(_0x3311ed['all']):void 0x0,_0xee20eb=_0x3311ed['scope'];this['scope']=_0xee20eb instanceof Language?_0x16db23=>_0x16db23['prop'](languageDataProp)==_0xee20eb['data']:_0xee20eb?_0x1b035f=>_0x1b035f==_0xee20eb:void 0x0,this['style']=tagHighlighter(_0x4c3489['map'](_0x17b480=>({'tag':_0x17b480['tag'],'class':_0x17b480['class']||_0x58e7f0(Object['assign']({},_0x17b480,{'tag':null}))})),{'all':_0x546c7a})['style'],this['module']=_0xdb7572?new StyleModule(_0xdb7572):null,this['themeType']=_0x3311ed['themeType'];}static['define'](_0x3b7aa0,_0x580cd9){return new HighlightStyle(_0x3b7aa0,_0x580cd9||{});}}const highlighterFacet=Facet['define'](),fallbackHighlighter=Facet['define']({'combine':_0x282525=>_0x282525['length']?[_0x282525[0x0]]:null});function getHighlighters(_0x57f97c){let _0x1351ca=_0x57f97c['facet'](highlighterFacet);return _0x1351ca['length']?_0x1351ca:_0x57f97c['facet'](fallbackHighlighter);}function syntaxHighlighting(_0x37fb77,_0x367bad){let _0x18df56,_0x4ef422=[treeHighlighter];return _0x37fb77 instanceof HighlightStyle&&(_0x37fb77['module']&&_0x4ef422['push'](EditorView['styleModule']['of'](_0x37fb77['module'])),_0x18df56=_0x37fb77['themeType']),(null==_0x367bad?void 0x0:_0x367bad['fallback'])?_0x4ef422['push'](fallbackHighlighter['of'](_0x37fb77)):_0x18df56?_0x4ef422['push'](highlighterFacet['computeN']([EditorView['darkTheme']],_0x438a1d=>_0x438a1d['facet'](EditorView['darkTheme'])==('dark'==_0x18df56)?[_0x37fb77]:[])):_0x4ef422['push'](highlighterFacet['of'](_0x37fb77)),_0x4ef422;}class TreeHighlighter{constructor(_0x23d30c){this['markCache']=Object['create'](null),this['tree']=syntaxTree(_0x23d30c['state']),this['decorations']=this['buildDeco'](_0x23d30c,getHighlighters(_0x23d30c['state'])),this['decoratedTo']=_0x23d30c['viewport']['to'];}['update'](_0x2965f2){let _0x28a731=syntaxTree(_0x2965f2['state']),_0x5459f6=getHighlighters(_0x2965f2['state']),_0x5bc02f=_0x5459f6!=getHighlighters(_0x2965f2['startState']),{viewport:_0x23ef38}=_0x2965f2['view'],_0x37f462=_0x2965f2['changes']['mapPos'](this['decoratedTo'],0x1);_0x28a731['length']<_0x23ef38['to']&&!_0x5bc02f&&_0x28a731['type']==this['tree']['type']&&_0x37f462>=_0x23ef38['to']?(this['decorations']=this['decorations']['map'](_0x2965f2['changes']),this['decoratedTo']=_0x37f462):(_0x28a731!=this['tree']||_0x2965f2['viewportChanged']||_0x5bc02f)&&(this['tree']=_0x28a731,this['decorations']=this['buildDeco'](_0x2965f2['view'],_0x5459f6),this['decoratedTo']=_0x23ef38['to']);}['buildDeco'](_0x542456,_0x4c4acb){if(!_0x4c4acb||!this['tree']['length'])return Decoration['none'];let _0x151d3b=new RangeSetBuilder();for(let {from:_0x43996e,to:_0x5e4694}of _0x542456['visibleRanges'])highlightTree(this['tree'],_0x4c4acb,(_0x173f0d,_0xfb062f,_0x1e1031)=>{_0x151d3b['add'](_0x173f0d,_0xfb062f,this['markCache'][_0x1e1031]||(this['markCache'][_0x1e1031]=Decoration['mark']({'class':_0x1e1031})));},_0x43996e,_0x5e4694);return _0x151d3b['finish']();}}const treeHighlighter=Prec['high'](ViewPlugin['fromClass'](TreeHighlighter,{'decorations':_0x547173=>_0x547173['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':_0x1a6cf0=>combineConfig(_0x1a6cf0,{'afterCursor':!0x0,'brackets':DefaultBrackets,'maxScanDistance':DefaultScanDist,'renderMatch':defaultRenderMatch})}),matchingMark=Decoration['mark']({'class':'cm-matchingBracket'}),nonmatchingMark=Decoration['mark']({'class':'cm-nonmatchingBracket'});function defaultRenderMatch(_0x5c59f9){let _0x3e4031=[],_0x63875d=_0x5c59f9['matched']?matchingMark:nonmatchingMark;return _0x3e4031['push'](_0x63875d['range'](_0x5c59f9['start']['from'],_0x5c59f9['start']['to'])),_0x5c59f9['end']&&_0x3e4031['push'](_0x63875d['range'](_0x5c59f9['end']['from'],_0x5c59f9['end']['to'])),_0x3e4031;}const bracketMatchingState=StateField['define']({'create':()=>Decoration['none'],'update'(_0x56f7d4,_0x23f143){if(!_0x23f143['docChanged']&&!_0x23f143['selection'])return _0x56f7d4;let _0x41bba5=[],_0x3765f0=_0x23f143['state']['facet'](bracketMatchingConfig);for(let _0x5d08c6 of _0x23f143['state']['selection']['ranges']){if(!_0x5d08c6['empty'])continue;let _0x30cc29=matchBrackets(_0x23f143['state'],_0x5d08c6['head'],-0x1,_0x3765f0)||_0x5d08c6['head']>0x0&&matchBrackets(_0x23f143['state'],_0x5d08c6['head']-0x1,0x1,_0x3765f0)||_0x3765f0['afterCursor']&&(matchBrackets(_0x23f143['state'],_0x5d08c6['head'],0x1,_0x3765f0)||_0x5d08c6['head']<_0x23f143['state']['doc']['length']&&matchBrackets(_0x23f143['state'],_0x5d08c6['head']+0x1,-0x1,_0x3765f0));_0x30cc29&&(_0x41bba5=_0x41bba5['concat'](_0x3765f0['renderMatch'](_0x30cc29,_0x23f143['state'])));}return Decoration['set'](_0x41bba5,!0x0);},'provide':_0x3d7b11=>EditorView['decorations']['from'](_0x3d7b11)}),bracketMatchingUnique=[bracketMatchingState,baseTheme$2];function bracketMatching(_0x4ec4ee={}){return[bracketMatchingConfig['of'](_0x4ec4ee),bracketMatchingUnique];}const bracketMatchingHandle=new NodeProp();function matchingNodes(_0x4cdee6,_0x1e07ac,_0x42012e){let _0x98f42e=_0x4cdee6['prop'](_0x1e07ac<0x0?NodeProp['openedBy']:NodeProp['closedBy']);if(_0x98f42e)return _0x98f42e;if(0x1==_0x4cdee6['name']['length']){let _0x2922ac=_0x42012e['indexOf'](_0x4cdee6['name']);if(_0x2922ac>-0x1&&_0x2922ac%0x2==(_0x1e07ac<0x0?0x1:0x0))return[_0x42012e[_0x2922ac+_0x1e07ac]];}return null;}function findHandle(_0x3eff7d){let _0x3763fa=_0x3eff7d['type']['prop'](bracketMatchingHandle);return _0x3763fa?_0x3763fa(_0x3eff7d['node']):_0x3eff7d;}function matchBrackets(_0x13d451,_0xe79b6f,_0x454cca,_0x1ac0a5={}){let _0x3743b4=_0x1ac0a5['maxScanDistance']||DefaultScanDist,_0x197c65=_0x1ac0a5['brackets']||DefaultBrackets,_0x165546=syntaxTree(_0x13d451),_0x5e4bbd=_0x165546['resolveInner'](_0xe79b6f,_0x454cca);for(let _0x4139=_0x5e4bbd;_0x4139;_0x4139=_0x4139['parent']){let _0x402e96=matchingNodes(_0x4139['type'],_0x454cca,_0x197c65);if(_0x402e96&&_0x4139['from']<_0x4139['to']){let _0x299aaf=findHandle(_0x4139);if(_0x299aaf&&(_0x454cca>0x0?_0xe79b6f>=_0x299aaf['from']&&_0xe79b6f<_0x299aaf['to']:_0xe79b6f>_0x299aaf['from']&&_0xe79b6f<=_0x299aaf['to']))return matchMarkedBrackets(_0x13d451,_0xe79b6f,_0x454cca,_0x4139,_0x299aaf,_0x402e96,_0x197c65);}}return matchPlainBrackets(_0x13d451,_0xe79b6f,_0x454cca,_0x165546,_0x5e4bbd['type'],_0x3743b4,_0x197c65);}function matchMarkedBrackets(_0x495963,_0x44d19b,_0x3955d2,_0x1cbe6f,_0x8ee02e,_0x54a4db,_0x32f985){let _0x33bb1b=_0x1cbe6f['parent'],_0x36d9cc={'from':_0x8ee02e['from'],'to':_0x8ee02e['to']},_0x2ddc3a=0x0,_0x29140a=null==_0x33bb1b?void 0x0:_0x33bb1b['cursor']();if(_0x29140a&&(_0x3955d2<0x0?_0x29140a['childBefore'](_0x1cbe6f['from']):_0x29140a['childAfter'](_0x1cbe6f['to'])))do{if(_0x3955d2<0x0?_0x29140a['to']<=_0x1cbe6f['from']:_0x29140a['from']>=_0x1cbe6f['to']){if(0x0==_0x2ddc3a&&_0x54a4db['indexOf'](_0x29140a['type']['name'])>-0x1&&_0x29140a['from']<_0x29140a['to']){let _0x4075e2=findHandle(_0x29140a);return{'start':_0x36d9cc,'end':_0x4075e2?{'from':_0x4075e2['from'],'to':_0x4075e2['to']}:void 0x0,'matched':!0x0};}if(matchingNodes(_0x29140a['type'],_0x3955d2,_0x32f985))_0x2ddc3a++;else{if(matchingNodes(_0x29140a['type'],-_0x3955d2,_0x32f985)){if(0x0==_0x2ddc3a){let _0x5b7246=findHandle(_0x29140a);return{'start':_0x36d9cc,'end':_0x5b7246&&_0x5b7246['from']<_0x5b7246['to']?{'from':_0x5b7246['from'],'to':_0x5b7246['to']}:void 0x0,'matched':!0x1};}_0x2ddc3a--;}}}}while(_0x3955d2<0x0?_0x29140a['prevSibling']():_0x29140a['nextSibling']());return{'start':_0x36d9cc,'matched':!0x1};}function matchPlainBrackets(_0x5e1a3f,_0x1d5a02,_0x5962b2,_0x427c32,_0x3f6540,_0x9005f7,_0x2baa31){let _0x3a3aae=_0x5962b2<0x0?_0x5e1a3f['sliceDoc'](_0x1d5a02-0x1,_0x1d5a02):_0x5e1a3f['sliceDoc'](_0x1d5a02,_0x1d5a02+0x1),_0x1c5f7f=_0x2baa31['indexOf'](_0x3a3aae);if(_0x1c5f7f<0x0||_0x1c5f7f%0x2==0x0!=_0x5962b2>0x0)return null;let _0x58bc32={'from':_0x5962b2<0x0?_0x1d5a02-0x1:_0x1d5a02,'to':_0x5962b2>0x0?_0x1d5a02+0x1:_0x1d5a02},_0x5236ec=_0x5e1a3f['doc']['iterRange'](_0x1d5a02,_0x5962b2>0x0?_0x5e1a3f['doc']['length']:0x0),_0x323e6d=0x0;for(let _0x517901=0x0;!_0x5236ec['next']()['done']&&_0x517901<=_0x9005f7;){let _0x46fbf3=_0x5236ec['value'];_0x5962b2<0x0&&(_0x517901+=_0x46fbf3['length']);let _0x3ca4d4=_0x1d5a02+_0x517901*_0x5962b2;for(let _0x352bc1=_0x5962b2>0x0?0x0:_0x46fbf3['length']-0x1,_0x48da28=_0x5962b2>0x0?_0x46fbf3['length']:-0x1;_0x352bc1!=_0x48da28;_0x352bc1+=_0x5962b2){let _0xc5bb8f=_0x2baa31['indexOf'](_0x46fbf3[_0x352bc1]);if(!(_0xc5bb8f<0x0||_0x427c32['resolveInner'](_0x3ca4d4+_0x352bc1,0x1)['type']!=_0x3f6540)){if(_0xc5bb8f%0x2==0x0==_0x5962b2>0x0)_0x323e6d++;else{if(0x1==_0x323e6d)return{'start':_0x58bc32,'end':{'from':_0x3ca4d4+_0x352bc1,'to':_0x3ca4d4+_0x352bc1+0x1},'matched':_0xc5bb8f>>0x1==_0x1c5f7f>>0x1};_0x323e6d--;}}}_0x5962b2>0x0&&(_0x517901+=_0x46fbf3['length']);}return _0x5236ec['done']?{'start':_0x58bc32,'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(_0x3657eb,_0x135c36){warned['indexOf'](_0x3657eb)>-0x1||(warned['push'](_0x3657eb),console['warn'](_0x135c36));}function createTokenType(_0x9d38cc,_0x361245){let _0x1b93ad=[];for(let _0x2a0ac0 of _0x361245['split']('\x20')){let _0x575367=[];for(let _0x38ecd2 of _0x2a0ac0['split']('.')){let _0x159841=_0x9d38cc[_0x38ecd2]||tags$1[_0x38ecd2];_0x159841?'function'==typeof _0x159841?_0x575367['length']?_0x575367=_0x575367['map'](_0x159841):warnForPart(_0x38ecd2,'Modifier\x20'+_0x38ecd2+'\x20used\x20at\x20start\x20of\x20tag'):_0x575367['length']?warnForPart(_0x38ecd2,'Tag\x20'+_0x38ecd2+'\x20used\x20as\x20modifier'):_0x575367=Array['isArray'](_0x159841)?_0x159841:[_0x159841]:warnForPart(_0x38ecd2,'Unknown\x20highlighting\x20tag\x20'+_0x38ecd2);}for(let _0x4eb1f8 of _0x575367)_0x1b93ad['push'](_0x4eb1f8);}if(!_0x1b93ad['length'])return 0x0;let _0x2c7d1d=_0x361245['replace'](/ /g,'_'),_0x3a6e83=_0x2c7d1d+'\x20'+_0x1b93ad['map'](t=>t['id']),_0x1dc237=byTag[_0x3a6e83];if(_0x1dc237)return _0x1dc237['id'];let _0x196c87=byTag[_0x3a6e83]=NodeType['define']({'id':typeArray['length'],'name':_0x2c7d1d,'props':[styleTags({[_0x2c7d1d]:_0x1b93ad})]});return typeArray['push'](_0x196c87),_0x196c87['id'];}Direction['RTL'],Direction['LTR'];const toggleComment=_0x52dbd5=>{let {state:_0x4dcb36}=_0x52dbd5,_0x124a19=_0x4dcb36['doc']['lineAt'](_0x4dcb36['selection']['main']['from']),_0x35add1=getConfig(_0x52dbd5['state'],_0x124a19['from']);return _0x35add1['line']?toggleLineComment(_0x52dbd5):!!_0x35add1['block']&&toggleBlockCommentByLine(_0x52dbd5);};function command(_0x585a84,_0x57653e){return({state:_0x4a2977,dispatch:_0x1c76c0})=>{if(_0x4a2977['readOnly'])return!0x1;let _0xfc630a=_0x585a84(_0x57653e,_0x4a2977);return!!_0xfc630a&&(_0x1c76c0(_0x4a2977['update'](_0xfc630a)),!0x0);};}const toggleLineComment=command(changeLineComment,0x0),toggleBlockComment=command(changeBlockComment,0x0),toggleBlockCommentByLine=command((_0x5133d4,_0x4e9c77)=>changeBlockComment(_0x5133d4,_0x4e9c77,selectedLineRanges(_0x4e9c77)),0x0);function getConfig(_0x177322,_0x329316){let _0x44ec45=_0x177322['languageDataAt']('commentTokens',_0x329316,0x1);return _0x44ec45['length']?_0x44ec45[0x0]:{};}const SearchMargin=0x32;function findBlockComment(_0xe9042d,{open:_0x328a83,close:_0x2f7e68},_0xa33e02,_0x308d0d){let _0x4e2bb5,_0x14cd44,_0x578355=_0xe9042d['sliceDoc'](_0xa33e02-SearchMargin,_0xa33e02),_0x5de59b=_0xe9042d['sliceDoc'](_0x308d0d,_0x308d0d+SearchMargin),_0x5d5934=/\s*$/['exec'](_0x578355)[0x0]['length'],_0x2abe0f=/^\s*/['exec'](_0x5de59b)[0x0]['length'],_0x376130=_0x578355['length']-_0x5d5934;if(_0x578355['slice'](_0x376130-_0x328a83['length'],_0x376130)==_0x328a83&&_0x5de59b['slice'](_0x2abe0f,_0x2abe0f+_0x2f7e68['length'])==_0x2f7e68)return{'open':{'pos':_0xa33e02-_0x5d5934,'margin':_0x5d5934&&0x1},'close':{'pos':_0x308d0d+_0x2abe0f,'margin':_0x2abe0f&&0x1}};_0x308d0d-_0xa33e02<=0x2*SearchMargin?_0x4e2bb5=_0x14cd44=_0xe9042d['sliceDoc'](_0xa33e02,_0x308d0d):(_0x4e2bb5=_0xe9042d['sliceDoc'](_0xa33e02,_0xa33e02+SearchMargin),_0x14cd44=_0xe9042d['sliceDoc'](_0x308d0d-SearchMargin,_0x308d0d));let _0xf5a40=/^\s*/['exec'](_0x4e2bb5)[0x0]['length'],_0x4b4916=/\s*$/['exec'](_0x14cd44)[0x0]['length'],_0x1a6aa0=_0x14cd44['length']-_0x4b4916-_0x2f7e68['length'];return _0x4e2bb5['slice'](_0xf5a40,_0xf5a40+_0x328a83['length'])==_0x328a83&&_0x14cd44['slice'](_0x1a6aa0,_0x1a6aa0+_0x2f7e68['length'])==_0x2f7e68?{'open':{'pos':_0xa33e02+_0xf5a40+_0x328a83['length'],'margin':/\s/['test'](_0x4e2bb5['charAt'](_0xf5a40+_0x328a83['length']))?0x1:0x0},'close':{'pos':_0x308d0d-_0x4b4916-_0x2f7e68['length'],'margin':/\s/['test'](_0x14cd44['charAt'](_0x1a6aa0-0x1))?0x1:0x0}}:null;}function selectedLineRanges(_0xfe07d3){let _0x51912b=[];for(let _0x4ecb1b of _0xfe07d3['selection']['ranges']){let _0x501b35=_0xfe07d3['doc']['lineAt'](_0x4ecb1b['from']),_0x642f5a=_0x4ecb1b['to']<=_0x501b35['to']?_0x501b35:_0xfe07d3['doc']['lineAt'](_0x4ecb1b['to']);_0x642f5a['from']>_0x501b35['from']&&_0x642f5a['from']==_0x4ecb1b['to']&&(_0x642f5a=_0x4ecb1b['to']==_0x501b35['to']+0x1?_0x501b35:_0xfe07d3['doc']['lineAt'](_0x4ecb1b['to']-0x1));let _0x448ea5=_0x51912b['length']-0x1;_0x448ea5>=0x0&&_0x51912b[_0x448ea5]['to']>_0x501b35['from']?_0x51912b[_0x448ea5]['to']=_0x642f5a['to']:_0x51912b['push']({'from':_0x501b35['from']+/^\s*/['exec'](_0x501b35['text'])[0x0]['length'],'to':_0x642f5a['to']});}return _0x51912b;}function changeBlockComment(_0x5709ed,_0x94f03,_0x462ab4=_0x94f03['selection']['ranges']){let _0x4cca26=_0x462ab4['map'](_0x32e035=>getConfig(_0x94f03,_0x32e035['from'])['block']);if(!_0x4cca26['every'](_0x3365b6=>_0x3365b6))return null;let _0x2a914a=_0x462ab4['map']((_0x434425,_0x39183d)=>findBlockComment(_0x94f03,_0x4cca26[_0x39183d],_0x434425['from'],_0x434425['to']));if(0x2!=_0x5709ed&&!_0x2a914a['every'](_0x3bd918=>_0x3bd918))return{'changes':_0x94f03['changes'](_0x462ab4['map']((_0x63a546,_0x1a5fee)=>_0x2a914a[_0x1a5fee]?[]:[{'from':_0x63a546['from'],'insert':_0x4cca26[_0x1a5fee]['open']+'\x20'},{'from':_0x63a546['to'],'insert':'\x20'+_0x4cca26[_0x1a5fee]['close']}]))};if(0x1!=_0x5709ed&&_0x2a914a['some'](_0x550b3b=>_0x550b3b)){let _0x947a5d=[];for(let _0x566af7,_0x484166=0x0;_0x484166<_0x2a914a['length'];_0x484166++)if(_0x566af7=_0x2a914a[_0x484166]){let _0x4a69a7=_0x4cca26[_0x484166],{open:_0xc0ad85,close:_0x25f144}=_0x566af7;_0x947a5d['push']({'from':_0xc0ad85['pos']-_0x4a69a7['open']['length'],'to':_0xc0ad85['pos']+_0xc0ad85['margin']},{'from':_0x25f144['pos']-_0x25f144['margin'],'to':_0x25f144['pos']+_0x4a69a7['close']['length']});}return{'changes':_0x947a5d};}return null;}function changeLineComment(_0x47a4e2,_0x562112,_0x10c985=_0x562112['selection']['ranges']){let _0x2747bf=[],_0x893265=-0x1;for(let {from:_0x1cba85,to:_0xfbd8c1}of _0x10c985){let _0xeab1f9=_0x2747bf['length'],_0x2640bc=0x3b9aca00,_0x1ea4f7=getConfig(_0x562112,_0x1cba85)['line'];if(_0x1ea4f7){for(let _0x13b1a6=_0x1cba85;_0x13b1a6<=_0xfbd8c1;){let _0xff347e=_0x562112['doc']['lineAt'](_0x13b1a6);if(_0xff347e['from']>_0x893265&&(_0x1cba85==_0xfbd8c1||_0xfbd8c1>_0xff347e['from'])){_0x893265=_0xff347e['from'];let _0x51572f=/^\s*/['exec'](_0xff347e['text'])[0x0]['length'],_0x1f2976=_0x51572f==_0xff347e['length'],_0x20d944=_0xff347e['text']['slice'](_0x51572f,_0x51572f+_0x1ea4f7['length'])==_0x1ea4f7?_0x51572f:-0x1;_0x51572f<_0xff347e['text']['length']&&_0x51572f<_0x2640bc&&(_0x2640bc=_0x51572f),_0x2747bf['push']({'line':_0xff347e,'comment':_0x20d944,'token':_0x1ea4f7,'indent':_0x51572f,'empty':_0x1f2976,'single':!0x1});}_0x13b1a6=_0xff347e['to']+0x1;}if(_0x2640bc<0x3b9aca00){for(let _0x1537a0=_0xeab1f9;_0x1537a0<_0x2747bf['length'];_0x1537a0++)_0x2747bf[_0x1537a0]['indent']<_0x2747bf[_0x1537a0]['line']['text']['length']&&(_0x2747bf[_0x1537a0]['indent']=_0x2640bc);}_0x2747bf['length']==_0xeab1f9+0x1&&(_0x2747bf[_0xeab1f9]['single']=!0x0);}}if(0x2!=_0x47a4e2&&_0x2747bf['some'](_0x208bbe=>_0x208bbe['comment']<0x0&&(!_0x208bbe['empty']||_0x208bbe['single']))){let _0x4ef1b5=[];for(let {line:_0x46a2e5,token:_0x464638,indent:_0x168fa1,empty:_0x58d13a,single:_0x40768e}of _0x2747bf)!_0x40768e&&_0x58d13a||_0x4ef1b5['push']({'from':_0x46a2e5['from']+_0x168fa1,'insert':_0x464638+'\x20'});let _0x1e73a1=_0x562112['changes'](_0x4ef1b5);return{'changes':_0x1e73a1,'selection':_0x562112['selection']['map'](_0x1e73a1,0x1)};}if(0x1!=_0x47a4e2&&_0x2747bf['some'](_0x2b522b=>_0x2b522b['comment']>=0x0)){let _0x50168e=[];for(let {line:_0x53d32c,comment:_0xc0b175,token:_0x27f933}of _0x2747bf)if(_0xc0b175>=0x0){let _0x261cb9=_0x53d32c['from']+_0xc0b175,_0x14d360=_0x261cb9+_0x27f933['length'];'\x20'==_0x53d32c['text'][_0x14d360-_0x53d32c['from']]&&_0x14d360++,_0x50168e['push']({'from':_0x261cb9,'to':_0x14d360});}return{'changes':_0x50168e};}return null;}const fromHistory=Annotation['define'](),isolateHistory=Annotation['define'](),invertedEffects=Facet['define'](),historyConfig=Facet['define']({'combine':_0x1134cc=>combineConfig(_0x1134cc,{'minDepth':0x64,'newGroupDelay':0x1f4,'joinToEvent':(_0x12bbd3,_0xca06c8)=>_0xca06c8},{'minDepth':Math['max'],'newGroupDelay':Math['min'],'joinToEvent':(_0x1e8639,_0x432986)=>(_0x594dec,_0x27e7d6)=>_0x1e8639(_0x594dec,_0x27e7d6)||_0x432986(_0x594dec,_0x27e7d6)})}),historyField_=StateField['define']({'create':()=>HistoryState['empty'],'update'(_0x4a6a09,_0xec7209){let _0x5c0c27=_0xec7209['state']['facet'](historyConfig),_0x2e09a4=_0xec7209['annotation'](fromHistory);if(_0x2e09a4){let _0x5670db=HistEvent['fromTransaction'](_0xec7209,_0x2e09a4['selection']),_0x5d76ab=_0x2e09a4['side'],_0x26475e=0x0==_0x5d76ab?_0x4a6a09['undone']:_0x4a6a09['done'];return _0x26475e=_0x5670db?updateBranch(_0x26475e,_0x26475e['length'],_0x5c0c27['minDepth'],_0x5670db):addSelection(_0x26475e,_0xec7209['startState']['selection']),new HistoryState(0x0==_0x5d76ab?_0x2e09a4['rest']:_0x26475e,0x0==_0x5d76ab?_0x26475e:_0x2e09a4['rest']);}let _0x260f03=_0xec7209['annotation'](isolateHistory);if('full'!=_0x260f03&&'before'!=_0x260f03||(_0x4a6a09=_0x4a6a09['isolate']()),!0x1===_0xec7209['annotation'](Transaction['addToHistory']))return _0xec7209['changes']['empty']?_0x4a6a09:_0x4a6a09['addMapping'](_0xec7209['changes']['desc']);let _0x58cf3e=HistEvent['fromTransaction'](_0xec7209),_0x930f1f=_0xec7209['annotation'](Transaction['time']),_0x1b8aef=_0xec7209['annotation'](Transaction['userEvent']);return _0x58cf3e?_0x4a6a09=_0x4a6a09['addChanges'](_0x58cf3e,_0x930f1f,_0x1b8aef,_0x5c0c27,_0xec7209):_0xec7209['selection']&&(_0x4a6a09=_0x4a6a09['addSelection'](_0xec7209['startState']['selection'],_0x930f1f,_0x1b8aef,_0x5c0c27['newGroupDelay'])),'full'!=_0x260f03&&'after'!=_0x260f03||(_0x4a6a09=_0x4a6a09['isolate']()),_0x4a6a09;},'toJSON':_0x51d300=>({'done':_0x51d300['done']['map'](_0x46ac17=>_0x46ac17['toJSON']()),'undone':_0x51d300['undone']['map'](_0x5dbc55=>_0x5dbc55['toJSON']())}),'fromJSON':_0x3ce393=>new HistoryState(_0x3ce393['done']['map'](HistEvent['fromJSON']),_0x3ce393['undone']['map'](HistEvent['fromJSON']))});function history(_0x2dae8c={}){return[historyField_,historyConfig['of'](_0x2dae8c),EditorView['domEventHandlers']({'beforeinput'(_0x58850b,_0x3ce537){let _0x50e6d7='historyUndo'==_0x58850b['inputType']?undo:'historyRedo'==_0x58850b['inputType']?redo:null;return!!_0x50e6d7&&(_0x58850b['preventDefault'](),_0x50e6d7(_0x3ce537));}})];}function cmd(_0x2fa46c,_0x37114e){return function({state:_0x538241,dispatch:_0x19056a}){if(!_0x37114e&&_0x538241['readOnly'])return!0x1;let _0x2a81c3=_0x538241['field'](historyField_,!0x1);if(!_0x2a81c3)return!0x1;let _0x12abdd=_0x2a81c3['pop'](_0x2fa46c,_0x538241,_0x37114e);return!!_0x12abdd&&(_0x19056a(_0x12abdd),!0x0);};}const undo=cmd(0x0,!0x1),redo=cmd(0x1,!0x1),undoSelection=cmd(0x0,!0x0),redoSelection=cmd(0x1,!0x0);class HistEvent{constructor(_0x267e21,_0x5ee4ff,_0x4f86b0,_0x3a79bd,_0x34a2af){this['changes']=_0x267e21,this['effects']=_0x5ee4ff,this['mapped']=_0x4f86b0,this['startSelection']=_0x3a79bd,this['selectionsAfter']=_0x34a2af;}['setSelAfter'](_0x59e45d){return new HistEvent(this['changes'],this['effects'],this['mapped'],this['startSelection'],_0x59e45d);}['toJSON'](){var _0x247d15,_0x1368a5,_0x3550b9;return{'changes':null===(_0x247d15=this['changes'])||void 0x0===_0x247d15?void 0x0:_0x247d15['toJSON'](),'mapped':null===(_0x1368a5=this['mapped'])||void 0x0===_0x1368a5?void 0x0:_0x1368a5['toJSON'](),'startSelection':null===(_0x3550b9=this['startSelection'])||void 0x0===_0x3550b9?void 0x0:_0x3550b9['toJSON'](),'selectionsAfter':this['selectionsAfter']['map'](_0x40426a=>_0x40426a['toJSON']())};}static['fromJSON'](_0x3c6929){return new HistEvent(_0x3c6929['changes']&&ChangeSet['fromJSON'](_0x3c6929['changes']),[],_0x3c6929['mapped']&&ChangeDesc['fromJSON'](_0x3c6929['mapped']),_0x3c6929['startSelection']&&EditorSelection['fromJSON'](_0x3c6929['startSelection']),_0x3c6929['selectionsAfter']['map'](EditorSelection['fromJSON']));}static['fromTransaction'](_0x1ea9ef,_0x5c7267){let _0x353dad=none$2;for(let _0x37ade9 of _0x1ea9ef['startState']['facet'](invertedEffects)){let _0x343ee7=_0x37ade9(_0x1ea9ef);_0x343ee7['length']&&(_0x353dad=_0x353dad['concat'](_0x343ee7));}return!_0x353dad['length']&&_0x1ea9ef['changes']['empty']?null:new HistEvent(_0x1ea9ef['changes']['invert'](_0x1ea9ef['startState']['doc']),_0x353dad,void 0x0,_0x5c7267||_0x1ea9ef['startState']['selection'],none$2);}static['selection'](_0x4f4dad){return new HistEvent(void 0x0,none$2,void 0x0,void 0x0,_0x4f4dad);}}function updateBranch(_0x459c4a,_0x4a1c2b,_0x4d72ae,_0x4332c6){let _0x282f30=_0x4a1c2b+0x1>_0x4d72ae+0x14?_0x4a1c2b-_0x4d72ae-0x1:0x0,_0x9d1549=_0x459c4a['slice'](_0x282f30,_0x4a1c2b);return _0x9d1549['push'](_0x4332c6),_0x9d1549;}function isAdjacent(_0x23a1cd,_0x3e2518){let _0x882b95=[],_0x449e4e=!0x1;return _0x23a1cd['iterChangedRanges']((_0x3ef0f5,t)=>_0x882b95['push'](_0x3ef0f5,t)),_0x3e2518['iterChangedRanges']((_0x4cb588,_0x2400ef,_0x2a9541,t)=>{for(let _0x211f4e=0x0;_0x211f4e<_0x882b95['length'];){let _0x43e15f=_0x882b95[_0x211f4e++],_0x25a93c=_0x882b95[_0x211f4e++];t>=_0x43e15f&&_0x2a9541<=_0x25a93c&&(_0x449e4e=!0x0);}}),_0x449e4e;}function eqSelectionShape(_0x27a930,_0xb6a9ac){return _0x27a930['ranges']['length']==_0xb6a9ac['ranges']['length']&&0x0===_0x27a930['ranges']['filter']((_0x5f4ce4,_0x48e80a)=>_0x5f4ce4['empty']!=_0xb6a9ac['ranges'][_0x48e80a]['empty'])['length'];}function conc(_0x16cec1,_0xd68b2c){return _0x16cec1['length']?_0xd68b2c['length']?_0x16cec1['concat'](_0xd68b2c):_0x16cec1:_0xd68b2c;}const none$2=[],MaxSelectionsPerEvent=0xc8;function addSelection(_0x1669a4,_0x342321){if(_0x1669a4['length']){let _0x4ab790=_0x1669a4[_0x1669a4['length']-0x1],_0x579977=_0x4ab790['selectionsAfter']['slice'](Math['max'](0x0,_0x4ab790['selectionsAfter']['length']-MaxSelectionsPerEvent));return _0x579977['length']&&_0x579977[_0x579977['length']-0x1]['eq'](_0x342321)?_0x1669a4:(_0x579977['push'](_0x342321),updateBranch(_0x1669a4,_0x1669a4['length']-0x1,0x3b9aca00,_0x4ab790['setSelAfter'](_0x579977)));}return[HistEvent['selection']([_0x342321])];}function popSelection(_0x389110){let _0x4b0d13=_0x389110[_0x389110['length']-0x1],_0x4f388a=_0x389110['slice']();return _0x4f388a[_0x389110['length']-0x1]=_0x4b0d13['setSelAfter'](_0x4b0d13['selectionsAfter']['slice'](0x0,_0x4b0d13['selectionsAfter']['length']-0x1)),_0x4f388a;}function addMappingToBranch(_0x2a39f9,_0x22262c){if(!_0x2a39f9['length'])return _0x2a39f9;let _0x180c4c=_0x2a39f9['length'],_0x24c770=none$2;for(;_0x180c4c;){let _0x1ccdc2=mapEvent(_0x2a39f9[_0x180c4c-0x1],_0x22262c,_0x24c770);if(_0x1ccdc2['changes']&&!_0x1ccdc2['changes']['empty']||_0x1ccdc2['effects']['length']){let _0x500d6d=_0x2a39f9['slice'](0x0,_0x180c4c);return _0x500d6d[_0x180c4c-0x1]=_0x1ccdc2,_0x500d6d;}_0x22262c=_0x1ccdc2['mapped'],_0x180c4c--,_0x24c770=_0x1ccdc2['selectionsAfter'];}return _0x24c770['length']?[HistEvent['selection'](_0x24c770)]:none$2;}function mapEvent(_0x399929,_0x14c8fd,_0x3230d9){let _0xf179bf=conc(_0x399929['selectionsAfter']['length']?_0x399929['selectionsAfter']['map'](_0x2f4f3b=>_0x2f4f3b['map'](_0x14c8fd)):none$2,_0x3230d9);if(!_0x399929['changes'])return HistEvent['selection'](_0xf179bf);let _0x216e60=_0x399929['changes']['map'](_0x14c8fd),_0x238feb=_0x14c8fd['mapDesc'](_0x399929['changes'],!0x0),_0x15581b=_0x399929['mapped']?_0x399929['mapped']['composeDesc'](_0x238feb):_0x238feb;return new HistEvent(_0x216e60,StateEffect['mapEffects'](_0x399929['effects'],_0x14c8fd),_0x15581b,_0x399929['startSelection']['map'](_0x238feb),_0xf179bf);}const joinableUserEvent=/^(input\.type|delete)($|\.)/;class HistoryState{constructor(_0x3ef89d,_0xeb073d,_0x4ba799=0x0,_0x39a83f=void 0x0){this['done']=_0x3ef89d,this['undone']=_0xeb073d,this['prevTime']=_0x4ba799,this['prevUserEvent']=_0x39a83f;}['isolate'](){return this['prevTime']?new HistoryState(this['done'],this['undone']):this;}['addChanges'](_0x52cc56,_0x3c9217,_0x3c19dc,_0x52422d,_0x2be0b3){let _0x1f3bfc=this['done'],_0x4382a8=_0x1f3bfc[_0x1f3bfc['length']-0x1];return _0x1f3bfc=_0x4382a8&&_0x4382a8['changes']&&!_0x4382a8['changes']['empty']&&_0x52cc56['changes']&&(!_0x3c19dc||joinableUserEvent['test'](_0x3c19dc))&&(!_0x4382a8['selectionsAfter']['length']&&_0x3c9217-this['prevTime']<_0x52422d['newGroupDelay']&&_0x52422d['joinToEvent'](_0x2be0b3,isAdjacent(_0x4382a8['changes'],_0x52cc56['changes']))||'input.type.compose'==_0x3c19dc)?updateBranch(_0x1f3bfc,_0x1f3bfc['length']-0x1,_0x52422d['minDepth'],new HistEvent(_0x52cc56['changes']['compose'](_0x4382a8['changes']),conc(StateEffect['mapEffects'](_0x52cc56['effects'],_0x4382a8['changes']),_0x4382a8['effects']),_0x4382a8['mapped'],_0x4382a8['startSelection'],none$2)):updateBranch(_0x1f3bfc,_0x1f3bfc['length'],_0x52422d['minDepth'],_0x52cc56),new HistoryState(_0x1f3bfc,none$2,_0x3c9217,_0x3c19dc);}['addSelection'](_0x341c4f,_0x1f54c4,_0x459212,_0x408d30){let _0x155269=this['done']['length']?this['done'][this['done']['length']-0x1]['selectionsAfter']:none$2;return _0x155269['length']>0x0&&_0x1f54c4-this['prevTime']<_0x408d30&&_0x459212==this['prevUserEvent']&&_0x459212&&/^select($|\.)/['test'](_0x459212)&&eqSelectionShape(_0x155269[_0x155269['length']-0x1],_0x341c4f)?this:new HistoryState(addSelection(this['done'],_0x341c4f),this['undone'],_0x1f54c4,_0x459212);}['addMapping'](_0x4b022c){return new HistoryState(addMappingToBranch(this['done'],_0x4b022c),addMappingToBranch(this['undone'],_0x4b022c),this['prevTime'],this['prevUserEvent']);}['pop'](_0x3f0ca3,_0x136539,_0x566616){let _0x33a234=0x0==_0x3f0ca3?this['done']:this['undone'];if(0x0==_0x33a234['length'])return null;let _0x52d2c1=_0x33a234[_0x33a234['length']-0x1],_0x32a2ca=_0x52d2c1['selectionsAfter'][0x0]||_0x136539['selection'];if(_0x566616&&_0x52d2c1['selectionsAfter']['length'])return _0x136539['update']({'selection':_0x52d2c1['selectionsAfter'][_0x52d2c1['selectionsAfter']['length']-0x1],'annotations':fromHistory['of']({'side':_0x3f0ca3,'rest':popSelection(_0x33a234),'selection':_0x32a2ca}),'userEvent':0x0==_0x3f0ca3?'select.undo':'select.redo','scrollIntoView':!0x0});if(_0x52d2c1['changes']){let _0x282200=0x1==_0x33a234['length']?none$2:_0x33a234['slice'](0x0,_0x33a234['length']-0x1);return _0x52d2c1['mapped']&&(_0x282200=addMappingToBranch(_0x282200,_0x52d2c1['mapped'])),_0x136539['update']({'changes':_0x52d2c1['changes'],'selection':_0x52d2c1['startSelection'],'effects':_0x52d2c1['effects'],'annotations':fromHistory['of']({'side':_0x3f0ca3,'rest':_0x282200,'selection':_0x32a2ca}),'filter':!0x1,'userEvent':0x0==_0x3f0ca3?'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(_0x21cd2f,_0x43161c){return EditorSelection['create'](_0x21cd2f['ranges']['map'](_0x43161c),_0x21cd2f['mainIndex']);}function setSel(_0x539635,_0x3939ed){return _0x539635['update']({'selection':_0x3939ed,'scrollIntoView':!0x0,'userEvent':'select'});}function moveSel({state:_0x17034e,dispatch:_0xf82fdb},_0x6e7e21){let _0x518af9=updateSel(_0x17034e['selection'],_0x6e7e21);return!_0x518af9['eq'](_0x17034e['selection'],!0x0)&&(_0xf82fdb(setSel(_0x17034e,_0x518af9)),!0x0);}function rangeEnd(_0x3b3336,_0x2984ed){return EditorSelection['cursor'](_0x2984ed?_0x3b3336['to']:_0x3b3336['from']);}function cursorByChar(_0x53b460,_0xfd78bd){return moveSel(_0x53b460,_0x4beb42=>_0x4beb42['empty']?_0x53b460['moveByChar'](_0x4beb42,_0xfd78bd):rangeEnd(_0x4beb42,_0xfd78bd));}function ltrAtCursor(_0x471c21){return _0x471c21['textDirectionAt'](_0x471c21['state']['selection']['main']['head'])==Direction['LTR'];}const cursorCharLeft=_0xb881cb=>cursorByChar(_0xb881cb,!ltrAtCursor(_0xb881cb)),cursorCharRight=_0x525ba0=>cursorByChar(_0x525ba0,ltrAtCursor(_0x525ba0));function cursorByGroup(_0x150e37,_0x4dd95c){return moveSel(_0x150e37,_0x4c76ce=>_0x4c76ce['empty']?_0x150e37['moveByGroup'](_0x4c76ce,_0x4dd95c):rangeEnd(_0x4c76ce,_0x4dd95c));}const cursorGroupLeft=_0x25e60d=>cursorByGroup(_0x25e60d,!ltrAtCursor(_0x25e60d)),cursorGroupRight=_0x5c6fc3=>cursorByGroup(_0x5c6fc3,ltrAtCursor(_0x5c6fc3));function interestingNode(_0x589614,_0x3a1955,_0x55c65f){if(_0x3a1955['type']['prop'](_0x55c65f))return!0x0;let _0x58d491=_0x3a1955['to']-_0x3a1955['from'];return _0x58d491&&(_0x58d491>0x2||/[^\s,.;:]/['test'](_0x589614['sliceDoc'](_0x3a1955['from'],_0x3a1955['to'])))||_0x3a1955['firstChild'];}function moveBySyntax(_0x3fb665,_0x459605,_0x366d32){let _0x28a6ec,_0x17a353,_0xdaf231=syntaxTree(_0x3fb665)['resolveInner'](_0x459605['head']),_0x50dc65=_0x366d32?NodeProp['closedBy']:NodeProp['openedBy'];for(let _0xdc08c6=_0x459605['head'];;){let _0xca5943=_0x366d32?_0xdaf231['childAfter'](_0xdc08c6):_0xdaf231['childBefore'](_0xdc08c6);if(!_0xca5943)break;interestingNode(_0x3fb665,_0xca5943,_0x50dc65)?_0xdaf231=_0xca5943:_0xdc08c6=_0x366d32?_0xca5943['to']:_0xca5943['from'];}return _0x17a353=_0xdaf231['type']['prop'](_0x50dc65)&&(_0x28a6ec=_0x366d32?matchBrackets(_0x3fb665,_0xdaf231['from'],0x1):matchBrackets(_0x3fb665,_0xdaf231['to'],-0x1))&&_0x28a6ec['matched']?_0x366d32?_0x28a6ec['end']['to']:_0x28a6ec['end']['from']:_0x366d32?_0xdaf231['to']:_0xdaf231['from'],EditorSelection['cursor'](_0x17a353,_0x366d32?-0x1:0x1);}const cursorSyntaxLeft=_0x2a7f3f=>moveSel(_0x2a7f3f,_0x516383=>moveBySyntax(_0x2a7f3f['state'],_0x516383,!ltrAtCursor(_0x2a7f3f))),cursorSyntaxRight=_0x4afa86=>moveSel(_0x4afa86,_0x3f3409=>moveBySyntax(_0x4afa86['state'],_0x3f3409,ltrAtCursor(_0x4afa86)));function cursorByLine(_0x136a02,_0x380477){return moveSel(_0x136a02,_0x4cbfa4=>{if(!_0x4cbfa4['empty'])return rangeEnd(_0x4cbfa4,_0x380477);let _0x56c416=_0x136a02['moveVertically'](_0x4cbfa4,_0x380477);return _0x56c416['head']!=_0x4cbfa4['head']?_0x56c416:_0x136a02['moveToLineBoundary'](_0x4cbfa4,_0x380477);});}const cursorLineUp=_0x55245d=>cursorByLine(_0x55245d,!0x1),cursorLineDown=_0x5eb40a=>cursorByLine(_0x5eb40a,!0x0);function pageInfo(_0x36a776){let _0x4017d8,_0x3b7cf8=_0x36a776['scrollDOM']['clientHeight']<_0x36a776['scrollDOM']['scrollHeight']-0x2,_0xa44937=0x0,_0x1f302a=0x0;if(_0x3b7cf8){for(let _0x43ecbe of _0x36a776['state']['facet'](EditorView['scrollMargins'])){let _0x1bc2d9=_0x43ecbe(_0x36a776);(null==_0x1bc2d9?void 0x0:_0x1bc2d9['top'])&&(_0xa44937=Math['max'](null==_0x1bc2d9?void 0x0:_0x1bc2d9['top'],_0xa44937)),(null==_0x1bc2d9?void 0x0:_0x1bc2d9['bottom'])&&(_0x1f302a=Math['max'](null==_0x1bc2d9?void 0x0:_0x1bc2d9['bottom'],_0x1f302a));}_0x4017d8=_0x36a776['scrollDOM']['clientHeight']-_0xa44937-_0x1f302a;}else _0x4017d8=(_0x36a776['dom']['ownerDocument']['defaultView']||window)['innerHeight'];return{'marginTop':_0xa44937,'marginBottom':_0x1f302a,'selfScroll':_0x3b7cf8,'height':Math['max'](_0x36a776['defaultLineHeight'],_0x4017d8-0x5)};}function cursorByPage(_0x2be151,_0x3aa212){let _0x20a9f8,_0x4e303e=pageInfo(_0x2be151),{state:_0x2f6d40}=_0x2be151,_0x56639b=updateSel(_0x2f6d40['selection'],_0x4d8fd5=>_0x4d8fd5['empty']?_0x2be151['moveVertically'](_0x4d8fd5,_0x3aa212,_0x4e303e['height']):rangeEnd(_0x4d8fd5,_0x3aa212));if(_0x56639b['eq'](_0x2f6d40['selection']))return!0x1;if(_0x4e303e['selfScroll']){let _0xf31808=_0x2be151['coordsAtPos'](_0x2f6d40['selection']['main']['head']),_0x3bb997=_0x2be151['scrollDOM']['getBoundingClientRect'](),_0x2db125=_0x3bb997['top']+_0x4e303e['marginTop'],_0x3e10cf=_0x3bb997['bottom']-_0x4e303e['marginBottom'];_0xf31808&&_0xf31808['top']>_0x2db125&&_0xf31808['bottom']<_0x3e10cf&&(_0x20a9f8=EditorView['scrollIntoView'](_0x56639b['main']['head'],{'y':'start','yMargin':_0xf31808['top']-_0x2db125}));}return _0x2be151['dispatch'](setSel(_0x2f6d40,_0x56639b),{'effects':_0x20a9f8}),!0x0;}const cursorPageUp=_0x25cadc=>cursorByPage(_0x25cadc,!0x1),cursorPageDown=_0x504d4a=>cursorByPage(_0x504d4a,!0x0);function moveByLineBoundary(_0x5bcca6,_0x4309e8,_0x3e1358){let _0x44fdbd=_0x5bcca6['lineBlockAt'](_0x4309e8['head']),_0xf9ca90=_0x5bcca6['moveToLineBoundary'](_0x4309e8,_0x3e1358);if(_0xf9ca90['head']==_0x4309e8['head']&&_0xf9ca90['head']!=(_0x3e1358?_0x44fdbd['to']:_0x44fdbd['from'])&&(_0xf9ca90=_0x5bcca6['moveToLineBoundary'](_0x4309e8,_0x3e1358,!0x1)),!_0x3e1358&&_0xf9ca90['head']==_0x44fdbd['from']&&_0x44fdbd['length']){let _0x36ca23=/^\s*/['exec'](_0x5bcca6['state']['sliceDoc'](_0x44fdbd['from'],Math['min'](_0x44fdbd['from']+0x64,_0x44fdbd['to'])))[0x0]['length'];_0x36ca23&&_0x4309e8['head']!=_0x44fdbd['from']+_0x36ca23&&(_0xf9ca90=EditorSelection['cursor'](_0x44fdbd['from']+_0x36ca23));}return _0xf9ca90;}const cursorLineBoundaryForward=_0x1ac500=>moveSel(_0x1ac500,_0x24dbd6=>moveByLineBoundary(_0x1ac500,_0x24dbd6,!0x0)),cursorLineBoundaryBackward=_0x33634a=>moveSel(_0x33634a,_0x5d4b06=>moveByLineBoundary(_0x33634a,_0x5d4b06,!0x1)),cursorLineBoundaryLeft=_0x260430=>moveSel(_0x260430,_0x37d58f=>moveByLineBoundary(_0x260430,_0x37d58f,!ltrAtCursor(_0x260430))),cursorLineBoundaryRight=_0x45b7e8=>moveSel(_0x45b7e8,_0x5538ab=>moveByLineBoundary(_0x45b7e8,_0x5538ab,ltrAtCursor(_0x45b7e8))),cursorLineStart=_0x19eb82=>moveSel(_0x19eb82,_0x1b1f57=>EditorSelection['cursor'](_0x19eb82['lineBlockAt'](_0x1b1f57['head'])['from'],0x1)),cursorLineEnd=_0x44ba0a=>moveSel(_0x44ba0a,_0x34ccc1=>EditorSelection['cursor'](_0x44ba0a['lineBlockAt'](_0x34ccc1['head'])['to'],-0x1));function toMatchingBracket(_0x1033bf,_0x148b0b,_0x4c01da){let _0x51f546=!0x1,_0x374da3=updateSel(_0x1033bf['selection'],_0x476a0c=>{let _0xe89e61=matchBrackets(_0x1033bf,_0x476a0c['head'],-0x1)||matchBrackets(_0x1033bf,_0x476a0c['head'],0x1)||_0x476a0c['head']>0x0&&matchBrackets(_0x1033bf,_0x476a0c['head']-0x1,0x1)||_0x476a0c['head']<_0x1033bf['doc']['length']&&matchBrackets(_0x1033bf,_0x476a0c['head']+0x1,-0x1);if(!_0xe89e61||!_0xe89e61['end'])return _0x476a0c;_0x51f546=!0x0;let _0x29e69a=_0xe89e61['start']['from']==_0x476a0c['head']?_0xe89e61['end']['to']:_0xe89e61['end']['from'];return EditorSelection['cursor'](_0x29e69a);});return!!_0x51f546&&(_0x148b0b(setSel(_0x1033bf,_0x374da3)),!0x0);}const cursorMatchingBracket=({state:_0x1c16db,dispatch:_0x47b8ca})=>toMatchingBracket(_0x1c16db,_0x47b8ca);function extendSel(_0xf29a93,_0x31dc97){let _0x2d6171=updateSel(_0xf29a93['state']['selection'],_0xd71a7e=>{let _0x19236b=_0x31dc97(_0xd71a7e);return EditorSelection['range'](_0xd71a7e['anchor'],_0x19236b['head'],_0x19236b['goalColumn'],_0x19236b['bidiLevel']||void 0x0);});return!_0x2d6171['eq'](_0xf29a93['state']['selection'])&&(_0xf29a93['dispatch'](setSel(_0xf29a93['state'],_0x2d6171)),!0x0);}function selectByChar(_0x1644af,_0x27f071){return extendSel(_0x1644af,_0x57d978=>_0x1644af['moveByChar'](_0x57d978,_0x27f071));}const selectCharLeft=_0x20c94d=>selectByChar(_0x20c94d,!ltrAtCursor(_0x20c94d)),selectCharRight=_0x1ab9ea=>selectByChar(_0x1ab9ea,ltrAtCursor(_0x1ab9ea));function selectByGroup(_0x36d437,_0x1d4112){return extendSel(_0x36d437,_0x1fa88c=>_0x36d437['moveByGroup'](_0x1fa88c,_0x1d4112));}const selectGroupLeft=_0x229e4d=>selectByGroup(_0x229e4d,!ltrAtCursor(_0x229e4d)),selectGroupRight=_0x156522=>selectByGroup(_0x156522,ltrAtCursor(_0x156522)),selectSyntaxLeft=_0x93698e=>extendSel(_0x93698e,_0x4dedf7=>moveBySyntax(_0x93698e['state'],_0x4dedf7,!ltrAtCursor(_0x93698e))),selectSyntaxRight=_0x2c7fd1=>extendSel(_0x2c7fd1,_0x5b7eb7=>moveBySyntax(_0x2c7fd1['state'],_0x5b7eb7,ltrAtCursor(_0x2c7fd1)));function selectByLine(_0x3042f2,_0x2b53ef){return extendSel(_0x3042f2,_0x9afb62=>_0x3042f2['moveVertically'](_0x9afb62,_0x2b53ef));}const selectLineUp=_0x499a45=>selectByLine(_0x499a45,!0x1),selectLineDown=_0x121630=>selectByLine(_0x121630,!0x0);function selectByPage(_0xa1a328,_0x60eb8){return extendSel(_0xa1a328,_0x54c2aa=>_0xa1a328['moveVertically'](_0x54c2aa,_0x60eb8,pageInfo(_0xa1a328)['height']));}const selectPageUp=_0x3e2c14=>selectByPage(_0x3e2c14,!0x1),selectPageDown=_0x5e150e=>selectByPage(_0x5e150e,!0x0),selectLineBoundaryForward=_0xfa120c=>extendSel(_0xfa120c,_0x5069bc=>moveByLineBoundary(_0xfa120c,_0x5069bc,!0x0)),selectLineBoundaryBackward=_0x4f565c=>extendSel(_0x4f565c,_0x1caa52=>moveByLineBoundary(_0x4f565c,_0x1caa52,!0x1)),selectLineBoundaryLeft=_0x1d4044=>extendSel(_0x1d4044,_0x4349d9=>moveByLineBoundary(_0x1d4044,_0x4349d9,!ltrAtCursor(_0x1d4044))),selectLineBoundaryRight=_0x4d41fd=>extendSel(_0x4d41fd,_0x22560d=>moveByLineBoundary(_0x4d41fd,_0x22560d,ltrAtCursor(_0x4d41fd))),selectLineStart=_0x53c95e=>extendSel(_0x53c95e,_0x479a4e=>EditorSelection['cursor'](_0x53c95e['lineBlockAt'](_0x479a4e['head'])['from'])),selectLineEnd=_0x27b922=>extendSel(_0x27b922,_0x10753a=>EditorSelection['cursor'](_0x27b922['lineBlockAt'](_0x10753a['head'])['to'])),cursorDocStart=({state:_0x489e7a,dispatch:_0x46d174})=>(_0x46d174(setSel(_0x489e7a,{'anchor':0x0})),!0x0),cursorDocEnd=({state:_0x148ee8,dispatch:_0x13700a})=>(_0x13700a(setSel(_0x148ee8,{'anchor':_0x148ee8['doc']['length']})),!0x0),selectDocStart=({state:_0x9980ea,dispatch:_0x5ddc48})=>(_0x5ddc48(setSel(_0x9980ea,{'anchor':_0x9980ea['selection']['main']['anchor'],'head':0x0})),!0x0),selectDocEnd=({state:_0x9af4b2,dispatch:_0x18e513})=>(_0x18e513(setSel(_0x9af4b2,{'anchor':_0x9af4b2['selection']['main']['anchor'],'head':_0x9af4b2['doc']['length']})),!0x0),selectAll=({state:_0x5027ed,dispatch:_0x481020})=>(_0x481020(_0x5027ed['update']({'selection':{'anchor':0x0,'head':_0x5027ed['doc']['length']},'userEvent':'select'})),!0x0),selectLine=({state:_0x2f60ab,dispatch:_0x3562b6})=>{let _0x481655=selectedLineBlocks(_0x2f60ab)['map'](({from:_0x4b2059,to:_0x33b60a})=>EditorSelection['range'](_0x4b2059,Math['min'](_0x33b60a+0x1,_0x2f60ab['doc']['length'])));return _0x3562b6(_0x2f60ab['update']({'selection':EditorSelection['create'](_0x481655),'userEvent':'select'})),!0x0;},selectParentSyntax=({state:_0xf60314,dispatch:_0x593d62})=>{let _0x41afa1=updateSel(_0xf60314['selection'],_0x420dd6=>{let _0x565cbe=syntaxTree(_0xf60314),_0x31d564=_0x565cbe['resolveStack'](_0x420dd6['from'],0x1);if(_0x420dd6['empty']){let _0x1b2dfc=_0x565cbe['resolveStack'](_0x420dd6['from'],-0x1);_0x1b2dfc['node']['from']>=_0x31d564['node']['from']&&_0x1b2dfc['node']['to']<=_0x31d564['node']['to']&&(_0x31d564=_0x1b2dfc);}for(let _0x5e0e96=_0x31d564;_0x5e0e96;_0x5e0e96=_0x5e0e96['next']){let {node:_0x46a07d}=_0x5e0e96;if((_0x46a07d['from']<_0x420dd6['from']&&_0x46a07d['to']>=_0x420dd6['to']||_0x46a07d['to']>_0x420dd6['to']&&_0x46a07d['from']<=_0x420dd6['from'])&&_0x5e0e96['next'])return EditorSelection['range'](_0x46a07d['to'],_0x46a07d['from']);}return _0x420dd6;});return!_0x41afa1['eq'](_0xf60314['selection'])&&(_0x593d62(setSel(_0xf60314,_0x41afa1)),!0x0);},simplifySelection=({state:_0x205413,dispatch:_0x5f09ed})=>{let _0x3e0004=_0x205413['selection'],_0x318a11=null;return _0x3e0004['ranges']['length']>0x1?_0x318a11=EditorSelection['create']([_0x3e0004['main']]):_0x3e0004['main']['empty']||(_0x318a11=EditorSelection['create']([EditorSelection['cursor'](_0x3e0004['main']['head'])])),!!_0x318a11&&(_0x5f09ed(setSel(_0x205413,_0x318a11)),!0x0);};function deleteBy(_0x5b9354,_0x2c6886){if(_0x5b9354['state']['readOnly'])return!0x1;let _0x4b8830='delete.selection',{state:_0xfef09c}=_0x5b9354,_0x4a8453=_0xfef09c['changeByRange'](_0x5ef4f1=>{let {from:_0x2eacf5,to:_0x52999a}=_0x5ef4f1;if(_0x2eacf5==_0x52999a){let _0x2a6a12=_0x2c6886(_0x5ef4f1);_0x2a6a12<_0x2eacf5?(_0x4b8830='delete.backward',_0x2a6a12=skipAtomic(_0x5b9354,_0x2a6a12,!0x1)):_0x2a6a12>_0x2eacf5&&(_0x4b8830='delete.forward',_0x2a6a12=skipAtomic(_0x5b9354,_0x2a6a12,!0x0)),_0x2eacf5=Math['min'](_0x2eacf5,_0x2a6a12),_0x52999a=Math['max'](_0x52999a,_0x2a6a12);}else _0x2eacf5=skipAtomic(_0x5b9354,_0x2eacf5,!0x1),_0x52999a=skipAtomic(_0x5b9354,_0x52999a,!0x0);return _0x2eacf5==_0x52999a?{'range':_0x5ef4f1}:{'changes':{'from':_0x2eacf5,'to':_0x52999a},'range':EditorSelection['cursor'](_0x2eacf5,_0x2eacf5<_0x5ef4f1['head']?-0x1:0x1)};});return!_0x4a8453['changes']['empty']&&(_0x5b9354['dispatch'](_0xfef09c['update'](_0x4a8453,{'scrollIntoView':!0x0,'userEvent':_0x4b8830,'effects':'delete.selection'==_0x4b8830?EditorView['announce']['of'](_0xfef09c['phrase']('Selection\x20deleted')):void 0x0})),!0x0);}function skipAtomic(_0x15cd6c,_0x3345b3,_0x45cd1e){if(_0x15cd6c instanceof EditorView){for(let _0x50f164 of _0x15cd6c['state']['facet'](EditorView['atomicRanges'])['map'](_0xa45111=>_0xa45111(_0x15cd6c)))_0x50f164['between'](_0x3345b3,_0x3345b3,(_0x1567ca,_0xf6fdc1)=>{_0x1567ca<_0x3345b3&&_0xf6fdc1>_0x3345b3&&(_0x3345b3=_0x45cd1e?_0xf6fdc1:_0x1567ca);});}return _0x3345b3;}const deleteByChar=(_0x10d298,_0x1589c5,_0x105667)=>deleteBy(_0x10d298,_0x45745b=>{let _0x25975b,_0x4fad34,_0x3c330d=_0x45745b['from'],{state:_0x56be50}=_0x10d298,_0x450367=_0x56be50['doc']['lineAt'](_0x3c330d);if(_0x105667&&!_0x1589c5&&_0x3c330d>_0x450367['from']&&_0x3c330d<_0x450367['from']+0xc8&&!/[^ \t]/['test'](_0x25975b=_0x450367['text']['slice'](0x0,_0x3c330d-_0x450367['from']))){if('\x09'==_0x25975b[_0x25975b['length']-0x1])return _0x3c330d-0x1;let _0x2c4345=countColumn(_0x25975b,_0x56be50['tabSize'])%getIndentUnit(_0x56be50)||getIndentUnit(_0x56be50);for(let _0x340677=0x0;_0x340677<_0x2c4345&&'\x20'==_0x25975b[_0x25975b['length']-0x1-_0x340677];_0x340677++)_0x3c330d--;_0x4fad34=_0x3c330d;}else _0x4fad34=findClusterBreak(_0x450367['text'],_0x3c330d-_0x450367['from'],_0x1589c5,_0x1589c5)+_0x450367['from'],_0x4fad34==_0x3c330d&&_0x450367['number']!=(_0x1589c5?_0x56be50['doc']['lines']:0x1)?_0x4fad34+=_0x1589c5?0x1:-0x1:!_0x1589c5&&/[\ufe00-\ufe0f]/['test'](_0x450367['text']['slice'](_0x4fad34-_0x450367['from'],_0x3c330d-_0x450367['from']))&&(_0x4fad34=findClusterBreak(_0x450367['text'],_0x4fad34-_0x450367['from'],!0x1,!0x1)+_0x450367['from']);return _0x4fad34;}),deleteCharBackward=_0x43ca71=>deleteByChar(_0x43ca71,!0x1,!0x0),deleteCharForward=_0x20492d=>deleteByChar(_0x20492d,!0x0,!0x1),deleteByGroup=(_0xcc0b44,_0xee7827)=>deleteBy(_0xcc0b44,_0x36f113=>{let _0x93fbb0=_0x36f113['head'],{state:_0x182863}=_0xcc0b44,_0xe24765=_0x182863['doc']['lineAt'](_0x93fbb0),_0x2ef60f=_0x182863['charCategorizer'](_0x93fbb0);for(let _0x245042=null;;){if(_0x93fbb0==(_0xee7827?_0xe24765['to']:_0xe24765['from'])){_0x93fbb0==_0x36f113['head']&&_0xe24765['number']!=(_0xee7827?_0x182863['doc']['lines']:0x1)&&(_0x93fbb0+=_0xee7827?0x1:-0x1);break;}let _0x553b3e=findClusterBreak(_0xe24765['text'],_0x93fbb0-_0xe24765['from'],_0xee7827)+_0xe24765['from'],_0x599488=_0xe24765['text']['slice'](Math['min'](_0x93fbb0,_0x553b3e)-_0xe24765['from'],Math['max'](_0x93fbb0,_0x553b3e)-_0xe24765['from']),_0x191005=_0x2ef60f(_0x599488);if(null!=_0x245042&&_0x191005!=_0x245042)break;'\x20'==_0x599488&&_0x93fbb0==_0x36f113['head']||(_0x245042=_0x191005),_0x93fbb0=_0x553b3e;}return _0x93fbb0;}),deleteGroupBackward=_0x4b6de8=>deleteByGroup(_0x4b6de8,!0x1),deleteGroupForward=_0x1fbcf8=>deleteByGroup(_0x1fbcf8,!0x0),deleteToLineEnd=_0x21bd04=>deleteBy(_0x21bd04,_0x4cd106=>{let _0x1ca1c1=_0x21bd04['lineBlockAt'](_0x4cd106['head'])['to'];return _0x4cd106['head']<_0x1ca1c1?_0x1ca1c1:Math['min'](_0x21bd04['state']['doc']['length'],_0x4cd106['head']+0x1);}),deleteLineBoundaryBackward=_0x445ddd=>deleteBy(_0x445ddd,_0x5b4bb3=>{let _0x56dbec=_0x445ddd['moveToLineBoundary'](_0x5b4bb3,!0x1)['head'];return _0x5b4bb3['head']>_0x56dbec?_0x56dbec:Math['max'](0x0,_0x5b4bb3['head']-0x1);}),deleteLineBoundaryForward=_0x5b4b96=>deleteBy(_0x5b4b96,_0x57d8bf=>{let _0x3a5aeb=_0x5b4b96['moveToLineBoundary'](_0x57d8bf,!0x0)['head'];return _0x57d8bf['head']<_0x3a5aeb?_0x3a5aeb:Math['min'](_0x5b4b96['state']['doc']['length'],_0x57d8bf['head']+0x1);}),splitLine=({state:_0x2011a7,dispatch:_0x54bd5e})=>{if(_0x2011a7['readOnly'])return!0x1;let _0x6dbe3b=_0x2011a7['changeByRange'](_0x3068cf=>({'changes':{'from':_0x3068cf['from'],'to':_0x3068cf['to'],'insert':Text['of'](['',''])},'range':EditorSelection['cursor'](_0x3068cf['from'])}));return _0x54bd5e(_0x2011a7['update'](_0x6dbe3b,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0;},transposeChars=({state:_0x3f1921,dispatch:_0xd74827})=>{if(_0x3f1921['readOnly'])return!0x1;let _0x5eecc1=_0x3f1921['changeByRange'](_0x12a69a=>{if(!_0x12a69a['empty']||0x0==_0x12a69a['from']||_0x12a69a['from']==_0x3f1921['doc']['length'])return{'range':_0x12a69a};let _0x9c6e1c=_0x12a69a['from'],_0xe821d8=_0x3f1921['doc']['lineAt'](_0x9c6e1c),_0x4365ef=_0x9c6e1c==_0xe821d8['from']?_0x9c6e1c-0x1:findClusterBreak(_0xe821d8['text'],_0x9c6e1c-_0xe821d8['from'],!0x1)+_0xe821d8['from'],_0x24c560=_0x9c6e1c==_0xe821d8['to']?_0x9c6e1c+0x1:findClusterBreak(_0xe821d8['text'],_0x9c6e1c-_0xe821d8['from'],!0x0)+_0xe821d8['from'];return{'changes':{'from':_0x4365ef,'to':_0x24c560,'insert':_0x3f1921['doc']['slice'](_0x9c6e1c,_0x24c560)['append'](_0x3f1921['doc']['slice'](_0x4365ef,_0x9c6e1c))},'range':EditorSelection['cursor'](_0x24c560)};});return!_0x5eecc1['changes']['empty']&&(_0xd74827(_0x3f1921['update'](_0x5eecc1,{'scrollIntoView':!0x0,'userEvent':'move.character'})),!0x0);};function selectedLineBlocks(_0x23b6c5){let _0x10c84f=[],_0x51ca7b=-0x1;for(let _0x5e09c2 of _0x23b6c5['selection']['ranges']){let _0x348a75=_0x23b6c5['doc']['lineAt'](_0x5e09c2['from']),_0x58e996=_0x23b6c5['doc']['lineAt'](_0x5e09c2['to']);if(_0x5e09c2['empty']||_0x5e09c2['to']!=_0x58e996['from']||(_0x58e996=_0x23b6c5['doc']['lineAt'](_0x5e09c2['to']-0x1)),_0x51ca7b>=_0x348a75['number']){let _0x54f897=_0x10c84f[_0x10c84f['length']-0x1];_0x54f897['to']=_0x58e996['to'],_0x54f897['ranges']['push'](_0x5e09c2);}else _0x10c84f['push']({'from':_0x348a75['from'],'to':_0x58e996['to'],'ranges':[_0x5e09c2]});_0x51ca7b=_0x58e996['number']+0x1;}return _0x10c84f;}function moveLine(_0x5a2b49,_0x19a1e7,_0x4c9915){if(_0x5a2b49['readOnly'])return!0x1;let _0x1574e0=[],_0x52c1b0=[];for(let _0x2d0607 of selectedLineBlocks(_0x5a2b49)){if(_0x4c9915?_0x2d0607['to']==_0x5a2b49['doc']['length']:0x0==_0x2d0607['from'])continue;let _0x250d8c=_0x5a2b49['doc']['lineAt'](_0x4c9915?_0x2d0607['to']+0x1:_0x2d0607['from']-0x1),_0x39b507=_0x250d8c['length']+0x1;if(_0x4c9915){_0x1574e0['push']({'from':_0x2d0607['to'],'to':_0x250d8c['to']},{'from':_0x2d0607['from'],'insert':_0x250d8c['text']+_0x5a2b49['lineBreak']});for(let _0x2f092c of _0x2d0607['ranges'])_0x52c1b0['push'](EditorSelection['range'](Math['min'](_0x5a2b49['doc']['length'],_0x2f092c['anchor']+_0x39b507),Math['min'](_0x5a2b49['doc']['length'],_0x2f092c['head']+_0x39b507)));}else{_0x1574e0['push']({'from':_0x250d8c['from'],'to':_0x2d0607['from']},{'from':_0x2d0607['to'],'insert':_0x5a2b49['lineBreak']+_0x250d8c['text']});for(let _0x3f879b of _0x2d0607['ranges'])_0x52c1b0['push'](EditorSelection['range'](_0x3f879b['anchor']-_0x39b507,_0x3f879b['head']-_0x39b507));}}return!!_0x1574e0['length']&&(_0x19a1e7(_0x5a2b49['update']({'changes':_0x1574e0,'scrollIntoView':!0x0,'selection':EditorSelection['create'](_0x52c1b0,_0x5a2b49['selection']['mainIndex']),'userEvent':'move.line'})),!0x0);}const moveLineUp=({state:_0xb5dec3,dispatch:_0x4ae52e})=>moveLine(_0xb5dec3,_0x4ae52e,!0x1),moveLineDown=({state:_0x3065dd,dispatch:_0x166509})=>moveLine(_0x3065dd,_0x166509,!0x0);function copyLine(_0x59d7eb,_0x3c2d26,_0x2c72bf){if(_0x59d7eb['readOnly'])return!0x1;let _0x470528=[];for(let _0x362358 of selectedLineBlocks(_0x59d7eb))_0x2c72bf?_0x470528['push']({'from':_0x362358['from'],'insert':_0x59d7eb['doc']['slice'](_0x362358['from'],_0x362358['to'])+_0x59d7eb['lineBreak']}):_0x470528['push']({'from':_0x362358['to'],'insert':_0x59d7eb['lineBreak']+_0x59d7eb['doc']['slice'](_0x362358['from'],_0x362358['to'])});return _0x3c2d26(_0x59d7eb['update']({'changes':_0x470528,'scrollIntoView':!0x0,'userEvent':'input.copyline'})),!0x0;}const copyLineUp=({state:_0x5e00c1,dispatch:_0x32ad75})=>copyLine(_0x5e00c1,_0x32ad75,!0x1),copyLineDown=({state:_0x60cb9d,dispatch:_0xdd19d3})=>copyLine(_0x60cb9d,_0xdd19d3,!0x0),deleteLine=_0x46dc49=>{if(_0x46dc49['state']['readOnly'])return!0x1;let {state:_0x20f6dd}=_0x46dc49,_0x82259d=_0x20f6dd['changes'](selectedLineBlocks(_0x20f6dd)['map'](({from:_0xe152c3,to:_0x131a33})=>(_0xe152c3>0x0?_0xe152c3--:_0x131a33<_0x20f6dd['doc']['length']&&_0x131a33++,{'from':_0xe152c3,'to':_0x131a33}))),_0x3c8d6b=updateSel(_0x20f6dd['selection'],_0x1a0435=>{let _0x1c2e3c;if(_0x46dc49['lineWrapping']){let _0x488163=_0x46dc49['lineBlockAt'](_0x1a0435['head']),_0x259f9d=_0x46dc49['coordsAtPos'](_0x1a0435['head'],_0x1a0435['assoc']||0x1);_0x259f9d&&(_0x1c2e3c=_0x488163['bottom']+_0x46dc49['documentTop']-_0x259f9d['bottom']+_0x46dc49['defaultLineHeight']/0x2);}return _0x46dc49['moveVertically'](_0x1a0435,!0x0,_0x1c2e3c);})['map'](_0x82259d);return _0x46dc49['dispatch']({'changes':_0x82259d,'selection':_0x3c8d6b,'scrollIntoView':!0x0,'userEvent':'delete.line'}),!0x0;};function isBetweenBrackets(_0x2ba520,_0x257b56){if(/\(\)|\[\]|\{\}/['test'](_0x2ba520['sliceDoc'](_0x257b56-0x1,_0x257b56+0x1)))return{'from':_0x257b56,'to':_0x257b56};let _0x4f285d,_0x2a0d5b=syntaxTree(_0x2ba520)['resolveInner'](_0x257b56),_0x3360a2=_0x2a0d5b['childBefore'](_0x257b56),_0x34f9d0=_0x2a0d5b['childAfter'](_0x257b56);return _0x3360a2&&_0x34f9d0&&_0x3360a2['to']<=_0x257b56&&_0x34f9d0['from']>=_0x257b56&&(_0x4f285d=_0x3360a2['type']['prop'](NodeProp['closedBy']))&&_0x4f285d['indexOf'](_0x34f9d0['name'])>-0x1&&_0x2ba520['doc']['lineAt'](_0x3360a2['to'])['from']==_0x2ba520['doc']['lineAt'](_0x34f9d0['from'])['from']&&!/\S/['test'](_0x2ba520['sliceDoc'](_0x3360a2['to'],_0x34f9d0['from']))?{'from':_0x3360a2['to'],'to':_0x34f9d0['from']}:null;}const insertNewlineAndIndent=newlineAndIndent(!0x1),insertBlankLine=newlineAndIndent(!0x0);function newlineAndIndent(_0x4f69af){return({state:_0x1620e3,dispatch:_0x44d0c5})=>{if(_0x1620e3['readOnly'])return!0x1;let _0x3a3ed3=_0x1620e3['changeByRange'](_0x122b57=>{let {from:_0x15d245,to:_0xcd92c6}=_0x122b57,_0x532529=_0x1620e3['doc']['lineAt'](_0x15d245),_0x4b7dea=!_0x4f69af&&_0x15d245==_0xcd92c6&&isBetweenBrackets(_0x1620e3,_0x15d245);_0x4f69af&&(_0x15d245=_0xcd92c6=(_0xcd92c6<=_0x532529['to']?_0x532529:_0x1620e3['doc']['lineAt'](_0xcd92c6))['to']);let _0xdea074=new IndentContext(_0x1620e3,{'simulateBreak':_0x15d245,'simulateDoubleBreak':!!_0x4b7dea}),_0x5d2bc5=getIndentation(_0xdea074,_0x15d245);for(null==_0x5d2bc5&&(_0x5d2bc5=countColumn(/^\s*/['exec'](_0x1620e3['doc']['lineAt'](_0x15d245)['text'])[0x0],_0x1620e3['tabSize']));_0xcd92c6<_0x532529['to']&&/\s/['test'](_0x532529['text'][_0xcd92c6-_0x532529['from']]);)_0xcd92c6++;_0x4b7dea?{from:_0x15d245,to:_0xcd92c6}=_0x4b7dea:_0x15d245>_0x532529['from']&&_0x15d245<_0x532529['from']+0x64&&!/\S/['test'](_0x532529['text']['slice'](0x0,_0x15d245))&&(_0x15d245=_0x532529['from']);let _0x1a0db1=['',indentString(_0x1620e3,_0x5d2bc5)];return _0x4b7dea&&_0x1a0db1['push'](indentString(_0x1620e3,_0xdea074['lineIndent'](_0x532529['from'],-0x1))),{'changes':{'from':_0x15d245,'to':_0xcd92c6,'insert':Text['of'](_0x1a0db1)},'range':EditorSelection['cursor'](_0x15d245+0x1+_0x1a0db1[0x1]['length'])};});return _0x44d0c5(_0x1620e3['update'](_0x3a3ed3,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0;};}function changeBySelectedLine(_0xf51ca2,_0x184362){let _0x93b8c7=-0x1;return _0xf51ca2['changeByRange'](_0x1955b4=>{let _0x10cc96=[];for(let _0xe89f70=_0x1955b4['from'];_0xe89f70<=_0x1955b4['to'];){let _0x38ac48=_0xf51ca2['doc']['lineAt'](_0xe89f70);_0x38ac48['number']>_0x93b8c7&&(_0x1955b4['empty']||_0x1955b4['to']>_0x38ac48['from'])&&(_0x184362(_0x38ac48,_0x10cc96,_0x1955b4),_0x93b8c7=_0x38ac48['number']),_0xe89f70=_0x38ac48['to']+0x1;}let _0x45d734=_0xf51ca2['changes'](_0x10cc96);return{'changes':_0x10cc96,'range':EditorSelection['range'](_0x45d734['mapPos'](_0x1955b4['anchor'],0x1),_0x45d734['mapPos'](_0x1955b4['head'],0x1))};});}const indentSelection=({state:_0x4907a6,dispatch:_0x1a69d6})=>{if(_0x4907a6['readOnly'])return!0x1;let _0x5530c6=Object['create'](null),_0x4f1f7f=new IndentContext(_0x4907a6,{'overrideIndentation':_0x45baaa=>{let _0xa61ad3=_0x5530c6[_0x45baaa];return null==_0xa61ad3?-0x1:_0xa61ad3;}}),_0x127c12=changeBySelectedLine(_0x4907a6,(_0x12f7eb,_0x5da2e2,_0x9f4d57)=>{let _0x3cb12e=getIndentation(_0x4f1f7f,_0x12f7eb['from']);if(null==_0x3cb12e)return;/\S/['test'](_0x12f7eb['text'])||(_0x3cb12e=0x0);let _0x401cab=/^\s*/['exec'](_0x12f7eb['text'])[0x0],_0x353d6a=indentString(_0x4907a6,_0x3cb12e);(_0x401cab!=_0x353d6a||_0x9f4d57['from']<_0x12f7eb['from']+_0x401cab['length'])&&(_0x5530c6[_0x12f7eb['from']]=_0x3cb12e,_0x5da2e2['push']({'from':_0x12f7eb['from'],'to':_0x12f7eb['from']+_0x401cab['length'],'insert':_0x353d6a}));});return _0x127c12['changes']['empty']||_0x1a69d6(_0x4907a6['update'](_0x127c12,{'userEvent':'indent'})),!0x0;},indentMore=({state:_0x34ea0a,dispatch:_0x13a4b0})=>!_0x34ea0a['readOnly']&&(_0x13a4b0(_0x34ea0a['update'](changeBySelectedLine(_0x34ea0a,(_0x250f56,_0x2ad604)=>{_0x2ad604['push']({'from':_0x250f56['from'],'insert':_0x34ea0a['facet'](indentUnit)});}),{'userEvent':'input.indent'})),!0x0),indentLess=({state:_0x2e2635,dispatch:_0x48a0ea})=>!_0x2e2635['readOnly']&&(_0x48a0ea(_0x2e2635['update'](changeBySelectedLine(_0x2e2635,(_0x5cfb34,_0x577392)=>{let _0x24c888=/^\s*/['exec'](_0x5cfb34['text'])[0x0];if(!_0x24c888)return;let _0x5395df=countColumn(_0x24c888,_0x2e2635['tabSize']),_0x25b55e=0x0,_0x1cedb9=indentString(_0x2e2635,Math['max'](0x0,_0x5395df-getIndentUnit(_0x2e2635)));for(;_0x25b55e<_0x24c888['length']&&_0x25b55e<_0x1cedb9['length']&&_0x24c888['charCodeAt'](_0x25b55e)==_0x1cedb9['charCodeAt'](_0x25b55e);)_0x25b55e++;_0x577392['push']({'from':_0x5cfb34['from']+_0x25b55e,'to':_0x5cfb34['from']+_0x24c888['length'],'insert':_0x1cedb9['slice'](_0x25b55e)});}),{'userEvent':'delete.dedent'})),!0x0),toggleTabFocusMode=_0x9b9a2c=>(_0x9b9a2c['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'](_0x75a41a=>({'mac':_0x75a41a['key'],'run':_0x75a41a['run'],'shift':_0x75a41a['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(_0x58aec3,_0x3becb0,_0x3d35e2,_0x7d04fe){this['state']=_0x58aec3,this['pos']=_0x3becb0,this['explicit']=_0x3d35e2,this['view']=_0x7d04fe,this['abortListeners']=[],this['abortOnDocChange']=!0x1;}['tokenBefore'](_0x22a0f8){let _0x3ce555=syntaxTree(this['state'])['resolveInner'](this['pos'],-0x1);for(;_0x3ce555&&_0x22a0f8['indexOf'](_0x3ce555['name'])<0x0;)_0x3ce555=_0x3ce555['parent'];return _0x3ce555?{'from':_0x3ce555['from'],'to':this['pos'],'text':this['state']['sliceDoc'](_0x3ce555['from'],this['pos']),'type':_0x3ce555['type']}:null;}['matchBefore'](_0x481724){let _0x52c150=this['state']['doc']['lineAt'](this['pos']),_0x2a906d=Math['max'](_0x52c150['from'],this['pos']-0xfa),_0x364371=_0x52c150['text']['slice'](_0x2a906d-_0x52c150['from'],this['pos']-_0x52c150['from']),_0x471647=_0x364371['search'](ensureAnchor(_0x481724,!0x1));return _0x471647<0x0?null:{'from':_0x2a906d+_0x471647,'to':this['pos'],'text':_0x364371['slice'](_0x471647)};}get['aborted'](){return null==this['abortListeners'];}['addEventListener'](_0x200159,_0xca8608,_0x5ee9d3){'abort'==_0x200159&&this['abortListeners']&&(this['abortListeners']['push'](_0xca8608),_0x5ee9d3&&_0x5ee9d3['onDocChange']&&(this['abortOnDocChange']=!0x0));}}function toSet(_0x2b9068){let _0x23ec51=Object['keys'](_0x2b9068)['join'](''),_0x18985f=/\w/['test'](_0x23ec51);return _0x18985f&&(_0x23ec51=_0x23ec51['replace'](/\w/g,'')),'['+(_0x18985f?'\x5cw':'')+_0x23ec51['replace'](/[^\w\s]/g,'\x5c$&')+']';}function prefixMatch(_0x4a2196){let _0x11a1b6=Object['create'](null),_0x5e60f5=Object['create'](null);for(let {label:_0x340f57}of _0x4a2196){_0x11a1b6[_0x340f57[0x0]]=!0x0;for(let _0x22c24b=0x1;_0x22c24b<_0x340f57['length'];_0x22c24b++)_0x5e60f5[_0x340f57[_0x22c24b]]=!0x0;}let _0x17a477=toSet(_0x11a1b6)+toSet(_0x5e60f5)+'*$';return[new RegExp('^'+_0x17a477),new RegExp(_0x17a477)];}function completeFromList(_0x954211){let _0x4ca4af=_0x954211['map'](_0x316683=>'string'==typeof _0x316683?{'label':_0x316683}:_0x316683),[_0x52a925,_0x58e882]=_0x4ca4af['every'](_0x15d2ae=>/^\w+$/['test'](_0x15d2ae['label']))?[/\w*$/,/\w+$/]:prefixMatch(_0x4ca4af);return _0x986ad5=>{let _0x29f9fd=_0x986ad5['matchBefore'](_0x58e882);return _0x29f9fd||_0x986ad5['explicit']?{'from':_0x29f9fd?_0x29f9fd['from']:_0x986ad5['pos'],'options':_0x4ca4af,'validFor':_0x52a925}:null;};}function ifNotIn(_0x45cc5b,_0x5628f6){return _0x3b6fd5=>{for(let _0x337a56=syntaxTree(_0x3b6fd5['state'])['resolveInner'](_0x3b6fd5['pos'],-0x1);_0x337a56;_0x337a56=_0x337a56['parent']){if(_0x45cc5b['indexOf'](_0x337a56['name'])>-0x1)return null;if(_0x337a56['type']['isTop'])break;}return _0x5628f6(_0x3b6fd5);};}class Option{constructor(_0x27290c,_0x4ec07d,_0x3f0ae2,_0x22b7f8){this['completion']=_0x27290c,this['source']=_0x4ec07d,this['match']=_0x3f0ae2,this['score']=_0x22b7f8;}}function cur(_0xeb7cb3){return _0xeb7cb3['selection']['main']['from'];}function ensureAnchor(_0x49ca3a,_0x504aef){var _0x3542c9;let {source:_0x4ff11d}=_0x49ca3a,_0x14d924=_0x504aef&&'^'!=_0x4ff11d[0x0],_0x55a6c2='$'!=_0x4ff11d[_0x4ff11d['length']-0x1];return _0x14d924||_0x55a6c2?new RegExp((_0x14d924?'^':'')+'(?:'+_0x4ff11d+')'+(_0x55a6c2?'$':''),null!==(_0x3542c9=_0x49ca3a['flags'])&&void 0x0!==_0x3542c9?_0x3542c9:_0x49ca3a['ignoreCase']?'i':''):_0x49ca3a;}const pickedCompletion=Annotation['define']();function insertCompletionText(_0x467c56,_0x556ab4,_0x4530f5,_0x599d68){let {main:_0x24e4b0}=_0x467c56['selection'],_0x73d8eb=_0x4530f5-_0x24e4b0['from'],_0x4e3896=_0x599d68-_0x24e4b0['from'];return{..._0x467c56['changeByRange'](_0x2ab48d=>{if(_0x2ab48d!=_0x24e4b0&&_0x4530f5!=_0x599d68&&_0x467c56['sliceDoc'](_0x2ab48d['from']+_0x73d8eb,_0x2ab48d['from']+_0x4e3896)!=_0x467c56['sliceDoc'](_0x4530f5,_0x599d68))return{'range':_0x2ab48d};let _0x2c6548=_0x467c56['toText'](_0x556ab4);return{'changes':{'from':_0x2ab48d['from']+_0x73d8eb,'to':_0x599d68==_0x24e4b0['from']?_0x2ab48d['to']:_0x2ab48d['from']+_0x4e3896,'insert':_0x2c6548},'range':EditorSelection['cursor'](_0x2ab48d['from']+_0x73d8eb+_0x2c6548['length'])};}),'scrollIntoView':!0x0,'userEvent':'input.complete'};}const SourceCache=new WeakMap();function asSource(_0x223dec){if(!Array['isArray'](_0x223dec))return _0x223dec;let _0x3c9a5c=SourceCache['get'](_0x223dec);return _0x3c9a5c||SourceCache['set'](_0x223dec,_0x3c9a5c=completeFromList(_0x223dec)),_0x3c9a5c;}const startCompletionEffect=StateEffect['define'](),closeCompletionEffect=StateEffect['define']();class FuzzyMatcher{constructor(_0x4ac6b4){this['pattern']=_0x4ac6b4,this['chars']=[],this['folded']=[],this['any']=[],this['precise']=[],this['byWord']=[],this['score']=0x0,this['matched']=[];for(let _0x119f5d=0x0;_0x119f5d<_0x4ac6b4['length'];){let _0x7245b3=codePointAt(_0x4ac6b4,_0x119f5d),_0x2c9103=codePointSize(_0x7245b3);this['chars']['push'](_0x7245b3);let _0x2b377e=_0x4ac6b4['slice'](_0x119f5d,_0x119f5d+_0x2c9103),_0xb7035f=_0x2b377e['toUpperCase']();this['folded']['push'](codePointAt(_0xb7035f==_0x2b377e?_0x2b377e['toLowerCase']():_0xb7035f,0x0)),_0x119f5d+=_0x2c9103;}this['astral']=_0x4ac6b4['length']!=this['chars']['length'];}['ret'](_0x45325c,_0x43436b){return this['score']=_0x45325c,this['matched']=_0x43436b,this;}['match'](_0x187121){if(0x0==this['pattern']['length'])return this['ret'](-0x64,[]);if(_0x187121['length']<this['pattern']['length'])return null;let {chars:_0x268aab,folded:_0x15493d,any:_0x3cad78,precise:_0x2074e9,byWord:_0x123d49}=this;if(0x1==_0x268aab['length']){let _0x5052e6=codePointAt(_0x187121,0x0),_0x1e742c=codePointSize(_0x5052e6),_0x4039ef=_0x1e742c==_0x187121['length']?0x0:-0x64;if(_0x5052e6==_0x268aab[0x0]);else{if(_0x5052e6!=_0x15493d[0x0])return null;_0x4039ef+=-0xc8;}return this['ret'](_0x4039ef,[0x0,_0x1e742c]);}let _0x29fc2c=_0x187121['indexOf'](this['pattern']);if(0x0==_0x29fc2c)return this['ret'](_0x187121['length']==this['pattern']['length']?0x0:-0x64,[0x0,this['pattern']['length']]);let _0x5f8318=_0x268aab['length'],_0xd51dad=0x0;if(_0x29fc2c<0x0){for(let _0x2fb04a=0x0,_0x579601=Math['min'](_0x187121['length'],0xc8);_0x2fb04a<_0x579601&&_0xd51dad<_0x5f8318;){let _0x28b7d5=codePointAt(_0x187121,_0x2fb04a);_0x28b7d5!=_0x268aab[_0xd51dad]&&_0x28b7d5!=_0x15493d[_0xd51dad]||(_0x3cad78[_0xd51dad++]=_0x2fb04a),_0x2fb04a+=codePointSize(_0x28b7d5);}if(_0xd51dad<_0x5f8318)return null;}let _0x4c877a=0x0,_0x41a0a4=0x0,_0x8f31ad=!0x1,_0x957a6f=0x0,_0x55e957=-0x1,_0x200cab=-0x1,_0x3d89f5=/[a-z]/['test'](_0x187121),_0x4139a6=!0x0;for(let _0x1490ea=0x0,_0x3be5c1=Math['min'](_0x187121['length'],0xc8),_0x15adfd=0x0;_0x1490ea<_0x3be5c1&&_0x41a0a4<_0x5f8318;){let _0x1aa7b8=codePointAt(_0x187121,_0x1490ea);_0x29fc2c<0x0&&(_0x4c877a<_0x5f8318&&_0x1aa7b8==_0x268aab[_0x4c877a]&&(_0x2074e9[_0x4c877a++]=_0x1490ea),_0x957a6f<_0x5f8318&&(_0x1aa7b8==_0x268aab[_0x957a6f]||_0x1aa7b8==_0x15493d[_0x957a6f]?(0x0==_0x957a6f&&(_0x55e957=_0x1490ea),_0x200cab=_0x1490ea+0x1,_0x957a6f++):_0x957a6f=0x0));let _0x362202,_0x590ab0=_0x1aa7b8<0xff?_0x1aa7b8>=0x30&&_0x1aa7b8<=0x39||_0x1aa7b8>=0x61&&_0x1aa7b8<=0x7a?0x2:_0x1aa7b8>=0x41&&_0x1aa7b8<=0x5a?0x1:0x0:(_0x362202=fromCodePoint(_0x1aa7b8))!=_0x362202['toLowerCase']()?0x1:_0x362202!=_0x362202['toUpperCase']()?0x2:0x0;(!_0x1490ea||0x1==_0x590ab0&&_0x3d89f5||0x0==_0x15adfd&&0x0!=_0x590ab0)&&(_0x268aab[_0x41a0a4]==_0x1aa7b8||_0x15493d[_0x41a0a4]==_0x1aa7b8&&(_0x8f31ad=!0x0)?_0x123d49[_0x41a0a4++]=_0x1490ea:_0x123d49['length']&&(_0x4139a6=!0x1)),_0x15adfd=_0x590ab0,_0x1490ea+=codePointSize(_0x1aa7b8);}return _0x41a0a4==_0x5f8318&&0x0==_0x123d49[0x0]&&_0x4139a6?this['result']((_0x8f31ad?-0xc8:0x0)-0x64,_0x123d49,_0x187121):_0x957a6f==_0x5f8318&&0x0==_0x55e957?this['ret'](-0xc8-_0x187121['length']+(_0x200cab==_0x187121['length']?0x0:-0x64),[0x0,_0x200cab]):_0x29fc2c>-0x1?this['ret'](-0x2bc-_0x187121['length'],[_0x29fc2c,_0x29fc2c+this['pattern']['length']]):_0x957a6f==_0x5f8318?this['ret'](-0x384-_0x187121['length'],[_0x55e957,_0x200cab]):_0x41a0a4==_0x5f8318?this['result']((_0x8f31ad?-0xc8:0x0)-0x64-0x2bc+(_0x4139a6?0x0:-0x44c),_0x123d49,_0x187121):0x2==_0x268aab['length']?null:this['result']((_0x3cad78[0x0]?-0x2bc:0x0)-0xc8-0x44c,_0x3cad78,_0x187121);}['result'](_0x4ae67d,_0x1afabb,_0x5b491f){let _0x73d5ea=[],_0x3e3567=0x0;for(let _0x3fad50 of _0x1afabb){let _0x5de4de=_0x3fad50+(this['astral']?codePointSize(codePointAt(_0x5b491f,_0x3fad50)):0x1);_0x3e3567&&_0x73d5ea[_0x3e3567-0x1]==_0x3fad50?_0x73d5ea[_0x3e3567-0x1]=_0x5de4de:(_0x73d5ea[_0x3e3567++]=_0x3fad50,_0x73d5ea[_0x3e3567++]=_0x5de4de);}return this['ret'](_0x4ae67d-_0x5b491f['length'],_0x73d5ea);}}class StrictMatcher{constructor(_0x4d3a4b){this['pattern']=_0x4d3a4b,this['matched']=[],this['score']=0x0,this['folded']=_0x4d3a4b['toLowerCase']();}['match'](_0x16bc9e){if(_0x16bc9e['length']<this['pattern']['length'])return null;let _0x24f2ac=_0x16bc9e['slice'](0x0,this['pattern']['length']),_0xbc5a85=_0x24f2ac==this['pattern']?0x0:_0x24f2ac['toLowerCase']()==this['folded']?-0xc8:null;return null==_0xbc5a85?null:(this['matched']=[0x0,_0x24f2ac['length']],this['score']=_0xbc5a85+(_0x16bc9e['length']==this['pattern']['length']?0x0:-0x64),this);}}const completionConfig=Facet['define']({'combine':_0x54df7d=>combineConfig(_0x54df7d,{'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':(_0x4ada9c,_0x4c34fe)=>_0x4ada9c['label']['localeCompare'](_0x4c34fe['label']),'interactionDelay':0x4b,'updateSyncTime':0x64},{'defaultKeymap':(_0xf79e60,_0x427866)=>_0xf79e60&&_0x427866,'closeOnBlur':(_0x241d32,_0x2eba38)=>_0x241d32&&_0x2eba38,'icons':(_0x3d0aca,_0x5ed79c)=>_0x3d0aca&&_0x5ed79c,'tooltipClass':(_0x2ef652,_0x475619)=>_0x29a0ed=>joinClass(_0x2ef652(_0x29a0ed),_0x475619(_0x29a0ed)),'optionClass':(_0x3bd5e5,_0x45b33e)=>_0x1191e9=>joinClass(_0x3bd5e5(_0x1191e9),_0x45b33e(_0x1191e9)),'addToOptions':(_0x11ac47,_0x3f37e8)=>_0x11ac47['concat'](_0x3f37e8),'filterStrict':(_0x1dd119,_0x27c0f8)=>_0x1dd119||_0x27c0f8})});function joinClass(_0x49bd1d,_0x305306){return _0x49bd1d?_0x305306?_0x49bd1d+'\x20'+_0x305306:_0x49bd1d:_0x305306;}function defaultPositionInfo(_0x5af640,_0x422890,_0x31fd83,_0x524e42,_0x18eb53,_0x4b2cd9){let _0x364e55,_0x44cff9,_0x542fac=_0x5af640['textDirection']==Direction['RTL'],_0x5bfbd5=_0x542fac,_0x3b4bf8=!0x1,_0x3ed6aa='top',_0x1611e8=_0x422890['left']-_0x18eb53['left'],_0x2a7630=_0x18eb53['right']-_0x422890['right'],_0x258ac8=_0x524e42['right']-_0x524e42['left'],_0x551d02=_0x524e42['bottom']-_0x524e42['top'];if(_0x5bfbd5&&_0x1611e8<Math['min'](_0x258ac8,_0x2a7630)?_0x5bfbd5=!0x1:!_0x5bfbd5&&_0x2a7630<Math['min'](_0x258ac8,_0x1611e8)&&(_0x5bfbd5=!0x0),_0x258ac8<=(_0x5bfbd5?_0x1611e8:_0x2a7630))_0x364e55=Math['max'](_0x18eb53['top'],Math['min'](_0x31fd83['top'],_0x18eb53['bottom']-_0x551d02))-_0x422890['top'],_0x44cff9=Math['min'](0x190,_0x5bfbd5?_0x1611e8:_0x2a7630);else{_0x3b4bf8=!0x0,_0x44cff9=Math['min'](0x190,(_0x542fac?_0x422890['right']:_0x18eb53['right']-_0x422890['left'])-0x1e);let _0x917eb6=_0x18eb53['bottom']-_0x422890['bottom'];_0x917eb6>=_0x551d02||_0x917eb6>_0x422890['top']?_0x364e55=_0x31fd83['bottom']-_0x422890['top']:(_0x3ed6aa='bottom',_0x364e55=_0x422890['bottom']-_0x31fd83['top']);}return{'style':_0x3ed6aa+':\x20'+_0x364e55/((_0x422890['bottom']-_0x422890['top'])/_0x4b2cd9['offsetHeight'])+'px;\x20max-width:\x20'+_0x44cff9/((_0x422890['right']-_0x422890['left'])/_0x4b2cd9['offsetWidth'])+'px','class':'cm-completionInfo-'+(_0x3b4bf8?_0x542fac?'left-narrow':'right-narrow':_0x5bfbd5?'left':'right')};}function optionContent(_0x4e2c8c){let _0x3489b9=_0x4e2c8c['addToOptions']['slice']();return _0x4e2c8c['icons']&&_0x3489b9['push']({'render'(_0xc36fa5){let _0x2ebc13=document['createElement']('div');return _0x2ebc13['classList']['add']('cm-completionIcon'),_0xc36fa5['type']&&_0x2ebc13['classList']['add'](..._0xc36fa5['type']['split'](/\s+/g)['map'](_0x5de387=>'cm-completionIcon-'+_0x5de387)),_0x2ebc13['setAttribute']('aria-hidden','true'),_0x2ebc13;},'position':0x14}),_0x3489b9['push']({'render'(_0x5dde62,_0x44b637,_0x19a716,_0x11c3ae){let _0x4b701e=document['createElement']('span');_0x4b701e['className']='cm-completionLabel';let _0x8ac8c9=_0x5dde62['displayLabel']||_0x5dde62['label'],_0x1068a3=0x0;for(let _0x2a47ac=0x0;_0x2a47ac<_0x11c3ae['length'];){let _0x184164=_0x11c3ae[_0x2a47ac++],_0x591a19=_0x11c3ae[_0x2a47ac++];_0x184164>_0x1068a3&&_0x4b701e['appendChild'](document['createTextNode'](_0x8ac8c9['slice'](_0x1068a3,_0x184164)));let _0x1e65ac=_0x4b701e['appendChild'](document['createElement']('span'));_0x1e65ac['appendChild'](document['createTextNode'](_0x8ac8c9['slice'](_0x184164,_0x591a19))),_0x1e65ac['className']='cm-completionMatchedText',_0x1068a3=_0x591a19;}return _0x1068a3<_0x8ac8c9['length']&&_0x4b701e['appendChild'](document['createTextNode'](_0x8ac8c9['slice'](_0x1068a3))),_0x4b701e;},'position':0x32},{'render'(_0xc5e586){if(!_0xc5e586['detail'])return null;let _0x3b0c68=document['createElement']('span');return _0x3b0c68['className']='cm-completionDetail',_0x3b0c68['textContent']=_0xc5e586['detail'],_0x3b0c68;},'position':0x50}),_0x3489b9['sort']((_0x1ece1a,_0x11f3fd)=>_0x1ece1a['position']-_0x11f3fd['position'])['map'](_0x2396f6=>_0x2396f6['render']);}function rangeAroundSelected(_0x45489f,_0x23ec8b,_0x1aee62){if(_0x45489f<=_0x1aee62)return{'from':0x0,'to':_0x45489f};if(_0x23ec8b<0x0&&(_0x23ec8b=0x0),_0x23ec8b<=_0x45489f>>0x1){let _0x2de72f=Math['floor'](_0x23ec8b/_0x1aee62);return{'from':_0x2de72f*_0x1aee62,'to':(_0x2de72f+0x1)*_0x1aee62};}let _0x7e7f9e=Math['floor']((_0x45489f-_0x23ec8b)/_0x1aee62);return{'from':_0x45489f-(_0x7e7f9e+0x1)*_0x1aee62,'to':_0x45489f-_0x7e7f9e*_0x1aee62};}class CompletionTooltip{constructor(_0x545ba8,_0x315926,_0x4da704){this['view']=_0x545ba8,this['stateField']=_0x315926,this['applyCompletion']=_0x4da704,this['info']=null,this['infoDestroy']=null,this['placeInfoReq']={'read':()=>this['measureInfo'](),'write':_0x5e6a2a=>this['placeInfo'](_0x5e6a2a),'key':this},this['space']=null,this['currentClass']='';let _0x17962e=_0x545ba8['state']['field'](_0x315926),{options:_0x3c0acc,selected:_0x287cc0}=_0x17962e['open'],_0x38a9dc=_0x545ba8['state']['facet'](completionConfig);this['optionContent']=optionContent(_0x38a9dc),this['optionClass']=_0x38a9dc['optionClass'],this['tooltipClass']=_0x38a9dc['tooltipClass'],this['range']=rangeAroundSelected(_0x3c0acc['length'],_0x287cc0,_0x38a9dc['maxRenderedOptions']),this['dom']=document['createElement']('div'),this['dom']['className']='cm-tooltip-autocomplete',this['updateTooltipClass'](_0x545ba8['state']),this['dom']['addEventListener']('mousedown',_0x15f639=>{let {options:_0x5240b0}=_0x545ba8['state']['field'](_0x315926)['open'];for(let _0x311d27,_0x151bca=_0x15f639['target'];_0x151bca&&_0x151bca!=this['dom'];_0x151bca=_0x151bca['parentNode'])if('LI'==_0x151bca['nodeName']&&(_0x311d27=/-(\d+)$/['exec'](_0x151bca['id']))&&+_0x311d27[0x1]<_0x5240b0['length'])return this['applyCompletion'](_0x545ba8,_0x5240b0[+_0x311d27[0x1]]),void _0x15f639['preventDefault']();}),this['dom']['addEventListener']('focusout',_0x3fab72=>{let _0xf1d805=_0x545ba8['state']['field'](this['stateField'],!0x1);_0xf1d805&&_0xf1d805['tooltip']&&_0x545ba8['state']['facet'](completionConfig)['closeOnBlur']&&_0x3fab72['relatedTarget']!=_0x545ba8['contentDOM']&&_0x545ba8['dispatch']({'effects':closeCompletionEffect['of'](null)});}),this['showOptions'](_0x3c0acc,_0x17962e['id']);}['mount'](){this['updateSel']();}['showOptions'](_0x34bea3,_0x480ec7){this['list']&&this['list']['remove'](),this['list']=this['dom']['appendChild'](this['createListBox'](_0x34bea3,_0x480ec7,this['range'])),this['list']['addEventListener']('scroll',()=>{this['info']&&this['view']['requestMeasure'](this['placeInfoReq']);});}['update'](_0x2c0df9){var _0x3f6204;let _0x3a459d=_0x2c0df9['state']['field'](this['stateField']),_0x3d1696=_0x2c0df9['startState']['field'](this['stateField']);if(this['updateTooltipClass'](_0x2c0df9['state']),_0x3a459d!=_0x3d1696){let {options:_0x138bdb,selected:_0x4d05cb,disabled:_0x1ab927}=_0x3a459d['open'];_0x3d1696['open']&&_0x3d1696['open']['options']==_0x138bdb||(this['range']=rangeAroundSelected(_0x138bdb['length'],_0x4d05cb,_0x2c0df9['state']['facet'](completionConfig)['maxRenderedOptions']),this['showOptions'](_0x138bdb,_0x3a459d['id'])),this['updateSel'](),_0x1ab927!=(null===(_0x3f6204=_0x3d1696['open'])||void 0x0===_0x3f6204?void 0x0:_0x3f6204['disabled'])&&this['dom']['classList']['toggle']('cm-tooltip-autocomplete-disabled',!!_0x1ab927);}}['updateTooltipClass'](_0x3cf547){let _0x518b1b=this['tooltipClass'](_0x3cf547);if(_0x518b1b!=this['currentClass']){for(let _0x1c38c8 of this['currentClass']['split']('\x20'))_0x1c38c8&&this['dom']['classList']['remove'](_0x1c38c8);for(let _0x12ec86 of _0x518b1b['split']('\x20'))_0x12ec86&&this['dom']['classList']['add'](_0x12ec86);this['currentClass']=_0x518b1b;}}['positioned'](_0x4bccf6){this['space']=_0x4bccf6,this['info']&&this['view']['requestMeasure'](this['placeInfoReq']);}['updateSel'](){let _0xbffc6a=this['view']['state']['field'](this['stateField']),_0x9d958e=_0xbffc6a['open'];(_0x9d958e['selected']>-0x1&&_0x9d958e['selected']<this['range']['from']||_0x9d958e['selected']>=this['range']['to'])&&(this['range']=rangeAroundSelected(_0x9d958e['options']['length'],_0x9d958e['selected'],this['view']['state']['facet'](completionConfig)['maxRenderedOptions']),this['showOptions'](_0x9d958e['options'],_0xbffc6a['id']));let _0x56a583=this['updateSelectedOption'](_0x9d958e['selected']);if(_0x56a583){this['destroyInfo']();let {completion:_0xc1a6f4}=_0x9d958e['options'][_0x9d958e['selected']],{info:_0x1b4630}=_0xc1a6f4;if(!_0x1b4630)return;let _0x1c5deb='string'==typeof _0x1b4630?document['createTextNode'](_0x1b4630):_0x1b4630(_0xc1a6f4);if(!_0x1c5deb)return;'then'in _0x1c5deb?_0x1c5deb['then'](_0x1af9fc=>{_0x1af9fc&&this['view']['state']['field'](this['stateField'],!0x1)==_0xbffc6a&&this['addInfoPane'](_0x1af9fc,_0xc1a6f4);})['catch'](_0x240f25=>logException(this['view']['state'],_0x240f25,'completion\x20info')):(this['addInfoPane'](_0x1c5deb,_0xc1a6f4),_0x56a583['setAttribute']('aria-describedby',this['info']['id']));}}['addInfoPane'](_0x3974cc,_0x2dea70){this['destroyInfo']();let _0x38bfa7=this['info']=document['createElement']('div');if(_0x38bfa7['className']='cm-tooltip\x20cm-completionInfo',_0x38bfa7['id']='cm-completionInfo-'+Math['floor'](0xffff*Math['random']())['toString'](0x10),null!=_0x3974cc['nodeType'])_0x38bfa7['appendChild'](_0x3974cc),this['infoDestroy']=null;else{let {dom:_0x53ce1a,destroy:_0x76d0ca}=_0x3974cc;_0x38bfa7['appendChild'](_0x53ce1a),this['infoDestroy']=_0x76d0ca||null;}this['dom']['appendChild'](_0x38bfa7),this['view']['requestMeasure'](this['placeInfoReq']);}['updateSelectedOption'](_0x4d7f6c){let _0x1b2eae=null;for(let _0x179efb=this['list']['firstChild'],_0x565add=this['range']['from'];_0x179efb;_0x179efb=_0x179efb['nextSibling'],_0x565add++)'LI'==_0x179efb['nodeName']&&_0x179efb['id']?_0x565add==_0x4d7f6c?_0x179efb['hasAttribute']('aria-selected')||(_0x179efb['setAttribute']('aria-selected','true'),_0x1b2eae=_0x179efb):_0x179efb['hasAttribute']('aria-selected')&&(_0x179efb['removeAttribute']('aria-selected'),_0x179efb['removeAttribute']('aria-describedby')):_0x565add--;return _0x1b2eae&&scrollIntoView(this['list'],_0x1b2eae),_0x1b2eae;}['measureInfo'](){let _0x40a11a=this['dom']['querySelector']('[aria-selected]');if(!_0x40a11a||!this['info'])return null;let _0xfb424e=this['dom']['getBoundingClientRect'](),_0x415ed1=this['info']['getBoundingClientRect'](),_0x34e803=_0x40a11a['getBoundingClientRect'](),_0x4ac725=this['space'];if(!_0x4ac725){let _0x57eabb=this['dom']['ownerDocument']['documentElement'];_0x4ac725={'left':0x0,'top':0x0,'right':_0x57eabb['clientWidth'],'bottom':_0x57eabb['clientHeight']};}return _0x34e803['top']>Math['min'](_0x4ac725['bottom'],_0xfb424e['bottom'])-0xa||_0x34e803['bottom']<Math['max'](_0x4ac725['top'],_0xfb424e['top'])+0xa?null:this['view']['state']['facet'](completionConfig)['positionInfo'](this['view'],_0xfb424e,_0x34e803,_0x415ed1,_0x4ac725,this['dom']);}['placeInfo'](_0x46048f){this['info']&&(_0x46048f?(_0x46048f['style']&&(this['info']['style']['cssText']=_0x46048f['style']),this['info']['className']='cm-tooltip\x20cm-completionInfo\x20'+(_0x46048f['class']||'')):this['info']['style']['cssText']='top:\x20-1e6px');}['createListBox'](_0x8966dc,_0x58a98d,_0x18d185){const _0x13fbb1=document['createElement']('ul');_0x13fbb1['id']=_0x58a98d,_0x13fbb1['setAttribute']('role','listbox'),_0x13fbb1['setAttribute']('aria-expanded','true'),_0x13fbb1['setAttribute']('aria-label',this['view']['state']['phrase']('Completions')),_0x13fbb1['addEventListener']('mousedown',_0x396733=>{_0x396733['target']==_0x13fbb1&&_0x396733['preventDefault']();});let _0x29702b=null;for(let _0x5b8e2e=_0x18d185['from'];_0x5b8e2e<_0x18d185['to'];_0x5b8e2e++){let {completion:_0x45faa6,match:_0x42b246}=_0x8966dc[_0x5b8e2e],{section:_0x1e5776}=_0x45faa6;if(_0x1e5776){let _0x5bfe88='string'==typeof _0x1e5776?_0x1e5776:_0x1e5776['name'];if(_0x5bfe88!=_0x29702b&&(_0x5b8e2e>_0x18d185['from']||0x0==_0x18d185['from'])){if(_0x29702b=_0x5bfe88,'string'!=typeof _0x1e5776&&_0x1e5776['header'])_0x13fbb1['appendChild'](_0x1e5776['header'](_0x1e5776));else _0x13fbb1['appendChild'](document['createElement']('completion-section'))['textContent']=_0x5bfe88;}}const _0x299f2a=_0x13fbb1['appendChild'](document['createElement']('li'));_0x299f2a['id']=_0x58a98d+'-'+_0x5b8e2e,_0x299f2a['setAttribute']('role','option');let _0x24f04a=this['optionClass'](_0x45faa6);_0x24f04a&&(_0x299f2a['className']=_0x24f04a);for(let _0x2d33d4 of this['optionContent']){let _0x59f66f=_0x2d33d4(_0x45faa6,this['view']['state'],this['view'],_0x42b246);_0x59f66f&&_0x299f2a['appendChild'](_0x59f66f);}}return _0x18d185['from']&&_0x13fbb1['classList']['add']('cm-completionListIncompleteTop'),_0x18d185['to']<_0x8966dc['length']&&_0x13fbb1['classList']['add']('cm-completionListIncompleteBottom'),_0x13fbb1;}['destroyInfo'](){this['info']&&(this['infoDestroy']&&this['infoDestroy'](),this['info']['remove'](),this['info']=null);}['destroy'](){this['destroyInfo']();}}function completionTooltip(_0x5e5883,_0x56185b){return _0x38fc34=>new CompletionTooltip(_0x38fc34,_0x5e5883,_0x56185b);}function scrollIntoView(_0x2052f2,_0x367898){let _0x58135d=_0x2052f2['getBoundingClientRect'](),_0x2a4e43=_0x367898['getBoundingClientRect'](),_0x1629a3=_0x58135d['height']/_0x2052f2['offsetHeight'];_0x2a4e43['top']<_0x58135d['top']?_0x2052f2['scrollTop']-=(_0x58135d['top']-_0x2a4e43['top'])/_0x1629a3:_0x2a4e43['bottom']>_0x58135d['bottom']&&(_0x2052f2['scrollTop']+=(_0x2a4e43['bottom']-_0x58135d['bottom'])/_0x1629a3);}function score(_0x2cca3d){return 0x64*(_0x2cca3d['boost']||0x0)+(_0x2cca3d['apply']?0xa:0x0)+(_0x2cca3d['info']?0x5:0x0)+(_0x2cca3d['type']?0x1:0x0);}function sortOptions(_0x1537a7,_0xfe8317){let _0x1ddcac=[],_0x965409=null,_0x54406b=null,_0x2df7b5=_0x5d6816=>{_0x1ddcac['push'](_0x5d6816);let {section:_0x35e2ca}=_0x5d6816['completion'];if(_0x35e2ca){_0x965409||(_0x965409=[]);let _0x180bf5='string'==typeof _0x35e2ca?_0x35e2ca:_0x35e2ca['name'];_0x965409['some'](_0x46a299=>_0x46a299['name']==_0x180bf5)||_0x965409['push']('string'==typeof _0x35e2ca?{'name':_0x180bf5}:_0x35e2ca);}},_0x42b09f=_0xfe8317['facet'](completionConfig);for(let _0xaf8b3a of _0x1537a7)if(_0xaf8b3a['hasResult']()){let _0x1a1f6b=_0xaf8b3a['result']['getMatch'];if(!0x1===_0xaf8b3a['result']['filter']){for(let _0x3bb6cc of _0xaf8b3a['result']['options'])_0x2df7b5(new Option(_0x3bb6cc,_0xaf8b3a['source'],_0x1a1f6b?_0x1a1f6b(_0x3bb6cc):[],0x3b9aca00-_0x1ddcac['length']));}else{let _0x1e97d6,_0x11f755=_0xfe8317['sliceDoc'](_0xaf8b3a['from'],_0xaf8b3a['to']),_0x7d9ed4=_0x42b09f['filterStrict']?new StrictMatcher(_0x11f755):new FuzzyMatcher(_0x11f755);for(let _0x290ad7 of _0xaf8b3a['result']['options'])if(_0x1e97d6=_0x7d9ed4['match'](_0x290ad7['label'])){let _0x2d864a=_0x290ad7['displayLabel']?_0x1a1f6b?_0x1a1f6b(_0x290ad7,_0x1e97d6['matched']):[]:_0x1e97d6['matched'],_0x33513f=_0x1e97d6['score']+(_0x290ad7['boost']||0x0);if(_0x2df7b5(new Option(_0x290ad7,_0xaf8b3a['source'],_0x2d864a,_0x33513f)),'object'==typeof _0x290ad7['section']&&'dynamic'===_0x290ad7['section']['rank']){let {name:_0x2aac35}=_0x290ad7['section'];_0x54406b||(_0x54406b=Object['create'](null)),_0x54406b[_0x2aac35]=Math['max'](_0x33513f,_0x54406b[_0x2aac35]||-0x3b9aca00);}}}}if(_0x965409){let _0x1c6679=Object['create'](null),_0x51d750=0x0,_0x15009=(_0x10dff9,_0x1c1240)=>('dynamic'===_0x10dff9['rank']&&'dynamic'===_0x1c1240['rank']?_0x54406b[_0x1c1240['name']]-_0x54406b[_0x10dff9['name']]:0x0)||('number'==typeof _0x10dff9['rank']?_0x10dff9['rank']:0x3b9aca00)-('number'==typeof _0x1c1240['rank']?_0x1c1240['rank']:0x3b9aca00)||(_0x10dff9['name']<_0x1c1240['name']?-0x1:0x1);for(let _0x456637 of _0x965409['sort'](_0x15009))_0x51d750-=0x186a0,_0x1c6679[_0x456637['name']]=_0x51d750;for(let _0x24a470 of _0x1ddcac){let {section:_0xd848c6}=_0x24a470['completion'];_0xd848c6&&(_0x24a470['score']+=_0x1c6679['string'==typeof _0xd848c6?_0xd848c6:_0xd848c6['name']]);}}let _0x4ef66d=[],_0x9a454a=null,_0x2176ba=_0x42b09f['compareCompletions'];for(let _0x189e34 of _0x1ddcac['sort']((_0x40b131,_0x1c371b)=>_0x1c371b['score']-_0x40b131['score']||_0x2176ba(_0x40b131['completion'],_0x1c371b['completion']))){let _0x9436f8=_0x189e34['completion'];!_0x9a454a||_0x9a454a['label']!=_0x9436f8['label']||_0x9a454a['detail']!=_0x9436f8['detail']||null!=_0x9a454a['type']&&null!=_0x9436f8['type']&&_0x9a454a['type']!=_0x9436f8['type']||_0x9a454a['apply']!=_0x9436f8['apply']||_0x9a454a['boost']!=_0x9436f8['boost']?_0x4ef66d['push'](_0x189e34):score(_0x189e34['completion'])>score(_0x9a454a)&&(_0x4ef66d[_0x4ef66d['length']-0x1]=_0x189e34),_0x9a454a=_0x189e34['completion'];}return _0x4ef66d;}class CompletionDialog{constructor(_0x2151ac,_0x24c163,_0x1d1054,_0x129d55,_0x47e98b,_0x285b30){this['options']=_0x2151ac,this['attrs']=_0x24c163,this['tooltip']=_0x1d1054,this['timestamp']=_0x129d55,this['selected']=_0x47e98b,this['disabled']=_0x285b30;}['setSelected'](_0x26784d,_0x304589){return _0x26784d==this['selected']||_0x26784d>=this['options']['length']?this:new CompletionDialog(this['options'],makeAttrs(_0x304589,_0x26784d),this['tooltip'],this['timestamp'],_0x26784d,this['disabled']);}static['build'](_0x2a481f,_0x4fc815,_0x5f28d5,_0x1ce96,_0xbcd59d,_0x3efeb6){if(_0x1ce96&&!_0x3efeb6&&_0x2a481f['some'](_0xda41dd=>_0xda41dd['isPending']))return _0x1ce96['setDisabled']();let _0x287d46=sortOptions(_0x2a481f,_0x4fc815);if(!_0x287d46['length'])return _0x1ce96&&_0x2a481f['some'](_0x5c65b4=>_0x5c65b4['isPending'])?_0x1ce96['setDisabled']():null;let _0x221e5d=_0x4fc815['facet'](completionConfig)['selectOnOpen']?0x0:-0x1;if(_0x1ce96&&_0x1ce96['selected']!=_0x221e5d&&-0x1!=_0x1ce96['selected']){let _0x49e946=_0x1ce96['options'][_0x1ce96['selected']]['completion'];for(let _0x1d92dd=0x0;_0x1d92dd<_0x287d46['length'];_0x1d92dd++)if(_0x287d46[_0x1d92dd]['completion']==_0x49e946){_0x221e5d=_0x1d92dd;break;}}return new CompletionDialog(_0x287d46,makeAttrs(_0x5f28d5,_0x221e5d),{'pos':_0x2a481f['reduce']((_0x572536,_0x176703)=>_0x176703['hasResult']()?Math['min'](_0x572536,_0x176703['from']):_0x572536,0x5f5e100),'create':createTooltip,'above':_0xbcd59d['aboveCursor']},_0x1ce96?_0x1ce96['timestamp']:Date['now'](),_0x221e5d,!0x1);}['map'](_0x59c765){return new CompletionDialog(this['options'],this['attrs'],{...this['tooltip'],'pos':_0x59c765['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(_0x25c162,_0x58a5aa,_0x940483){this['active']=_0x25c162,this['id']=_0x58a5aa,this['open']=_0x940483;}static['start'](){return new CompletionState(none$1,'cm-ac-'+Math['floor'](0x1e8480*Math['random']())['toString'](0x24),null);}['update'](_0xc98959){let {state:_0x223f64}=_0xc98959,_0x55e542=_0x223f64['facet'](completionConfig),_0x15a23c=(_0x55e542['override']||_0x223f64['languageDataAt']('autocomplete',cur(_0x223f64))['map'](asSource))['map'](_0x4cde6a=>{let _0x45d4bb=this['active']['find'](_0x8ec335=>_0x8ec335['source']==_0x4cde6a)||new ActiveSource(_0x4cde6a,this['active']['some'](_0x422954=>0x0!=_0x422954['state'])?0x1:0x0);return _0x45d4bb['update'](_0xc98959,_0x55e542);});_0x15a23c['length']==this['active']['length']&&_0x15a23c['every']((_0xd61f66,_0xe70283)=>_0xd61f66==this['active'][_0xe70283])&&(_0x15a23c=this['active']);let _0x514e05=this['open'],_0x2cc295=_0xc98959['effects']['some'](_0x5dffa5=>_0x5dffa5['is'](setActiveEffect));_0x514e05&&_0xc98959['docChanged']&&(_0x514e05=_0x514e05['map'](_0xc98959['changes'])),_0xc98959['selection']||_0x15a23c['some'](_0x11eddd=>_0x11eddd['hasResult']()&&_0xc98959['changes']['touchesRange'](_0x11eddd['from'],_0x11eddd['to']))||!sameResults(_0x15a23c,this['active'])||_0x2cc295?_0x514e05=CompletionDialog['build'](_0x15a23c,_0x223f64,this['id'],_0x514e05,_0x55e542,_0x2cc295):_0x514e05&&_0x514e05['disabled']&&!_0x15a23c['some'](_0x23ac5b=>_0x23ac5b['isPending'])&&(_0x514e05=null),!_0x514e05&&_0x15a23c['every'](_0x1119ef=>!_0x1119ef['isPending'])&&_0x15a23c['some'](_0x31329f=>_0x31329f['hasResult']())&&(_0x15a23c=_0x15a23c['map'](_0x3f5b93=>_0x3f5b93['hasResult']()?new ActiveSource(_0x3f5b93['source'],0x0):_0x3f5b93));for(let _0x4b5426 of _0xc98959['effects'])_0x4b5426['is'](setSelectedEffect)&&(_0x514e05=_0x514e05&&_0x514e05['setSelected'](_0x4b5426['value'],this['id']));return _0x15a23c==this['active']&&_0x514e05==this['open']?this:new CompletionState(_0x15a23c,this['id'],_0x514e05);}get['tooltip'](){return this['open']?this['open']['tooltip']:null;}get['attrs'](){return this['open']?this['open']['attrs']:this['active']['length']?baseAttrs:noAttrs;}}function sameResults(_0x46ad44,_0x4983c2){if(_0x46ad44==_0x4983c2)return!0x0;for(let _0x31c367=0x0,_0x1a10ea=0x0;;){for(;_0x31c367<_0x46ad44['length']&&!_0x46ad44[_0x31c367]['hasResult']();)_0x31c367++;for(;_0x1a10ea<_0x4983c2['length']&&!_0x4983c2[_0x1a10ea]['hasResult']();)_0x1a10ea++;let _0xc3a5d6=_0x31c367==_0x46ad44['length'],_0x44a7d3=_0x1a10ea==_0x4983c2['length'];if(_0xc3a5d6||_0x44a7d3)return _0xc3a5d6==_0x44a7d3;if(_0x46ad44[_0x31c367++]['result']!=_0x4983c2[_0x1a10ea++]['result'])return!0x1;}}const baseAttrs={'aria-autocomplete':'list'},noAttrs={};function makeAttrs(_0x404102,_0x36c263){let _0x5bc59b={'aria-autocomplete':'list','aria-haspopup':'listbox','aria-controls':_0x404102};return _0x36c263>-0x1&&(_0x5bc59b['aria-activedescendant']=_0x404102+'-'+_0x36c263),_0x5bc59b;}const none$1=[];function getUpdateType(_0x379aa7,_0xfe2423){if(_0x379aa7['isUserEvent']('input.complete')){let _0x487e0e=_0x379aa7['annotation'](pickedCompletion);if(_0x487e0e&&_0xfe2423['activateOnCompletion'](_0x487e0e))return 0xc;}let _0x5615e6=_0x379aa7['isUserEvent']('input.type');return _0x5615e6&&_0xfe2423['activateOnTyping']?0x5:_0x5615e6?0x1:_0x379aa7['isUserEvent']('delete.backward')?0x2:_0x379aa7['selection']?0x8:_0x379aa7['docChanged']?0x10:0x0;}class ActiveSource{constructor(_0x33b34c,_0xac7ee5,_0x129fd1=!0x1){this['source']=_0x33b34c,this['state']=_0xac7ee5,this['explicit']=_0x129fd1;}['hasResult'](){return!0x1;}get['isPending'](){return 0x1==this['state'];}['update'](_0x5a6e2d,_0x13f221){let _0x1a53cb=getUpdateType(_0x5a6e2d,_0x13f221),_0x4c0147=this;(0x8&_0x1a53cb||0x10&_0x1a53cb&&this['touches'](_0x5a6e2d))&&(_0x4c0147=new ActiveSource(_0x4c0147['source'],0x0)),0x4&_0x1a53cb&&0x0==_0x4c0147['state']&&(_0x4c0147=new ActiveSource(this['source'],0x1)),_0x4c0147=_0x4c0147['updateFor'](_0x5a6e2d,_0x1a53cb);for(let _0x54cb46 of _0x5a6e2d['effects'])if(_0x54cb46['is'](startCompletionEffect))_0x4c0147=new ActiveSource(_0x4c0147['source'],0x1,_0x54cb46['value']);else{if(_0x54cb46['is'](closeCompletionEffect))_0x4c0147=new ActiveSource(_0x4c0147['source'],0x0);else{if(_0x54cb46['is'](setActiveEffect)){for(let _0x39366c of _0x54cb46['value'])_0x39366c['source']==_0x4c0147['source']&&(_0x4c0147=_0x39366c);}}}return _0x4c0147;}['updateFor'](_0x35dfe0,_0x42dff8){return this['map'](_0x35dfe0['changes']);}['map'](_0x467766){return this;}['touches'](_0x445c1c){return _0x445c1c['changes']['touchesRange'](cur(_0x445c1c['state']));}}class ActiveResult extends ActiveSource{constructor(_0x59239e,_0x128699,_0x4666b6,_0x57c319,_0x2c8bb7,_0xa77498){super(_0x59239e,0x3,_0x128699),this['limit']=_0x4666b6,this['result']=_0x57c319,this['from']=_0x2c8bb7,this['to']=_0xa77498;}['hasResult'](){return!0x0;}['updateFor'](_0x36091f,_0x2bbf1b){var _0x27bfcc;if(!(0x3&_0x2bbf1b))return this['map'](_0x36091f['changes']);let _0x5a6a1a=this['result'];_0x5a6a1a['map']&&!_0x36091f['changes']['empty']&&(_0x5a6a1a=_0x5a6a1a['map'](_0x5a6a1a,_0x36091f['changes']));let _0x101e6d=_0x36091f['changes']['mapPos'](this['from']),_0x57ba4b=_0x36091f['changes']['mapPos'](this['to'],0x1),_0x52e026=cur(_0x36091f['state']);if(_0x52e026>_0x57ba4b||!_0x5a6a1a||0x2&_0x2bbf1b&&(cur(_0x36091f['startState'])==this['from']||_0x52e026<this['limit']))return new ActiveSource(this['source'],0x4&_0x2bbf1b?0x1:0x0);let _0x4b3c15=_0x36091f['changes']['mapPos'](this['limit']);return checkValid(_0x5a6a1a['validFor'],_0x36091f['state'],_0x101e6d,_0x57ba4b)?new ActiveResult(this['source'],this['explicit'],_0x4b3c15,_0x5a6a1a,_0x101e6d,_0x57ba4b):_0x5a6a1a['update']&&(_0x5a6a1a=_0x5a6a1a['update'](_0x5a6a1a,_0x101e6d,_0x57ba4b,new CompletionContext(_0x36091f['state'],_0x52e026,!0x1)))?new ActiveResult(this['source'],this['explicit'],_0x4b3c15,_0x5a6a1a,_0x5a6a1a['from'],null!==(_0x27bfcc=_0x5a6a1a['to'])&&void 0x0!==_0x27bfcc?_0x27bfcc:cur(_0x36091f['state'])):new ActiveSource(this['source'],0x1,this['explicit']);}['map'](_0x599bb6){if(_0x599bb6['empty'])return this;return(this['result']['map']?this['result']['map'](this['result'],_0x599bb6):this['result'])?new ActiveResult(this['source'],this['explicit'],_0x599bb6['mapPos'](this['limit']),this['result'],_0x599bb6['mapPos'](this['from']),_0x599bb6['mapPos'](this['to'],0x1)):new ActiveSource(this['source'],0x0);}['touches'](_0x1e8f17){return _0x1e8f17['changes']['touchesRange'](this['from'],this['to']);}}function checkValid(_0x4de5e6,_0x2e008e,_0x14bdf5,_0x2c99c2){if(!_0x4de5e6)return!0x1;let _0x72d8e6=_0x2e008e['sliceDoc'](_0x14bdf5,_0x2c99c2);return'function'==typeof _0x4de5e6?_0x4de5e6(_0x72d8e6,_0x14bdf5,_0x2c99c2,_0x2e008e):ensureAnchor(_0x4de5e6,!0x0)['test'](_0x72d8e6);}const setActiveEffect=StateEffect['define']({'map':(_0x6a3e7f,_0x2cab2f)=>_0x6a3e7f['map'](_0x32ede4=>_0x32ede4['map'](_0x2cab2f))}),setSelectedEffect=StateEffect['define'](),completionState=StateField['define']({'create':()=>CompletionState['start'](),'update':(_0x1c02ab,_0x381609)=>_0x1c02ab['update'](_0x381609),'provide':_0x3366dd=>[showTooltip['from'](_0x3366dd,_0x3dd34f=>_0x3dd34f['tooltip']),EditorView['contentAttributes']['from'](_0x3366dd,_0x2c2992=>_0x2c2992['attrs'])]});function applyCompletion(_0x1785fe,_0x2072ed){const _0x32142a=_0x2072ed['completion']['apply']||_0x2072ed['completion']['label'];let _0xd7f80f=_0x1785fe['state']['field'](completionState)['active']['find'](_0x6166db=>_0x6166db['source']==_0x2072ed['source']);return _0xd7f80f instanceof ActiveResult&&('string'==typeof _0x32142a?_0x1785fe['dispatch']({...insertCompletionText(_0x1785fe['state'],_0x32142a,_0xd7f80f['from'],_0xd7f80f['to']),'annotations':pickedCompletion['of'](_0x2072ed['completion'])}):_0x32142a(_0x1785fe,_0x2072ed['completion'],_0xd7f80f['from'],_0xd7f80f['to']),!0x0);}const createTooltip=completionTooltip(completionState,applyCompletion);function moveCompletionSelection(_0x4034de,_0x1f070f='option'){return _0x397ed2=>{let _0x24762d=_0x397ed2['state']['field'](completionState,!0x1);if(!_0x24762d||!_0x24762d['open']||_0x24762d['open']['disabled']||Date['now']()-_0x24762d['open']['timestamp']<_0x397ed2['state']['facet'](completionConfig)['interactionDelay'])return!0x1;let _0x2fd915,_0x31717a=0x1;'page'==_0x1f070f&&(_0x2fd915=getTooltip(_0x397ed2,_0x24762d['open']['tooltip']))&&(_0x31717a=Math['max'](0x2,Math['floor'](_0x2fd915['dom']['offsetHeight']/_0x2fd915['dom']['querySelector']('li')['offsetHeight'])-0x1));let {length:_0x4b5b83}=_0x24762d['open']['options'],_0xff15e6=_0x24762d['open']['selected']>-0x1?_0x24762d['open']['selected']+_0x31717a*(_0x4034de?0x1:-0x1):_0x4034de?0x0:_0x4b5b83-0x1;return _0xff15e6<0x0?_0xff15e6='page'==_0x1f070f?0x0:_0x4b5b83-0x1:_0xff15e6>=_0x4b5b83&&(_0xff15e6='page'==_0x1f070f?_0x4b5b83-0x1:0x0),_0x397ed2['dispatch']({'effects':setSelectedEffect['of'](_0xff15e6)}),!0x0;};}const acceptCompletion=_0x1e1300=>{let _0x4f1fb6=_0x1e1300['state']['field'](completionState,!0x1);return!(_0x1e1300['state']['readOnly']||!_0x4f1fb6||!_0x4f1fb6['open']||_0x4f1fb6['open']['selected']<0x0||_0x4f1fb6['open']['disabled']||Date['now']()-_0x4f1fb6['open']['timestamp']<_0x1e1300['state']['facet'](completionConfig)['interactionDelay'])&&applyCompletion(_0x1e1300,_0x4f1fb6['open']['options'][_0x4f1fb6['open']['selected']]);},startCompletion=_0x19dee6=>!!_0x19dee6['state']['field'](completionState,!0x1)&&(_0x19dee6['dispatch']({'effects':startCompletionEffect['of'](!0x0)}),!0x0),closeCompletion=_0x336044=>{let _0x4c794a=_0x336044['state']['field'](completionState,!0x1);return!(!_0x4c794a||!_0x4c794a['active']['some'](_0x4775bf=>0x0!=_0x4775bf['state']))&&(_0x336044['dispatch']({'effects':closeCompletionEffect['of'](null)}),!0x0);};class RunningQuery{constructor(_0x3c97a7,_0x256905){this['active']=_0x3c97a7,this['context']=_0x256905,this['time']=Date['now'](),this['updates']=[],this['done']=void 0x0;}}const MaxUpdateCount=0x32,MinAbortTime=0x3e8,completionPlugin=ViewPlugin['fromClass'](class{constructor(_0x11a098){this['view']=_0x11a098,this['debounceUpdate']=-0x1,this['running']=[],this['debounceAccept']=-0x1,this['pendingStart']=!0x1,this['composing']=0x0;for(let _0xd4ef34 of _0x11a098['state']['field'](completionState)['active'])_0xd4ef34['isPending']&&this['startQuery'](_0xd4ef34);}['update'](_0x4e6e3c){let _0x4f0fb0=_0x4e6e3c['state']['field'](completionState),_0x4ba7bd=_0x4e6e3c['state']['facet'](completionConfig);if(!_0x4e6e3c['selectionSet']&&!_0x4e6e3c['docChanged']&&_0x4e6e3c['startState']['field'](completionState)==_0x4f0fb0)return;let _0x4d6a1d=_0x4e6e3c['transactions']['some'](_0x26c837=>{let _0x546d1e=getUpdateType(_0x26c837,_0x4ba7bd);return 0x8&_0x546d1e||(_0x26c837['selection']||_0x26c837['docChanged'])&&!(0x3&_0x546d1e);});for(let _0x3e9afe=0x0;_0x3e9afe<this['running']['length'];_0x3e9afe++){let _0x19060b=this['running'][_0x3e9afe];if(_0x4d6a1d||_0x19060b['context']['abortOnDocChange']&&_0x4e6e3c['docChanged']||_0x19060b['updates']['length']+_0x4e6e3c['transactions']['length']>MaxUpdateCount&&Date['now']()-_0x19060b['time']>MinAbortTime){for(let _0x2bf433 of _0x19060b['context']['abortListeners'])try{_0x2bf433();}catch(_0x4bde60){logException(this['view']['state'],_0x4bde60);}_0x19060b['context']['abortListeners']=null,this['running']['splice'](_0x3e9afe--,0x1);}else _0x19060b['updates']['push'](..._0x4e6e3c['transactions']);}this['debounceUpdate']>-0x1&&clearTimeout(this['debounceUpdate']),_0x4e6e3c['transactions']['some'](_0x10d34f=>_0x10d34f['effects']['some'](_0x1baf9a=>_0x1baf9a['is'](startCompletionEffect)))&&(this['pendingStart']=!0x0);let _0x1e2bec=this['pendingStart']?0x32:_0x4ba7bd['activateOnTypingDelay'];if(this['debounceUpdate']=_0x4f0fb0['active']['some'](_0x2be8ad=>_0x2be8ad['isPending']&&!this['running']['some'](_0x136508=>_0x136508['active']['source']==_0x2be8ad['source']))?setTimeout(()=>this['startUpdate'](),_0x1e2bec):-0x1,0x0!=this['composing']){for(let _0x23fb2e of _0x4e6e3c['transactions'])_0x23fb2e['isUserEvent']('input.type')?this['composing']=0x2:0x2==this['composing']&&_0x23fb2e['selection']&&(this['composing']=0x3);}}['startUpdate'](){this['debounceUpdate']=-0x1,this['pendingStart']=!0x1;let {state:_0x5bbcdd}=this['view'],_0x3f45f1=_0x5bbcdd['field'](completionState);for(let _0xd3a800 of _0x3f45f1['active'])_0xd3a800['isPending']&&!this['running']['some'](_0x5ff8cd=>_0x5ff8cd['active']['source']==_0xd3a800['source'])&&this['startQuery'](_0xd3a800);this['running']['length']&&_0x3f45f1['open']&&_0x3f45f1['open']['disabled']&&(this['debounceAccept']=setTimeout(()=>this['accept'](),this['view']['state']['facet'](completionConfig)['updateSyncTime']));}['startQuery'](_0x900860){let {state:_0xbe28fa}=this['view'],_0x346e02=cur(_0xbe28fa),_0x410f9b=new CompletionContext(_0xbe28fa,_0x346e02,_0x900860['explicit'],this['view']),_0x3529cf=new RunningQuery(_0x900860,_0x410f9b);this['running']['push'](_0x3529cf),Promise['resolve'](_0x900860['source'](_0x410f9b))['then'](_0x625ef8=>{_0x3529cf['context']['aborted']||(_0x3529cf['done']=_0x625ef8||null,this['scheduleAccept']());},_0x5bf49e=>{this['view']['dispatch']({'effects':closeCompletionEffect['of'](null)}),logException(this['view']['state'],_0x5bf49e);});}['scheduleAccept'](){this['running']['every'](_0x2a6af9=>void 0x0!==_0x2a6af9['done'])?this['accept']():this['debounceAccept']<0x0&&(this['debounceAccept']=setTimeout(()=>this['accept'](),this['view']['state']['facet'](completionConfig)['updateSyncTime']));}['accept'](){var _0x3b074b;this['debounceAccept']>-0x1&&clearTimeout(this['debounceAccept']),this['debounceAccept']=-0x1;let _0x12a5ed=[],_0x37dedf=this['view']['state']['facet'](completionConfig),_0x290373=this['view']['state']['field'](completionState);for(let _0x1a9f35=0x0;_0x1a9f35<this['running']['length'];_0x1a9f35++){let _0x9b5f7e=this['running'][_0x1a9f35];if(void 0x0===_0x9b5f7e['done'])continue;if(this['running']['splice'](_0x1a9f35--,0x1),_0x9b5f7e['done']){let _0xf83cb9=cur(_0x9b5f7e['updates']['length']?_0x9b5f7e['updates'][0x0]['startState']:this['view']['state']),_0x1a5b50=Math['min'](_0xf83cb9,_0x9b5f7e['done']['from']+(_0x9b5f7e['active']['explicit']?0x0:0x1)),_0x1991e7=new ActiveResult(_0x9b5f7e['active']['source'],_0x9b5f7e['active']['explicit'],_0x1a5b50,_0x9b5f7e['done'],_0x9b5f7e['done']['from'],null!==(_0x3b074b=_0x9b5f7e['done']['to'])&&void 0x0!==_0x3b074b?_0x3b074b:_0xf83cb9);for(let _0x3b71a3 of _0x9b5f7e['updates'])_0x1991e7=_0x1991e7['update'](_0x3b71a3,_0x37dedf);if(_0x1991e7['hasResult']()){_0x12a5ed['push'](_0x1991e7);continue;}}let _0x4e7ae2=_0x290373['active']['find'](_0x525b05=>_0x525b05['source']==_0x9b5f7e['active']['source']);if(_0x4e7ae2&&_0x4e7ae2['isPending']){if(null==_0x9b5f7e['done']){let _0x33484f=new ActiveSource(_0x9b5f7e['active']['source'],0x0);for(let _0x5047c8 of _0x9b5f7e['updates'])_0x33484f=_0x33484f['update'](_0x5047c8,_0x37dedf);_0x33484f['isPending']||_0x12a5ed['push'](_0x33484f);}else this['startQuery'](_0x4e7ae2);}}(_0x12a5ed['length']||_0x290373['open']&&_0x290373['open']['disabled'])&&this['view']['dispatch']({'effects':setActiveEffect['of'](_0x12a5ed)});}},{'eventHandlers':{'blur'(_0x236170){let _0x341770=this['view']['state']['field'](completionState,!0x1);if(_0x341770&&_0x341770['tooltip']&&this['view']['state']['facet'](completionConfig)['closeOnBlur']){let _0x1a351a=_0x341770['open']&&getTooltip(this['view'],_0x341770['open']['tooltip']);_0x1a351a&&_0x1a351a['dom']['contains'](_0x236170['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'(_0x34e6ac,_0x169444){let _0x2d6f0a=_0x169444['state']['field'](completionState,!0x1);if(!_0x2d6f0a||!_0x2d6f0a['open']||_0x2d6f0a['open']['disabled']||_0x2d6f0a['open']['selected']<0x0||_0x34e6ac['key']['length']>0x1||_0x34e6ac['ctrlKey']&&(!windows||!_0x34e6ac['altKey'])||_0x34e6ac['metaKey'])return!0x1;let _0xa47a9b=_0x2d6f0a['open']['options'][_0x2d6f0a['open']['selected']],_0x386b48=_0x2d6f0a['active']['find'](_0x5cb18f=>_0x5cb18f['source']==_0xa47a9b['source']),_0x1d42a4=_0xa47a9b['completion']['commitCharacters']||_0x386b48['result']['commitCharacters'];return _0x1d42a4&&_0x1d42a4['indexOf'](_0x34e6ac['key'])>-0x1&&applyCompletion(_0x169444,_0xa47a9b),!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(_0x4dc5a7,_0x1b2a77,_0x2ec0a8,_0xa00ef6){this['field']=_0x4dc5a7,this['line']=_0x1b2a77,this['from']=_0x2ec0a8,this['to']=_0xa00ef6;}}class FieldRange{constructor(_0x42e593,_0x193fe9,_0x15425c){this['field']=_0x42e593,this['from']=_0x193fe9,this['to']=_0x15425c;}['map'](_0x45445b){let _0x690b5b=_0x45445b['mapPos'](this['from'],-0x1,MapMode['TrackDel']),_0x480ce1=_0x45445b['mapPos'](this['to'],0x1,MapMode['TrackDel']);return null==_0x690b5b||null==_0x480ce1?null:new FieldRange(this['field'],_0x690b5b,_0x480ce1);}}class Snippet{constructor(_0x32b0da,_0x232a1b){this['lines']=_0x32b0da,this['fieldPositions']=_0x232a1b;}['instantiate'](_0x5bcb0b,_0x1c0595){let _0x1d5986=[],_0x2a7ef7=[_0x1c0595],_0x499f58=_0x5bcb0b['doc']['lineAt'](_0x1c0595),_0x2e0e15=/^\s*/['exec'](_0x499f58['text'])[0x0];for(let _0x5ad851 of this['lines']){if(_0x1d5986['length']){let _0x3fa9dd=_0x2e0e15,_0x3c6d8b=/^\t*/['exec'](_0x5ad851)[0x0]['length'];for(let _0x429d89=0x0;_0x429d89<_0x3c6d8b;_0x429d89++)_0x3fa9dd+=_0x5bcb0b['facet'](indentUnit);_0x2a7ef7['push'](_0x1c0595+_0x3fa9dd['length']-_0x3c6d8b),_0x5ad851=_0x3fa9dd+_0x5ad851['slice'](_0x3c6d8b);}_0x1d5986['push'](_0x5ad851),_0x1c0595+=_0x5ad851['length']+0x1;}let _0x2fef09=this['fieldPositions']['map'](_0x48abe7=>new FieldRange(_0x48abe7['field'],_0x2a7ef7[_0x48abe7['line']]+_0x48abe7['from'],_0x2a7ef7[_0x48abe7['line']]+_0x48abe7['to']));return{'text':_0x1d5986,'ranges':_0x2fef09};}static['parse'](_0x5d0ed8){let _0xac587b,_0x1dafc3=[],_0xc6808a=[],_0x6523ba=[];for(let _0x57f1f7 of _0x5d0ed8['split'](/\r\n?|\n/)){for(;_0xac587b=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/['exec'](_0x57f1f7);){let _0x33df90=_0xac587b[0x1]?+_0xac587b[0x1]:null,_0x45e1a0=_0xac587b[0x2]||_0xac587b[0x3]||'',_0xed146e=-0x1,_0x31ca67=_0x45e1a0['replace'](/\\[{}]/g,_0x27e6d8=>_0x27e6d8[0x1]);for(let _0x3ad834=0x0;_0x3ad834<_0x1dafc3['length'];_0x3ad834++)(null!=_0x33df90?_0x1dafc3[_0x3ad834]['seq']==_0x33df90:_0x31ca67&&_0x1dafc3[_0x3ad834]['name']==_0x31ca67)&&(_0xed146e=_0x3ad834);if(_0xed146e<0x0){let _0x2d42f1=0x0;for(;_0x2d42f1<_0x1dafc3['length']&&(null==_0x33df90||null!=_0x1dafc3[_0x2d42f1]['seq']&&_0x1dafc3[_0x2d42f1]['seq']<_0x33df90);)_0x2d42f1++;_0x1dafc3['splice'](_0x2d42f1,0x0,{'seq':_0x33df90,'name':_0x31ca67}),_0xed146e=_0x2d42f1;for(let _0x113fc3 of _0x6523ba)_0x113fc3['field']>=_0xed146e&&_0x113fc3['field']++;}for(let _0x407037 of _0x6523ba)if(_0x407037['line']==_0xc6808a['length']&&_0x407037['from']>_0xac587b['index']){let _0x406605=_0xac587b[0x2]?0x3+(_0xac587b[0x1]||'')['length']:0x2;_0x407037['from']-=_0x406605,_0x407037['to']-=_0x406605;}_0x6523ba['push'](new FieldPos(_0xed146e,_0xc6808a['length'],_0xac587b['index'],_0xac587b['index']+_0x31ca67['length'])),_0x57f1f7=_0x57f1f7['slice'](0x0,_0xac587b['index'])+_0x45e1a0+_0x57f1f7['slice'](_0xac587b['index']+_0xac587b[0x0]['length']);}_0x57f1f7=_0x57f1f7['replace'](/\\([{}])/g,(_0x594898,_0x277b82,_0x2260c3)=>{for(let _0x19d5bd of _0x6523ba)_0x19d5bd['line']==_0xc6808a['length']&&_0x19d5bd['from']>_0x2260c3&&(_0x19d5bd['from']--,_0x19d5bd['to']--);return _0x277b82;}),_0xc6808a['push'](_0x57f1f7);}return new Snippet(_0xc6808a,_0x6523ba);}}let fieldMarker=Decoration['widget']({'widget':new class extends WidgetType{['toDOM'](){let _0x4ee53d=document['createElement']('span');return _0x4ee53d['className']='cm-snippetFieldPosition',_0x4ee53d;}['ignoreEvent'](){return!0x1;}}()}),fieldRange=Decoration['mark']({'class':'cm-snippetField'});class ActiveSnippet{constructor(_0x3c1906,_0x4cc5c9){this['ranges']=_0x3c1906,this['active']=_0x4cc5c9,this['deco']=Decoration['set'](_0x3c1906['map'](_0xa178ac=>(_0xa178ac['from']==_0xa178ac['to']?fieldMarker:fieldRange)['range'](_0xa178ac['from'],_0xa178ac['to'])),!0x0);}['map'](_0x2c350e){let _0xd5376f=[];for(let _0x2e8957 of this['ranges']){let _0xc5ecd1=_0x2e8957['map'](_0x2c350e);if(!_0xc5ecd1)return null;_0xd5376f['push'](_0xc5ecd1);}return new ActiveSnippet(_0xd5376f,this['active']);}['selectionInsideField'](_0xc5bde2){return _0xc5bde2['ranges']['every'](_0x3db9ee=>this['ranges']['some'](_0x606689=>_0x606689['field']==this['active']&&_0x606689['from']<=_0x3db9ee['from']&&_0x606689['to']>=_0x3db9ee['to']));}}const setActive=StateEffect['define']({'map':(_0x32f6da,_0x7f3250)=>_0x32f6da&&_0x32f6da['map'](_0x7f3250)}),moveToField=StateEffect['define'](),snippetState=StateField['define']({'create':()=>null,'update'(_0x23f201,_0x275837){for(let _0x58dccd of _0x275837['effects']){if(_0x58dccd['is'](setActive))return _0x58dccd['value'];if(_0x58dccd['is'](moveToField)&&_0x23f201)return new ActiveSnippet(_0x23f201['ranges'],_0x58dccd['value']);}return _0x23f201&&_0x275837['docChanged']&&(_0x23f201=_0x23f201['map'](_0x275837['changes'])),_0x23f201&&_0x275837['selection']&&!_0x23f201['selectionInsideField'](_0x275837['selection'])&&(_0x23f201=null),_0x23f201;},'provide':_0x378074=>EditorView['decorations']['from'](_0x378074,_0x4fd59b=>_0x4fd59b?_0x4fd59b['deco']:Decoration['none'])});function fieldSelection(_0x9994e7,_0x5e4ccd){return EditorSelection['create'](_0x9994e7['filter'](_0x359a7c=>_0x359a7c['field']==_0x5e4ccd)['map'](_0x1148a9=>EditorSelection['range'](_0x1148a9['from'],_0x1148a9['to'])));}function snippet(_0x4e07d0){let _0x2a0661=Snippet['parse'](_0x4e07d0);return(_0x4e0b64,_0x38c82e,_0x4ddc88,_0x38e634)=>{let {text:_0x2e75a7,ranges:_0xd3bc0d}=_0x2a0661['instantiate'](_0x4e0b64['state'],_0x4ddc88),{main:_0x45045a}=_0x4e0b64['state']['selection'],_0x7e1622={'changes':{'from':_0x4ddc88,'to':_0x38e634==_0x45045a['from']?_0x45045a['to']:_0x38e634,'insert':Text['of'](_0x2e75a7)},'scrollIntoView':!0x0,'annotations':_0x38c82e?[pickedCompletion['of'](_0x38c82e),Transaction['userEvent']['of']('input.complete')]:void 0x0};if(_0xd3bc0d['length']&&(_0x7e1622['selection']=fieldSelection(_0xd3bc0d,0x0)),_0xd3bc0d['some'](_0x523292=>_0x523292['field']>0x0)){let _0x558d53=new ActiveSnippet(_0xd3bc0d,0x0),_0x179038=_0x7e1622['effects']=[setActive['of'](_0x558d53)];void 0x0===_0x4e0b64['state']['field'](snippetState,!0x1)&&_0x179038['push'](StateEffect['appendConfig']['of']([snippetState,addSnippetKeymap,snippetPointerHandler,baseTheme]));}_0x4e0b64['dispatch'](_0x4e0b64['state']['update'](_0x7e1622));};}function moveField(_0x2e9d19){return({state:_0x47df8c,dispatch:_0x3715a0})=>{let _0x34c57a=_0x47df8c['field'](snippetState,!0x1);if(!_0x34c57a||_0x2e9d19<0x0&&0x0==_0x34c57a['active'])return!0x1;let _0x6379bc=_0x34c57a['active']+_0x2e9d19,_0x2ff21a=_0x2e9d19>0x0&&!_0x34c57a['ranges']['some'](_0x1f3fe8=>_0x1f3fe8['field']==_0x6379bc+_0x2e9d19);return _0x3715a0(_0x47df8c['update']({'selection':fieldSelection(_0x34c57a['ranges'],_0x6379bc),'effects':setActive['of'](_0x2ff21a?null:new ActiveSnippet(_0x34c57a['ranges'],_0x6379bc)),'scrollIntoView':!0x0})),!0x0;};}const clearSnippet=({state:_0x24d68f,dispatch:_0x14fbe7})=>!!_0x24d68f['field'](snippetState,!0x1)&&(_0x14fbe7(_0x24d68f['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':_0x47b1cc=>_0x47b1cc['length']?_0x47b1cc[0x0]:defaultSnippetKeymap}),addSnippetKeymap=Prec['highest'](keymap['compute']([snippetKeymap],_0x3ff88f=>_0x3ff88f['facet'](snippetKeymap)));function snippetCompletion(_0x16d00c,_0x89a92f){return{..._0x89a92f,'apply':snippet(_0x16d00c)};}const snippetPointerHandler=EditorView['domEventHandlers']({'mousedown'(_0x156b78,_0x507d9b){let _0x115245,_0x1b8f4a=_0x507d9b['state']['field'](snippetState,!0x1);if(!_0x1b8f4a||null==(_0x115245=_0x507d9b['posAtCoords']({'x':_0x156b78['clientX'],'y':_0x156b78['clientY']})))return!0x1;let _0x4765e9=_0x1b8f4a['ranges']['find'](_0x1f5742=>_0x1f5742['from']<=_0x115245&&_0x1f5742['to']>=_0x115245);return!(!_0x4765e9||_0x4765e9['field']==_0x1b8f4a['active'])&&(_0x507d9b['dispatch']({'selection':fieldSelection(_0x1b8f4a['ranges'],_0x4765e9['field']),'effects':setActive['of'](_0x1b8f4a['ranges']['some'](_0x3d92e9=>_0x3d92e9['field']>_0x4765e9['field'])?new ActiveSnippet(_0x1b8f4a['ranges'],_0x4765e9['field']):null),'scrollIntoView':!0x0}),!0x0);}}),defaults={'brackets':['(','[','{','\x27','\x22'],'before':')]}:;>','stringPrefixes':[]},closeBracketEffect=StateEffect['define']({'map'(_0x31f9a0,_0x181b4d){let _0x5e5357=_0x181b4d['mapPos'](_0x31f9a0,-0x1,MapMode['TrackAfter']);return null==_0x5e5357?void 0x0:_0x5e5357;}}),closedBracket=new class extends RangeValue{}();closedBracket['startSide']=0x1,closedBracket['endSide']=-0x1;const bracketState=StateField['define']({'create':()=>RangeSet['empty'],'update'(_0x53fad0,_0xcdd570){if(_0x53fad0=_0x53fad0['map'](_0xcdd570['changes']),_0xcdd570['selection']){let _0x33ced3=_0xcdd570['state']['doc']['lineAt'](_0xcdd570['selection']['main']['head']);_0x53fad0=_0x53fad0['update']({'filter':_0x1f4bbe=>_0x1f4bbe>=_0x33ced3['from']&&_0x1f4bbe<=_0x33ced3['to']});}for(let _0x3e9feb of _0xcdd570['effects'])_0x3e9feb['is'](closeBracketEffect)&&(_0x53fad0=_0x53fad0['update']({'add':[closedBracket['range'](_0x3e9feb['value'],_0x3e9feb['value']+0x1)]}));return _0x53fad0;}});function closeBrackets(){return[inputHandler,bracketState];}const definedClosing='()[]{}<>«»»«［］｛｝';function closing(_0x1fbe77){for(let _0x52eca9=0x0;_0x52eca9<definedClosing['length'];_0x52eca9+=0x2)if(definedClosing['charCodeAt'](_0x52eca9)==_0x1fbe77)return definedClosing['charAt'](_0x52eca9+0x1);return fromCodePoint(_0x1fbe77<0x80?_0x1fbe77:_0x1fbe77+0x1);}function config$1(_0x3c2478,_0x56aba6){return _0x3c2478['languageDataAt']('closeBrackets',_0x56aba6)[0x0]||defaults;}const android$1='object'==typeof navigator&&/Android\b/['test'](navigator['userAgent']),inputHandler=EditorView['inputHandler']['of']((_0x30178b,_0x4c9b24,_0x1aa3ed,_0xe86a2c)=>{if((android$1?_0x30178b['composing']:_0x30178b['compositionStarted'])||_0x30178b['state']['readOnly'])return!0x1;let _0x1d8d1d=_0x30178b['state']['selection']['main'];if(_0xe86a2c['length']>0x2||0x2==_0xe86a2c['length']&&0x1==codePointSize(codePointAt(_0xe86a2c,0x0))||_0x4c9b24!=_0x1d8d1d['from']||_0x1aa3ed!=_0x1d8d1d['to'])return!0x1;let _0x4a8df6=insertBracket(_0x30178b['state'],_0xe86a2c);return!!_0x4a8df6&&(_0x30178b['dispatch'](_0x4a8df6),!0x0);}),deleteBracketPair=({state:_0x441685,dispatch:_0x53b431})=>{if(_0x441685['readOnly'])return!0x1;let _0x3527d9=config$1(_0x441685,_0x441685['selection']['main']['head'])['brackets']||defaults['brackets'],_0x2612c2=null,_0x44c76b=_0x441685['changeByRange'](_0x45460f=>{if(_0x45460f['empty']){let _0x56edfa=prevChar(_0x441685['doc'],_0x45460f['head']);for(let _0x36d400 of _0x3527d9)if(_0x36d400==_0x56edfa&&nextChar(_0x441685['doc'],_0x45460f['head'])==closing(codePointAt(_0x36d400,0x0)))return{'changes':{'from':_0x45460f['head']-_0x36d400['length'],'to':_0x45460f['head']+_0x36d400['length']},'range':EditorSelection['cursor'](_0x45460f['head']-_0x36d400['length'])};}return{'range':_0x2612c2=_0x45460f};});return _0x2612c2||_0x53b431(_0x441685['update'](_0x44c76b,{'scrollIntoView':!0x0,'userEvent':'delete.backward'})),!_0x2612c2;},closeBracketsKeymap=[{'key':'Backspace','run':deleteBracketPair}];function insertBracket(_0x5e060e,_0x2e20f0){let _0x5e16d2=config$1(_0x5e060e,_0x5e060e['selection']['main']['head']),_0x19813b=_0x5e16d2['brackets']||defaults['brackets'];for(let _0x34c409 of _0x19813b){let _0x5a1921=closing(codePointAt(_0x34c409,0x0));if(_0x2e20f0==_0x34c409)return _0x5a1921==_0x34c409?handleSame(_0x5e060e,_0x34c409,_0x19813b['indexOf'](_0x34c409+_0x34c409+_0x34c409)>-0x1,_0x5e16d2):handleOpen(_0x5e060e,_0x34c409,_0x5a1921,_0x5e16d2['before']||defaults['before']);if(_0x2e20f0==_0x5a1921&&closedBracketAt(_0x5e060e,_0x5e060e['selection']['main']['from']))return handleClose(_0x5e060e,_0x34c409,_0x5a1921);}return null;}function closedBracketAt(_0x1d0dfe,_0x33577e){let _0x1d14a7=!0x1;return _0x1d0dfe['field'](bracketState)['between'](0x0,_0x1d0dfe['doc']['length'],_0x547332=>{_0x547332==_0x33577e&&(_0x1d14a7=!0x0);}),_0x1d14a7;}function nextChar(_0x51da14,_0x970116){let _0x36f71b=_0x51da14['sliceString'](_0x970116,_0x970116+0x2);return _0x36f71b['slice'](0x0,codePointSize(codePointAt(_0x36f71b,0x0)));}function prevChar(_0x34c038,_0x770d78){let _0x389135=_0x34c038['sliceString'](_0x770d78-0x2,_0x770d78);return codePointSize(codePointAt(_0x389135,0x0))==_0x389135['length']?_0x389135:_0x389135['slice'](0x1);}function handleOpen(_0x2ddf9e,_0x5bb3e6,_0x2e9daf,_0x26af18){let _0x218c49=null,_0x287e83=_0x2ddf9e['changeByRange'](_0x4bdbe4=>{if(!_0x4bdbe4['empty'])return{'changes':[{'insert':_0x5bb3e6,'from':_0x4bdbe4['from']},{'insert':_0x2e9daf,'from':_0x4bdbe4['to']}],'effects':closeBracketEffect['of'](_0x4bdbe4['to']+_0x5bb3e6['length']),'range':EditorSelection['range'](_0x4bdbe4['anchor']+_0x5bb3e6['length'],_0x4bdbe4['head']+_0x5bb3e6['length'])};let _0x857324=nextChar(_0x2ddf9e['doc'],_0x4bdbe4['head']);return!_0x857324||/\s/['test'](_0x857324)||_0x26af18['indexOf'](_0x857324)>-0x1?{'changes':{'insert':_0x5bb3e6+_0x2e9daf,'from':_0x4bdbe4['head']},'effects':closeBracketEffect['of'](_0x4bdbe4['head']+_0x5bb3e6['length']),'range':EditorSelection['cursor'](_0x4bdbe4['head']+_0x5bb3e6['length'])}:{'range':_0x218c49=_0x4bdbe4};});return _0x218c49?null:_0x2ddf9e['update'](_0x287e83,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function handleClose(_0x1148b3,_0x116dbe,_0x51c5d9){let _0x2db16a=null,_0x4dbba6=_0x1148b3['changeByRange'](_0x3d7589=>_0x3d7589['empty']&&nextChar(_0x1148b3['doc'],_0x3d7589['head'])==_0x51c5d9?{'changes':{'from':_0x3d7589['head'],'to':_0x3d7589['head']+_0x51c5d9['length'],'insert':_0x51c5d9},'range':EditorSelection['cursor'](_0x3d7589['head']+_0x51c5d9['length'])}:_0x2db16a={'range':_0x3d7589});return _0x2db16a?null:_0x1148b3['update'](_0x4dbba6,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function handleSame(_0x11c4bb,_0x2578f5,_0x3a8d35,_0x396538){let _0x187b8d=_0x396538['stringPrefixes']||defaults['stringPrefixes'],_0x82e5a3=null,_0x5a9fe7=_0x11c4bb['changeByRange'](_0x6ef82d=>{if(!_0x6ef82d['empty'])return{'changes':[{'insert':_0x2578f5,'from':_0x6ef82d['from']},{'insert':_0x2578f5,'from':_0x6ef82d['to']}],'effects':closeBracketEffect['of'](_0x6ef82d['to']+_0x2578f5['length']),'range':EditorSelection['range'](_0x6ef82d['anchor']+_0x2578f5['length'],_0x6ef82d['head']+_0x2578f5['length'])};let _0x198dde,_0x411573=_0x6ef82d['head'],_0x47931c=nextChar(_0x11c4bb['doc'],_0x411573);if(_0x47931c==_0x2578f5){if(nodeStart(_0x11c4bb,_0x411573))return{'changes':{'insert':_0x2578f5+_0x2578f5,'from':_0x411573},'effects':closeBracketEffect['of'](_0x411573+_0x2578f5['length']),'range':EditorSelection['cursor'](_0x411573+_0x2578f5['length'])};if(closedBracketAt(_0x11c4bb,_0x411573)){let _0x5df383=_0x3a8d35&&_0x11c4bb['sliceDoc'](_0x411573,_0x411573+0x3*_0x2578f5['length'])==_0x2578f5+_0x2578f5+_0x2578f5?_0x2578f5+_0x2578f5+_0x2578f5:_0x2578f5;return{'changes':{'from':_0x411573,'to':_0x411573+_0x5df383['length'],'insert':_0x5df383},'range':EditorSelection['cursor'](_0x411573+_0x5df383['length'])};}}else{if(_0x3a8d35&&_0x11c4bb['sliceDoc'](_0x411573-0x2*_0x2578f5['length'],_0x411573)==_0x2578f5+_0x2578f5&&(_0x198dde=canStartStringAt(_0x11c4bb,_0x411573-0x2*_0x2578f5['length'],_0x187b8d))>-0x1&&nodeStart(_0x11c4bb,_0x198dde))return{'changes':{'insert':_0x2578f5+_0x2578f5+_0x2578f5+_0x2578f5,'from':_0x411573},'effects':closeBracketEffect['of'](_0x411573+_0x2578f5['length']),'range':EditorSelection['cursor'](_0x411573+_0x2578f5['length'])};if(_0x11c4bb['charCategorizer'](_0x411573)(_0x47931c)!=CharCategory['Word']&&canStartStringAt(_0x11c4bb,_0x411573,_0x187b8d)>-0x1&&!probablyInString(_0x11c4bb,_0x411573,_0x2578f5,_0x187b8d))return{'changes':{'insert':_0x2578f5+_0x2578f5,'from':_0x411573},'effects':closeBracketEffect['of'](_0x411573+_0x2578f5['length']),'range':EditorSelection['cursor'](_0x411573+_0x2578f5['length'])};}return{'range':_0x82e5a3=_0x6ef82d};});return _0x82e5a3?null:_0x11c4bb['update'](_0x5a9fe7,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function nodeStart(_0x4cd447,_0x51f2fa){let _0x4b3efa=syntaxTree(_0x4cd447)['resolveInner'](_0x51f2fa+0x1);return _0x4b3efa['parent']&&_0x4b3efa['from']==_0x51f2fa;}function probablyInString(_0x45d25b,_0x35c8e0,_0xf80f1c,_0xb8838){let _0x48ff40=syntaxTree(_0x45d25b)['resolveInner'](_0x35c8e0,-0x1),_0x17c113=_0xb8838['reduce']((_0x1cbf75,_0x43236d)=>Math['max'](_0x1cbf75,_0x43236d['length']),0x0);for(let _0x133459=0x0;_0x133459<0x5;_0x133459++){let _0x209e02=_0x45d25b['sliceDoc'](_0x48ff40['from'],Math['min'](_0x48ff40['to'],_0x48ff40['from']+_0xf80f1c['length']+_0x17c113)),_0x4cbf1b=_0x209e02['indexOf'](_0xf80f1c);if(!_0x4cbf1b||_0x4cbf1b>-0x1&&_0xb8838['indexOf'](_0x209e02['slice'](0x0,_0x4cbf1b))>-0x1){let _0x351e62=_0x48ff40['firstChild'];for(;_0x351e62&&_0x351e62['from']==_0x48ff40['from']&&_0x351e62['to']-_0x351e62['from']>_0xf80f1c['length']+_0x4cbf1b;){if(_0x45d25b['sliceDoc'](_0x351e62['to']-_0xf80f1c['length'],_0x351e62['to'])==_0xf80f1c)return!0x1;_0x351e62=_0x351e62['firstChild'];}return!0x0;}let _0x1ab482=_0x48ff40['to']==_0x35c8e0&&_0x48ff40['parent'];if(!_0x1ab482)break;_0x48ff40=_0x1ab482;}return!0x1;}function canStartStringAt(_0xf93335,_0x32e153,_0x4860bd){let _0x32703a=_0xf93335['charCategorizer'](_0x32e153);if(_0x32703a(_0xf93335['sliceDoc'](_0x32e153-0x1,_0x32e153))!=CharCategory['Word'])return _0x32e153;for(let _0x3a49eb of _0x4860bd){let _0x28ebf8=_0x32e153-_0x3a49eb['length'];if(_0xf93335['sliceDoc'](_0x28ebf8,_0x32e153)==_0x3a49eb&&_0x32703a(_0xf93335['sliceDoc'](_0x28ebf8-0x1,_0x28ebf8))!=CharCategory['Word'])return _0x28ebf8;}return-0x1;}function autocompletion(_0x5309af={}){return[commitCharacters,completionState,completionConfig['of'](_0x5309af),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],_0x16121a=>_0x16121a['facet'](completionConfig)['defaultKeymap']?[completionKeymap]:[]));class Stack{constructor(_0x26d528,_0xa7edfc,_0x54e1f0,_0x2b3a1e,_0x278d68,_0x97cdee,_0xba0b3d,_0x31277f,_0x1864e5,_0x587220=0x0,_0x3f224c){this['p']=_0x26d528,this['stack']=_0xa7edfc,this['state']=_0x54e1f0,this['reducePos']=_0x2b3a1e,this['pos']=_0x278d68,this['score']=_0x97cdee,this['buffer']=_0xba0b3d,this['bufferBase']=_0x31277f,this['curContext']=_0x1864e5,this['lookAhead']=_0x587220,this['parent']=_0x3f224c;}['toString'](){return'['+this['stack']['filter']((_0x225ad7,_0x1933d4)=>_0x1933d4%0x3==0x0)['concat'](this['state'])+']@'+this['pos']+(this['score']?'!'+this['score']:'');}static['start'](_0x460531,_0x9597e7,_0x4ba93a=0x0){let _0x5ec555=_0x460531['parser']['context'];return new Stack(_0x460531,[],_0x9597e7,_0x4ba93a,_0x4ba93a,0x0,[],0x0,_0x5ec555?new StackContext(_0x5ec555,_0x5ec555['start']):null,0x0,null);}get['context'](){return this['curContext']?this['curContext']['context']:null;}['pushState'](_0x8c25f5,_0x383e8b){this['stack']['push'](this['state'],_0x383e8b,this['bufferBase']+this['buffer']['length']),this['state']=_0x8c25f5;}['reduce'](_0x1b970a){var _0x8ba39b;let _0xf8a5af=_0x1b970a>>0x13,_0xd815e=0xffff&_0x1b970a,{parser:_0x32143d}=this['p'],_0x36c27b=this['reducePos']<this['pos']-0x19;_0x36c27b&&this['setLookAhead'](this['pos']);let _0x220035=_0x32143d['dynamicPrecedence'](_0xd815e);if(_0x220035&&(this['score']+=_0x220035),0x0==_0xf8a5af)return this['pushState'](_0x32143d['getGoto'](this['state'],_0xd815e,!0x0),this['reducePos']),_0xd815e<_0x32143d['minRepeatTerm']&&this['storeNode'](_0xd815e,this['reducePos'],this['reducePos'],_0x36c27b?0x8:0x4,!0x0),void this['reduceContext'](_0xd815e,this['reducePos']);let _0x336fe3=this['stack']['length']-0x3*(_0xf8a5af-0x1)-(0x40000&_0x1b970a?0x6:0x0),_0x193ba8=_0x336fe3?this['stack'][_0x336fe3-0x2]:this['p']['ranges'][0x0]['from'],_0x4945a1=this['reducePos']-_0x193ba8;_0x4945a1>=0x7d0&&!(null===(_0x8ba39b=this['p']['parser']['nodeSet']['types'][_0xd815e])||void 0x0===_0x8ba39b?void 0x0:_0x8ba39b['isAnonymous'])&&(_0x193ba8==this['p']['lastBigReductionStart']?(this['p']['bigReductionCount']++,this['p']['lastBigReductionSize']=_0x4945a1):this['p']['lastBigReductionSize']<_0x4945a1&&(this['p']['bigReductionCount']=0x1,this['p']['lastBigReductionStart']=_0x193ba8,this['p']['lastBigReductionSize']=_0x4945a1));let _0x181e45=_0x336fe3?this['stack'][_0x336fe3-0x1]:0x0,_0x21a64f=this['bufferBase']+this['buffer']['length']-_0x181e45;if(_0xd815e<_0x32143d['minRepeatTerm']||0x20000&_0x1b970a){let _0x20e9c4=_0x32143d['stateFlag'](this['state'],0x1)?this['pos']:this['reducePos'];this['storeNode'](_0xd815e,_0x193ba8,_0x20e9c4,_0x21a64f+0x4,!0x0);}if(0x40000&_0x1b970a)this['state']=this['stack'][_0x336fe3];else{let _0x3a7a4a=this['stack'][_0x336fe3-0x3];this['state']=_0x32143d['getGoto'](_0x3a7a4a,_0xd815e,!0x0);}for(;this['stack']['length']>_0x336fe3;)this['stack']['pop']();this['reduceContext'](_0xd815e,_0x193ba8);}['storeNode'](_0x21243a,_0x3e1e6e,_0x442508,_0x820e50=0x4,_0x421501=!0x1){if(0x0==_0x21243a&&(!this['stack']['length']||this['stack'][this['stack']['length']-0x1]<this['buffer']['length']+this['bufferBase'])){let _0x38ffca=this,_0x34a18e=this['buffer']['length'];if(0x0==_0x34a18e&&_0x38ffca['parent']&&(_0x34a18e=_0x38ffca['bufferBase']-_0x38ffca['parent']['bufferBase'],_0x38ffca=_0x38ffca['parent']),_0x34a18e>0x0&&0x0==_0x38ffca['buffer'][_0x34a18e-0x4]&&_0x38ffca['buffer'][_0x34a18e-0x1]>-0x1){if(_0x3e1e6e==_0x442508)return;if(_0x38ffca['buffer'][_0x34a18e-0x2]>=_0x3e1e6e)return void(_0x38ffca['buffer'][_0x34a18e-0x2]=_0x442508);}}if(_0x421501&&this['pos']!=_0x442508){let _0x45df1f=this['buffer']['length'];if(_0x45df1f>0x0&&(0x0!=this['buffer'][_0x45df1f-0x4]||this['buffer'][_0x45df1f-0x1]<0x0)){let _0x11fc8c=!0x1;for(let _0x29c891=_0x45df1f;_0x29c891>0x0&&this['buffer'][_0x29c891-0x2]>_0x442508;_0x29c891-=0x4)if(this['buffer'][_0x29c891-0x1]>=0x0){_0x11fc8c=!0x0;break;}if(_0x11fc8c){for(;_0x45df1f>0x0&&this['buffer'][_0x45df1f-0x2]>_0x442508;)this['buffer'][_0x45df1f]=this['buffer'][_0x45df1f-0x4],this['buffer'][_0x45df1f+0x1]=this['buffer'][_0x45df1f-0x3],this['buffer'][_0x45df1f+0x2]=this['buffer'][_0x45df1f-0x2],this['buffer'][_0x45df1f+0x3]=this['buffer'][_0x45df1f-0x1],_0x45df1f-=0x4,_0x820e50>0x4&&(_0x820e50-=0x4);}}this['buffer'][_0x45df1f]=_0x21243a,this['buffer'][_0x45df1f+0x1]=_0x3e1e6e,this['buffer'][_0x45df1f+0x2]=_0x442508,this['buffer'][_0x45df1f+0x3]=_0x820e50;}else this['buffer']['push'](_0x21243a,_0x3e1e6e,_0x442508,_0x820e50);}['shift'](_0x11245d,_0x50b5ff,_0x326828,_0x5a1244){if(0x20000&_0x11245d)this['pushState'](0xffff&_0x11245d,this['pos']);else{if(0x40000&_0x11245d)this['pos']=_0x5a1244,this['shiftContext'](_0x50b5ff,_0x326828),_0x50b5ff<=this['p']['parser']['maxNode']&&this['buffer']['push'](_0x50b5ff,_0x326828,_0x5a1244,0x4);else{let _0x5419ce=_0x11245d,{parser:_0x359c51}=this['p'];(_0x5a1244>this['pos']||_0x50b5ff<=_0x359c51['maxNode'])&&(this['pos']=_0x5a1244,_0x359c51['stateFlag'](_0x5419ce,0x1)||(this['reducePos']=_0x5a1244)),this['pushState'](_0x5419ce,_0x326828),this['shiftContext'](_0x50b5ff,_0x326828),_0x50b5ff<=_0x359c51['maxNode']&&this['buffer']['push'](_0x50b5ff,_0x326828,_0x5a1244,0x4);}}}['apply'](_0x28f8b7,_0x267449,_0x3b8e02,_0x24bf90){0x10000&_0x28f8b7?this['reduce'](_0x28f8b7):this['shift'](_0x28f8b7,_0x267449,_0x3b8e02,_0x24bf90);}['useNode'](_0xf4627,_0x569966){let _0x2360b9=this['p']['reused']['length']-0x1;(_0x2360b9<0x0||this['p']['reused'][_0x2360b9]!=_0xf4627)&&(this['p']['reused']['push'](_0xf4627),_0x2360b9++);let _0x165f53=this['pos'];this['reducePos']=this['pos']=_0x165f53+_0xf4627['length'],this['pushState'](_0x569966,_0x165f53),this['buffer']['push'](_0x2360b9,_0x165f53,this['reducePos'],-0x1),this['curContext']&&this['updateContext'](this['curContext']['tracker']['reuse'](this['curContext']['context'],_0xf4627,this,this['p']['stream']['reset'](this['pos']-_0xf4627['length'])));}['split'](){let _0x41c7c9=this,_0x28ee18=_0x41c7c9['buffer']['length'];for(;_0x28ee18>0x0&&_0x41c7c9['buffer'][_0x28ee18-0x2]>_0x41c7c9['reducePos'];)_0x28ee18-=0x4;let _0x2986f4=_0x41c7c9['buffer']['slice'](_0x28ee18),_0x5772b7=_0x41c7c9['bufferBase']+_0x28ee18;for(;_0x41c7c9&&_0x5772b7==_0x41c7c9['bufferBase'];)_0x41c7c9=_0x41c7c9['parent'];return new Stack(this['p'],this['stack']['slice'](),this['state'],this['reducePos'],this['pos'],this['score'],_0x2986f4,_0x5772b7,this['curContext'],this['lookAhead'],_0x41c7c9);}['recoverByDelete'](_0xbe6e69,_0x1f21ac){let _0x1cd42e=_0xbe6e69<=this['p']['parser']['maxNode'];_0x1cd42e&&this['storeNode'](_0xbe6e69,this['pos'],_0x1f21ac,0x4),this['storeNode'](0x0,this['pos'],_0x1f21ac,_0x1cd42e?0x8:0x4),this['pos']=this['reducePos']=_0x1f21ac,this['score']-=0xbe;}['canShift'](_0x41a6a7){for(let _0x1bf84c=new SimulatedStack(this);;){let _0x5eb2f8=this['p']['parser']['stateSlot'](_0x1bf84c['state'],0x4)||this['p']['parser']['hasAction'](_0x1bf84c['state'],_0x41a6a7);if(0x0==_0x5eb2f8)return!0x1;if(!(0x10000&_0x5eb2f8))return!0x0;_0x1bf84c['reduce'](_0x5eb2f8);}}['recoverByInsert'](_0x23da5b){if(this['stack']['length']>=0x12c)return[];let _0x166a37=this['p']['parser']['nextStates'](this['state']);if(_0x166a37['length']>0x8||this['stack']['length']>=0x78){let _0x4a89a4=[];for(let _0x5eaa2c,_0x5c64a8=0x0;_0x5c64a8<_0x166a37['length'];_0x5c64a8+=0x2)(_0x5eaa2c=_0x166a37[_0x5c64a8+0x1])!=this['state']&&this['p']['parser']['hasAction'](_0x5eaa2c,_0x23da5b)&&_0x4a89a4['push'](_0x166a37[_0x5c64a8],_0x5eaa2c);if(this['stack']['length']<0x78)for(let _0x4c97e7=0x0;_0x4a89a4['length']<0x8&&_0x4c97e7<_0x166a37['length'];_0x4c97e7+=0x2){let _0x5e9e13=_0x166a37[_0x4c97e7+0x1];_0x4a89a4['some']((_0x656edc,_0x141799)=>0x1&_0x141799&&_0x656edc==_0x5e9e13)||_0x4a89a4['push'](_0x166a37[_0x4c97e7],_0x5e9e13);}_0x166a37=_0x4a89a4;}let _0x43cc8b=[];for(let _0x545268=0x0;_0x545268<_0x166a37['length']&&_0x43cc8b['length']<0x4;_0x545268+=0x2){let _0x21f638=_0x166a37[_0x545268+0x1];if(_0x21f638==this['state'])continue;let _0x12d81f=this['split']();_0x12d81f['pushState'](_0x21f638,this['pos']),_0x12d81f['storeNode'](0x0,_0x12d81f['pos'],_0x12d81f['pos'],0x4,!0x0),_0x12d81f['shiftContext'](_0x166a37[_0x545268],this['pos']),_0x12d81f['reducePos']=this['pos'],_0x12d81f['score']-=0xc8,_0x43cc8b['push'](_0x12d81f);}return _0x43cc8b;}['forceReduce'](){let {parser:_0x2232b0}=this['p'],_0x2fd54f=_0x2232b0['stateSlot'](this['state'],0x5);if(!(0x10000&_0x2fd54f))return!0x1;if(!_0x2232b0['validAction'](this['state'],_0x2fd54f)){let _0x21d6c7=_0x2fd54f>>0x13,_0x47c1e6=0xffff&_0x2fd54f,_0x1776da=this['stack']['length']-0x3*_0x21d6c7;if(_0x1776da<0x0||_0x2232b0['getGoto'](this['stack'][_0x1776da],_0x47c1e6,!0x1)<0x0){let _0x5764e8=this['findForcedReduction']();if(null==_0x5764e8)return!0x1;_0x2fd54f=_0x5764e8;}this['storeNode'](0x0,this['pos'],this['pos'],0x4,!0x0),this['score']-=0x64;}return this['reducePos']=this['pos'],this['reduce'](_0x2fd54f),!0x0;}['findForcedReduction'](){let {parser:_0x52ff70}=this['p'],_0x40afff=[],_0x57ba40=(_0x5a7700,_0x5bf7be)=>{if(!_0x40afff['includes'](_0x5a7700))return _0x40afff['push'](_0x5a7700),_0x52ff70['allActions'](_0x5a7700,_0x21a01f=>{if(0x60000&_0x21a01f);else{if(0x10000&_0x21a01f){let _0x24d7bb=(_0x21a01f>>0x13)-_0x5bf7be;if(_0x24d7bb>0x1){let _0x5d8eaf=0xffff&_0x21a01f,_0x59a5d2=this['stack']['length']-0x3*_0x24d7bb;if(_0x59a5d2>=0x0&&_0x52ff70['getGoto'](this['stack'][_0x59a5d2],_0x5d8eaf,!0x1)>=0x0)return _0x24d7bb<<0x13|0x10000|_0x5d8eaf;}}else{let _0x509152=_0x57ba40(_0x21a01f,_0x5bf7be+0x1);if(null!=_0x509152)return _0x509152;}}});};return _0x57ba40(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:_0x506bae}=this['p'];return 0xffff==_0x506bae['data'][_0x506bae['stateSlot'](this['state'],0x1)]&&!_0x506bae['stateSlot'](this['state'],0x4);}['restart'](){this['storeNode'](0x0,this['pos'],this['pos'],0x4,!0x0),this['state']=this['stack'][0x0],this['stack']['length']=0x0;}['sameState'](_0x3c9d9c){if(this['state']!=_0x3c9d9c['state']||this['stack']['length']!=_0x3c9d9c['stack']['length'])return!0x1;for(let _0x41b2a0=0x0;_0x41b2a0<this['stack']['length'];_0x41b2a0+=0x3)if(this['stack'][_0x41b2a0]!=_0x3c9d9c['stack'][_0x41b2a0])return!0x1;return!0x0;}get['parser'](){return this['p']['parser'];}['dialectEnabled'](_0x51eda6){return this['p']['parser']['dialect']['flags'][_0x51eda6];}['shiftContext'](_0xf28390,_0x204827){this['curContext']&&this['updateContext'](this['curContext']['tracker']['shift'](this['curContext']['context'],_0xf28390,this,this['p']['stream']['reset'](_0x204827)));}['reduceContext'](_0x5ac1dc,_0x397810){this['curContext']&&this['updateContext'](this['curContext']['tracker']['reduce'](this['curContext']['context'],_0x5ac1dc,this,this['p']['stream']['reset'](_0x397810)));}['emitContext'](){let _0x3a838e=this['buffer']['length']-0x1;(_0x3a838e<0x0||-0x3!=this['buffer'][_0x3a838e])&&this['buffer']['push'](this['curContext']['hash'],this['pos'],this['pos'],-0x3);}['emitLookAhead'](){let _0x354deb=this['buffer']['length']-0x1;(_0x354deb<0x0||-0x4!=this['buffer'][_0x354deb])&&this['buffer']['push'](this['lookAhead'],this['pos'],this['pos'],-0x4);}['updateContext'](_0x4fb59a){if(_0x4fb59a!=this['curContext']['context']){let _0xa0764a=new StackContext(this['curContext']['tracker'],_0x4fb59a);_0xa0764a['hash']!=this['curContext']['hash']&&this['emitContext'](),this['curContext']=_0xa0764a;}}['setLookAhead'](_0x495767){_0x495767>this['lookAhead']&&(this['emitLookAhead'](),this['lookAhead']=_0x495767);}['close'](){this['curContext']&&this['curContext']['tracker']['strict']&&this['emitContext'](),this['lookAhead']>0x0&&this['emitLookAhead']();}}class StackContext{constructor(_0x464f19,_0x3eb010){this['tracker']=_0x464f19,this['context']=_0x3eb010,this['hash']=_0x464f19['strict']?_0x464f19['hash'](_0x3eb010):0x0;}}class SimulatedStack{constructor(_0x1014f4){this['start']=_0x1014f4,this['state']=_0x1014f4['state'],this['stack']=_0x1014f4['stack'],this['base']=this['stack']['length'];}['reduce'](_0x2f6d09){let _0xaf9645=0xffff&_0x2f6d09,_0x150dce=_0x2f6d09>>0x13;0x0==_0x150dce?(this['stack']==this['start']['stack']&&(this['stack']=this['stack']['slice']()),this['stack']['push'](this['state'],0x0,0x0),this['base']+=0x3):this['base']-=0x3*(_0x150dce-0x1);let _0x5c5244=this['start']['p']['parser']['getGoto'](this['stack'][this['base']-0x3],_0xaf9645,!0x0);this['state']=_0x5c5244;}}class StackBufferCursor{constructor(_0x39c5ef,_0x47e6a3,_0x851ee2){this['stack']=_0x39c5ef,this['pos']=_0x47e6a3,this['index']=_0x851ee2,this['buffer']=_0x39c5ef['buffer'],0x0==this['index']&&this['maybeNext']();}static['create'](_0xdb9b78,_0x4a7643=_0xdb9b78['bufferBase']+_0xdb9b78['buffer']['length']){return new StackBufferCursor(_0xdb9b78,_0x4a7643,_0x4a7643-_0xdb9b78['bufferBase']);}['maybeNext'](){let _0x24721f=this['stack']['parent'];null!=_0x24721f&&(this['index']=this['stack']['bufferBase']-_0x24721f['bufferBase'],this['stack']=_0x24721f,this['buffer']=_0x24721f['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(_0x1107e6,_0x1ad1b1=Uint16Array){if('string'!=typeof _0x1107e6)return _0x1107e6;let _0x137822=null;for(let _0x1c9a53=0x0,_0x2e3189=0x0;_0x1c9a53<_0x1107e6['length'];){let _0x16d956=0x0;for(;;){let _0x3d2e2c=_0x1107e6['charCodeAt'](_0x1c9a53++),_0x316177=!0x1;if(0x7e==_0x3d2e2c){_0x16d956=0xffff;break;}_0x3d2e2c>=0x5c&&_0x3d2e2c--,_0x3d2e2c>=0x22&&_0x3d2e2c--;let _0x386f2c=_0x3d2e2c-0x20;if(_0x386f2c>=0x2e&&(_0x386f2c-=0x2e,_0x316177=!0x0),_0x16d956+=_0x386f2c,_0x316177)break;_0x16d956*=0x2e;}_0x137822?_0x137822[_0x2e3189++]=_0x16d956:_0x137822=new _0x1ad1b1(_0x16d956);}return _0x137822;}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(_0x459ee8,_0x4f8beb){this['input']=_0x459ee8,this['ranges']=_0x4f8beb,this['chunk']='',this['chunkOff']=0x0,this['chunk2']='',this['chunk2Pos']=0x0,this['next']=-0x1,this['token']=nullToken,this['rangeIndex']=0x0,this['pos']=this['chunkPos']=_0x4f8beb[0x0]['from'],this['range']=_0x4f8beb[0x0],this['end']=_0x4f8beb[_0x4f8beb['length']-0x1]['to'],this['readNext']();}['resolveOffset'](_0x2b3748,_0x248160){let _0x5acb7f=this['range'],_0x3a40c2=this['rangeIndex'],_0x37f492=this['pos']+_0x2b3748;for(;_0x37f492<_0x5acb7f['from'];){if(!_0x3a40c2)return null;let _0x53e501=this['ranges'][--_0x3a40c2];_0x37f492-=_0x5acb7f['from']-_0x53e501['to'],_0x5acb7f=_0x53e501;}for(;_0x248160<0x0?_0x37f492>_0x5acb7f['to']:_0x37f492>=_0x5acb7f['to'];){if(_0x3a40c2==this['ranges']['length']-0x1)return null;let _0x3a0b72=this['ranges'][++_0x3a40c2];_0x37f492+=_0x3a0b72['from']-_0x5acb7f['to'],_0x5acb7f=_0x3a0b72;}return _0x37f492;}['clipPos'](_0x19567c){if(_0x19567c>=this['range']['from']&&_0x19567c<this['range']['to'])return _0x19567c;for(let _0x3ff961 of this['ranges'])if(_0x3ff961['to']>_0x19567c)return Math['max'](_0x19567c,_0x3ff961['from']);return this['end'];}['peek'](_0x1b1446){let _0x4eddc2,_0x38e139,_0x1cef9c=this['chunkOff']+_0x1b1446;if(_0x1cef9c>=0x0&&_0x1cef9c<this['chunk']['length'])_0x4eddc2=this['pos']+_0x1b1446,_0x38e139=this['chunk']['charCodeAt'](_0x1cef9c);else{let _0x2b631c=this['resolveOffset'](_0x1b1446,0x1);if(null==_0x2b631c)return-0x1;if(_0x4eddc2=_0x2b631c,_0x4eddc2>=this['chunk2Pos']&&_0x4eddc2<this['chunk2Pos']+this['chunk2']['length'])_0x38e139=this['chunk2']['charCodeAt'](_0x4eddc2-this['chunk2Pos']);else{let _0x47bfef=this['rangeIndex'],_0x51c898=this['range'];for(;_0x51c898['to']<=_0x4eddc2;)_0x51c898=this['ranges'][++_0x47bfef];this['chunk2']=this['input']['chunk'](this['chunk2Pos']=_0x4eddc2),_0x4eddc2+this['chunk2']['length']>_0x51c898['to']&&(this['chunk2']=this['chunk2']['slice'](0x0,_0x51c898['to']-_0x4eddc2)),_0x38e139=this['chunk2']['charCodeAt'](0x0);}}return _0x4eddc2>=this['token']['lookAhead']&&(this['token']['lookAhead']=_0x4eddc2+0x1),_0x38e139;}['acceptToken'](_0x3030c0,_0x4a4c25=0x0){let _0x409162=_0x4a4c25?this['resolveOffset'](_0x4a4c25,-0x1):this['pos'];if(null==_0x409162||_0x409162<this['token']['start'])throw new RangeError('Token\x20end\x20out\x20of\x20bounds');this['token']['value']=_0x3030c0,this['token']['end']=_0x409162;}['acceptTokenTo'](_0x5e7524,_0x5a1f91){this['token']['value']=_0x5e7524,this['token']['end']=_0x5a1f91;}['getChunk'](){if(this['pos']>=this['chunk2Pos']&&this['pos']<this['chunk2Pos']+this['chunk2']['length']){let {chunk:_0x320978,chunkPos:_0x5a09e1}=this;this['chunk']=this['chunk2'],this['chunkPos']=this['chunk2Pos'],this['chunk2']=_0x320978,this['chunk2Pos']=_0x5a09e1,this['chunkOff']=this['pos']-this['chunkPos'];}else{this['chunk2']=this['chunk'],this['chunk2Pos']=this['chunkPos'];let _0x34b32e=this['input']['chunk'](this['pos']),_0x3cba02=this['pos']+_0x34b32e['length'];this['chunk']=_0x3cba02>this['range']['to']?_0x34b32e['slice'](0x0,this['range']['to']-this['pos']):_0x34b32e,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'](_0xd1bca5=0x1){for(this['chunkOff']+=_0xd1bca5;this['pos']+_0xd1bca5>=this['range']['to'];){if(this['rangeIndex']==this['ranges']['length']-0x1)return this['setDone']();_0xd1bca5-=this['range']['to']-this['pos'],this['range']=this['ranges'][++this['rangeIndex']],this['pos']=this['range']['from'];}return this['pos']+=_0xd1bca5,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'](_0x25eff3,_0x40d9b5){if(_0x40d9b5?(this['token']=_0x40d9b5,_0x40d9b5['start']=_0x25eff3,_0x40d9b5['lookAhead']=_0x25eff3+0x1,_0x40d9b5['value']=_0x40d9b5['extended']=-0x1):this['token']=nullToken,this['pos']!=_0x25eff3){if(this['pos']=_0x25eff3,_0x25eff3==this['end'])return this['setDone'](),this;for(;_0x25eff3<this['range']['from'];)this['range']=this['ranges'][--this['rangeIndex']];for(;_0x25eff3>=this['range']['to'];)this['range']=this['ranges'][++this['rangeIndex']];_0x25eff3>=this['chunkPos']&&_0x25eff3<this['chunkPos']+this['chunk']['length']?this['chunkOff']=_0x25eff3-this['chunkPos']:(this['chunk']='',this['chunkOff']=0x0),this['readNext']();}return this;}['read'](_0x4d953b,_0x9b6e82){if(_0x4d953b>=this['chunkPos']&&_0x9b6e82<=this['chunkPos']+this['chunk']['length'])return this['chunk']['slice'](_0x4d953b-this['chunkPos'],_0x9b6e82-this['chunkPos']);if(_0x4d953b>=this['chunk2Pos']&&_0x9b6e82<=this['chunk2Pos']+this['chunk2']['length'])return this['chunk2']['slice'](_0x4d953b-this['chunk2Pos'],_0x9b6e82-this['chunk2Pos']);if(_0x4d953b>=this['range']['from']&&_0x9b6e82<=this['range']['to'])return this['input']['read'](_0x4d953b,_0x9b6e82);let _0x1006d2='';for(let _0x165fce of this['ranges']){if(_0x165fce['from']>=_0x9b6e82)break;_0x165fce['to']>_0x4d953b&&(_0x1006d2+=this['input']['read'](Math['max'](_0x165fce['from'],_0x4d953b),Math['min'](_0x165fce['to'],_0x9b6e82)));}return _0x1006d2;}}class TokenGroup{constructor(_0x2bee30,_0x25d348){this['data']=_0x2bee30,this['id']=_0x25d348;}['token'](_0x52be44,_0x36181c){let {parser:_0x514e7e}=_0x36181c['p'];readToken(this['data'],_0x52be44,_0x36181c,this['id'],_0x514e7e['data'],_0x514e7e['tokenPrecTable']);}}TokenGroup['prototype']['contextual']=TokenGroup['prototype']['fallback']=TokenGroup['prototype']['extend']=!0x1;class LocalTokenGroup{constructor(_0x140657,_0x767cdc,_0x3f8a1e){this['precTable']=_0x767cdc,this['elseToken']=_0x3f8a1e,this['data']='string'==typeof _0x140657?decodeArray(_0x140657):_0x140657;}['token'](_0x2ab0f1,_0x420b0d){let _0xd44479=_0x2ab0f1['pos'],_0x1850fb=0x0;for(;;){let _0x15b2d5=_0x2ab0f1['next']<0x0,_0x573651=_0x2ab0f1['resolveOffset'](0x1,0x1);if(readToken(this['data'],_0x2ab0f1,_0x420b0d,0x0,this['data'],this['precTable']),_0x2ab0f1['token']['value']>-0x1)break;if(null==this['elseToken'])return;if(_0x15b2d5||_0x1850fb++,null==_0x573651)break;_0x2ab0f1['reset'](_0x573651,_0x2ab0f1['token']);}_0x1850fb&&(_0x2ab0f1['reset'](_0xd44479,_0x2ab0f1['token']),_0x2ab0f1['acceptToken'](this['elseToken'],_0x1850fb));}}LocalTokenGroup['prototype']['contextual']=TokenGroup['prototype']['fallback']=TokenGroup['prototype']['extend']=!0x1;class ExternalTokenizer{constructor(_0x48df3f,_0x53a99d={}){this['token']=_0x48df3f,this['contextual']=!!_0x53a99d['contextual'],this['fallback']=!!_0x53a99d['fallback'],this['extend']=!!_0x53a99d['extend'];}}function readToken(_0x307363,_0x35c96e,_0x44a534,_0x541741,_0x92aad6,_0x5a0ff6){let _0x104199=0x0,_0x29f362=0x1<<_0x541741,{dialect:_0x4dcf25}=_0x44a534['p']['parser'];t:for(;0x0!=(_0x29f362&_0x307363[_0x104199]);){let _0xa8335b=_0x307363[_0x104199+0x1];for(let _0x4ce603=_0x104199+0x3;_0x4ce603<_0xa8335b;_0x4ce603+=0x2)if((_0x307363[_0x4ce603+0x1]&_0x29f362)>0x0){let _0x15ef2d=_0x307363[_0x4ce603];if(_0x4dcf25['allows'](_0x15ef2d)&&(-0x1==_0x35c96e['token']['value']||_0x35c96e['token']['value']==_0x15ef2d||overrides(_0x15ef2d,_0x35c96e['token']['value'],_0x92aad6,_0x5a0ff6))){_0x35c96e['acceptToken'](_0x15ef2d);break;}}let _0x19788e=_0x35c96e['next'],_0x773aaa=0x0,_0x5254ba=_0x307363[_0x104199+0x2];if(!(_0x35c96e['next']<0x0&&_0x5254ba>_0x773aaa&&0xffff==_0x307363[_0xa8335b+0x3*_0x5254ba-0x3])){for(;_0x773aaa<_0x5254ba;){let _0x22dc02=_0x773aaa+_0x5254ba>>0x1,_0x544c30=_0xa8335b+_0x22dc02+(_0x22dc02<<0x1),_0x2096d9=_0x307363[_0x544c30],_0x3824df=_0x307363[_0x544c30+0x1]||0x10000;if(_0x19788e<_0x2096d9)_0x5254ba=_0x22dc02;else{if(!(_0x19788e>=_0x3824df)){_0x104199=_0x307363[_0x544c30+0x2],_0x35c96e['advance']();continue t;}_0x773aaa=_0x22dc02+0x1;}}break;}_0x104199=_0x307363[_0xa8335b+0x3*_0x5254ba-0x1];}}function findOffset(_0x12d3b7,_0x45ba2d,_0x1e684f){for(let _0x587da3,_0x22b63a=_0x45ba2d;0xffff!=(_0x587da3=_0x12d3b7[_0x22b63a]);_0x22b63a++)if(_0x587da3==_0x1e684f)return _0x22b63a-_0x45ba2d;return-0x1;}function overrides(_0x457bca,_0xa1ae1e,_0x4eaf08,_0x241f76){let _0x525868=findOffset(_0x4eaf08,_0x241f76,_0xa1ae1e);return _0x525868<0x0||findOffset(_0x4eaf08,_0x241f76,_0x457bca)<_0x525868;}const verbose='undefined'!=typeof process&&process['env']&&/\bparse\b/['test'](process['env']['LOG']);let stackIDs=null;function cutAt(_0x39db9d,_0x11b35b,_0xa66f25){let _0x4e5aef=_0x39db9d['cursor'](IterMode['IncludeAnonymous']);for(_0x4e5aef['moveTo'](_0x11b35b);;)if(!(_0xa66f25<0x0?_0x4e5aef['childBefore'](_0x11b35b):_0x4e5aef['childAfter'](_0x11b35b)))for(;;){if((_0xa66f25<0x0?_0x4e5aef['to']<_0x11b35b:_0x4e5aef['from']>_0x11b35b)&&!_0x4e5aef['type']['isError'])return _0xa66f25<0x0?Math['max'](0x0,Math['min'](_0x4e5aef['to']-0x1,_0x11b35b-0x19)):Math['min'](_0x39db9d['length'],Math['max'](_0x4e5aef['from']+0x1,_0x11b35b+0x19));if(_0xa66f25<0x0?_0x4e5aef['prevSibling']():_0x4e5aef['nextSibling']())break;if(!_0x4e5aef['parent']())return _0xa66f25<0x0?0x0:_0x39db9d['length'];}}let FragmentCursor$1=class{constructor(_0x38e7d9,_0x2460ac){this['fragments']=_0x38e7d9,this['nodeSet']=_0x2460ac,this['i']=0x0,this['fragment']=null,this['safeFrom']=-0x1,this['safeTo']=-0x1,this['trees']=[],this['start']=[],this['index']=[],this['nextFragment']();}['nextFragment'](){let _0xeb9d5f=this['fragment']=this['i']==this['fragments']['length']?null:this['fragments'][this['i']++];if(_0xeb9d5f){for(this['safeFrom']=_0xeb9d5f['openStart']?cutAt(_0xeb9d5f['tree'],_0xeb9d5f['from']+_0xeb9d5f['offset'],0x1)-_0xeb9d5f['offset']:_0xeb9d5f['from'],this['safeTo']=_0xeb9d5f['openEnd']?cutAt(_0xeb9d5f['tree'],_0xeb9d5f['to']+_0xeb9d5f['offset'],-0x1)-_0xeb9d5f['offset']:_0xeb9d5f['to'];this['trees']['length'];)this['trees']['pop'](),this['start']['pop'](),this['index']['pop']();this['trees']['push'](_0xeb9d5f['tree']),this['start']['push'](-_0xeb9d5f['offset']),this['index']['push'](0x0),this['nextStart']=this['safeFrom'];}else this['nextStart']=0x3b9aca00;}['nodeAt'](_0x3c235e){if(_0x3c235e<this['nextStart'])return null;for(;this['fragment']&&this['safeTo']<=_0x3c235e;)this['nextFragment']();if(!this['fragment'])return null;for(;;){let _0x4a6ddc=this['trees']['length']-0x1;if(_0x4a6ddc<0x0)return this['nextFragment'](),null;let _0x2161c7=this['trees'][_0x4a6ddc],_0x43263c=this['index'][_0x4a6ddc];if(_0x43263c==_0x2161c7['children']['length']){this['trees']['pop'](),this['start']['pop'](),this['index']['pop']();continue;}let _0x394dc6=_0x2161c7['children'][_0x43263c],_0xd57745=this['start'][_0x4a6ddc]+_0x2161c7['positions'][_0x43263c];if(_0xd57745>_0x3c235e)return this['nextStart']=_0xd57745,null;if(_0x394dc6 instanceof Tree){if(_0xd57745==_0x3c235e){if(_0xd57745<this['safeFrom'])return null;let _0xb37408=_0xd57745+_0x394dc6['length'];if(_0xb37408<=this['safeTo']){let _0x4aa41a=_0x394dc6['prop'](NodeProp['lookAhead']);if(!_0x4aa41a||_0xb37408+_0x4aa41a<this['fragment']['to'])return _0x394dc6;}}this['index'][_0x4a6ddc]++,_0xd57745+_0x394dc6['length']>=Math['max'](this['safeFrom'],_0x3c235e)&&(this['trees']['push'](_0x394dc6),this['start']['push'](_0xd57745),this['index']['push'](0x0));}else this['index'][_0x4a6ddc]++,this['nextStart']=_0xd57745+_0x394dc6['length'];}}};class TokenCache{constructor(_0x3a9622,_0x2ad842){this['stream']=_0x2ad842,this['tokens']=[],this['mainToken']=null,this['actions']=[],this['tokens']=_0x3a9622['tokenizers']['map'](_0xd13d24=>new CachedToken());}['getActions'](_0x1153ed){let _0x38a499=0x0,_0x3f1b28=null,{parser:_0x285a3d}=_0x1153ed['p'],{tokenizers:_0x3aaf14}=_0x285a3d,_0x2e7121=_0x285a3d['stateSlot'](_0x1153ed['state'],0x3),_0x3d75a9=_0x1153ed['curContext']?_0x1153ed['curContext']['hash']:0x0,_0x1c99b6=0x0;for(let _0x3c3710=0x0;_0x3c3710<_0x3aaf14['length'];_0x3c3710++){if(!(0x1<<_0x3c3710&_0x2e7121))continue;let _0x248d23=_0x3aaf14[_0x3c3710],_0x49a3f1=this['tokens'][_0x3c3710];if((!_0x3f1b28||_0x248d23['fallback'])&&((_0x248d23['contextual']||_0x49a3f1['start']!=_0x1153ed['pos']||_0x49a3f1['mask']!=_0x2e7121||_0x49a3f1['context']!=_0x3d75a9)&&(this['updateCachedToken'](_0x49a3f1,_0x248d23,_0x1153ed),_0x49a3f1['mask']=_0x2e7121,_0x49a3f1['context']=_0x3d75a9),_0x49a3f1['lookAhead']>_0x49a3f1['end']+0x19&&(_0x1c99b6=Math['max'](_0x49a3f1['lookAhead'],_0x1c99b6)),0x0!=_0x49a3f1['value'])){let _0x3b6064=_0x38a499;if(_0x49a3f1['extended']>-0x1&&(_0x38a499=this['addActions'](_0x1153ed,_0x49a3f1['extended'],_0x49a3f1['end'],_0x38a499)),_0x38a499=this['addActions'](_0x1153ed,_0x49a3f1['value'],_0x49a3f1['end'],_0x38a499),!_0x248d23['extend']&&(_0x3f1b28=_0x49a3f1,_0x38a499>_0x3b6064))break;}}for(;this['actions']['length']>_0x38a499;)this['actions']['pop']();return _0x1c99b6&&_0x1153ed['setLookAhead'](_0x1c99b6),_0x3f1b28||_0x1153ed['pos']!=this['stream']['end']||(_0x3f1b28=new CachedToken(),_0x3f1b28['value']=_0x1153ed['p']['parser']['eofTerm'],_0x3f1b28['start']=_0x3f1b28['end']=_0x1153ed['pos'],_0x38a499=this['addActions'](_0x1153ed,_0x3f1b28['value'],_0x3f1b28['end'],_0x38a499)),this['mainToken']=_0x3f1b28,this['actions'];}['getMainToken'](_0x2f7a01){if(this['mainToken'])return this['mainToken'];let _0xfb85fd=new CachedToken(),{pos:_0x50cba9,p:_0x1461d4}=_0x2f7a01;return _0xfb85fd['start']=_0x50cba9,_0xfb85fd['end']=Math['min'](_0x50cba9+0x1,_0x1461d4['stream']['end']),_0xfb85fd['value']=_0x50cba9==_0x1461d4['stream']['end']?_0x1461d4['parser']['eofTerm']:0x0,_0xfb85fd;}['updateCachedToken'](_0x502b52,_0x19f08b,_0x17298d){let _0x559bf6=this['stream']['clipPos'](_0x17298d['pos']);if(_0x19f08b['token'](this['stream']['reset'](_0x559bf6,_0x502b52),_0x17298d),_0x502b52['value']>-0x1){let {parser:_0x487888}=_0x17298d['p'];for(let _0x2571ef=0x0;_0x2571ef<_0x487888['specialized']['length'];_0x2571ef++)if(_0x487888['specialized'][_0x2571ef]==_0x502b52['value']){let _0x1705e2=_0x487888['specializers'][_0x2571ef](this['stream']['read'](_0x502b52['start'],_0x502b52['end']),_0x17298d);if(_0x1705e2>=0x0&&_0x17298d['p']['parser']['dialect']['allows'](_0x1705e2>>0x1)){0x1&_0x1705e2?_0x502b52['extended']=_0x1705e2>>0x1:_0x502b52['value']=_0x1705e2>>0x1;break;}}}else _0x502b52['value']=0x0,_0x502b52['end']=this['stream']['clipPos'](_0x559bf6+0x1);}['putAction'](_0x13727a,_0x5e0684,_0x37179c,_0x3d3e48){for(let _0x4456dd=0x0;_0x4456dd<_0x3d3e48;_0x4456dd+=0x3)if(this['actions'][_0x4456dd]==_0x13727a)return _0x3d3e48;return this['actions'][_0x3d3e48++]=_0x13727a,this['actions'][_0x3d3e48++]=_0x5e0684,this['actions'][_0x3d3e48++]=_0x37179c,_0x3d3e48;}['addActions'](_0x2521b2,_0x17bfeb,_0x2cd11a,_0x15afdf){let {state:_0x132bfe}=_0x2521b2,{parser:_0x5f1e72}=_0x2521b2['p'],{data:_0x225a48}=_0x5f1e72;for(let _0x1bb12f=0x0;_0x1bb12f<0x2;_0x1bb12f++)for(let _0x220c20=_0x5f1e72['stateSlot'](_0x132bfe,_0x1bb12f?0x2:0x1);;_0x220c20+=0x3){if(0xffff==_0x225a48[_0x220c20]){if(0x1!=_0x225a48[_0x220c20+0x1]){0x0==_0x15afdf&&0x2==_0x225a48[_0x220c20+0x1]&&(_0x15afdf=this['putAction'](pair(_0x225a48,_0x220c20+0x2),_0x17bfeb,_0x2cd11a,_0x15afdf));break;}_0x220c20=pair(_0x225a48,_0x220c20+0x2);}_0x225a48[_0x220c20]==_0x17bfeb&&(_0x15afdf=this['putAction'](pair(_0x225a48,_0x220c20+0x1),_0x17bfeb,_0x2cd11a,_0x15afdf));}return _0x15afdf;}}class Parse{constructor(_0xc9e5cb,_0x519537,_0x4aa06f,_0x38c409){this['parser']=_0xc9e5cb,this['input']=_0x519537,this['ranges']=_0x38c409,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(_0x519537,_0x38c409),this['tokens']=new TokenCache(_0xc9e5cb,this['stream']),this['topTerm']=_0xc9e5cb['top'][0x1];let {from:_0x4f81cc}=_0x38c409[0x0];this['stacks']=[Stack['start'](this,_0xc9e5cb['top'][0x0],_0x4f81cc)],this['fragments']=_0x4aa06f['length']&&this['stream']['end']-_0x4f81cc>0x4*_0xc9e5cb['bufferLength']?new FragmentCursor$1(_0x4aa06f,_0xc9e5cb['nodeSet']):null;}get['parsedPos'](){return this['minStackPos'];}['advance'](){let _0x9b8324,_0x5f3beb,_0x47ab83=this['stacks'],_0x4b3814=this['minStackPos'],_0x16ae75=this['stacks']=[];if(this['bigReductionCount']>0x12c&&0x1==_0x47ab83['length']){let [_0x46c9d1]=_0x47ab83;for(;_0x46c9d1['forceReduce']()&&_0x46c9d1['stack']['length']&&_0x46c9d1['stack'][_0x46c9d1['stack']['length']-0x2]>=this['lastBigReductionStart'];);this['bigReductionCount']=this['lastBigReductionSize']=0x0;}for(let _0x2c5a08=0x0;_0x2c5a08<_0x47ab83['length'];_0x2c5a08++){let _0x3724c7=_0x47ab83[_0x2c5a08];for(;;){if(this['tokens']['mainToken']=null,_0x3724c7['pos']>_0x4b3814)_0x16ae75['push'](_0x3724c7);else{if(this['advanceStack'](_0x3724c7,_0x16ae75,_0x47ab83))continue;{_0x9b8324||(_0x9b8324=[],_0x5f3beb=[]),_0x9b8324['push'](_0x3724c7);let _0x3af86b=this['tokens']['getMainToken'](_0x3724c7);_0x5f3beb['push'](_0x3af86b['value'],_0x3af86b['end']);}}break;}}if(!_0x16ae75['length']){let _0x10f804=_0x9b8324&&findFinished(_0x9b8324);if(_0x10f804)return verbose&&console['log']('Finish\x20with\x20'+this['stackID'](_0x10f804)),this['stackToTree'](_0x10f804);if(this['parser']['strict'])throw verbose&&_0x9b8324&&console['log']('Stuck\x20with\x20token\x20'+(this['tokens']['mainToken']?this['parser']['getName'](this['tokens']['mainToken']['value']):'none')),new SyntaxError('No\x20parse\x20at\x20'+_0x4b3814);this['recovering']||(this['recovering']=0x5);}if(this['recovering']&&_0x9b8324){let _0x305935=null!=this['stoppedAt']&&_0x9b8324[0x0]['pos']>this['stoppedAt']?_0x9b8324[0x0]:this['runRecovery'](_0x9b8324,_0x5f3beb,_0x16ae75);if(_0x305935)return verbose&&console['log']('Force-finish\x20'+this['stackID'](_0x305935)),this['stackToTree'](_0x305935['forceAll']());}if(this['recovering']){let _0x46f90b=0x1==this['recovering']?0x1:0x3*this['recovering'];if(_0x16ae75['length']>_0x46f90b){for(_0x16ae75['sort']((_0x4950fc,_0x2dc100)=>_0x2dc100['score']-_0x4950fc['score']);_0x16ae75['length']>_0x46f90b;)_0x16ae75['pop']();}_0x16ae75['some'](_0x32e851=>_0x32e851['reducePos']>_0x4b3814)&&this['recovering']--;}else{if(_0x16ae75['length']>0x1){t:for(let _0x20953d=0x0;_0x20953d<_0x16ae75['length']-0x1;_0x20953d++){let _0x325438=_0x16ae75[_0x20953d];for(let _0x3cb124=_0x20953d+0x1;_0x3cb124<_0x16ae75['length'];_0x3cb124++){let _0x57a407=_0x16ae75[_0x3cb124];if(_0x325438['sameState'](_0x57a407)||_0x325438['buffer']['length']>0x1f4&&_0x57a407['buffer']['length']>0x1f4){if(!((_0x325438['score']-_0x57a407['score']||_0x325438['buffer']['length']-_0x57a407['buffer']['length'])>0x0)){_0x16ae75['splice'](_0x20953d--,0x1);continue t;}_0x16ae75['splice'](_0x3cb124--,0x1);}}}_0x16ae75['length']>0xc&&_0x16ae75['splice'](0xc,_0x16ae75['length']-0xc);}}this['minStackPos']=_0x16ae75[0x0]['pos'];for(let _0x3da808=0x1;_0x3da808<_0x16ae75['length'];_0x3da808++)_0x16ae75[_0x3da808]['pos']<this['minStackPos']&&(this['minStackPos']=_0x16ae75[_0x3da808]['pos']);return null;}['stopAt'](_0x20abdb){if(null!=this['stoppedAt']&&this['stoppedAt']<_0x20abdb)throw new RangeError('Can\x27t\x20move\x20stoppedAt\x20forward');this['stoppedAt']=_0x20abdb;}['advanceStack'](_0x910c1a,_0x3e07db,_0x43072d){let _0x52fcad=_0x910c1a['pos'],{parser:_0x2ff92e}=this,_0x131f56=verbose?this['stackID'](_0x910c1a)+'\x20->\x20':'';if(null!=this['stoppedAt']&&_0x52fcad>this['stoppedAt'])return _0x910c1a['forceReduce']()?_0x910c1a:null;if(this['fragments']){let _0x4be99f=_0x910c1a['curContext']&&_0x910c1a['curContext']['tracker']['strict'],_0x47dba4=_0x4be99f?_0x910c1a['curContext']['hash']:0x0;for(let _0x9ba01e=this['fragments']['nodeAt'](_0x52fcad);_0x9ba01e;){let _0x2f78a9=this['parser']['nodeSet']['types'][_0x9ba01e['type']['id']]==_0x9ba01e['type']?_0x2ff92e['getGoto'](_0x910c1a['state'],_0x9ba01e['type']['id']):-0x1;if(_0x2f78a9>-0x1&&_0x9ba01e['length']&&(!_0x4be99f||(_0x9ba01e['prop'](NodeProp['contextHash'])||0x0)==_0x47dba4))return _0x910c1a['useNode'](_0x9ba01e,_0x2f78a9),verbose&&console['log'](_0x131f56+this['stackID'](_0x910c1a)+('\x20(via\x20reuse\x20of\x20'+_0x2ff92e['getName'](_0x9ba01e['type']['id'])+')')),!0x0;if(!(_0x9ba01e instanceof Tree)||0x0==_0x9ba01e['children']['length']||_0x9ba01e['positions'][0x0]>0x0)break;let _0x20179e=_0x9ba01e['children'][0x0];if(!(_0x20179e instanceof Tree&&0x0==_0x9ba01e['positions'][0x0]))break;_0x9ba01e=_0x20179e;}}let _0x4409a3=_0x2ff92e['stateSlot'](_0x910c1a['state'],0x4);if(_0x4409a3>0x0)return _0x910c1a['reduce'](_0x4409a3),verbose&&console['log'](_0x131f56+this['stackID'](_0x910c1a)+('\x20(via\x20always-reduce\x20'+_0x2ff92e['getName'](0xffff&_0x4409a3)+')')),!0x0;if(_0x910c1a['stack']['length']>=0x20d0){for(;_0x910c1a['stack']['length']>0x1770&&_0x910c1a['forceReduce'](););}let _0xb41da8=this['tokens']['getActions'](_0x910c1a);for(let _0x5cfa05=0x0;_0x5cfa05<_0xb41da8['length'];){let _0x48ce7e=_0xb41da8[_0x5cfa05++],_0x478208=_0xb41da8[_0x5cfa05++],_0x14248d=_0xb41da8[_0x5cfa05++],_0x414db5=_0x5cfa05==_0xb41da8['length']||!_0x43072d,_0x53f673=_0x414db5?_0x910c1a:_0x910c1a['split'](),_0x4718fd=this['tokens']['mainToken'];if(_0x53f673['apply'](_0x48ce7e,_0x478208,_0x4718fd?_0x4718fd['start']:_0x53f673['pos'],_0x14248d),verbose&&console['log'](_0x131f56+this['stackID'](_0x53f673)+('\x20(via\x20'+(0x10000&_0x48ce7e?'reduce\x20of\x20'+_0x2ff92e['getName'](0xffff&_0x48ce7e):'shift')+'\x20for\x20'+_0x2ff92e['getName'](_0x478208)+'\x20@\x20'+_0x52fcad+(_0x53f673==_0x910c1a?'':',\x20split')+')')),_0x414db5)return!0x0;_0x53f673['pos']>_0x52fcad?_0x3e07db['push'](_0x53f673):_0x43072d['push'](_0x53f673);}return!0x1;}['advanceFully'](_0x1cdf19,_0x4631c2){let _0x443921=_0x1cdf19['pos'];for(;;){if(!this['advanceStack'](_0x1cdf19,null,null))return!0x1;if(_0x1cdf19['pos']>_0x443921)return pushStackDedup(_0x1cdf19,_0x4631c2),!0x0;}}['runRecovery'](_0x1665db,_0x378e62,_0x2ac2b1){let _0x2fd285=null,_0x36fed3=!0x1;for(let _0x10e221=0x0;_0x10e221<_0x1665db['length'];_0x10e221++){let _0x577ac1=_0x1665db[_0x10e221],_0x2eb15b=_0x378e62[_0x10e221<<0x1],_0x36ba70=_0x378e62[0x1+(_0x10e221<<0x1)],_0x3caad0=verbose?this['stackID'](_0x577ac1)+'\x20->\x20':'';if(_0x577ac1['deadEnd']){if(_0x36fed3)continue;if(_0x36fed3=!0x0,_0x577ac1['restart'](),verbose&&console['log'](_0x3caad0+this['stackID'](_0x577ac1)+'\x20(restarted)'),this['advanceFully'](_0x577ac1,_0x2ac2b1))continue;}let _0x7a4636=_0x577ac1['split'](),_0x2e8929=_0x3caad0;for(let _0x470f49=0x0;_0x470f49<0xa&&_0x7a4636['forceReduce']();_0x470f49++){if(verbose&&console['log'](_0x2e8929+this['stackID'](_0x7a4636)+'\x20(via\x20force-reduce)'),this['advanceFully'](_0x7a4636,_0x2ac2b1))break;verbose&&(_0x2e8929=this['stackID'](_0x7a4636)+'\x20->\x20');}for(let _0x2cbbf6 of _0x577ac1['recoverByInsert'](_0x2eb15b))verbose&&console['log'](_0x3caad0+this['stackID'](_0x2cbbf6)+'\x20(via\x20recover-insert)'),this['advanceFully'](_0x2cbbf6,_0x2ac2b1);this['stream']['end']>_0x577ac1['pos']?(_0x36ba70==_0x577ac1['pos']&&(_0x36ba70++,_0x2eb15b=0x0),_0x577ac1['recoverByDelete'](_0x2eb15b,_0x36ba70),verbose&&console['log'](_0x3caad0+this['stackID'](_0x577ac1)+('\x20(via\x20recover-delete\x20'+this['parser']['getName'](_0x2eb15b)+')')),pushStackDedup(_0x577ac1,_0x2ac2b1)):(!_0x2fd285||_0x2fd285['score']<_0x577ac1['score'])&&(_0x2fd285=_0x577ac1);}return _0x2fd285;}['stackToTree'](_0x3ad370){return _0x3ad370['close'](),Tree['build']({'buffer':StackBufferCursor['create'](_0x3ad370),'nodeSet':this['parser']['nodeSet'],'topID':this['topTerm'],'maxBufferLength':this['parser']['bufferLength'],'reused':this['reused'],'start':this['ranges'][0x0]['from'],'length':_0x3ad370['pos']-this['ranges'][0x0]['from'],'minRepeatType':this['parser']['minRepeatTerm']});}['stackID'](_0xe2fbca){let _0x2a17f5=(stackIDs||(stackIDs=new WeakMap()))['get'](_0xe2fbca);return _0x2a17f5||stackIDs['set'](_0xe2fbca,_0x2a17f5=String['fromCodePoint'](this['nextStackID']++)),_0x2a17f5+_0xe2fbca;}}function pushStackDedup(_0xfde802,_0x5b3298){for(let _0x29cd98=0x0;_0x29cd98<_0x5b3298['length'];_0x29cd98++){let _0x4adb59=_0x5b3298[_0x29cd98];if(_0x4adb59['pos']==_0xfde802['pos']&&_0x4adb59['sameState'](_0xfde802))return void(_0x5b3298[_0x29cd98]['score']<_0xfde802['score']&&(_0x5b3298[_0x29cd98]=_0xfde802));}_0x5b3298['push'](_0xfde802);}class Dialect{constructor(_0x6174a,_0x4f1c49,_0x5e4a27){this['source']=_0x6174a,this['flags']=_0x4f1c49,this['disabled']=_0x5e4a27;}['allows'](_0x207fd6){return!this['disabled']||0x0==this['disabled'][_0x207fd6];}}const id=_0x2c64a2=>_0x2c64a2;class ContextTracker{constructor(_0x49308e){this['start']=_0x49308e['start'],this['shift']=_0x49308e['shift']||id,this['reduce']=_0x49308e['reduce']||id,this['reuse']=_0x49308e['reuse']||id,this['hash']=_0x49308e['hash']||(()=>0x0),this['strict']=!0x1!==_0x49308e['strict'];}}class LRParser extends Parser{constructor(_0x291ef7){if(super(),this['wrappers']=[],0xe!=_0x291ef7['version'])throw new RangeError('Parser\x20version\x20('+_0x291ef7['version']+')\x20doesn\x27t\x20match\x20runtime\x20version\x20(14)');let _0x119b0d=_0x291ef7['nodeNames']['split']('\x20');this['minRepeatTerm']=_0x119b0d['length'];for(let _0x22fb6c=0x0;_0x22fb6c<_0x291ef7['repeatNodeCount'];_0x22fb6c++)_0x119b0d['push']('');let _0x5f5963=Object['keys'](_0x291ef7['topRules'])['map'](_0x5c31c9=>_0x291ef7['topRules'][_0x5c31c9][0x1]),_0x3dc973=[];for(let _0x409d1f=0x0;_0x409d1f<_0x119b0d['length'];_0x409d1f++)_0x3dc973['push']([]);function _0x4b29d3(_0x148fff,_0x3e40d9,_0x3314f1){_0x3dc973[_0x148fff]['push']([_0x3e40d9,_0x3e40d9['deserialize'](String(_0x3314f1))]);}if(_0x291ef7['nodeProps'])for(let _0xf3f7f of _0x291ef7['nodeProps']){let _0x486c93=_0xf3f7f[0x0];'string'==typeof _0x486c93&&(_0x486c93=NodeProp[_0x486c93]);for(let _0xa07161=0x1;_0xa07161<_0xf3f7f['length'];){let _0xdaab8e=_0xf3f7f[_0xa07161++];if(_0xdaab8e>=0x0)_0x4b29d3(_0xdaab8e,_0x486c93,_0xf3f7f[_0xa07161++]);else{let _0x5cdac7=_0xf3f7f[_0xa07161+-_0xdaab8e];for(let _0x4bee3f=-_0xdaab8e;_0x4bee3f>0x0;_0x4bee3f--)_0x4b29d3(_0xf3f7f[_0xa07161++],_0x486c93,_0x5cdac7);_0xa07161++;}}}this['nodeSet']=new NodeSet(_0x119b0d['map']((_0x4e61e8,_0x4cfda6)=>NodeType['define']({'name':_0x4cfda6>=this['minRepeatTerm']?void 0x0:_0x4e61e8,'id':_0x4cfda6,'props':_0x3dc973[_0x4cfda6],'top':_0x5f5963['indexOf'](_0x4cfda6)>-0x1,'error':0x0==_0x4cfda6,'skipped':_0x291ef7['skippedNodes']&&_0x291ef7['skippedNodes']['indexOf'](_0x4cfda6)>-0x1}))),_0x291ef7['propSources']&&(this['nodeSet']=this['nodeSet']['extend'](..._0x291ef7['propSources'])),this['strict']=!0x1,this['bufferLength']=DefaultBufferLength;let _0xd0ec42=decodeArray(_0x291ef7['tokenData']);this['context']=_0x291ef7['context'],this['specializerSpecs']=_0x291ef7['specialized']||[],this['specialized']=new Uint16Array(this['specializerSpecs']['length']);for(let _0x17f470=0x0;_0x17f470<this['specializerSpecs']['length'];_0x17f470++)this['specialized'][_0x17f470]=this['specializerSpecs'][_0x17f470]['term'];this['specializers']=this['specializerSpecs']['map'](getSpecializer),this['states']=decodeArray(_0x291ef7['states'],Uint32Array),this['data']=decodeArray(_0x291ef7['stateData']),this['goto']=decodeArray(_0x291ef7['goto']),this['maxTerm']=_0x291ef7['maxTerm'],this['tokenizers']=_0x291ef7['tokenizers']['map'](_0x8dd2f8=>'number'==typeof _0x8dd2f8?new TokenGroup(_0xd0ec42,_0x8dd2f8):_0x8dd2f8),this['topRules']=_0x291ef7['topRules'],this['dialects']=_0x291ef7['dialects']||{},this['dynamicPrecedences']=_0x291ef7['dynamicPrecedences']||null,this['tokenPrecTable']=_0x291ef7['tokenPrec'],this['termNames']=_0x291ef7['termNames']||null,this['maxNode']=this['nodeSet']['types']['length']-0x1,this['dialect']=this['parseDialect'](),this['top']=this['topRules'][Object['keys'](this['topRules'])[0x0]];}['createParse'](_0x1606a6,_0x5fd27a,_0x44bde1){let _0x506c54=new Parse(this,_0x1606a6,_0x5fd27a,_0x44bde1);for(let _0x4ada8d of this['wrappers'])_0x506c54=_0x4ada8d(_0x506c54,_0x1606a6,_0x5fd27a,_0x44bde1);return _0x506c54;}['getGoto'](_0x5d6ca1,_0x2efd32,_0x53fccb=!0x1){let _0x2b6757=this['goto'];if(_0x2efd32>=_0x2b6757[0x0])return-0x1;for(let _0xa3ccc0=_0x2b6757[_0x2efd32+0x1];;){let _0x4dbbdb=_0x2b6757[_0xa3ccc0++],_0x137779=0x1&_0x4dbbdb,_0x517d44=_0x2b6757[_0xa3ccc0++];if(_0x137779&&_0x53fccb)return _0x517d44;for(let _0x401b17=_0xa3ccc0+(_0x4dbbdb>>0x1);_0xa3ccc0<_0x401b17;_0xa3ccc0++)if(_0x2b6757[_0xa3ccc0]==_0x5d6ca1)return _0x517d44;if(_0x137779)return-0x1;}}['hasAction'](_0x350547,_0x2d1354){let _0x548919=this['data'];for(let _0x5d22a3=0x0;_0x5d22a3<0x2;_0x5d22a3++)for(let _0x66484d,_0x1393d5=this['stateSlot'](_0x350547,_0x5d22a3?0x2:0x1);;_0x1393d5+=0x3){if(0xffff==(_0x66484d=_0x548919[_0x1393d5])){if(0x1!=_0x548919[_0x1393d5+0x1]){if(0x2==_0x548919[_0x1393d5+0x1])return pair(_0x548919,_0x1393d5+0x2);break;}_0x66484d=_0x548919[_0x1393d5=pair(_0x548919,_0x1393d5+0x2)];}if(_0x66484d==_0x2d1354||0x0==_0x66484d)return pair(_0x548919,_0x1393d5+0x1);}return 0x0;}['stateSlot'](_0x472fca,_0x40d6b0){return this['states'][0x6*_0x472fca+_0x40d6b0];}['stateFlag'](_0x240f89,_0x4207e3){return(this['stateSlot'](_0x240f89,0x0)&_0x4207e3)>0x0;}['validAction'](_0x12383b,_0x36258f){return!!this['allActions'](_0x12383b,_0x130081=>_0x130081==_0x36258f||null);}['allActions'](_0x2c2948,_0x3ec9d8){let _0x1a0f5b=this['stateSlot'](_0x2c2948,0x4),_0xac11ed=_0x1a0f5b?_0x3ec9d8(_0x1a0f5b):void 0x0;for(let _0x1cd6a1=this['stateSlot'](_0x2c2948,0x1);null==_0xac11ed;_0x1cd6a1+=0x3){if(0xffff==this['data'][_0x1cd6a1]){if(0x1!=this['data'][_0x1cd6a1+0x1])break;_0x1cd6a1=pair(this['data'],_0x1cd6a1+0x2);}_0xac11ed=_0x3ec9d8(pair(this['data'],_0x1cd6a1+0x1));}return _0xac11ed;}['nextStates'](_0x282a63){let _0x25b560=[];for(let _0x55ee03=this['stateSlot'](_0x282a63,0x1);;_0x55ee03+=0x3){if(0xffff==this['data'][_0x55ee03]){if(0x1!=this['data'][_0x55ee03+0x1])break;_0x55ee03=pair(this['data'],_0x55ee03+0x2);}if(!(0x1&this['data'][_0x55ee03+0x2])){let _0x34e6de=this['data'][_0x55ee03+0x1];_0x25b560['some']((_0x5177f8,_0x5c95e3)=>0x1&_0x5c95e3&&_0x5177f8==_0x34e6de)||_0x25b560['push'](this['data'][_0x55ee03],_0x34e6de);}}return _0x25b560;}['configure'](_0x5daa0f){let _0x2cb500=Object['assign'](Object['create'](LRParser['prototype']),this);if(_0x5daa0f['props']&&(_0x2cb500['nodeSet']=this['nodeSet']['extend'](..._0x5daa0f['props'])),_0x5daa0f['top']){let _0xd1cf71=this['topRules'][_0x5daa0f['top']];if(!_0xd1cf71)throw new RangeError('Invalid\x20top\x20rule\x20name\x20'+_0x5daa0f['top']);_0x2cb500['top']=_0xd1cf71;}return _0x5daa0f['tokenizers']&&(_0x2cb500['tokenizers']=this['tokenizers']['map'](t=>{let _0x301a70=_0x5daa0f['tokenizers']['find'](_0x42bb10=>_0x42bb10['from']==t);return _0x301a70?_0x301a70['to']:t;})),_0x5daa0f['specializers']&&(_0x2cb500['specializers']=this['specializers']['slice'](),_0x2cb500['specializerSpecs']=this['specializerSpecs']['map']((_0x5e8aa7,_0x491305)=>{let _0x3bc8c9=_0x5daa0f['specializers']['find'](_0x3d26e5=>_0x3d26e5['from']==_0x5e8aa7['external']);if(!_0x3bc8c9)return _0x5e8aa7;let _0x43aea1=Object['assign'](Object['assign']({},_0x5e8aa7),{'external':_0x3bc8c9['to']});return _0x2cb500['specializers'][_0x491305]=getSpecializer(_0x43aea1),_0x43aea1;})),_0x5daa0f['contextTracker']&&(_0x2cb500['context']=_0x5daa0f['contextTracker']),_0x5daa0f['dialect']&&(_0x2cb500['dialect']=this['parseDialect'](_0x5daa0f['dialect'])),null!=_0x5daa0f['strict']&&(_0x2cb500['strict']=_0x5daa0f['strict']),_0x5daa0f['wrap']&&(_0x2cb500['wrappers']=_0x2cb500['wrappers']['concat'](_0x5daa0f['wrap'])),null!=_0x5daa0f['bufferLength']&&(_0x2cb500['bufferLength']=_0x5daa0f['bufferLength']),_0x2cb500;}['hasWrappers'](){return this['wrappers']['length']>0x0;}['getName'](_0x2ce51d){return this['termNames']?this['termNames'][_0x2ce51d]:String(_0x2ce51d<=this['maxNode']&&this['nodeSet']['types'][_0x2ce51d]['name']||_0x2ce51d);}get['eofTerm'](){return this['maxNode']+0x1;}get['topNode'](){return this['nodeSet']['types'][this['top'][0x1]];}['dynamicPrecedence'](_0x464181){let _0xcb83b7=this['dynamicPrecedences'];return null==_0xcb83b7?0x0:_0xcb83b7[_0x464181]||0x0;}['parseDialect'](_0x33eb3d){let _0x36ad76=Object['keys'](this['dialects']),_0x2fa409=_0x36ad76['map'](()=>!0x1);if(_0x33eb3d)for(let _0x516bd1 of _0x33eb3d['split']('\x20')){let _0x2f45db=_0x36ad76['indexOf'](_0x516bd1);_0x2f45db>=0x0&&(_0x2fa409[_0x2f45db]=!0x0);}let _0x32ab8b=null;for(let _0x36eea2=0x0;_0x36eea2<_0x36ad76['length'];_0x36eea2++)if(!_0x2fa409[_0x36eea2]){for(let _0x3f23f1,_0x2ca0fb=this['dialects'][_0x36ad76[_0x36eea2]];0xffff!=(_0x3f23f1=this['data'][_0x2ca0fb++]);)(_0x32ab8b||(_0x32ab8b=new Uint8Array(this['maxTerm']+0x1)))[_0x3f23f1]=0x1;}return new Dialect(_0x33eb3d,_0x2fa409,_0x32ab8b);}static['deserialize'](_0x3271a2){return new LRParser(_0x3271a2);}}function pair(_0x2fea57,_0x265fa7){return _0x2fea57[_0x265fa7]|_0x2fea57[_0x265fa7+0x1]<<0x10;}function findFinished(_0x5ee725){let _0x223e26=null;for(let _0x5e2198 of _0x5ee725){let _0x6fd7b3=_0x5e2198['p']['stoppedAt'];(_0x5e2198['pos']==_0x5e2198['p']['stream']['end']||null!=_0x6fd7b3&&_0x5e2198['pos']>_0x6fd7b3)&&_0x5e2198['p']['parser']['stateFlag'](_0x5e2198['state'],0x2)&&(!_0x223e26||_0x223e26['score']<_0x5e2198['score'])&&(_0x223e26=_0x5e2198);}return _0x223e26;}function getSpecializer(_0x3c0f94){if(_0x3c0f94['external']){let _0x42988b=_0x3c0f94['extend']?0x1:0x0;return(_0x4220a4,_0x495c07)=>_0x3c0f94['external'](_0x4220a4,_0x495c07)<<0x1|_0x42988b;}return _0x3c0f94['get'];}const scriptText=0x37,StartCloseScriptTag=0x1,styleText=0x38,StartCloseStyleTag=0x2,textareaText=0x39,StartCloseTextareaTag=0x3,EndTag=0x4,SelfClosingEndTag=0x5,StartTag=0x6,StartScriptTag=0x7,StartStyleTag=0x8,StartTextareaTag=0x9,StartSelfClosingTag=0xa,StartCloseTag=0xb,NoMatchStartCloseTag=0xc,MismatchedStartCloseTag=0xd,missingCloseTag=0x3a,IncompleteTag=0xe,IncompleteCloseTag=0xf,commentContent$1=0x3b,Element$2=0x15,TagName=0x17,Attribute=0x18,AttributeName=0x19,AttributeValue=0x1b,UnquotedAttributeValue=0x1c,ScriptText=0x1d,StyleText=0x20,TextareaText=0x23,OpenTag=0x25,CloseTag=0x26,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(_0x7a35fb){return 0x2d==_0x7a35fb||0x2e==_0x7a35fb||0x3a==_0x7a35fb||_0x7a35fb>=0x41&&_0x7a35fb<=0x5a||0x5f==_0x7a35fb||_0x7a35fb>=0x61&&_0x7a35fb<=0x7a||_0x7a35fb>=0xa1;}let cachedName=null,cachedInput=null,cachedPos=0x0;function tagNameAfter(_0x15208f,_0x5ce27b){let _0x24a357=_0x15208f['pos']+_0x5ce27b;if(cachedPos==_0x24a357&&cachedInput==_0x15208f)return cachedName;let _0x1f4309=_0x15208f['peek'](_0x5ce27b),_0x3844c3='';for(;nameChar(_0x1f4309);)_0x3844c3+=String['fromCharCode'](_0x1f4309),_0x1f4309=_0x15208f['peek'](++_0x5ce27b);return cachedInput=_0x15208f,cachedPos=_0x24a357,cachedName=_0x3844c3?_0x3844c3['toLowerCase']():_0x1f4309==question$1||_0x1f4309==bang?void 0x0:null;}const lessThan=0x3c,greaterThan=0x3e,slash$1=0x2f,question$1=0x3f,bang=0x21,dash$1=0x2d;function ElementContext(_0x326928,_0x343d54){this['name']=_0x326928,this['parent']=_0x343d54;}const startTagTerms=[StartTag,StartSelfClosingTag,StartScriptTag,StartStyleTag,StartTextareaTag],elementContext=new ContextTracker({'start':null,'shift':(_0x58d5e1,_0x9d1f65,_0x5510ec,_0x32b355)=>startTagTerms['indexOf'](_0x9d1f65)>-0x1?new ElementContext(tagNameAfter(_0x32b355,0x1)||'',_0x58d5e1):_0x58d5e1,'reduce':(_0x432b00,_0x1d1d35)=>_0x1d1d35==Element$2&&_0x432b00?_0x432b00['parent']:_0x432b00,'reuse'(_0x2ad37c,_0x47218f,_0x198f11,_0x2d5ae3){let _0x421e1a=_0x47218f['type']['id'];return _0x421e1a==StartTag||_0x421e1a==OpenTag?new ElementContext(tagNameAfter(_0x2d5ae3,0x1)||'',_0x2ad37c):_0x2ad37c;},'strict':!0x1}),tagStart=new ExternalTokenizer((_0x5d5cd3,_0x2f1d84)=>{if(_0x5d5cd3['next']!=lessThan)return void(_0x5d5cd3['next']<0x0&&_0x2f1d84['context']&&_0x5d5cd3['acceptToken'](missingCloseTag));_0x5d5cd3['advance']();let _0x5b020e=_0x5d5cd3['next']==slash$1;_0x5b020e&&_0x5d5cd3['advance']();let _0x4458e3=tagNameAfter(_0x5d5cd3,0x0);if(void 0x0===_0x4458e3)return;if(!_0x4458e3)return _0x5d5cd3['acceptToken'](_0x5b020e?IncompleteCloseTag:IncompleteTag);let _0x50af06=_0x2f1d84['context']?_0x2f1d84['context']['name']:null;if(_0x5b020e){if(_0x4458e3==_0x50af06)return _0x5d5cd3['acceptToken'](StartCloseTag);if(_0x50af06&&implicitlyClosed[_0x50af06])return _0x5d5cd3['acceptToken'](missingCloseTag,-0x2);if(_0x2f1d84['dialectEnabled'](Dialect_noMatch))return _0x5d5cd3['acceptToken'](NoMatchStartCloseTag);for(let _0x28922e=_0x2f1d84['context'];_0x28922e;_0x28922e=_0x28922e['parent'])if(_0x28922e['name']==_0x4458e3)return;_0x5d5cd3['acceptToken'](MismatchedStartCloseTag);}else{if('script'==_0x4458e3)return _0x5d5cd3['acceptToken'](StartScriptTag);if('style'==_0x4458e3)return _0x5d5cd3['acceptToken'](StartStyleTag);if('textarea'==_0x4458e3)return _0x5d5cd3['acceptToken'](StartTextareaTag);if(selfClosers$1['hasOwnProperty'](_0x4458e3))return _0x5d5cd3['acceptToken'](StartSelfClosingTag);_0x50af06&&closeOnOpen[_0x50af06]&&closeOnOpen[_0x50af06][_0x4458e3]?_0x5d5cd3['acceptToken'](missingCloseTag,-0x1):_0x5d5cd3['acceptToken'](StartTag);}},{'contextual':!0x0}),commentContent=new ExternalTokenizer(_0x3aef54=>{for(let _0x94886d=0x0,_0x32fbc4=0x0;;_0x32fbc4++){if(_0x3aef54['next']<0x0){_0x32fbc4&&_0x3aef54['acceptToken'](commentContent$1);break;}if(_0x3aef54['next']==dash$1)_0x94886d++;else{if(_0x3aef54['next']==greaterThan&&_0x94886d>=0x2){_0x32fbc4>=0x3&&_0x3aef54['acceptToken'](commentContent$1,-0x2);break;}_0x94886d=0x0;}_0x3aef54['advance']();}});function inForeignElement(_0x3c0013){for(;_0x3c0013;_0x3c0013=_0x3c0013['parent'])if('svg'==_0x3c0013['name']||'math'==_0x3c0013['name'])return!0x0;return!0x1;}const endTag=new ExternalTokenizer((_0x1a8bbd,_0x223a79)=>{if(_0x1a8bbd['next']==slash$1&&_0x1a8bbd['peek'](0x1)==greaterThan){let _0x297ea8=_0x223a79['dialectEnabled'](Dialect_selfClosing)||inForeignElement(_0x223a79['context']);_0x1a8bbd['acceptToken'](_0x297ea8?SelfClosingEndTag:EndTag,0x2);}else _0x1a8bbd['next']==greaterThan&&_0x1a8bbd['acceptToken'](EndTag,0x1);});function contentTokenizer(_0x122a56,_0x4c5c2d,_0x3bff64){let _0x3f5443=0x2+_0x122a56['length'];return new ExternalTokenizer(_0x57173f=>{for(let _0x1226f8=0x0,_0xd70bf=0x0,_0x2a90b0=0x0;;_0x2a90b0++){if(_0x57173f['next']<0x0){_0x2a90b0&&_0x57173f['acceptToken'](_0x4c5c2d);break;}if(0x0==_0x1226f8&&_0x57173f['next']==lessThan||0x1==_0x1226f8&&_0x57173f['next']==slash$1||_0x1226f8>=0x2&&_0x1226f8<_0x3f5443&&_0x57173f['next']==_0x122a56['charCodeAt'](_0x1226f8-0x2))_0x1226f8++,_0xd70bf++;else{if(_0x1226f8==_0x3f5443&&_0x57173f['next']==greaterThan){_0x2a90b0>_0xd70bf?_0x57173f['acceptToken'](_0x4c5c2d,-_0xd70bf):_0x57173f['acceptToken'](_0x3bff64,-(_0xd70bf-0x2));break;}if((0xa==_0x57173f['next']||0xd==_0x57173f['next'])&&_0x2a90b0){_0x57173f['acceptToken'](_0x4c5c2d,0x1);break;}_0x1226f8=_0xd70bf=0x0;}_0x57173f['advance']();}});}const scriptTokens=contentTokenizer('script',scriptText,StartCloseScriptTag),styleTokens=contentTokenizer('style',styleText,StartCloseStyleTag),textareaTokens=contentTokenizer('textarea',textareaText,StartCloseTextareaTag),htmlHighlighting=styleTags({'Text\x20RawText\x20IncompleteTag\x20IncompleteCloseTag':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!ZQ#tO\x27#CrO!`Q#tO\x27#C{O!eQ#tO\x27#DOO!jQ#tO\x27#DRO!oQ#tO\x27#DTO!tOaO\x27#CqO#PObO\x27#CqO#[OdO\x27#CqO$kO!rO\x27#CqOOO`\x27#Cq\x27#CqO$rO$fO\x27#DUO$zQ#tO\x27#DWO%PQ#tO\x27#DXOOO`\x27#Dl\x27#DlOOO`\x27#DZ\x27#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa\x27#D_\x27#D_O&_OaO\x27#CyO&jOaO,59]OOOb\x27#D`\x27#D`O&rObO\x27#C|O&}ObO,59]OOOd\x27#Da\x27#DaO\x27VOdO\x27#DPO\x27bOdO,59]OOO`\x27#Db\x27#DbO\x27jO!rO,59]O\x27qQ#tO\x27#DSOOO`,59],59]OOOp\x27#Dc\x27#DcO\x27vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO\x27#CtOOQW\x27#D[\x27#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO\x27#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO\x27#C}OOOd-E7_-E7_O){Q#tO\x27#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,UO,59`OOQW-E7Y-E7YOOOa7+$d7+$dOOO`7+$u7+$uOOOb7+$m7+$mOOOd7+$p7+$pOOO`7+$s7+$sO*bQ#|O,59fO*gQ#|O,59iO*lQ#|O,59lOOO`1G/Y1G/YO*qO7[O\x27#CwO+SOMhO\x27#CwOOQW1G.z1G.zOOO`1G/Q1G/QOOO`1G/T1G/TOOO`1G/W1G/WOOOO\x27#D]\x27#D]O+eO7[O,59cOOQW,59c,59cOOOO\x27#D^\x27#D^O+vOMhO,59cOOOO-E7Z-E7ZOOQW1G.}1G.}OOOO-E7[-E7[','stateData':',c~O!_OS~OUSOVPOWQOXROYTO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O|_O!eZO~OgaO~OgbO~OgcO~OgdO~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~','goto':'%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^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\x20IncompleteTag\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':0x44,'context':elementContext,'nodeProps':[['closedBy',-0xa,0x1,0x2,0x3,0x7,0x8,0x9,0xa,0xb,0xc,0xd,'EndTag',0x6,'EndTag\x20SelfClosingEndTag',-0x4,0x16,0x1f,0x22,0x25,'CloseTag'],['openedBy',0x4,'StartTag\x20StartCloseTag',0x5,'StartTag',-0x4,0x1e,0x21,0x24,0x26,'OpenTag'],['group',-0xa,0xe,0xf,0x12,0x13,0x14,0x15,0x28,0x29,0x2a,0x2b,'Entity',0x11,'Entity\x20TextContent',-0x3,0x1d,0x20,0x23,'TextContent\x20Entity'],['isolate',-0xb,0x16,0x1e,0x1f,0x21,0x22,0x24,0x25,0x26,0x27,0x2a,0x2b,'ltr',-0x3,0x1b,0x1c,0x28,'']],'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$|caPlW!b`!dpOX$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&bXaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;\x27S&X;\x27S;=`*y<%lO&Xq\x27UVaP!dpOv&}wx\x27kx!^&}!^!_(V!_;\x27S&};\x27S;=`(n<%lO&}P\x27pTaPOv\x27kw!^\x27k!_;\x27S\x27k;\x27S;=`(P<%lO\x27kP(SP;=`<%l\x27kp([S!dpOv(Vx;\x27S(V;\x27S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({WaP!b`Or(trs\x27ksv(tw!^(t!^!_)e!_;\x27S(t;\x27S;=`*P<%lO(t`)jT!b`Or)esv)ew;\x27S)e;\x27S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!b`!dpOr*Vrs(Vsv*Vwx)ex;\x27S*V;\x27S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYlWOX+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,]`aP!b`!dp!_^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;\x27S&X;\x27S;=`*y<%lO&X!_-ljiSaPlW!b`!dpOX$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[/ebiSlWOX+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+PS0rXiSqr0msw0mx!P0m!Q!^0m!a#s0m$f;\x27S0m;\x27S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vciSaP!b`!dpOq&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!ahaP!dpOv&}wx\x27kx!^&}!^!_(V!_;\x27S&};\x27S;=`(n<%lO&}!_4WiiSlWd!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!Z5zblWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;\x27S5u;\x27S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;\x27S7S;\x27S;=`7q<%lO7S!R7qOb!R!R7tP;=`<%l7S!Z8OYlWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;\x27S+P;\x27S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{iiSlWOX5uXZ7SZ[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!_:sbiSlWb!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<QciSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;\x27S;{;\x27S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXiSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;\x27S0m;\x27S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhiSlWOX@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@TalWOX@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!RAtOc!R!RAwP;=`<%lAY!ZBRYlWc!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;\x27S+P;\x27S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhiSlWOX@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!_DsbiSlWc!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!VFQbiSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;\x27SE{;\x27S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXiSc!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;\x27S0m;\x27S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!cxaP!b`Or(trs\x27ksv(tw!^(t!^!_)e!_;\x27S(t;\x27S;=`*P<%lO(t!aIYliSaPlW!b`!dpOX$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_kiSaPlW!b`!dpOX$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_XaP!b`!dp!fQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;\x27S&X;\x27S;=`*y<%lO&X!aNZ!ZiSgQaPlW!b`!dpOX$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!b`!dpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;\x27S*V;\x27S;=`*s<%lO*V!R!%Q]!b`!dpOr*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!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;\x27S*V;\x27S;=`*s<%lO*V!R!&vV!b`!dp!ePOr*Vrs(Vsv*Vwx)ex;\x27S*V;\x27S;=`*s<%lO*V!R!\x27dX!b`!dpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;\x27S*V;\x27S;=`*s<%lO*V!R!(WX!b`!dpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;\x27S*V;\x27S;=`*s<%lO*V!R!(zX!b`!dpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;\x27S*V;\x27S;=`*s<%lO*V!R!)nX!b`!dpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;\x27S*V;\x27S;=`*s<%lO*V!R!*bX!b`!dpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;\x27S*V;\x27S;=`*s<%lO*V!R!+UX!b`!dpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;\x27S*V;\x27S;=`*s<%lO*V!R!+xY!b`!dpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;\x27S!+q;\x27S;=`!0Y<%lO!+qq!,mV!dpOv!,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!dp|POv(Vx;\x27S(V;\x27S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!b`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;\x27S!.[;\x27S;=`!/d<%lO!.[a!/TT!b`|POr)esv)ew;\x27S)e;\x27S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!b`!dp|POr*Vrs(Vsv*Vwx)ex;\x27S*V;\x27S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!b`!dpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;\x27S*V;\x27S;=`*s<%lO*V!R!1ZX!b`!dpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;\x27S*V;\x27S;=`*s<%lO*V!R!1}X!b`!dpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;\x27S*V;\x27S;=`*s<%lO*V!R!2qX!b`!dpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;\x27S*V;\x27S;=`*s<%lO*V!R!3eX!b`!dpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;\x27S*V;\x27S;=`*s<%lO*V!R!4XX!b`!dpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;\x27S*V;\x27S;=`*s<%lO*V!R!4{Y!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;\x27S!4t;\x27S;=`!;r<%lO!4tq!5pV!dpOv!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!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;\x27S!5k;\x27S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;\x27S(V;\x27S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;\x27S!8];\x27S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;\x27S!8];\x27S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;\x27S)e;\x27S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;\x27S!4t;\x27S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;\x27S*V;\x27S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&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,0x10]},'dialects':{'noMatch':0x0,'selfClosing':0x203},'tokenPrec':0x205});function getAttrs(_0xb19c2a,_0x16e5b0){let _0x1b2aaf=Object['create'](null);for(let _0xb1de43 of _0xb19c2a['getChildren'](Attribute)){let _0x48b72d=_0xb1de43['getChild'](AttributeName),_0x476d33=_0xb1de43['getChild'](AttributeValue)||_0xb1de43['getChild'](UnquotedAttributeValue);_0x48b72d&&(_0x1b2aaf[_0x16e5b0['read'](_0x48b72d['from'],_0x48b72d['to'])]=_0x476d33?_0x476d33['type']['id']==AttributeValue?_0x16e5b0['read'](_0x476d33['from']+0x1,_0x476d33['to']-0x1):_0x16e5b0['read'](_0x476d33['from'],_0x476d33['to']):'');}return _0x1b2aaf;}function findTagName(_0x54b184,_0x1a026b){let _0x1f3bce=_0x54b184['getChild'](TagName);return _0x1f3bce?_0x1a026b['read'](_0x1f3bce['from'],_0x1f3bce['to']):'\x20';}function maybeNest(_0x55f0b5,_0x1592bf,_0xdf7071){let _0x10df01;for(let _0x39ee2f of _0xdf7071)if(!_0x39ee2f['attrs']||_0x39ee2f['attrs'](_0x10df01||(_0x10df01=getAttrs(_0x55f0b5['node']['parent']['firstChild'],_0x1592bf))))return{'parser':_0x39ee2f['parser']};return null;}function configureNesting(_0x3e94fe=[],_0x56c8c0=[]){let _0x569830=[],_0x37d312=[],_0x51376b=[],_0x1dd8fb=[];for(let _0x448c71 of _0x3e94fe){('script'==_0x448c71['tag']?_0x569830:'style'==_0x448c71['tag']?_0x37d312:'textarea'==_0x448c71['tag']?_0x51376b:_0x1dd8fb)['push'](_0x448c71);}let _0xe00fbe=_0x56c8c0['length']?Object['create'](null):null;for(let _0x37ae1a of _0x56c8c0)(_0xe00fbe[_0x37ae1a['name']]||(_0xe00fbe[_0x37ae1a['name']]=[]))['push'](_0x37ae1a);return parseMixed((_0x5a3646,_0x966a58)=>{let _0x313fea=_0x5a3646['type']['id'];if(_0x313fea==ScriptText)return maybeNest(_0x5a3646,_0x966a58,_0x569830);if(_0x313fea==StyleText)return maybeNest(_0x5a3646,_0x966a58,_0x37d312);if(_0x313fea==TextareaText)return maybeNest(_0x5a3646,_0x966a58,_0x51376b);if(_0x313fea==Element$2&&_0x1dd8fb['length']){let _0x5c7fc9,_0x144438=_0x5a3646['node'],_0x1508a6=_0x144438['firstChild'],_0x1df4ac=_0x1508a6&&findTagName(_0x1508a6,_0x966a58);if(_0x1df4ac){for(let _0x30438e of _0x1dd8fb)if(_0x30438e['tag']==_0x1df4ac&&(!_0x30438e['attrs']||_0x30438e['attrs'](_0x5c7fc9||(_0x5c7fc9=getAttrs(_0x1508a6,_0x966a58))))){let _0x5692aa=_0x144438['lastChild'],_0x535580=_0x5692aa['type']['id']==CloseTag?_0x5692aa['from']:_0x144438['to'];if(_0x535580>_0x1508a6['to'])return{'parser':_0x30438e['parser'],'overlay':[{'from':_0x1508a6['to'],'to':_0x535580}]};}}}if(_0xe00fbe&&_0x313fea==Attribute){let _0xcb7209,_0xce95ed=_0x5a3646['node'];if(_0xcb7209=_0xce95ed['firstChild']){let _0xe8106=_0xe00fbe[_0x966a58['read'](_0xcb7209['from'],_0xcb7209['to'])];if(_0xe8106)for(let _0x2682f1 of _0xe8106){if(_0x2682f1['tagName']&&_0x2682f1['tagName']!=findTagName(_0xce95ed['parent'],_0x966a58))continue;let _0x1a7576=_0xce95ed['lastChild'];if(_0x1a7576['type']['id']==AttributeValue){let _0x4fa9fd=_0x1a7576['from']+0x1,_0x4b8658=_0x1a7576['lastChild'],_0x1fdcbf=_0x1a7576['to']-(_0x4b8658&&_0x4b8658['isError']?0x0:0x1);if(_0x1fdcbf>_0x4fa9fd)return{'parser':_0x2682f1['parser'],'overlay':[{'from':_0x4fa9fd,'to':_0x1fdcbf}]};}else{if(_0x1a7576['type']['id']==UnquotedAttributeValue)return{'parser':_0x2682f1['parser'],'overlay':[{'from':_0x1a7576['from'],'to':_0x1a7576['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(_0x5e74b6){return _0x5e74b6>=0x41&&_0x5e74b6<=0x5a||_0x5e74b6>=0x61&&_0x5e74b6<=0x7a||_0x5e74b6>=0xa1;}function isDigit(_0x492874){return _0x492874>=0x30&&_0x492874<=0x39;}function isHex(_0x2c5740){return isDigit(_0x2c5740)||_0x2c5740>=0x61&&_0x2c5740<=0x66||_0x2c5740>=0x41&&_0x2c5740<=0x46;}const identifierTokens=(_0x57e1b5,_0x4c66c8,_0x1cc209)=>(_0x421202,_0x3eaa34)=>{for(let _0xd8a554=!0x1,_0x43479f=0x0,_0x5efca6=0x0;;_0x5efca6++){let {next:_0x58e602}=_0x421202;if(isAlpha(_0x58e602)||_0x58e602==dash||_0x58e602==underscore||_0xd8a554&&isDigit(_0x58e602))!_0xd8a554&&(_0x58e602!=dash||_0x5efca6>0x0)&&(_0xd8a554=!0x0),_0x43479f===_0x5efca6&&_0x58e602==dash&&_0x43479f++,_0x421202['advance']();else{if(_0x58e602!=backslash||_0x421202['peek'](0x1)==newline$1){_0xd8a554&&_0x421202['acceptToken'](0x2==_0x43479f&&_0x3eaa34['canShift'](VariableName)?_0x4c66c8:_0x58e602==parenL?_0x1cc209:_0x57e1b5);break;}if(_0x421202['advance'](),isHex(_0x421202['next'])){do{_0x421202['advance']();}while(isHex(_0x421202['next']));0x20==_0x421202['next']&&_0x421202['advance']();}else _0x421202['next']>-0x1&&_0x421202['advance']();_0xd8a554=!0x0;}}},identifiers=new ExternalTokenizer(identifierTokens(identifier$2,VariableName,callee)),queryIdentifiers=new ExternalTokenizer(identifierTokens(queryIdentifier,queryVariableName,QueryCallee)),descendant=new ExternalTokenizer(_0x512a2b=>{if(space$2['includes'](_0x512a2b['peek'](-0x1))){let {next:_0x3564bb}=_0x512a2b;(isAlpha(_0x3564bb)||_0x3564bb==underscore||_0x3564bb==hash||_0x3564bb==period||_0x3564bb==asterisk||_0x3564bb==bracketL$1||_0x3564bb==colon&&isAlpha(_0x512a2b['peek'](0x1))||_0x3564bb==dash||_0x3564bb==ampersand)&&_0x512a2b['acceptToken'](descendantOp);}}),unitToken=new ExternalTokenizer(_0x2ec10d=>{if(!space$2['includes'](_0x2ec10d['peek'](-0x1))){let {next:_0x409c41}=_0x2ec10d;if(_0x409c41==percent&&(_0x2ec10d['advance'](),_0x2ec10d['acceptToken'](Unit)),isAlpha(_0x409c41)){do{_0x2ec10d['advance']();}while(isAlpha(_0x2ec10d['next'])||isDigit(_0x2ec10d['next']));_0x2ec10d['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':_0x2477fd=>spec_callee[_0x2477fd]||-0x1},{'term':0x7d,'get':_0x529a65=>spec_queryIdentifier[_0x529a65]||-0x1},{'term':0x4,'get':_0x1a13d9=>spec_QueryCallee[_0x1a13d9]||-0x1},{'term':0x19,'get':_0x2f73ff=>spec_AtKeyword[_0x2f73ff]||-0x1},{'term':0x7b,'get':_0x4d226d=>spec_identifier$1[_0x4d226d]||-0x1}],'tokenPrec':0x7ab});let _properties=null;function properties(){if(!_properties&&'object'==typeof document&&document['body']){let {style:_0x4c2cd4}=document['body'],_0x5f1086=[],_0x2693d3=new Set();for(let _0x9185fd in _0x4c2cd4)'cssText'!=_0x9185fd&&'cssFloat'!=_0x9185fd&&'string'==typeof _0x4c2cd4[_0x9185fd]&&(/[A-Z]/['test'](_0x9185fd)&&(_0x9185fd=_0x9185fd['replace'](/[A-Z]/g,_0x2a3b40=>'-'+_0x2a3b40['toLowerCase']())),_0x2693d3['has'](_0x9185fd)||(_0x5f1086['push'](_0x9185fd),_0x2693d3['add'](_0x9185fd)));_properties=_0x5f1086['sort']()['map'](_0x28b6b1=>({'type':'property','label':_0x28b6b1,'apply':_0x28b6b1+':\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'](_0x33dbb7=>({'type':'class','label':_0x33dbb7})),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'](_0x3c5ca5=>({'type':'keyword','label':_0x3c5ca5}))['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'](_0x5a4d74=>({'type':'constant','label':_0x5a4d74}))),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'](_0x554c3b=>({'type':'type','label':_0x554c3b})),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'](_0x32cf57=>({'type':'keyword','label':_0x32cf57})),identifier$1=/^(\w[\w-]*|-\w[\w-]*|)$/,variable=/^-(-[\w-]*)?$/;function isVarArg(_0x24d09f,_0x3f31d0){var _0x5bf840;if(('('==_0x24d09f['name']||_0x24d09f['type']['isError'])&&(_0x24d09f=_0x24d09f['parent']||_0x24d09f),'ArgList'!=_0x24d09f['name'])return!0x1;let _0x3380ac=null===(_0x5bf840=_0x24d09f['parent'])||void 0x0===_0x5bf840?void 0x0:_0x5bf840['firstChild'];return'Callee'==(null==_0x3380ac?void 0x0:_0x3380ac['name'])&&'var'==_0x3f31d0['sliceString'](_0x3380ac['from'],_0x3380ac['to']);}const VariablesByNode=new NodeWeakMap(),declSelector=['Declaration'];function astTop(_0x419829){for(let _0x286910=_0x419829;;){if(_0x286910['type']['isTop'])return _0x286910;if(!(_0x286910=_0x286910['parent']))return _0x419829;}}function variableNames(_0x5cbef7,_0x2f6de8,_0x16b041){if(_0x2f6de8['to']-_0x2f6de8['from']>0x1000){let _0x40464b=VariablesByNode['get'](_0x2f6de8);if(_0x40464b)return _0x40464b;let _0x5764dd=[],_0x5995b0=new Set(),_0x22db99=_0x2f6de8['cursor'](IterMode['IncludeAnonymous']);if(_0x22db99['firstChild']())do{for(let _0x57721b of variableNames(_0x5cbef7,_0x22db99['node'],_0x16b041))_0x5995b0['has'](_0x57721b['label'])||(_0x5995b0['add'](_0x57721b['label']),_0x5764dd['push'](_0x57721b));}while(_0x22db99['nextSibling']());return VariablesByNode['set'](_0x2f6de8,_0x5764dd),_0x5764dd;}{let _0x8c96f9=[],_0x20f897=new Set();return _0x2f6de8['cursor']()['iterate'](_0x44fc88=>{var _0x3f9b00;if(_0x16b041(_0x44fc88)&&_0x44fc88['matchContext'](declSelector)&&':'==(null===(_0x3f9b00=_0x44fc88['node']['nextSibling'])||void 0x0===_0x3f9b00?void 0x0:_0x3f9b00['name'])){let _0x25d4b8=_0x5cbef7['sliceString'](_0x44fc88['from'],_0x44fc88['to']);_0x20f897['has'](_0x25d4b8)||(_0x20f897['add'](_0x25d4b8),_0x8c96f9['push']({'label':_0x25d4b8,'type':'variable'}));}}),_0x8c96f9;}}const defineCSSCompletionSource=_0x4f22ee=>_0x31841a=>{let {state:_0x2981cc,pos:_0x1355aa}=_0x31841a,_0x5b5cc4=syntaxTree(_0x2981cc)['resolveInner'](_0x1355aa,-0x1),_0x432c4c=_0x5b5cc4['type']['isError']&&_0x5b5cc4['from']==_0x5b5cc4['to']-0x1&&'-'==_0x2981cc['doc']['sliceString'](_0x5b5cc4['from'],_0x5b5cc4['to']);if('PropertyName'==_0x5b5cc4['name']||(_0x432c4c||'TagName'==_0x5b5cc4['name'])&&/^(Block|Styles)$/['test'](_0x5b5cc4['resolve'](_0x5b5cc4['to'])['name']))return{'from':_0x5b5cc4['from'],'options':properties(),'validFor':identifier$1};if('ValueName'==_0x5b5cc4['name'])return{'from':_0x5b5cc4['from'],'options':values,'validFor':identifier$1};if('PseudoClassName'==_0x5b5cc4['name'])return{'from':_0x5b5cc4['from'],'options':pseudoClasses,'validFor':identifier$1};if(_0x4f22ee(_0x5b5cc4)||(_0x31841a['explicit']||_0x432c4c)&&isVarArg(_0x5b5cc4,_0x2981cc['doc']))return{'from':_0x4f22ee(_0x5b5cc4)||_0x432c4c?_0x5b5cc4['from']:_0x1355aa,'options':variableNames(_0x2981cc['doc'],astTop(_0x5b5cc4),_0x4f22ee),'validFor':variable};if('TagName'==_0x5b5cc4['name']){for(let {parent:_0x542a5d}=_0x5b5cc4;_0x542a5d;_0x542a5d=_0x542a5d['parent'])if('Block'==_0x542a5d['name'])return{'from':_0x5b5cc4['from'],'options':properties(),'validFor':identifier$1};return{'from':_0x5b5cc4['from'],'options':tags,'validFor':identifier$1};}if('AtKeyword'==_0x5b5cc4['name'])return{'from':_0x5b5cc4['from'],'options':atRules,'validFor':identifier$1};if(!_0x31841a['explicit'])return null;let _0x133f3f=_0x5b5cc4['resolve'](_0x1355aa),_0x534f24=_0x133f3f['childBefore'](_0x1355aa);return _0x534f24&&':'==_0x534f24['name']&&'PseudoClassSelector'==_0x133f3f['name']?{'from':_0x1355aa,'options':pseudoClasses,'validFor':identifier$1}:_0x534f24&&':'==_0x534f24['name']&&'Declaration'==_0x133f3f['name']||'ArgList'==_0x133f3f['name']?{'from':_0x1355aa,'options':values,'validFor':identifier$1}:'Block'==_0x133f3f['name']||'Styles'==_0x133f3f['name']?{'from':_0x1355aa,'options':properties(),'validFor':identifier$1}:null;},cssCompletionSource=defineCSSCompletionSource(_0x5a615d=>'VariableName'==_0x5a615d['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':(_0x5c14f6,_0x367ee7)=>_0x367ee7==LineComment||_0x367ee7==BlockComment||_0x367ee7==spaces?_0x5c14f6:_0x367ee7==newline,'strict':!0x1}),insertSemicolon=new ExternalTokenizer((_0x24dec3,_0x52039e)=>{let {next:_0x181c16}=_0x24dec3;(_0x181c16==braceR||-0x1==_0x181c16||_0x52039e['context'])&&_0x24dec3['acceptToken'](insertSemi);},{'contextual':!0x0,'fallback':!0x0}),noSemicolon=new ExternalTokenizer((_0x4d2333,_0x3b7576)=>{let _0x52ddbb,{next:_0x36b401}=_0x4d2333;space$1['indexOf'](_0x36b401)>-0x1||(_0x36b401!=slash||(_0x52ddbb=_0x4d2333['peek'](0x1))!=slash&&_0x52ddbb!=star)&&(_0x36b401==braceR||_0x36b401==semicolon||-0x1==_0x36b401||_0x3b7576['context']||_0x4d2333['acceptToken'](noSemi));},{'contextual':!0x0}),noSemicolonType=new ExternalTokenizer((_0x5cf485,_0xb437a1)=>{_0x5cf485['next']!=bracketL||_0xb437a1['context']||_0x5cf485['acceptToken'](noSemiType);},{'contextual':!0x0}),operatorToken=new ExternalTokenizer((_0xb8613f,_0xdf43af)=>{let {next:_0x630cca}=_0xb8613f;if(_0x630cca==plus||_0x630cca==minus){if(_0xb8613f['advance'](),_0x630cca==_0xb8613f['next']){_0xb8613f['advance']();let _0x2ced41=!_0xdf43af['context']&&_0xdf43af['canShift'](incdec);_0xb8613f['acceptToken'](_0x2ced41?incdec:incdecPrefix);}}else _0x630cca==question&&_0xb8613f['peek'](0x1)==dot&&(_0xb8613f['advance'](),_0xb8613f['advance'](),(_0xb8613f['next']<0x30||_0xb8613f['next']>0x39)&&_0xb8613f['acceptToken'](questionDot));},{'contextual':!0x0});function identifierChar(_0x54e4fd,_0x2a330b){return _0x54e4fd>=0x41&&_0x54e4fd<=0x5a||_0x54e4fd>=0x61&&_0x54e4fd<=0x7a||0x5f==_0x54e4fd||_0x54e4fd>=0xc0||!_0x2a330b&&_0x54e4fd>=0x30&&_0x54e4fd<=0x39;}const jsx=new ExternalTokenizer((_0xbe09e,_0x225de1)=>{if(_0xbe09e['next']!=lt||!_0x225de1['dialectEnabled'](Dialect_jsx))return;if(_0xbe09e['advance'](),_0xbe09e['next']==slash)return;let _0x3d0b38=0x0;for(;space$1['indexOf'](_0xbe09e['next'])>-0x1;)_0xbe09e['advance'](),_0x3d0b38++;if(identifierChar(_0xbe09e['next'],!0x0)){for(_0xbe09e['advance'](),_0x3d0b38++;identifierChar(_0xbe09e['next'],!0x1);)_0xbe09e['advance'](),_0x3d0b38++;for(;space$1['indexOf'](_0xbe09e['next'])>-0x1;)_0xbe09e['advance'](),_0x3d0b38++;if(_0xbe09e['next']==comma)return;for(let _0x1bb2fe=0x0;;_0x1bb2fe++){if(0x7==_0x1bb2fe){if(!identifierChar(_0xbe09e['next'],!0x0))return;break;}if(_0xbe09e['next']!='extends'['charCodeAt'](_0x1bb2fe))break;_0xbe09e['advance'](),_0x3d0b38++;}}_0xbe09e['acceptToken'](JSXStartTag,-_0x3d0b38);}),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':'$F|Q%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!3YQ(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$\x20|QpO\x27#GbO$!dQ!dO,5<sO$!kQ`O\x27#K[O9eQ`O\x27#K[O$!yQ`O,5<uO$#aQ!dO\x27#C{O!,TQMhO,5<tO$#kQ`O\x27#GZO$$PQ`O,5<tO$$UQ!dO\x27#GWO$$cQ!dO\x27#K]O$$mQ`O\x27#K]O!&zQMhO\x27#K]O$$rQ`O,5<xO$$wQlO\x27#JvO$%RQpO\x27#GcO#$`QpO\x27#GcO$%dQ`O\x27#GgO!3oQ`O\x27#GkO$%iQ!0LrO\x27#ItO$%tQpO,5<|OOQ!0Lp,5<|,5<|O$%{QpO\x27#GcO$&YQpO\x27#GdO$&kQpO\x27#GdO$&pQMjO,5=XO$\x27QQMjO,5=ZOOQ!0Lh,5=^,5=^O!,TQMhO,5@VO!,TQMhO,5@VO$\x27bQ`O\x27#IyO$\x27vQ`O,5@UO$(OQ`O,59aOOQ!0Lh,59i,59iO$(TQ`O,5@VO$)TQ$IYO,59uOOQ!0Lh\x27#Jp\x27#JpO$)vQMjO,5<kO$*iQMjO,5<mO@zQ`O,5<oOOQ!0Lh,5<p,5<pO$*sQ`O,5<vO$*xQMjO,5<{O$+YQ`O\x27#KPO!$wQlO1G2RO$+_Q`O1G2RO9eQ`O\x27#KSO9eQ`O\x27#EtO%[QlO\x27#EtO9eQ`O\x27#I{O$+dQ!0LrO,5@{OOQ[1G2}1G2}OOQ[1G4`1G4`OOQ!0Lf1G/|1G/|OOQ!0Lf1G/z1G/zO$-fQ!0MxO1G0UOOQ[1G2y1G2yO!&zQMhO1G2yO%[QlO1G2yO#.tQ`O1G2yO$/jQMhO\x27#EkOOQ!0Lb,5@T,5@TO$/wQ!0LrO,5@TOOQ[1G.u1G.uO!ByQ!0LrO1G.uO!CUQpO1G.uO!C^QMhO1G.uO$0YQ`O1G0uO$0_Q`O\x27#CiO$0jQ`O\x27#KeO$0rQ`O,5=|O$0wQ`O\x27#KeO$0|Q`O\x27#KeO$1[Q`O\x27#JRO$1jQ`O,5AOO$1rQ!fO1G1iOOQ!0Lf1G1k1G1kO9kQ`O1G3fO@zQ`O1G3fO$1yQ`O1G3fO$2OQ`O1G3fO!DiQ`O1G3fO9uQ!0LrO1G3fOOQ[1G3f1G3fO!EcQ`O1G3UO!&zQMhO1G3RO$2TQ`O1G3ROOQ[1G3S1G3SO!&zQMhO1G3SO$2YQ`O1G3SO$2bQpO\x27#HQOOQ[1G3U1G3UO!6_QpO\x27#I}O!EhQ!bO1G3XOOQ[1G3X1G3XOOQ[,5=r,5=rO$2jQMhO,5=tO9kQ`O,5=tO$%dQ`O,5=vO9`Q`O,5=vO!CUQpO,5=vO!C^QMhO,5=vO:dQMhO,5=vO$2xQ`O\x27#KcO$3TQ`O,5=wOOQ[1G.k1G.kO$3YQ!0LrO1G.kO@zQ`O1G.kO$3eQ`O1G.kO9uQ!0LrO1G.kO$5mQ!fO,5AQO$5zQ`O,5AQO9eQ`O,5AQO$6VQlO,5>PO$6^Q`O,5>POOQ[1G3i1G3iO`QlO1G3iOOQ[1G3o1G3oOOQ[1G3q1G3qO?TQ`O1G3sO$6cQlO1G3uO$:gQlO\x27#HtOOQ[1G3x1G3xO$:tQ`O\x27#HzO?YQ`O\x27#H|OOQ[1G4O1G4OO$:|QlO1G4OO9uQ!0LrO1G4UOOQ[1G4W1G4WOOQ!0Lb\x27#G_\x27#G_O9uQ!0LrO1G4YO9uQ!0LrO1G4[O$?TQ`O,5@bO!)[QlO,5;`O9eQ`O,5;`O?YQ`O,5:XO!)[QlO,5:XO!CUQpO,5:XO$?YQ?MtO,5:XOOQO,5;`,5;`O$?dQpO\x27#IeO$?zQ`O,5@aOOQ!0Lf1G/r1G/rO$@SQpO\x27#IkO$@^Q`O,5@pOOQ!0Lb1G0y1G0yO#$`QpO,5:XOOQO\x27#Ig\x27#IgO$@fQpO,5:qOOQ!0Ln,5:q,5:qO#(ZQ`O1G0ZOOQ!0Lf1G0Z1G0ZO%[QlO1G0ZOOQ!0Lf1G0t1G0tO?YQ`O1G0tO!CUQpO1G0tO!C^QMhO1G0tOOQ!0Lb1G5|1G5|O!ByQ!0LrO1G0^OOQO1G0m1G0mO%[QlO1G0mO$@mQ!0LrO1G0mO$@xQ!0LrO1G0mO!CUQpO1G0^ODWQpO1G0^O$AWQ!0LrO1G0mOOQO1G0^1G0^O$AlQ!0MxO1G0mPOOO-E<[-E<[POOO1G.h1G.hOOOO1G/i1G/iO$AvQ!bO,5<iO$BOQ!fO1G4jOOQO1G4p1G4pO%[QlO,5?OO$BYQ`O1G5zO$BbQ`O1G6YO$BjQ!fO1G6ZO9eQ`O,5?UO$BtQ!0MxO1G6WO%[QlO1G6WO$CUQ!0LrO1G6WO$CgQ`O1G6VO$CgQ`O1G6VO9eQ`O1G6VO$CoQ`O,5?XO9eQ`O,5?XOOQO,5?X,5?XO$DTQ`O,5?XO$+YQ`O,5?XOOQO-E<k-E<kOOQS1G0a1G0aOOQS1G0c1G0cO#.lQ`O1G0cOOQ[7+(e7+(eO!&zQMhO7+(eO%[QlO7+(eO$DcQ`O7+(eO$DnQMhO7+(eO$D|Q!0MzO,5=XO$GXQ!0MzO,5=ZO$IdQ!0MzO,5=XO$KuQ!0MzO,5=ZO$NWQ!0MzO,59uO%!]Q!0MzO,5<kO%$hQ!0MzO,5<mO%&sQ!0MzO,5<{OOQ!0Lf7+&a7+&aO%)UQ!0MxO7+&aO%)xQlO\x27#IfO%*VQ`O,5@cO%*_Q!fO,5@cOOQ!0Lf1G0P1G0PO%*iQ`O7+&jOOQ!0Lf7+&j7+&jO%*nQ?MtO,5:fO%[QlO7+&zO%*xQ?MtO,5:bO%+VQ?MtO,5:jO%+aQ?MtO,5:lO%+kQMhO\x27#IiO%+uQ`O,5@hOOQ!0Lh1G0d1G0dOOQO1G1r1G1rOOQO1G1s1G1sO%+}Q!jO,5<ZO!)[QlO,5<YOOQO-E<l-E<lOOQ!0Lf7+\x27Y7+\x27YOOOW7+\x27e7+\x27eOOOW1G1|1G1|O%,YQ`O1G1|OOQ!0Lf1G2O1G2OOOOO,59o,59oO%,_Q!dO,59oOOOO-E<`-E<`OOQ!0Lh1G/X1G/XO%,fQ!0MxO7+\x27kOOQ!0Lh,5?^,5?^O%-YQMhO1G2fP%-aQ`O\x27#IrPOQ!0Lh-E<p-E<pO%-}QMjO,5?aOOQ!0Lh-E<s-E<sO%.pQMjO,5?cOOQ!0Lh-E<u-E<uO%.zQ!dO1G2wO%/RQ!dO\x27#CrO%/iQMhO\x27#KSO$$wQlO\x27#JvOOQ!0Lh1G2_1G2_O%/sQ`O\x27#IqO%0[Q`O,5@vO%0[Q`O,5@vO%0dQ`O,5@vO%0oQ`O,5@vOOQO1G2a1G2aO%0}QMjO1G2`O$+YQ`O\x27#K[O!,TQMhO1G2`O%1_Q(CWO\x27#IsO%1lQ`O,5@wO!&zQMhO,5@wO%1tQ!dO,5@wOOQ!0Lh1G2d1G2dO%4UQ!fO\x27#CiO%4`Q`O,5=POOQ!0Lb,5<},5<}O%4hQpO,5<}OOQ!0Lb,5=O,5=OOCwQ`O,5<}O%4sQpO,5<}OOQ!0Lb,5=R,5=RO$+YQ`O,5=VOOQO,5?`,5?`OOQO-E<r-E<rOOQ!0Lp1G2h1G2hO#$`QpO,5<}O$$wQlO,5=PO%5RQ`O,5=OO%5^QpO,5=OO!,TQMhO\x27#IuO%6WQMjO1G2sO!,TQMhO\x27#IwO%6yQMjO1G2uO%7TQMjO1G5qO%7_QMjO1G5qOOQO,5?e,5?eOOQO-E<w-E<wOOQO1G.{1G.{O!,TQMhO1G5qO!,TQMhO1G5qO!:]QpO,59wO%[QlO,59wOOQ!0Lh,5<j,5<jO%7lQ`O1G2ZO!,TQMhO1G2bO%7qQ!0MxO7+\x27mOOQ!0Lf7+\x27m7+\x27mO!$wQlO7+\x27mO%8eQ`O,5;`OOQ!0Lb,5?g,5?gOOQ!0Lb-E<y-E<yO%8jQ!dO\x27#K^O#(ZQ`O7+(eO4UQ!fO7+(eO$DfQ`O7+(eO%8tQ!0MvO\x27#CiO%9XQ!0MvO,5=SO%9lQ`O,5=SO%9tQ`O,5=SOOQ!0Lb1G5o1G5oOOQ[7+$a7+$aO!ByQ!0LrO7+$aO!CUQpO7+$aO!$wQlO7+&aO%9yQ`O\x27#JQO%:bQ`O,5APOOQO1G3h1G3hO9kQ`O,5APO%:bQ`O,5APO%:jQ`O,5APOOQO,5?m,5?mOOQO-E=P-E=POOQ!0Lf7+\x27T7+\x27TO%:oQ`O7+)QO9uQ!0LrO7+)QO9kQ`O7+)QO@zQ`O7+)QO%:tQ`O7+)QOOQ[7+)Q7+)QOOQ[7+(p7+(pO%:yQ!0MvO7+(mO!&zQMhO7+(mO!E^Q`O7+(nOOQ[7+(n7+(nO!&zQMhO7+(nO%;TQ`O\x27#KbO%;`Q`O,5=lOOQO,5?i,5?iOOQO-E<{-E<{OOQ[7+(s7+(sO%<rQpO\x27#HZOOQ[1G3`1G3`O!&zQMhO1G3`O%[QlO1G3`O%<yQ`O1G3`O%=UQMhO1G3`O9uQ!0LrO1G3bO$%dQ`O1G3bO9`Q`O1G3bO!CUQpO1G3bO!C^QMhO1G3bO%=dQ`O\x27#JPO%=xQ`O,5@}O%>QQpO,5@}OOQ!0Lb1G3c1G3cOOQ[7+$V7+$VO@zQ`O7+$VO9uQ!0LrO7+$VO%>]Q`O7+$VO%[QlO1G6lO%[QlO1G6mO%>bQ!0LrO1G6lO%>lQlO1G3kO%>sQ`O1G3kO%>xQlO1G3kOOQ[7+)T7+)TO9uQ!0LrO7+)_O`QlO7+)aOOQ[\x27#Kh\x27#KhOOQ[\x27#JS\x27#JSO%?PQlO,5>`OOQ[,5>`,5>`O%[QlO\x27#HuO%?^Q`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%?cQpO1G5|O%?}Q?MtO1G0zO%@XQ`O1G0zOOQO1G/s1G/sO%@dQ?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$AlQ!0MxO7+&XOOQO7+&X7+&XO%[QlO7+&XO%@nQ!0LrO7+&XO!ByQ!0LrO7+%xO!CUQpO7+%xO%@yQ!0LrO7+&XO%AXQ!0MxO7++rO%[QlO7++rO%AiQ`O7++qO%AiQ`O7++qOOQO1G4s1G4sO9eQ`O1G4sO%AqQ`O1G4sOOQS7+%}7+%}O#(ZQ`O<<LPO4UQ!fO<<LPO%BPQ`O<<LPOOQ[<<LP<<LPO!&zQMhO<<LPO%[QlO<<LPO%BXQ`O<<LPO%BdQ!0MzO,5?aO%DoQ!0MzO,5?cO%FzQ!0MzO1G2`O%I]Q!0MzO1G2sO%KhQ!0MzO1G2uO%MsQ!fO,5?QO%[QlO,5?QOOQO-E<d-E<dO%M}Q`O1G5}OOQ!0Lf<<JU<<JUO%NVQ?MtO1G0uO&!^Q?MtO1G1PO&!eQ?MtO1G1PO&$fQ?MtO1G1PO&$mQ?MtO1G1PO&&nQ?MtO1G1PO&(oQ?MtO1G1PO&(vQ?MtO1G1PO&(}Q?MtO1G1PO&+OQ?MtO1G1PO&+VQ?MtO1G1PO&+^Q!0MxO<<JfO&-UQ?MtO1G1PO&.RQ?MvO1G1PO&/UQ?MvO\x27#JlO&1[Q?MtO1G1cO&1iQ?MtO1G0UO&1sQMjO,5?TOOQO-E<g-E<gO!)[QlO\x27#FqOOQO\x27#KZ\x27#KZOOQO1G1u1G1uO&1}Q`O1G1tO&2SQ?MtO,5?[OOOW7+\x27h7+\x27hOOOO1G/Z1G/ZO&2^Q!dO1G4xOOQ!0Lh7+(Q7+(QP!&zQMhO,5?^O!,TQMhO7+(cO&2eQ`O,5?]O9eQ`O,5?]O$+YQ`O,5?]OOQO-E<o-E<oO&2sQ`O1G6bO&2sQ`O1G6bO&2{Q`O1G6bO&3WQMjO7+\x27zO&3hQ!dO,5?_O&3rQ`O,5?_O!&zQMhO,5?_OOQO-E<q-E<qO&3wQ!dO1G6cO&4RQ`O1G6cO&4ZQ`O1G2kO!&zQMhO1G2kOOQ!0Lb1G2i1G2iOOQ!0Lb1G2j1G2jO%4hQpO1G2iO!CUQpO1G2iOCwQ`O1G2iOOQ!0Lb1G2q1G2qO&4`QpO1G2iO&4nQ`O1G2kO$+YQ`O1G2jOCwQ`O1G2jO$$wQlO1G2kO&4vQ`O1G2jO&5jQMjO,5?aOOQ!0Lh-E<t-E<tO&6]QMjO,5?cOOQ!0Lh-E<v-E<vO!,TQMhO7++]O&6gQMjO7++]O&6qQMjO7++]OOQ!0Lh1G/c1G/cO&7OQ`O1G/cOOQ!0Lh7+\x27u7+\x27uO&7TQMjO7+\x27|O&7eQ!0MxO<<KXOOQ!0Lf<<KX<<KXO&8XQ`O1G0zO!&zQMhO\x27#IzO&8^Q`O,5@xO&:`Q!fO<<LPO!&zQMhO1G2nO&:gQ!0LrO1G2nOOQ[<<G{<<G{O!ByQ!0LrO<<G{O&:xQ!0MxO<<I{OOQ!0Lf<<I{<<I{OOQO,5?l,5?lO&;lQ`O,5?lO&;qQ`O,5?lOOQO-E=O-E=OO&<PQ`O1G6kO&<PQ`O1G6kO9kQ`O1G6kO@zQ`O<<LlOOQ[<<Ll<<LlO&<XQ`O<<LlO9uQ!0LrO<<LlO9kQ`O<<LlOOQ[<<LX<<LXO%:yQ!0MvO<<LXOOQ[<<LY<<LYO!E^Q`O<<LYO&<^QpO\x27#I|O&<iQ`O,5@|O!)[QlO,5@|OOQ[1G3W1G3WOOQO\x27#JO\x27#JOO9uQ!0LrO\x27#JOO&<qQpO,5=uOOQ[,5=u,5=uO&<xQpO\x27#EgO&=PQpO\x27#GeO&=UQ`O7+(zO&=ZQ`O7+(zOOQ[7+(z7+(zO!&zQMhO7+(zO%[QlO7+(zO&=cQ`O7+(zOOQ[7+(|7+(|O9uQ!0LrO7+(|O$%dQ`O7+(|O9`Q`O7+(|O!CUQpO7+(|O&=nQ`O,5?kOOQO-E<}-E<}OOQO\x27#H^\x27#H^O&=yQ`O1G6iO9uQ!0LrO<<GqOOQ[<<Gq<<GqO@zQ`O<<GqO&>RQ`O7+,WO&>WQ`O7+,XO%[QlO7+,WO%[QlO7+,XOOQ[7+)V7+)VO&>]Q`O7+)VO&>bQlO7+)VO&>iQ`O7+)VOOQ[<<Ly<<LyOOQ[<<L{<<L{OOQ[-E=Q-E=QOOQ[1G3z1G3zO&>nQ`O,5>aOOQ[,5>c,5>cO&>sQ`O1G4QO9eQ`O7+&fO!)[QlO7+&fOOQO7+%_7+%_O&>xQ?MtO1G6ZO?YQ`O7+%_OOQ!0Lf<<Ia<<IaOOQ!0Lf<<Iz<<IzO?YQ`O<<IzOOQO<<Is<<IsO$AlQ!0MxO<<IsO%[QlO<<IsOOQO<<Id<<IdO!ByQ!0LrO<<IdO&?SQ!0LrO<<IsO&?_Q!0MxO<=\x20^O&?oQ`O<=\x20]OOQO7+*_7+*_O9eQ`O7+*_OOQ[ANAkANAkO&?wQ!fOANAkO!&zQMhOANAkO#(ZQ`OANAkO4UQ!fOANAkO&@OQ`OANAkO%[QlOANAkO&@WQ!0MzO7+\x27zO&BiQ!0MzO,5?aO&DtQ!0MzO,5?cO&GPQ!0MzO7+\x27|O&IbQ!fO1G4lO&IlQ?MtO7+&aO&KpQ?MvO,5=XO&MwQ?MvO,5=ZO&NXQ?MvO,5=XO&NiQ?MvO,5=ZO&NyQ?MvO,59uO\x27#PQ?MvO,5<kO\x27%SQ?MvO,5<mO\x27\x27hQ?MvO,5<{O\x27)^Q?MtO7+\x27kO\x27)kQ?MtO7+\x27mO\x27)xQ`O,5<]OOQO7+\x27`7+\x27`OOQ!0Lh7+*d7+*dO\x27)}QMjO<<K}OOQO1G4w1G4wO\x27*UQ`O1G4wO\x27*aQ`O1G4wO\x27*oQ`O7++|O\x27*oQ`O7++|O!&zQMhO1G4yO\x27*wQ!dO1G4yO\x27+RQ`O7++}O\x27+ZQ`O7+(VO\x27+fQ!dO7+(VOOQ!0Lb7+(T7+(TOOQ!0Lb7+(U7+(UO!CUQpO7+(TOCwQ`O7+(TO\x27+pQ`O7+(VO!&zQMhO7+(VO$+YQ`O7+(UO\x27+uQ`O7+(VOCwQ`O7+(UO\x27+}QMjO<<NwO!,TQMhO<<NwOOQ!0Lh7+$}7+$}O\x27,XQ!dO,5?fOOQO-E<x-E<xO\x27,cQ!0MvO7+(YO!&zQMhO7+(YOOQ[AN=gAN=gO9kQ`O1G5WOOQO1G5W1G5WO\x27,sQ`O1G5WO\x27,xQ`O7+,VO\x27,xQ`O7+,VO9uQ!0LrOANBWO@zQ`OANBWOOQ[ANBWANBWO\x27-QQ`OANBWOOQ[ANAsANAsOOQ[ANAtANAtO\x27-VQ`O,5?hOOQO-E<z-E<zO\x27-bQ?MtO1G6hOOQO,5?j,5?jOOQO-E<|-E<|OOQ[1G3a1G3aO\x27-lQ`O,5=POOQ[<<Lf<<LfO!&zQMhO<<LfO&=UQ`O<<LfO\x27-qQ`O<<LfO%[QlO<<LfOOQ[<<Lh<<LhO9uQ!0LrO<<LhO$%dQ`O<<LhO9`Q`O<<LhO\x27-yQpO1G5VO\x27.UQ`O7+,TOOQ[AN=]AN=]O9uQ!0LrOAN=]OOQ[<=\x20r<=\x20rOOQ[<=\x20s<=\x20sO\x27.^Q`O<=\x20rO\x27.cQ`O<=\x20sOOQ[<<Lq<<LqO\x27.hQ`O<<LqO\x27.mQlO<<LqOOQ[1G3{1G3{O?YQ`O7+)lO\x27.tQ`O<<JQO\x27/PQ?MtO<<JQOOQO<<Hy<<HyOOQ!0LfAN?fAN?fOOQOAN?_AN?_O$AlQ!0MxOAN?_OOQOAN?OAN?OO%[QlOAN?_OOQO<<My<<MyOOQ[G27VG27VO!&zQMhOG27VO#(ZQ`OG27VO\x27/ZQ!fOG27VO4UQ!fOG27VO\x27/bQ`OG27VO\x27/jQ?MtO<<JfO\x27/wQ?MvO1G2`O\x271mQ?MvO,5?aO\x273pQ?MvO,5?cO\x275sQ?MvO1G2sO\x277vQ?MvO1G2uO\x279yQ?MtO<<KXO\x27:WQ?MtO<<I{OOQO1G1w1G1wO!,TQMhOANAiOOQO7+*c7+*cO\x27:eQ`O7+*cO\x27:pQ`O<=\x20hO\x27:xQ!dO7+*eOOQ!0Lb<<Kq<<KqO$+YQ`O<<KqOCwQ`O<<KqO\x27;SQ`O<<KqO!&zQMhO<<KqOOQ!0Lb<<Ko<<KoO!CUQpO<<KoO\x27;_Q!dO<<KqOOQ!0Lb<<Kp<<KpO\x27;iQ`O<<KqO!&zQMhO<<KqO$+YQ`O<<KpO\x27;nQMjOANDcO\x27;xQ!0MvO<<KtOOQO7+*r7+*rO9kQ`O7+*rO\x27<YQ`O<=\x20qOOQ[G27rG27rO9uQ!0LrOG27rO@zQ`OG27rO!)[QlO1G5SO\x27<bQ`O7+,SO\x27<jQ`O1G2kO&=UQ`OANBQOOQ[ANBQANBQO!&zQMhOANBQO\x27<oQ`OANBQOOQ[ANBSANBSO9uQ!0LrOANBSO$%dQ`OANBSOOQO\x27#H_\x27#H_OOQO7+*q7+*qOOQ[G22wG22wOOQ[ANE^ANE^OOQ[ANE_ANE_OOQ[ANB]ANB]O\x27<wQ`OANB]OOQ[<<MW<<MWO!)[QlOAN?lOOQOG24yG24yO$AlQ!0MxOG24yO#(ZQ`OLD,qOOQ[LD,qLD,qO!&zQMhOLD,qO\x27<|Q!fOLD,qO\x27=TQ?MvO7+\x27zO\x27>yQ?MvO,5?aO\x27@|Q?MvO,5?cO\x27CPQ?MvO7+\x27|O\x27DuQMjOG27TOOQO<<M}<<M}OOQ!0LbANA]ANA]O$+YQ`OANA]OCwQ`OANA]O\x27EVQ!dOANA]OOQ!0LbANAZANAZO\x27E^Q`OANA]O!&zQMhOANA]O\x27EiQ!dOANA]OOQ!0LbANA[ANA[OOQO<<N^<<N^OOQ[LD-^LD-^O9uQ!0LrOLD-^O\x27EsQ?MtO7+*nOOQO\x27#Gf\x27#GfOOQ[G27lG27lO&=UQ`OG27lO!&zQMhOG27lOOQ[G27nG27nO9uQ!0LrOG27nOOQ[G27wG27wO\x27E}Q?MtOG25WOOQOLD*eLD*eOOQ[!$(!]!$(!]O#(ZQ`O!$(!]O!&zQMhO!$(!]O\x27FXQ!0MzOG27TOOQ!0LbG26wG26wO$+YQ`OG26wO\x27HjQ`OG26wOCwQ`OG26wO\x27HuQ!dOG26wO!&zQMhOG26wOOQ[!$(!x!$(!xOOQ[LD-WLD-WO&=UQ`OLD-WOOQ[LD-YLD-YOOQ[!)9Ew!)9EwO#(ZQ`O!)9EwOOQ!0LbLD,cLD,cO$+YQ`OLD,cOCwQ`OLD,cO\x27H|Q`OLD,cO\x27IXQ!dOLD,cOOQ[!$(!r!$(!rOOQ[!.K;c!.K;cO\x27I`Q?MvOG27TOOQ!0Lb!$(\x20}!$(\x20}O$+YQ`O!$(\x20}OCwQ`O!$(\x20}O\x27KUQ`O!$(\x20}OOQ!0Lb!)9Ei!)9EiO$+YQ`O!)9EiOCwQ`O!)9EiOOQ!0Lb!.K;T!.K;TO$+YQ`O!.K;TOOQ!0Lb!4/0o!4/0oO!)[QlO\x27#DzO1PQ`O\x27#EXO\x27KaQ!fO\x27#JrO\x27KhQ!L^O\x27#DvO\x27KoQlO\x27#EOO\x27KvQ!fO\x27#CiO\x27N^Q!fO\x27#CiO!)[QlO\x27#EQO\x27NnQlO,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(!qQ`O,5<iO!)[QlO,5;eO(!yQMhO,5;eO($dQMhO,5;eO!)[QlO,5;wO!&zQMhO\x27#GmO(!yQMhO\x27#GmO!&zQMhO\x27#GoO(!yQMhO\x27#GoO1SQ`O\x27#DZO1SQ`O\x27#DZO!&zQMhO\x27#GPO(!yQMhO\x27#GPO!&zQMhO\x27#GRO(!yQMhO\x27#GRO!&zQMhO\x27#GaO(!yQMhO\x27#GaO!)[QlO,5:jO($kQpO\x27#D_O($uQpO\x27#JvO!)[QlO,5@oO\x27NnQlO1G0uO(%PQ?MtO\x27#CiO!)[QlO1G2PO!&zQMhO\x27#IuO(!yQMhO\x27#IuO!&zQMhO\x27#IwO(!yQMhO\x27#IwO(%ZQ!dO\x27#CrO!&zQMhO,5<tO(!yQMhO,5<tO\x27NnQlO1G2RO!)[QlO7+&zO!&zQMhO1G2`O(!yQMhO1G2`O!&zQMhO\x27#IuO(!yQMhO\x27#IuO!&zQMhO\x27#IwO(!yQMhO\x27#IwO!&zQMhO1G2bO(!yQMhO1G2bO\x27NnQlO7+\x27mO\x27NnQlO7+&aO!&zQMhOANAiO(!yQMhOANAiO(%nQ`O\x27#EoO(%sQ`O\x27#EoO(%{Q`O\x27#F]O(&QQ`O\x27#EyO(&VQ`O\x27#KTO(&bQ`O\x27#KRO(&mQ`O,5;ZO(&rQMjO,5<eO(&yQ`O\x27#GYO(\x27OQ`O\x27#GYO(\x27TQ`O,5<eO(\x27]Q`O,5<gO(\x27eQ`O,5;ZO(\x27mQ?MtO1G1`O(\x27tQ`O,5<tO(\x27yQ`O,5<tO((OQ`O,5<vO((TQ`O,5<vO((YQ`O1G2RO((_Q`O1G0uO((dQMjO<<K}O((kQMjO<<K}O((rQMhO\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%.zQ!dO1G2wO%.zQ!dO1G2wO!&zQMhO,5=]O!&zQMhO,5=]','stateData':'()x~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!|<VO#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<ZO(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<[O!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!|<VO#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<sO!S${O!_$|O!i>VO!l$xO#j<yO$W%`O$t<uO$v<wO$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<UOQ<UOSfOd>ROe!iOpkOr<UOskOtkOzkO|<UO!O<UO!SWO!WkO!XkO!_!eO!i<XO!lZO!o<UO!p<UO!q<UO!s<YO!u<]O!x!hO$W!kO$n>PO(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%VOr%XOs$tOt$tOz%YO|%ZO!O<sO!S*YO!_*ZO!i>VO!l$xO#j<yO$W%`O$t<uO$v<wO$y%aO(VTO(YUO(a$uO(y$}O(z%PO~Op*`O![*^O(T*XO!k)OP~P!1uO#k*aO~O!l*bO~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<sO!S${O!_$|O!i>VO!l$xO#j<yO$W%`O$t<uO$v<wO$y%aO(T*dO(VTO(YUO(a$uO(y$}O(z%PO~O![*gO!Y)PP~P!3tOr*sOs!nO!S*iO!b*qO!c*kO!d*kO!l*bO#[*rO%`*mO(U!lO(VTO(YUO(e!mO~O!^*pO~P!5iO#S$dOn(`X!Q(`X\x27y(`X(y(`X(z(`X!](`X#`(`X~Og(`X$O(`X~P!6kOn*xO#`*wOg(_X!](_X~O!]*yOg(^X~Oj%dOk%dOl%dO(T&ZOg(^P~Os*|O~Og)}O(T&ZO~O!l+SO~O(T(vO~Op+WO!S%hO![#iO!_%iO!|]O#i#lO#j#iO(T%gO!k(sP~O!g#vO#k+XO~O!S%hO![+ZO!](^O!_%iO(T%gO!Y(vP~Os\x27[O!S+]O![+[O(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+gO!_\x27`O%i+fO~O!g+iOa(]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+tO%j+uO(T+qO(VTO(YUO!^)XP~O!]+vO`)WX~O[+zO~O`+{O~O!_&PO(T%gO(U!lO`)WP~O%j,OO~P;SOh%VO#`,SO~Oh%VOn,VO!_$|O~O!_,XO~O!Q,ZO!_XO~O%n%vO~O!x,`O~Oe,eO~Ob,fO(T#nO(VTO(YUO!^)VP~Oe%}O~O%j!QO(T&ZO~P=gO[,kO`,jO~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`,jOa%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,pOl!OO!uwO%l!OO%m!OO%n!OO~P!IcO!l&oO~O&^,vO~O!_,xO~O&o,zO&q,{OP&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-QO~Oh!eX!]!RX!^!RX!g!RX!g!eX!l!eX#`!RX~O!]!eX!^!eX~P#!iO!g-VO#`-UOh(jX!]#hX!^#hX!g(jX!l(jX~O!](jX!^(jX~P##[Oh%VO!g-XO!l%eO!]!aX!^!aX~Os!nO!S!oO(VTO(YUO(e!mO~OP<UOQ<UOSfOd>ROe!iOpkOr<UOskOtkOzkO|<UO!O<UO!SWO!WkO!XkO!_!eO!i<XO!lZO!o<UO!p<UO!q<UO!s<YO!u<]O!x!hO$W!kO$n>PO(VTO(YUO(aVO(o[O~O(T=QO~P#$qO!]-]O!^(iX~O!^-_O~O!g-VO#`-UO!]#hX!^#hX~O!]-`O!^(xX~O!^-bO~O!c-cO!d-cO(U!lO~P#$`O!^-fO~P\x27_On-iO!_\x27`O~O!Y-nO~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-sO#`-qO~PChO!c-uO!d-uO(U!lO~PDWOa%nO#`-qO\x27z%nO~Oa%nO!g#vO#`-qO\x27z%nO~Oa%nO!g#vO!p-sO#`-qO\x27z%nO(r\x27pO~O(P\x27xO(Q\x27xO(R-zO~Ov-{O~O!Y\x27Wa!]\x27Wa~P!:tO![.PO!Y\x27WX!]\x27WX~P%[O!](VO!Y(ha~O!Y(ha~PHRO!](^O!Y(va~O!S%hO![.TO!_%iO(T%gO!Y\x27^X!]\x27^X~O#`.VO!](ta!k(taa(ta\x27z(ta~O!g#vO~P#,wO!](jO!k(sa~O!S%hO!_%iO#j.ZO(T%gO~Op.`O!S%hO![.]O!_%iO!|]O#i._O#j.]O(T%gO!]\x27aX!k\x27aX~OR.dO!l#xO~Oh%VOn.gO!_\x27`O%i.fO~Oa#ci!]#ci\x27z#ci\x27w#ci!Y#ci!k#civ#ci!_#ci%i#ci!g#ci~P!:tOn>]O!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!].tO!k(kX~P!:tO!k.wO~O!Y.yO~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[<mOj<bOr<kO!Q#yO!S#{O!l#xO!p$[O#R<bO#n<_O#o<`O#p<`O#q<`O#r<aO#s<bO#t<bO#u<lO#v<cO#x<eO#z<gO#{<hO(aVO(r$YO(y#|O(z#}O~O$O.{O~P#BwO#S$dO#`<nO$Q<nO$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>]O!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!]/POg(pX~P!1WOg/RO~Oa$Pi!]$Pi\x27z$Pi\x27w$Pi!Y$Pi!k$Piv$Pi!_$Pi%i$Pi!g$Pi~P!:tO$]/SO$_/SO~O$]/TO$_/TO~O!g)hO#`/UO!_$cX$Z$cX$]$cX$_$cX$f$cX~O![/VO~O!_)kO$Z/XO$])jO$_)jO$f/YO~O!]<iO!^(fX~P#BwO!^/ZO~O!g)hO$f({X~O$f/]O~Ov/^O~P!&zOx)yO(b)zO(c/aO~O!S/dO~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!0SOp%WO![/mO!](^O(T/lO!Y(vP!Y)PP~P!1uOr*sO!b*qO!c*kO!d*kO!l*bO#[*rO%`*mO(U!lO(VTO(YUO~Os<}O!S/nO![+[O!^*pO(e<|O!^(xP~P$\x20[O!k/oO~P#/sO!]/pO!g#vO(r\x27pO!k)OX~O!k/uO~OnoX!QoX\x27yoX(yoX(zoX~O!g#vO!koX~P$#OOp/wO!S%hO![*^O!_%iO(T%gO!k)OP~O#k/xO~O!Y$zX!]$zX!g%RX~P!0SO!]/yO!Y)PX~P#/sO!g/{O~O!Y/}O~OpkO(T0OO~P.iOh%VOr0TO!g#vO!l%eO(r\x27pO~O!g+iO~Oa%nO!]0XO\x27z%nO~O!^0ZO~P!5iO!c0[O!d0[O(U!lO~P#$`Os!nO!S0]O(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!]*yOg(^a~Og0hO~On0jO#`0iOg(_a!](_a~OR0kO!Q0kO!S0lO#S$dOn}a\x27y}a(y}a(z}a!]}a#`}a~Og}a$O}a~P$(cO!Q*OO\x27y*POn$sa(y$sa(z$sa!]$sa#`$sa~Og$sa$O$sa~P$)_O!Q*OO\x27y*POn$ua(y$ua(z$ua!]$ua#`$ua~Og$ua$O$ua~P$*QO#k0oO~Og%Ta!]%Ta#`%Ta$O%Ta~P!1WO!g#vO~O#k0rO~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$+oOh%VOr%XOs$tOt$tOz%YO|%ZO!O<sO!S${O!_$|O!i>VO!l$xO#j<yO$W%`O$t<uO$v<wO$y%aO(VTO(YUO(a$uO(y$}O(z%PO~Op0{O%]0|O(T0zO~P$.VO!g+iOa(]a!_(]a\x27z(]a!](]a~O#k1SO~O[]X!]fX!^fX~O!]1TO!^)XX~O!^1VO~O[1WO~Ob1YO(T+qO(VTO(YUO~O!_&PO(T%gO`\x27uX!]\x27uX~O!]+vO`)Wa~O!k1]O~P!:tO[1`O~O`1aO~O#`1fO~On1iO!_$|O~O(e(|O!^)UP~Oh%VOn1rO!_1oO%i1qO~O[1|O!]1zO!^)VX~O!^1}O~O`2POa%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~Oj2SO&[2TOa(gX~P$3pOj2SO#`$eO&[2TO~Oa2VO~P%[Oa2XO~O&e2[OP&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~Ob2bO!^2`O&j2aO~P`O!_XO!l2dO~O&q,{OP&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!Y2jO~O!]!aa!^!aa~P#BwOs!nO!S!oO![2pO(e!mO!]\x27XX!^\x27XX~P@nO!]-]O!^(ia~O!]\x27_X!^\x27_X~P!9|O!]-`O!^(xa~O!^2wO~P\x27_Oa%nO#`3QO\x27z%nO~Oa%nO!g#vO#`3QO\x27z%nO~Oa%nO!g#vO!p3UO#`3QO\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#`3WO!](ti!k(tia(ti\x27z(ti~O!](jO!k(si~O!S%hO!_%iO!|]O#i3]O#j3[O(T%gO~O!S%hO!_%iO#j3[O(T%gO~On3dO!_\x27`O%i3cO~Oh%VOn3dO!_\x27`O%i3cO~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$(cO#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$)_O#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$*QO#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![3lO!]\x27YX!k\x27YX~P%[O!].tO!k(ka~O!].tO!k(ka~P!:tO!Y3oO~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!]/POg(pa~OSfO!_4TO$d4UO~O!^4YO~Ov4ZO~P#/sOa$mq!]$mq\x27z$mq\x27w$mq!Y$mq!k$mqv$mq!_$mq%i$mq!g$mq~P!:tO!Y4]O~P!&zO!S4^O~O!Q*OO\x27y*PO(z%POn\x27ia(y\x27ia!]\x27ia#`\x27ia~Og\x27ia$O\x27ia~P%-fO!Q*OO\x27y*POn\x27ka(y\x27ka(z\x27ka!]\x27ka#`\x27ka~Og\x27ka$O\x27ka~P%.XO(r$YO~P#/sO!YfX!Y$zX!]fX!]$zX!g%RX#`fX~P!0SOp%WO(T=WO~P!1uOp4bO!S%hO![4aO!_%iO(T%gO!]\x27eX!k\x27eX~O!]/pO!k)Oa~O!]/pO!g#vO!k)Oa~O!]/pO!g#vO(r\x27pO!k)Oa~Og$|i!]$|i#`$|i$O$|i~P!1WO![4jO!Y\x27gX!]\x27gX~P!3tO!]/yO!Y)Pa~O!]/yO!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%2OOj4oO!g#vO~Oh%VO!g#vO!l%eO~Oh%VOr4tO!l%eO(r\x27pO~Or4yO!g#vO(r\x27pO~Os!nO!S4zO(VTO(YUO(e!mO~O(y$}On%ai!Q%ai\x27y%ai(z%ai!]%ai#`%ai~Og%ai$O%ai~P%5oO(z%POn%ci!Q%ci\x27y%ci(y%ci!]%ci#`%ci~Og%ci$O%ci~P%6bOg(_i!](_i~P!1WO#`5QOg(_i!](_i~P!1WO!k5VO~Oa$oq!]$oq\x27z$oq\x27w$oq!Y$oq!k$oqv$oq!_$oq%i$oq!g$oq~P!:tO!Y5ZO~O!]5[O!_)QX~P#/sOa$zX!_$zX%^]X\x27z$zX!]$zX~P!0SO%^5_OaoX!_oX\x27zoX!]oX~P$#OOp5`O(T#nO~O%^5_O~Ob5fO%j5gO(T+qO(VTO(YUO!]\x27tX!^\x27tX~O!]1TO!^)Xa~O[5kO~O`5lO~O[5pO~Oa%nO\x27z%nO~P#/sO!]5uO#`5wO!^)UX~O!^5xO~Or6OOs!nO!S*iO!b!yO!c!vO!d!vO!|<VO#T!pO#U!pO#V!pO#W!pO#X!pO#[5}O#]!zO(U!lO(VTO(YUO(e!mO(o!sO~O!^5|O~P%;eOn6TO!_1oO%i6SO~Oh%VOn6TO!_1oO%i6SO~Ob6[O(T#nO(VTO(YUO!]\x27sX!^\x27sX~O!]1zO!^)Va~O(VTO(YUO(e6^O~O`6bO~Oj6eO&[6fO~PNXO!k6gO~P%[Oa6iO~Oa6iO~P%[Ob2bO!^6nO&j2aO~P`O!g6pO~O!g6rOh(ji!](ji!^(ji!g(ji!l(jir(ji(r(ji~O!]#hi!^#hi~P#BwO#`6sO!]#hi!^#hi~O!]!ai!^!ai~P#BwOa%nO#`6|O\x27z%nO~Oa%nO!g#vO#`6|O\x27z%nO~O!](tq!k(tqa(tq\x27z(tq~P!:tO!](jO!k(sq~O!S%hO!_%iO#j7TO(T%gO~O!_\x27`O%i7WO~On7[O!_\x27`O%i7WO~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%-fO#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%.XO#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%5oO#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%6bO!]\x27Ya!k\x27Ya~P!:tO!].tO!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%NdO#n<_O~P%NdOP$[OR#zOr<kO!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&!lO#r<aO~P&!lOP$[OR#zO[<mOj<bOr<kO!Q#yO!S#{O!l#xO!p$[O#R<bO#n<_O#o<`O#p<`O#q<`O#r<aO#s<bO#t<bO#u<lO(aVO#x#mi#z#mi#{#mi$O#mi(r#mi(y#mi(z#mi!]#mi!^#mi~O#v#mi~P&$tOP$[OR#zO[<mOj<bOr<kO!Q#yO!S#{O!l#xO!p$[O#R<bO#n<_O#o<`O#p<`O#q<`O#r<aO#s<bO#t<bO#u<lO#v<cO(aVO(z#}O#z#mi#{#mi$O#mi(r#mi(y#mi!]#mi!^#mi~O#x<eO~P&&uO#x#mi~P&&uO#v<cO~P&$tOP$[OR#zO[<mOj<bOr<kO!Q#yO!S#{O!l#xO!p$[O#R<bO#n<_O#o<`O#p<`O#q<`O#r<aO#s<bO#t<bO#u<lO#v<cO#x<eO(aVO(y#|O(z#}O#{#mi$O#mi(r#mi!]#mi!^#mi~O#z#mi~P&)UO#z<gO~P&)UOa#|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&,QOn>^O!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&,QO#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$+oOg\x27]a!]\x27]a~P!1WO!^7nO~O!]\x27da!^\x27da~P#BwO!Y7oO~P#/sO!g#vO(r\x27pO!]\x27ea!k\x27ea~O!]/pO!k)Oi~O!]/pO!g#vO!k)Oi~Og$|q!]$|q#`$|q$O$|q~P!1WO!Y\x27ga!]\x27ga~P#/sO!g7vO~O!]/yO!Y)Pi~P#/sO!]/yO!Y)Pi~O!Y7yO~Oh%VOr8OO!l%eO(r\x27pO~Oj8QO!g#vO~Or8TO!g#vO(r\x27pO~O!Q*OO\x27y*PO(z%POn\x27ja(y\x27ja!]\x27ja#`\x27ja~Og\x27ja$O\x27ja~P&5RO!Q*OO\x27y*POn\x27la(y\x27la(z\x27la!]\x27la#`\x27la~Og\x27la$O\x27la~P&5tOg(_q!](_q~P!1WO#`8VOg(_q!](_q~P!1WO!Y8WO~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!g6rO~O!]5[O!_)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%i7WO~P&8fO%^8[Oa%[i!_%[i\x27z%[i!]%[i~Oa#cy!]#cy\x27z#cy\x27w#cy!Y#cy!k#cyv#cy!_#cy%i#cy!g#cy~P!:tO[8^O~Ob8`O(T+qO(VTO(YUO~O!]1TO!^)Xi~O`8dO~O(e(|O!]\x27pX!^\x27pX~O!]5uO!^)Ua~O!^8nO~P%;eO(o!sO~P$&YO#[8oO~O!_1oO~O!_1oO%i8qO~On8tO!_1oO%i8qO~O[8yO!]\x27sa!^\x27sa~O!]1zO!^)Vi~O!k8}O~O!k9OO~O!k9RO~O!k9RO~P%[Oa9TO~O!g9UO~O!k9VO~O!](wi!^(wi~P#BwOa%nO#`9_O\x27z%nO~O!](ty!k(tya(ty\x27z(ty~P!:tO!](jO!k(sy~O%i9bO~P&8fO!_\x27`O%i9bO~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&5RO#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&5tO#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&IyO(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&LQOn>^O!Q*OO\x27y*PO(z%PO~P&IyOn>^O!Q*OO\x27y*PO(y$}O~P&LQOR0kO!Q0kO!S0lO#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>^O!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\x27VO$O$mq!]$mq!^$mq~P#BwO$O$oq!]$oq!^$oq~P#BwO!^9oO~O$O9pO~P!1WO!g#vO!]\x27ei!k\x27ei~O!g#vO(r\x27pO!]\x27ei!k\x27ei~O!]/pO!k)Oq~O!Y\x27gi!]\x27gi~P#/sO!]/yO!Y)Pq~Or9wO!g#vO(r\x27pO~O[9yO!Y9xO~P#/sO!Y9xO~Oj:PO!g#vO~Og(_y!](_y~P!1WO!]\x27na!_\x27na~P#/sOa%[q!_%[q\x27z%[q!]%[q~P#/sO[:UO~O!]1TO!^)Xq~O`:YO~O#`:ZO!]\x27pa!^\x27pa~O!]5uO!^)Ui~P#BwO!S:]O~O!_1oO%i:`O~O(VTO(YUO(e:eO~O!]1zO!^)Vq~O!k:hO~O!k:iO~O!k:jO~O!k:jO~P%[O#`:mO!]#hy!^#hy~O!]#hy!^#hy~P#BwO%i:rO~P&8fO!_\x27`O%i:rO~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\x27VO!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!]/pO!k)Oy~O!Y\x27gq!]\x27gq~P#/sOr:|O!g#vO(r\x27pO~O[;QO!Y;PO~P#/sO!Y;PO~Og(_!R!](_!R~P!1WOa%[y!_%[y\x27z%[y!]%[y~P#/sO!]1TO!^)Xy~O!]5uO!^)Uq~O(T;XO~O!_1oO%i;[O~O!k;_O~O%i;dO~P&8fOP$|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\x27VO!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\x27VOg%e!Z!]%e!Z#`%e!Z$O%e!Z~P!1WO!Y;hO~P#/sOr;iO!g#vO(r\x27pO~O[;kO!Y;hO~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;tO!g#vO(r\x27pO~O!Y;uO~P#/sOr;|O!g#vO(r\x27pO~O!Y;}O~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\x27VOr<QO!g#vO(r\x27pO~Ov(fX~P1qO!Q%rO~P!)[O(U!lO~P!)[O!YfX!]fX#`fX~P%2OOP]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\x27LTOP<UOQ<UOSfOd>ROe!iOpkOr<UOskOtkOzkO|<UO!O<UO!SWO!WkO!XkO!_XO!i<XO!lZO!o<UO!p<UO!q<UO!s<YO!u<]O!x!hO$W!kO$n>PO(T)]O(VTO(YUO(aVO(o[O~O!]<iO!^$qa~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<tO!S${O!_$|O!i>WO!l$xO#j<zO$W%`O$t<vO$v<xO$y%aO(T(vO(VTO(YUO(a$uO(y$}O(z%PO~Ol)dO~P(!yOr!eX(r!eX~P#!iOr(jX(r(jX~P##[O!^]X!^fX~P\x27LTO!YfX!Y$zX!]fX!]$zX#`fX~P!0SO#k<^O~O!g#vO#k<^O~O#`<nO~Oj<bO~O#`=OO!](wX!^(wX~O#`<nO!](uX!^(uX~O#k=PO~Og=RO~P!1WO#k=XO~O#k=YO~Og=RO(T&ZO~O!g#vO#k=ZO~O!g#vO#k=PO~O$O=[O~P#BwO#k=]O~O#k=^O~O#k=cO~O#k=dO~O#k=eO~O#k=fO~O$O=gO~P!1WO$O=hO~P!1WOl=sO~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':'$9Y)]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!2iI[I[!2n!5z!:h!:h!>gPPP!>oI[PPPPPPPPP!BOP!C]PPI[!DnPI[PI[I[I[I[I[PI[!FQP!I[P!LbP!Lf!Lp!Lt!LtP!IXP!Lx!LxP#!OP#!SI[PI[#!Y#%_CjA^PA^PA^A^P#&lA^A^#)OA^#+vA^#.SA^A^#.r#1W#1W#1]#1f#1W#1qPP#1WPA^#2ZA^#6YA^A^6mPPP#:_PPP#:x#:xP#:xP#;`#:xPP#;fP#;]P#;]#;y#;]#<e#<k#<n)aP#<q)aP#<z#<z#<zP)aP)aP)aP)aPP)aP#=Q#=TP#=T)aP#=XP#=[P)aP)aP)aP)aP)aP)a)aPP#=b#=h#=s#=y#>P#>V#>]#>k#>q#>{#?R#?]#?c#?s#?y#@k#@}#AT#AZ#Ai#BO#Cs#DR#DY#Et#FS#Gt#HS#HY#H`#Hf#Hp#Hv#H|#IW#Ij#IpPPPPPPPPPPP#IvPPPPPPP#Jk#Mx$\x20b$\x20i$\x20qPPP$\x27]P$\x27f$*_$0x$0{$1O$1}$2Q$2X$2aP$2g$2jP$3W$3[$4S$5b$5g$5}PP$6S$6Y$6^$6a$6e$6i$7e$7|$8e$8i$8l$8o$8y$8|$9Q$9UR!|RoqOXst!Z#d%m&r&t&u&w,s,x2[2_Y!vQ\x27`-e1o5{Q%tvQ%|yQ&T|Q&j!VS\x27W!e-]Q\x27f!iS\x27l!r!yU*k$|*Z*oQ+o%}S+|&V&WQ,d&dQ-c\x27_Q-m\x27gQ-u\x27mQ0[*qQ1b,OQ1y,eR<{<Y%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)}*i+X+],p,s,x-i-q.P.V.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3l4z6T6e6f6i6|8t9T9_S#q]<V!r)_$Z$n\x27X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SU+P%]<s<tQ+t&PQ,f&gQ,m&oQ0x+gQ0}+iQ1Y+uQ2R,kQ3`.gQ5`0|Q5f1TQ6[1zQ7Y3dQ8`5gR9e7[\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)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>S!S!nQ!r!v!y!z$|\x27W\x27_\x27`\x27l\x27m\x27n*k*o*q*r-]-c-e-u0[0_1o5{5}%[$ti#v$b$c$d$x${%O%Q%^%_%c)y*R*T*V*Y*a*g*w*x+f+i,S,V.f/P/d/m/x/y/{0`0b0i0j0o1f1i1q3c4^4_4j4o5Q5[5_6S7W7v8Q8V8[8q9b9p9y:P:`:r;Q;[;d;k<l<m<o<p<q<r<u<v<w<x<y<z=S=T=U=V=X=Y=]=^=_=`=a=b=c=d=g=h>P>X>Y>]>^Q&X|Q\x27U!eS\x27[%i-`Q+t&PQ,P&WQ,f&gQ0n+SQ1Y+uQ1_+{Q2Q,jQ2R,kQ5f1TQ5o1aQ6[1zQ6_1|Q6`2PQ8`5gQ8c5lQ8|6bQ:X8dQ:f8yQ;V:YR<}*ZrnOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_R,h&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)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>R>S[#]WZ#W#Z\x27X(T!b%jm#h#i#l$x%e%h(^(h(i(j*Y*^*b+Z+[+^,o-V.T.Z.[.]._/m/p2d3[3]4a6r7TQ%wxQ%{yW&Q|&V&W,OQ&_!TQ\x27c!hQ\x27e!iQ(q#sS+n%|%}Q+r&PQ,_&bQ,c&dS-l\x27f\x27gQ.i(rQ1R+oQ1X+uQ1Z+vQ1^+zQ1t,`S1x,d,eQ2|-mQ5e1TQ5i1WQ5n1`Q6Z1yQ8_5gQ8b5kQ8f5pQ:T8^R;T:U!U$zi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y!^%yy!i!u%{%|%}\x27V\x27e\x27f\x27g\x27k\x27u*j+n+o-Y-l-m-t0R0U1R2u2|3T4r4s4v7}9{Q+h%wQ,T&[Q,W&]Q,b&dQ.h(qQ1s,_U1w,c,d,eQ3e.iQ6U1tS6Y1x1yQ8x6Z#f>T#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^o>U<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=hW%Ti%V*y>PS&[!Q&iQ&]!RQ&^!SU*}%[%d=sR,R&Y%]%Si#v$b$c$d$x${%O%Q%^%_%c)y*R*T*V*Y*a*g*w*x+f+i,S,V.f/P/d/m/x/y/{0`0b0i0j0o1f1i1q3c4^4_4j4o5Q5[5_6S7W7v8Q8V8[8q9b9p9y:P:`:r;Q;[;d;k<l<m<o<p<q<r<u<v<w<x<y<z=S=T=U=V=X=Y=]=^=_=`=a=b=c=d=g=h>P>X>Y>]>^T)z$u){V+P%]<s<tW\x27[!e%i*Z-`S(}#y#zQ+c%rQ+y&SS.b(m(nQ1j,XQ5T0kR8i5u\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)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>S$i$^c#Y#e%q%s%u(S(Y(t(y)R)S)T)U)V)W)X)Y)Z)[)^)`)b)g)q+d+x-Z-x-}.S.U.s.v.z.|.}/O/b0p2k2n3O3V3k3p3q3r3s3t3u3v3w3x3y3z3{3|4P4Q4X5X5c6u6{7Q7a7b7k7l8k9X9]9g9m9n:o;W;`<W=vT#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)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SQ\x27Y!eR2q-]!W!nQ!e!r!v!y!z$|\x27W\x27_\x27`\x27l\x27m\x27n*Z*k*o*q*r-]-c-e-u0[0_1o5{5}R1l,ZnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&y!^Q\x27v!xS(s#u<^Q+l%zQ,]&_Q,^&aQ-j\x27dQ-w\x27oS.r(x=PS0q+X=ZQ1P+mQ1n,[Q2c,zQ2e,{Q2m-WQ2z-kQ2}-oS5Y0r=eQ5a1QS5d1S=fQ6t2oQ6x2{Q6}3SQ8]5bQ9Y6vQ9Z6yQ9^7OR:l9V$d$]c#Y#e%s%u(S(Y(t(y)R)S)T)U)V)W)X)Y)Z)[)^)`)b)g)q+d+x-Z-x-}.S.U.s.v.z.}/O/b0p2k2n3O3V3k3p3q3r3s3t3u3v3w3x3y3z3{3|4P4Q4X5X5c6u6{7Q7a7b7k7l8k9X9]9g9m9n:o;W;`<W=vS(o#p\x27iQ)P#zS+b%q.|S.c(n(pR3^.d\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)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SS#q]<VQ&t!XQ&u!YQ&w![Q&x!]R2Z,vQ\x27a!hQ+e%wQ-h\x27cS.e(q+hQ2x-gW3b.h.i0w0yQ6w2yW7U3_3a3e5^U9a7V7X7ZU:q9c9d9fS;b:p:sQ;p;cR;x;qU!wQ\x27`-eT5y1o5{!Q_OXZ`st!V!Z#d#h%e%m&i&k&r&t&u&w(j,s,x.[2[2_]!pQ!r\x27`-e1o5{T#q]<V%^{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)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_S(}#y#zS.b(m(n!s=l$Z$n\x27X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SU$fd)_,mS(p#p\x27iU*v%R(w4OU0m+O.n7gQ5^0xQ7V3`Q9d7YR:s9em!tQ!r!v!y!z\x27`\x27l\x27m\x27n-e-u1o5{5}Q\x27t!uS(f#g2US-s\x27k\x27wQ/s*]Q0R*jQ3U-vQ4f/tQ4r0TQ4s0UQ4x0^Q7r4`S7}4t4vS8R4y4{Q9r7sQ9v7yQ9{8OQ:Q8TS:{9w9xS;g:|;PS;s;h;iS;{;t;uS<P;|;}R<S<QQ#wbQ\x27s!uS(e#g2US(g#m+WQ+Y%fQ+j%xQ+p&OU-r\x27k\x27t\x27wQ.W(fU/r*]*`/wQ0S*jQ0V*lQ1O+kQ1u,aS3R-s-vQ3Z.`S4e/s/tQ4n0PS4q0R0^Q4u0WQ6W1vQ7P3US7q4`4bQ7u4fU7|4r4x4{Q8P4wQ8v6XS9q7r7sQ9u7yQ9}8RQ:O8SQ:c8wQ:y9rS:z9v9xQ;S:QQ;^:dS;f:{;PS;r;g;hS;z;s;uS<O;{;}Q<R<PQ<T<SQ=o=jQ={=tR=|=uV!wQ\x27`-e%^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)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_S#wz!j!r=i$Z$n\x27X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SR=o>R%^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)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_Q%fj!^%xy!i!u%{%|%}\x27V\x27e\x27f\x27g\x27k\x27u*j+n+o-Y-l-m-t0R0U1R2u2|3T4r4s4v7}9{S&Oz!jQ+k%yQ,a&dW1v,b,c,d,eU6X1w1x1yS8w6Y6ZQ:d8x!r=j$Z$n\x27X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SQ=t>QR=u>R%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)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_Y#bWZ#W#Z(T!b%jm#h#i#l$x%e%h(^(h(i(j*Y*^*b+Z+[+^,o-V.T.Z.[.]._/m/p2d3[3]4a6r7TQ,n&o!p=k$Z$n)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SR=n\x27XU\x27]!e%i*ZR2s-`%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)}*i+X+],p,s,x-i-q.P.V.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3l4z6T6e6f6i6|8t9T9_!r)_$Z$n\x27X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SQ,m&oQ0x+gQ3`.gQ7Y3dR9e7[!b$Tc#Y%q(S(Y(t(y)Z)[)`)g+x-x-}.S.U.s.v/b0p3O3V3k3{5X5c6{7Q7a9]:o<W!P<d)^)q-Z.|2k2n3p3y3z4P4X6u7b7k7l8k9X9g9m9n;W;`=v!f$Vc#Y%q(S(Y(t(y)W)X)Z)[)`)g+x-x-}.S.U.s.v/b0p3O3V3k3{5X5c6{7Q7a9]:o<W!T<f)^)q-Z.|2k2n3p3v3w3y3z4P4X6u7b7k7l8k9X9g9m9n;W;`=v!^$Zc#Y%q(S(Y(t(y)`)g+x-x-}.S.U.s.v/b0p3O3V3k3{5X5c6{7Q7a9]:o<WQ4_/kz>S)^)q-Z.|2k2n3p4P4X6u7b7k7l8k9X9g9m9n;W;`=vQ>X>ZR>Y>[\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)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SS$oh$pR4U/U\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)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/U/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>ST$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)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/U/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>ST$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)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_!s>Q$Z$n\x27X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>S#glOPXZst!Z!`!o#S#d#o#{$n%m&k&n&o&r&t&u&w&{\x27T\x27b)O)s*i+]+g,p,s,x-i.g/V/n0]0l1r2S2T2V2X2[2_2a3d4T4z6T6e6f6i7[8t9T!U%Ri$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y#f(w#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^Q+T%aQ/c*Oo4O<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=h!U$yi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>YQ*c$zU*l$|*Z*oQ+U%bQ0W*m#f=q#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^n=r<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=hQ=w>TQ=x>UQ=y>VR=z>W!U%Ri$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y#f(w#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^o4O<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=hnoOXst!Z#d%m&r&t&u&w,s,x2[2_S*f${*YQ-R\x27OQ-S\x27QR4i/y%[%Si#v$b$c$d$x${%O%Q%^%_%c)y*R*T*V*Y*a*g*w*x+f+i,S,V.f/P/d/m/x/y/{0`0b0i0j0o1f1i1q3c4^4_4j4o5Q5[5_6S7W7v8Q8V8[8q9b9p9y:P:`:r;Q;[;d;k<l<m<o<p<q<r<u<v<w<x<y<z=S=T=U=V=X=Y=]=^=_=`=a=b=c=d=g=h>P>X>Y>]>^Q,U&]Q1h,WQ5s1gR8h5tV*n$|*Z*oU*n$|*Z*oT5z1o5{S0P*i/nQ4w0]T8S4z:]Q+j%xQ0V*lQ1O+kQ1u,aQ6W1vQ8v6XQ:c8wR;^:d!U%Oi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Yx*R$v)e*S*u+V/v0d0e4R4g5R5S5W7p8U:R:x=p=}>OS0`*t0a#f<o#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^n<p<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=h!d=S(u)c*[*e.j.m.q/_/k/|0v1e3h4[4h4l5r7]7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[`=T3}7c7f7j9h:t:w;yS=_.l3iT=`7e9k!U%Qi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y|*T$v)e*U*t+V/g/v0d0e4R4g4|5R5S5W7p8U:R:x=p=}>OS0b*u0c#f<q#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^n<r<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=h!h=U(u)c*[*e.k.l.q/_/k/|0v1e3f3h4[4h4l5r7]7^7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[d=V3}7d7e7j9h9i:t:u:w;yS=a.m3jT=b7f9lrnOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_Q&f!UR,p&ornOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_R&f!UQ,Y&^R1d,RsnOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_Q1p,_S6R1s1tU8p6P6Q6US:_8r8sS;Y:^:aQ;m;ZR;w;nQ&m!VR,i&iR6_1|R:f8yW&Q|&V&W,OR1Z+vQ&r!WR,s&sR,y&xT2],x2_R,}&yQ,|&yR2f,}Q\x27y!{R-y\x27ySsOtQ#dXT%ps#dQ#OTR\x27{#OQ#RUR\x27}#RQ){$uR/`){Q#UVR(Q#UQ#XWU(W#X(X.QQ(X#YR.Q(YQ-^\x27YR2r-^Q.u(yS3m.u3nR3n.vQ-e\x27`R2v-eY!rQ\x27`-e1o5{R\x27j!rQ/Q)eR4S/QU#_W%h*YU(_#_(`.RQ(`#`R.R(ZQ-a\x27]R2t-at`OXst!V!Z#d%m&i&k&r&t&u&w,s,x2[2_S#hZ%eU#r`#h.[R.[(jQ(k#jQ.X(gW.a(k.X3X7RQ3X.YR7R3YQ)n$lR/W)nQ$phR)t$pQ$`cU)a$`-|<jQ-|<WR<j)qQ/q*]W4c/q4d7t9sU4d/r/s/tS7t4e4fR9s7u$e*Q$v(u)c)e*[*e*t*u+Q+R+V.l.m.o.p.q/_/g/i/k/v/|0d0e0v1e3f3g3h3}4R4[4g4h4l4|5O5R5S5W5r7]7^7_7`7e7f7h7i7j7p7w7z8U8X8Z9h9i9j9t9|:R:S:t:u:v:w:x:};R;e;j;v;y=p=}>O>Z>[Q/z*eU4k/z4m7xQ4m/|R7x4lS*o$|*ZR0Y*ox*S$v)e*t*u+V/v0d0e4R4g5R5S5W7p8U:R:x=p=}>O!d.j(u)c*[*e.l.m.q/_/k/|0v1e3h4[4h4l5r7]7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[U/h*S.j7ca7c3}7e7f7j9h:t:w;yQ0a*tQ3i.lU4}0a3i9kR9k7e|*U$v)e*t*u+V/g/v0d0e4R4g4|5R5S5W7p8U:R:x=p=}>O!h.k(u)c*[*e.l.m.q/_/k/|0v1e3f3h4[4h4l5r7]7^7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[U/j*U.k7de7d3}7e7f7j9h9i:t:u:w;yQ0c*uQ3j.mU5P0c3j9lR9l7fQ*z%UR0g*zQ5]0vR8Y5]Q+_%kR0u+_Q5v1jS8j5v:[R:[8kQ,[&_R1m,[Q5{1oR8m5{Q1{,fS6]1{8zR8z6_Q1U+rW5h1U5j8a:VQ5j1XQ8a5iR:V8bQ+w&QR1[+wQ2_,xR6m2_YrOXst#dQ&v!ZQ+a%mQ,r&rQ,t&tQ,u&uQ,w&wQ2Y,sS2],x2_R6l2[Q%opQ&z!_Q&}!aQ\x27P!bQ\x27R!cQ\x27q!uQ+`%lQ+l%zQ,Q&XQ,h&mQ-P&|W-p\x27k\x27s\x27t\x27wQ-w\x27oQ0X*nQ1P+mQ1c,PS2O,i,lQ2g-OQ2h-RQ2i-SQ2}-oW3P-r-s-v-xQ5a1QQ5m1_Q5q1eQ6V1uQ6a2QQ6k2ZU6z3O3R3UQ6}3SQ8]5bQ8e5oQ8g5rQ8l5zQ8u6WQ8{6`S9[6{7PQ9^7OQ:W8cQ:b8vQ:g8|Q:n9]Q;U:XQ;]:cQ;a:oQ;l;VR;o;^Q%zyQ\x27d!iQ\x27o!uU+m%{%|%}Q-W\x27VU-k\x27e\x27f\x27gS-o\x27k\x27uQ0Q*jS1Q+n+oQ2o-YS2{-l-mQ3S-tS4p0R0UQ5b1RQ6v2uQ6y2|Q7O3TU7{4r4s4vQ9z7}R;O9{S$wi>PR*{%VU%Ui%V>PR0f*yQ$viS(u#v+iS)c$b$cQ)e$dQ*[$xS*e${*YQ*t%OQ*u%QQ+Q%^Q+R%_Q+V%cQ.l<oQ.m<qQ.o<uQ.p<wQ.q<yQ/_)yQ/g*RQ/i*TQ/k*VQ/v*aS/|*g/mQ0d*wQ0e*xl0v+f,V.f1i1q3c6S7W8q9b:`:r;[;dQ1e,SQ3f=SQ3g=UQ3h=XS3}<l<mQ4R/PS4[/d4^Q4g/xQ4h/yQ4l/{Q4|0`Q5O0bQ5R0iQ5S0jQ5W0oQ5r1fQ7]=]Q7^=_Q7_=aQ7`=cQ7e<pQ7f<rQ7h<vQ7i<xQ7j<zQ7p4_Q7w4jQ7z4oQ8U5QQ8X5[Q8Z5_Q9h=YQ9i=TQ9j=VQ9t7vQ9|8QQ:R8VQ:S8[Q:t=^Q:u=`Q:v=bQ:w=dQ:x9pQ:}9yQ;R:PQ;e=gQ;j;QQ;v;kQ;y=hQ=p>PQ=}>XQ>O>YQ>Z>]R>[>^Q+O%]Q.n<sR7g<tnpOXst!Z#d%m&r&t&u&w,s,x2[2_Q!fPS#fZ#oQ&|!`W\x27h!o*i0]4zQ(P#SQ)Q#{Q)r$nS,l&k&nQ,q&oQ-O&{S-T\x27T/nQ-g\x27bQ.x)OQ/[)sQ0s+]Q0y+gQ2W,pQ2y-iQ3a.gQ4W/VQ5U0lQ6Q1rQ6c2SQ6d2TQ6h2VQ6j2XQ6o2aQ7Z3dQ7m4TQ8s6TQ9P6eQ9Q6fQ9S6iQ9f7[Q:a8tR:k9T#[cOPXZst!Z!`!o#d#o#{%m&k&n&o&r&t&u&w&{\x27T\x27b)O*i+]+g,p,s,x-i.g/n0]0l1r2S2T2V2X2[2_2a3d4z6T6e6f6i7[8t9TQ#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/V4TQ+d%tQ+x&RS-Z\x27X2pQ-x\x27rS-}(T.PQ.S(]Q.U(dQ.s(xQ.v(zQ.z<UQ.|<XQ.}<YQ/O<]Q/b)}Q0p+XQ2k-UQ2n-XQ3O-qQ3V.VQ3k.tQ3p<^Q3q<_Q3r<`Q3s<aQ3t<bQ3u<cQ3v<dQ3w<eQ3x<fQ3y<gQ3z<hQ3{.{Q3|<kQ4P<nQ4Q<{Q4X<iQ5X0rQ5c1SQ6u=OQ6{3QQ7Q3WQ7a3lQ7b=PQ7k=RQ7l=ZQ8k5wQ9X6sQ9]6|Q9g=[Q9m=eQ9n=fQ:o9_Q;W:ZQ;`:mQ<W#SR=v>SR#[WR\x27Z!el!tQ!r!v!y!z\x27`\x27l\x27m\x27n-e-u1o5{5}S\x27V!e-]U*j$|*Z*oS-Y\x27W\x27_S0U*k*qQ0^*rQ2u-cQ4v0[R4{0_R({#xQ!fQT-d\x27`-e]!qQ!r\x27`-e1o5{Q#p]R\x27i<VR)f$dY!uQ\x27`-e1o5{Q\x27k!rS\x27u!v!yS\x27w!z5}S-t\x27l\x27mQ-v\x27nR3T-uT#kZ%eS#jZ%eS%km,oU(g#h#i#lS.Y(h(iQ.^(jQ0t+^Q3Y.ZU3Z.[.]._S7S3[3]R9`7Td#^W#W#Z%h(T(^*Y+Z.T/mr#gZm#h#i#l%e(h(i(j+^.Z.[.]._3[3]7TS*]$x*bQ/t*^Q2U,oQ2l-VQ4`/pQ6q2dQ7s4aQ9W6rT=m\x27X+[V#aW%h*YU#`W%h*YS(U#W(^U(Z#Z+Z/mS-[\x27X+[T.O(T.TV\x27^!e%i*ZQ$lfR)x$qT)m$l)nR4V/UT*_$x*bT*h${*YQ0w+fQ1g,VQ3_.fQ5t1iQ6P1qQ7X3cQ8r6SQ9c7WQ:^8qQ:p9bQ;Z:`Q;c:rQ;n;[R;q;dnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&l!VR,h&itmOXst!U!V!Z#d%m&i&r&t&u&w,s,x2[2_R,o&oT%lm,oR1k,XR,g&gQ&U|S+}&V&WR1^,OR+s&PT&p!W&sT&q!W&sT2^,x2_','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':0x3b47},'dynamicPrecedences':{0x50:0x1,0x52:0x1,0x5e:0x1,0xa9:0x1,0xc7:0x1},'specialized':[{'term':0x147,'get':_0x3dd0b2=>spec_identifier[_0x3dd0b2]||-0x1},{'term':0x157,'get':_0x56e511=>spec_word[_0x56e511]||-0x1},{'term':0x5f,'get':_0x336ad2=>spec_LessThan[_0x336ad2]||-0x1}],'tokenPrec':0x3b61}),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(_0x258284){return(_0x507a93,_0x54edb6)=>{let _0x2b7392=_0x507a93['node']['getChild']('VariableDefinition');return _0x2b7392&&_0x54edb6(_0x2b7392,_0x258284),!0x0;};}const functionContext=['FunctionDeclaration'],gatherCompletions={'FunctionDeclaration':defID('function'),'ClassDeclaration':defID('class'),'ClassExpression':()=>!0x0,'EnumDeclaration':defID('constant'),'TypeAliasDeclaration':defID('type'),'NamespaceDeclaration':defID('namespace'),'VariableDefinition'(_0x3f5b14,_0x14f8e7){_0x3f5b14['matchContext'](functionContext)||_0x14f8e7(_0x3f5b14,'variable');},'TypeDefinition'(_0x1a8d04,_0x2f50c1){_0x2f50c1(_0x1a8d04,'type');},'__proto__':null};function getScope(_0x1d2ee4,_0x584d47){let _0x26e73c=cache['get'](_0x584d47);if(_0x26e73c)return _0x26e73c;let _0x5d5ea3=[],_0x1f5a8c=!0x0;function _0x40afea(_0xd57139,_0x3f7c6e){let _0x1dd7a0=_0x1d2ee4['sliceString'](_0xd57139['from'],_0xd57139['to']);_0x5d5ea3['push']({'label':_0x1dd7a0,'type':_0x3f7c6e});}return _0x584d47['cursor'](IterMode['IncludeAnonymous'])['iterate'](_0x10d228=>{if(_0x1f5a8c)_0x1f5a8c=!0x1;else{if(_0x10d228['name']){let _0x2a8a9a=gatherCompletions[_0x10d228['name']];if(_0x2a8a9a&&_0x2a8a9a(_0x10d228,_0x40afea)||ScopeNodes['has'](_0x10d228['name']))return!0x1;}else{if(_0x10d228['to']-_0x10d228['from']>0x2000){for(let _0x23ee29 of getScope(_0x1d2ee4,_0x10d228['node']))_0x5d5ea3['push'](_0x23ee29);return!0x1;}}}}),cache['set'](_0x584d47,_0x5d5ea3),_0x5d5ea3;}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(_0x23689f){let _0x500da7=syntaxTree(_0x23689f['state'])['resolveInner'](_0x23689f['pos'],-0x1);if(dontComplete['indexOf'](_0x500da7['name'])>-0x1)return null;let _0x46c252='VariableName'==_0x500da7['name']||_0x500da7['to']-_0x500da7['from']<0x14&&Identifier['test'](_0x23689f['state']['sliceDoc'](_0x500da7['from'],_0x500da7['to']));if(!_0x46c252&&!_0x23689f['explicit'])return null;let _0x7fbfcd=[];for(let _0x17f83f=_0x500da7;_0x17f83f;_0x17f83f=_0x17f83f['parent'])ScopeNodes['has'](_0x17f83f['name'])&&(_0x7fbfcd=_0x7fbfcd['concat'](getScope(_0x23689f['state']['doc'],_0x17f83f)));return{'options':_0x7fbfcd,'from':_0x46c252?_0x500da7['from']:_0x23689f['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':_0x21dda8=>{let _0xe4a560=_0x21dda8['textAfter'],_0x1c4f37=/^\s*\}/['test'](_0xe4a560),_0x20f667=/^\s*(case|default)\b/['test'](_0xe4a560);return _0x21dda8['baseIndent']+(_0x1c4f37?0x0:_0x20f667?0x1:0x2)*_0x21dda8['unit'];},'Block':delimitedIndent({'closing':'}'}),'ArrowFunction':_0x1657c7=>_0x1657c7['baseIndent']+_0x1657c7['unit'],'TemplateString\x20BlockComment':()=>null,'Statement\x20Property':continuedIndent({'except':/^\s*{/}),'JSXElement'(_0x22cb1b){let _0x993c5c=/^\s*<\//['test'](_0x22cb1b['textAfter']);return _0x22cb1b['lineIndent'](_0x22cb1b['node']['from'])+(_0x993c5c?0x0:_0x22cb1b['unit']);},'JSXEscape'(_0x46dbb0){let _0x2f9741=/\s*\}/['test'](_0x46dbb0['textAfter']);return _0x46dbb0['lineIndent'](_0x46dbb0['node']['from'])+(_0x2f9741?0x0:_0x46dbb0['unit']);},'JSXOpenTag\x20JSXSelfClosingTag':_0x1408bf=>_0x1408bf['column'](_0x1408bf['node']['from'])+_0x1408bf['unit']}),foldNodeProp['add']({'Block\x20ClassBody\x20SwitchBody\x20EnumBody\x20ObjectExpression\x20ArrayExpression\x20ObjectType':foldInside,'BlockComment':_0x17ce85=>({'from':_0x17ce85['from']+0x2,'to':_0x17ce85['to']-0x2})})]}),'languageData':{'closeBrackets':{'brackets':['(','[','{','\x27','\x22','`']},'commentTokens':{'line':'//','block':{'open':'/*','close':'*/'}},'indentOnInput':/^\s*(?:case |default:|\{|\}|<\/)$/,'wordChars':'$'}}),jsxSublanguage={'test':_0x58c393=>/^JSX/['test'](_0x58c393['name']),'facet':defineLanguageFacet({'commentTokens':{'block':{'open':'{/*','close':'*/}'}}})},typescriptLanguage=javascriptLanguage['configure']({'dialect':'ts'},'typescript'),jsxLanguage=javascriptLanguage['configure']({'dialect':'jsx','props':[sublanguageProp['add'](_0x5b2408=>_0x5b2408['isTop']?[jsxSublanguage]:void 0x0)]}),tsxLanguage=javascriptLanguage['configure']({'dialect':'jsx\x20ts','props':[sublanguageProp['add'](_0x4d64ff=>_0x4d64ff['isTop']?[jsxSublanguage]:void 0x0)]},'typescript');let kwCompletion=_0x2a2aaf=>({'label':_0x2a2aaf,'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(_0x4d3ec0={}){let _0x5e82ea=_0x4d3ec0['jsx']?_0x4d3ec0['typescript']?tsxLanguage:jsxLanguage:_0x4d3ec0['typescript']?typescriptLanguage:javascriptLanguage,_0x70a458=_0x4d3ec0['typescript']?typescriptSnippets['concat'](typescriptKeywords):snippets['concat'](keywords);return new LanguageSupport(_0x5e82ea,[javascriptLanguage['data']['of']({'autocomplete':ifNotIn(dontComplete,completeFromList(_0x70a458))}),javascriptLanguage['data']['of']({'autocomplete':localCompletionSource}),_0x4d3ec0['jsx']?autoCloseTags$1:[]]);}function findOpenTag(_0x5adca6){for(;;){if('JSXOpenTag'==_0x5adca6['name']||'JSXSelfClosingTag'==_0x5adca6['name']||'JSXFragmentTag'==_0x5adca6['name'])return _0x5adca6;if('JSXEscape'==_0x5adca6['name']||!_0x5adca6['parent'])return null;_0x5adca6=_0x5adca6['parent'];}}function elementName$1(_0xa2551b,_0x4667f6,_0x14b91a=_0xa2551b['length']){for(let _0x4bb361=null==_0x4667f6?void 0x0:_0x4667f6['firstChild'];_0x4bb361;_0x4bb361=_0x4bb361['nextSibling'])if('JSXIdentifier'==_0x4bb361['name']||'JSXBuiltin'==_0x4bb361['name']||'JSXNamespacedName'==_0x4bb361['name']||'JSXMemberExpression'==_0x4bb361['name'])return _0xa2551b['sliceString'](_0x4bb361['from'],Math['min'](_0x4bb361['to'],_0x14b91a));return'';}const android='object'==typeof navigator&&/Android\b/['test'](navigator['userAgent']),autoCloseTags$1=EditorView['inputHandler']['of']((_0x569af7,_0xc40415,_0x447b03,_0x2765c7,_0x376faa)=>{if((android?_0x569af7['composing']:_0x569af7['compositionStarted'])||_0x569af7['state']['readOnly']||_0xc40415!=_0x447b03||'>'!=_0x2765c7&&'/'!=_0x2765c7||!javascriptLanguage['isActiveAt'](_0x569af7['state'],_0xc40415,-0x1))return!0x1;let _0x417895=_0x376faa(),{state:_0x5d9ddb}=_0x417895,_0x40fcaf=_0x5d9ddb['changeByRange'](_0x33d007=>{var _0x4300e7;let _0x16c815,{head:_0x1ca1f3}=_0x33d007,_0x3932c9=syntaxTree(_0x5d9ddb)['resolveInner'](_0x1ca1f3-0x1,-0x1);if('JSXStartTag'==_0x3932c9['name']&&(_0x3932c9=_0x3932c9['parent']),_0x5d9ddb['doc']['sliceString'](_0x1ca1f3-0x1,_0x1ca1f3)!=_0x2765c7||'JSXAttributeValue'==_0x3932c9['name']&&_0x3932c9['to']>_0x1ca1f3);else{if('>'==_0x2765c7&&'JSXFragmentTag'==_0x3932c9['name'])return{'range':_0x33d007,'changes':{'from':_0x1ca1f3,'insert':'</>'}};if('/'==_0x2765c7&&'JSXStartCloseTag'==_0x3932c9['name']){let _0x62c612=_0x3932c9['parent'],_0x272a6a=_0x62c612['parent'];if(_0x272a6a&&_0x62c612['from']==_0x1ca1f3-0x2&&((_0x16c815=elementName$1(_0x5d9ddb['doc'],_0x272a6a['firstChild'],_0x1ca1f3))||'JSXFragmentTag'==(null===(_0x4300e7=_0x272a6a['firstChild'])||void 0x0===_0x4300e7?void 0x0:_0x4300e7['name']))){let _0x5a21e7=_0x16c815+'>';return{'range':EditorSelection['cursor'](_0x1ca1f3+_0x5a21e7['length'],-0x1),'changes':{'from':_0x1ca1f3,'insert':_0x5a21e7}};}}else{if('>'==_0x2765c7){let _0x53149a=findOpenTag(_0x3932c9);if(_0x53149a&&'JSXOpenTag'==_0x53149a['name']&&!/^\/?>|^<\//['test'](_0x5d9ddb['doc']['sliceString'](_0x1ca1f3,_0x1ca1f3+0x2))&&(_0x16c815=elementName$1(_0x5d9ddb['doc'],_0x53149a,_0x1ca1f3)))return{'range':_0x33d007,'changes':{'from':_0x1ca1f3,'insert':'</'+_0x16c815+'>'}};}}}return{'range':_0x33d007};});return!_0x40fcaf['changes']['empty']&&(_0x569af7['dispatch']([_0x417895,_0x5d9ddb['update'](_0x40fcaf,{'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'](_0x25ae2c=>'on'+_0x25ae2c);for(let e of eventAttributes)GlobalAttrs[e]=null;class Schema{constructor(_0x380f5d,_0x2126a7){this['tags']={...Tags,..._0x380f5d},this['globalAttrs']={...GlobalAttrs,..._0x2126a7},this['allTags']=Object['keys'](this['tags']),this['globalAttrNames']=Object['keys'](this['globalAttrs']);}}function elementName(_0x5be8af,_0xb7e631,_0x291699=_0x5be8af['length']){if(!_0xb7e631)return'';let _0x8a2e7f=_0xb7e631['firstChild'],_0x1675b6=_0x8a2e7f&&_0x8a2e7f['getChild']('TagName');return _0x1675b6?_0x5be8af['sliceString'](_0x1675b6['from'],Math['min'](_0x1675b6['to'],_0x291699)):'';}function findParentElement(_0x504eb2,_0x45a818=!0x1){for(;_0x504eb2;_0x504eb2=_0x504eb2['parent'])if('Element'==_0x504eb2['name']){if(!_0x45a818)return _0x504eb2;_0x45a818=!0x1;}return null;}function allowedChildren(_0x1ffab2,_0x12564e,_0x29cdaf){let _0xbcc928=_0x29cdaf['tags'][elementName(_0x1ffab2,findParentElement(_0x12564e))];return(null==_0xbcc928?void 0x0:_0xbcc928['children'])||_0x29cdaf['allTags'];}function openTags(_0x4245a5,_0x27b8c2){let _0x1172a8=[];for(let _0x269451=findParentElement(_0x27b8c2);_0x269451&&!_0x269451['type']['isTop'];_0x269451=findParentElement(_0x269451['parent'])){let _0x161cdf=elementName(_0x4245a5,_0x269451);if(_0x161cdf&&'CloseTag'==_0x269451['lastChild']['name'])break;_0x161cdf&&_0x1172a8['indexOf'](_0x161cdf)<0x0&&('EndTag'==_0x27b8c2['name']||_0x27b8c2['from']>=_0x269451['firstChild']['to'])&&_0x1172a8['push'](_0x161cdf);}return _0x1172a8;}Schema['default']=new Schema();const identifier=/^[:\-\.\w\u00b7-\uffff]*$/;function completeTag(_0x55df96,_0x50bbe8,_0xb03c03,_0x20c9f2,_0x5622f2){let _0x4712f6=/\s*>/['test'](_0x55df96['sliceDoc'](_0x5622f2,_0x5622f2+0x5))?'':'>',_0x50b0de=findParentElement(_0xb03c03,'StartTag'==_0xb03c03['name']||'TagName'==_0xb03c03['name']);return{'from':_0x20c9f2,'to':_0x5622f2,'options':allowedChildren(_0x55df96['doc'],_0x50b0de,_0x50bbe8)['map'](_0x505871=>({'label':_0x505871,'type':'type'}))['concat'](openTags(_0x55df96['doc'],_0xb03c03)['map']((_0x33e222,_0x57ee49)=>({'label':'/'+_0x33e222,'apply':'/'+_0x33e222+_0x4712f6,'type':'type','boost':0x63-_0x57ee49}))),'validFor':/^\/?[:\-\.\w\u00b7-\uffff]*$/};}function completeCloseTag(_0x4057e9,_0x5ac37f,_0x35c75c,_0x1850f8){let _0x560601=/\s*>/['test'](_0x4057e9['sliceDoc'](_0x1850f8,_0x1850f8+0x5))?'':'>';return{'from':_0x35c75c,'to':_0x1850f8,'options':openTags(_0x4057e9['doc'],_0x5ac37f)['map']((_0x13ae31,_0x4d11d8)=>({'label':_0x13ae31,'apply':_0x13ae31+_0x560601,'type':'type','boost':0x63-_0x4d11d8})),'validFor':identifier};}function completeStartTag(_0x53b102,_0x57df14,_0x184c52,_0x586c85){let _0x5b4b34=[],_0x2099e5=0x0;for(let _0x128e46 of allowedChildren(_0x53b102['doc'],_0x184c52,_0x57df14))_0x5b4b34['push']({'label':'<'+_0x128e46,'type':'type'});for(let _0x2bba36 of openTags(_0x53b102['doc'],_0x184c52))_0x5b4b34['push']({'label':'</'+_0x2bba36+'>','type':'type','boost':0x63-_0x2099e5++});return{'from':_0x586c85,'to':_0x586c85,'options':_0x5b4b34,'validFor':/^<\/?[:\-\.\w\u00b7-\uffff]*$/};}function completeAttrName(_0x54babf,_0x362a11,_0x4d662d,_0x4547e7,_0x19c09a){let _0xcf2bb0=findParentElement(_0x4d662d),_0x4f64da=_0xcf2bb0?_0x362a11['tags'][elementName(_0x54babf['doc'],_0xcf2bb0)]:null,_0x110ba0=_0x4f64da&&_0x4f64da['attrs']?Object['keys'](_0x4f64da['attrs']):[];return{'from':_0x4547e7,'to':_0x19c09a,'options':(_0x4f64da&&!0x1===_0x4f64da['globalAttrs']?_0x110ba0:_0x110ba0['length']?_0x110ba0['concat'](_0x362a11['globalAttrNames']):_0x362a11['globalAttrNames'])['map'](_0x5a8e3b=>({'label':_0x5a8e3b,'type':'property'})),'validFor':identifier};}function completeAttrValue(_0x3da525,_0x4db02b,_0x29968f,_0x30cab1,_0x4129b8){var _0x4bf3cb;let _0x4f4479,_0x2c5d9a=null===(_0x4bf3cb=_0x29968f['parent'])||void 0x0===_0x4bf3cb?void 0x0:_0x4bf3cb['getChild']('AttributeName'),_0x356709=[];if(_0x2c5d9a){let _0x2d25d6=_0x3da525['sliceDoc'](_0x2c5d9a['from'],_0x2c5d9a['to']),_0x1f77e8=_0x4db02b['globalAttrs'][_0x2d25d6];if(!_0x1f77e8){let _0x51a0dd=findParentElement(_0x29968f),_0x3e4bc1=_0x51a0dd?_0x4db02b['tags'][elementName(_0x3da525['doc'],_0x51a0dd)]:null;_0x1f77e8=(null==_0x3e4bc1?void 0x0:_0x3e4bc1['attrs'])&&_0x3e4bc1['attrs'][_0x2d25d6];}if(_0x1f77e8){let _0x4f7bce=_0x3da525['sliceDoc'](_0x30cab1,_0x4129b8)['toLowerCase'](),_0x1228e4='\x22',_0x67bf35='\x22';/^['"]/['test'](_0x4f7bce)?(_0x4f4479='\x22'==_0x4f7bce[0x0]?/^[^"]*$/:/^[^']*$/,_0x1228e4='',_0x67bf35=_0x3da525['sliceDoc'](_0x4129b8,_0x4129b8+0x1)==_0x4f7bce[0x0]?'':_0x4f7bce[0x0],_0x4f7bce=_0x4f7bce['slice'](0x1),_0x30cab1++):_0x4f4479=/^[^\s<>='"]*$/;for(let _0x18146c of _0x1f77e8)_0x356709['push']({'label':_0x18146c,'apply':_0x1228e4+_0x18146c+_0x67bf35,'type':'constant'});}}return{'from':_0x30cab1,'to':_0x4129b8,'options':_0x356709,'validFor':_0x4f4479};}function htmlCompletionFor(_0x141821,_0x4f09d7){let {state:_0x44bf07,pos:_0x57e0dd}=_0x4f09d7,_0x37473d=syntaxTree(_0x44bf07)['resolveInner'](_0x57e0dd,-0x1),_0x912bc3=_0x37473d['resolve'](_0x57e0dd);for(let _0x336fae,_0x474cd6=_0x57e0dd;_0x912bc3==_0x37473d&&(_0x336fae=_0x37473d['childBefore'](_0x474cd6));){let _0x1ba61b=_0x336fae['lastChild'];if(!_0x1ba61b||!_0x1ba61b['type']['isError']||_0x1ba61b['from']<_0x1ba61b['to'])break;_0x912bc3=_0x37473d=_0x336fae,_0x474cd6=_0x1ba61b['from'];}return'TagName'==_0x37473d['name']?_0x37473d['parent']&&/CloseTag$/['test'](_0x37473d['parent']['name'])?completeCloseTag(_0x44bf07,_0x37473d,_0x37473d['from'],_0x57e0dd):completeTag(_0x44bf07,_0x141821,_0x37473d,_0x37473d['from'],_0x57e0dd):'StartTag'==_0x37473d['name']||'IncompleteTag'==_0x37473d['name']?completeTag(_0x44bf07,_0x141821,_0x37473d,_0x57e0dd,_0x57e0dd):'StartCloseTag'==_0x37473d['name']||'IncompleteCloseTag'==_0x37473d['name']?completeCloseTag(_0x44bf07,_0x37473d,_0x57e0dd,_0x57e0dd):'OpenTag'==_0x37473d['name']||'SelfClosingTag'==_0x37473d['name']||'AttributeName'==_0x37473d['name']?completeAttrName(_0x44bf07,_0x141821,_0x37473d,'AttributeName'==_0x37473d['name']?_0x37473d['from']:_0x57e0dd,_0x57e0dd):'Is'==_0x37473d['name']||'AttributeValue'==_0x37473d['name']||'UnquotedAttributeValue'==_0x37473d['name']?completeAttrValue(_0x44bf07,_0x141821,_0x37473d,'Is'==_0x37473d['name']?_0x57e0dd:_0x37473d['from'],_0x57e0dd):!_0x4f09d7['explicit']||'Element'!=_0x912bc3['name']&&'Text'!=_0x912bc3['name']&&'Document'!=_0x912bc3['name']?null:completeStartTag(_0x44bf07,_0x141821,_0x37473d,_0x57e0dd);}function htmlCompletionSource(_0x443674){return htmlCompletionFor(Schema['default'],_0x443674);}function htmlCompletionSourceWith(_0x34e26d){let {extraTags:_0x11802c,extraGlobalAttributes:_0xa02030}=_0x34e26d,_0x23929a=_0xa02030||_0x11802c?new Schema(_0x11802c,_0xa02030):Schema['default'];return _0x1adb6a=>htmlCompletionFor(_0x23929a,_0x1adb6a);}const jsonParser=javascriptLanguage['parser']['configure']({'top':'SingleExpression'}),defaultNesting=[{'tag':'script','attrs':_0x9b4d64=>'text/typescript'==_0x9b4d64['type']||'ts'==_0x9b4d64['lang'],'parser':typescriptLanguage['parser']},{'tag':'script','attrs':_0x4abf44=>'text/babel'==_0x4abf44['type']||'text/jsx'==_0x4abf44['type'],'parser':jsxLanguage['parser']},{'tag':'script','attrs':_0x29a3d6=>'text/typescript-jsx'==_0x29a3d6['type'],'parser':tsxLanguage['parser']},{'tag':'script','attrs':_0x24d912=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i['test'](_0x24d912['type']),'parser':jsonParser},{'tag':'script','attrs':_0x5574f1=>!_0x5574f1['type']||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i['test'](_0x5574f1['type']),'parser':javascriptLanguage['parser']},{'tag':'style','attrs':_0x1b3295=>(!_0x1b3295['lang']||'css'==_0x1b3295['lang'])&&(!_0x1b3295['type']||/^(text\/)?(x-)?(stylesheet|css)$/i['test'](_0x1b3295['type'])),'parser':cssLanguage['parser']}],defaultAttrs=[{'name':'style','parser':cssLanguage['parser']['configure']({'top':'Styles'})}]['concat'](eventAttributes['map'](_0xd6c4f9=>({'name':_0xd6c4f9,'parser':javascriptLanguage['parser']}))),htmlPlain=LRLanguage['define']({'name':'html','parser':parser$3['configure']({'props':[indentNodeProp['add']({'Element'(_0xc04ea8){let _0x500461=/^(\s*)(<\/)?/['exec'](_0xc04ea8['textAfter']);return _0xc04ea8['node']['to']<=_0xc04ea8['pos']+_0x500461[0x0]['length']?_0xc04ea8['continue']():_0xc04ea8['lineIndent'](_0xc04ea8['node']['from'])+(_0x500461[0x2]?0x0:_0xc04ea8['unit']);},'OpenTag\x20CloseTag\x20SelfClosingTag':_0x1fe9d5=>_0x1fe9d5['column'](_0x1fe9d5['node']['from'])+_0x1fe9d5['unit'],'Document'(_0x38ff06){if(_0x38ff06['pos']+/\s*/['exec'](_0x38ff06['textAfter'])[0x0]['length']<_0x38ff06['node']['to'])return _0x38ff06['continue']();let _0x53c978,_0x32646f=null;for(let _0x2476a1=_0x38ff06['node'];;){let _0x43bb2a=_0x2476a1['lastChild'];if(!_0x43bb2a||'Element'!=_0x43bb2a['name']||_0x43bb2a['to']!=_0x2476a1['to'])break;_0x32646f=_0x2476a1=_0x43bb2a;}return _0x32646f&&(!(_0x53c978=_0x32646f['lastChild'])||'CloseTag'!=_0x53c978['name']&&'SelfClosingTag'!=_0x53c978['name'])?_0x38ff06['lineIndent'](_0x32646f['from'])+_0x38ff06['unit']:null;}}),foldNodeProp['add']({'Element'(_0x50afcf){let _0x562732=_0x50afcf['firstChild'],_0xb202b7=_0x50afcf['lastChild'];return _0x562732&&'OpenTag'==_0x562732['name']?{'from':_0x562732['to'],'to':'CloseTag'==_0xb202b7['name']?_0xb202b7['from']:_0x50afcf['to']}:null;}}),bracketMatchingHandle['add']({'OpenTag\x20CloseTag':_0x32f30c=>_0x32f30c['getChild']('TagName')})]}),'languageData':{'commentTokens':{'block':{'open':'<!--','close':'-->'}},'indentOnInput':/^\s*<\/\w+\W$/,'wordChars':'-_'}}),htmlLanguage=htmlPlain['configure']({'wrap':configureNesting(defaultNesting,defaultAttrs)});function html(_0x354159={}){let _0x4ea244,_0x359588='';!0x1===_0x354159['matchClosingTags']&&(_0x359588='noMatch'),!0x0===_0x354159['selfClosingTags']&&(_0x359588=(_0x359588?_0x359588+'\x20':'')+'selfClosing'),(_0x354159['nestedLanguages']&&_0x354159['nestedLanguages']['length']||_0x354159['nestedAttributes']&&_0x354159['nestedAttributes']['length'])&&(_0x4ea244=configureNesting((_0x354159['nestedLanguages']||[])['concat'](defaultNesting),(_0x354159['nestedAttributes']||[])['concat'](defaultAttrs)));let _0x72aff2=_0x4ea244?htmlPlain['configure']({'wrap':_0x4ea244,'dialect':_0x359588}):_0x359588?htmlLanguage['configure']({'dialect':_0x359588}):htmlLanguage;return new LanguageSupport(_0x72aff2,[htmlLanguage['data']['of']({'autocomplete':htmlCompletionSourceWith(_0x354159)}),!0x1!==_0x354159['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']((_0x159b0b,_0x10fb59,_0x5ee998,_0x276661,_0x3a88b6)=>{if(_0x159b0b['composing']||_0x159b0b['state']['readOnly']||_0x10fb59!=_0x5ee998||'>'!=_0x276661&&'/'!=_0x276661||!htmlLanguage['isActiveAt'](_0x159b0b['state'],_0x10fb59,-0x1))return!0x1;let _0x56ee44=_0x3a88b6(),{state:_0x22c7c7}=_0x56ee44,_0x403b55=_0x22c7c7['changeByRange'](_0x4ca94a=>{var _0x7a19f8,_0x368346,_0x226ecc;let _0x4c709d,_0x1e45f7=_0x22c7c7['doc']['sliceString'](_0x4ca94a['from']-0x1,_0x4ca94a['to'])==_0x276661,{head:_0x2af5fd}=_0x4ca94a,_0x406941=syntaxTree(_0x22c7c7)['resolveInner'](_0x2af5fd,-0x1);if(_0x1e45f7&&'>'==_0x276661&&'EndTag'==_0x406941['name']){let _0x1a6278=_0x406941['parent'];if('CloseTag'!=(null===(_0x368346=null===(_0x7a19f8=_0x1a6278['parent'])||void 0x0===_0x7a19f8?void 0x0:_0x7a19f8['lastChild'])||void 0x0===_0x368346?void 0x0:_0x368346['name'])&&(_0x4c709d=elementName(_0x22c7c7['doc'],_0x1a6278['parent'],_0x2af5fd))&&!selfClosers['has'](_0x4c709d))return{'range':_0x4ca94a,'changes':{'from':_0x2af5fd,'to':_0x2af5fd+('>'===_0x22c7c7['doc']['sliceString'](_0x2af5fd,_0x2af5fd+0x1)?0x1:0x0),'insert':'</'+_0x4c709d+'>'}};}else{if(_0x1e45f7&&'/'==_0x276661&&'IncompleteCloseTag'==_0x406941['name']){let _0x321558=_0x406941['parent'];if(_0x406941['from']==_0x2af5fd-0x2&&'CloseTag'!=(null===(_0x226ecc=_0x321558['lastChild'])||void 0x0===_0x226ecc?void 0x0:_0x226ecc['name'])&&(_0x4c709d=elementName(_0x22c7c7['doc'],_0x321558,_0x2af5fd))&&!selfClosers['has'](_0x4c709d)){let _0x4d4b15=_0x2af5fd+('>'===_0x22c7c7['doc']['sliceString'](_0x2af5fd,_0x2af5fd+0x1)?0x1:0x0),_0x2033fe=_0x4c709d+'>';return{'range':EditorSelection['cursor'](_0x2af5fd+_0x2033fe['length'],-0x1),'changes':{'from':_0x2af5fd,'to':_0x4d4b15,'insert':_0x2033fe}};}}}return{'range':_0x4ca94a};});return!_0x403b55['changes']['empty']&&(_0x159b0b['dispatch']([_0x56ee44,_0x22c7c7['update'](_0x403b55,{'userEvent':'input.complete','scrollIntoView':!0x0})]),!0x0);});class CompositeBlock{static['create'](_0x40a078,_0x21892b,_0x453f77,_0x4d9cce,_0x5b7994){return new CompositeBlock(_0x40a078,_0x21892b,_0x453f77,_0x4d9cce+(_0x4d9cce<<0x8)+_0x40a078+(_0x21892b<<0x4)|0x0,_0x5b7994,[],[]);}constructor(_0x5a2cbb,_0x22c6c3,_0x49e1db,_0x53e559,_0xeaee73,_0xa054d,_0xdc0b47){this['type']=_0x5a2cbb,this['value']=_0x22c6c3,this['from']=_0x49e1db,this['hash']=_0x53e559,this['end']=_0xeaee73,this['children']=_0xa054d,this['positions']=_0xdc0b47,this['hashProp']=[[NodeProp['contextHash'],_0x53e559]];}['addChild'](_0x5500cc,_0x3622c3){_0x5500cc['prop'](NodeProp['contextHash'])!=this['hash']&&(_0x5500cc=new Tree(_0x5500cc['type'],_0x5500cc['children'],_0x5500cc['positions'],_0x5500cc['length'],this['hashProp'])),this['children']['push'](_0x5500cc),this['positions']['push'](_0x3622c3);}['toTree'](_0x47f29d,_0x56d1f8=this['end']){let _0x1fbd7e=this['children']['length']-0x1;return _0x1fbd7e>=0x0&&(_0x56d1f8=Math['max'](_0x56d1f8,this['positions'][_0x1fbd7e]+this['children'][_0x1fbd7e]['length']+this['from'])),new Tree(_0x47f29d['types'][this['type']],this['children'],this['positions'],_0x56d1f8-this['from'])['balance']({'makeTree':(_0x56c5fb,_0x4d37bb,_0x3e42a1)=>new Tree(NodeType['none'],_0x56c5fb,_0x4d37bb,_0x3e42a1,this['hashProp'])});}}var Type;!function(_0x190391){_0x190391[_0x190391['Document']=0x1]='Document',_0x190391[_0x190391['CodeBlock']=0x2]='CodeBlock',_0x190391[_0x190391['FencedCode']=0x3]='FencedCode',_0x190391[_0x190391['Blockquote']=0x4]='Blockquote',_0x190391[_0x190391['HorizontalRule']=0x5]='HorizontalRule',_0x190391[_0x190391['BulletList']=0x6]='BulletList',_0x190391[_0x190391['OrderedList']=0x7]='OrderedList',_0x190391[_0x190391['ListItem']=0x8]='ListItem',_0x190391[_0x190391['ATXHeading1']=0x9]='ATXHeading1',_0x190391[_0x190391['ATXHeading2']=0xa]='ATXHeading2',_0x190391[_0x190391['ATXHeading3']=0xb]='ATXHeading3',_0x190391[_0x190391['ATXHeading4']=0xc]='ATXHeading4',_0x190391[_0x190391['ATXHeading5']=0xd]='ATXHeading5',_0x190391[_0x190391['ATXHeading6']=0xe]='ATXHeading6',_0x190391[_0x190391['SetextHeading1']=0xf]='SetextHeading1',_0x190391[_0x190391['SetextHeading2']=0x10]='SetextHeading2',_0x190391[_0x190391['HTMLBlock']=0x11]='HTMLBlock',_0x190391[_0x190391['LinkReference']=0x12]='LinkReference',_0x190391[_0x190391['Paragraph']=0x13]='Paragraph',_0x190391[_0x190391['CommentBlock']=0x14]='CommentBlock',_0x190391[_0x190391['ProcessingInstructionBlock']=0x15]='ProcessingInstructionBlock',_0x190391[_0x190391['Escape']=0x16]='Escape',_0x190391[_0x190391['Entity']=0x17]='Entity',_0x190391[_0x190391['HardBreak']=0x18]='HardBreak',_0x190391[_0x190391['Emphasis']=0x19]='Emphasis',_0x190391[_0x190391['StrongEmphasis']=0x1a]='StrongEmphasis',_0x190391[_0x190391['Link']=0x1b]='Link',_0x190391[_0x190391['Image']=0x1c]='Image',_0x190391[_0x190391['InlineCode']=0x1d]='InlineCode',_0x190391[_0x190391['HTMLTag']=0x1e]='HTMLTag',_0x190391[_0x190391['Comment']=0x1f]='Comment',_0x190391[_0x190391['ProcessingInstruction']=0x20]='ProcessingInstruction',_0x190391[_0x190391['Autolink']=0x21]='Autolink',_0x190391[_0x190391['HeaderMark']=0x22]='HeaderMark',_0x190391[_0x190391['QuoteMark']=0x23]='QuoteMark',_0x190391[_0x190391['ListMark']=0x24]='ListMark',_0x190391[_0x190391['LinkMark']=0x25]='LinkMark',_0x190391[_0x190391['EmphasisMark']=0x26]='EmphasisMark',_0x190391[_0x190391['CodeMark']=0x27]='CodeMark',_0x190391[_0x190391['CodeText']=0x28]='CodeText',_0x190391[_0x190391['CodeInfo']=0x29]='CodeInfo',_0x190391[_0x190391['LinkTitle']=0x2a]='LinkTitle',_0x190391[_0x190391['LinkLabel']=0x2b]='LinkLabel',_0x190391[_0x190391['URL']=0x2c]='URL';}(Type||(Type={}));class LeafBlock{constructor(_0x2742de,_0x505a37){this['start']=_0x2742de,this['content']=_0x505a37,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 _0x1f1da9=this['skipSpace'](this['basePos']);this['indent']=this['countIndent'](_0x1f1da9,this['pos'],this['indent']),this['pos']=_0x1f1da9,this['next']=_0x1f1da9==this['text']['length']?-0x1:this['text']['charCodeAt'](_0x1f1da9);}['skipSpace'](_0xf6865){return skipSpace(this['text'],_0xf6865);}['reset'](_0x291e10){for(this['text']=_0x291e10,this['baseIndent']=this['basePos']=this['pos']=this['indent']=0x0,this['forwardInner'](),this['depth']=0x1;this['markers']['length'];)this['markers']['pop']();}['moveBase'](_0x4d27fc){this['basePos']=_0x4d27fc,this['baseIndent']=this['countIndent'](_0x4d27fc,this['pos'],this['indent']);}['moveBaseColumn'](_0x31014b){this['baseIndent']=_0x31014b,this['basePos']=this['findColumn'](_0x31014b);}['addMarker'](_0x42306d){this['markers']['push'](_0x42306d);}['countIndent'](_0x4e4af1,_0x55c4ef=0x0,_0x4f8851=0x0){for(let _0x243d90=_0x55c4ef;_0x243d90<_0x4e4af1;_0x243d90++)_0x4f8851+=0x9==this['text']['charCodeAt'](_0x243d90)?0x4-_0x4f8851%0x4:0x1;return _0x4f8851;}['findColumn'](_0x44780b){let _0x3cf002=0x0;for(let _0x523cc0=0x0;_0x3cf002<this['text']['length']&&_0x523cc0<_0x44780b;_0x3cf002++)_0x523cc0+=0x9==this['text']['charCodeAt'](_0x3cf002)?0x4-_0x523cc0%0x4:0x1;return _0x3cf002;}['scrub'](){if(!this['baseIndent'])return this['text'];let _0x427ece='';for(let _0x484053=0x0;_0x484053<this['basePos'];_0x484053++)_0x427ece+='\x20';return _0x427ece+this['text']['slice'](this['basePos']);}}function skipForList(_0x558452,_0x47231b,_0xbb0cb2){if(_0xbb0cb2['pos']==_0xbb0cb2['text']['length']||_0x558452!=_0x47231b['block']&&_0xbb0cb2['indent']>=_0x47231b['stack'][_0xbb0cb2['depth']+0x1]['value']+_0xbb0cb2['baseIndent'])return!0x0;if(_0xbb0cb2['indent']>=_0xbb0cb2['baseIndent']+0x4)return!0x1;let _0x46c563=(_0x558452['type']==Type['OrderedList']?isOrderedList:isBulletList)(_0xbb0cb2,_0x47231b,!0x1);return _0x46c563>0x0&&(_0x558452['type']!=Type['BulletList']||isHorizontalRule(_0xbb0cb2,_0x47231b,!0x1)<0x0)&&_0xbb0cb2['text']['charCodeAt'](_0xbb0cb2['pos']+_0x46c563-0x1)==_0x558452['value'];}const DefaultSkipMarkup={[Type['Blockquote']]:(_0x2b7648,_0x41c22e,_0xf85c6f)=>0x3e==_0xf85c6f['next']&&(_0xf85c6f['markers']['push'](elt(Type['QuoteMark'],_0x41c22e['lineStart']+_0xf85c6f['pos'],_0x41c22e['lineStart']+_0xf85c6f['pos']+0x1)),_0xf85c6f['moveBase'](_0xf85c6f['pos']+(space(_0xf85c6f['text']['charCodeAt'](_0xf85c6f['pos']+0x1))?0x2:0x1)),_0x2b7648['end']=_0x41c22e['lineStart']+_0xf85c6f['text']['length'],!0x0),[Type['ListItem']]:(_0x1606b0,_0x5ebb9c,_0x3c447a)=>!(_0x3c447a['indent']<_0x3c447a['baseIndent']+_0x1606b0['value']&&_0x3c447a['next']>-0x1)&&(_0x3c447a['moveBaseColumn'](_0x3c447a['baseIndent']+_0x1606b0['value']),!0x0),[Type['OrderedList']]:skipForList,[Type['BulletList']]:skipForList,[Type['Document']]:()=>!0x0};function space(_0x1af662){return 0x20==_0x1af662||0x9==_0x1af662||0xa==_0x1af662||0xd==_0x1af662;}function skipSpace(_0x12fa51,_0x24f819=0x0){for(;_0x24f819<_0x12fa51['length']&&space(_0x12fa51['charCodeAt'](_0x24f819));)_0x24f819++;return _0x24f819;}function skipSpaceBack(_0x7a4079,_0x2446a4,_0x475f9e){for(;_0x2446a4>_0x475f9e&&space(_0x7a4079['charCodeAt'](_0x2446a4-0x1));)_0x2446a4--;return _0x2446a4;}function isFencedCode(_0x5386e9){if(0x60!=_0x5386e9['next']&&0x7e!=_0x5386e9['next'])return-0x1;let _0x13699b=_0x5386e9['pos']+0x1;for(;_0x13699b<_0x5386e9['text']['length']&&_0x5386e9['text']['charCodeAt'](_0x13699b)==_0x5386e9['next'];)_0x13699b++;if(_0x13699b<_0x5386e9['pos']+0x3)return-0x1;if(0x60==_0x5386e9['next']){for(let _0x4f15df=_0x13699b;_0x4f15df<_0x5386e9['text']['length'];_0x4f15df++)if(0x60==_0x5386e9['text']['charCodeAt'](_0x4f15df))return-0x1;}return _0x13699b;}function isBlockquote(_0x4c4c2b){return 0x3e!=_0x4c4c2b['next']?-0x1:0x20==_0x4c4c2b['text']['charCodeAt'](_0x4c4c2b['pos']+0x1)?0x2:0x1;}function isHorizontalRule(_0x2b1ba2,_0x5345e6,_0x2fb39b){if(0x2a!=_0x2b1ba2['next']&&0x2d!=_0x2b1ba2['next']&&0x5f!=_0x2b1ba2['next'])return-0x1;let _0x229eec=0x1;for(let _0x5c9057=_0x2b1ba2['pos']+0x1;_0x5c9057<_0x2b1ba2['text']['length'];_0x5c9057++){let _0x1f3585=_0x2b1ba2['text']['charCodeAt'](_0x5c9057);if(_0x1f3585==_0x2b1ba2['next'])_0x229eec++;else{if(!space(_0x1f3585))return-0x1;}}return _0x2fb39b&&0x2d==_0x2b1ba2['next']&&isSetextUnderline(_0x2b1ba2)>-0x1&&_0x2b1ba2['depth']==_0x5345e6['stack']['length']&&_0x5345e6['parser']['leafBlockParsers']['indexOf'](DefaultLeafBlocks['SetextHeading'])>-0x1||_0x229eec<0x3?-0x1:0x1;}function inList(_0x28798a,_0x421599){for(let _0x19bb16=_0x28798a['stack']['length']-0x1;_0x19bb16>=0x0;_0x19bb16--)if(_0x28798a['stack'][_0x19bb16]['type']==_0x421599)return!0x0;return!0x1;}function isBulletList(_0x491cb5,_0x4360e8,_0x70bd08){return 0x2d!=_0x491cb5['next']&&0x2b!=_0x491cb5['next']&&0x2a!=_0x491cb5['next']||_0x491cb5['pos']!=_0x491cb5['text']['length']-0x1&&!space(_0x491cb5['text']['charCodeAt'](_0x491cb5['pos']+0x1))||!(!_0x70bd08||inList(_0x4360e8,Type['BulletList'])||_0x491cb5['skipSpace'](_0x491cb5['pos']+0x2)<_0x491cb5['text']['length'])?-0x1:0x1;}function isOrderedList(_0x525c71,_0x2fe453,_0x14320f){let _0x49e87f=_0x525c71['pos'],_0x4edd2a=_0x525c71['next'];for(;_0x4edd2a>=0x30&&_0x4edd2a<=0x39;){if(_0x49e87f++,_0x49e87f==_0x525c71['text']['length'])return-0x1;_0x4edd2a=_0x525c71['text']['charCodeAt'](_0x49e87f);}return _0x49e87f==_0x525c71['pos']||_0x49e87f>_0x525c71['pos']+0x9||0x2e!=_0x4edd2a&&0x29!=_0x4edd2a||_0x49e87f<_0x525c71['text']['length']-0x1&&!space(_0x525c71['text']['charCodeAt'](_0x49e87f+0x1))||_0x14320f&&!inList(_0x2fe453,Type['OrderedList'])&&(_0x525c71['skipSpace'](_0x49e87f+0x1)==_0x525c71['text']['length']||_0x49e87f>_0x525c71['pos']+0x1||0x31!=_0x525c71['next'])?-0x1:_0x49e87f+0x1-_0x525c71['pos'];}function isAtxHeading(_0x558c61){if(0x23!=_0x558c61['next'])return-0x1;let _0x5dd03d=_0x558c61['pos']+0x1;for(;_0x5dd03d<_0x558c61['text']['length']&&0x23==_0x558c61['text']['charCodeAt'](_0x5dd03d);)_0x5dd03d++;if(_0x5dd03d<_0x558c61['text']['length']&&0x20!=_0x558c61['text']['charCodeAt'](_0x5dd03d))return-0x1;let _0x465c60=_0x5dd03d-_0x558c61['pos'];return _0x465c60>0x6?-0x1:_0x465c60;}function isSetextUnderline(_0x1b609b){if(0x2d!=_0x1b609b['next']&&0x3d!=_0x1b609b['next']||_0x1b609b['indent']>=_0x1b609b['baseIndent']+0x4)return-0x1;let _0x30a528=_0x1b609b['pos']+0x1;for(;_0x30a528<_0x1b609b['text']['length']&&_0x1b609b['text']['charCodeAt'](_0x30a528)==_0x1b609b['next'];)_0x30a528++;let _0x595eac=_0x30a528;for(;_0x30a528<_0x1b609b['text']['length']&&space(_0x1b609b['text']['charCodeAt'](_0x30a528));)_0x30a528++;return _0x30a528==_0x1b609b['text']['length']?_0x595eac:-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(_0x50f554,_0x53054d,_0x1c6c1b){if(0x3c!=_0x50f554['next'])return-0x1;let _0x53a497=_0x50f554['text']['slice'](_0x50f554['pos']);for(let _0x97bad0=0x0,_0x1aff60=HTMLBlockStyle['length']-(_0x1c6c1b?0x1:0x0);_0x97bad0<_0x1aff60;_0x97bad0++)if(HTMLBlockStyle[_0x97bad0][0x0]['test'](_0x53a497))return _0x97bad0;return-0x1;}function getListIndent(_0x4e5323,_0x54e799){let _0x173e02=_0x4e5323['countIndent'](_0x54e799,_0x4e5323['pos'],_0x4e5323['indent']),_0x5a29e4=_0x4e5323['countIndent'](_0x4e5323['skipSpace'](_0x54e799),_0x54e799,_0x173e02);return _0x5a29e4>=_0x173e02+0x5?_0x173e02+0x1:_0x5a29e4;}function addCodeText(_0x33c346,_0x52d66b,_0x613864){let _0x33735d=_0x33c346['length']-0x1;_0x33735d>=0x0&&_0x33c346[_0x33735d]['to']==_0x52d66b&&_0x33c346[_0x33735d]['type']==Type['CodeText']?_0x33c346[_0x33735d]['to']=_0x613864:_0x33c346['push'](elt(Type['CodeText'],_0x52d66b,_0x613864));}const DefaultBlockParsers={'LinkReference':void 0x0,'IndentedCode'(_0x46138c,_0x2660b8){let _0x1e008c=_0x2660b8['baseIndent']+0x4;if(_0x2660b8['indent']<_0x1e008c)return!0x1;let _0x44c71f=_0x2660b8['findColumn'](_0x1e008c),_0x14b96f=_0x46138c['lineStart']+_0x44c71f,_0xaea2cc=_0x46138c['lineStart']+_0x2660b8['text']['length'],_0x2bdf9c=[],_0xdf138b=[];for(addCodeText(_0x2bdf9c,_0x14b96f,_0xaea2cc);_0x46138c['nextLine']()&&_0x2660b8['depth']>=_0x46138c['stack']['length'];)if(_0x2660b8['pos']==_0x2660b8['text']['length']){addCodeText(_0xdf138b,_0x46138c['lineStart']-0x1,_0x46138c['lineStart']);for(let _0x30b723 of _0x2660b8['markers'])_0xdf138b['push'](_0x30b723);}else{if(_0x2660b8['indent']<_0x1e008c)break;{if(_0xdf138b['length']){for(let _0x49e4a9 of _0xdf138b)_0x49e4a9['type']==Type['CodeText']?addCodeText(_0x2bdf9c,_0x49e4a9['from'],_0x49e4a9['to']):_0x2bdf9c['push'](_0x49e4a9);_0xdf138b=[];}addCodeText(_0x2bdf9c,_0x46138c['lineStart']-0x1,_0x46138c['lineStart']);for(let _0x4d8e74 of _0x2660b8['markers'])_0x2bdf9c['push'](_0x4d8e74);_0xaea2cc=_0x46138c['lineStart']+_0x2660b8['text']['length'];let _0x297598=_0x46138c['lineStart']+_0x2660b8['findColumn'](_0x2660b8['baseIndent']+0x4);_0x297598<_0xaea2cc&&addCodeText(_0x2bdf9c,_0x297598,_0xaea2cc);}}return _0xdf138b['length']&&(_0xdf138b=_0xdf138b['filter'](_0x3812b7=>_0x3812b7['type']!=Type['CodeText']),_0xdf138b['length']&&(_0x2660b8['markers']=_0xdf138b['concat'](_0x2660b8['markers']))),_0x46138c['addNode'](_0x46138c['buffer']['writeElements'](_0x2bdf9c,-_0x14b96f)['finish'](Type['CodeBlock'],_0xaea2cc-_0x14b96f),_0x14b96f),!0x0;},'FencedCode'(_0x54d86f,_0x240f19){let _0x25daab=isFencedCode(_0x240f19);if(_0x25daab<0x0)return!0x1;let _0x512fe9=_0x54d86f['lineStart']+_0x240f19['pos'],_0x5f152d=_0x240f19['next'],_0x2153cc=_0x25daab-_0x240f19['pos'],_0x18a281=_0x240f19['skipSpace'](_0x25daab),_0x2e4536=skipSpaceBack(_0x240f19['text'],_0x240f19['text']['length'],_0x18a281),_0x5eb26b=[elt(Type['CodeMark'],_0x512fe9,_0x512fe9+_0x2153cc)];_0x18a281<_0x2e4536&&_0x5eb26b['push'](elt(Type['CodeInfo'],_0x54d86f['lineStart']+_0x18a281,_0x54d86f['lineStart']+_0x2e4536));for(let _0x35993d=!0x0;_0x54d86f['nextLine']()&&_0x240f19['depth']>=_0x54d86f['stack']['length'];_0x35993d=!0x1){let _0x88915c=_0x240f19['pos'];if(_0x240f19['indent']-_0x240f19['baseIndent']<0x4){for(;_0x88915c<_0x240f19['text']['length']&&_0x240f19['text']['charCodeAt'](_0x88915c)==_0x5f152d;)_0x88915c++;}if(_0x88915c-_0x240f19['pos']>=_0x2153cc&&_0x240f19['skipSpace'](_0x88915c)==_0x240f19['text']['length']){for(let _0x2ea0da of _0x240f19['markers'])_0x5eb26b['push'](_0x2ea0da);_0x5eb26b['push'](elt(Type['CodeMark'],_0x54d86f['lineStart']+_0x240f19['pos'],_0x54d86f['lineStart']+_0x88915c)),_0x54d86f['nextLine']();break;}{_0x35993d||addCodeText(_0x5eb26b,_0x54d86f['lineStart']-0x1,_0x54d86f['lineStart']);for(let _0x59717e of _0x240f19['markers'])_0x5eb26b['push'](_0x59717e);let _0x267c84=_0x54d86f['lineStart']+_0x240f19['basePos'],_0xda23f9=_0x54d86f['lineStart']+_0x240f19['text']['length'];_0x267c84<_0xda23f9&&addCodeText(_0x5eb26b,_0x267c84,_0xda23f9);}}return _0x54d86f['addNode'](_0x54d86f['buffer']['writeElements'](_0x5eb26b,-_0x512fe9)['finish'](Type['FencedCode'],_0x54d86f['prevLineEnd']()-_0x512fe9),_0x512fe9),!0x0;},'Blockquote'(_0x53a9d8,_0x4b9bd2){let _0x260dee=isBlockquote(_0x4b9bd2);return!(_0x260dee<0x0)&&(_0x53a9d8['startContext'](Type['Blockquote'],_0x4b9bd2['pos']),_0x53a9d8['addNode'](Type['QuoteMark'],_0x53a9d8['lineStart']+_0x4b9bd2['pos'],_0x53a9d8['lineStart']+_0x4b9bd2['pos']+0x1),_0x4b9bd2['moveBase'](_0x4b9bd2['pos']+_0x260dee),null);},'HorizontalRule'(_0x50f97e,_0x8b8f70){if(isHorizontalRule(_0x8b8f70,_0x50f97e,!0x1)<0x0)return!0x1;let _0x136a1a=_0x50f97e['lineStart']+_0x8b8f70['pos'];return _0x50f97e['nextLine'](),_0x50f97e['addNode'](Type['HorizontalRule'],_0x136a1a),!0x0;},'BulletList'(_0x1c5bf9,_0x1f0178){let _0xc64f96=isBulletList(_0x1f0178,_0x1c5bf9,!0x1);if(_0xc64f96<0x0)return!0x1;_0x1c5bf9['block']['type']!=Type['BulletList']&&_0x1c5bf9['startContext'](Type['BulletList'],_0x1f0178['basePos'],_0x1f0178['next']);let _0x605561=getListIndent(_0x1f0178,_0x1f0178['pos']+0x1);return _0x1c5bf9['startContext'](Type['ListItem'],_0x1f0178['basePos'],_0x605561-_0x1f0178['baseIndent']),_0x1c5bf9['addNode'](Type['ListMark'],_0x1c5bf9['lineStart']+_0x1f0178['pos'],_0x1c5bf9['lineStart']+_0x1f0178['pos']+_0xc64f96),_0x1f0178['moveBaseColumn'](_0x605561),null;},'OrderedList'(_0x239d13,_0x3c47ba){let _0x44244e=isOrderedList(_0x3c47ba,_0x239d13,!0x1);if(_0x44244e<0x0)return!0x1;_0x239d13['block']['type']!=Type['OrderedList']&&_0x239d13['startContext'](Type['OrderedList'],_0x3c47ba['basePos'],_0x3c47ba['text']['charCodeAt'](_0x3c47ba['pos']+_0x44244e-0x1));let _0xe393ca=getListIndent(_0x3c47ba,_0x3c47ba['pos']+_0x44244e);return _0x239d13['startContext'](Type['ListItem'],_0x3c47ba['basePos'],_0xe393ca-_0x3c47ba['baseIndent']),_0x239d13['addNode'](Type['ListMark'],_0x239d13['lineStart']+_0x3c47ba['pos'],_0x239d13['lineStart']+_0x3c47ba['pos']+_0x44244e),_0x3c47ba['moveBaseColumn'](_0xe393ca),null;},'ATXHeading'(_0x5ee3b0,_0x131c79){let _0x490254=isAtxHeading(_0x131c79);if(_0x490254<0x0)return!0x1;let _0x21eb0b=_0x131c79['pos'],_0x23c3e5=_0x5ee3b0['lineStart']+_0x21eb0b,_0x595dde=skipSpaceBack(_0x131c79['text'],_0x131c79['text']['length'],_0x21eb0b),_0x400748=_0x595dde;for(;_0x400748>_0x21eb0b&&_0x131c79['text']['charCodeAt'](_0x400748-0x1)==_0x131c79['next'];)_0x400748--;_0x400748!=_0x595dde&&_0x400748!=_0x21eb0b&&space(_0x131c79['text']['charCodeAt'](_0x400748-0x1))||(_0x400748=_0x131c79['text']['length']);let _0x5b2322=_0x5ee3b0['buffer']['write'](Type['HeaderMark'],0x0,_0x490254)['writeElements'](_0x5ee3b0['parser']['parseInline'](_0x131c79['text']['slice'](_0x21eb0b+_0x490254+0x1,_0x400748),_0x23c3e5+_0x490254+0x1),-_0x23c3e5);_0x400748<_0x131c79['text']['length']&&_0x5b2322['write'](Type['HeaderMark'],_0x400748-_0x21eb0b,_0x595dde-_0x21eb0b);let _0x473e6a=_0x5b2322['finish'](Type['ATXHeading1']-0x1+_0x490254,_0x131c79['text']['length']-_0x21eb0b);return _0x5ee3b0['nextLine'](),_0x5ee3b0['addNode'](_0x473e6a,_0x23c3e5),!0x0;},'HTMLBlock'(_0x1dfb0d,_0x3400f9){let _0x422fab=isHTMLBlock(_0x3400f9,_0x1dfb0d,!0x1);if(_0x422fab<0x0)return!0x1;let _0x43cf6f=_0x1dfb0d['lineStart']+_0x3400f9['pos'],_0x587824=HTMLBlockStyle[_0x422fab][0x1],_0x192747=[],_0x379462=_0x587824!=EmptyLine;for(;!_0x587824['test'](_0x3400f9['text'])&&_0x1dfb0d['nextLine']();){if(_0x3400f9['depth']<_0x1dfb0d['stack']['length']){_0x379462=!0x1;break;}for(let _0x369612 of _0x3400f9['markers'])_0x192747['push'](_0x369612);}_0x379462&&_0x1dfb0d['nextLine']();let _0x45fca2=_0x587824==CommentEnd?Type['CommentBlock']:_0x587824==ProcessingEnd?Type['ProcessingInstructionBlock']:Type['HTMLBlock'],_0x3684c8=_0x1dfb0d['prevLineEnd']();return _0x1dfb0d['addNode'](_0x1dfb0d['buffer']['writeElements'](_0x192747,-_0x43cf6f)['finish'](_0x45fca2,_0x3684c8-_0x43cf6f),_0x43cf6f),!0x0;},'SetextHeading':void 0x0};class LinkReferenceParser{constructor(_0x2dedd1){this['stage']=0x0,this['elts']=[],this['pos']=0x0,this['start']=_0x2dedd1['start'],this['advance'](_0x2dedd1['content']);}['nextLine'](_0x4330e6,_0x5168fa,_0x121b52){if(-0x1==this['stage'])return!0x1;let _0x4660f7=_0x121b52['content']+'\x0a'+_0x5168fa['scrub'](),_0x214eea=this['advance'](_0x4660f7);return _0x214eea>-0x1&&_0x214eea<_0x4660f7['length']&&this['complete'](_0x4330e6,_0x121b52,_0x214eea);}['finish'](_0x4bea4f,_0x38dee5){return(0x2==this['stage']||0x3==this['stage'])&&skipSpace(_0x38dee5['content'],this['pos'])==_0x38dee5['content']['length']&&this['complete'](_0x4bea4f,_0x38dee5,_0x38dee5['content']['length']);}['complete'](_0x182fa3,_0x1473c8,_0xd4a5f2){return _0x182fa3['addLeafElement'](_0x1473c8,elt(Type['LinkReference'],this['start'],this['start']+_0xd4a5f2,this['elts'])),!0x0;}['nextStage'](_0xb290b3){return _0xb290b3?(this['pos']=_0xb290b3['to']-this['start'],this['elts']['push'](_0xb290b3),this['stage']++,!0x0):(!0x1===_0xb290b3&&(this['stage']=-0x1),!0x1);}['advance'](_0x3949b3){for(;;){if(-0x1==this['stage'])return-0x1;if(0x0==this['stage']){if(!this['nextStage'](parseLinkLabel(_0x3949b3,this['pos'],this['start'],!0x0)))return-0x1;if(0x3a!=_0x3949b3['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 _0x219ffd=skipSpace(_0x3949b3,this['pos']),_0x43604b=0x0;if(_0x219ffd>this['pos']){let _0x582aeb=parseLinkTitle(_0x3949b3,_0x219ffd,this['start']);if(_0x582aeb){let _0x220a2f=lineEnd(_0x3949b3,_0x582aeb['to']-this['start']);_0x220a2f>0x0&&(this['nextStage'](_0x582aeb),_0x43604b=_0x220a2f);}}return _0x43604b||(_0x43604b=lineEnd(_0x3949b3,this['pos'])),_0x43604b>0x0&&_0x43604b<_0x3949b3['length']?_0x43604b:-0x1;}return lineEnd(_0x3949b3,this['pos']);}if(!this['nextStage'](parseURL(_0x3949b3,skipSpace(_0x3949b3,this['pos']),this['start'])))return-0x1;}}}}function lineEnd(_0x10f7f5,_0x4997e3){for(;_0x4997e3<_0x10f7f5['length'];_0x4997e3++){let _0xce4604=_0x10f7f5['charCodeAt'](_0x4997e3);if(0xa==_0xce4604)break;if(!space(_0xce4604))return-0x1;}return _0x4997e3;}class SetextHeadingParser{['nextLine'](_0x2aeb6f,_0x191b09,_0x1fe5b2){let _0x52be52=_0x191b09['depth']<_0x2aeb6f['stack']['length']?-0x1:isSetextUnderline(_0x191b09),_0x2e96bc=_0x191b09['next'];if(_0x52be52<0x0)return!0x1;let _0x2c7941=elt(Type['HeaderMark'],_0x2aeb6f['lineStart']+_0x191b09['pos'],_0x2aeb6f['lineStart']+_0x52be52);return _0x2aeb6f['nextLine'](),_0x2aeb6f['addLeafElement'](_0x1fe5b2,elt(0x3d==_0x2e96bc?Type['SetextHeading1']:Type['SetextHeading2'],_0x1fe5b2['start'],_0x2aeb6f['prevLineEnd'](),[..._0x2aeb6f['parser']['parseInline'](_0x1fe5b2['content'],_0x1fe5b2['start']),_0x2c7941])),!0x0;}['finish'](){return!0x1;}}const DefaultLeafBlocks={'LinkReference':(_0x11cd3a,_0xc44bcd)=>0x5b==_0xc44bcd['content']['charCodeAt'](0x0)?new LinkReferenceParser(_0xc44bcd):null,'SetextHeading':()=>new SetextHeadingParser()},DefaultEndLeaf=[(_0x411cd8,_0x1f7c9a)=>isAtxHeading(_0x1f7c9a)>=0x0,(_0x28bc60,_0x327160)=>isFencedCode(_0x327160)>=0x0,(_0x1eed1b,_0x213477)=>isBlockquote(_0x213477)>=0x0,(_0x1a72b9,_0x3d9af0)=>isBulletList(_0x3d9af0,_0x1a72b9,!0x0)>=0x0,(_0x40ac9d,_0x222fd7)=>isOrderedList(_0x222fd7,_0x40ac9d,!0x0)>=0x0,(_0x5216c9,_0x12f63e)=>isHorizontalRule(_0x12f63e,_0x5216c9,!0x0)>=0x0,(_0x42235d,_0x570bcb)=>isHTMLBlock(_0x570bcb,_0x42235d,!0x0)>=0x0],scanLineResult={'text':'','end':0x0};class BlockContext{constructor(_0x371fe3,_0x275cb3,_0x1705ae,_0x5eb52c){this['parser']=_0x371fe3,this['input']=_0x275cb3,this['ranges']=_0x5eb52c,this['line']=new Line(),this['atEnd']=!0x1,this['reusePlaceholders']=new Map(),this['stoppedAt']=null,this['rangeI']=0x0,this['to']=_0x5eb52c[_0x5eb52c['length']-0x1]['to'],this['lineStart']=this['absoluteLineStart']=this['absoluteLineEnd']=_0x5eb52c[0x0]['from'],this['block']=CompositeBlock['create'](Type['Document'],0x0,this['lineStart'],0x0,0x0),this['stack']=[this['block']],this['fragments']=_0x1705ae['length']?new FragmentCursor(_0x1705ae,_0x275cb3):null,this['readLine']();}get['parsedPos'](){return this['absoluteLineStart'];}['advance'](){if(null!=this['stoppedAt']&&this['absoluteLineStart']>this['stoppedAt'])return this['finish']();let {line:_0x4f44dd}=this;for(;;){for(let _0x4a136f=0x0;;){let _0x7fa420=_0x4f44dd['depth']<this['stack']['length']?this['stack'][this['stack']['length']-0x1]:null;for(;_0x4a136f<_0x4f44dd['markers']['length']&&(!_0x7fa420||_0x4f44dd['markers'][_0x4a136f]['from']<_0x7fa420['end']);){let _0x40bcd3=_0x4f44dd['markers'][_0x4a136f++];this['addNode'](_0x40bcd3['type'],_0x40bcd3['from'],_0x40bcd3['to']);}if(!_0x7fa420)break;this['finishContext']();}if(_0x4f44dd['pos']<_0x4f44dd['text']['length'])break;if(!this['nextLine']())return this['finish']();}if(this['fragments']&&this['reuseFragment'](_0x4f44dd['basePos']))return null;t:for(;;){for(let _0x73a320 of this['parser']['blockParsers'])if(_0x73a320){let _0x3e588b=_0x73a320(this,_0x4f44dd);if(0x0!=_0x3e588b){if(0x1==_0x3e588b)return null;_0x4f44dd['forward']();continue t;}}break;}let _0x2d554f=new LeafBlock(this['lineStart']+_0x4f44dd['pos'],_0x4f44dd['text']['slice'](_0x4f44dd['pos']));for(let _0x544dd8 of this['parser']['leafBlockParsers'])if(_0x544dd8){let _0x297d22=_0x544dd8(this,_0x2d554f);_0x297d22&&_0x2d554f['parsers']['push'](_0x297d22);}t:for(;this['nextLine']()&&_0x4f44dd['pos']!=_0x4f44dd['text']['length'];){if(_0x4f44dd['indent']<_0x4f44dd['baseIndent']+0x4){for(let _0x27e622 of this['parser']['endLeafBlock'])if(_0x27e622(this,_0x4f44dd,_0x2d554f))break t;}for(let _0x147cc2 of _0x2d554f['parsers'])if(_0x147cc2['nextLine'](this,_0x4f44dd,_0x2d554f))return null;_0x2d554f['content']+='\x0a'+_0x4f44dd['scrub']();for(let _0x54deb0 of _0x4f44dd['markers'])_0x2d554f['marks']['push'](_0x54deb0);}return this['finishLeaf'](_0x2d554f),null;}['stopAt'](_0x23d829){if(null!=this['stoppedAt']&&this['stoppedAt']<_0x23d829)throw new RangeError('Can\x27t\x20move\x20stoppedAt\x20forward');this['stoppedAt']=_0x23d829;}['reuseFragment'](_0x117366){if(!this['fragments']['moveTo'](this['absoluteLineStart']+_0x117366,this['absoluteLineStart'])||!this['fragments']['matches'](this['block']['hash']))return!0x1;let _0x23a580=this['fragments']['takeNodes'](this);return!!_0x23a580&&(this['absoluteLineStart']+=_0x23a580,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'](_0x51a3b2=this['depth']-0x1){return this['parser']['nodeSet']['types'][this['stack'][_0x51a3b2]['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'](_0x2682ce){let _0x898f18=scanLineResult;if(_0x898f18['end']=_0x2682ce,_0x2682ce>=this['to'])_0x898f18['text']='';else{if(_0x898f18['text']=this['lineChunkAt'](_0x2682ce),_0x898f18['end']+=_0x898f18['text']['length'],this['ranges']['length']>0x1){let _0x481ecd=this['absoluteLineStart'],_0xd86c14=this['rangeI'];for(;this['ranges'][_0xd86c14]['to']<_0x898f18['end'];){_0xd86c14++;let _0x2f5334=this['ranges'][_0xd86c14]['from'],_0x5b26ea=this['lineChunkAt'](_0x2f5334);_0x898f18['end']=_0x2f5334+_0x5b26ea['length'],_0x898f18['text']=_0x898f18['text']['slice'](0x0,this['ranges'][_0xd86c14-0x1]['to']-_0x481ecd)+_0x5b26ea,_0x481ecd=_0x898f18['end']-_0x898f18['text']['length'];}}}return _0x898f18;}['readLine'](){let {line:_0x35af1d}=this,{text:_0x1e3c33,end:_0x162a8e}=this['scanLine'](this['absoluteLineStart']);for(this['absoluteLineEnd']=_0x162a8e,_0x35af1d['reset'](_0x1e3c33);_0x35af1d['depth']<this['stack']['length'];_0x35af1d['depth']++){let _0x3cba9a=this['stack'][_0x35af1d['depth']],_0x7ad5c1=this['parser']['skipContextMarkup'][_0x3cba9a['type']];if(!_0x7ad5c1)throw new Error('Unhandled\x20block\x20context\x20'+Type[_0x3cba9a['type']]);let _0x3735f5=this['line']['markers']['length'];if(!_0x7ad5c1(_0x3cba9a,this,_0x35af1d)){this['line']['markers']['length']>_0x3735f5&&(_0x3cba9a['end']=this['line']['markers'][this['line']['markers']['length']-0x1]['to']);break;}_0x35af1d['forward']();}}['lineChunkAt'](_0x23e7c6){let _0x1a3dd8,_0x5f2691=this['input']['chunk'](_0x23e7c6);if(this['input']['lineChunks'])_0x1a3dd8='\x0a'==_0x5f2691?'':_0x5f2691;else{let _0xf6aad1=_0x5f2691['indexOf']('\x0a');_0x1a3dd8=_0xf6aad1<0x0?_0x5f2691:_0x5f2691['slice'](0x0,_0xf6aad1);}return _0x23e7c6+_0x1a3dd8['length']>this['to']?_0x1a3dd8['slice'](0x0,this['to']-_0x23e7c6):_0x1a3dd8;}['prevLineEnd'](){return this['atEnd']?this['lineStart']:this['lineStart']-0x1;}['startContext'](_0x82bd84,_0x1d5df5,_0x945ab8=0x0){this['block']=CompositeBlock['create'](_0x82bd84,_0x945ab8,this['lineStart']+_0x1d5df5,this['block']['hash'],this['lineStart']+this['line']['text']['length']),this['stack']['push'](this['block']);}['startComposite'](_0x578dc7,_0x2fc4a0,_0x32579f=0x0){this['startContext'](this['parser']['getNodeType'](_0x578dc7),_0x2fc4a0,_0x32579f);}['addNode'](_0x157bad,_0x4cd14e,_0x5f4208){'number'==typeof _0x157bad&&(_0x157bad=new Tree(this['parser']['nodeSet']['types'][_0x157bad],none,none,(null!=_0x5f4208?_0x5f4208:this['prevLineEnd']())-_0x4cd14e)),this['block']['addChild'](_0x157bad,_0x4cd14e-this['block']['from']);}['addElement'](_0x29028c){this['block']['addChild'](_0x29028c['toTree'](this['parser']['nodeSet']),_0x29028c['from']-this['block']['from']);}['addLeafElement'](_0x27a806,_0x188004){this['addNode'](this['buffer']['writeElements'](injectMarks(_0x188004['children'],_0x27a806['marks']),-_0x188004['from'])['finish'](_0x188004['type'],_0x188004['to']-_0x188004['from']),_0x188004['from']);}['finishContext'](){let _0x251372=this['stack']['pop'](),_0x369f2b=this['stack'][this['stack']['length']-0x1];_0x369f2b['addChild'](_0x251372['toTree'](this['parser']['nodeSet']),_0x251372['from']-_0x369f2b['from']),this['block']=_0x369f2b;}['finish'](){for(;this['stack']['length']>0x1;)this['finishContext']();return this['addGaps'](this['block']['toTree'](this['parser']['nodeSet'],this['lineStart']));}['addGaps'](_0x9418fe){return this['ranges']['length']>0x1?injectGaps(this['ranges'],0x0,_0x9418fe['topNode'],this['ranges'][0x0]['from'],this['reusePlaceholders']):_0x9418fe;}['finishLeaf'](_0x5aefba){for(let _0x509689 of _0x5aefba['parsers'])if(_0x509689['finish'](this,_0x5aefba))return;let _0x31242e=injectMarks(this['parser']['parseInline'](_0x5aefba['content'],_0x5aefba['start']),_0x5aefba['marks']);this['addNode'](this['buffer']['writeElements'](_0x31242e,-_0x5aefba['start'])['finish'](Type['Paragraph'],_0x5aefba['content']['length']),_0x5aefba['start']);}['elt'](_0x5ca2fc,_0x44f765,_0x473b34,_0x5bd3b2){return'string'==typeof _0x5ca2fc?elt(this['parser']['getNodeType'](_0x5ca2fc),_0x44f765,_0x473b34,_0x5bd3b2):new TreeElement(_0x5ca2fc,_0x44f765);}get['buffer'](){return new Buffer$1(this['parser']['nodeSet']);}}function injectGaps(_0x2ffb9d,_0x21afcf,_0x5de00b,_0x45ae55,_0x59bf26){let _0x778903=_0x2ffb9d[_0x21afcf]['to'],_0x40aec8=[],_0x18eb82=[],_0x53aaa3=_0x5de00b['from']+_0x45ae55;function _0x3b5f05(_0x146380,_0x2e470e){for(;_0x2e470e?_0x146380>=_0x778903:_0x146380>_0x778903;){let _0x371d6f=_0x2ffb9d[_0x21afcf+0x1]['from']-_0x778903;_0x45ae55+=_0x371d6f,_0x146380+=_0x371d6f,_0x21afcf++,_0x778903=_0x2ffb9d[_0x21afcf]['to'];}}for(let _0x47a611=_0x5de00b['firstChild'];_0x47a611;_0x47a611=_0x47a611['nextSibling']){_0x3b5f05(_0x47a611['from']+_0x45ae55,!0x0);let _0x561408,_0x4e132d=_0x47a611['from']+_0x45ae55,_0x2f3135=_0x59bf26['get'](_0x47a611['tree']);_0x2f3135?_0x561408=_0x2f3135:_0x47a611['to']+_0x45ae55>_0x778903?(_0x561408=injectGaps(_0x2ffb9d,_0x21afcf,_0x47a611,_0x45ae55,_0x59bf26),_0x3b5f05(_0x47a611['to']+_0x45ae55,!0x1)):_0x561408=_0x47a611['toTree'](),_0x40aec8['push'](_0x561408),_0x18eb82['push'](_0x4e132d-_0x53aaa3);}return _0x3b5f05(_0x5de00b['to']+_0x45ae55,!0x1),new Tree(_0x5de00b['type'],_0x40aec8,_0x18eb82,_0x5de00b['to']+_0x45ae55-_0x53aaa3,_0x5de00b['tree']?_0x5de00b['tree']['propValues']:void 0x0);}class MarkdownParser extends Parser{constructor(_0x38c5be,_0x241f7e,_0x51c852,_0x5daa64,_0x27329c,_0x1aa9ac,_0x22a80a,_0x49fc68,_0x9fcb41){super(),this['nodeSet']=_0x38c5be,this['blockParsers']=_0x241f7e,this['leafBlockParsers']=_0x51c852,this['blockNames']=_0x5daa64,this['endLeafBlock']=_0x27329c,this['skipContextMarkup']=_0x1aa9ac,this['inlineParsers']=_0x22a80a,this['inlineNames']=_0x49fc68,this['wrappers']=_0x9fcb41,this['nodeTypes']=Object['create'](null);for(let t of _0x38c5be['types'])this['nodeTypes'][t['name']]=t['id'];}['createParse'](_0x28036a,_0x5b05e6,_0x280a20){let _0x439225=new BlockContext(this,_0x28036a,_0x5b05e6,_0x280a20);for(let _0x5e83b3 of this['wrappers'])_0x439225=_0x5e83b3(_0x439225,_0x28036a,_0x5b05e6,_0x280a20);return _0x439225;}['configure'](_0x3b8a2f){let _0x5582ba=resolveConfig(_0x3b8a2f);if(!_0x5582ba)return this;let {nodeSet:_0x3c2637,skipContextMarkup:_0x2b5ae3}=this,_0x153f43=this['blockParsers']['slice'](),_0x48fda8=this['leafBlockParsers']['slice'](),_0x265750=this['blockNames']['slice'](),_0x55937e=this['inlineParsers']['slice'](),_0x1fb4f1=this['inlineNames']['slice'](),_0x1e3081=this['endLeafBlock']['slice'](),_0xc36ef3=this['wrappers'];if(nonEmpty(_0x5582ba['defineNodes'])){_0x2b5ae3=Object['assign']({},_0x2b5ae3);let _0x5721f5,_0x59d024=_0x3c2637['types']['slice']();for(let _0x373470 of _0x5582ba['defineNodes']){let {name:_0xfb10ca,block:_0x3fc06c,composite:_0x42b1cd,style:_0x35db86}='string'==typeof _0x373470?{'name':_0x373470}:_0x373470;if(_0x59d024['some'](t=>t['name']==_0xfb10ca))continue;_0x42b1cd&&(_0x2b5ae3[_0x59d024['length']]=(_0x24320d,_0x4b8bd1,_0x4300c2)=>_0x42b1cd(_0x4b8bd1,_0x4300c2,_0x24320d['value']));let _0x40a06a=_0x59d024['length'],_0xc3abde=_0x42b1cd?['Block','BlockContext']:_0x3fc06c?_0x40a06a>=Type['ATXHeading1']&&_0x40a06a<=Type['SetextHeading2']?['Block','LeafBlock','Heading']:['Block','LeafBlock']:void 0x0;_0x59d024['push'](NodeType['define']({'id':_0x40a06a,'name':_0xfb10ca,'props':_0xc3abde&&[[NodeProp['group'],_0xc3abde]]})),_0x35db86&&(_0x5721f5||(_0x5721f5={}),Array['isArray'](_0x35db86)||_0x35db86 instanceof Tag?_0x5721f5[_0xfb10ca]=_0x35db86:Object['assign'](_0x5721f5,_0x35db86));}_0x3c2637=new NodeSet(_0x59d024),_0x5721f5&&(_0x3c2637=_0x3c2637['extend'](styleTags(_0x5721f5)));}if(nonEmpty(_0x5582ba['props'])&&(_0x3c2637=_0x3c2637['extend'](..._0x5582ba['props'])),nonEmpty(_0x5582ba['remove']))for(let _0x21ee89 of _0x5582ba['remove']){let _0x4faedd=this['blockNames']['indexOf'](_0x21ee89),_0x511aba=this['inlineNames']['indexOf'](_0x21ee89);_0x4faedd>-0x1&&(_0x153f43[_0x4faedd]=_0x48fda8[_0x4faedd]=void 0x0),_0x511aba>-0x1&&(_0x55937e[_0x511aba]=void 0x0);}if(nonEmpty(_0x5582ba['parseBlock']))for(let _0x354e7d of _0x5582ba['parseBlock']){let _0x2d1e65=_0x265750['indexOf'](_0x354e7d['name']);if(_0x2d1e65>-0x1)_0x153f43[_0x2d1e65]=_0x354e7d['parse'],_0x48fda8[_0x2d1e65]=_0x354e7d['leaf'];else{let _0x3ced28=_0x354e7d['before']?findName(_0x265750,_0x354e7d['before']):_0x354e7d['after']?findName(_0x265750,_0x354e7d['after'])+0x1:_0x265750['length']-0x1;_0x153f43['splice'](_0x3ced28,0x0,_0x354e7d['parse']),_0x48fda8['splice'](_0x3ced28,0x0,_0x354e7d['leaf']),_0x265750['splice'](_0x3ced28,0x0,_0x354e7d['name']);}_0x354e7d['endLeaf']&&_0x1e3081['push'](_0x354e7d['endLeaf']);}if(nonEmpty(_0x5582ba['parseInline']))for(let _0x4abe17 of _0x5582ba['parseInline']){let _0x119dbf=_0x1fb4f1['indexOf'](_0x4abe17['name']);if(_0x119dbf>-0x1)_0x55937e[_0x119dbf]=_0x4abe17['parse'];else{let _0x1fabd0=_0x4abe17['before']?findName(_0x1fb4f1,_0x4abe17['before']):_0x4abe17['after']?findName(_0x1fb4f1,_0x4abe17['after'])+0x1:_0x1fb4f1['length']-0x1;_0x55937e['splice'](_0x1fabd0,0x0,_0x4abe17['parse']),_0x1fb4f1['splice'](_0x1fabd0,0x0,_0x4abe17['name']);}}return _0x5582ba['wrap']&&(_0xc36ef3=_0xc36ef3['concat'](_0x5582ba['wrap'])),new MarkdownParser(_0x3c2637,_0x153f43,_0x48fda8,_0x265750,_0x1e3081,_0x2b5ae3,_0x55937e,_0x1fb4f1,_0xc36ef3);}['getNodeType'](_0x1fc181){let _0x2848ef=this['nodeTypes'][_0x1fc181];if(null==_0x2848ef)throw new RangeError('Unknown\x20node\x20type\x20\x27'+_0x1fc181+'\x27');return _0x2848ef;}['parseInline'](_0x5f6ec0,_0x1484b4){let _0x26d923=new InlineContext(this,_0x5f6ec0,_0x1484b4);t:for(let _0x50fe59=_0x1484b4;_0x50fe59<_0x26d923['end'];){let _0x48fd89=_0x26d923['char'](_0x50fe59);for(let _0x1054eb of this['inlineParsers'])if(_0x1054eb){let _0x32ae69=_0x1054eb(_0x26d923,_0x48fd89,_0x50fe59);if(_0x32ae69>=0x0){_0x50fe59=_0x32ae69;continue t;}}_0x50fe59++;}return _0x26d923['resolveMarkers'](0x0);}}function nonEmpty(_0x478ac5){return null!=_0x478ac5&&_0x478ac5['length']>0x0;}function resolveConfig(_0x172578){if(!Array['isArray'](_0x172578))return _0x172578;if(0x0==_0x172578['length'])return null;let _0x189521=resolveConfig(_0x172578[0x0]);if(0x1==_0x172578['length'])return _0x189521;let _0x27acb7=resolveConfig(_0x172578['slice'](0x1));if(!_0x27acb7||!_0x189521)return _0x189521||_0x27acb7;let _0x31c8b2=(_0x373aa7,_0xdaa6f5)=>(_0x373aa7||none)['concat'](_0xdaa6f5||none),_0x2ad49c=_0x189521['wrap'],_0x69330=_0x27acb7['wrap'];return{'props':_0x31c8b2(_0x189521['props'],_0x27acb7['props']),'defineNodes':_0x31c8b2(_0x189521['defineNodes'],_0x27acb7['defineNodes']),'parseBlock':_0x31c8b2(_0x189521['parseBlock'],_0x27acb7['parseBlock']),'parseInline':_0x31c8b2(_0x189521['parseInline'],_0x27acb7['parseInline']),'remove':_0x31c8b2(_0x189521['remove'],_0x27acb7['remove']),'wrap':_0x2ad49c?_0x69330?(_0x4dc86e,_0x4fcd15,_0x30cd9c,_0x398ac6)=>_0x2ad49c(_0x69330(_0x4dc86e,_0x4fcd15,_0x30cd9c,_0x398ac6),_0x4fcd15,_0x30cd9c,_0x398ac6):_0x2ad49c:_0x69330};}function findName(_0x2246ab,_0x35c10a){let _0x5b0d30=_0x2246ab['indexOf'](_0x35c10a);if(_0x5b0d30<0x0)throw new RangeError('Position\x20specified\x20relative\x20to\x20unknown\x20parser\x20'+_0x35c10a);return _0x5b0d30;}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(_0x3870e4){this['nodeSet']=_0x3870e4,this['content']=[],this['nodes']=[];}['write'](_0x2798de,_0x3db9c5,_0x3beefc,_0x456e3a=0x0){return this['content']['push'](_0x2798de,_0x3db9c5,_0x3beefc,0x4+0x4*_0x456e3a),this;}['writeElements'](_0xdf9dc4,_0x408b23=0x0){for(let _0x31a683 of _0xdf9dc4)_0x31a683['writeTo'](this,_0x408b23);return this;}['finish'](_0x17839b,_0x506a1c){return Tree['build']({'buffer':this['content'],'nodeSet':this['nodeSet'],'reused':this['nodes'],'topID':_0x17839b,'length':_0x506a1c});}},Element$1=class{constructor(_0x4c36be,_0x40323f,_0x347c07,_0x483874=none){this['type']=_0x4c36be,this['from']=_0x40323f,this['to']=_0x347c07,this['children']=_0x483874;}['writeTo'](_0x2cd3d6,_0x2bc369){let _0x35d4c1=_0x2cd3d6['content']['length'];_0x2cd3d6['writeElements'](this['children'],_0x2bc369),_0x2cd3d6['content']['push'](this['type'],this['from']+_0x2bc369,this['to']+_0x2bc369,_0x2cd3d6['content']['length']+0x4-_0x35d4c1);}['toTree'](_0x29c72b){return new Buffer$1(_0x29c72b)['writeElements'](this['children'],-this['from'])['finish'](this['type'],this['to']-this['from']);}};class TreeElement{constructor(_0xc52d4c,_0x37ba14){this['tree']=_0xc52d4c,this['from']=_0x37ba14;}get['to'](){return this['from']+this['tree']['length'];}get['type'](){return this['tree']['type']['id'];}get['children'](){return none;}['writeTo'](_0x3616c6,_0x5645ed){_0x3616c6['nodes']['push'](this['tree']),_0x3616c6['content']['push'](_0x3616c6['nodes']['length']-0x1,this['from']+_0x5645ed,this['to']+_0x5645ed,-0x1);}['toTree'](){return this['tree'];}}function elt(_0x3e43b7,_0xe721ed,_0x3302e8,_0x9a6ced){return new Element$1(_0x3e43b7,_0xe721ed,_0x3302e8,_0x9a6ced);}const EmphasisUnderscore={'resolve':'Emphasis','mark':'EmphasisMark'},EmphasisAsterisk={'resolve':'Emphasis','mark':'EmphasisMark'},LinkStart={},ImageStart={};class InlineDelimiter{constructor(_0x4c2470,_0x3d25e5,_0x55f700,_0x11c611){this['type']=_0x4c2470,this['from']=_0x3d25e5,this['to']=_0x55f700,this['side']=_0x11c611;}}const Escapable='!\x22#$%&\x27()*+,-./:;<=>?@[\x5c]^_`{|}~';let Punctuation=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Punctuation=new RegExp('[\x5cp{S}|\x5cp{P}]','u');}catch(_0x47c5fb){}const DefaultInline={'Escape'(_0x246dea,_0x234647,_0x29bd7d){if(0x5c!=_0x234647||_0x29bd7d==_0x246dea['end']-0x1)return-0x1;let _0x550b6d=_0x246dea['char'](_0x29bd7d+0x1);for(let _0x1f6922=0x0;_0x1f6922<Escapable['length'];_0x1f6922++)if(Escapable['charCodeAt'](_0x1f6922)==_0x550b6d)return _0x246dea['append'](elt(Type['Escape'],_0x29bd7d,_0x29bd7d+0x2));return-0x1;},'Entity'(_0x1b7238,_0x492f6c,_0x48751a){if(0x26!=_0x492f6c)return-0x1;let _0x5d381f=/^(?:#\d+|#x[a-f\d]+|\w+);/i['exec'](_0x1b7238['slice'](_0x48751a+0x1,_0x48751a+0x1f));return _0x5d381f?_0x1b7238['append'](elt(Type['Entity'],_0x48751a,_0x48751a+0x1+_0x5d381f[0x0]['length'])):-0x1;},'InlineCode'(_0x1ff8ab,_0x25877b,_0x32f811){if(0x60!=_0x25877b||_0x32f811&&0x60==_0x1ff8ab['char'](_0x32f811-0x1))return-0x1;let _0x4fa650=_0x32f811+0x1;for(;_0x4fa650<_0x1ff8ab['end']&&0x60==_0x1ff8ab['char'](_0x4fa650);)_0x4fa650++;let _0x34d948=_0x4fa650-_0x32f811,_0x467728=0x0;for(;_0x4fa650<_0x1ff8ab['end'];_0x4fa650++)if(0x60==_0x1ff8ab['char'](_0x4fa650)){if(_0x467728++,_0x467728==_0x34d948&&0x60!=_0x1ff8ab['char'](_0x4fa650+0x1))return _0x1ff8ab['append'](elt(Type['InlineCode'],_0x32f811,_0x4fa650+0x1,[elt(Type['CodeMark'],_0x32f811,_0x32f811+_0x34d948),elt(Type['CodeMark'],_0x4fa650+0x1-_0x34d948,_0x4fa650+0x1)]));}else _0x467728=0x0;return-0x1;},'HTMLTag'(_0x193b8f,_0x2dc412,_0xdc4f7a){if(0x3c!=_0x2dc412||_0xdc4f7a==_0x193b8f['end']-0x1)return-0x1;let _0x504d93=_0x193b8f['slice'](_0xdc4f7a+0x1,_0x193b8f['end']),_0x537c72=/^(?:[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'](_0x504d93);if(_0x537c72)return _0x193b8f['append'](elt(Type['Autolink'],_0xdc4f7a,_0xdc4f7a+0x1+_0x537c72[0x0]['length'],[elt(Type['LinkMark'],_0xdc4f7a,_0xdc4f7a+0x1),elt(Type['URL'],_0xdc4f7a+0x1,_0xdc4f7a+_0x537c72[0x0]['length']),elt(Type['LinkMark'],_0xdc4f7a+_0x537c72[0x0]['length'],_0xdc4f7a+0x1+_0x537c72[0x0]['length'])]));let _0x10d10b=/^!--[^>](?:-[^-]|[^-])*?-->/i['exec'](_0x504d93);if(_0x10d10b)return _0x193b8f['append'](elt(Type['Comment'],_0xdc4f7a,_0xdc4f7a+0x1+_0x10d10b[0x0]['length']));let _0x2276b5=/^\?[^]*?\?>/['exec'](_0x504d93);if(_0x2276b5)return _0x193b8f['append'](elt(Type['ProcessingInstruction'],_0xdc4f7a,_0xdc4f7a+0x1+_0x2276b5[0x0]['length']));let _0x5ba1df=/^(?:![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'](_0x504d93);return _0x5ba1df?_0x193b8f['append'](elt(Type['HTMLTag'],_0xdc4f7a,_0xdc4f7a+0x1+_0x5ba1df[0x0]['length'])):-0x1;},'Emphasis'(_0x35213e,_0x507d38,_0x4f4132){if(0x5f!=_0x507d38&&0x2a!=_0x507d38)return-0x1;let _0x1107ee=_0x4f4132+0x1;for(;_0x35213e['char'](_0x1107ee)==_0x507d38;)_0x1107ee++;let _0x4d423b=_0x35213e['slice'](_0x4f4132-0x1,_0x4f4132),_0x236618=_0x35213e['slice'](_0x1107ee,_0x1107ee+0x1),_0x5c5227=Punctuation['test'](_0x4d423b),_0xebbeed=Punctuation['test'](_0x236618),_0x5788d6=/\s|^$/['test'](_0x4d423b),_0x36b3f8=/\s|^$/['test'](_0x236618),_0x4510f5=!_0x36b3f8&&(!_0xebbeed||_0x5788d6||_0x5c5227),_0x58c8a3=!_0x5788d6&&(!_0x5c5227||_0x36b3f8||_0xebbeed),_0x15f70c=_0x4510f5&&(0x2a==_0x507d38||!_0x58c8a3||_0x5c5227),_0x565e9d=_0x58c8a3&&(0x2a==_0x507d38||!_0x4510f5||_0xebbeed);return _0x35213e['append'](new InlineDelimiter(0x5f==_0x507d38?EmphasisUnderscore:EmphasisAsterisk,_0x4f4132,_0x1107ee,(_0x15f70c?0x1:0x0)|(_0x565e9d?0x2:0x0)));},'HardBreak'(_0x35b51c,_0x4790b3,_0x3ad1a0){if(0x5c==_0x4790b3&&0xa==_0x35b51c['char'](_0x3ad1a0+0x1))return _0x35b51c['append'](elt(Type['HardBreak'],_0x3ad1a0,_0x3ad1a0+0x2));if(0x20==_0x4790b3){let _0x15eb51=_0x3ad1a0+0x1;for(;0x20==_0x35b51c['char'](_0x15eb51);)_0x15eb51++;if(0xa==_0x35b51c['char'](_0x15eb51)&&_0x15eb51>=_0x3ad1a0+0x2)return _0x35b51c['append'](elt(Type['HardBreak'],_0x3ad1a0,_0x15eb51+0x1));}return-0x1;},'Link':(_0x39f69f,_0x33a9af,_0x2b9ae1)=>0x5b==_0x33a9af?_0x39f69f['append'](new InlineDelimiter(LinkStart,_0x2b9ae1,_0x2b9ae1+0x1,0x1)):-0x1,'Image':(_0x258755,_0x3e5efe,_0x2aaa4c)=>0x21==_0x3e5efe&&0x5b==_0x258755['char'](_0x2aaa4c+0x1)?_0x258755['append'](new InlineDelimiter(ImageStart,_0x2aaa4c,_0x2aaa4c+0x2,0x1)):-0x1,'LinkEnd'(_0x3ad16b,_0x4b7e93,_0x430202){if(0x5d!=_0x4b7e93)return-0x1;for(let _0x50c543=_0x3ad16b['parts']['length']-0x1;_0x50c543>=0x0;_0x50c543--){let _0x351545=_0x3ad16b['parts'][_0x50c543];if(_0x351545 instanceof InlineDelimiter&&(_0x351545['type']==LinkStart||_0x351545['type']==ImageStart)){if(!_0x351545['side']||_0x3ad16b['skipSpace'](_0x351545['to'])==_0x430202&&!/[(\[]/['test'](_0x3ad16b['slice'](_0x430202+0x1,_0x430202+0x2)))return _0x3ad16b['parts'][_0x50c543]=null,-0x1;let _0x5ed819=_0x3ad16b['takeContent'](_0x50c543),_0x74dad4=_0x3ad16b['parts'][_0x50c543]=finishLink(_0x3ad16b,_0x5ed819,_0x351545['type']==LinkStart?Type['Link']:Type['Image'],_0x351545['from'],_0x430202+0x1);if(_0x351545['type']==LinkStart)for(let _0x498c0e=0x0;_0x498c0e<_0x50c543;_0x498c0e++){let _0x4eb3c6=_0x3ad16b['parts'][_0x498c0e];_0x4eb3c6 instanceof InlineDelimiter&&_0x4eb3c6['type']==LinkStart&&(_0x4eb3c6['side']=0x0);}return _0x74dad4['to'];}}return-0x1;}};function finishLink(_0x55148a,_0x429f4a,_0x2f48b6,_0x335050,_0x44856b){let {text:_0x15dba8}=_0x55148a,_0x3882e0=_0x55148a['char'](_0x44856b),_0x2e8d6e=_0x44856b;if(_0x429f4a['unshift'](elt(Type['LinkMark'],_0x335050,_0x335050+(_0x2f48b6==Type['Image']?0x2:0x1))),_0x429f4a['push'](elt(Type['LinkMark'],_0x44856b-0x1,_0x44856b)),0x28==_0x3882e0){let _0x40acf6,_0x28dadc=_0x55148a['skipSpace'](_0x44856b+0x1),_0x304b54=parseURL(_0x15dba8,_0x28dadc-_0x55148a['offset'],_0x55148a['offset']);_0x304b54&&(_0x28dadc=_0x55148a['skipSpace'](_0x304b54['to']),_0x28dadc!=_0x304b54['to']&&(_0x40acf6=parseLinkTitle(_0x15dba8,_0x28dadc-_0x55148a['offset'],_0x55148a['offset']),_0x40acf6&&(_0x28dadc=_0x55148a['skipSpace'](_0x40acf6['to'])))),0x29==_0x55148a['char'](_0x28dadc)&&(_0x429f4a['push'](elt(Type['LinkMark'],_0x44856b,_0x44856b+0x1)),_0x2e8d6e=_0x28dadc+0x1,_0x304b54&&_0x429f4a['push'](_0x304b54),_0x40acf6&&_0x429f4a['push'](_0x40acf6),_0x429f4a['push'](elt(Type['LinkMark'],_0x28dadc,_0x2e8d6e)));}else{if(0x5b==_0x3882e0){let _0x1db8f3=parseLinkLabel(_0x15dba8,_0x44856b-_0x55148a['offset'],_0x55148a['offset'],!0x1);_0x1db8f3&&(_0x429f4a['push'](_0x1db8f3),_0x2e8d6e=_0x1db8f3['to']);}}return elt(_0x2f48b6,_0x335050,_0x2e8d6e,_0x429f4a);}function parseURL(_0x470813,_0x6bd5f1,_0x5044e9){if(0x3c==_0x470813['charCodeAt'](_0x6bd5f1)){for(let _0x128bad=_0x6bd5f1+0x1;_0x128bad<_0x470813['length'];_0x128bad++){let _0x3adb6a=_0x470813['charCodeAt'](_0x128bad);if(0x3e==_0x3adb6a)return elt(Type['URL'],_0x6bd5f1+_0x5044e9,_0x128bad+0x1+_0x5044e9);if(0x3c==_0x3adb6a||0xa==_0x3adb6a)return!0x1;}return null;}{let _0x26701a=0x0,_0x2050e6=_0x6bd5f1;for(let _0x44193b=!0x1;_0x2050e6<_0x470813['length'];_0x2050e6++){let _0x4f700a=_0x470813['charCodeAt'](_0x2050e6);if(space(_0x4f700a))break;if(_0x44193b)_0x44193b=!0x1;else{if(0x28==_0x4f700a)_0x26701a++;else{if(0x29==_0x4f700a){if(!_0x26701a)break;_0x26701a--;}else 0x5c==_0x4f700a&&(_0x44193b=!0x0);}}}return _0x2050e6>_0x6bd5f1?elt(Type['URL'],_0x6bd5f1+_0x5044e9,_0x2050e6+_0x5044e9):_0x2050e6==_0x470813['length']&&null;}}function parseLinkTitle(_0x3e02e6,_0x47678b,_0x34bdeb){let _0x5ba34c=_0x3e02e6['charCodeAt'](_0x47678b);if(0x27!=_0x5ba34c&&0x22!=_0x5ba34c&&0x28!=_0x5ba34c)return!0x1;let _0x5a53f1=0x28==_0x5ba34c?0x29:_0x5ba34c;for(let _0x1d3d82=_0x47678b+0x1,_0x312de7=!0x1;_0x1d3d82<_0x3e02e6['length'];_0x1d3d82++){let _0x11615d=_0x3e02e6['charCodeAt'](_0x1d3d82);if(_0x312de7)_0x312de7=!0x1;else{if(_0x11615d==_0x5a53f1)return elt(Type['LinkTitle'],_0x47678b+_0x34bdeb,_0x1d3d82+0x1+_0x34bdeb);0x5c==_0x11615d&&(_0x312de7=!0x0);}}return null;}function parseLinkLabel(_0x4dee21,_0x57e32e,_0x18efbd,_0x4c2436){for(let _0x5910a2=!0x1,_0x2c7cc5=_0x57e32e+0x1,_0x116c8f=Math['min'](_0x4dee21['length'],_0x2c7cc5+0x3e7);_0x2c7cc5<_0x116c8f;_0x2c7cc5++){let _0x537086=_0x4dee21['charCodeAt'](_0x2c7cc5);if(_0x5910a2)_0x5910a2=!0x1;else{if(0x5d==_0x537086)return!_0x4c2436&&elt(Type['LinkLabel'],_0x57e32e+_0x18efbd,_0x2c7cc5+0x1+_0x18efbd);if(_0x4c2436&&!space(_0x537086)&&(_0x4c2436=!0x1),0x5b==_0x537086)return!0x1;0x5c==_0x537086&&(_0x5910a2=!0x0);}}return null;}class InlineContext{constructor(_0x460ad9,_0x95d77,_0x53a887){this['parser']=_0x460ad9,this['text']=_0x95d77,this['offset']=_0x53a887,this['parts']=[];}['char'](_0x35aa52){return _0x35aa52>=this['end']?-0x1:this['text']['charCodeAt'](_0x35aa52-this['offset']);}get['end'](){return this['offset']+this['text']['length'];}['slice'](_0x3d4fd1,_0x1bce1e){return this['text']['slice'](_0x3d4fd1-this['offset'],_0x1bce1e-this['offset']);}['append'](_0x40be8f){return this['parts']['push'](_0x40be8f),_0x40be8f['to'];}['addDelimiter'](_0x16148e,_0x2379bd,_0xc807a8,_0x469577,_0x4e0392){return this['append'](new InlineDelimiter(_0x16148e,_0x2379bd,_0xc807a8,(_0x469577?0x1:0x0)|(_0x4e0392?0x2:0x0)));}get['hasOpenLink'](){for(let _0x53edfc=this['parts']['length']-0x1;_0x53edfc>=0x0;_0x53edfc--){let _0x3ad76a=this['parts'][_0x53edfc];if(_0x3ad76a instanceof InlineDelimiter&&(_0x3ad76a['type']==LinkStart||_0x3ad76a['type']==ImageStart))return!0x0;}return!0x1;}['addElement'](_0x36e889){return this['append'](_0x36e889);}['resolveMarkers'](_0x433053){for(let _0x11a125=_0x433053;_0x11a125<this['parts']['length'];_0x11a125++){let _0x55846b=this['parts'][_0x11a125];if(!(_0x55846b instanceof InlineDelimiter&&_0x55846b['type']['resolve']&&0x2&_0x55846b['side']))continue;let _0xbafaf0,_0x55c63e=_0x55846b['type']==EmphasisUnderscore||_0x55846b['type']==EmphasisAsterisk,_0x2da871=_0x55846b['to']-_0x55846b['from'],_0x5a4418=_0x11a125-0x1;for(;_0x5a4418>=_0x433053;_0x5a4418--){let _0x50a02c=this['parts'][_0x5a4418];if(_0x50a02c instanceof InlineDelimiter&&0x1&_0x50a02c['side']&&_0x50a02c['type']==_0x55846b['type']&&!(_0x55c63e&&(0x1&_0x55846b['side']||0x2&_0x50a02c['side'])&&(_0x50a02c['to']-_0x50a02c['from']+_0x2da871)%0x3==0x0&&((_0x50a02c['to']-_0x50a02c['from'])%0x3||_0x2da871%0x3))){_0xbafaf0=_0x50a02c;break;}}if(!_0xbafaf0)continue;let _0x231625=_0x55846b['type']['resolve'],_0x7c3ca8=[],_0x25d0d8=_0xbafaf0['from'],_0x93a81f=_0x55846b['to'];if(_0x55c63e){let _0x3fbba2=Math['min'](0x2,_0xbafaf0['to']-_0xbafaf0['from'],_0x2da871);_0x25d0d8=_0xbafaf0['to']-_0x3fbba2,_0x93a81f=_0x55846b['from']+_0x3fbba2,_0x231625=0x1==_0x3fbba2?'Emphasis':'StrongEmphasis';}_0xbafaf0['type']['mark']&&_0x7c3ca8['push'](this['elt'](_0xbafaf0['type']['mark'],_0x25d0d8,_0xbafaf0['to']));for(let _0x4faa9c=_0x5a4418+0x1;_0x4faa9c<_0x11a125;_0x4faa9c++)this['parts'][_0x4faa9c]instanceof Element$1&&_0x7c3ca8['push'](this['parts'][_0x4faa9c]),this['parts'][_0x4faa9c]=null;_0x55846b['type']['mark']&&_0x7c3ca8['push'](this['elt'](_0x55846b['type']['mark'],_0x55846b['from'],_0x93a81f));let _0x89c6b=this['elt'](_0x231625,_0x25d0d8,_0x93a81f,_0x7c3ca8);this['parts'][_0x5a4418]=_0x55c63e&&_0xbafaf0['from']!=_0x25d0d8?new InlineDelimiter(_0xbafaf0['type'],_0xbafaf0['from'],_0x25d0d8,_0xbafaf0['side']):null,(this['parts'][_0x11a125]=_0x55c63e&&_0x55846b['to']!=_0x93a81f?new InlineDelimiter(_0x55846b['type'],_0x93a81f,_0x55846b['to'],_0x55846b['side']):null)?this['parts']['splice'](_0x11a125,0x0,_0x89c6b):this['parts'][_0x11a125]=_0x89c6b;}let _0x54d828=[];for(let _0x6a3c0b=_0x433053;_0x6a3c0b<this['parts']['length'];_0x6a3c0b++){let _0x3bcb18=this['parts'][_0x6a3c0b];_0x3bcb18 instanceof Element$1&&_0x54d828['push'](_0x3bcb18);}return _0x54d828;}['findOpeningDelimiter'](_0x17a5ec){for(let _0xef5f2f=this['parts']['length']-0x1;_0xef5f2f>=0x0;_0xef5f2f--){let _0x1ea782=this['parts'][_0xef5f2f];if(_0x1ea782 instanceof InlineDelimiter&&_0x1ea782['type']==_0x17a5ec&&0x1&_0x1ea782['side'])return _0xef5f2f;}return null;}['takeContent'](_0x2a8f97){let _0x554ab1=this['resolveMarkers'](_0x2a8f97);return this['parts']['length']=_0x2a8f97,_0x554ab1;}['getDelimiterAt'](_0x194263){let _0x5d97f1=this['parts'][_0x194263];return _0x5d97f1 instanceof InlineDelimiter?_0x5d97f1:null;}['skipSpace'](_0x36ca6c){return skipSpace(this['text'],_0x36ca6c-this['offset'])+this['offset'];}['elt'](_0x7055c,_0x4264f4,_0x5d6b91,_0x42bf3f){return'string'==typeof _0x7055c?elt(this['parser']['getNodeType'](_0x7055c),_0x4264f4,_0x5d6b91,_0x42bf3f):new TreeElement(_0x7055c,_0x4264f4);}}function injectMarks(_0x9c5605,_0x239c64){if(!_0x239c64['length'])return _0x9c5605;if(!_0x9c5605['length'])return _0x239c64;let _0x4c249c=_0x9c5605['slice'](),_0x384ee6=0x0;for(let _0x251bf4 of _0x239c64){for(;_0x384ee6<_0x4c249c['length']&&_0x4c249c[_0x384ee6]['to']<_0x251bf4['to'];)_0x384ee6++;if(_0x384ee6<_0x4c249c['length']&&_0x4c249c[_0x384ee6]['from']<_0x251bf4['from']){let _0x5775a8=_0x4c249c[_0x384ee6];_0x5775a8 instanceof Element$1&&(_0x4c249c[_0x384ee6]=new Element$1(_0x5775a8['type'],_0x5775a8['from'],_0x5775a8['to'],injectMarks(_0x5775a8['children'],[_0x251bf4])));}else _0x4c249c['splice'](_0x384ee6++,0x0,_0x251bf4);}return _0x4c249c;}InlineContext['linkStart']=LinkStart,InlineContext['imageStart']=ImageStart;const NotLast=[Type['CodeBlock'],Type['ListItem'],Type['OrderedList'],Type['BulletList']];class FragmentCursor{constructor(_0x332d56,_0x1280ca){this['fragments']=_0x332d56,this['input']=_0x1280ca,this['i']=0x0,this['fragment']=null,this['fragmentEnd']=-0x1,this['cursor']=null,_0x332d56['length']&&(this['fragment']=_0x332d56[this['i']++]);}['nextFragment'](){this['fragment']=this['i']<this['fragments']['length']?this['fragments'][this['i']++]:null,this['cursor']=null,this['fragmentEnd']=-0x1;}['moveTo'](_0x55ba58,_0x52c64f){for(;this['fragment']&&this['fragment']['to']<=_0x55ba58;)this['nextFragment']();if(!this['fragment']||this['fragment']['from']>(_0x55ba58?_0x55ba58-0x1:0x0))return!0x1;if(this['fragmentEnd']<0x0){let _0x774a66=this['fragment']['to'];for(;_0x774a66>0x0&&'\x0a'!=this['input']['read'](_0x774a66-0x1,_0x774a66);)_0x774a66--;this['fragmentEnd']=_0x774a66?_0x774a66-0x1:0x0;}let _0x4d6715=this['cursor'];_0x4d6715||(_0x4d6715=this['cursor']=this['fragment']['tree']['cursor'](),_0x4d6715['firstChild']());let _0x597a62=_0x55ba58+this['fragment']['offset'];for(;_0x4d6715['to']<=_0x597a62;)if(!_0x4d6715['parent']())return!0x1;for(;;){if(_0x4d6715['from']>=_0x597a62)return this['fragment']['from']<=_0x52c64f;if(!_0x4d6715['childAfter'](_0x597a62))return!0x1;}}['matches'](_0x231d3d){let _0x3d7af8=this['cursor']['tree'];return _0x3d7af8&&_0x3d7af8['prop'](NodeProp['contextHash'])==_0x231d3d;}['takeNodes'](_0x10bd31){let _0x4d8245=this['cursor'],_0x277ae8=this['fragment']['offset'],_0x2746a6=this['fragmentEnd']-(this['fragment']['openEnd']?0x1:0x0),_0x50886a=_0x10bd31['absoluteLineStart'],_0x15f5bb=_0x50886a,_0x199d0a=_0x10bd31['block']['children']['length'],_0x26bbb6=_0x15f5bb,_0xe1a47=_0x199d0a;for(;;){if(_0x4d8245['to']-_0x277ae8>_0x2746a6){if(_0x4d8245['type']['isAnonymous']&&_0x4d8245['firstChild']())continue;break;}let _0x13b851=toRelative(_0x4d8245['from']-_0x277ae8,_0x10bd31['ranges']);if(_0x4d8245['to']-_0x277ae8<=_0x10bd31['ranges'][_0x10bd31['rangeI']]['to'])_0x10bd31['addNode'](_0x4d8245['tree'],_0x13b851);else{let _0x171ce7=new Tree(_0x10bd31['parser']['nodeSet']['types'][Type['Paragraph']],[],[],0x0,_0x10bd31['block']['hashProp']);_0x10bd31['reusePlaceholders']['set'](_0x171ce7,_0x4d8245['tree']),_0x10bd31['addNode'](_0x171ce7,_0x13b851);}if(_0x4d8245['type']['is']('Block')&&(NotLast['indexOf'](_0x4d8245['type']['id'])<0x0?(_0x15f5bb=_0x4d8245['to']-_0x277ae8,_0x199d0a=_0x10bd31['block']['children']['length']):(_0x15f5bb=_0x26bbb6,_0x199d0a=_0xe1a47,_0x26bbb6=_0x4d8245['to']-_0x277ae8,_0xe1a47=_0x10bd31['block']['children']['length'])),!_0x4d8245['nextSibling']())break;}for(;_0x10bd31['block']['children']['length']>_0x199d0a;)_0x10bd31['block']['children']['pop'](),_0x10bd31['block']['positions']['pop']();return _0x15f5bb-_0x50886a;}}function toRelative(_0x47b39c,_0x7b5788){let _0x40eb9f=_0x47b39c;for(let _0x5c4914=0x1;_0x5c4914<_0x7b5788['length'];_0x5c4914++){let _0x479a2b=_0x7b5788[_0x5c4914-0x1]['to'],_0x2839e6=_0x7b5788[_0x5c4914]['from'];_0x479a2b<_0x47b39c&&(_0x40eb9f-=_0x2839e6-_0x479a2b);}return _0x40eb9f;}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'](_0x17f36c=>DefaultBlockParsers[_0x17f36c]),Object['keys'](DefaultBlockParsers)['map'](_0x525dc7=>DefaultLeafBlocks[_0x525dc7]),Object['keys'](DefaultBlockParsers),DefaultEndLeaf,DefaultSkipMarkup,Object['keys'](DefaultInline)['map'](_0x4a81de=>DefaultInline[_0x4a81de]),Object['keys'](DefaultInline),[]);function leftOverSpace(_0x2c7be9,_0x2016b1,_0xa00523){let _0x4b938c=[];for(let _0x55648d=_0x2c7be9['firstChild'],_0x37e7d9=_0x2016b1;;_0x55648d=_0x55648d['nextSibling']){let _0x38359d=_0x55648d?_0x55648d['from']:_0xa00523;if(_0x38359d>_0x37e7d9&&_0x4b938c['push']({'from':_0x37e7d9,'to':_0x38359d}),!_0x55648d)break;_0x37e7d9=_0x55648d['to'];}return _0x4b938c;}function parseCode(_0x2c2a92){let {codeParser:_0x373977,htmlParser:_0x124e36}=_0x2c2a92,_0x1fbedf=parseMixed((_0x2db164,_0x4f63ef)=>{let _0x4bc850=_0x2db164['type']['id'];if(!_0x373977||_0x4bc850!=Type['CodeBlock']&&_0x4bc850!=Type['FencedCode']){if(_0x124e36&&(_0x4bc850==Type['HTMLBlock']||_0x4bc850==Type['HTMLTag']||_0x4bc850==Type['CommentBlock']))return{'parser':_0x124e36,'overlay':leftOverSpace(_0x2db164['node'],_0x2db164['from'],_0x2db164['to'])};}else{let _0x2447c1='';if(_0x4bc850==Type['FencedCode']){let _0x31c763=_0x2db164['node']['getChild'](Type['CodeInfo']);_0x31c763&&(_0x2447c1=_0x4f63ef['read'](_0x31c763['from'],_0x31c763['to']));}let _0x1bc133=_0x373977(_0x2447c1);if(_0x1bc133)return{'parser':_0x1bc133,'overlay':_0x305931=>_0x305931['type']['id']==Type['CodeText']};}return null;});return{'wrap':_0x1fbedf};}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'(_0x4f19f8,_0x2192f0,_0x46f994){if(0x7e!=_0x2192f0||0x7e!=_0x4f19f8['char'](_0x46f994+0x1)||0x7e==_0x4f19f8['char'](_0x46f994+0x2))return-0x1;let _0x35296b=_0x4f19f8['slice'](_0x46f994-0x1,_0x46f994),_0x12ce7b=_0x4f19f8['slice'](_0x46f994+0x2,_0x46f994+0x3),_0x1e44f9=/\s|^$/['test'](_0x35296b),_0x988a02=/\s|^$/['test'](_0x12ce7b),_0x5d0998=Punctuation['test'](_0x35296b),_0x289ebf=Punctuation['test'](_0x12ce7b);return _0x4f19f8['addDelimiter'](StrikethroughDelim,_0x46f994,_0x46f994+0x2,!_0x988a02&&(!_0x289ebf||_0x1e44f9||_0x5d0998),!_0x1e44f9&&(!_0x5d0998||_0x988a02||_0x289ebf));},'after':'Emphasis'}]};function parseRow(_0x1fa528,_0x554075,_0x1a4dde=0x0,_0xadb586,_0xc227c=0x0){let _0x57fe3e=0x0,_0x968090=!0x0,_0x4df949=-0x1,_0xa00982=-0x1,_0x286eac=!0x1,_0x5823bc=()=>{_0xadb586['push'](_0x1fa528['elt']('TableCell',_0xc227c+_0x4df949,_0xc227c+_0xa00982,_0x1fa528['parser']['parseInline'](_0x554075['slice'](_0x4df949,_0xa00982),_0xc227c+_0x4df949)));};for(let _0x56b308=_0x1a4dde;_0x56b308<_0x554075['length'];_0x56b308++){let _0x32785f=_0x554075['charCodeAt'](_0x56b308);0x7c!=_0x32785f||_0x286eac?(_0x286eac||0x20!=_0x32785f&&0x9!=_0x32785f)&&(_0x4df949<0x0&&(_0x4df949=_0x56b308),_0xa00982=_0x56b308+0x1):((!_0x968090||_0x4df949>-0x1)&&_0x57fe3e++,_0x968090=!0x1,_0xadb586&&(_0x4df949>-0x1&&_0x5823bc(),_0xadb586['push'](_0x1fa528['elt']('TableDelimiter',_0x56b308+_0xc227c,_0x56b308+_0xc227c+0x1))),_0x4df949=_0xa00982=-0x1),_0x286eac=!_0x286eac&&0x5c==_0x32785f;}return _0x4df949>-0x1&&(_0x57fe3e++,_0xadb586&&_0x5823bc()),_0x57fe3e;}function hasPipe(_0xf69f6e,_0xb8cdf1){for(let _0x2b92c6=_0xb8cdf1;_0x2b92c6<_0xf69f6e['length'];_0x2b92c6++){let _0x5ee9f5=_0xf69f6e['charCodeAt'](_0x2b92c6);if(0x7c==_0x5ee9f5)return!0x0;0x5c==_0x5ee9f5&&_0x2b92c6++;}return!0x1;}const delimiterLine=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class TableParser{constructor(){this['rows']=null;}['nextLine'](_0x569278,_0x12eca3,_0x505a78){if(null==this['rows']){let _0x2021c4;if(this['rows']=!0x1,(0x2d==_0x12eca3['next']||0x3a==_0x12eca3['next']||0x7c==_0x12eca3['next'])&&delimiterLine['test'](_0x2021c4=_0x12eca3['text']['slice'](_0x12eca3['pos']))){let _0x20face=[];parseRow(_0x569278,_0x505a78['content'],0x0,_0x20face,_0x505a78['start'])==parseRow(_0x569278,_0x2021c4,_0x12eca3['pos'])&&(this['rows']=[_0x569278['elt']('TableHeader',_0x505a78['start'],_0x505a78['start']+_0x505a78['content']['length'],_0x20face),_0x569278['elt']('TableDelimiter',_0x569278['lineStart']+_0x12eca3['pos'],_0x569278['lineStart']+_0x12eca3['text']['length'])]);}}else{if(this['rows']){let _0x7f071c=[];parseRow(_0x569278,_0x12eca3['text'],_0x12eca3['pos'],_0x7f071c,_0x569278['lineStart']),this['rows']['push'](_0x569278['elt']('TableRow',_0x569278['lineStart']+_0x12eca3['pos'],_0x569278['lineStart']+_0x12eca3['text']['length'],_0x7f071c));}}return!0x1;}['finish'](_0xa71325,_0x10c1df){return!!this['rows']&&(_0xa71325['addLeafElement'](_0x10c1df,_0xa71325['elt']('Table',_0x10c1df['start'],_0x10c1df['start']+_0x10c1df['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':(_0x5b229b,_0xb0305b)=>hasPipe(_0xb0305b['content'],0x0)?new TableParser():null,'endLeaf'(_0x46f871,_0x46e74c,_0x395998){if(_0x395998['parsers']['some'](_0xc9651b=>_0xc9651b instanceof TableParser)||!hasPipe(_0x46e74c['text'],_0x46e74c['basePos']))return!0x1;let _0x2db915=_0x46f871['peekLine']();return delimiterLine['test'](_0x2db915)&&parseRow(_0x46f871,_0x46e74c['text'],_0x46e74c['basePos'])==parseRow(_0x46f871,_0x2db915,_0x46e74c['basePos']);},'before':'SetextHeading'}]};class TaskParser{['nextLine'](){return!0x1;}['finish'](_0x1ee7ec,_0x59f2ae){return _0x1ee7ec['addLeafElement'](_0x59f2ae,_0x1ee7ec['elt']('Task',_0x59f2ae['start'],_0x59f2ae['start']+_0x59f2ae['content']['length'],[_0x1ee7ec['elt']('TaskMarker',_0x59f2ae['start'],_0x59f2ae['start']+0x3),..._0x1ee7ec['parser']['parseInline'](_0x59f2ae['content']['slice'](0x3),_0x59f2ae['start']+0x3)])),!0x0;}}const TaskList={'defineNodes':[{'name':'Task','block':!0x0,'style':tags$1['list']},{'name':'TaskMarker','style':tags$1['atom']}],'parseBlock':[{'name':'TaskList','leaf':(_0x37f3ae,_0xf103a9)=>/^\[[ xX]\][ \t]/['test'](_0xf103a9['content'])&&'ListItem'==_0x37f3ae['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(_0x1bf765,_0x3cd528,_0x53f91d,_0x16969f){let _0x4b9b43=0x0;for(let _0x594017=_0x3cd528;_0x594017<_0x53f91d;_0x594017++)_0x1bf765[_0x594017]==_0x16969f&&_0x4b9b43++;return _0x4b9b43;}function autolinkURLEnd(_0x18b033,_0x5df863){urlRE['lastIndex']=_0x5df863;let _0x36dfa8=urlRE['exec'](_0x18b033);if(!_0x36dfa8||lastTwoDomainWords['exec'](_0x36dfa8[0x0])[0x0]['indexOf']('_')>-0x1)return-0x1;let _0x3ea61a=_0x5df863+_0x36dfa8[0x0]['length'];for(;;){let _0x54b351,_0x5985fd=_0x18b033[_0x3ea61a-0x1];if(/[?!.,:*_~]/['test'](_0x5985fd)||')'==_0x5985fd&&count(_0x18b033,_0x5df863,_0x3ea61a,')')>count(_0x18b033,_0x5df863,_0x3ea61a,'('))_0x3ea61a--;else{if(';'!=_0x5985fd||!(_0x54b351=/&(?:#\d+|#x[a-f\d]+|\w+);$/['exec'](_0x18b033['slice'](_0x5df863,_0x3ea61a))))break;_0x3ea61a=_0x5df863+_0x54b351['index'];}}return _0x3ea61a;}function autolinkEmailEnd(_0xe8af9,_0x274fbd){emailRE['lastIndex']=_0x274fbd;let _0x53a98c=emailRE['exec'](_0xe8af9);if(!_0x53a98c)return-0x1;let _0x30716e=_0x53a98c[0x0][_0x53a98c[0x0]['length']-0x1];return'_'==_0x30716e||'-'==_0x30716e?-0x1:_0x274fbd+_0x53a98c[0x0]['length']-('.'==_0x30716e?0x1:0x0);}const Autolink={'parseInline':[{'name':'Autolink','parse'(_0x13d2b8,_0x1bc2d7,_0x55dd15){let _0x5b9a39=_0x55dd15-_0x13d2b8['offset'];if(_0x5b9a39&&/\w/['test'](_0x13d2b8['text'][_0x5b9a39-0x1]))return-0x1;autolinkRE['lastIndex']=_0x5b9a39;let _0x1a023b=autolinkRE['exec'](_0x13d2b8['text']),_0x16a2e5=-0x1;if(!_0x1a023b)return-0x1;if(_0x1a023b[0x1]||_0x1a023b[0x2])(_0x16a2e5=autolinkURLEnd(_0x13d2b8['text'],_0x5b9a39+_0x1a023b[0x0]['length']),_0x16a2e5>-0x1&&_0x13d2b8['hasOpenLink'])&&(_0x16a2e5=_0x5b9a39+/([^\[\]]|\[[^\]]*\])*/['exec'](_0x13d2b8['text']['slice'](_0x5b9a39,_0x16a2e5))[0x0]['length']);else _0x1a023b[0x3]?_0x16a2e5=autolinkEmailEnd(_0x13d2b8['text'],_0x5b9a39):(_0x16a2e5=autolinkEmailEnd(_0x13d2b8['text'],_0x5b9a39+_0x1a023b[0x0]['length']),_0x16a2e5>-0x1&&'xmpp:'==_0x1a023b[0x0]&&(xmppResourceRE['lastIndex']=_0x16a2e5,_0x1a023b=xmppResourceRE['exec'](_0x13d2b8['text']),_0x1a023b&&(_0x16a2e5=_0x1a023b['index']+_0x1a023b[0x0]['length'])));return _0x16a2e5<0x0?-0x1:(_0x13d2b8['addElement'](_0x13d2b8['elt']('URL',_0x55dd15,_0x16a2e5+_0x13d2b8['offset'])),_0x16a2e5+_0x13d2b8['offset']);}}]},GFM=[Table,TaskList,Strikethrough,Autolink];function parseSubSuper(_0x320b9c,_0x2832bb,_0x593292){return(_0x441c29,_0x181528,_0x6d200d)=>{if(_0x181528!=_0x320b9c||_0x441c29['char'](_0x6d200d+0x1)==_0x320b9c)return-0x1;let _0x45a3d8=[_0x441c29['elt'](_0x593292,_0x6d200d,_0x6d200d+0x1)];for(let _0x16739b=_0x6d200d+0x1;_0x16739b<_0x441c29['end'];_0x16739b++){let _0x441d52=_0x441c29['char'](_0x16739b);if(_0x441d52==_0x320b9c)return _0x441c29['addElement'](_0x441c29['elt'](_0x2832bb,_0x6d200d,_0x16739b+0x1,_0x45a3d8['concat'](_0x441c29['elt'](_0x593292,_0x16739b,_0x16739b+0x1))));if(0x5c==_0x441d52&&_0x45a3d8['push'](_0x441c29['elt']('Escape',_0x16739b,0x2+_0x16739b++)),space(_0x441d52))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'(_0x16e493,_0x7d083e,_0x577fe7){let _0x43c7c5;return 0x3a==_0x7d083e&&(_0x43c7c5=/^[a-zA-Z_0-9]+:/['exec'](_0x16e493['slice'](_0x577fe7+0x1,_0x16e493['end'])))?_0x16e493['addElement'](_0x16e493['elt']('Emoji',_0x577fe7,_0x577fe7+0x1+_0x43c7c5[0x0]['length'])):-0x1;}}]},data=defineLanguageFacet({'commentTokens':{'block':{'open':'<!--','close':'-->'}}}),headingProp=new NodeProp(),commonmark=parser['configure']({'props':[foldNodeProp['add'](_0x2bb45b=>!_0x2bb45b['is']('Block')||_0x2bb45b['is']('Document')||null!=isHeading(_0x2bb45b)||isList(_0x2bb45b)?void 0x0:(_0x52df55,_0x25d503)=>({'from':_0x25d503['doc']['lineAt'](_0x52df55['from'])['to'],'to':_0x52df55['to']})),headingProp['add'](isHeading),indentNodeProp['add']({'Document':()=>null}),languageDataProp['add']({'Document':data})]});function isHeading(_0x1dad17){let _0x3fe594=/^(?:ATX|Setext)Heading(\d)$/['exec'](_0x1dad17['name']);return _0x3fe594?+_0x3fe594[0x1]:void 0x0;}function isList(_0x7637e4){return'OrderedList'==_0x7637e4['name']||'BulletList'==_0x7637e4['name'];}function findSectionEnd(_0x104dcb,_0x2636f2){let _0x438476=_0x104dcb;for(;;){let _0x1ac5d1,_0x3f7dfd=_0x438476['nextSibling'];if(!_0x3f7dfd||null!=(_0x1ac5d1=isHeading(_0x3f7dfd['type']))&&_0x1ac5d1<=_0x2636f2)break;_0x438476=_0x3f7dfd;}return _0x438476['to'];}const headerIndent=foldService['of']((_0x3b59bc,_0x557db1,_0x3476ea)=>{for(let _0x2b9064=syntaxTree(_0x3b59bc)['resolveInner'](_0x3476ea,-0x1);_0x2b9064&&!(_0x2b9064['from']<_0x557db1);_0x2b9064=_0x2b9064['parent']){let _0x28f959=_0x2b9064['type']['prop'](headingProp);if(null==_0x28f959)continue;let _0x1146d9=findSectionEnd(_0x2b9064,_0x28f959);if(_0x1146d9>_0x3476ea)return{'from':_0x3476ea,'to':_0x1146d9};}return null;});function mkLang(_0x2fc009){return new Language(data,_0x2fc009,[headerIndent],'markdown');}const commonmarkLanguage=mkLang(commonmark),extended=commonmark['configure']([GFM,Subscript,Superscript,Emoji,{'props':[foldNodeProp['add']({'Table':(_0x126a35,_0x31e183)=>({'from':_0x31e183['doc']['lineAt'](_0x126a35['from'])['to'],'to':_0x126a35['to']})})]}]),markdownLanguage=mkLang(extended);function getCodeParser(_0x354f2f,_0xda2c79){return _0x3103d5=>{if(_0x3103d5&&_0x354f2f){let _0x1b2d8e=null;if(_0x3103d5=/\S*/['exec'](_0x3103d5)[0x0],_0x1b2d8e='function'==typeof _0x354f2f?_0x354f2f(_0x3103d5):LanguageDescription['matchLanguageName'](_0x354f2f,_0x3103d5,!0x0),_0x1b2d8e instanceof LanguageDescription)return _0x1b2d8e['support']?_0x1b2d8e['support']['language']['parser']:ParseContext['getSkippingParser'](_0x1b2d8e['load']());if(_0x1b2d8e)return _0x1b2d8e['parser'];}return _0xda2c79?_0xda2c79['parser']:null;};}class Context{constructor(_0x5b9884,_0x5f53cb,_0x3a0e0b,_0x206964,_0x18da34,_0x324e5f,_0x39941e){this['node']=_0x5b9884,this['from']=_0x5f53cb,this['to']=_0x3a0e0b,this['spaceBefore']=_0x206964,this['spaceAfter']=_0x18da34,this['type']=_0x324e5f,this['item']=_0x39941e;}['blank'](_0x119b08,_0xe9502d=!0x0){let _0x5d1892=this['spaceBefore']+('Blockquote'==this['node']['name']?'>':'');if(null!=_0x119b08){for(;_0x5d1892['length']<_0x119b08;)_0x5d1892+='\x20';return _0x5d1892;}for(let _0x17ef8b=this['to']-this['from']-_0x5d1892['length']-this['spaceAfter']['length'];_0x17ef8b>0x0;_0x17ef8b--)_0x5d1892+='\x20';return _0x5d1892+(_0xe9502d?this['spaceAfter']:'');}['marker'](_0x5b9de8,_0x209973){let _0x4e391e='OrderedList'==this['node']['name']?String(+itemNumber(this['item'],_0x5b9de8)[0x2]+_0x209973):'';return this['spaceBefore']+_0x4e391e+this['type']+this['spaceAfter'];}}function getContext(_0x19e05c,_0x4a5bf9){let _0x1839d2=[],_0x552c66=[];for(let _0x15fb2e=_0x19e05c;_0x15fb2e;_0x15fb2e=_0x15fb2e['parent']){if('FencedCode'==_0x15fb2e['name'])return _0x552c66;'ListItem'!=_0x15fb2e['name']&&'Blockquote'!=_0x15fb2e['name']||_0x1839d2['push'](_0x15fb2e);}for(let _0x3976fa=_0x1839d2['length']-0x1;_0x3976fa>=0x0;_0x3976fa--){let _0x31c45d,_0x47ea9c=_0x1839d2[_0x3976fa],_0x4f22a5=_0x4a5bf9['lineAt'](_0x47ea9c['from']),_0x35f0d5=_0x47ea9c['from']-_0x4f22a5['from'];if('Blockquote'==_0x47ea9c['name']&&(_0x31c45d=/^ *>( ?)/['exec'](_0x4f22a5['text']['slice'](_0x35f0d5))))_0x552c66['push'](new Context(_0x47ea9c,_0x35f0d5,_0x35f0d5+_0x31c45d[0x0]['length'],'',_0x31c45d[0x1],'>',null));else{if('ListItem'==_0x47ea9c['name']&&'OrderedList'==_0x47ea9c['parent']['name']&&(_0x31c45d=/^( *)\d+([.)])( *)/['exec'](_0x4f22a5['text']['slice'](_0x35f0d5)))){let _0xa71fd7=_0x31c45d[0x3],_0x9b96fe=_0x31c45d[0x0]['length'];_0xa71fd7['length']>=0x4&&(_0xa71fd7=_0xa71fd7['slice'](0x0,_0xa71fd7['length']-0x4),_0x9b96fe-=0x4),_0x552c66['push'](new Context(_0x47ea9c['parent'],_0x35f0d5,_0x35f0d5+_0x9b96fe,_0x31c45d[0x1],_0xa71fd7,_0x31c45d[0x2],_0x47ea9c));}else{if('ListItem'==_0x47ea9c['name']&&'BulletList'==_0x47ea9c['parent']['name']&&(_0x31c45d=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/['exec'](_0x4f22a5['text']['slice'](_0x35f0d5)))){let _0x3970c1=_0x31c45d[0x4],_0x10666d=_0x31c45d[0x0]['length'];_0x3970c1['length']>0x4&&(_0x3970c1=_0x3970c1['slice'](0x0,_0x3970c1['length']-0x4),_0x10666d-=0x4);let _0x3aac8d=_0x31c45d[0x2];_0x31c45d[0x3]&&(_0x3aac8d+=_0x31c45d[0x3]['replace'](/[xX]/,'\x20')),_0x552c66['push'](new Context(_0x47ea9c['parent'],_0x35f0d5,_0x35f0d5+_0x10666d,_0x31c45d[0x1],_0x3970c1,_0x3aac8d,_0x47ea9c));}}}}return _0x552c66;}function itemNumber(_0x5f0c6d,_0x58cbed){return/^(\s*)(\d+)(?=[.)])/['exec'](_0x58cbed['sliceString'](_0x5f0c6d['from'],_0x5f0c6d['from']+0xa));}function renumberList(_0x896b40,_0x417cf3,_0x51b525,_0x584a52=0x0){for(let _0x496a55=-0x1,_0x1dff82=_0x896b40;;){if('ListItem'==_0x1dff82['name']){let _0x5dcff5=itemNumber(_0x1dff82,_0x417cf3),_0x69ee4b=+_0x5dcff5[0x2];if(_0x496a55>=0x0){if(_0x69ee4b!=_0x496a55+0x1)return;_0x51b525['push']({'from':_0x1dff82['from']+_0x5dcff5[0x1]['length'],'to':_0x1dff82['from']+_0x5dcff5[0x0]['length'],'insert':String(_0x496a55+0x2+_0x584a52)});}_0x496a55=_0x69ee4b;}let _0x49ef1d=_0x1dff82['nextSibling'];if(!_0x49ef1d)break;_0x1dff82=_0x49ef1d;}}function normalizeIndent(_0x3d0bbf,_0x34cbb8){let _0x217c7a=/^[ \t]*/['exec'](_0x3d0bbf)[0x0]['length'];if(!_0x217c7a||'\x09'!=_0x34cbb8['facet'](indentUnit))return _0x3d0bbf;let _0x43bbc2='';for(let _0xf17a41=countColumn(_0x3d0bbf,0x4,_0x217c7a);_0xf17a41>0x0;)_0xf17a41>=0x4?(_0x43bbc2+='\x09',_0xf17a41-=0x4):(_0x43bbc2+='\x20',_0xf17a41--);return _0x43bbc2+_0x3d0bbf['slice'](_0x217c7a);}const insertNewlineContinueMarkup=({state:_0x2dfc6d,dispatch:_0x5d10d3})=>{let _0x3f0e25=syntaxTree(_0x2dfc6d),{doc:_0x2da9a1}=_0x2dfc6d,_0x31ebb7=null,_0x1c25ec=_0x2dfc6d['changeByRange'](_0x23eb67=>{if(!_0x23eb67['empty']||!markdownLanguage['isActiveAt'](_0x2dfc6d,_0x23eb67['from'],0x0))return _0x31ebb7={'range':_0x23eb67};let _0x239e52=_0x23eb67['from'],_0x2e81e8=_0x2da9a1['lineAt'](_0x239e52),_0x10b8d2=getContext(_0x3f0e25['resolveInner'](_0x239e52,-0x1),_0x2da9a1);for(;_0x10b8d2['length']&&_0x10b8d2[_0x10b8d2['length']-0x1]['from']>_0x239e52-_0x2e81e8['from'];)_0x10b8d2['pop']();if(!_0x10b8d2['length'])return _0x31ebb7={'range':_0x23eb67};let _0x3d8093=_0x10b8d2[_0x10b8d2['length']-0x1];if(_0x3d8093['to']-_0x3d8093['spaceAfter']['length']>_0x239e52-_0x2e81e8['from'])return _0x31ebb7={'range':_0x23eb67};let _0x12c5fb=_0x239e52>=_0x3d8093['to']-_0x3d8093['spaceAfter']['length']&&!/\S/['test'](_0x2e81e8['text']['slice'](_0x3d8093['to']));if(_0x3d8093['item']&&_0x12c5fb){let _0x109383=_0x3d8093['node']['firstChild'],_0x4e8a6d=_0x3d8093['node']['getChild']('ListItem','ListItem');if(_0x109383['to']>=_0x239e52||_0x4e8a6d&&_0x4e8a6d['to']<_0x239e52||_0x2e81e8['from']>0x0&&!/[^\s>]/['test'](_0x2da9a1['lineAt'](_0x2e81e8['from']-0x1)['text'])){let _0x11785e,_0x3fc517=_0x10b8d2['length']>0x1?_0x10b8d2[_0x10b8d2['length']-0x2]:null,_0x5a2f20='';_0x3fc517&&_0x3fc517['item']?(_0x11785e=_0x2e81e8['from']+_0x3fc517['from'],_0x5a2f20=_0x3fc517['marker'](_0x2da9a1,0x1)):_0x11785e=_0x2e81e8['from']+(_0x3fc517?_0x3fc517['to']:0x0);let _0x13d6a0=[{'from':_0x11785e,'to':_0x239e52,'insert':_0x5a2f20}];return'OrderedList'==_0x3d8093['node']['name']&&renumberList(_0x3d8093['item'],_0x2da9a1,_0x13d6a0,-0x2),_0x3fc517&&'OrderedList'==_0x3fc517['node']['name']&&renumberList(_0x3fc517['item'],_0x2da9a1,_0x13d6a0),{'range':EditorSelection['cursor'](_0x11785e+_0x5a2f20['length']),'changes':_0x13d6a0};}{let _0x22425f=blankLine(_0x10b8d2,_0x2dfc6d,_0x2e81e8);return{'range':EditorSelection['cursor'](_0x239e52+_0x22425f['length']+0x1),'changes':{'from':_0x2e81e8['from'],'insert':_0x22425f+_0x2dfc6d['lineBreak']}};}}if('Blockquote'==_0x3d8093['node']['name']&&_0x12c5fb&&_0x2e81e8['from']){let _0x2b0b14=_0x2da9a1['lineAt'](_0x2e81e8['from']-0x1),_0x5b331f=/>\s*$/['exec'](_0x2b0b14['text']);if(_0x5b331f&&_0x5b331f['index']==_0x3d8093['from']){let _0x510f23=_0x2dfc6d['changes']([{'from':_0x2b0b14['from']+_0x5b331f['index'],'to':_0x2b0b14['to']},{'from':_0x2e81e8['from']+_0x3d8093['from'],'to':_0x2e81e8['to']}]);return{'range':_0x23eb67['map'](_0x510f23),'changes':_0x510f23};}}let _0x5d7f32=[];'OrderedList'==_0x3d8093['node']['name']&&renumberList(_0x3d8093['item'],_0x2da9a1,_0x5d7f32);let _0x16fe7f=_0x3d8093['item']&&_0x3d8093['item']['from']<_0x2e81e8['from'],_0x1dcc71='';if(!_0x16fe7f||/^[\s\d.)\-+*>]*/['exec'](_0x2e81e8['text'])[0x0]['length']>=_0x3d8093['to']){for(let _0x8bcf20=0x0,_0x36f310=_0x10b8d2['length']-0x1;_0x8bcf20<=_0x36f310;_0x8bcf20++)_0x1dcc71+=_0x8bcf20!=_0x36f310||_0x16fe7f?_0x10b8d2[_0x8bcf20]['blank'](_0x8bcf20<_0x36f310?countColumn(_0x2e81e8['text'],0x4,_0x10b8d2[_0x8bcf20+0x1]['from'])-_0x1dcc71['length']:null):_0x10b8d2[_0x8bcf20]['marker'](_0x2da9a1,0x1);}let _0x4133fe=_0x239e52;for(;_0x4133fe>_0x2e81e8['from']&&/\s/['test'](_0x2e81e8['text']['charAt'](_0x4133fe-_0x2e81e8['from']-0x1));)_0x4133fe--;return _0x1dcc71=normalizeIndent(_0x1dcc71,_0x2dfc6d),nonTightList(_0x3d8093['node'],_0x2dfc6d['doc'])&&(_0x1dcc71=blankLine(_0x10b8d2,_0x2dfc6d,_0x2e81e8)+_0x2dfc6d['lineBreak']+_0x1dcc71),_0x5d7f32['push']({'from':_0x4133fe,'to':_0x239e52,'insert':_0x2dfc6d['lineBreak']+_0x1dcc71}),{'range':EditorSelection['cursor'](_0x4133fe+_0x1dcc71['length']+0x1),'changes':_0x5d7f32};});return!_0x31ebb7&&(_0x5d10d3(_0x2dfc6d['update'](_0x1c25ec,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0);};function isMark(_0x256837){return'QuoteMark'==_0x256837['name']||'ListMark'==_0x256837['name'];}function nonTightList(_0xc10116,_0x19fc60){if('OrderedList'!=_0xc10116['name']&&'BulletList'!=_0xc10116['name'])return!0x1;let _0x5f047f=_0xc10116['firstChild'],_0x5fbd60=_0xc10116['getChild']('ListItem','ListItem');if(!_0x5fbd60)return!0x1;let _0x243c15=_0x19fc60['lineAt'](_0x5f047f['to']),_0x59e7ec=_0x19fc60['lineAt'](_0x5fbd60['from']),_0x29fb4f=/^[\s>]*$/['test'](_0x243c15['text']);return _0x243c15['number']+(_0x29fb4f?0x0:0x1)<_0x59e7ec['number'];}function blankLine(_0x4fb976,_0x2f032b,_0x3204d4){let _0x505204='';for(let _0x35db85=0x0,_0x14c691=_0x4fb976['length']-0x2;_0x35db85<=_0x14c691;_0x35db85++)_0x505204+=_0x4fb976[_0x35db85]['blank'](_0x35db85<_0x14c691?countColumn(_0x3204d4['text'],0x4,Math['min'](_0x3204d4['text']['length'],_0x4fb976[_0x35db85+0x1]['from']))-_0x505204['length']:null,_0x35db85<_0x14c691);return normalizeIndent(_0x505204,_0x2f032b);}function contextNodeForDelete(_0x21b1cc,_0x3c92ea){let _0x3f6deb=_0x21b1cc['resolveInner'](_0x3c92ea,-0x1),_0x52f954=_0x3c92ea;isMark(_0x3f6deb)&&(_0x52f954=_0x3f6deb['from'],_0x3f6deb=_0x3f6deb['parent']);for(let _0x193971;_0x193971=_0x3f6deb['childBefore'](_0x52f954);)if(isMark(_0x193971))_0x52f954=_0x193971['from'];else{if('OrderedList'!=_0x193971['name']&&'BulletList'!=_0x193971['name'])break;_0x3f6deb=_0x193971['lastChild'],_0x52f954=_0x3f6deb['to'];}return _0x3f6deb;}const deleteMarkupBackward=({state:_0x2c55cf,dispatch:_0xe5c062})=>{let _0x2a8234=syntaxTree(_0x2c55cf),_0x7a9ba=null,_0x27fa66=_0x2c55cf['changeByRange'](_0x5f59a5=>{let _0x14d431=_0x5f59a5['from'],{doc:_0x336cfc}=_0x2c55cf;if(_0x5f59a5['empty']&&markdownLanguage['isActiveAt'](_0x2c55cf,_0x5f59a5['from'])){let _0x51541=_0x336cfc['lineAt'](_0x14d431),_0x5d929e=getContext(contextNodeForDelete(_0x2a8234,_0x14d431),_0x336cfc);if(_0x5d929e['length']){let _0x5f2a59=_0x5d929e[_0x5d929e['length']-0x1],_0x1e7e41=_0x5f2a59['to']-_0x5f2a59['spaceAfter']['length']+(_0x5f2a59['spaceAfter']?0x1:0x0);if(_0x14d431-_0x51541['from']>_0x1e7e41&&!/\S/['test'](_0x51541['text']['slice'](_0x1e7e41,_0x14d431-_0x51541['from'])))return{'range':EditorSelection['cursor'](_0x51541['from']+_0x1e7e41),'changes':{'from':_0x51541['from']+_0x1e7e41,'to':_0x14d431}};if(_0x14d431-_0x51541['from']==_0x1e7e41&&(!_0x5f2a59['item']||_0x51541['from']<=_0x5f2a59['item']['from']||!/\S/['test'](_0x51541['text']['slice'](0x0,_0x5f2a59['to'])))){let _0x3ae4eb=_0x51541['from']+_0x5f2a59['from'];if(_0x5f2a59['item']&&_0x5f2a59['node']['from']<_0x5f2a59['item']['from']&&/\S/['test'](_0x51541['text']['slice'](_0x5f2a59['from'],_0x5f2a59['to']))){let _0x189103=_0x5f2a59['blank'](countColumn(_0x51541['text'],0x4,_0x5f2a59['to'])-countColumn(_0x51541['text'],0x4,_0x5f2a59['from']));return _0x3ae4eb==_0x51541['from']&&(_0x189103=normalizeIndent(_0x189103,_0x2c55cf)),{'range':EditorSelection['cursor'](_0x3ae4eb+_0x189103['length']),'changes':{'from':_0x3ae4eb,'to':_0x51541['from']+_0x5f2a59['to'],'insert':_0x189103}};}if(_0x3ae4eb<_0x14d431)return{'range':EditorSelection['cursor'](_0x3ae4eb),'changes':{'from':_0x3ae4eb,'to':_0x14d431}};}}}return _0x7a9ba={'range':_0x5f59a5};});return!_0x7a9ba&&(_0xe5c062(_0x2c55cf['update'](_0x27fa66,{'scrollIntoView':!0x0,'userEvent':'delete'})),!0x0);},markdownKeymap=[{'key':'Enter','run':insertNewlineContinueMarkup},{'key':'Backspace','run':deleteMarkupBackward}],htmlNoMatch=html({'matchClosingTags':!0x1});function markdown(_0x28cb71={}){let {codeLanguages:_0x47f083,defaultCodeLanguage:_0x2453f8,addKeymap:_0x3af68c=!0x0,base:{parser:_0x16a129}=commonmarkLanguage,completeHTMLTags:_0x5b45fa=!0x0,htmlTagLanguage:_0x4aebcb=htmlNoMatch}=_0x28cb71;if(!(_0x16a129 instanceof MarkdownParser))throw new RangeError('Base\x20parser\x20provided\x20to\x20`markdown`\x20should\x20be\x20a\x20Markdown\x20parser');let _0x9afe5c,_0x2f3d79=_0x28cb71['extensions']?[_0x28cb71['extensions']]:[],_0x86e6e=[_0x4aebcb['support']];_0x2453f8 instanceof LanguageSupport?(_0x86e6e['push'](_0x2453f8['support']),_0x9afe5c=_0x2453f8['language']):_0x2453f8&&(_0x9afe5c=_0x2453f8);let _0x3248f7=_0x47f083||_0x9afe5c?getCodeParser(_0x47f083,_0x9afe5c):void 0x0;_0x2f3d79['push'](parseCode({'codeParser':_0x3248f7,'htmlParser':_0x4aebcb['language']['parser']})),_0x3af68c&&_0x86e6e['push'](Prec['high'](keymap['of'](markdownKeymap)));let _0x3a93e3=mkLang(_0x16a129['configure'](_0x2f3d79));return _0x5b45fa&&_0x86e6e['push'](_0x3a93e3['data']['of']({'autocomplete':htmlTagCompletion})),new LanguageSupport(_0x3a93e3,_0x86e6e);}function htmlTagCompletion(_0x596751){let {state:_0x8c49ea,pos:_0x341209}=_0x596751,_0xfb42e=/<[:\-\.\w\u00b7-\uffff]*$/['exec'](_0x8c49ea['sliceDoc'](_0x341209-0x19,_0x341209));if(!_0xfb42e)return null;let _0x5081e2=syntaxTree(_0x8c49ea)['resolveInner'](_0x341209,-0x1);for(;_0x5081e2&&!_0x5081e2['type']['isTop'];){if('CodeBlock'==_0x5081e2['name']||'FencedCode'==_0x5081e2['name']||'ProcessingInstructionBlock'==_0x5081e2['name']||'CommentBlock'==_0x5081e2['name']||'Link'==_0x5081e2['name']||'Image'==_0x5081e2['name'])return null;_0x5081e2=_0x5081e2['parent'];}return{'from':_0x341209-_0xfb42e[0x0]['length'],'to':_0x341209,'options':htmlTagCompletions(),'validFor':/^<[:\-\.\w\u00b7-\uffff]*$/};}let _tagCompletions=null;function htmlTagCompletions(){if(_tagCompletions)return _tagCompletions;let _0x1fb516=htmlCompletionSource(new CompletionContext(EditorState['create']({'extensions':htmlNoMatch}),0x0,!0x0));return _tagCompletions=_0x1fb516?_0x1fb516['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(_0x46da2d){const _0x459b26=getDefaultExtensions(),_0x1921ce=new Compartment();_0x459b26['push'](_0x1921ce['of'](EditorView['editable']['of'](!0x0))),'html'===_0x46da2d['syntaxLanguage']?_0x459b26['push'](html()):_0x459b26['push'](markdown());const _0x3e0ae9=normalizeTheme(_0x46da2d['theme']);_0x3e0ae9&&_0x459b26['push'](_0x3e0ae9),_0x459b26['push'](...getKeybindings());const _0x2c0b92=new EditorView({'extensions':_0x459b26,'parent':_0x46da2d['parent']});return toggleTabFocusMode(_0x2c0b92),{'focus':()=>{_0x2c0b92['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x2c0b92['focus']();},'getData':()=>_0x2c0b92['state']['doc']['toString'](),'setData':_0x1b2b12=>{_0x2c0b92['dispatch']({'changes':{'from':0x0,'to':_0x2c0b92['state']['doc']['length'],'insert':_0x1b2b12},'annotations':Transaction['addToHistory']['of'](!0x1)});},'setReadOnly':_0x321532=>{_0x2c0b92['dispatch']({'effects':[_0x1921ce['reconfigure'](EditorView['editable']['of'](!_0x321532))]});},'destroy':()=>{_0x2c0b92['destroy']();},'instance':_0x2c0b92};}function normalizeTheme(_0x247986){return _0x247986&&'default'!==_0x247986?'dark'===_0x247986?oneDark:_0x247986: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(_0x304be8,_0x2efb09){super(_0x304be8),this['_options']=_0x2efb09,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',(_0x17abb9,_0xa26981,_0x255751)=>{this['setReadOnly'](_0x255751);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0xd4ead6){this['_codeEditorApi']['setData'](_0xd4ead6);}['setReadOnly'](_0x2300b0){this['_codeEditorApi']['setReadOnly'](_0x2300b0);}}const COMMAND_FORCE_DISABLE_ID='SourceEditingEnhancedMode';class EditSourceCommand extends Command{constructor(_0x460f69){super(_0x460f69),this['affectsData']=!0x1,this['editor']['plugins']['get'](PendingActions)['on']('change:hasAny',(_0x33ec7b,_0x2fab08,_0x4c052c)=>{_0x4c052c?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x4ef7aa=this['editor'];for(const _0x3b47cb of _0x4ef7aa['commands']['names']())['replaceSource','editSource']['includes'](_0x3b47cb)||_0x4ef7aa['commands']['get'](_0x3b47cb)['forceDisabled'](COMMAND_FORCE_DISABLE_ID);}['_enableCommands'](){const _0x428817=this['editor'];for(const _0x2213ef of _0x428817['commands']['commands']())_0x2213ef['clearForceDisabled'](COMMAND_FORCE_DISABLE_ID);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x155754=this['editor'],_0x1dd2fc=_0x155754['locale'],_0x20fa39=_0x155754['plugins']['get']('Dialog'),_0x1ba421=getActiveRootName(_0x155754),_0x2b9289=formatSource(_0x155754['data']['get']({'rootName':_0x1ba421})),_0xf459b6=new CodeEditorView(_0x1dd2fc,{'syntaxLanguage':_0x155754['plugins']['has']('Markdown')?'markdown':'html','theme':_0x155754['config']['get']('sourceEditingEnhanced.theme')});let _0x393463=!0x0;const _0x21e7fb=_0x138b3c=>{if(!_0x393463)return;return unformatSource(_0xf459b6['getData']())!==unformatSource(_0x2b9289)?window['confirm'](getTranslation$3(_0x1dd2fc,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x138b3c['stop']():void 0x0;};_0x20fa39['show']({'id':'sourceEditingEnhanced','title':getTranslation$3(_0x1dd2fc,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0xf459b6,'actionButtons':[{'label':getTranslation$3(_0x1dd2fc,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x20fa39['hide']();}},{'label':getTranslation$3(_0x1dd2fc,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x52e7e6=unformatSource(_0xf459b6['getData']())!==unformatSource(_0x2b9289);(_0x52e7e6&&_0x155754['execute']('replaceSource',_0xf459b6['getData']()),_0x393463=!0x1,_0x20fa39['hide'](),_0x52e7e6&&'editables'in _0x155754['ui']['view'])&&_0x155754['ui']['view']['editables'][_0x1ba421]['element']['focus']();},'onCreate':_0x34740e=>{_0x34740e['set']('isEnabled',!_0x155754['isReadOnly']),_0x34740e['bind']('isEnabled')['to'](_0x155754,'isReadOnly',this,'isEnabled',(_0x2711b6,_0x37ae96)=>!_0x2711b6&&_0x37ae96);}}],'onHide':()=>{this['_enableCommands'](),_0x20fa39['off']('hide',_0x21e7fb),_0xf459b6['destroy']();},'onShow':()=>{_0xf459b6['bind']('isReadOnly')['to'](_0x155754,'isReadOnly',this,'isEnabled',(_0x470ca2,_0x39bce2)=>_0x470ca2||!_0x39bce2),_0xf459b6['setData'](_0x2b9289),_0xf459b6['focus'](),_0x20fa39['on']('hide',_0x21e7fb,{'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 _0x2d4fe3=this['editor'],_0x297a96=_0x2d4fe3['locale'],_0x14657e=new EditSourceCommand(_0x2d4fe3);_0x2d4fe3['commands']['add']('editSource',_0x14657e),_0x2d4fe3['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x37c496=this['_createButton'](ButtonView,_0x14657e);return _0x37c496['set']({'label':getTranslation$3(_0x297a96,'Source'),'icon':IconSource,'tooltip':getTranslation$3(_0x297a96,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x37c496;}),_0x2d4fe3['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x3c99cf=this['_createButton'](MenuBarMenuListItemButtonView,_0x14657e,!0x0);return _0x3c99cf['set']({'label':getTranslation$3(_0x297a96,'Edit\x20source\x20modal\x20label'),'icon':IconSource,'role':'menuitemcheckbox'}),_0x3c99cf;}),this['_registerKeybindings']();}['afterInit'](){checkLicense$3(this);}['_createButton'](_0x4a5e41,_0x2248aa,_0x34a3bc=!0x1){const _0x324972=new _0x4a5e41(this['editor']['locale']);return _0x324972['set']({'withText':_0x34a3bc,'isToggleable':!0x1}),_0x324972['bind']('isEnabled')['to'](_0x2248aa,'isEnabled'),this['listenTo'](_0x324972,'execute',()=>_0x2248aa['execute']()),_0x324972;}['_registerKeybindings'](){const _0x1e65de=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':getTranslation$3(_0x1e65de,'Source\x20Editing\x20Enhanced')});const _0x1c7c75=env['isMac']||env['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':getTranslation$3(_0x1e65de,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':getTranslation$3(_0x1e65de,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':getTranslation$3(_0x1e65de,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':getTranslation$3(_0x1e65de,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':getTranslation$3(_0x1e65de,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':getTranslation$3(_0x1e65de,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':getTranslation$3(_0x1e65de,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x1c7c75?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':getTranslation$3(_0x1e65de,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':getTranslation$3(_0x1e65de,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':getTranslation$3(_0x1e65de,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':getTranslation$3(_0x1e65de,'Select\x20line'),'keystroke':_0x1c7c75?'Ctrl!+L':'Alt+L'},{'label':getTranslation$3(_0x1e65de,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x1c7c75?'Alt+Shift+M':'Ctrl+M'},{'label':getTranslation$3(_0x1e65de,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':getTranslation$3(_0x1e65de,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':getTranslation$3(_0x1e65de,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':getTranslation$3(_0x1e65de,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':getTranslation$3(_0x1e65de,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x1c7c75?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}async function checkLicense$3(_0x4ac0a6){const _0x329a49=_0x4b55d3([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]),_0x278d2=window[_0x4b55d3([0x44,0x61,0x74,0x65])][_0x4b55d3([0x6e,0x6f,0x77])](),_0x2891f8=_0x4ac0a6[_0x4b55d3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2876e1=new window[(_0x4b55d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f8c6d=>{_0x2891f8[_0x4b55d3([0x6f,0x6e,0x63,0x65])](_0x4b55d3([0x72,0x65,0x61,0x64,0x79]),_0x3f8c6d);}),_0x48723b={[_0x4b55d3([0x6b,0x74,0x79])]:_0x4b55d3([0x45,0x43]),[_0x4b55d3([0x75,0x73,0x65])]:_0x4b55d3([0x73,0x69,0x67]),[_0x4b55d3([0x63,0x72,0x76])]:_0x4b55d3([0x50,0x2d,0x32,0x35,0x36]),[_0x4b55d3([0x78])]:_0x4b55d3([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]),[_0x4b55d3([0x79])]:_0x4b55d3([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]),[_0x4b55d3([0x61,0x6c,0x67])]:_0x4b55d3([0x45,0x53,0x32,0x35,0x36])},_0x3fd512=_0x2891f8[_0x4b55d3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b55d3([0x67,0x65,0x74])](_0x4b55d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x4b5deb=await(async function(){let _0x104830,_0x2d371a=null,_0x1c317f=null;try{if(_0x3fd512==_0x4b55d3([0x47,0x50,0x4c]))return _0x4b55d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x104830=(function(){const _0x262d12=_0x3fd512[_0x4b55d3([0x73,0x70,0x6c,0x69,0x74])](_0x4b55d3([0x2e]));if(0x3!=_0x262d12[_0x4b55d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x3ffc3a=_0x262d12[0x1];return _0x1ede4d(_0x3ffc3a);function _0x1ede4d(_0x4d4cd8){const _0x1e845e=_0x347f43(_0x4d4cd8);return _0x1e845e&&_0x41bc9e()?_0x1e845e:null;function _0x41bc9e(){const _0x20fcc0=_0x1e845e[_0x4b55d3([0x6a,0x74,0x69])],_0x3154c6=window[_0x4b55d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20fcc0[_0x4b55d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20fcc0[_0x4b55d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3ebfed={..._0x1e845e,[_0x4b55d3([0x6a,0x74,0x69])]:_0x20fcc0[_0x4b55d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x20fcc0[_0x4b55d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3ebfed[_0x4b55d3([0x76,0x63])],_0x2399eb(_0x3ebfed)==_0x3154c6;}}}()),!_0x104830)return _0x4b55d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x104830[_0x4b55d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1c317f=function(_0x5ad1f5,_0x3750dd){return new window[(_0x4b55d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x241e59=>{if(_0x3bfeab())return _0x241e59(_0x4b55d3([0x56,0x61,0x6c,0x69,0x64]));_0x56354e(),_0x2891f8[_0x4b55d3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b55d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1ceeb2=!0x1;const _0x40d029=uid();function _0x55f9bf(_0x212969){return!!_0x212969&&(typeof _0x212969===_0x4b55d3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x212969===_0x4b55d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x212969[_0x4b55d3([0x74,0x68,0x65,0x6e])]===_0x4b55d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x212969[_0x4b55d3([0x63,0x61,0x74,0x63,0x68])]===_0x4b55d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x32c17f(_0x3425c6){_0x32c7f1(_0x3425c6)[_0x4b55d3([0x74,0x68,0x65,0x6e])](_0x4ef067=>{if(!_0x4ef067||_0x4ef067[_0x4b55d3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b55d3([0x6f,0x6b]))return _0x4b55d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x11e6d3(_0x2399eb(_0x40d029+_0x3750dd))!=_0x4ef067[_0x4b55d3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b55d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b55d3([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b55d3([0x74,0x68,0x65,0x6e])](_0x32af7f=>(_0x3bf511(),_0x32af7f),()=>{const _0x313dab=_0x524419();return null==_0x313dab?(_0x3bf511(),_0x4b55d3([0x56,0x61,0x6c,0x69,0x64])):_0x4b55d3(_0x278d2-_0x313dab>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b55d3([0x74,0x68,0x65,0x6e])](_0x241e59)[_0x4b55d3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x241e59(_0x4b55d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b39bd=0x36ee80;function _0x3bf511(){const _0x137269=_0x4b55d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x11e6d3(_0x2399eb(_0x5ad1f5)),_0x570819=_0x305d25(_0x11e6d3(window[_0x4b55d3([0x4d,0x61,0x74,0x68])][_0x4b55d3([0x63,0x65,0x69,0x6c])](_0x278d2/_0x2b39bd)));window[_0x4b55d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b55d3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x137269,_0x570819);}function _0x524419(){const _0xd05873=_0x4b55d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x11e6d3(_0x2399eb(_0x5ad1f5)),_0xb623b2=window[_0x4b55d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b55d3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd05873);return _0xb623b2?window[_0x4b55d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x305d25(_0xb623b2),0x10)*_0x2b39bd:null;}function _0x32c7f1(_0x2aacfe){return new window[(_0x4b55d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdfcc4c,_0x5eb916)=>{_0x2aacfe[_0x4b55d3([0x74,0x68,0x65,0x6e])](_0xdfcc4c,_0x5eb916),window[_0x4b55d3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5eb916,0x1d4c0);});}}_0x2891f8[_0x4b55d3([0x6f,0x6e])](_0x4b55d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f96b3,_0x53f36c)=>{if(_0x53f36c[0x0]!=_0x5ad1f5)return _0x241e59(_0x4b55d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x53f36c[0x1]={..._0x53f36c[0x1],[_0x4b55d3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40d029};},{[_0x4b55d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b55d3([0x68,0x69,0x67,0x68])}),_0x2891f8[_0x4b55d3([0x6f,0x6e])](_0x4b55d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x225e58=>{_0x55f9bf(_0x225e58[_0x4b55d3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1ceeb2=!0x0,_0x32c17f(_0x225e58[_0x4b55d3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b55d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b55d3([0x6c,0x6f,0x77])}),_0x2876e1[_0x4b55d3([0x74,0x68,0x65,0x6e])](()=>{_0x1ceeb2||_0x241e59(_0x4b55d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3bfeab(){return _0x2891f8[_0x4b55d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b55d3([0x76,0x69,0x65,0x77])][_0x4b55d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b55d3([0x61,0x75,0x74,0x6f]);}function _0x56354e(){_0x2891f8[_0x4b55d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b55d3([0x76,0x69,0x65,0x77])][_0x4b55d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b55d3([0x61,0x75,0x74,0x6f]);}}(_0x104830[_0x4b55d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x104830[_0x4b55d3([0x6a,0x74,0x69])]));const _0x3c7afa=await(async function(){let _0x10cb36=!0x0;try{const _0x15e040=_0x3fd512[_0x4b55d3([0x73,0x70,0x6c,0x69,0x74])](_0x4b55d3([0x2e])),[_0x45f0b2,_0x15b09f,_0x4fb7f5]=_0x15e040;return _0x5e9d57(_0x45f0b2),await _0x4ce173(_0x45f0b2,_0x15b09f,_0x4fb7f5),_0x10cb36;}catch{return!0x1;}function _0x5e9d57(_0x539806){const _0x4415be=_0x347f43(_0x539806);_0x4415be&&_0x4415be[_0x4b55d3([0x61,0x6c,0x67])]==_0x4b55d3([0x45,0x53,0x32,0x35,0x36])||(_0x10cb36=!0x1);}async function _0x4ce173(_0x3fc085,_0x2cbabe,_0x5477c3){const _0x3a8207=window[_0x4b55d3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b55d3([0x66,0x72,0x6f,0x6d])](_0x1ac8a2(_0x5477c3),_0x23eb34=>_0x23eb34[_0x4b55d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1de8f0=new window[(_0x4b55d3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b55d3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3fc085+_0x4b55d3([0x2e])+_0x2cbabe),_0x2e20f3=window[_0x4b55d3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b55d3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e20f3)return;const _0x18f1b8=await _0x2e20f3[_0x4b55d3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b55d3([0x6a,0x77,0x6b]),_0x48723b,{[_0x4b55d3([0x6e,0x61,0x6d,0x65])]:_0x4b55d3([0x45,0x43,0x44,0x53,0x41]),[_0x4b55d3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b55d3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b55d3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e20f3[_0x4b55d3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b55d3([0x6e,0x61,0x6d,0x65])]:_0x4b55d3([0x45,0x43,0x44,0x53,0x41]),[_0x4b55d3([0x68,0x61,0x73,0x68])]:{[_0x4b55d3([0x6e,0x61,0x6d,0x65])]:_0x4b55d3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x18f1b8,_0x3a8207,_0x1de8f0)||(_0x10cb36=!0x1);}}());return _0x3c7afa?(function(){const _0x3f6de9=_0x104830[_0x4b55d3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3f6de9)return!0x1;if(_0x3f6de9[_0x4b55d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b55d3([0x2a])))return!0x0;if(_0x3f6de9[_0x4b55d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b55d3([0x53,0x45,0x45])))return!0x0;return!0x1;}())?(function(){const _0x19c601=[_0x4b55d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b55d3([0x74,0x72,0x69,0x61,0x6c])][_0x4b55d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x104830[_0x4b55d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x278d2/0x3e8:0x69e96100;return _0x104830[_0x4b55d3([0x65,0x78,0x70])]<_0x19c601;}())?_0x4b55d3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x228907=_0x104830[_0x4b55d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x228907||0x0==_0x228907[_0x4b55d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x313cc1}=new URL(window[_0x4b55d3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x228907[_0x4b55d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x313cc1))return!0x0;const _0x122526=_0x313cc1[_0x4b55d3([0x73,0x70,0x6c,0x69,0x74])](_0x4b55d3([0x2e]));return _0x228907[_0x4b55d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3418fc=>_0x3418fc[_0x4b55d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b55d3([0x2a])))[_0x4b55d3([0x6d,0x61,0x70])](_0x3f3b87=>_0x3f3b87[_0x4b55d3([0x73,0x70,0x6c,0x69,0x74])](_0x4b55d3([0x2e])))[_0x4b55d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x477fa1=>_0x477fa1[_0x4b55d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x122526[_0x4b55d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b55d3([0x6d,0x61,0x70])](_0x250e3c=>Array(_0x122526[_0x4b55d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x250e3c[_0x4b55d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b55d3([0x66,0x69,0x6c,0x6c])](_0x250e3c[0x0]===_0x4b55d3([0x2a])?_0x4b55d3([0x2a]):'')[_0x4b55d3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x250e3c))[_0x4b55d3([0x73,0x6f,0x6d,0x65])](_0x20bdbb=>_0x122526[_0x4b55d3([0x65,0x76,0x65,0x72,0x79])]((_0x4cd7d3,_0x175f89)=>_0x20bdbb[_0x175f89]===_0x4cd7d3||_0x20bdbb[_0x175f89]===_0x4b55d3([0x2a])));}())?(_0x104830[_0x4b55d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b55d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2d371a=function(_0x540e50){const _0x1de1ba=new window[(_0x4b55d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a1f05=>setTimeout(_0x2a1f05,0x93ecc)),_0x487394=_0x2876e1[_0x4b55d3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b55d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45e121=>{let _0x1b52a3=0x0;_0x2891f8[_0x4b55d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b55d3([0x6f,0x6e])](_0x4b55d3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a7010,_0x144c03)=>{_0x144c03[0x0][_0x4b55d3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1b52a3++,0x5e8==_0x1b52a3&&(_0x45e121(),_0x1a7010[_0x4b55d3([0x6f,0x66,0x66])]());});})),_0xc63ec9=[_0x1de1ba,_0x487394];return window[_0x4b55d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b55d3([0x72,0x61,0x63,0x65])](_0xc63ec9)[_0x4b55d3([0x74,0x68,0x65,0x6e])](()=>_0x540e50);}(_0x4b55d3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x2d371a&&_0x1c317f)return new window[(_0x4b55d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x93b0ed,_0x2cb54a)=>{_0x2d371a[_0x4b55d3([0x74,0x68,0x65,0x6e])](_0x93b0ed,_0x2cb54a),_0x1c317f[_0x4b55d3([0x74,0x68,0x65,0x6e])](_0xe80b5=>{_0xe80b5!=_0x4b55d3([0x56,0x61,0x6c,0x69,0x64])&&_0x93b0ed(_0xe80b5);},_0x2cb54a);});return _0x2d371a||_0x1c317f||_0x4b55d3([0x56,0x61,0x6c,0x69,0x64]);}())):_0x4b55d3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b55d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b55d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4b55d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x347f43(_0x36dbe4){return _0x36dbe4[_0x4b55d3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b55d3([0x65,0x79]))?JSON[_0x4b55d3([0x70,0x61,0x72,0x73,0x65])](_0x1ac8a2(_0x36dbe4)):null;}function _0x1ac8a2(_0x2a15af){return window[_0x4b55d3([0x61,0x74,0x6f,0x62])](_0x2a15af[_0x4b55d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b55d3([0x2b]))[_0x4b55d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b55d3([0x2f])));}function _0x2399eb(_0x3f8906){let _0x1eaf43=0x1505;function _0xbfa8fa(_0x22d897){for(let _0x59d2bd=0x0;_0x59d2bd<_0x22d897[_0x4b55d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59d2bd++){const _0x43534a=_0x22d897[_0x4b55d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x59d2bd);_0x1eaf43=(_0x1eaf43<<0x5)+_0x1eaf43+_0x43534a,_0x1eaf43&=_0x1eaf43;}}return function _0x129e79(_0x3addd4){Array[_0x4b55d3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3addd4)?_0x3addd4[_0x4b55d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x129e79):_0x3addd4&&typeof _0x3addd4==_0x4b55d3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b55d3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3addd4)[_0x4b55d3([0x73,0x6f,0x72,0x74])]()[_0x4b55d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x77a7e4,_0xa0cf58])=>{_0xbfa8fa(_0x77a7e4),_0x129e79(_0xa0cf58);}):_0xbfa8fa(window[_0x4b55d3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3addd4));}(_0x3f8906),_0x1eaf43>>>0x0;}function _0x11e6d3(_0x1ee76f){return _0x1ee76f[_0x4b55d3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b55d3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b55d3([0x30]));}function _0x305d25(_0x5b334e){return _0x5b334e[_0x4b55d3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b55d3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b55d3([0x6a,0x6f,0x69,0x6e])]('');}function _0x25d90b(){}function _0x4b55d3(_0x4f4f6a){return _0x4f4f6a['map'](_0x128943=>String['fromCharCode'](_0x128943))['join']('');}!function(_0x3c3366){const _0x2c7ed4=(function(){const _0x39b640=window[_0x4b55d3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b55d3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b55d3([0x6e,0x6f,0x77])]())[_0x4b55d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b55d3([0x2e]),'');let _0x5302df=_0x4b55d3([0x4e]);for(let _0x565fe1=0x0;_0x565fe1<_0x39b640[_0x4b55d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x565fe1+=0x2){let _0x1ddddf=window[_0x4b55d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39b640[_0x4b55d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x565fe1,_0x565fe1+0x2));_0x1ddddf>=_0x329a49[_0x4b55d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1ddddf-=_0x329a49[_0x4b55d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5302df+=_0x329a49[_0x1ddddf];}return _0x5302df;}());_0x2891f8[_0x2c7ed4]=_0x4b55d3([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])+_0x3c3366,_0x3c3366!=_0x4b55d3([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x2876e1,_0x2891f8[_0x4b55d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b55d3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25d90b,_0x2891f8[_0x4b55d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b55d3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25d90b,_0x2891f8[_0x4b55d3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b55d3([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x4b5deb);}class ReplaceSourceCommand extends Command{constructor(_0x178de0){super(_0x178de0),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x54be51,_0x130a30){const _0x442a47=this['editor'],_0x62144d=_0x130a30?.['rootName']??getActiveRootName(_0x442a47);_0x442a47['data']['set']({[_0x62144d]:_0x54be51},{'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(_0x53ae6f){super(_0x53ae6f),_0x53ae6f['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 _0x3a6f06=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x258584;for(const _0xc6d5d in _0x3a6f06){const _0x38176b=_0xc6d5d,_0xc76d81=_0x3a6f06[_0x38176b];if('sourceEditingEnhancedLicenseKeyValid'==_0xc76d81||'sourceEditingEnhancedLicenseKeyInvalid'==_0xc76d81||'sourceEditingEnhancedLicenseKeyExpired'==_0xc76d81||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0xc76d81||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0xc76d81||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0xc76d81||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0xc76d81){delete _0x3a6f06[_0x38176b],_0x258584=_0xc76d81,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x258584&&_0x3a6f06['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x258584&&_0x3a6f06['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x258584&&_0x3a6f06['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x258584&&_0x3a6f06['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x258584&&_0x3a6f06['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x258584&&_0x3a6f06['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x2f0ca1=this['editor'],_0x17f04d=_0x2f0ca1['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x17f04d&&_0x2f0ca1['plugins']['has']('RealTimeCollaborativeEditing'))throw new CKEditorError('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x17f04d&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x470b48=>_0x2f0ca1['plugins']['has'](_0x470b48))&&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.'),_0x2f0ca1['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 Command{['execute'](_0x28dcb6){const {model:_0x5bef03}=this['editor'];let _0x466a7b;switch(typeof _0x28dcb6){case'string':_0x466a7b=_0x28dcb6;break;case'function':_0x466a7b=_0x28dcb6();}'string'==typeof _0x466a7b&&_0x5bef03['change'](()=>{const _0x5135a8=this['editor']['data']['htmlProcessor']['toView'](_0x466a7b),_0x5a6bb3=this['editor']['data']['toModel'](_0x5135a8);_0x5bef03['insertContent'](_0x5a6bb3);});}}class TemplateEditing extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x535bb8}=this;_0x535bb8['commands']['add']('insertTemplate',new TemplateCommand(_0x535bb8)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2ec4b8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x44cef1;for(const _0x5c6bdf in _0x2ec4b8){const _0x3d74c7=_0x5c6bdf,_0x4010b8=_0x2ec4b8[_0x3d74c7];if('templateLicenseKeyValid'==_0x4010b8||'templateLicenseKeyInvalid'==_0x4010b8||'templateLicenseKeyExpired'==_0x4010b8||'templateLicenseKeyDomainLimit'==_0x4010b8||'templateLicenseKeyNotAllowed'==_0x4010b8||'templateLicenseKeyEvaluationLimit'==_0x4010b8||'templateLicenseKeyUsageLimit'==_0x4010b8){delete _0x2ec4b8[_0x3d74c7],_0x44cef1=_0x4010b8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x44cef1&&_0x2ec4b8['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x44cef1&&_0x2ec4b8['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x44cef1&&_0x2ec4b8['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x44cef1&&_0x2ec4b8['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x44cef1&&_0x2ec4b8['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x44cef1&&_0x2ec4b8['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TemplateListView extends ListView{['filter'](_0x30b4d5){if(!_0x30b4d5)return this['_resetFiltering']();const _0x16df47=new Map(),_0x334118=this['items']['map'](_0x384cf2=>{const _0x583031=_0x384cf2['buttonView']['isMatching'](_0x30b4d5);return _0x384cf2['isVisible']=!!_0x583031,_0x384cf2['buttonView']['highlightText'](_0x583031?_0x30b4d5:null),_0x583031&&_0x16df47['set'](_0x384cf2,_0x583031),_0x384cf2;})['sort'](unsortListItemsCallback)['sort'](getSortListItemsCallback(_0x16df47));return this['items']['clear'](),this['items']['addMany'](_0x334118),{'resultsCount':_0x16df47['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0x1c315d=this['items']['map'](_0x1eef74=>_0x1eef74)['sort'](unsortListItemsCallback);return _0x1c315d['forEach'](_0x2b4386=>{_0x2b4386['isVisible']=!0x0,_0x2b4386['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x1c315d),{'resultsCount':_0x1c315d['length'],'totalItemsCount':_0x1c315d['length']};}}function getSortListItemsCallback(_0x1785f6){return function(_0x2197b9,_0x494f47){const _0x3cd94a=_0x1785f6['get'](_0x2197b9),_0xce050c=_0x1785f6['get'](_0x494f47);return _0x3cd94a&&!_0xce050c?-0x1:_0xce050c&&!_0x3cd94a?0x1:_0x3cd94a||_0xce050c?_0x3cd94a['title']&&!_0xce050c['title']?-0x1:!_0x3cd94a['title']&&_0xce050c['title']?0x1:0x0:0x0;};}function unsortListItemsCallback(_0x50fc89,_0x2f2220){return _0x50fc89['originalIndex']-_0x2f2220['originalIndex'];}class TemplateListItemView extends ListItemView{['originalIndex'];['buttonView'];constructor(_0x5ab9c3,_0x498e2b){super(_0x5ab9c3),this['originalIndex']=_0x498e2b,this['buttonView']=null;}}class TemplateListButtonView extends ButtonView{['templateDefinition'];['textPartView'];constructor(_0xcc658,_0x401211){super(_0xcc658),this['templateDefinition']=_0x401211,this['textPartView']=null;const {icon:_0x40b689=IconTemplateGeneric}=_0x401211;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x40b689}),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'](_0x5947d9){const {title:_0x5bb7f5,description:_0x4280e8}=this['templateDefinition'],_0x2eb50f=!!_0x5bb7f5['match'](_0x5947d9),_0x592931=!(!_0x4280e8||!_0x4280e8['match'](_0x5947d9));return _0x2eb50f||_0x592931?{'title':_0x2eb50f,'description':_0x592931}:null;}['highlightText'](_0x15dccf){this['textPartView']['highlightText'](_0x15dccf);}}class TextPartView extends View{constructor(_0x12e08f,_0x258c80,_0x444f23){super(_0x12e08f),this['title']=_0x258c80['title'],this['description']=_0x258c80['description'],this['titleView']=new HighlightedTextView(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x444f23}});const _0x596a5b=[this['titleView']];this['description']&&(this['descriptionView']=new HighlightedTextView(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x596a5b['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x596a5b});}['highlightText'](_0x4a10da){this['titleView']['highlightText'](_0x4a10da),this['description']&&this['descriptionView']['highlightText'](_0x4a10da);}}function getTranslation$2(_0x96827,_0x152011,..._0x43ab61){const t=_0x96827['t'];switch(_0x152011){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x43ab61);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',..._0x43ab61);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x152011;}}class TemplateUI extends Plugin{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x246032}=this,_0x36d9da=_0x246032['config']['get']('template.definitions')||[];_0x246032['ui']['componentFactory']['add']('insertTemplate',_0x401b12=>{const _0x5a5bbb=createDropdown(_0x401b12),_0x25cacd=this['_createTemplateListView'](_0x401b12,_0x36d9da),_0x559671=new SearchTextView(_0x401b12,{'filteredView':_0x25cacd,'queryView':{'label':getTranslation$2(_0x401b12,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x1e16ed=>getTranslation$2(_0x401b12,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x1e16ed),'secondary':getTranslation$2(_0x401b12,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':getTranslation$2(_0x401b12,'No\x20templates\x20available.')}}}}),_0xcfbdc9=_0x246032['commands']['get']('insertTemplate');return _0x559671['on']('search',(_0x273d8d,_0x25c716)=>{_0x25c716['query']&&_0x25c716['query']['length']&&_0x246032['ui']['ariaLiveAnnouncer']['announce'](getTranslation$2(_0x401b12,'%0\x20templates\x20found',_0x25c716['resultsCount']));}),_0x5a5bbb['bind']('isEnabled')['to'](_0xcfbdc9),_0x5a5bbb['panelView']['children']['add'](_0x559671),_0x5a5bbb['buttonView']['set']({'label':getTranslation$2(_0x401b12,'Insert\x20template'),'icon':IconTemplate,'tooltip':!0x0}),_0x5a5bbb['on']('change:isOpen',(_0x1d4f9b,_0x17ca19,_0x8e923a)=>{_0x8e923a||_0x559671['reset']();}),_0x5a5bbb;}),_0x246032['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x119817=>{const _0x5a8b2e=_0x246032['commands']['get']('insertTemplate'),_0x5c2a62=new MenuBarMenuView(_0x119817);_0x5c2a62['buttonView']['set']({'label':getTranslation$2(_0x119817,'Template'),'icon':IconTemplate});const _0x39efcf=new MenuBarMenuListView(_0x119817);if(!_0x36d9da||!_0x36d9da['length']){const _0x51a6fb=new MenuBarMenuListItemView(_0x119817,_0x5c2a62),_0x55ebf2=new MenuBarMenuListItemButtonView(_0x119817);_0x55ebf2['set']({'label':getTranslation$2(_0x119817,'No\x20templates\x20available.')}),_0x55ebf2['delegate']('execute')['to'](_0x5c2a62),_0x55ebf2['on']('execute',()=>{_0x246032['editing']['view']['focus']();}),_0x51a6fb['children']['add'](_0x55ebf2),_0x39efcf['items']['add'](_0x51a6fb);}for(const _0x4ee1fe of _0x36d9da){const _0x2a948f=new MenuBarMenuListItemView(_0x119817,_0x5c2a62),_0x5ef215=new MenuBarMenuListItemButtonView(_0x119817);_0x5ef215['set']({'class':'ck-template-button','label':_0x4ee1fe['title'],'icon':_0x4ee1fe['icon']||IconTemplateGeneric}),_0x5ef215['delegate']('execute')['to'](_0x5c2a62),_0x5ef215['on']('execute',()=>{_0x246032['execute']('insertTemplate',_0x4ee1fe['data']),_0x246032['editing']['view']['focus']();}),_0x2a948f['children']['add'](_0x5ef215),_0x39efcf['items']['add'](_0x2a948f);}return _0x5c2a62['panelView']['children']['add'](_0x39efcf),_0x5c2a62['bind']('isEnabled')['to'](_0x5a8b2e,'isEnabled'),_0x5c2a62;});}['afterInit'](){checkLicense$2(this);}['_createTemplateListView'](_0x238267,_0xd0f565){const {editor:_0x56761d}=this,_0x4dad87=new TemplateListView(_0x238267);return _0x4dad87['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x4dad87['items']['addMany'](_0xd0f565['map']((_0x40fb6c,_0x3d0be9)=>{const _0x328d09=new TemplateListItemView(_0x238267,_0x3d0be9),_0x401f53=new TemplateListButtonView(_0x238267,_0x40fb6c);return _0x328d09['buttonView']=_0x401f53,_0x328d09['children']['add'](_0x401f53),_0x328d09['buttonView']['on']('execute',_0x25462b=>{_0x56761d['execute']('insertTemplate',_0x25462b['source']['templateDefinition']['data']),_0x56761d['editing']['view']['focus']();}),_0x328d09;})),_0x4dad87;}}async function checkLicense$2(_0x4b82bb){const _0x57e509=_0x2f8616([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]),_0x612397=window[_0x2f8616([0x44,0x61,0x74,0x65])][_0x2f8616([0x6e,0x6f,0x77])](),_0x10c577=_0x4b82bb[_0x2f8616([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x187cdb=new window[(_0x2f8616([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329915=>{_0x10c577[_0x2f8616([0x6f,0x6e,0x63,0x65])](_0x2f8616([0x72,0x65,0x61,0x64,0x79]),_0x329915);}),_0x8c58ef={[_0x2f8616([0x6b,0x74,0x79])]:_0x2f8616([0x45,0x43]),[_0x2f8616([0x75,0x73,0x65])]:_0x2f8616([0x73,0x69,0x67]),[_0x2f8616([0x63,0x72,0x76])]:_0x2f8616([0x50,0x2d,0x32,0x35,0x36]),[_0x2f8616([0x78])]:_0x2f8616([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]),[_0x2f8616([0x79])]:_0x2f8616([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]),[_0x2f8616([0x61,0x6c,0x67])]:_0x2f8616([0x45,0x53,0x32,0x35,0x36])},_0xefbdbb=_0x10c577[_0x2f8616([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f8616([0x67,0x65,0x74])](_0x2f8616([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x1b69eb=await(async function(){let _0x30f738,_0x1da0d1=null,_0x21adfa=null;try{if(_0xefbdbb==_0x2f8616([0x47,0x50,0x4c]))return _0x2f8616([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x30f738=(function(){const _0x1e6aa6=_0xefbdbb[_0x2f8616([0x73,0x70,0x6c,0x69,0x74])](_0x2f8616([0x2e]));if(0x3!=_0x1e6aa6[_0x2f8616([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x386ef=_0x1e6aa6[0x1];return _0x5939c1(_0x386ef);function _0x5939c1(_0x229000){const _0x366755=_0x44abec(_0x229000);return _0x366755&&_0x40b17d()?_0x366755:null;function _0x40b17d(){const _0x4354ab=_0x366755[_0x2f8616([0x6a,0x74,0x69])],_0x4ee3ae=window[_0x2f8616([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4354ab[_0x2f8616([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4354ab[_0x2f8616([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3a04ff={..._0x366755,[_0x2f8616([0x6a,0x74,0x69])]:_0x4354ab[_0x2f8616([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4354ab[_0x2f8616([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3a04ff[_0x2f8616([0x76,0x63])],_0xd12f0c(_0x3a04ff)==_0x4ee3ae;}}}()),!_0x30f738)return _0x2f8616([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x30f738[_0x2f8616([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21adfa=function(_0x11abe1,_0x2fb907){return new window[(_0x2f8616([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f3efd=>{if(_0x3ee386())return _0x3f3efd(_0x2f8616([0x56,0x61,0x6c,0x69,0x64]));_0x5e3e8a(),_0x10c577[_0x2f8616([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f8616([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x129ab7=!0x1;const _0x55dada=uid();function _0x18d1b2(_0x5ea9df){return!!_0x5ea9df&&(typeof _0x5ea9df===_0x2f8616([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ea9df===_0x2f8616([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ea9df[_0x2f8616([0x74,0x68,0x65,0x6e])]===_0x2f8616([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ea9df[_0x2f8616([0x63,0x61,0x74,0x63,0x68])]===_0x2f8616([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x84d717(_0x38fcb5){_0x331eda(_0x38fcb5)[_0x2f8616([0x74,0x68,0x65,0x6e])](_0x475316=>{if(!_0x475316||_0x475316[_0x2f8616([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f8616([0x6f,0x6b]))return _0x2f8616([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd10a32(_0xd12f0c(_0x55dada+_0x2fb907))!=_0x475316[_0x2f8616([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f8616([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f8616([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f8616([0x74,0x68,0x65,0x6e])](_0x45e75c=>(_0x2464b4(),_0x45e75c),()=>{const _0x1a6437=_0x44caea();return null==_0x1a6437?(_0x2464b4(),_0x2f8616([0x56,0x61,0x6c,0x69,0x64])):_0x2f8616(_0x612397-_0x1a6437>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f8616([0x74,0x68,0x65,0x6e])](_0x3f3efd)[_0x2f8616([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3f3efd(_0x2f8616([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x487946=0x36ee80;function _0x2464b4(){const _0x288d10=_0x2f8616([0x6c,0x6c,0x63,0x74,0x2d])+_0xd10a32(_0xd12f0c(_0x11abe1)),_0x2f9292=_0x3ceb23(_0xd10a32(window[_0x2f8616([0x4d,0x61,0x74,0x68])][_0x2f8616([0x63,0x65,0x69,0x6c])](_0x612397/_0x487946)));window[_0x2f8616([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f8616([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x288d10,_0x2f9292);}function _0x44caea(){const _0x1bb1bb=_0x2f8616([0x6c,0x6c,0x63,0x74,0x2d])+_0xd10a32(_0xd12f0c(_0x11abe1)),_0x20da15=window[_0x2f8616([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f8616([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1bb1bb);return _0x20da15?window[_0x2f8616([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ceb23(_0x20da15),0x10)*_0x487946:null;}function _0x331eda(_0x337e7d){return new window[(_0x2f8616([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x346ba7,_0x5f116b)=>{_0x337e7d[_0x2f8616([0x74,0x68,0x65,0x6e])](_0x346ba7,_0x5f116b),window[_0x2f8616([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5f116b,0x1d4c0);});}}_0x10c577[_0x2f8616([0x6f,0x6e])](_0x2f8616([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1537c5,_0x2699e3)=>{if(_0x2699e3[0x0]!=_0x11abe1)return _0x3f3efd(_0x2f8616([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2699e3[0x1]={..._0x2699e3[0x1],[_0x2f8616([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x55dada};},{[_0x2f8616([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f8616([0x68,0x69,0x67,0x68])}),_0x10c577[_0x2f8616([0x6f,0x6e])](_0x2f8616([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x52f464=>{_0x18d1b2(_0x52f464[_0x2f8616([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x129ab7=!0x0,_0x84d717(_0x52f464[_0x2f8616([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f8616([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f8616([0x6c,0x6f,0x77])}),_0x187cdb[_0x2f8616([0x74,0x68,0x65,0x6e])](()=>{_0x129ab7||_0x3f3efd(_0x2f8616([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3ee386(){return _0x10c577[_0x2f8616([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f8616([0x76,0x69,0x65,0x77])][_0x2f8616([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f8616([0x61,0x75,0x74,0x6f]);}function _0x5e3e8a(){_0x10c577[_0x2f8616([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f8616([0x76,0x69,0x65,0x77])][_0x2f8616([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f8616([0x61,0x75,0x74,0x6f]);}}(_0x30f738[_0x2f8616([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x30f738[_0x2f8616([0x6a,0x74,0x69])]));const _0x5d7444=await(async function(){let _0x3fdda2=!0x0;try{const _0x1c5f6d=_0xefbdbb[_0x2f8616([0x73,0x70,0x6c,0x69,0x74])](_0x2f8616([0x2e])),[_0x2d89ca,_0x4df4cf,_0x5d2e2c]=_0x1c5f6d;return _0x125635(_0x2d89ca),await _0x37c32a(_0x2d89ca,_0x4df4cf,_0x5d2e2c),_0x3fdda2;}catch{return!0x1;}function _0x125635(_0x3a024c){const _0x4bebe7=_0x44abec(_0x3a024c);_0x4bebe7&&_0x4bebe7[_0x2f8616([0x61,0x6c,0x67])]==_0x2f8616([0x45,0x53,0x32,0x35,0x36])||(_0x3fdda2=!0x1);}async function _0x37c32a(_0x3ac989,_0x2da961,_0x32f4b8){const _0x1fa50b=window[_0x2f8616([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f8616([0x66,0x72,0x6f,0x6d])](_0x473eae(_0x32f4b8),_0x2ca392=>_0x2ca392[_0x2f8616([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x11d001=new window[(_0x2f8616([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f8616([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3ac989+_0x2f8616([0x2e])+_0x2da961),_0x555d18=window[_0x2f8616([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f8616([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x555d18)return;const _0x1f65c5=await _0x555d18[_0x2f8616([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f8616([0x6a,0x77,0x6b]),_0x8c58ef,{[_0x2f8616([0x6e,0x61,0x6d,0x65])]:_0x2f8616([0x45,0x43,0x44,0x53,0x41]),[_0x2f8616([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f8616([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f8616([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x555d18[_0x2f8616([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f8616([0x6e,0x61,0x6d,0x65])]:_0x2f8616([0x45,0x43,0x44,0x53,0x41]),[_0x2f8616([0x68,0x61,0x73,0x68])]:{[_0x2f8616([0x6e,0x61,0x6d,0x65])]:_0x2f8616([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f65c5,_0x1fa50b,_0x11d001)||(_0x3fdda2=!0x1);}}());return _0x5d7444?(function(){const _0x986a60=_0x30f738[_0x2f8616([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x986a60)return!0x1;if(_0x986a60[_0x2f8616([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f8616([0x2a])))return!0x0;if(_0x986a60[_0x2f8616([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f8616([0x54,0x50,0x4c])))return!0x0;if(_0x986a60[_0x2f8616([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f8616([0x50,0x50])))return!0x0;if(_0x986a60[_0x2f8616([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f8616([0x44,0x52,0x55,0x50]))&&window[_0x2f8616([0x44,0x72,0x75,0x70,0x61,0x6c])])return!0x0;if(_0x986a60[_0x2f8616([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f8616([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x2f8616([0x67,0x6c,0x6f,0x62])]&&window[_0x2f8616([0x67,0x6c,0x6f,0x62])][_0x2f8616([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x41b83b=[_0x2f8616([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f8616([0x74,0x72,0x69,0x61,0x6c])][_0x2f8616([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30f738[_0x2f8616([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x612397/0x3e8:0x69e96100;return _0x30f738[_0x2f8616([0x65,0x78,0x70])]<_0x41b83b;}())?_0x2f8616([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x15ac34=_0x30f738[_0x2f8616([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x15ac34||0x0==_0x15ac34[_0x2f8616([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x464e6d}=new URL(window[_0x2f8616([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x15ac34[_0x2f8616([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x464e6d))return!0x0;const _0x497015=_0x464e6d[_0x2f8616([0x73,0x70,0x6c,0x69,0x74])](_0x2f8616([0x2e]));return _0x15ac34[_0x2f8616([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19f509=>_0x19f509[_0x2f8616([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f8616([0x2a])))[_0x2f8616([0x6d,0x61,0x70])](_0x3b9c5a=>_0x3b9c5a[_0x2f8616([0x73,0x70,0x6c,0x69,0x74])](_0x2f8616([0x2e])))[_0x2f8616([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28a13c=>_0x28a13c[_0x2f8616([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x497015[_0x2f8616([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f8616([0x6d,0x61,0x70])](_0x1fa6fb=>Array(_0x497015[_0x2f8616([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1fa6fb[_0x2f8616([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f8616([0x66,0x69,0x6c,0x6c])](_0x1fa6fb[0x0]===_0x2f8616([0x2a])?_0x2f8616([0x2a]):'')[_0x2f8616([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1fa6fb))[_0x2f8616([0x73,0x6f,0x6d,0x65])](_0x2a377a=>_0x497015[_0x2f8616([0x65,0x76,0x65,0x72,0x79])]((_0x198a89,_0x31fa2f)=>_0x2a377a[_0x31fa2f]===_0x198a89||_0x2a377a[_0x31fa2f]===_0x2f8616([0x2a])));}())?(_0x30f738[_0x2f8616([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f8616([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1da0d1=function(_0xbfd18f){const _0x11135b=new window[(_0x2f8616([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x192e13=>setTimeout(_0x192e13,0x93ecc)),_0x537a0b=_0x187cdb[_0x2f8616([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f8616([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x944708=>{let _0x27b89b=0x0;_0x10c577[_0x2f8616([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f8616([0x6f,0x6e])](_0x2f8616([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d0fd4,_0x36875f)=>{_0x36875f[0x0][_0x2f8616([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x27b89b++,0x5e8==_0x27b89b&&(_0x944708(),_0x1d0fd4[_0x2f8616([0x6f,0x66,0x66])]());});})),_0x4749e2=[_0x11135b,_0x537a0b];return window[_0x2f8616([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f8616([0x72,0x61,0x63,0x65])](_0x4749e2)[_0x2f8616([0x74,0x68,0x65,0x6e])](()=>_0xbfd18f);}(_0x2f8616([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x1da0d1&&_0x21adfa)return new window[(_0x2f8616([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a84f6,_0x2ace01)=>{_0x1da0d1[_0x2f8616([0x74,0x68,0x65,0x6e])](_0x5a84f6,_0x2ace01),_0x21adfa[_0x2f8616([0x74,0x68,0x65,0x6e])](_0x102eb7=>{_0x102eb7!=_0x2f8616([0x56,0x61,0x6c,0x69,0x64])&&_0x5a84f6(_0x102eb7);},_0x2ace01);});return _0x1da0d1||_0x21adfa||_0x2f8616([0x56,0x61,0x6c,0x69,0x64]);}())):_0x2f8616([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f8616([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f8616([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2f8616([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x44abec(_0x1b20e2){return _0x1b20e2[_0x2f8616([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f8616([0x65,0x79]))?JSON[_0x2f8616([0x70,0x61,0x72,0x73,0x65])](_0x473eae(_0x1b20e2)):null;}function _0x473eae(_0x29e75b){return window[_0x2f8616([0x61,0x74,0x6f,0x62])](_0x29e75b[_0x2f8616([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f8616([0x2b]))[_0x2f8616([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f8616([0x2f])));}function _0xd12f0c(_0x1d6e8a){let _0x63a42d=0x1505;function _0x80d2cf(_0x40acb9){for(let _0x37e6d3=0x0;_0x37e6d3<_0x40acb9[_0x2f8616([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37e6d3++){const _0x3c6674=_0x40acb9[_0x2f8616([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x37e6d3);_0x63a42d=(_0x63a42d<<0x5)+_0x63a42d+_0x3c6674,_0x63a42d&=_0x63a42d;}}return function _0x87609e(_0x565445){Array[_0x2f8616([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x565445)?_0x565445[_0x2f8616([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x87609e):_0x565445&&typeof _0x565445==_0x2f8616([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f8616([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x565445)[_0x2f8616([0x73,0x6f,0x72,0x74])]()[_0x2f8616([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x59f59c,_0x499fd4])=>{_0x80d2cf(_0x59f59c),_0x87609e(_0x499fd4);}):_0x80d2cf(window[_0x2f8616([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x565445));}(_0x1d6e8a),_0x63a42d>>>0x0;}function _0xd10a32(_0x535a28){return _0x535a28[_0x2f8616([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f8616([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f8616([0x30]));}function _0x3ceb23(_0x40ed9b){return _0x40ed9b[_0x2f8616([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f8616([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f8616([0x6a,0x6f,0x69,0x6e])]('');}function _0xd669f1(){}function _0x2f8616(_0xaeed38){return _0xaeed38['map'](_0x5806aa=>String['fromCharCode'](_0x5806aa))['join']('');}!function(_0xa95467){const _0x246968=(function(){const _0x169b05=window[_0x2f8616([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f8616([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f8616([0x6e,0x6f,0x77])]())[_0x2f8616([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f8616([0x2e]),'');let _0x406776=_0x2f8616([0x67]);for(let _0x616041=0x0;_0x616041<_0x169b05[_0x2f8616([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x616041+=0x2){let _0x4ab2eb=window[_0x2f8616([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x169b05[_0x2f8616([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x616041,_0x616041+0x2));_0x4ab2eb>=_0x57e509[_0x2f8616([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ab2eb-=_0x57e509[_0x2f8616([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x406776+=_0x57e509[_0x4ab2eb];}return _0x406776;}());_0x10c577[_0x246968]=_0x2f8616([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xa95467,_0xa95467!=_0x2f8616([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x187cdb,_0x10c577[_0x2f8616([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f8616([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xd669f1,_0x10c577[_0x2f8616([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f8616([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xd669f1,_0x10c577[_0x2f8616([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f8616([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x1b69eb);}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 Command{['_enabledCommands'];constructor(_0x457f02,_0x3eaa87){super(_0x457f02),this['_enabledCommands']=_0x3eaa87,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 _0x3e961a of this['editor']['commands']['commands']())_0x3e961a['affectsData']&&!this['_enabledCommands']['has'](_0x3e961a)&&_0x3e961a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2439c5 of this['editor']['commands']['commands']())_0x2439c5['affectsData']&&!this['_enabledCommands']['has'](_0x2439c5)&&_0x2439c5['clearForceDisabled']('TrackChangesCommand');}}class AcceptSuggestionCommand extends Command{['_suggestions'];constructor(_0x521c67,_0x30a39b){super(_0x521c67),this['_suggestions']=_0x30a39b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x385b52){const _0x1d0533=this['_suggestions']['get'](_0x385b52);if(!_0x1d0533)throw new CKEditorError('track-changes-accept-suggestion-not-found',this);const _0xae1cc1=_0x1d0533['getRanges']();this['editor']['model']['canEditAt'](_0xae1cc1)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1d0533);}}class DiscardSuggestionCommand extends Command{['_suggestions'];constructor(_0x441eb6,_0x1ab790){super(_0x441eb6),this['_suggestions']=_0x1ab790,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3caa60){const _0x14b0cd=this['_suggestions']['get'](_0x3caa60);if(!_0x14b0cd)throw new CKEditorError('track-changes-discard-suggestion-not-found',this);const _0x2d3663=_0x14b0cd['getRanges']();this['editor']['model']['canEditAt'](_0x2d3663)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x14b0cd);}}function renderDescription(_0x273ae8,_0x3f2a65){let _0xe17ab0='';return _0xe17ab0+=_0x273ae8['split']('*')['map']((_0x279014,_0x2fbe8f)=>_0x2fbe8f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+sanitize(_0x279014)+'</span>':sanitize(_0x279014))['join'](''),_0x3f2a65&&(_0xe17ab0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3f2a65['value']+'\x22\x20title=\x22'+_0x3f2a65['title']+'\x22></span>'),_0xe17ab0;}function sanitize(_0x27c657){const _0x5d7ba9=document['createElement']('span');return _0x5d7ba9['innerText']=_0x27c657,_0x5d7ba9['innerHTML'];}function sortSuggestions(_0x49ebf4){return _0x49ebf4['sort']((_0x315dc6,_0x412716)=>'attribute'===_0x315dc6['type']&&'attribute'!==_0x412716['type']?-0x1:'attribute'!==_0x315dc6['type']&&'attribute'===_0x412716['type']?0x1:'deletion'==_0x315dc6['type']&&'deletion'!=_0x412716['type']?-0x1:'deletion'!=_0x315dc6['type']&&'deletion'==_0x412716['type']?0x1:0x0);}function getSelectedSuggestions(_0x3bfc1a,_0x20bc24){const _0x3313ef=Array['from'](_0x3bfc1a['getRanges']()),_0x4a9135=new Set();for(const _0x557784 of _0x20bc24)if(_0x557784['isInContent']){for(const _0x2f3d9f of _0x3313ef)for(const _0x95bfd9 of _0x557784['getRanges']())(_0x2f3d9f['isIntersecting'](_0x95bfd9)||_0x3bfc1a['isCollapsed']&&!_0x557784['isMultiRange']&&_0x557784['next']&&_0x95bfd9['end']['isTouching'](_0x2f3d9f['start']))&&_0x4a9135['add'](_0x557784);}return _0x4a9135;}function getRangesOfBlockGroups(_0x26846e,_0x30a90b){let _0x19171a,_0x12e279=0x0;const _0x482a08=[],_0x2c2b10=_0x30a90b['schema'];for(;_0x12e279<_0x26846e['length'];){const _0x156612=_0x26846e[_0x12e279],_0x3afa9a=_0x26846e[_0x12e279+0x1];_0x19171a||(_0x19171a=_0x30a90b['createPositionBefore'](_0x156612)),areNeighbourBlocks(_0x30a90b,_0x156612,_0x3afa9a)||(_0x482a08['push'](_0x30a90b['createRange'](_0x19171a,_0x2c2b10['isObject'](_0x156612)?_0x30a90b['createPositionAfter'](_0x156612):_0x30a90b['createPositionAt'](_0x156612,'end'))),_0x19171a=null),_0x12e279++;}return _0x482a08;}function areNeighbourBlocks(_0x49e6d0,_0x3e1149,_0x5f2afb){if(!_0x5f2afb)return!0x1;const _0x1d1749=_0x49e6d0['createPositionAfter'](_0x3e1149),_0x6cd2bc=_0x49e6d0['createPositionBefore'](_0x5f2afb);return _0x1d1749['isTouching'](_0x6cd2bc);}const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;function executeCommandForSuggestions(_0x144512,_0x1d4876,_0xe8f0df){for(;_0xe8f0df['length'];){const _0x10dcb5=_0xe8f0df['splice'](0x0,MAX_SUGGESTION_ACTIONS_IN_BATCH);_0x144512['change'](()=>{for(const _0x3b2464 of _0x10dcb5)_0x3b2464['isInContent']&&_0x1d4876['execute'](_0x3b2464['id']);});}}class ExecuteOnAllSuggestionsCommand extends Command{['_command'];['_suggestions'];constructor(_0x116459,_0x1d333e,_0x16a459){super(_0x116459),this['_command']=_0x1d333e,this['_suggestions']=_0x16a459,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x430056=Array['from'](this['_suggestions']['values']())['some'](_0xf40800=>_0xf40800['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x430056;}['execute'](){const _0x264d15=sortSuggestions(Array['from'](this['_suggestions']['values']()));for(const _0xde8c8a of _0x264d15){const _0x12e7ba=_0xde8c8a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x12e7ba))return;}executeCommandForSuggestions(this['editor']['model'],this['_command'],_0x264d15);}}class ExecuteOnSelectedSuggestionsCommand extends Command{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x321e79,_0x51f783,_0x22adea){super(_0x321e79),this['_command']=_0x51f783,this['_suggestions']=_0x22adea,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x391475=this['editor']['model']['document']['selection'],_0x4aa2f6=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=getSelectedSuggestions(_0x391475,_0x4aa2f6),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3eead4=sortSuggestions(Array['from'](this['_selectedSuggestions']));for(const _0x46d3e9 of _0x3eead4){const _0x3a6d74=_0x46d3e9['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3a6d74))return;}executeCommandForSuggestions(this['editor']['model'],this['_command'],_0x3eead4);}}class Suggestion extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4d851a,_0x2c913f){super(),this['id']=_0x2c913f['id'],this['type']=_0x2c913f['type'],this['subType']=_0x2c913f['subType']||null,this['author']=_0x2c913f['author'],this['creator']=_0x2c913f['creator']||_0x2c913f['author'],this['isExternal']=Boolean(_0x2c913f['attributes']&&_0x2c913f['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2c913f['originalSuggestionId']||null,this['_model']=_0x4d851a,this['_onAccept']=_0x2c913f['onAccept'],this['_onDiscard']=_0x2c913f['onDiscard'],this['_onAttributesChange']=_0x2c913f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2c913f['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 _0x4248b8=this;for(;_0x4248b8['previous'];)_0x4248b8=_0x4248b8['previous'];return _0x4248b8;}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'](_0x34ba84){this['_markerNames']['add'](_0x34ba84);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5713b4=>this['_model']['markers']['get'](_0x5713b4))['filter'](_0xc8dab9=>_0xc8dab9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x7ea60e=>{for(const _0x34dcdd of this['getMarkers']())_0x7ea60e['removeMarker'](_0x34dcdd);}),this['_markerNames']['clear']();}['removeMarker'](_0x4d7cd9){this['_model']['change'](_0xf0caf1=>{_0xf0caf1['removeMarker'](_0x4d7cd9);}),this['_markerNames']['delete'](_0x4d7cd9);}['addRange'](_0x4a56fc){const _0x444625='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x444625),this['_model']['change'](_0x9fbff6=>{_0x9fbff6['addMarker'](_0x444625,{'range':_0x4a56fc,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x36a8ce){for(const _0x285af8 of this['getRanges']())if(_0x285af8['isIntersecting'](_0x36a8ce))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x29e69d=>_0x29e69d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4a46d5,_0x1b0e6a)=>[..._0x4a46d5,..._0x1b0e6a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x568a01=this['getRanges']();if(0x1!=_0x568a01['length'])return null;const _0xa5e291=_0x568a01[0x0],_0x4e7280=_0xa5e291['start']['nodeAfter'],_0x561498=_0xa5e291['end']['nodeBefore'];return _0x4e7280 instanceof ModelElement?_0x4e7280!=_0x561498?null:_0x4e7280: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 _0x47b840=[];let _0x1c5d0d=this['head'];for(;_0x1c5d0d;)_0x47b840['push'](_0x1c5d0d),_0x1c5d0d=_0x1c5d0d['next'];return _0x47b840;}['setAttribute'](_0x4b0886,_0x1ddfc5){const _0x3defd3=cloneDeep(this['attributes']);set(_0x3defd3,_0x4b0886,_0x1ddfc5),isEqual(_0x3defd3,this['attributes'])||(this['attributes']=_0x3defd3,this['_onAttributesChange'](_0x3defd3));}['removeAttribute'](_0x4afb62){const _0x2eec77=cloneDeep(this['attributes']);unset(_0x2eec77,_0x4afb62),isEqual(_0x2eec77,this['attributes'])||(this['attributes']=_0x2eec77,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(_0x495b75,_0xb52fe3,_0x3a8d12){const _0x39a066=_0x495b75['t'],t=_0x495b75['t'];switch(_0xb52fe3){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',_0x3a8d12);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3a8d12);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3a8d12);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3a8d12);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3a8d12);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',_0x3a8d12);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3a8d12);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',_0x3a8d12);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3a8d12);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3a8d12);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3a8d12);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3a8d12);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3a8d12);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3a8d12);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3a8d12);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3a8d12);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3a8d12);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3a8d12);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3a8d12);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3a8d12);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3a8d12);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3a8d12);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3a8d12);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3a8d12);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3a8d12);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'},_0x3a8d12);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3a8d12);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3a8d12);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3a8d12);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3a8d12);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3a8d12);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3a8d12);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3a8d12);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'},_0x3a8d12);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3a8d12);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3a8d12);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3a8d12);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3a8d12);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x3a8d12);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3a8d12);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'},_0x3a8d12);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'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x3a8d12);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3a8d12);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'},_0x3a8d12);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3a8d12);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'},_0x3a8d12);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3a8d12);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x3a8d12);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x3a8d12);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x3a8d12);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3a8d12);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'},_0x3a8d12);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3a8d12);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 _0x39a066({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3a8d12);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x39a066({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3a8d12);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3a8d12);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'},_0x3a8d12);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'},_0x3a8d12);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'},_0x3a8d12);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xb52fe3;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2d0913,_0x4ca84f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2d0913,this['_locale']=_0x4ca84f;}['getDescriptions'](_0x23870d){const _0x4bdb92=[],_0x575dbc=new Set(),_0x9cb09e=new Set();for(let _0x377427=0x0;_0x377427<_0x23870d['length'];_0x377427++){const _0x6cd54b=_0x23870d[_0x377427];if(!_0x6cd54b['isInContent'])continue;const _0x4f3bba=this['_handleCustomCallbackDescription'](_0x6cd54b);if(_0x4f3bba){if(null!=_0x6cd54b['subType']){if(_0x575dbc['has'](_0x6cd54b['subType']))continue;_0x575dbc['add'](_0x6cd54b['subType']);}_0x4bdb92['push'](_0x4f3bba);}else{if('attribute'==_0x6cd54b['type']){const _0x34914d=_0x6cd54b['data']['key'];if(_0x9cb09e['has'](_0x34914d))continue;_0x9cb09e['add'](_0x6cd54b['data']['key']),_0x34914d==renameAttributeKey?this['_handleRenameSuggestionDescription'](_0x4bdb92,_0x6cd54b):this['_handleAttributeSuggestionDescription'](_0x4bdb92,_0x6cd54b);continue;}'insertion'!=_0x6cd54b['type']&&'deletion'!=_0x6cd54b['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4bdb92,_0x6cd54b,_0x23870d[_0x377427+0x1]);}}return this['_resolveDescriptionItems'](_0x4bdb92);}['registerDescriptionCallback'](_0x136d22){this['_customCallbacks']['push'](_0x136d22);}['registerElementLabel'](_0x7e59d8,_0x5535fa,_0x4b8034=priorities['normal']){'function'==typeof _0x7e59d8?insertToPriorityArray(this['_itemLabelsCallbacks'],{'matchingCallback':_0x7e59d8,'label':_0x5535fa,'priority':_0x4b8034}):this['_itemLabels']['set'](_0x7e59d8,_0x5535fa);}['registerAttributeLabel'](_0x587a87,_0x2967dd){this['_attributeLabels']['set'](_0x587a87,_0x2967dd);}['getItemLabel'](_0x3f0bb7,_0x5061ea=0x1){let _0x5838ca;for(const _0x2ed77e of this['_itemLabelsCallbacks'])if(_0x2ed77e['matchingCallback'](_0x3f0bb7)){_0x5838ca=_0x2ed77e['label'];break;}return _0x5838ca||(_0x5838ca=this['_itemLabels']['get'](_0x3f0bb7['name'])),_0x5838ca?_0x5838ca(_0x5061ea):0x1!==_0x5061ea?_0x5061ea+'\x20'+_0x3f0bb7['name']+'s':''+_0x3f0bb7['name'];}['_addDescriptionItems'](_0x276f54,_0x3ba23e){const _0x36afce=_0x3ba23e['getFirstRange']()['getWalker'](),_0x464191='insertion'==_0x3ba23e['type']?'add':'remove';for(const _0x334fc2 of _0x36afce){const _0x33b512=_0x334fc2['item'],_0x4e9ab6=_0x276f54[_0x276f54['length']-0x1];if(_0x33b512['is']('$textProxy'))_0x4e9ab6&&_0x4e9ab6['type']['indexOf']('Container')>-0x1&&_0x276f54['pop'](),_0x4e9ab6&&'text'==_0x4e9ab6['type']?_0x4e9ab6[_0x464191]+=_0x33b512['data']:_0x276f54['push']({'type':'text','add':'add'==_0x464191?_0x33b512['data']:'','remove':'remove'==_0x464191?_0x33b512['data']:''});else{if(this['_schema']['isObject'](_0x33b512)){const _0x1b2cb3=_0x33b512;if(_0x4e9ab6&&_0x4e9ab6['type']['indexOf']('Container')>-0x1&&_0x276f54['pop'](),'elementEnd'==_0x334fc2['type'])continue;_0x4e9ab6&&_0x4e9ab6['type']==_0x464191+'Object'&&_0x4e9ab6['element']['name']==_0x1b2cb3['name']?_0x4e9ab6['quantity']++:_0x276f54['push']({'type':_0x464191+'Object','element':_0x1b2cb3,'quantity':0x1}),_0x36afce['skip'](_0xa16e35=>!('elementEnd'==_0xa16e35['type']&&_0xa16e35['item']==_0x33b512));}else{if(this['_schema']['checkChild'](_0x33b512,'$text')||_0x33b512['is']('element','softBreak')){const _0x3bfafb=_0x33b512;if('add'==_0x464191&&'elementStart'==_0x334fc2['type']||'remove'==_0x464191&&'elementEnd'==_0x334fc2['type'])continue;if(_0x4e9ab6&&-0x1==_0x4e9ab6['type']['indexOf']('Container')){'text'==_0x4e9ab6['type']&&(_0x4e9ab6[_0x464191]+='\x0a');continue;}let _0x4fd3f5;if(_0x4fd3f5='add'==_0x464191?_0x3bfafb['nextSibling']&&!this['_schema']['isObject'](_0x3bfafb['nextSibling'])?_0x3bfafb['nextSibling']:null:_0x3bfafb['previousSibling']&&!this['_schema']['isObject'](_0x3bfafb['previousSibling'])?_0x3bfafb['previousSibling']:null,_0x3bfafb['isEmpty']||_0x4fd3f5&&_0x4fd3f5['isEmpty']){const _0x126315=_0x4fd3f5&&_0x4fd3f5['isEmpty']?_0x4fd3f5:_0x3bfafb;_0x4e9ab6&&_0x4e9ab6['type']==_0x464191+'EmptyContainer'&&_0x4e9ab6['element']['name']==_0x126315['name']?_0x4e9ab6['quantity']++:_0x276f54['push']({'type':_0x464191+'EmptyContainer','element':_0x126315,'quantity':0x1});}else _0x276f54['push']({'type':_0x464191+'Container','element':_0x3bfafb});}}}}}['_resolveDescriptionItems'](_0xedc43a){const _0x3e2b1f=this['_locale'],_0x525e71=[],_0x1e5b5b=[],_0x16c8ac=[];for(const _0xd59551 of _0xedc43a)switch(_0xd59551['type']){case'text':if(_0xd59551['add']=_0xd59551['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xd59551['remove']=_0xd59551['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xd59551['add']&&''!=_0xd59551['remove']){_0x525e71['push']({'type':'replace','content':getTranslation$1(_0x3e2b1f,'REPLACE_TEXT',['\x22'+_0xd59551['remove']+'\x22','\x22'+_0xd59551['add']+'\x22'])});continue;}if(null!=_0xd59551['add']['match'](/^ +$/)){_0x525e71['push']({'type':'insertion','content':getTranslation$1(_0x3e2b1f,'*Insert:*\x20%0',getTranslation$1(_0x3e2b1f,'ELEMENT_SPACE',_0xd59551['add']['length']))});continue;}if(null!=_0xd59551['remove']['match'](/^ +$/)){_0x525e71['push']({'type':'deletion','content':getTranslation$1(_0x3e2b1f,'*Remove:*\x20%0',getTranslation$1(_0x3e2b1f,'ELEMENT_SPACE',_0xd59551['remove']['length']))});continue;}if(''!=_0xd59551['add']){_0x525e71['push']({'type':'insertion','content':getTranslation$1(_0x3e2b1f,'*Insert:*\x20%0','\x22'+_0xd59551['add']+'\x22')});continue;}_0x525e71['push']({'type':'deletion','content':getTranslation$1(_0x3e2b1f,'*Remove:*\x20%0','\x22'+_0xd59551['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x525e71['push']({'type':'insertion','content':getTranslation$1(_0x3e2b1f,'*Insert:*\x20%0',this['getItemLabel'](_0xd59551['element'],_0xd59551['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x525e71['push']({'type':'deletion','content':getTranslation$1(_0x3e2b1f,'*Remove:*\x20%0',this['getItemLabel'](_0xd59551['element'],_0xd59551['quantity']))});continue;case'addContainer':_0x525e71['push']({'type':'insertion','content':getTranslation$1(_0x3e2b1f,'*Split:*\x20%0',this['getItemLabel'](_0xd59551['element'],_0xd59551['quantity']))});continue;case'removeContainer':_0x525e71['push']({'type':'deletion','content':getTranslation$1(_0x3e2b1f,'*Merge:*\x20%0',this['getItemLabel'](_0xd59551['element'],_0xd59551['quantity']))});continue;case'addFormat':_0x1e5b5b['push'](_0xd59551['key']);continue;case'removeFormat':_0x16c8ac['push'](_0xd59551['key']);continue;default:_0x525e71['push'](_0xd59551);}if(_0x1e5b5b['length']){const _0x9cfebf=_0x1e5b5b['map'](_0x5a8f01=>this['_attributeLabels']['has'](_0x5a8f01)?this['_attributeLabels']['get'](_0x5a8f01):_0x5a8f01)['join'](',\x20');_0x525e71['push']({'type':'format','content':getTranslation$1(this['_locale'],'*Set\x20format:*\x20%0',_0x9cfebf)});}if(_0x16c8ac['length']){const _0x20264f=_0x16c8ac['map'](_0x1b45c5=>this['_attributeLabels']['has'](_0x1b45c5)?this['_attributeLabels']['get'](_0x1b45c5):_0x1b45c5)['join'](',\x20');_0x525e71['push']({'type':'format','content':getTranslation$1(this['_locale'],'*Remove\x20format:*\x20%0',_0x20264f)});}return _0x525e71;}['_handleCustomCallbackDescription'](_0x27e469){for(const _0x29fbff of this['_customCallbacks']){const _0x1c269f=_0x29fbff(_0x27e469);if(_0x1c269f&&'type'in _0x1c269f)return _0x1c269f;}}['_handleAttributeSuggestionDescription'](_0x2e6d90,_0x6a2e18){const _0x482e58=_0x6a2e18['data'],_0x3aa60b=void 0x0===_0x482e58['newValue']?'removeFormat':'addFormat';_0x2e6d90['push']({'type':_0x3aa60b,'key':_0x482e58['key']});}['_handleRenameSuggestionDescription'](_0x517bde,_0x4f9df1){_0x517bde['push']({'type':'format','content':getTranslation$1(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4f9df1['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x40b16f,_0x3164e1,_0x103e6e){if(this['_addDescriptionItems'](_0x40b16f,_0x3164e1),_0x103e6e&&_0x103e6e['getFirstRange']()&&!_0x3164e1['getFirstRange']()['end']['isEqual'](_0x103e6e['getFirstRange']()['start'])){const _0x54617f=_0x40b16f[_0x40b16f['length']-0x1],_0x908dd1='insertion'==_0x3164e1['type']?'add':'remove';_0x54617f&&'text'==_0x54617f['type']&&(_0x54617f[_0x908dd1]+='\x0a');}}}class TrackChangesAIAssistant extends Plugin{['afterInit'](){const _0x28a195=this['editor'],_0x1f217f=_0x28a195['plugins']['get']('TrackChangesEditing');_0x28a195['commands']['get']('showAIAssistant')&&_0x1f217f['enableCommand']('showAIAssistant');}}class TrackChangesAI extends Plugin{['afterInit'](){const _0x171ec3=this['editor'],_0x2a0e15=_0x171ec3['plugins']['get']('TrackChangesEditing');_0x171ec3['commands']['get']('toggleAi')&&_0x2a0e15['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends Plugin{['afterInit'](){const _0x5634c1=this['editor'],_0x276144=_0x5634c1['plugins']['get']('TrackChangesEditing');_0x5634c1['commands']['get']('aiQuickAction')&&_0x276144['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends Plugin{['afterInit'](){const _0x3fca3e=this['editor'],_0x577a15=_0x3fca3e['locale'];if(!_0x3fca3e['plugins']['has']('AlignmentEditing'))return;const _0x5c8afb=_0x3fca3e['plugins']['get']('TrackChangesEditing');_0x5c8afb['enableDefaultAttributesIntegration']('alignment'),_0x5c8afb['descriptionFactory']['registerAttributeLabel']('alignment',getTranslation$1(_0x577a15,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x171bd6=this['editor'],_0x589223=_0x171bd6['locale'];_0x171bd6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x568e18=>{if('formatBlock'!=_0x568e18['type'])return;const {data:_0x4661f0}=_0x568e18;if(_0x4661f0&&'alignment'==_0x4661f0['commandName']){const _0x39b9ec=_0x4661f0['commandParams'][0x0]['value'];return{'type':'format','content':getTranslation$1(_0x589223,'*Format:*\x20%0',function(_0x1152c6){switch(_0x1152c6){case'left':return getTranslation$1(_0x589223,'FORMAT_ALIGN_TO_LEFT');case'right':return getTranslation$1(_0x589223,'FORMAT_ALIGN_TO_RIGHT');case'center':return getTranslation$1(_0x589223,'FORMAT_ALIGN_TO_CENTER');case'justify':return getTranslation$1(_0x589223,'FORMAT_JUSTIFY_TEXT');}}(_0x39b9ec))};}});}}const basicStylesPlugins=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends Plugin{['afterInit'](){const _0x5327a8=this['editor'],_0x336006=_0x5327a8['plugins']['get']('TrackChangesEditing'),_0x18dfd7=_0x5327a8['locale'];for(const _0x4346ca of basicStylesPlugins){if(!_0x5327a8['plugins']['has'](_0x4346ca))continue;const _0x525709=_0x4346ca['slice'](0x0,-0x7)['toLowerCase'](),_0x46947b='FORMAT_'+_0x525709['toUpperCase']();_0x336006['enableDefaultAttributesIntegration'](_0x525709),_0x336006['descriptionFactory']['registerAttributeLabel'](_0x525709,getTranslation$1(_0x18dfd7,_0x46947b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5774cc=this['editor'],_0x1db5ff=_0x5774cc['locale'],_0x2b826c=_0x5774cc['plugins']['get']('TrackChangesEditing');function _0x51fac6(_0x3bbeed,_0x309bf8){_0x2b826c['descriptionFactory']['registerDescriptionCallback'](_0xae20e3=>{if('formatInline'!=_0xae20e3['type'])return;const {data:_0xe40cd3}=_0xae20e3;return _0xe40cd3&&_0xe40cd3['commandName']===_0x3bbeed?_0xe40cd3['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x1db5ff,'*Format:*\x20%0',_0x309bf8)}:{'type':'format','content':getTranslation$1(_0x1db5ff,'*Remove\x20format:*\x20%0',_0x309bf8)}:void 0x0;});}_0x51fac6('bold',getTranslation$1(_0x1db5ff,'FORMAT_BOLD')),_0x51fac6('italic',getTranslation$1(_0x1db5ff,'FORMAT_ITALIC')),_0x51fac6('underline',getTranslation$1(_0x1db5ff,'FORMAT_UNDERLINE')),_0x51fac6('code',getTranslation$1(_0x1db5ff,'FORMAT_CODE')),_0x51fac6('strikethrough',getTranslation$1(_0x1db5ff,'FORMAT_STRIKETHROUGH')),_0x51fac6('subscript',getTranslation$1(_0x1db5ff,'FORMAT_SUBSCRIPT')),_0x51fac6('superscript',getTranslation$1(_0x1db5ff,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends Plugin{['afterInit'](){const _0x1956f9=this['editor'],_0x15c9b7=_0x1956f9['locale'];if(!_0x1956f9['plugins']['has']('BlockQuoteEditing'))return;const _0x56bc12=_0x1956f9['plugins']['get']('TrackChangesEditing'),_0x42ec3e=this['editor']['commands']['get']('blockQuote');_0x56bc12['enableCommand']('blockQuote',(_0x487f7f,_0x5e1da9={})=>{const _0x2f8b0f=this['editor']['model']['document']['selection'],_0x49a8d5=_0x5e1da9&&void 0x0!==_0x5e1da9['forceValue']?_0x5e1da9['forceValue']:!_0x42ec3e['value'];let _0x5311a9=[];if(_0x49a8d5){const _0x2d590d=Array['from'](_0x2f8b0f['getSelectedBlocks']())['filter'](_0x532847=>isInQuote(_0x532847)||checkCanBeQuoted(_0x532847,this['editor']['model']['schema']));_0x5311a9=getRangesOfBlockGroups(_0x2d590d,_0x1956f9['model']);}else{const _0x596bcc=Array['from'](_0x2f8b0f['getSelectedBlocks']())['filter'](_0x3460fd=>isInQuote(_0x3460fd));_0x5311a9=getRangesOfBlockGroups(_0x596bcc,_0x1956f9['model']);}_0x1956f9['model']['change'](()=>{for(const _0x25cf58 of _0x5311a9)_0x56bc12['markBlockFormat'](_0x25cf58,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x49a8d5}]});});}),_0x56bc12['descriptionFactory']['registerDescriptionCallback'](_0x11cfc3=>{const {data:_0x3093a0}=_0x11cfc3;if(_0x3093a0&&'blockQuote'==_0x3093a0['commandName']){const _0x37318e=getTranslation$1(_0x15c9b7,'ELEMENT_BLOCK_QUOTE');return _0x3093a0['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x15c9b7,'*Set\x20format:*\x20%0',_0x37318e)}:{'type':'format','content':getTranslation$1(_0x15c9b7,'*Remove\x20format:*\x20%0',_0x37318e)};}});}}function checkCanBeQuoted(_0x266735,_0x243752){const _0x54bda0=_0x243752['checkChild'](_0x266735['parent'],'blockQuote'),_0x5e99db=_0x243752['checkChild'](['$root','blockQuote'],_0x266735);return _0x54bda0&&_0x5e99db;}function isInQuote(_0x2fafb6){return'blockQuote'==_0x2fafb6['parent']['name'];}class TrackChangesBookmark extends Plugin{['afterInit'](){const _0x1e5c2c=this['editor'],_0x3c6e57=_0x1e5c2c['locale'],_0x33391f=_0x1e5c2c['plugins']['get']('TrackChangesEditing');_0x1e5c2c['plugins']['has']('BookmarkEditing')&&(_0x33391f['enableCommand']('insertBookmark'),_0x33391f['enableDefaultAttributesIntegration']('updateBookmark'),_0x33391f['descriptionFactory']['registerDescriptionCallback'](_0x4da7fb=>{if('insertion'!=_0x4da7fb['type']&&'deletion'!=_0x4da7fb['type']&&'attribute'!=_0x4da7fb['type'])return;const _0x20647c=_0x4da7fb['getContainedElement']();if(null==_0x20647c)return;if(!_0x20647c['is']('element','bookmark'))return;const _0x12ae59=_0x20647c['getAttribute']('bookmarkId');if('insertion'==_0x4da7fb['type'])return{'type':'insertion','content':getTranslation$1(_0x3c6e57,'*Insert:*\x20%0','\x22'+_0x12ae59+'\x22\x20'+getTranslation$1(_0x3c6e57,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4da7fb['type'])return{'type':'deletion','content':getTranslation$1(_0x3c6e57,'*Remove:*\x20%0','\x22'+_0x12ae59+'\x22\x20'+getTranslation$1(_0x3c6e57,'ELEMENT_BOOKMARK'))};const {data:_0x4c422a}=_0x4da7fb;if(!_0x4c422a||'bookmarkId'!=_0x4c422a['key'])return;return{'type':'format','content':getTranslation$1(_0x3c6e57,'*Set\x20bookmark:*\x20%0','\x22'+_0x4c422a['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends Plugin{['afterInit'](){const _0x27dd3a=this['editor'];_0x27dd3a['plugins']['has']('CaseChange')&&(_0x27dd3a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x27dd3a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x27dd3a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends Plugin{['afterInit'](){const _0x3148d6=this['editor'];_0x3148d6['commands']['get']('ckbox')&&_0x3148d6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends Plugin{['afterInit'](){const _0x3a3d82=this['editor'];if(!_0x3a3d82['plugins']['has']('CodeBlock'))return;const _0x237b5c=_0x3a3d82['plugins']['get']('TrackChangesEditing'),_0x50e018=_0x3a3d82['locale'],_0x3d2bed=_0x3a3d82['config']['get']('codeBlock')['languages'],_0x3970e2=_0x3a3d82['commands']['get']('codeBlock');_0x237b5c['enableCommand']('indentCodeBlock'),_0x237b5c['enableCommand']('outdentCodeBlock'),_0x237b5c['enableCommand']('codeBlock',(_0x48346c,_0x2d71a4={})=>{const _0x36ea65=_0x3a3d82['model'],_0x503a8f=_0x3a3d82['model']['document']['selection'],_0xb296ee=_0x2d71a4&&void 0x0!==_0x2d71a4['forceValue']?_0x2d71a4['forceValue']:!_0x3970e2['value'];let _0x522b00;_0x2d71a4['language']||(_0x2d71a4['language']=_0x3d2bed[0x0]['language']),_0x522b00=_0xb296ee?Array['from'](_0x503a8f['getSelectedBlocks']())['filter'](_0x3565f8=>isCodeBlock(_0x3565f8)||canBeCodeBlock(_0x3565f8,_0x36ea65['schema'])):Array['from'](_0x503a8f['getSelectedBlocks']())['filter'](_0x3bda6a=>isCodeBlock(_0x3bda6a));const _0x559970=getRangesOfBlockGroups(_0x522b00,_0x36ea65);_0x36ea65['change'](()=>{for(const _0x2bcdc0 of _0x559970)_0x237b5c['markBlockFormat'](_0x2bcdc0,{'commandName':'codeBlock','commandParams':[{..._0x2d71a4,'forceValue':_0xb296ee}],'formatGroupId':'blockName'});});}),(_0x237b5c['descriptionFactory']['registerElementLabel']('codeBlock',_0x768b1b=>getTranslation$1(_0x50e018,'ELEMENT_CODE_BLOCK',_0x768b1b)),_0x237b5c['descriptionFactory']['registerDescriptionCallback'](_0xbf9703=>{if('formatBlock'!=_0xbf9703['type'])return;const _0x5cfe32=_0x50e018['t'],{data:_0x1f6db9}=_0xbf9703;if(!_0x1f6db9||'codeBlock'!=_0x1f6db9['commandName'])return;const _0x1fafca=_0x1f6db9['commandParams'][0x0]['language'],_0x3708bd=_0x3d2bed['find'](_0x182728=>_0x182728['language']===_0x1fafca)['label'],_0xb3e601=_0x5cfe32(_0x3708bd)['toLowerCase']();return _0x1f6db9['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x50e018,'*Set\x20format:*\x20%0',getTranslation$1(_0x50e018,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xb3e601+')')}:{'type':'format','content':getTranslation$1(_0x50e018,'*Remove\x20format:*\x20%0',getTranslation$1(_0x50e018,'ELEMENT_CODE_BLOCK',0x1))};}));}}function canBeCodeBlock(_0x6e182b,_0x304854){return!_0x6e182b['is']('rootElement')&&!_0x304854['isLimit'](_0x6e182b)&&_0x304854['checkChild'](_0x6e182b['parent'],'codeBlock');}function isCodeBlock(_0x448023){return'codeBlock'==_0x448023['name'];}class TrackChangesComments extends Plugin{['afterInit'](){const _0x133bbb=this['editor'];if(!_0x133bbb['plugins']['has']('CommentsEditing'))return;_0x133bbb['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends Plugin{static get['requires'](){return[Delete];}['init'](){const _0x280e34=this['editor'],_0x58af46=_0x280e34['plugins']['get']('TrackChangesEditing');_0x58af46['enableCommand']('delete');const _0x5a1b01=_0x280e34['commands']['get']('deleteForward');_0x58af46['enableCommand']('deleteForward',(_0x34216c,_0xb28941={})=>{const _0x5c95be=_0x280e34['model']['createSelection'](_0x280e34['model']['document']['selection']);_0x5c95be['isCollapsed']&&_0x280e34['model']['modifySelection'](_0x5c95be,{'direction':'forward','unit':_0xb28941['unit']});const _0x330ae5=_0x5c95be['getFirstRange'](),_0x4dbe5b=ModelLiveRange['fromRange'](_0x330ae5);let _0x2e5a8f;_0x34216c(_0xb28941),_0x2e5a8f='$graveyard'==_0x4dbe5b['root']['rootName']?_0x280e34['model']['createRange'](_0x330ae5['start']):_0x280e34['model']['createRange'](_0x4dbe5b['start'],_0x4dbe5b['end']),_0x4dbe5b['detach'](),_0x280e34['model']['enqueueChange'](_0x5a1b01['buffer']['batch'],_0xcf4d74=>{_0x5a1b01['buffer']['lock'](),_0xcf4d74['setSelection'](_0xcf4d74['createRange'](_0x2e5a8f['end'])),_0x5a1b01['buffer']['unlock']();});});}}class TrackChangesList extends Plugin{['afterInit'](){const _0x29c1e7=this['editor'];if(!_0x29c1e7['plugins']['has']('ListEditing'))return;const _0xd22239=_0x29c1e7['locale'],_0x567ce3=_0x29c1e7['plugins']['get']('TrackChangesEditing'),_0xbe9f9a=_0x29c1e7['plugins']['has']('TodoListEditing'),_0x39cf2f=!!_0x29c1e7['config']['get']('list.multiBlock');function _0x4b76a0(_0x3c81b7){return{'type':'format','content':''+getTranslation$1(_0xd22239,'*Set\x20format:*\x20%0',_0x3c81b7)};}function _0x747994(_0x9bd5eb){return{'type':'format','content':''+getTranslation$1(_0xd22239,'*Remove\x20format:*\x20%0',_0x9bd5eb)};}_0x567ce3['enableDefaultAttributesIntegration']('numberedList'),_0x567ce3['enableDefaultAttributesIntegration']('bulletedList'),_0x567ce3['enableDefaultAttributesIntegration']('customNumberedList'),_0x567ce3['enableDefaultAttributesIntegration']('customBulletedList'),_0x567ce3['enableDefaultAttributesIntegration']('indentList'),_0x567ce3['enableDefaultAttributesIntegration']('outdentList'),_0x567ce3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x567ce3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x39cf2f&&(_0x567ce3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x567ce3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xbe9f9a&&(_0x567ce3['enableDefaultAttributesIntegration']('todoList'),_0x567ce3['enableDefaultAttributesIntegration']('checkTodoList'),_0x567ce3['descriptionFactory']['registerDescriptionCallback'](_0x54375b=>{const {data:_0x2ff527}=_0x54375b;if(_0x2ff527&&'todoListChecked'==_0x2ff527['key'])return{'type':'format','content':_0x2ff527['newValue']?getTranslation$1(_0xd22239,'*Check\x20item*'):getTranslation$1(_0xd22239,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x234c47=>{if(_0x234c47['batch']['isUndo'])return!0x1;let _0x4c8b4a=!0x1;const _0xd7f954=_0x567ce3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x32e522=>'todoListChecked'===_0x567ce3['_getAttributeKey'](_0x32e522));for(const _0x80ebf9 of _0xd7f954){'todo'!=_0x80ebf9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x567ce3['_findSuggestions'](_0x80ebf9['getFirstRange'](),'attribute')['find'](_0x114112=>'listType'===_0x567ce3['_getAttributeKey'](_0x114112['suggestion']))||(_0x234c47['removeMarker'](_0x80ebf9['getFirstMarker']()),_0x4c8b4a=!0x0));}return _0x4c8b4a;})),_0x567ce3['descriptionFactory']['registerAttributeLabel']('listIndent',getTranslation$1(_0xd22239,'FORMAT_INDENT'));const _0x5b8129={'type':'format','content':''};_0x567ce3['descriptionFactory']['registerDescriptionCallback'](_0xbb826e=>{const {data:_0x2ad8a7}=_0xbb826e;if(!_0x2ad8a7||'listType'!=_0x2ad8a7['key'])return;let _0x22ad56=_0xbb826e['head'];for(;_0x22ad56;){if(_0x22ad56['data']&&(('listStyle'==_0x22ad56['data']['key']||'listMarkerStyle'==_0x22ad56['data']['key'])&&(_0x22ad56['data']['newValue']&&'default'!=_0x22ad56['data']['newValue']||'default'!=_0x22ad56['data']['oldValue']&&!_0x2ad8a7['newValue'])||!_0x39cf2f&&_0x22ad56['data']['key']==renameAttributeKey))return _0x5b8129;_0x22ad56=_0x22ad56['next'];}if(null==_0x2ad8a7['newValue'])switch(_0x2ad8a7['oldValue']){case'bulleted':return _0x747994(getTranslation$1(_0xd22239,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x747994(getTranslation$1(_0xd22239,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x747994(getTranslation$1(_0xd22239,'ELEMENT_TODO_LIST'));}switch(_0x2ad8a7['newValue']){case'bulleted':return _0x4b76a0(getTranslation$1(_0xd22239,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4b76a0(getTranslation$1(_0xd22239,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4b76a0(getTranslation$1(_0xd22239,'ELEMENT_TODO_LIST'));}}),_0x567ce3['descriptionFactory']['registerDescriptionCallback'](_0x371b7a=>{const {data:_0x15ed4f}=_0x371b7a;if(_0x15ed4f&&'listIndent'==_0x15ed4f['key'])return null==_0x15ed4f['newValue']||null==_0x15ed4f['oldValue']&&0x0==_0x15ed4f['newValue']?_0x5b8129:void 0x0;}),_0x567ce3['descriptionFactory']['registerDescriptionCallback'](_0x3bfea7=>{if('attribute'!=_0x3bfea7['type'])return;const {data:_0x3cb023}=_0x3bfea7;if(!_0x3cb023||'listItemId'!=_0x3cb023['key'])return;const _0x36196e=checkSiblingsListItemId(_0x3bfea7);return'newValue'==_0x36196e?{'type':'format','content':getTranslation$1(_0xd22239,'*Merge:*\x20list\x20item')}:'oldValue'==_0x36196e?{'type':'format','content':getTranslation$1(_0xd22239,'*Split:*\x20list\x20item')}:_0x5b8129;}),_0x29c1e7['model']['document']['registerPostFixer'](_0x38cf4e=>this['listItemIdFixer'](_0x38cf4e)),_0x29c1e7['model']['document']['registerPostFixer'](_0x59e41b=>this['noTrackChangesFixer'](_0x59e41b)),_0x29c1e7['model']['document']['on']('change:data',(_0x343a8f,_0x596c66)=>{if(_0x596c66['isUndo']||!_0x596c66['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1544a9){if(_0x1544a9['batch']['isUndo']||!_0x1544a9['batch']['isLocal'])return!0x1;let _0x317d7e=!0x1;const _0x2f729d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c6a5e=>_0x4c6a5e['data']&&'listItemId'==_0x4c6a5e['data']['key'])['filter'](_0x51783d=>_0x51783d['data']['newValue']&&_0x51783d['data']['oldValue']);for(const _0x186a4a of _0x2f729d)checkSiblingsListItemId(_0x186a4a)||(_0x1544a9['removeMarker'](_0x186a4a['getFirstMarker']()),_0x317d7e=!0x0);return _0x317d7e;}['noTrackChangesFixer'](_0x5b8cc1){if(_0x5b8cc1['batch']['isUndo']||!_0x5b8cc1['batch']['isLocal'])return!0x1;const _0x4b158e=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4b158e['trackChangesCommand']['value'])return!0x1;let _0x42bebd=!0x1;const _0xa2f47=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xdd7a70=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x212d07=>'attribute'==_0x212d07['type'])['filter'](_0x205443=>_0xa2f47['includes'](_0x205443['attributeKey']));if(0x0==_0xdd7a70['length'])return _0x42bebd;for(const _0xc433 of _0xdd7a70){const _0x370971=_0x4b158e['_findSuggestions'](_0xc433['range'],'attribute')['filter'](_0x56dcff=>!_0x56dcff['meta']['isNextTo'])['map'](_0x1163fd=>_0x1163fd['suggestion'])['filter'](_0x15f440=>{const _0x4e10c1=_0x4b158e['_getAttributeKey'](_0x15f440);return _0xa2f47['includes'](_0x4e10c1);});if(_0x370971['length']){for(const _0x5dab6e of _0x370971)_0x5b8cc1['removeMarker'](_0x5dab6e['getFirstMarker']());_0x42bebd=!0x0;}}return _0x42bebd;}['assureChains'](){const _0x1b734a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b3552=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x10ac45;const _0xb73337=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x42fe72=>{if(_0x42fe72['data']['oldRange']||!_0x42fe72['data']['newRange'])return null;if(!_0x42fe72['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x11122a}=_0x1b734a['_splitMarkerName'](_0x42fe72['name']);if(!_0x1b734a['hasSuggestion'](_0x11122a))return null;const _0x4375f0=_0x1b734a['getSuggestion'](_0x11122a);return _0x4b3552['includes'](_0x4375f0['data']['key']);})['map'](_0x12e86f=>{const {id:_0xfd8485}=_0x1b734a['_splitMarkerName'](_0x12e86f['name']),_0x1e3bc5=_0x1b734a['getSuggestion'](_0xfd8485);return _0x10ac45=_0x1e3bc5['attributes']['groupId'],_0x1e3bc5['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xb73337['size'])return;const _0x2ff093=_0x1b734a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x244c20=>'attribute'==_0x244c20['type']&&_0x244c20['data']&&_0x4b3552['includes'](_0x244c20['data']['key'])&&_0x244c20['attributes']['groupId']!=_0x10ac45)['map'](_0x33fc5e=>({'listItem':_0x33fc5e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x33fc5e['attributes']['groupId']})),_0x4b133e=new Set();for(const {groupId:_0x3245c3,listItem:_0x1c2672}of _0x2ff093)_0xb73337['has'](_0x1c2672)&&_0x4b133e['add'](_0x3245c3);for(const _0x535cae of _0x1b734a['getSuggestions']())_0x4b133e['has'](_0x535cae['attributes']['groupId'])&&_0x535cae['setAttribute']('groupId',_0x10ac45);}['_supportLegacySuggestions'](){const _0x3a9ca2=this['editor'],_0x1397af=_0x3a9ca2['locale'],_0x16c835=_0x3a9ca2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x16c835['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x495430,_0x30e491){const _0x1b7e58=[];for(let _0x536a9f of _0x495430)_0x536a9f['start']['nodeAfter']===_0x536a9f['end']['parent']&&(_0x536a9f=_0x3a9ca2['model']['createRange'](_0x3a9ca2['model']['createPositionAt'](_0x536a9f['start']['nodeAfter'],0x0))),_0x1b7e58['push'](_0x536a9f);_0x3a9ca2['model']['change'](_0x188bfd=>{const _0x232736=_0x3a9ca2['model']['document']['selection'],_0x1f97ce=Array['from'](_0x232736['getRanges']())['map'](_0xbc3750=>ModelLiveRange['fromRange'](_0xbc3750));_0x188bfd['setSelection'](_0x1b7e58),_0x3a9ca2['commands']['get'](_0x30e491['commandName'])['refresh'](),_0x30e491['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3a9ca2['execute'](_0x30e491['commandName'],..._0x30e491['commandParams']),_0x188bfd['setSelection'](_0x1f97ce);for(const _0x2222b7 of _0x1f97ce)_0x2222b7['detach']();});}),_0x16c835['descriptionFactory']['registerElementLabel'](function(_0x40ec72){const _0x1d991b=!_0x3a9ca2['model']['schema']['isObject'](_0x40ec72),_0x59a5c2=_0x40ec72['previousSibling'],_0x7f93fa=_0x40ec72['nextSibling'],_0x452f41=_0x40ec72['getAttribute']('listItemId'),_0x41396f=!_0x59a5c2||_0x59a5c2['getAttribute']('listItemId')!==_0x452f41,_0x555ae5=!_0x7f93fa||_0x7f93fa['getAttribute']('listItemId')!==_0x452f41;return _0x1d991b&&Boolean(_0x452f41)&&_0x41396f&&_0x555ae5;},_0x3a1218=>getTranslation$1(_0x1397af,'ELEMENT_LIST_ITEM',_0x3a1218));}['_registerLegacyDescription'](){const _0x18060c=this['editor'],_0x29d2d1=_0x18060c['locale'];function _0x104076(_0x48b796){const _0x1a9adc=_0x18060c['commands']['get']('bulletedList')['value'],_0x4705c5=_0x18060c['commands']['get']('numberedList')['value'];return'numberedList'===_0x48b796?_0x1a9adc:_0x4705c5;}_0x18060c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2f3c5b){if('formatBlock'!=_0x2f3c5b['type'])return;const {data:_0x48301b}=_0x2f3c5b;if(!_0x48301b)return;let _0x387bb4,_0x4b3320,_0x43591d,_0x37351d;switch(_0x48301b['commandName']){case'bulletedList':_0x43591d=_0x48301b['commandParams'][0x0]['forceValue'],_0x37351d=_0x104076(_0x48301b['commandName']),_0x387bb4=_0x43591d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x37351d&&_0x18060c['config']['get']('list.multiBlock')||(_0x387bb4='*Change\x20to:*\x20%0'),_0x4b3320={'type':'format','content':getTranslation$1(_0x29d2d1,_0x387bb4,getTranslation$1(_0x29d2d1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x43591d=_0x48301b['commandParams'][0x0]['forceValue'],_0x37351d=_0x104076(_0x48301b['commandName']),_0x387bb4=_0x43591d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x37351d&&_0x18060c['config']['get']('list.multiBlock')||(_0x387bb4='*Change\x20to:*\x20%0'),_0x4b3320={'type':'format','content':getTranslation$1(_0x29d2d1,_0x387bb4,getTranslation$1(_0x29d2d1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x387bb4='*Indent:*\x20%0',_0x4b3320={'type':'format','content':getTranslation$1(_0x29d2d1,_0x387bb4,getTranslation$1(_0x29d2d1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x387bb4=function(_0x53939f){const _0x301e9a=_0x53939f['getFirstRange']();let _0x12783a=_0x301e9a['start']['nodeAfter'];for(;_0x12783a&&_0x301e9a['containsItem'](_0x12783a);){if(_0x12783a['getAttribute']('listIndent')>0x0)return!0x1;_0x12783a=_0x12783a['nextSibling'];}return!0x0;}(_0x2f3c5b)?getTranslation$1(_0x29d2d1,'*Format:*\x20remove\x20from\x20%0',getTranslation$1(_0x29d2d1,function(_0x2325be){return'ELEMENT_'+_0x2325be['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2f3c5b))):getTranslation$1(_0x29d2d1,'*Outdent:*\x20%0',getTranslation$1(_0x29d2d1,'ELEMENT_LIST_ITEM')),_0x4b3320={'type':'format','content':_0x387bb4};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x48301b['multipleBlocks']&&(_0x387bb4='*Merge:*\x20%0',_0x4b3320={'type':'deletion','content':getTranslation$1(_0x29d2d1,_0x387bb4,getTranslation$1(_0x29d2d1,'ELEMENT_LIST_ITEM'))});}return _0x4b3320;});}}function checkSiblingsListItemId(_0x3a5c28){let _0x3d80b9=_0x3a5c28['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3d80b9;){const _0x2b7b95=_0x3d80b9['getAttribute']('listItemId');if(!_0x2b7b95)return!0x1;if(_0x2b7b95==_0x3a5c28['data']['newValue'])return'newValue';if(_0x2b7b95==_0x3a5c28['data']['oldValue'])return'oldValue';_0x3d80b9=_0x3d80b9['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2ba1d2=this['editor']['config']['get']('list.properties'),_0xfd9313=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ba1d2['styles']&&_0xfd9313['enableDefaultAttributesIntegration']('listStyle'),_0x2ba1d2['reversed']&&_0xfd9313['enableDefaultAttributesIntegration']('listReversed'),_0x2ba1d2['startIndex']&&_0xfd9313['enableDefaultAttributesIntegration']('listStart');const _0x126da2={'type':'format','content':''};_0xfd9313['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x31b941=this['editor']['locale'];_0xfd9313['descriptionFactory']['registerAttributeLabel']('listReversed',getTranslation$1(_0x31b941,'FORMAT_LIST_REVERSED')),_0xfd9313['descriptionFactory']['registerDescriptionCallback'](_0x1acd94=>{const {data:_0x131fcf}=_0x1acd94;if(_0x131fcf&&'listReversed'==_0x131fcf['key'])return null==_0x131fcf['newValue']||0x0==_0x131fcf['newValue']&&null==_0x131fcf['oldValue']?_0x126da2:void 0x0;}),_0xfd9313['descriptionFactory']['registerAttributeLabel']('listStart',getTranslation$1(_0x31b941,'FORMAT_LIST_START')),_0xfd9313['descriptionFactory']['registerDescriptionCallback'](_0x484b1f=>{const {data:_0x81d201}=_0x484b1f;if(_0x81d201&&'listStart'==_0x81d201['key'])return null==_0x81d201['newValue']||0x1==_0x81d201['newValue']&&null==_0x81d201['oldValue']?_0x126da2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4dc80e=>{if(_0x4dc80e['batch']['isUndo'])return!0x1;let _0x4723f1=!0x1;const _0x5d47d9=_0xfd9313['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x307da5=>{const _0x2d2fb9=_0xfd9313['_getAttributeKey'](_0x307da5);return'listStart'==_0x2d2fb9||'listReversed'==_0x2d2fb9;});for(const _0x3986c0 of _0x5d47d9){const _0x359b0d=_0x3986c0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x359b0d||'customNumbered'==_0x359b0d)continue;_0xfd9313['_findSuggestions'](_0x3986c0['getFirstRange'](),'attribute')['find'](_0x229002=>'listType'==_0xfd9313['_getAttributeKey'](_0x229002['suggestion']))||(_0x4dc80e['removeMarker'](_0x3986c0['getFirstMarker']()),_0x4723f1=!0x0);}return _0x4723f1;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x42f6cb){const _0x233eda=this['editor']['locale'],{data:_0x46f145}=_0x42f6cb,_0x26e679={'type':'format','content':''};if(!_0x46f145||'listStyle'!=_0x46f145['key'])return;if(!_0x46f145['oldValue'])return'default'==_0x46f145['newValue']?_0x26e679:{'type':'format','content':''+getTranslation$1(_0x233eda,'*Set\x20format:*\x20%0',getTranslation$1(_0x233eda,this['_getTranslationKeyForListStyle'](_0x46f145['newValue'])))};if(!_0x46f145['newValue']){if('default'==_0x46f145['oldValue'])return _0x26e679;let _0x40d524=_0x42f6cb['head'];for(;_0x40d524;){if(_0x40d524['data']&&'listType'==_0x40d524['data']['key']&&_0x40d524['data']['newValue'])return _0x26e679;_0x40d524=_0x40d524['next'];}return{'type':'format','content':''+getTranslation$1(_0x233eda,'*Remove\x20format:*\x20%0',getTranslation$1(_0x233eda,this['_getTranslationKeyForListStyle'](_0x46f145['oldValue'])))};}if('default'!=_0x46f145['newValue'])return{'type':'format','content':''+getTranslation$1(_0x233eda,'*Set\x20format:*\x20%0',getTranslation$1(_0x233eda,this['_getTranslationKeyForListStyle'](_0x46f145['newValue'])))};let _0x17d8db=_0x42f6cb['head'];for(;_0x17d8db;){if(_0x17d8db['data']&&'listType'==_0x17d8db['data']['key']&&_0x17d8db['data']['newValue']&&_0x17d8db['data']['oldValue'])return _0x26e679;_0x17d8db=_0x17d8db['next'];}return{'type':'format','content':getTranslation$1(_0x233eda,'*Set\x20format:*\x20%0',getTranslation$1(_0x233eda,'ELEMENT_'+_0x42f6cb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2f7a59=this['editor'],_0x2c6865=_0x2f7a59['locale'];_0x2f7a59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b7023=>{if('formatBlock'!=_0x2b7023['type'])return;const {data:_0xa1a90c}=_0x2b7023;if(!_0xa1a90c)return;let _0x2bd558,_0x1ebe86;switch(_0xa1a90c['commandName']){case'listStyle':_0x2bd558='*Change\x20to:*\x20%0',_0x1ebe86={'type':'format','content':getTranslation$1(_0x2c6865,_0x2bd558,getTranslation$1(_0x2c6865,this['_getTranslationKeyForListStyle'](_0xa1a90c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2bd558=_0xa1a90c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1ebe86={'type':'format','content':getTranslation$1(_0x2c6865,_0x2bd558)};break;case'listStart':_0x2bd558='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1ebe86={'type':'format','content':getTranslation$1(_0x2c6865,_0x2bd558,_0xa1a90c['commandParams'][0x0]['startIndex'])};}return _0x1ebe86;});}['_getTranslationKeyForListStyle'](_0x5f0372){return'ELEMENT_'+getListTypeFromListStyleType(_0x5f0372)['toUpperCase']()+'_LIST_'+_0x5f0372['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','arabic-indic'];function getListTypeFromListStyleType(_0x52e16e){return BULLETED_LIST_STYLE_TYPES['includes'](_0x52e16e)?'bulleted':NUMBERED_LIST_STYLE_TYPES['includes'](_0x52e16e)?'numbered':null;}class TrackChangesEmoji extends Plugin{['afterInit'](){const _0x40f0d5=this['editor'];_0x40f0d5['commands']['get']('emoji')&&_0x40f0d5['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends Plugin{static get['requires'](){return[Enter];}['init'](){const _0x2c14ae=this['editor'],_0x4c2cdb=_0x2c14ae['plugins']['get']('TrackChangesEditing'),_0x55612f=_0x2c14ae['commands']['get']('enter');_0x4c2cdb['enableCommand']('enter',()=>{_0x2c14ae['model']['change'](_0x4c991a=>{const _0x519534=_0x2c14ae['model']['document']['selection'],_0x56e3ba=_0x519534['getFirstPosition'](),_0x419dce=ModelLiveRange['fromRange'](_0x519534['getFirstRange']());if(_0x55612f['enterBlock'](_0x4c991a)){const _0x1fa479=_0x2c14ae['model']['createPositionAt'](_0x56e3ba['parent']['nextSibling'],0x0),_0x4ca8f1=_0x4c991a['createRange'](_0x56e3ba,_0x1fa479);_0x4c2cdb['markInsertion'](_0x4ca8f1);}else _0x4c991a['setSelection'](_0x4c991a['createRange'](_0x419dce['end']));_0x419dce['detach'](),_0x55612f['fire']('afterExecute',{'writer':_0x4c991a});});});}}class TrackChangesFindAndReplace extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5fca74=this['editor']['plugins']['get']('TrackChangesEditing');_0x5fca74['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5fca74['enableCommand']('findNext'),_0x5fca74['enableCommand']('findPrevious'),_0x5fca74['enableCommand']('replace'),_0x5fca74['enableCommand']('replaceAll');}['handleFindCommand'](_0x30d4e8,_0x22724b,_0x6aea12={}){const _0x5f3ea2=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x30d4e8(_0x175350=>{let _0xdeb26f=('string'==typeof _0x22724b?_0x5f3ea2['findByTextCallback'](_0x22724b,_0x6aea12):_0x22724b)(_0x175350);Array['isArray'](_0xdeb26f)&&(_0xdeb26f={'results':_0xdeb26f,'searchText':'string'==typeof _0x22724b?_0x22724b:''});const _0x5a7853=_0xdeb26f['results']['filter'](_0x25755f=>!0x1===this['_isInDeletionRange'](_0x25755f,_0x175350['item']));return{..._0xdeb26f,'results':_0x5a7853};},_0x6aea12);}['_isInDeletionRange'](_0x30ecd2,_0x59ad40){const _0x5a58b9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x59ad40,_0x30ecd2['start']),this['editor']['model']['createPositionAt'](_0x59ad40,_0x30ecd2['end']));for(const _0x22e4ac of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5a58b9['getIntersection'](_0x22e4ac['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 _0x472d46=this['editor']['locale'],_0x46dcd6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1f968f,commandName:_0x269850}of fontPlugins)this['editor']['plugins']['has'](_0x1f968f)&&_0x46dcd6['enableDefaultAttributesIntegration'](_0x269850);_0x46dcd6['descriptionFactory']['registerAttributeLabel']('fontSize',getTranslation$1(_0x472d46,'FORMAT_FONT_SIZE')),_0x46dcd6['descriptionFactory']['registerAttributeLabel']('fontFamily',getTranslation$1(_0x472d46,'FORMAT_FONT_FAMILY')),_0x46dcd6['descriptionFactory']['registerAttributeLabel']('fontColor',getTranslation$1(_0x472d46,'FORMAT_FONT_COLOR')),_0x46dcd6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',getTranslation$1(_0x472d46,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x237263=this['editor'],_0x36f80c=_0x237263['locale'];_0x237263['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37829b=>{const _0x68c1ae=_0x36f80c['t'];if('formatInline'!=_0x37829b['type'])return;const {data:_0x53a943}=_0x37829b;if(null!=_0x53a943){if('fontSize'==_0x53a943['commandName']){const _0x39faff=_0x53a943['commandParams'][0x0]['value'];if(_0x39faff){const _0x33d81d=_0x68c1ae(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x36f806=>_0x36f806['model']==_0x39faff)['title'])['toLowerCase']();return{'type':'format','content':getTranslation$1(_0x36f80c,'*Set\x20font\x20size:*\x20%0',_0x33d81d)};}return{'type':'format','content':getTranslation$1(_0x36f80c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x53a943['commandName']){const _0x43e159=_0x53a943['commandParams'][0x0]['value'];return _0x43e159?{'type':'format','content':getTranslation$1(_0x36f80c,'*Set\x20font\x20family:*\x20%0',_0x43e159)}:{'type':'format','content':getTranslation$1(_0x36f80c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x53a943['commandName']){const _0x4030f5=_0x53a943['commandParams'][0x0]['value'];if(_0x4030f5){const _0x517653=normalizeColorOptions(this['editor']['config']['get']('fontColor.colors'))['find'](_0x257a3b=>_0x257a3b['model']==_0x4030f5);let _0x51fb2f=_0x4030f5,_0x5b5a75='';return _0x517653&&(_0x51fb2f=_0x517653['label'],_0x5b5a75=_0x68c1ae(_0x51fb2f)['toLowerCase']()),{'type':'format','content':getTranslation$1(_0x36f80c,'*Set\x20font\x20color:*\x20%0',_0x5b5a75)['trim'](),'color':{'value':_0x4030f5,'title':_0x5b5a75||_0x51fb2f}};}return{'type':'format','content':getTranslation$1(_0x36f80c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x53a943['commandName']){const _0x4e7674=_0x53a943['commandParams'][0x0]['value'];if(_0x4e7674){const _0x306218=normalizeColorOptions(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3a126d=>_0x3a126d['model']==_0x4e7674);let _0x3ad0e8=_0x4e7674,_0x5cb14d='';return _0x306218&&(_0x3ad0e8=_0x306218['label'],_0x5cb14d=_0x68c1ae(_0x3ad0e8)['toLowerCase']()),{'type':'format','content':getTranslation$1(_0x36f80c,'*Set\x20font\x20background\x20color:*\x20%0',_0x5cb14d)['trim'](),'color':{'value':_0x4e7674,'title':_0x5cb14d||_0x3ad0e8}};}return{'type':'format','content':getTranslation$1(_0x36f80c,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends Plugin{['afterInit'](){const {plugins:_0x250c59}=this['editor'];_0x250c59['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x250c59['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x572646,plugins:_0x1b43d2,commands:_0xad96e2}=this['editor'],_0x2a072a=_0x1b43d2['get']('TrackChangesEditing');_0xad96e2['get']('footnotesStyle')&&_0x2a072a['enableDefaultAttributesIntegration']('footnotesStyle'),_0xad96e2['get']('footnotesStart')&&_0x2a072a['enableDefaultAttributesIntegration']('footnotesStart'),_0x2a072a['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',getTranslation$1(_0x572646,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x2a072a['descriptionFactory']['registerAttributeLabel']('footnotesListStart',getTranslation$1(_0x572646,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x2d3899=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x40454e,commands:_0x178c7a}=this['editor'];_0x178c7a['get']('insertFootnote')&&_0x2d3899['enableCommand']('insertFootnote'),_0x2d3899['descriptionFactory']['registerElementLabel']('footnoteRef',_0x35736a=>getTranslation$1(_0x40454e,'ELEMENT_FOOTNOTE_REF',_0x35736a)),_0x2d3899['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x202b78=>getTranslation$1(_0x40454e,'ELEMENT_FOOTNOTE_DEFINITION',_0x202b78)),_0x2d3899['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x2f54d0=>getTranslation$1(_0x40454e,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x2f54d0));}}class TrackChangesFormatPainter extends Plugin{['afterInit'](){const _0x15ad24=this['editor'],_0x52dd66=_0x15ad24['plugins']['get']('TrackChangesEditing'),_0x1dfc25=_0x15ad24['commands']['get']('copyFormat'),_0x2148b7=_0x15ad24['commands']['get']('pasteFormat');_0x1dfc25&&_0x2148b7&&(_0x52dd66['enableDefaultAttributesIntegration']('pasteFormat'),_0x52dd66['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x199cf5=this['editor'],_0x79ae31=_0x199cf5['locale'];_0x199cf5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c7a5c=>{if('formatBlock'!=_0x1c7a5c['type']&&'formatInline'!=_0x1c7a5c['type'])return;const {data:_0x54a0ac}=_0x1c7a5c;if(_0x54a0ac&&'pasteFormat'===_0x54a0ac['commandName']){const _0x2a22fb=[],_0x2c011d=_0x54a0ac['commandParams'][0x0];for(const [_0x36b6a2,_0x45341a]of Object['entries'](_0x2c011d))_0x2a22fb['push'](translateFormatting(_0x199cf5,_0x36b6a2,_0x45341a));return _0x2a22fb['length']?{'type':'format','content':getTranslation$1(_0x79ae31,'*Set\x20format\x20to:*\x20%0',_0x2a22fb['join'](',\x20'))}:{'type':'format','content':getTranslation$1(_0x79ae31,'*Remove\x20all\x20formatting*')};}});}}function translateFormatting(_0x3ff49b,_0x18f06e,_0x2cd75f){const _0x20bfa9=_0x3ff49b['locale']['t'],_0xeb72ac=_0x18f06e['split'](/(?=[A-Z])/)['join']('\x20'),_0xa351ec=_0x20bfa9(_0xeb72ac['charAt'](0x0)['toUpperCase']()+_0xeb72ac['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2cd75f)return _0xa351ec;if('fontColor'===_0x18f06e||'fontBackgroundColor'===_0x18f06e){const _0x53ca44=normalizeColorOptions(_0x3ff49b['config']['get']('fontColor.colors'))['find'](_0x567f46=>_0x567f46['model']==_0x2cd75f);return _0xa351ec+'\x20('+(_0x53ca44?_0x20bfa9(_0x53ca44['label'])['toLowerCase']():_0x2cd75f)+')';}if('fontSize'===_0x18f06e&&isNaN(parseFloat(_0x2cd75f))){const _0x314daa=_0x3ff49b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3ff49b['config']['get']('fontSize.options'))['find'](_0x14da5b=>_0x14da5b['model']==_0x2cd75f);return _0xa351ec+'\x20('+(_0x314daa?_0x20bfa9(_0x314daa['title'])['toLowerCase']():_0x2cd75f)+')';}return _0xa351ec+'\x20('+_0x2cd75f+')';}class TrackChangesHeading extends Plugin{['_headingOptions'];['afterInit'](){const _0x2d18e8=this['editor'];if(!_0x2d18e8['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2d18e8['config']['get']('heading.options');const _0x1e77b7=_0x2d18e8['locale'],_0x191ba1=_0x2d18e8['plugins']['get']('TrackChangesEditing');_0x191ba1['enableDefaultAttributesIntegration']('heading');for(const _0x2f405c of this['_headingOptions'])'paragraph'!=_0x2f405c['model']&&_0x191ba1['descriptionFactory']['registerElementLabel'](_0x2f405c['model'],_0x1181a1=>{const _0x416ba0=this['_getHeadingLevel'](_0x2f405c['model']);return null!==_0x416ba0?_0x42c689(_0x1181a1,_0x416ba0):_0xc3c17e(_0x1181a1,_0x2f405c['title']);});function _0x42c689(_0x379314,_0x10af21){return getTranslation$1(_0x1e77b7,'ELEMENT_HEADING',[_0x379314,_0x10af21]);}function _0xc3c17e(_0x19feff,_0x257646){return getTranslation$1(_0x1e77b7,'ELEMENT_HEADING_CUSTOM',[_0x19feff,_0x257646]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b979b=this['editor'],_0x51f7ba=_0x1b979b['locale'];function _0xf8b475(_0x51fafd,_0x3039a7){return getTranslation$1(_0x51f7ba,'ELEMENT_HEADING_CUSTOM',[_0x51fafd,_0x3039a7]);}_0x1b979b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6311f8=>{if('formatBlock'!=_0x6311f8['type'])return;const {data:_0x2f4b3f}=_0x6311f8;if(_0x2f4b3f&&'heading'==_0x2f4b3f['commandName']){const _0x40720b=_0x2f4b3f['commandParams'][0x0]['value'],_0x25f6db=this['_getHeadingLevel'](_0x40720b);if(null!==_0x25f6db)return{'type':'format','content':getTranslation$1(_0x51f7ba,'*Change\x20to:*\x20%0',(_0x3399dd=0x1,_0x3b1aeb=_0x25f6db,getTranslation$1(_0x51f7ba,'ELEMENT_HEADING',[_0x3399dd,_0x3b1aeb])))};const _0x50698d=this['_headingOptions']['find'](_0x10f43b=>_0x10f43b['model']===_0x40720b)['title'];return{'type':'format','content':getTranslation$1(_0x51f7ba,'*Change\x20to:*\x20%0',_0xf8b475(0x1,_0x50698d))};}var _0x3399dd,_0x3b1aeb;});}['_getHeadingLevel'](_0x444b32){const _0x1f6408=_0x444b32['match'](/^heading(\d+)/);if(_0x1f6408)return _0x1f6408[0x1];const _0x51a9b3=this['_headingOptions']?.['find'](_0xe76ba6=>_0xe76ba6['model']==_0x444b32);if(_0x51a9b3&&_0x51a9b3['view']){const _0x26c27d=_0x51a9b3['view'],_0x21d49a=(_0x26c27d['name']??_0x26c27d)['match'](/^h(\d+)/);if(_0x21d49a)return _0x21d49a[0x1];}return null;}}class TrackChangesHighlight extends Plugin{['afterInit'](){const _0x2a08dc=this['editor'];if(!_0x2a08dc['plugins']['has']('HighlightEditing'))return;const _0x5daedf=_0x2a08dc['plugins']['get']('TrackChangesEditing'),_0x3ef736=_0x2a08dc['locale'];_0x5daedf['enableDefaultAttributesIntegration']('highlight'),_0x5daedf['descriptionFactory']['registerAttributeLabel']('highlight',getTranslation$1(_0x3ef736,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x544a72=this['editor'],_0xc57a07=_0x544a72['locale'];_0x544a72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dc1ad=>{if('formatInline'!=_0x2dc1ad['type'])return;const {data:_0x10b051}=_0x2dc1ad;if(_0x10b051&&'highlight'==_0x10b051['commandName']){const _0x237177=_0xc57a07['t'],_0x4127cd=_0x10b051['commandParams'][0x0]['value'];if(_0x4127cd){const _0x5974f8=_0x544a72['config']['get']('highlight.options')['find'](_0x1739dc=>_0x1739dc['model']==_0x4127cd),_0x17a6e1=_0x237177(_0x5974f8['title'])['toLowerCase']();return{'type':'format','content':getTranslation$1(_0xc57a07,'*Set\x20highlight:*\x20%0',_0x17a6e1),'color':{'value':_0x5974f8['color'],'title':_0x5974f8['title']}};}return{'type':'format','content':getTranslation$1(_0xc57a07,'*Remove\x20highlight*',getTranslation$1(_0xc57a07,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends Plugin{['afterInit'](){const _0x275693=this['editor'];if(!_0x275693['plugins']['has']('HorizontalLineEditing'))return;_0x275693['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x50ab9c=_0x275693['plugins']['get']('TrackChangesEditing'),_0x36c2cc=_0x275693['locale'];_0x50ab9c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3d8b08=>getTranslation$1(_0x36c2cc,'ELEMENT_HORIZONTAL_LINE',_0x3d8b08));}}class TrackChangesHtmlEmbed extends Plugin{['afterInit'](){const _0x5d36cd=this['editor'];if(!_0x5d36cd['plugins']['has']('HtmlEmbed'))return;const _0xd58054=_0x5d36cd['plugins']['get']('TrackChangesEditing'),_0x14949b=_0x5d36cd['locale'];_0xd58054['descriptionFactory']['registerElementLabel']('rawHtml',_0x57d6da=>getTranslation$1(_0x14949b,'ELEMENT_HTML_EMBED',_0x57d6da)),_0xd58054['enableDefaultAttributesIntegration']('htmlEmbed'),_0xd58054['descriptionFactory']['registerDescriptionCallback'](_0xcc86db=>{if('attribute'!=_0xcc86db['type'])return;const {data:_0x1a3030}=_0xcc86db;if(_0x1a3030&&'value'==_0x1a3030['key']&&_0xcc86db['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2d47b6=getTranslation$1(_0x14949b,'ELEMENT_HTML_EMBED');return{'type':'format','content':getTranslation$1(_0x14949b,'*Change\x20%0\x20content*',_0x2d47b6)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10634b=this['editor'],_0x42a017=_0x10634b['locale'];_0x10634b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5be090=>{if('formatBlock'!=_0x5be090['type'])return;const {data:_0x1f987a}=_0x5be090;if(_0x1f987a&&'htmlEmbed'==_0x1f987a['commandName']){const _0x2457c0=getTranslation$1(_0x42a017,'ELEMENT_HTML_EMBED');return{'type':'format','content':getTranslation$1(_0x42a017,'*Change\x20%0\x20content*',_0x2457c0)};}});}}class TrackChangesImage extends Plugin{['afterInit'](){const _0x2b0300=this['editor'];if(!_0x2b0300['plugins']['has']('ImageEditing'))return;const _0x380356=_0x2b0300['plugins']['get']('TrackChangesEditing'),_0x420825=_0x2b0300['plugins']['get']('ImageUtils'),_0x5067c7=_0x2b0300['locale'];_0x380356['enableCommand']('insertImage'),_0x380356['descriptionFactory']['registerElementLabel']('imageBlock',_0x33b0b5=>getTranslation$1(_0x5067c7,'ELEMENT_IMAGE',_0x33b0b5)),_0x380356['descriptionFactory']['registerElementLabel']('imageInline',_0x1b1398=>getTranslation$1(_0x5067c7,'ELEMENT_INLINE_IMAGE',_0x1b1398)),_0x380356['descriptionFactory']['registerElementLabel']('caption',()=>getTranslation$1(_0x5067c7,'ELEMENT_CAPTION')),_0x2b0300['plugins']['has']('ImageUploadEditing')&&_0x380356['enableCommand']('uploadImage'),_0x2b0300['plugins']['has']('ImageBlockEditing')&&_0x2b0300['plugins']['has']('ImageInlineEditing')&&(_0x380356['enableCommand']('imageTypeInline',(_0x1e8769,_0x5c2655)=>{const _0x228713=_0x420825['getClosestSelectedImageElement'](_0x2b0300['model']['document']['selection']);_0x2b0300['model']['change'](()=>{_0x380356['markBlockFormat'](_0x228713,{'commandName':'imageTypeInline','commandParams':[_0x5c2655]},[],'convertBlockImageToInline');});}),_0x380356['enableCommand']('imageTypeBlock',(_0x3ddc1a,_0x4685ba)=>{_0x2b0300['model']['change'](_0x15cff9=>{let _0x5875e3=_0x420825['getClosestSelectedImageElement'](_0x2b0300['model']['document']['selection']),_0x2e0d37=_0x15cff9['createRangeOn'](_0x5875e3);const _0x184ed6=ModelLivePosition['fromPosition'](_0x2e0d37['start'],'toPrevious'),_0x52096c=ModelLivePosition['fromPosition'](_0x2e0d37['end'],'toNext');_0x380356['forceDefaultExecution'](()=>_0x3ddc1a(_0x4685ba)),_0x5875e3=_0x420825['getClosestSelectedImageElement'](_0x2b0300['model']['document']['selection']),_0x2e0d37=_0x15cff9['createRangeOn'](_0x5875e3);const _0x1abe96=_0x15cff9['createRange'](_0x184ed6,_0x52096c);_0x184ed6['detach'](),_0x52096c['detach'](),_0x380356['markBlockFormat'](_0x5875e3,{'commandName':'imageTypeInline','commandParams':[_0x4685ba]},[],'convertInlineImageToBlock'),_0x1abe96['start']['isBefore'](_0x2e0d37['start'])&&_0x380356['markInsertion'](_0x15cff9['createRange'](_0x1abe96['start'],_0x2e0d37['start']),'convertInlineImageToBlock'),_0x2e0d37['end']['isBefore'](_0x1abe96['end'])&&_0x380356['markInsertion'](_0x15cff9['createRange'](_0x2e0d37['end'],_0x1abe96['end']),'convertInlineImageToBlock');});}),_0x380356['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x380356['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x380356['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x380356['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x380356['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x380356['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3cf156])=>{const _0x600631=_0x380356['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x428e7f=_0x3cf156['start'],_0x576063=_0x3cf156['end'];const _0xf54e12=_0x2b0300['model']['schema']['getNearestSelectionRange'](_0x428e7f,'backward'),_0x210b51=_0x2b0300['model']['schema']['getNearestSelectionRange'](_0x576063,'forward');_0xf54e12['isCollapsed']&&(_0x428e7f=_0xf54e12['start']),_0x210b51['isCollapsed']&&(_0x576063=_0x210b51['end']),_0x600631([_0x2b0300['model']['createRange'](_0x428e7f,_0x576063)]);}),_0x380356['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x13631c),_0x380356['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x13631c)),_0x2b0300['plugins']['has']('ImageCaptionEditing')&&(_0x380356['enableCommand']('toggleImageCaption',(_0x457c0d,_0x199572)=>{const _0x4cbba5=_0x2b0300['plugins']['get']('ImageCaptionUtils');let _0x2273de=_0x420825['getClosestSelectedImageElement'](_0x2b0300['model']['document']['selection']),_0x38c32a=_0x4cbba5['getCaptionFromImageModelElement'](_0x2273de);_0x2b0300['model']['change'](()=>{if(_0x38c32a)return void _0x380356['markDeletion'](_0x2b0300['model']['createRangeOn'](_0x38c32a));const _0x4e04c6=_0x420825['isBlockImage'](_0x2273de);_0x457c0d(_0x199572),_0x2273de=_0x420825['getClosestSelectedImageElement'](_0x2b0300['model']['document']['selection']),_0x38c32a=_0x4cbba5['getCaptionFromImageModelElement'](_0x2273de),_0x380356['markInsertion'](_0x2b0300['model']['createRangeOn'](_0x38c32a),_0x4e04c6?null:'imageCaption');});}),_0x380356['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x13631c));const _0x49a54d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4067c7(_0x3fb784,_0x5d65c9){const _0x1729e0=_0x49a54d['findIndex'](({type:_0x3577f8,subType:_0x2636e1})=>_0x3fb784['type']==_0x3577f8&&_0x3fb784['subType']==_0x2636e1),_0x2749c8=_0x49a54d['findIndex'](({type:_0x4fe7de,subType:_0x5bf6be})=>_0x5d65c9['type']==_0x4fe7de&&_0x5d65c9['subType']==_0x5bf6be);if(_0x1729e0<0x0||_0x2749c8<0x0)return!0x1;const _0x4368e5=_0x3fb784['getFirstRange'](),_0x557393=_0x5d65c9['getFirstRange']();if((0x0==_0x1729e0||0x1==_0x1729e0)&&0x2==_0x2749c8&&_0x4368e5['isIntersecting'](_0x557393))return!0x0;if(0x2==_0x1729e0&&0x3==_0x2749c8){const _0x1e391d=_0x380356['_findSuggestions'](_0x4368e5,'insertion')['filter'](({suggestion:_0x47c47,meta:_0x153dfa})=>_0x153dfa['isOwn']&&'convertInlineImageToBlock'==_0x47c47['subType']);if(_0x1e391d['length']>0x1&&_0x557393['end']['isEqual'](_0x4368e5['start']))return!0x0;if(0x1==_0x1e391d['length']&&(_0x4368e5['start']['isEqual'](_0x557393['end'])||_0x4368e5['end']['isEqual'](_0x557393['start'])))return!0x0;}if(0x3==_0x1729e0&&0x3==_0x2749c8&&_0x4368e5['start']['isBefore'](_0x557393['start'])){const _0x5dc57a=_0x4368e5['end']['nodeAfter'],_0x4bbe04=_0x557393['start']['nodeBefore'];return _0x420825['isBlockImage'](_0x5dc57a)&&_0x5dc57a===_0x4bbe04;}return!0x1;}function _0x13631c(_0x1e08fb,_0x11c23b){return _0x4067c7(_0x1e08fb,_0x11c23b)?[_0x1e08fb,_0x11c23b]:_0x4067c7(_0x11c23b,_0x1e08fb)?[_0x11c23b,_0x1e08fb]:null;}_0x2b0300['plugins']['has']('ImageResize')&&(_0x380356['enableDefaultAttributesIntegration']('resizeImage'),_0x380356['descriptionFactory']['registerAttributeLabel']('resizedWidth',getTranslation$1(_0x5067c7,'FORMAT_IMAGE_SIZE'))),_0x2b0300['plugins']['has']('ImageTextAlternativeEditing')&&_0x380356['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2b0300['plugins']['has']('PictureEditing')&&_0x380356['descriptionFactory']['registerDescriptionCallback'](_0x14f290=>{if('attribute'!=_0x14f290['type'])return;const {data:_0x54e4bb}=_0x14f290;return _0x54e4bb&&'sources'==_0x54e4bb['key']?{'type':'format','content':''}:void 0x0;}),_0x2b0300['plugins']['has']('ImageSizeAttributes')&&_0x380356['descriptionFactory']['registerDescriptionCallback'](_0x4919c4=>{if('attribute'!=_0x4919c4['type'])return;const {data:_0x457083}=_0x4919c4;return!_0x457083||'width'!=_0x457083['key']&&'height'!=_0x457083['key']?void 0x0:{'type':'format','content':''};}),_0x380356['descriptionFactory']['registerDescriptionCallback'](_0x38df62=>{if(!!_0x49a54d['find'](({type:_0x4deef1,subType:_0x50056f})=>_0x38df62['type']==_0x4deef1&&_0x38df62['subType']==_0x50056f))return _0x38df62['previous']?{}:void 0x0;}),_0x380356['descriptionFactory']['registerDescriptionCallback'](_0x19f294=>{if('insertion'==_0x19f294['type']||'deletion'==_0x19f294['type']){const _0xe982b8=_0x19f294['getContainedElement']();if(_0xe982b8&&_0xe982b8['is']('element','caption'))return{'type':'insertion'==_0x19f294['type']?'addObject':'removeObject','element':_0xe982b8,'quantity':0x1};}}),_0x380356['descriptionFactory']['registerDescriptionCallback'](_0x4c1f14=>'formatBlock'==_0x4c1f14['type']&&'convertInlineImageToBlock'==_0x4c1f14['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4c1f14['type']&&'convertBlockImageToInline'==_0x4c1f14['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x380356['descriptionFactory']['registerDescriptionCallback'](_0x359a48=>{if('attribute'!=_0x359a48['type'])return;const {data:_0x4689c9}=_0x359a48;if(!_0x4689c9||'alt'!=_0x4689c9['key'])return;const _0x19f38d=_0x4689c9['newValue'];return _0x19f38d?{'type':'format','content':getTranslation$1(_0x5067c7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x19f38d+'\x22')}:{'type':'format','content':getTranslation$1(_0x5067c7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a62cb=this['editor'],_0x163122=_0x4a62cb['locale'];_0x4a62cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23e1df=>{if('formatBlock'!=_0x23e1df['type']&&'formatInline'!=_0x23e1df['type'])return;const {data:_0x21c72b}=_0x23e1df;if(_0x21c72b){if('imageTextAlternative'==_0x21c72b['commandName']){const _0x47bd59=_0x21c72b['commandParams'][0x0]['newValue'];return _0x47bd59?{'type':'format','content':getTranslation$1(_0x163122,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x47bd59+'\x22')}:{'type':'format','content':getTranslation$1(_0x163122,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x21c72b['commandName']){const _0x10f5ab=_0x21c72b['commandParams'][0x0]['width'];return _0x10f5ab?{'type':'format','content':getTranslation$1(_0x163122,'*Set\x20image\x20width:*\x20%0',_0x10f5ab)}:{'type':'format','content':getTranslation$1(_0x163122,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2b09a3=this['editor']['locale'],_0x74ab8f=this['editor']['plugins']['get']('TrackChangesEditing');_0x74ab8f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x74ab8f['descriptionFactory']['registerDescriptionCallback'](_0x28928b=>{if('attribute'!=_0x28928b['type'])return;const {data:_0x43a9b0}=_0x28928b;return _0x43a9b0&&'src'==_0x43a9b0['key']?_0x43a9b0['newValue']&&_0x43a9b0['oldValue']?{'type':'format','content':getTranslation$1(_0x2b09a3,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1a6e3a=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a6e3a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1a6e3a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a6e3a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1a6e3a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10e142=this['editor'],_0x326c71=_0x10e142['locale'];_0x10e142['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44d13b=>{if('formatBlock'!=_0x44d13b['type']&&'formatInline'!=_0x44d13b['type'])return;const {data:_0x3e41cd}=_0x44d13b;if(!_0x3e41cd||'replaceImageSource'!=_0x3e41cd['commandName'])return;return{'type':'format','content':getTranslation$1(_0x326c71,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends Plugin{['afterInit'](){const _0x153a57=this['editor'];if(!_0x153a57['plugins']['has']('ImageStyleEditing'))return;const _0xbfe1e7=_0x153a57['plugins']['get']('TrackChangesEditing'),_0x1b4088=_0x153a57['plugins']['get']('ImageUtils'),_0x363193={};_0xbfe1e7['enableCommand']('imageStyle',(_0x5182d1,_0x4333f6)=>{const _0x274680=_0x153a57['plugins']['get']('Users')['me'],_0x3e05bc=_0x153a57['commands']['get']('imageStyle');let _0x5d4fa8=_0x1b4088['getClosestSelectedImageElement'](_0x153a57['model']['document']['selection']),_0x294a9a=_0x153a57['model']['createRangeOn'](_0x5d4fa8),_0x1081f7=_0x3e05bc['value'];if(_0x1081f7==_0x4333f6['value'])return;const _0x45ef06={'commandName':'imageStyle','commandParams':[_0x4333f6],'formatGroupId':uid()};_0x153a57['model']['change'](()=>{if(_0xbfe1e7['getSuggestions']()['filter'](_0x21e154=>_0x21e154['isInContent']&&_0x274680==_0x21e154['author']&&('formatBlock'==_0x21e154['type']||'formatInline'==_0x21e154['type'])&&('imageStylePreApply'==_0x21e154['subType']||'imageStylePostApply'==_0x21e154['subType'])&&_0x21e154['getFirstRange']()['isEqual'](_0x294a9a))['forEach'](_0x231950=>_0xbfe1e7['discardSuggestion'](_0x231950['head'])),_0x5d4fa8=_0x1b4088['getClosestSelectedImageElement'](_0x153a57['model']['document']['selection']),_0x294a9a=_0x153a57['model']['createRangeOn'](_0x5d4fa8),_0x3e05bc['refresh'](),_0x153a57['commands']['get']('imageTypeInline')['refresh'](),_0x153a57['commands']['get']('imageTypeBlock')['refresh'](),_0x1081f7=_0x3e05bc['value'],_0x1081f7!=_0x4333f6['value'])return _0x1b4088['isInlineImage'](_0x5d4fa8)&&_0x3e05bc['shouldConvertImageType'](_0x4333f6['value'],_0x5d4fa8)?(_0x5182d1({..._0x4333f6,'setImageSizes':!0x1}),_0x5d4fa8=_0x1b4088['getClosestSelectedImageElement'](_0x153a57['model']['document']['selection']),void _0xbfe1e7['markBlockFormat'](_0x5d4fa8,{..._0x45ef06,'commandReversedParams':[{'value':_0x1081f7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1b4088['isBlockImage'](_0x5d4fa8)?_0xbfe1e7['markBlockFormat'](_0x5d4fa8,_0x45ef06,[],'imageStylePostApply'):_0xbfe1e7['markInlineFormat'](_0x294a9a,_0x45ef06,'imageStylePostApply'));});});for(const _0x116c72 of _0x153a57['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x363193[_0x116c72['name']]=_0x116c72['title']['toLowerCase']();_0xbfe1e7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xbfe1e7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xbfe1e7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xbfe1e7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5474b1])=>{_0x1b4088['setImageNaturalSizeAttributes'](_0x5474b1['getContainedElement']());}),_0xbfe1e7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x28fe8a,_0x3f4e73)=>{_0xbfe1e7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x28fe8a,{'commandName':_0x3f4e73['commandName'],'commandParams':_0x3f4e73['commandReversedParams']});}),_0xbfe1e7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x37756d,_0x50e584){if(_0x53ca23(_0x37756d,_0x50e584))return[_0x37756d,_0x50e584];if(_0x53ca23(_0x50e584,_0x37756d))return[_0x50e584,_0x37756d];return null;});const _0x5c2610=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x53ca23(_0x278170,_0x109838){const _0x4eebf6=_0x5c2610['findIndex'](({type:_0x3ce383,subType:_0x14a209})=>_0x278170['type']==_0x3ce383&&_0x278170['subType']==_0x14a209),_0x242298=_0x5c2610['findIndex'](({type:_0x2a11a6,subType:_0x45d44f})=>_0x109838['type']==_0x2a11a6&&_0x109838['subType']==_0x45d44f);if(_0x4eebf6<0x0||_0x242298<0x0)return!0x1;const _0xd98ad8=_0x278170['getFirstRange'](),_0x46467d=_0x109838['getFirstRange']();if((0x0==_0x4eebf6||0x1==_0x4eebf6)&&0x2==_0x242298&&_0xd98ad8['isIntersecting'](_0x46467d))return!0x0;if(0x2==_0x4eebf6&&0x3==_0x242298){const _0x20eec4=_0xbfe1e7['_findSuggestions'](_0xd98ad8,'insertion')['filter'](({suggestion:_0x582306,meta:_0x15e2ae})=>_0x15e2ae['isOwn']&&'convertInlineImageToBlock'==_0x582306['subType']);if(_0x20eec4['length']>0x1&&_0x46467d['end']['isEqual'](_0xd98ad8['start']))return!0x0;if(0x1==_0x20eec4['length']&&(_0xd98ad8['start']['isEqual'](_0x46467d['end'])||_0xd98ad8['end']['isEqual'](_0x46467d['start'])))return!0x0;}if(0x3==_0x4eebf6&&0x3==_0x242298&&_0xd98ad8['start']['isBefore'](_0x46467d['start'])){const _0x970b9a=_0xd98ad8['end']['nodeAfter'],_0x588018=_0x46467d['start']['nodeBefore'];return _0x1b4088['isBlockImage'](_0x970b9a)&&_0x970b9a===_0x588018;}return!0x1;}_0x153a57['model']['document']['registerPostFixer'](()=>{let _0x5e69b9=!0x1;const _0x3ce9e1=Array['from'](_0x153a57['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d1982,data:_0x4d020d}of _0x3ce9e1){const {group:_0x24b69d,type:_0x5ef2db,subType:_0x21ef56,id:_0x3bbe01}=_0xbfe1e7['_splitMarkerName'](_0x4d1982);if('suggestion'==_0x24b69d&&_0xbfe1e7['hasSuggestion'](_0x3bbe01)){if('formatBlock'==_0x5ef2db&&('imageStylePreApply'==_0x21ef56||'imageStylePostApply'==_0x21ef56)){const _0x17d0bb=_0xbfe1e7['getSuggestion'](_0x3bbe01);if(_0x4d020d['newRange']){const _0x500859=_0x17d0bb['getFirstRange']()['getContainedElement']();if(_0x1b4088['isBlockImage'](_0x500859))continue;_0xbfe1e7['discardSuggestion'](_0x17d0bb),_0x5e69b9=!0x0;}}if('insertion'==_0x5ef2db&&'imageCaption'==_0x21ef56&&!_0x4d020d['newRange']){const _0x531b2e=_0xbfe1e7['getSuggestion'](_0x3bbe01);_0x531b2e['next']&&_0x531b2e['next']['isInContent']&&(_0xbfe1e7['discardSuggestion'](_0x531b2e['next']),_0x5e69b9=!0x0);}}}return _0x5e69b9;}),this['_registerLegacyDescription'](_0x363193);}['_registerLegacyDescription'](_0x5e541b){const _0x7ab5f2=this['editor'],_0x972099=_0x7ab5f2['locale'];_0x7ab5f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e1bd4=>{if('formatBlock'!=_0x1e1bd4['type']&&'formatInline'!=_0x1e1bd4['type'])return;const {data:_0xfdb85e}=_0x1e1bd4;if(!_0xfdb85e||'imageStyle'!=_0xfdb85e['commandName'])return;const _0x344c19=_0xfdb85e['commandParams'][0x0]['value'];return _0x10717e('side'===_0x344c19?getTranslation$1(_0x972099,'FORMAT_SIDE_IMAGE'):_0x5e541b[_0x344c19]||_0x344c19);function _0x10717e(_0x7107b1){return{'type':'format','content':getTranslation$1(_0x972099,'*Format:*\x20%0',_0x7107b1)};}});}}class TrackChangesImportWord extends Plugin{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2500c8){super(_0x2500c8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xc4f87c=this['editor'],_0x4ea906=_0xc4f87c['commands']['get']('importWord'),_0x3865f4=_0xc4f87c['commands']['get']('trackChanges');_0x4ea906&&(_0x4ea906['on']('execute',(_0xbe19ea,[,_0x1ba2c5])=>{this['_trackChangesValueDuringImport']=_0x3865f4['value'],_0x1ba2c5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4ea906,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4ea906,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3865f4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xc4f87c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x29561a,_0x5a37cc){const {suggestions:_0x12f329}=_0x5a37cc,_0x944226=this['editor']['commands']['get']('trackChanges'),_0xeac70b=_0x944226['value'];this['_trackChangesValueDuringImport']!==_0xeac70b&&(_0x944226['execute'](),this['_trackChangesExecuted']=!0x0),_0x12f329&&_0x12f329['forEach'](({id:_0x12d399,type:_0x34757f,author:_0x55cb11,created_at:_0x470ba3})=>{const _0x238832={'id':_0x12d399,'type':_0x34757f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x55cb11,'createdAt':_0x470ba3?new Date(_0x470ba3):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x238832);});}}class TrackChangesIndent extends Plugin{['afterInit'](){const _0x52fd5e=this['editor'],_0x22c638=_0x52fd5e['plugins']['get']('TrackChangesEditing');if(_0x52fd5e['plugins']['has']('IndentEditing')&&(_0x22c638['enableCommand']('indent'),_0x22c638['enableCommand']('outdent')),_0x52fd5e['plugins']['has']('IndentBlock')){for(const _0x10c1ce of['indentBlock','outdentBlock'])_0x22c638['enableDefaultAttributesIntegration'](_0x10c1ce);if(_0x52fd5e['plugins']['has']('ListEditing')){for(const _0x2cc766 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x22c638['enableDefaultAttributesIntegration'](_0x2cc766);}}const _0x5f0b53=_0x52fd5e['locale'];_0x22c638['descriptionFactory']['registerAttributeLabel']('blockIndent',getTranslation$1(_0x5f0b53,'FORMAT_INDENT')),_0x22c638['descriptionFactory']['registerAttributeLabel']('blockIndentList',getTranslation$1(_0x5f0b53,'FORMAT_INDENT')),_0x22c638['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',getTranslation$1(_0x5f0b53,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f05ec=this['editor'],_0x4c8607=_0x4f05ec['locale'],_0x50239d=_0x4f05ec['plugins']['get']('TrackChangesEditing');_0x50239d['descriptionFactory']['registerDescriptionCallback'](_0x2f6c8c=>{if('formatBlock'!=_0x2f6c8c['type'])return;const {data:_0x39f422}=_0x2f6c8c;if(!_0x39f422)return;if('indentBlock'!=_0x39f422['commandName']&&'outdentBlock'!=_0x39f422['commandName'])return;const _0x22e63a=_0x2f6c8c['getItems']()[0x0],_0x500fa5=_0x50239d['descriptionFactory']['getItemLabel'](_0x22e63a);return'indentBlock'==_0x39f422['commandName']?{'type':'format','content':getTranslation$1(_0x4c8607,'*Indent:*\x20%0',_0x500fa5)}:'outdentBlock'==_0x39f422['commandName']?{'type':'format','content':getTranslation$1(_0x4c8607,'*Outdent:*\x20%0',_0x500fa5)}: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 _0x37191d=this['editor'];if(!_0x37191d['plugins']['has']('LinkEditing'))return;const _0x6ecda0=_0x37191d['plugins']['get']('TrackChangesEditing'),_0x16f448=_0x37191d['commands']['get']('link');_0x6ecda0['enableDefaultAttributesIntegration']('link'),_0x6ecda0['enableDefaultAttributesIntegration']('unlink');for(const _0x5b30a1 of _0x16f448['manualDecorators'])_0x6ecda0['descriptionFactory']['registerAttributeLabel'](_0x5b30a1['id'],'link\x20('+_0x5b30a1['label']['toLowerCase']()+')');_0x6ecda0['descriptionFactory']['registerDescriptionCallback'](_0x283cfd=>{if('attribute'!=_0x283cfd['type'])return;const {data:_0x4374a9}=_0x283cfd;if(!_0x4374a9||'linkHref'!=_0x4374a9['key'])return;const _0x84f549=_0x4374a9['newValue'],_0x54383c=_0x37191d['locale'];return{'type':'format','content':null==_0x84f549?getTranslation$1(_0x54383c,'*Remove\x20link*'):getTranslation$1(_0x54383c,'*Set\x20link:*\x20%0','\x22'+_0x84f549+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x249287=this['editor'],_0x4373de=_0x249287['locale'];_0x249287['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x427ec1=>{if('formatInline'!=_0x427ec1['type'])return;const {data:_0x428f95}=_0x427ec1;if(_0x428f95){if('link'==_0x428f95['commandName']){const _0x22c454=_0x428f95['commandParams'][0x0];return{'type':'format','content':getTranslation$1(_0x4373de,'*Set\x20link:*\x20%0','\x22'+_0x22c454+'\x22')};}return'unlink'==_0x428f95['commandName']?{'type':'format','content':getTranslation$1(_0x4373de,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends Plugin{['afterInit'](){const _0x2943fa=this['editor'],_0x100ffe=_0x2943fa['locale'];if(!_0x2943fa['plugins']['has']('LegacyListEditing'))return;const _0x11ee16=_0x2943fa['plugins']['get']('TrackChangesEditing'),_0x4d767a=_0x2943fa['plugins']['has']('LegacyTodoListEditing');function _0x1066bd(_0x212a8a){return()=>{const _0x2186d0=_0x2943fa['model']['document']['selection'],_0xb87e83=_0x2943fa['commands']['get'](_0x212a8a);if(_0xb87e83['value'])return void _0x2943fa['execute']('paragraph',{});const _0x28f9fb=_0x212a8a['slice'](0x0,-0x4),_0x49d969=getBlocksToMarkForListTypeChange(_0x2186d0['getSelectedBlocks'](),_0x28f9fb,_0x2943fa['model']['schema']);_0x2943fa['model']['change'](()=>{for(const _0x4724ab of _0x49d969)_0x11ee16['markBlockFormat'](_0x4724ab,{'commandName':_0x212a8a,'commandParams':[{'forceValue':!_0xb87e83['value']}],'formatGroupId':'blockName'},getBlocksAffectedByListTypeChange(_0x4724ab));});};}function _0x429122(_0x27ef29){return()=>{const _0x4856f5=getBlocksToMarkForIndentChange(_0x2943fa['model']['document']['selection']['getSelectedBlocks']()),_0x459961=_0x2943fa['model']['createRange'](_0x2943fa['model']['createPositionAt'](_0x4856f5[0x0],'before'),_0x2943fa['model']['createPositionAt'](_0x4856f5[_0x4856f5['length']-0x1],'end'));_0x2943fa['model']['change'](()=>{_0x11ee16['markBlockFormat'](_0x459961,{'commandName':_0x27ef29,'commandParams':[],'formatGroupId':'listIndent'},getBlocksAffectedByIndent(_0x4856f5));});};}_0x11ee16['enableCommand']('numberedList',_0x1066bd('numberedList')),_0x11ee16['enableCommand']('bulletedList',_0x1066bd('bulletedList')),_0x4d767a&&_0x11ee16['enableCommand']('todoList',_0x1066bd('todoList')),_0x11ee16['enableCommand']('indentList',_0x429122('indentList')),_0x11ee16['enableCommand']('outdentList',_0x429122('outdentList')),_0x4d767a&&_0x11ee16['enableCommand']('checkTodoList',()=>{const _0x2e169b=_0x2943fa['commands']['get']('checkTodoList'),_0xd8ebc0=Array['from'](_0x2e169b['_selectedElements']);_0xd8ebc0['filter'](_0x598926=>_0x598926['getAttribute']('todoListChecked')!=_0x2e169b['value']),_0x2943fa['model']['change'](()=>{for(const _0x3d8ea0 of _0xd8ebc0)_0x11ee16['markBlockFormat'](_0x3d8ea0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2e169b['value']}]});});}),_0x11ee16['descriptionFactory']['registerElementLabel']('listItem',_0x2af4d3=>getTranslation$1(_0x100ffe,'ELEMENT_LIST_ITEM',_0x2af4d3)),_0x11ee16['descriptionFactory']['registerDescriptionCallback'](_0x2fbddd=>{if('formatBlock'!=_0x2fbddd['type']&&'formatInline'!=_0x2fbddd['type'])return;const {data:_0x44b06e}=_0x2fbddd;if(_0x44b06e){if('numberedList'==_0x44b06e['commandName']||'bulletedList'==_0x44b06e['commandName']||'todoList'==_0x44b06e['commandName'])switch(_0x44b06e['commandName']['replace']('List','')){case'bulleted':return _0x1c4a9e(getTranslation$1(_0x100ffe,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1c4a9e(getTranslation$1(_0x100ffe,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1c4a9e(getTranslation$1(_0x100ffe,'ELEMENT_TODO_LIST'));}if('indentList'==_0x44b06e['commandName'])return{'type':'format','content':getTranslation$1(_0x100ffe,'*Indent:*\x20%0',getTranslation$1(_0x100ffe,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x44b06e['commandName'])return{'type':'format','content':getTranslation$1(_0x100ffe,'*Outdent:*\x20%0',getTranslation$1(_0x100ffe,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x44b06e['commandName'])return _0x44b06e['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x100ffe,'*Check\x20item*')}:{'type':'format','content':getTranslation$1(_0x100ffe,'*Uncheck\x20item*')};}function _0x1c4a9e(_0x205c32){return{'type':'format','content':getTranslation$1(_0x100ffe,'*Change\x20to:*\x20%0',_0x205c32)};}});}}function getBlocksToMarkForListTypeChange(_0xae612a,_0x2687ea,_0x33482e){let _0x2291a8=Array['from'](_0xae612a)['filter'](_0x4ae0fb=>checkCanBecomeListItem(_0x4ae0fb,_0x33482e));_0x2291a8=_0x2291a8['filter'](_0x9a52d5=>!_0x9a52d5['is']('element','listItem')||_0x9a52d5['getAttribute']('listType')!=_0x2687ea);const _0x3814dd=new Set();for(const _0x31bd55 of _0x2291a8)_0x31bd55['is']('element','listItem')?_0x3814dd['add'](getListHead(_0x31bd55)):_0x3814dd['add'](_0x31bd55);return Array['from'](_0x3814dd);}function checkCanBecomeListItem(_0xa1f40,_0x23e617){return _0x23e617['checkChild'](_0xa1f40['parent'],'listItem')&&!_0x23e617['isObject'](_0xa1f40);}function getBlocksToMarkForIndentChange(_0x115a15){let _0x44b930=Array['from'](_0x115a15);const _0x45eb73=_0x44b930['findIndex'](_0x4ae182=>'listItem'!=_0x4ae182['name']);return _0x45eb73>-0x1&&(_0x44b930=_0x44b930['slice'](0x0,_0x45eb73)),_0x44b930;}function getListHead(_0x562bc9){const _0x630b6=_0x562bc9['getAttribute']('listIndent');if(0x0==_0x630b6)return _0x562bc9;let _0xffdba2=_0x562bc9;for(;_0x562bc9['previousSibling']&&_0x562bc9['previousSibling']['is']('element','listItem');){const _0x4183ff=_0x562bc9['previousSibling']['getAttribute']('listIndent');if(_0x4183ff==_0x630b6)_0xffdba2=_0x562bc9['previousSibling'];else{if(_0x4183ff<_0x630b6)break;}_0x562bc9=_0x562bc9['previousSibling'];}return _0xffdba2;}function getBlocksAffectedByListTypeChange(_0x5f11a5){const _0x27249f=[];if(_0x5f11a5['is']('element','listItem')&&_0x5f11a5['getAttribute']('listIndent')>0x0){let _0x6b0c38=_0x5f11a5['nextSibling'];for(;_0x6b0c38&&'listItem'==_0x6b0c38['name']&&_0x6b0c38['getAttribute']('listIndent')==_0x5f11a5['getAttribute']('listIndent');)_0x27249f['push'](_0x6b0c38),_0x6b0c38=_0x6b0c38['nextSibling'];}return _0x27249f;}function getBlocksAffectedByIndent(_0x221577){const _0x499c82=new Set();for(const _0x256639 of _0x221577){let _0x106b17=_0x256639['nextSibling'];for(;_0x106b17&&_0x106b17['getAttribute']('listIndent')>_0x256639['getAttribute']('listIndent');)_0x499c82['add'](_0x106b17),_0x106b17=_0x106b17['nextSibling'];}return Array['from'](_0x499c82);}class TrackChangesLegacyListProperties extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x14acc9=this['editor']['config']['get']('list.properties'),_0x55c341=this['editor']['plugins']['get']('TrackChangesEditing');_0x14acc9['styles']&&_0x55c341['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x14acc9['reversed']&&_0x55c341['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x14acc9['startIndex']&&_0x55c341['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x55c341['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x35801b,_0x46069c={}){const _0x5c8439=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43da3f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5c8439['markMultiRangeBlockFormat'](_0x43da3f,{'commandName':'listStyle','commandParams':[{'type':_0x46069c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x360698,_0x197e97={}){const _0x9218cc=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcd7a5d=this['_getSuggestionBlocks'](_0x2e5b35=>_0x2e5b35['is']('element','listItem')&&'numbered'===_0x2e5b35['getAttribute']('listType'));if(_0xcd7a5d['length']<0x1)return;const _0x220fd2=_0xcd7a5d['map'](_0x49f052=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x49f052,'before'),this['editor']['model']['createPositionAt'](_0x49f052,0x0)));this['editor']['model']['change'](()=>{_0x9218cc['markMultiRangeBlockFormat'](_0x220fd2,{'commandName':'listReversed','commandParams':[{'reversed':_0x197e97['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x105ab1,_0x18d56a={}){const _0x5c4c94=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33b386=this['_getSuggestionBlocks'](_0x14be03=>_0x14be03['is']('element','listItem')&&'numbered'===_0x14be03['getAttribute']('listType'));if(_0x33b386['length']<0x1)return;const _0x10fd42=_0x33b386['map'](_0x4a3cb9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4a3cb9,'before'),this['editor']['model']['createPositionAt'](_0x4a3cb9,0x0)));this['editor']['model']['change'](()=>{_0x5c4c94['markMultiRangeBlockFormat'](_0x10fd42,{'commandName':'listStart','commandParams':[{'startIndex':_0x18d56a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5c9cc6){if('formatBlock'!=_0x5c9cc6['type']&&'formatInline'!=_0x5c9cc6['type'])return;const _0x4c43b3=this['editor']['locale'],{data:_0x6d30b8}=_0x5c9cc6;if(!_0x6d30b8)return;let _0x24137a,_0x45af8f;switch(_0x6d30b8['commandName']){case'listStyle':_0x24137a='*Change\x20to:*\x20%0',_0x45af8f={'type':'format','content':getTranslation$1(_0x4c43b3,_0x24137a,getTranslation$1(_0x4c43b3,this['_getTranslationKeyForListStyle'](_0x6d30b8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x24137a=_0x6d30b8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x45af8f={'type':'format','content':getTranslation$1(_0x4c43b3,_0x24137a)};break;case'listStart':_0x24137a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x45af8f={'type':'format','content':getTranslation$1(_0x4c43b3,_0x24137a,_0x6d30b8['commandParams'][0x0]['startIndex'])};}return _0x45af8f;}['_getSuggestionBlocksForListStyle'](){const _0x4fd3b6=this['editor']['plugins']['get']('LegacyListUtils');let _0x1c8225=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1c8225[0x0]?.['is']('element','listItem')&&_0x1c8225['unshift'](..._0x4fd3b6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1c8225[_0x1c8225['length']-0x1]?.['is']('element','listItem')&&_0x1c8225['push'](..._0x4fd3b6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1c8225=[...new Set(_0x1c8225)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1c8225=_0x1c8225['filter'](_0x6b7878=>_0x6b7878['is']('element','listItem'))),_0x1c8225;}['_getSuggestionBlocks'](_0x230740){const _0x27d698=this['editor']['plugins']['get']('LegacyListUtils');let _0xe412eb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x230740)['map'](_0x1564b3=>{const _0x135321=this['editor']['model']['createPositionAt'](_0x1564b3,0x0);return[..._0x27d698['getSiblingNodes'](_0x135321,'backward'),..._0x27d698['getSiblingNodes'](_0x135321,'forward')];})['flat']();return _0xe412eb=[...new Set(_0xe412eb)],_0xe412eb;}['_getTranslationKeyForListStyle'](_0x6b0435){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x6b0435)||'default')['toUpperCase']()+'_LIST_'+_0x6b0435['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends Plugin{['afterInit'](){const _0x52997b=this['editor'];if(!_0x52997b['plugins']['has']('MediaEmbedEditing'))return;const _0x57fadc=_0x52997b['plugins']['get']('TrackChangesEditing'),_0x130528=_0x52997b['locale'];_0x57fadc['enableCommand']('mediaEmbed'),_0x57fadc['descriptionFactory']['registerElementLabel']('media',_0x17491c=>getTranslation$1(_0x130528,'ELEMENT_MEDIA',_0x17491c));}}class TrackChangesMention extends Plugin{['afterInit'](){const _0x5b1387=this['editor'];_0x5b1387['plugins']['has']('MentionEditing')&&_0x5b1387['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends Plugin{['afterInit'](){const _0x6f82ab=this['editor'];if(!_0x6f82ab['plugins']['has']('MergeFieldsEditing'))return;const _0x1e6347=_0x6f82ab['plugins']['get']('TrackChangesEditing'),_0x435558=_0x6f82ab['locale'];_0x1e6347['enableCommand']('insertMergeField'),_0x1e6347['enableCommand']('insertMergeFieldBlock'),_0x1e6347['enableCommand']('insertMergeFieldImage'),_0x1e6347['descriptionFactory']['registerElementLabel']('mergeField',_0x313316=>getTranslation$1(_0x435558,'ELEMENT_MERGE_FIELD',_0x313316)),_0x1e6347['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x42e818=>getTranslation$1(_0x435558,'ELEMENT_MERGE_FIELD',_0x42e818)),_0x1e6347['descriptionFactory']['registerDescriptionCallback'](_0x4ce449=>{if('insertion'!=_0x4ce449['type']&&'deletion'!=_0x4ce449['type'])return;const _0x13ba72=_0x4ce449['getContainedElement']();if(null==_0x13ba72)return;const _0x52171d=_0x6f82ab['plugins']['get']('MergeFieldsEditing');let _0x4b9f59;switch(_0x52171d['getMergeFieldType'](_0x13ba72)){case null:return;case'image':{const _0x439260=_0x52171d['unwrapAffixes'](_0x13ba72['getAttribute']('src'));_0x4b9f59=_0x52171d['getLabel'](_0x439260)||_0x439260;break;}default:{const _0x3748bd=_0x13ba72['getAttribute']('id');_0x4b9f59=_0x52171d['getLabel'](_0x3748bd)||_0x3748bd;break;}}return'insertion'==_0x4ce449['type']?{'type':'insertion','content':getTranslation$1(_0x435558,'*Insert:*\x20%0','\x22'+_0x4b9f59+'\x22\x20'+getTranslation$1(_0x435558,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':getTranslation$1(_0x435558,'*Remove:*\x20%0','\x22'+_0x4b9f59+'\x22\x20'+getTranslation$1(_0x435558,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends Plugin{['afterInit'](){const _0x379093=this['editor'],_0x3def1e=_0x379093['plugins']['get']('TrackChangesEditing');_0x379093['plugins']['has']('MultiLevelList')&&(_0x3def1e['enableDefaultAttributesIntegration']('multiLevelList'),_0x3def1e['descriptionFactory']['registerDescriptionCallback'](_0x26ceae=>this['handleDescriptions'](_0x26ceae)));}['handleDescriptions'](_0x3f27cb){const _0x2ef732=this['editor']['locale'],{data:_0x36f6bb}=_0x3f27cb,_0x5d58b1={'type':'format','content':''};if(_0x36f6bb&&'listMarkerStyle'==_0x36f6bb['key']){if(!_0x36f6bb['oldValue'])return{'type':'format','content':getTranslation$1(_0x2ef732,'*Set\x20format:*\x20%0',getTranslation$1(_0x2ef732,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x36f6bb['newValue']+')'};if(!_0x36f6bb['newValue']){let _0x4c7ce3=_0x3f27cb['head'];for(;_0x4c7ce3;){if(_0x4c7ce3['data']&&'listType'==_0x4c7ce3['data']['key']&&_0x4c7ce3['data']['newValue'])return _0x5d58b1;_0x4c7ce3=_0x4c7ce3['next'];}return{'type':'format','content':getTranslation$1(_0x2ef732,'*Remove\x20format:*\x20%0',getTranslation$1(_0x2ef732,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x36f6bb['oldValue']+')'};}}}}class TrackChangesPageBreak extends Plugin{['afterInit'](){const _0x6e254f=this['editor'];if(!_0x6e254f['plugins']['has']('PageBreakEditing'))return;_0x6e254f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xa5cc85=_0x6e254f['plugins']['get']('TrackChangesEditing'),_0x278717=_0x6e254f['locale'];_0xa5cc85['descriptionFactory']['registerElementLabel']('pageBreak',_0xd65320=>getTranslation$1(_0x278717,'ELEMENT_PAGE_BREAK',_0xd65320));}}class TrackChangesParagraph extends Plugin{['afterInit'](){const _0x3526bb=this['editor'];if(!_0x3526bb['plugins']['has']('Paragraph'))return;const _0x57877c=_0x3526bb['locale'],_0x5384e8=_0x3526bb['plugins']['get']('TrackChangesEditing');_0x5384e8['descriptionFactory']['registerElementLabel']('paragraph',_0x5d4ed4=>getTranslation$1(_0x57877c,'ELEMENT_PARAGRAPH',_0x5d4ed4)),_0x5384e8['enableDefaultAttributesIntegration']('paragraph'),_0x5384e8['enableCommand']('insertParagraph');const _0xdd6947=_0x5384e8['descriptionFactory'];_0xdd6947['registerDescriptionCallback'](_0x280e30=>{if('insertion'!==_0x280e30['type'])return;const {start:_0x2be4bf,end:_0x532bc9}=_0x280e30['getFirstRange']();if(!_0x2be4bf['isTouching'](_0x532bc9)||!_0x2be4bf['nodeAfter'])return;const _0x2bb06f=_0x3526bb['model']['schema'],_0x1cbdf2=_0x2be4bf['nodeAfter'];return _0x2bb06f['isBlock'](_0x1cbdf2)&&!_0x2bb06f['isLimit'](_0x1cbdf2)&&_0x2bb06f['checkChild'](_0x1cbdf2,'$text')?{'type':'insertion','content':getTranslation$1(_0x57877c,'*Insert:*\x20%0',_0xdd6947['getItemLabel'](_0x1cbdf2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4be625=this['editor'],_0x301d5c=_0x4be625['locale'];_0x4be625['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x339384=>{if('formatBlock'!=_0x339384['type'])return;const {data:_0x56ca10}=_0x339384;return _0x56ca10&&'paragraph'==_0x56ca10['commandName']?{'type':'format','content':getTranslation$1(_0x301d5c,'*Change\x20to:*\x20%0',getTranslation$1(_0x301d5c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends Plugin{['afterInit'](){const _0x506054=this['editor'];_0x506054['commands']['get']('replaceSource')&&_0x506054['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends Plugin{['afterInit'](){const _0x26c057=this['editor'];if(!_0x26c057['plugins']['has']('RemoveFormatEditing'))return;_0x26c057['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x107c6=this['editor'];_0x107c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e2355=>{if('formatBlock'!=_0x5e2355['type']&&'formatInline'!=_0x5e2355['type'])return;const {data:_0x46a49b}=_0x5e2355;return _0x46a49b&&'removeFormat'==_0x46a49b['commandName']?{'type':'format','content':getTranslation$1(_0x107c6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends Plugin{['afterInit'](){const _0x58c5f6=this['editor'];if(!_0x58c5f6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2fea54=_0x58c5f6['plugins']['get']('TrackChangesEditing');_0x2fea54['enableCommand']('goToPreviousRestrictedEditingException'),_0x2fea54['enableCommand']('goToNextRestrictedEditingException');const _0x54ae86=_0x58c5f6['plugins']['get']('RestrictedEditingModeEditing');_0x54ae86['enableCommand']('trackChanges'),_0x54ae86['enableCommand']('acceptSuggestion'),_0x54ae86['enableCommand']('discardSuggestion'),_0x54ae86['enableCommand']('acceptAllSuggestions'),_0x54ae86['enableCommand']('discardAllSuggestions'),_0x54ae86['enableCommand']('acceptSelectedSuggestions'),_0x54ae86['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends Plugin{['afterInit'](){const _0x44c3f7=this['editor'];if(!_0x44c3f7['plugins']['has']('ShiftEnter'))return;const _0x19f355=_0x44c3f7['plugins']['get']('TrackChangesEditing');_0x19f355['enableCommand']('shiftEnter'),_0x19f355['descriptionFactory']['registerElementLabel']('softBreak',_0x209fb9=>getTranslation$1(_0x44c3f7['locale'],'ELEMENT_LINE_BREAK',_0x209fb9));}}function getRangesWithAttribute(_0x49993e,_0x3cf17f,_0x103d78){const _0x33c3b7=[];for(const _0x4bcfb9 of _0x3cf17f['getItems']())_0x4bcfb9['hasAttribute'](_0x49993e)&&_0x33c3b7['push'](_0x103d78['createRangeOn'](_0x4bcfb9));return _0x33c3b7;}class TrackChangesStandardEditingMode extends Plugin{['afterInit'](){const _0x4accc8=this['editor'],_0xf0ce6f=_0x4accc8['plugins']['get']('TrackChangesEditing');_0x4accc8['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0xf0ce6f['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x2cd336=this['editor'],_0x3b6cd9=_0x2cd336['model'],_0x254f36=_0x2cd336['locale'],_0x4fde76=_0x2cd336['plugins']['get']('TrackChangesEditing'),_0x3631be='restrictedEditingException',_0x56bbf3=_0x2cd336['commands']['get'](_0x3631be);_0x4fde76['enableCommand'](_0x3631be,(_0x3d8053,_0x28b58f={})=>{const _0x4e128c=_0x3b6cd9['document']['selection'];if(_0x4e128c['isCollapsed'])return void _0x3d8053(_0x28b58f);const _0xb5865a=void 0x0!==_0x28b58f['forceValue']?_0x28b58f['forceValue']:!_0x56bbf3['value'];_0x3b6cd9['change'](()=>{const _0x501986=Array['from'](_0x4e128c['getRanges']());for(const _0x1155c4 of _0x501986){const _0x1ea229=_0xb5865a?[_0x1155c4]:getRangesWithAttribute(_0x3631be,_0x1155c4,_0x3b6cd9);for(const _0x5d018d of _0x1ea229)_0x4fde76['markInlineFormat'](_0x5d018d,{'commandName':_0x3631be,'commandParams':[{'forceValue':_0xb5865a}]});}});}),_0x4fde76['descriptionFactory']['registerDescriptionCallback'](_0x56f24d=>{if('formatBlock'!=_0x56f24d['type']&&'formatInline'!=_0x56f24d['type'])return;const {data:_0x24f413}=_0x56f24d;return _0x24f413&&_0x24f413['commandName']==_0x3631be?_0x24f413['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x254f36,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':getTranslation$1(_0x254f36,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x4a3dcc=this['editor'],_0x171f6d=_0x4a3dcc['locale'],_0x200751=_0x4a3dcc['plugins']['get']('TrackChangesEditing'),_0x42a714='restrictedEditingExceptionBlock',_0x134633=this['editor']['commands']['get'](_0x42a714);_0x200751['enableCommand'](_0x42a714,(_0x157e5e,_0x1c0d4d={})=>{const _0x5f20c=this['editor']['model']['document']['selection'],_0x26cde4=_0x1c0d4d&&void 0x0!==_0x1c0d4d['forceValue']?_0x1c0d4d['forceValue']:!_0x134633['value'];let _0x504e23=[];if(_0x26cde4){const _0x4fb502=Array['from'](_0x5f20c['getSelectedBlocks']())['filter'](_0x10d494=>isInBlockException(_0x10d494)||checkCanBeWrapped(_0x10d494,this['editor']['model']['schema']));_0x504e23=getRangesOfBlockGroups(_0x4fb502,_0x4a3dcc['model']);}else{const _0x42d8c6=Array['from'](_0x5f20c['getSelectedBlocks']())['map'](_0x4355b0=>findExceptionContentBlock(_0x4355b0))['filter'](_0x5e48ff=>!!_0x5e48ff);_0x504e23=getRangesOfBlockGroups(_0x42d8c6,_0x4a3dcc['model']);}_0x4a3dcc['model']['change'](()=>{for(const _0x34e835 of _0x504e23)_0x200751['markBlockFormat'](_0x34e835,{'commandName':_0x42a714,'commandParams':[{'forceValue':_0x26cde4}]});});}),_0x200751['descriptionFactory']['registerDescriptionCallback'](_0xf32ca8=>{const {data:_0x38aa65}=_0xf32ca8;if(_0x38aa65&&_0x38aa65['commandName']==_0x42a714)return _0x38aa65['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x171f6d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':getTranslation$1(_0x171f6d,'FORMAT_RESTRICTED_DISABLED')};});}}function checkCanBeWrapped(_0x48b98d,_0x48e9c9){const _0x2e7e37=_0x48e9c9['createContext'](_0x48b98d['parent']);return!!_0x48e9c9['checkChild'](_0x2e7e37,'restrictedEditingException')&&!!_0x48e9c9['checkChild'](_0x2e7e37['push']('restrictedEditingException'),_0x48b98d);}function isInBlockException(_0x2b7345){return!!_0x2b7345['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}function findExceptionContentBlock(_0x34f7e6){let _0x5a6f7a=_0x34f7e6;for(;_0x5a6f7a['parent'];){if('restrictedEditingException'==_0x5a6f7a['parent']['name'])return _0x5a6f7a;_0x5a6f7a=_0x5a6f7a['parent'];}return null;}class TrackChangesStylesDropdown extends Plugin{['afterInit'](){const _0x31efce=this['editor'];if(!_0x31efce['plugins']['has']('Style')||!_0x31efce['plugins']['has']('DataSchema'))return;const _0x5575b=_0x31efce['plugins']['get']('TrackChangesEditing'),_0xc905dc=_0x31efce['locale'],_0x44492f=_0x31efce['config']['get']('style')||{},_0x3522b0=_0x31efce['plugins']['get']('GeneralHtmlSupport'),_0x312e29=_0x31efce['plugins']['get']('StyleUtils')['normalizeConfig'](_0x31efce['plugins']['get']('DataSchema'),_0x44492f['definitions']);_0x5575b['enableDefaultAttributesIntegration']('style');const _0x132202=new Set();for(const _0x3c3562 of _0x312e29['block']){const _0x1822c7=_0x3522b0['getGhsAttributeNameForElement'](_0x3c3562['element']);_0x132202['add'](_0x1822c7);}const _0x2003b3=new Set();for(const _0x199f26 of _0x312e29['inline']){const _0x334d6c=_0x3522b0['getGhsAttributeNameForElement'](_0x199f26['element']);_0x2003b3['add'](_0x334d6c);for(const _0x197fdf of _0x199f26['ghsAttributes'])_0x2003b3['add'](_0x197fdf);}for(const _0xee2e2b of _0x132202)_0x5575b['descriptionFactory']['registerAttributeLabel'](_0xee2e2b,getTranslation$1(_0xc905dc,'FORMAT_STYLE'));for(const _0x3bce6f of _0x2003b3)_0x5575b['descriptionFactory']['registerAttributeLabel'](_0x3bce6f,getTranslation$1(_0xc905dc,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x322f02=this['editor'],_0x3402c1=_0x322f02['locale'];_0x322f02['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a521a=>{if('formatBlock'!=_0x3a521a['type']&&'formatInline'!=_0x3a521a['type'])return;const {data:_0x42909d}=_0x3a521a;return _0x42909d&&'style'===_0x42909d['commandName']?_0x42909d['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x3402c1,'*Set\x20format:*\x20%0',_0x42909d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':getTranslation$1(_0x3402c1,'*Remove\x20format:*\x20%0',_0x42909d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends Plugin{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3f9bce){super(_0x3f9bce),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x40039a=this['editor'],_0x269f22=_0x40039a['model']['document']['selection'];if(!_0x40039a['plugins']['has']('TableEditing'))return;const _0x3d84ed=_0x40039a['locale'],_0x4d06a3=_0x40039a['plugins']['get']('TrackChangesEditing'),_0x2d0146=_0x40039a['plugins']['get']('TableUtils');_0x4d06a3['descriptionFactory']['registerElementLabel']('table',_0xfcac9d=>getTranslation$1(_0x3d84ed,'ELEMENT_TABLE',_0xfcac9d)),this['_setupColumnsRowsFixing'](),_0x4d06a3['enableCommand']('insertTable'),_0x4d06a3['enableCommand']('selectTableRow'),_0x4d06a3['enableCommand']('selectTableColumn');for(const _0x5f962f of['insertTableRowAbove','insertTableRowBelow']){const _0x1ee1b0=_0x40039a['commands']['get'](_0x5f962f);_0x4d06a3['enableCommand'](_0x5f962f,_0x2da3a7=>{_0x40039a['model']['change'](_0x3de577=>{_0x2da3a7();const _0x21feb1='above'===_0x1ee1b0['order'],_0x50a3f2=_0x2d0146['getSelectionAffectedTableCells'](_0x269f22),_0x52fea8=_0x2d0146['getRowIndexes'](_0x50a3f2),_0x1a9e34=_0x21feb1?_0x52fea8['first']-0x1:_0x52fea8['last']+0x1,_0x303b8c=_0x50a3f2[0x0]['findAncestor']('table'),_0x1157ee=_0x2d0146['createTableWalker'](_0x303b8c,{'startRow':_0x1a9e34,'endRow':_0x1a9e34}),_0x27b84d=Array['from'](_0x1157ee)['map'](_0x48f1df=>_0x3de577['createRangeOn'](_0x48f1df['cell']));_0x4d06a3['markMultiRangeInsertion'](_0x27b84d,'tableRow');});});}for(const _0x21593c of['insertTableColumnLeft','insertTableColumnRight']){const _0x6827dc=_0x40039a['commands']['get'](_0x21593c);_0x4d06a3['enableCommand'](_0x21593c,_0xd46118=>{_0x40039a['model']['change'](_0x80dcae=>{_0xd46118();const _0x30407b='left'===_0x6827dc['order'],_0x524994=_0x2d0146['getSelectionAffectedTableCells'](_0x269f22),_0x1dec53=_0x2d0146['getColumnIndexes'](_0x524994),_0x548291=_0x30407b?_0x1dec53['first']-0x1:_0x1dec53['last']+0x1,_0x55836b=_0x524994[0x0]['findAncestor']('table'),_0x89d8fd=_0x2d0146['createTableWalker'](_0x55836b,{'startRow':0x0,'column':_0x548291,'includeAllSlots':!0x1}),_0x16f870=Array['from'](_0x89d8fd)['map'](_0x408e7d=>_0x80dcae['createRangeOn'](_0x408e7d['cell']));_0x4d06a3['markMultiRangeInsertion'](_0x16f870,'tableColumn');});});}for(const _0x24921a of['removeTableRow','removeTableColumn']){const _0xa87d86=_0x24921a['substr'](0xb),_0x75522a=_0xa87d86['toLowerCase'](),_0x1093a8=_0x75522a['substr'](0x0,0x3)+'span',_0x45e784='table'+_0xa87d86,_0x888fc4='min'+_0xa87d86,_0x4d16e1='max'+_0xa87d86;_0x4d06a3['enableCommand'](_0x24921a,()=>{_0x40039a['model']['change'](_0x3081ca=>{const _0x4be2c5=_0x2d0146['getSelectionAffectedTableCells'](_0x269f22),_0x4c9fde=_0x4be2c5[0x0]['findAncestor']('table');let _0x549297;if('removeTableRow'==_0x24921a){const _0x51b6ed=_0x2d0146['getRowIndexes'](_0x4be2c5);_0x549297={'startRow':_0x51b6ed['first'],'endRow':_0x51b6ed['last'],'includeAllSlots':!0x0};}else{const _0x4773f8=_0x2d0146['getColumnIndexes'](_0x4be2c5);_0x549297={'startColumn':_0x4773f8['first'],'endColumn':_0x4773f8['last'],'includeAllSlots':!0x0};}const _0xc1804d=_0x2d0146['createTableWalker'](_0x4c9fde,_0x549297),_0xa511f5=Array['from'](_0xc1804d)['map'](({cell:_0x218f2b})=>_0x218f2b),_0x36e807=uniqueValues(_0xa511f5['filter'](_0x5988d7=>_0x5988d7['hasAttribute'](_0x1093a8))),_0x223114=uniqueValues(_0xa511f5['filter'](_0x405996=>!_0x405996['hasAttribute'](_0x1093a8)))['map'](_0x23ebaa=>_0x3081ca['createRangeOn'](_0x23ebaa)),_0x3c1eab=_0x4d06a3['markMultiRangeDeletion'](_0x223114,_0x45e784);if(_0x3c1eab&&('tableRow'==_0x3c1eab['subType']||'tableColumn'==_0x3c1eab['subType'])){const _0xe3364f=this['_getSuggestionCoords'](_0x3c1eab);for(const _0x4a79a0 of _0x36e807){const _0x54b39b=_0x3081ca['createRangeOn'](_0x4a79a0),_0x566000=_0x2d0146['getCellLocation'](_0x4a79a0),_0x4d1a6e=_0x4a79a0['getAttribute'](_0x1093a8)-0x1,_0x4c4153=_0xe3364f[_0x888fc4],_0x1905b6=_0xe3364f[_0x4d16e1];_0x4c4153<=_0x566000[_0x75522a]&&_0x566000[_0x75522a]+_0x4d1a6e<=_0x1905b6&&_0x3c1eab['addRange'](_0x54b39b);}}});});}function _0x40b3e6(_0x4d7c7f){const _0x42ae22=Array['from'](_0x269f22['getRanges']())['map'](_0xb8a5c0=>ModelLiveRange['fromRange'](_0xb8a5c0));_0x40039a['model']['change'](_0x232a9d=>{const _0x403be5=_0x232a9d['batch'];_0x4d7c7f=_0x4d7c7f['filter'](_0x29e94a=>'$graveyard'!=_0x29e94a['root']['rootName']),_0x232a9d['setSelection'](_0x4d7c7f),_0x40039a['commands']['get']('removeTableRow')['refresh'](),_0x40039a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x40039a['model']['enqueueChange'](()=>{_0x40039a['model']['enqueueChange'](_0x403be5,_0x34eee1=>{const _0x561049=_0x42ae22['filter'](_0x15eeab=>'$graveyard'!=_0x15eeab['root']['rootName']);_0x561049['length']>0x0&&_0x34eee1['setSelection'](_0x561049);for(const _0x5953b8 of _0x42ae22)_0x5953b8['detach']();});});});}function _0x37b265(_0x2b7187){_0x40039a['model']['change'](_0xa2ea18=>{const _0x3dab4f=Array['from'](_0x269f22['getRanges']())['map'](_0x31249e=>ModelLiveRange['fromRange'](_0x31249e)),_0x1075ec=[];for(const _0x382179 of _0x2b7187)for(const _0x29558c of _0x382179['getItems']({'shallow':!0x0}))_0x1075ec['push'](_0x29558c);for(const _0x17a0dd of _0x1075ec)'$graveyard'!=_0x17a0dd['root']['rootName']&&(_0xa2ea18['setSelection'](_0xa2ea18['createPositionAt'](_0x17a0dd,0x0)),_0x40039a['commands']['get']('removeTableColumn')['refresh'](),_0x40039a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x14d222=_0x3dab4f['filter'](_0x680b90=>'$graveyard'!=_0x680b90['root']['rootName']);_0x14d222['length']>0x0&&_0xa2ea18['setSelection'](_0x14d222);for(const _0x18f303 of _0x3dab4f)_0x18f303['detach']();});}function _0x5818ad(_0x3e5b7a,_0x2a5730){return _0x2a5730['every'](_0x578fc9=>_0x3e5b7a['some'](_0x52cff0=>_0x52cff0['end']['isEqual'](_0x578fc9['start'])||_0x578fc9['end']['isEqual'](_0x52cff0['start'])));}function _0x572bbd(_0x29a976,_0xa2cf7){return!_0x29a976['some'](_0x3a4b1b=>_0xa2cf7['some'](_0x44de13=>_0x3a4b1b['isIntersecting'](_0x44de13)))&&_0x29a976['some'](_0x4cea2b=>_0xa2cf7['some'](_0x32a9ed=>_0x4cea2b['end']['isTouching'](_0x32a9ed['start'])));}_0x4d06a3['descriptionFactory']['registerDescriptionCallback'](_0x2e2221=>{if('insertion'!=_0x2e2221['type']&&'deletion'!=_0x2e2221['type'])return;const _0x21dd49=_0x2e2221['getContainedElement']();if(null!=_0x21dd49&&_0x21dd49['is']('element','table')){if('insertion'==_0x2e2221['type']){const _0x33642e=_0x2e2221['getItems']()['filter'](_0x2d70a2=>_0x2d70a2['is']('$textProxy'))['map'](_0xc58d1=>_0xc58d1['data']);if(_0x33642e['length'])return{'type':'insertion','content':getTranslation$1(_0x3d84ed,'*Insert:*\x20%0',getTranslation$1(_0x3d84ed,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x33642e['join']('\x20')+'\x22'))};}if('deletion'==_0x2e2221['type']){const _0x4d2f19=_0x2e2221['getItems']()['filter'](_0x75d3cc=>_0x75d3cc['is']('$textProxy'))['map'](_0x429cce=>_0x429cce['data']);if(_0x4d2f19['length'])return{'type':'deletion','content':getTranslation$1(_0x3d84ed,'*Remove:*\x20%0',getTranslation$1(_0x3d84ed,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4d2f19['join']('\x20')+'\x22'))};}}}),_0x4d06a3['descriptionFactory']['registerDescriptionCallback'](_0x308b97=>{if('tableRow'==_0x308b97['subType']){const _0x1d7bc9=_0x308b97['getItems']()['filter'](_0xe376a6=>_0xe376a6['is']('$textProxy'))['map'](_0x16dcf4=>_0x16dcf4['data']),_0x19b721=this['_getSuggestionCoords'](_0x308b97),_0x49c87e=_0x19b721['maxRow']-_0x19b721['minRow']+0x1;if('insertion'==_0x308b97['type'])return _0x1d7bc9['length']?{'type':'insertion','content':getTranslation$1(_0x3d84ed,'*Insert:*\x20%0',getTranslation$1(_0x3d84ed,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x49c87e,'\x22'+_0x1d7bc9['join']('\x20')+'\x22']))}:{'type':'insertion','content':getTranslation$1(_0x3d84ed,'*Insert:*\x20%0',getTranslation$1(_0x3d84ed,'ELEMENT_TABLE_ROW',_0x49c87e))};if('deletion'==_0x308b97['type'])return _0x1d7bc9['length']?{'type':'deletion','content':getTranslation$1(_0x3d84ed,'*Remove:*\x20%0',getTranslation$1(_0x3d84ed,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x49c87e,'\x22'+_0x1d7bc9['join']('\x20')+'\x22']))}:{'type':'deletion','content':getTranslation$1(_0x3d84ed,'*Remove:*\x20%0',getTranslation$1(_0x3d84ed,'ELEMENT_TABLE_ROW',_0x49c87e))};}if('tableColumn'==_0x308b97['subType']){const _0x51862d=_0x308b97['getItems']()['filter'](_0x38adea=>_0x38adea['is']('$textProxy'))['map'](_0x357e41=>_0x357e41['data']),_0x43d6b0=this['_getSuggestionCoords'](_0x308b97),_0x19b60e=_0x43d6b0['maxColumn']-_0x43d6b0['minColumn']+0x1;if('insertion'==_0x308b97['type'])return _0x51862d['length']?{'type':'insertion','content':getTranslation$1(_0x3d84ed,'*Insert:*\x20%0',getTranslation$1(_0x3d84ed,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x19b60e,'\x22'+_0x51862d['join']('\x20')+'\x22']))}:{'type':'insertion','content':getTranslation$1(_0x3d84ed,'*Insert:*\x20%0',getTranslation$1(_0x3d84ed,'ELEMENT_TABLE_COLUMN',_0x19b60e))};if('deletion'==_0x308b97['type'])return _0x51862d['length']?{'type':'deletion','content':getTranslation$1(_0x3d84ed,'*Remove:*\x20%0',getTranslation$1(_0x3d84ed,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x19b60e,'\x22'+_0x51862d['join']('\x20')+'\x22']))}:{'type':'deletion','content':getTranslation$1(_0x3d84ed,'*Remove:*\x20%0',getTranslation$1(_0x3d84ed,'ELEMENT_TABLE_COLUMN',_0x19b60e))};}}),_0x4d06a3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x40b3e6),_0x4d06a3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x40b3e6),_0x4d06a3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x37b265),_0x4d06a3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x37b265),_0x4d06a3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5818ad),_0x4d06a3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5818ad),_0x4d06a3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x572bbd),_0x4d06a3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x572bbd);}['_acceptFormatSuggestionCallbackFactory'](){const _0x593d48=this['editor'],_0x17e269=_0x593d48['model']['document']['selection'];return(_0x38ae50,_0x3ccc87)=>{_0x593d48['model']['change'](_0x42e91b=>{const {commandName:_0x43b70c,commandParams:_0x5474b3}=_0x3ccc87;let _0x13c54c=_0x38ae50[0x0]['end']['nodeBefore'];_0x5474b3&&_0x5474b3[0x0]&&!0x1===_0x5474b3[0x0]['forceValue']&&(_0x13c54c=_0x38ae50[0x0]['start']['nodeAfter']);const _0x3d8b6c=_0x42e91b['createRangeIn'](_0x13c54c);if('$graveyard'==_0x3d8b6c['root']['rootName'])return;const _0x96315d=Array['from'](_0x17e269['getRanges']())['map'](_0x4e527b=>ModelLiveRange['fromRange'](_0x4e527b));_0x42e91b['setSelection'](_0x3d8b6c),_0x593d48['commands']['get'](_0x43b70c)['refresh'](),_0x5474b3['push']({'forceDefaultExecution':!0x0}),_0x593d48['execute'](_0x43b70c,..._0x5474b3);const _0x27686c=_0x96315d['filter'](_0x5b2d1a=>'$graveyard'!=_0x5b2d1a['root']['rootName']);_0x27686c['length']>0x0&&_0x42e91b['setSelection'](_0x27686c);for(const _0x2932b7 of _0x96315d)_0x2932b7['detach']();});};}['_getCoordsForCells'](_0x46aaaf){const _0x2e85f1=this['editor']['plugins']['get']('TableUtils');let _0x19f6cf=Number['MAX_SAFE_INTEGER'],_0x37e4c4=Number['MIN_SAFE_INTEGER'],_0xfaeccf=Number['MAX_SAFE_INTEGER'],_0x4e72ea=Number['MIN_SAFE_INTEGER'];for(const _0x311b82 of _0x46aaaf){if('$graveyard'==_0x311b82['root']['rootName'])continue;const {row:_0x1baf7a,column:_0x229d93}=_0x2e85f1['getCellLocation'](_0x311b82),_0x5f55e6=_0x311b82['hasAttribute']('rowspan')?_0x311b82['getAttribute']('rowspan')-0x1:0x0,_0x20f320=_0x311b82['hasAttribute']('colspan')?_0x311b82['getAttribute']('colspan')-0x1:0x0;_0x19f6cf=_0x1baf7a<_0x19f6cf?_0x1baf7a:_0x19f6cf,_0x37e4c4=_0x1baf7a+_0x5f55e6>_0x37e4c4?_0x1baf7a+_0x5f55e6:_0x37e4c4,_0xfaeccf=_0x229d93<_0xfaeccf?_0x229d93:_0xfaeccf,_0x4e72ea=_0x229d93+_0x20f320>_0x4e72ea?_0x229d93+_0x20f320:_0x4e72ea;}return{'minRow':_0x19f6cf,'maxRow':_0x37e4c4,'minColumn':_0xfaeccf,'maxColumn':_0x4e72ea};}['_setupColumnsRowsFixing'](){const _0x4acbba=this['editor'],_0x3eef93=_0x4acbba['plugins']['get']('TrackChangesEditing'),_0x351b1d=_0x4acbba['plugins']['get']('TableUtils');_0x4acbba['model']['document']['on']('change:data',()=>{const _0x4aca9e=Array['from'](_0x4acbba['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7933d4,data:_0x13b7d8}of _0x4aca9e){const {group:_0x1fe758,id:_0x518193,subType:_0x1d1a95}=_0x3eef93['_splitMarkerName'](_0x7933d4);if('suggestion'!=_0x1fe758)continue;if(null!=_0x13b7d8['oldRange'])continue;const _0x1fb3d1=_0x3eef93['getSuggestion'](_0x518193);this['_tablePostFixingSubtypes']['includes'](_0x1d1a95)&&this['_tableSuggestions']['add'](_0x1fb3d1);}},{'priority':'low'});const _0x2995ff=(_0x403666,_0x328a92)=>{let _0x59524c=!0x1;const _0x429da9=_0x328a92['createRangeOn'](_0x403666),_0x13e353=_0x403666['findAncestor']('table'),_0x1f674b=_0x351b1d['getCellLocation'](_0x403666);for(const _0x5f3e70 of this['_tableSuggestions']){const _0x220b8f=_0x5f3e70['subType'],_0x4e2f08=_0x220b8f['startsWith']('tablePaste'),_0x43283e=_0x220b8f['substr'](_0x4e2f08?0xa:0x5),_0x1ca2ab=_0x43283e['toLowerCase'](),_0x345858=_0x1ca2ab['substr'](0x0,0x3)+'span',_0x56f456='min'+_0x43283e,_0x35de0d='max'+_0x43283e;if(!_0x5f3e70['isInContent'])continue;if(_0x13e353!=_0x5f3e70['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5f3e70['isIntersectingWithRange'](_0x429da9))continue;const _0x1aaba5=_0x403666['hasAttribute'](_0x345858)?_0x403666['getAttribute'](_0x345858)-0x1:0x0,_0x1757ce=this['_getSuggestionCoords'](_0x5f3e70),_0x53ffc8=_0x1757ce[_0x56f456],_0x1fc069=_0x1757ce[_0x35de0d];_0x53ffc8<=_0x1f674b[_0x1ca2ab]&&_0x1f674b[_0x1ca2ab]+_0x1aaba5<=_0x1fc069&&(_0x5f3e70['addRange'](_0x429da9),_0x59524c=!0x0);}return _0x59524c;};_0x4acbba['model']['document']['registerPostFixer'](_0x1adbed=>{let _0x534ec7=!0x1;for(const _0x235c6c of _0x4acbba['model']['document']['differ']['getChanges']())if('insert'==_0x235c6c['type']){if('tableRow'==_0x235c6c['name']){for(const _0xc1359f of _0x235c6c['position']['nodeAfter']['getChildren']())_0x534ec7=_0x534ec7||_0x2995ff(_0xc1359f,_0x1adbed);}else'tableCell'==_0x235c6c['name']&&(_0x534ec7=_0x534ec7||_0x2995ff(_0x235c6c['position']['nodeAfter'],_0x1adbed));}return _0x534ec7;});}['_getSuggestionCoords'](_0x10c4bb){return this['_getCoordsForCells'](_0x10c4bb['getRanges']()['map'](_0x53807e=>_0x53807e['start']['nodeAfter']));}}function uniqueValues(_0x376f44){return Array['from'](new Set(_0x376f44)['values']());}class TrackChangesTableMergeSplit extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x376c71=this['editor'],_0x365801=_0x376c71['model']['document']['selection'],_0x25d833=_0x376c71['locale'];if(!_0x376c71['plugins']['has']('TableEditing'))return;const _0x1ec9d0=_0x376c71['plugins']['get']('TrackChangesEditing'),_0x3f53a9=_0x376c71['plugins']['get']('TableUtils'),_0x5e6b2d=_0x376c71['plugins']['get'](TrackChangesTable);_0x5e6b2d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1ec9d0['enableCommand']('mergeTableCells',()=>{const _0x5e2b80=_0x3f53a9['getSelectionAffectedTableCells'](_0x376c71['model']['document']['selection']);_0x376c71['model']['change'](()=>{_0x1ec9d0['markMultiRangeBlockFormat'](_0x5e2b80,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x376c71['commands']['get']('mergeTableCells')['on']('execute',(_0xf56532,_0x40a9ff)=>{_0x376c71['commands']['get']('trackChanges')['value']&&(_0x40a9ff['length']>0x0&&_0x40a9ff[_0x40a9ff['length']-0x1]&&_0x40a9ff[_0x40a9ff['length']-0x1]['forceDefaultExecution']||_0x1ec9d0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xf56532['stop']());},{'priority':'highest'});for(const _0x58ddc9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xde654e=_0x376c71['commands']['get'](_0x58ddc9);_0x1ec9d0['enableCommand'](_0x58ddc9,()=>{const _0x3cf64=_0x376c71['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x488c0d=>_0x488c0d['is']('element','tableCell')),_0x2053ef=_0xde654e['value'];_0x376c71['model']['change'](()=>{_0x1ec9d0['markMultiRangeBlockFormat']([_0x3cf64,_0x2053ef],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2089be of['splitTableCellVertically','splitTableCellHorizontally']){const _0x145b2f=_0x376c71['commands']['get'](_0x2089be);_0x1ec9d0['enableCommand'](_0x2089be,()=>{const _0x3ae0f5=_0x3f53a9['getSelectionAffectedTableCells'](_0x376c71['model']['document']['selection'])[0x0],_0x2c78ee=_0x3ae0f5['findAncestor']('table'),{column:_0x4ad11c,row:_0xd07e08}=_0x3f53a9['getCellLocation'](_0x3ae0f5);let _0x61c151=[];if('horizontally'==_0x145b2f['direction']){const _0x5a92cb=_0x3f53a9['createTableWalker'](_0x2c78ee,{'startRow':_0xd07e08,'endRow':_0xd07e08,'includeAllSlots':!0x0});_0x61c151=Array['from'](_0x5a92cb)['map'](_0x2fd619=>_0x2fd619['cell']);}else{const _0x91823d=_0x3f53a9['createTableWalker'](_0x2c78ee,{'column':_0x4ad11c,'includeAllSlots':!0x0});_0x61c151=Array['from'](_0x91823d)['map'](_0x3dd2f9=>_0x3dd2f9['cell']);}_0x376c71['model']['change'](_0x3d070b=>{_0x1ec9d0['markBlockFormat'](_0x3d070b['createRangeOn'](_0x3ae0f5),{'commandName':_0x2089be,'commandParams':[]},_0x61c151,_0x2089be);});});}_0x1ec9d0['descriptionFactory']['registerDescriptionCallback'](_0x189659=>{if('formatBlock'!=_0x189659['type']&&'formatInline'!=_0x189659['type'])return;const {data:_0x494a63}=_0x189659;return _0x494a63&&'mergeTableCells'==_0x494a63['commandName']?{'type':'format','content':getTranslation$1(_0x25d833,'*Merge\x20cells*')}:void 0x0;}),_0x1ec9d0['descriptionFactory']['registerDescriptionCallback'](_0x257613=>{if('formatBlock'!=_0x257613['type']&&'formatInline'!=_0x257613['type'])return;const {data:_0x32264e}=_0x257613;return _0x32264e?'splitTableCellVertically'==_0x32264e['commandName']?{'type':'format','content':getTranslation$1(_0x25d833,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x32264e['commandName']?{'type':'format','content':getTranslation$1(_0x25d833,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4e58b2=_0x5e6b2d['_acceptFormatSuggestionCallbackFactory']();for(const _0x2115c6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1ec9d0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2115c6,'accept',_0x4e58b2);for(const _0x1f76ff of['splitTableCellVertically','splitTableCellHorizontally'])_0x1ec9d0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f76ff,'accept',_0x4e58b2);_0x1ec9d0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x135770=>{_0x376c71['model']['change'](_0x1f3560=>{const _0x4958d5=Array['from'](_0x365801['getRanges']())['map'](_0x5a62fc=>ModelLiveRange['fromRange'](_0x5a62fc));_0x1f3560['setSelection'](_0x135770),_0x376c71['commands']['get']('mergeTableCells')['refresh'](),_0x376c71['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4f5a7d=_0x4958d5['filter'](_0x3bcb49=>'$graveyard'!=_0x3bcb49['root']['rootName']);_0x4f5a7d['length']>0x0&&_0x1f3560['setSelection'](_0x4f5a7d);for(const _0x18a2b6 of _0x4958d5)_0x18a2b6['detach']();});});for(const _0x24664b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x917108=_0x376c71['commands']['get'](_0x24664b);_0x917108['on']('set:isEnabled',(_0x27bd4c,_0x3b4d37,_0x3f88b9)=>{if(_0x3f88b9){const _0x5e1c5b=_0x376c71['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3c3e6d=>_0x3c3e6d['is']('element','tableCell'));this['_areMergableCells'](_0x917108['value'],_0x5e1c5b)||(_0x27bd4c['return']=!0x1,_0x27bd4c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x299a6b=this['editor']['commands']['get']('mergeTableCells'),_0x51ef7b=this['editor']['plugins']['get']('TableUtils');if(!_0x299a6b['isEnabled'])return!0x1;const _0x20febd=_0x51ef7b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3b213f of _0x20febd)for(const _0x5236d5 of _0x20febd)if(_0x3b213f!=_0x5236d5&&!this['_areMergableCells'](_0x3b213f,_0x5236d5))return!0x1;return!0x0;}['_areMergableCells'](_0x342a60,_0x2d42ab){const _0x4ed34a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21b756=this['editor']['model']['createRangeOn'](_0x342a60),_0x18cb51=this['editor']['model']['createRangeOn'](_0x2d42ab),_0x58a837=new Set(),_0x383e24=new Set();for(const _0x5aa5ad of _0x4ed34a['getSuggestions']())if(('insertion'==_0x5aa5ad['type']||'deletion'==_0x5aa5ad['type']||'mergeTableCells'==_0x5aa5ad['subType'])&&_0x5aa5ad['isInContent']){for(const _0x11b8fc of _0x5aa5ad['getRanges']())_0x11b8fc['containsRange'](_0x21b756,!0x0)&&_0x58a837['add'](_0x5aa5ad['type']+':'+_0x5aa5ad['author']['id']),_0x11b8fc['containsRange'](_0x18cb51,!0x0)&&_0x383e24['add'](_0x5aa5ad['type']+':'+_0x5aa5ad['author']['id']);}if(_0x58a837['size']!=_0x383e24['size'])return!0x1;for(const _0x2e9807 of _0x58a837)if(!_0x383e24['has'](_0x2e9807))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x407caa=this['editor'];if(!_0x407caa['plugins']['has']('TableEditing'))return;const _0x3dc5c1=_0x407caa['locale'],_0x543878=_0x407caa['plugins']['get']('TrackChangesEditing');_0x543878['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x543878['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x543878['descriptionFactory']['registerAttributeLabel']('headingRows',getTranslation$1(_0x3dc5c1,'FORMAT_HEADER_ROW')),_0x543878['descriptionFactory']['registerAttributeLabel']('headingColumns',getTranslation$1(_0x3dc5c1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1bb910=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f39e0=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x1bb910['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4f39e0),_0x1bb910['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4f39e0),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x2e26dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x510c17=this['editor']['plugins']['get']('TableUtils');function _0x2095cd({showActiveMarker:_0x4048d3=!0x0,setDataAttribute:_0xa343c8=!0x0}={}){return(_0x52f1b8,_0x5eace0,_0x23ae1b)=>{const {type:_0x1b6da8,id:_0x3997d5}=_0x2e26dd['_splitMarkerName'](_0x5eace0['markerName']);if(!_0x2e26dd['hasSuggestion'](_0x3997d5))return;const _0xf569da=_0x2e26dd['getSuggestion'](_0x3997d5),_0x10b52a=_0xf569da['data'];if('formatBlock'!=_0xf569da['type']||!_0x10b52a||'setTableColumnHeader'!=_0x10b52a['commandName'])return;if(_0x5eace0['item'])return void _0x52f1b8['stop']();if(!_0x23ae1b['consumable']['consume'](_0x5eace0['markerRange'],_0x52f1b8['name']))return;const _0x548078=_0x5eace0['markerRange']['start']['nodeAfter'],_0xe0d819=_0x5eace0['markerRange']['end']['nodeBefore'],_0x3ca19d=_0x548078['parent']['parent'],{column:_0x5287a9}=_0x510c17['getCellLocation'](_0x548078),{column:_0x2e9ab7}=_0x510c17['getCellLocation'](_0xe0d819);for(let _0x5632e7=_0x5287a9;_0x5632e7<=_0x2e9ab7;_0x5632e7++){const _0x7153e0=_0x510c17['createTableWalker'](_0x3ca19d,{'column':_0x5632e7,'includeAllSlots':!0x1});for(const _0x1c2662 of _0x7153e0){const _0x12b931=_0x1c2662['cell'],_0x7e2cd5=_0x23ae1b['mapper']['toViewElement'](_0x12b931);_0x23ae1b['writer']['addClass']('ck-suggestion-marker-'+_0x1b6da8,_0x7e2cd5),_0xa343c8&&_0x23ae1b['writer']['setAttribute']('data-suggestion',_0x3997d5,_0x7e2cd5),_0x23ae1b['mapper']['bindElementToMarker'](_0x7e2cd5,_0x5eace0['markerName']),_0x4048d3&&(_0x2e26dd['activeMarkers']['includes'](_0x5eace0['markerName'])?_0x23ae1b['writer']['addClass']('ck-suggestion-marker--active',_0x7e2cd5):_0x23ae1b['writer']['removeClass']('ck-suggestion-marker--active',_0x7e2cd5));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2095cd(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x375367,_0x1d429c,_0x3fcf2d)=>{_0x3fcf2d['options']['showSuggestionHighlights']&&_0x2095cd({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x375367,_0x1d429c,_0x3fcf2d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4f4843,_0x13a662,_0x16f7bf)=>{const {type:_0xd49ec4,id:_0x4661d4}=_0x2e26dd['_splitMarkerName'](_0x13a662['markerName']);if(!_0x2e26dd['hasSuggestion'](_0x4661d4))return;const _0x1329a9=_0x2e26dd['getSuggestion'](_0x4661d4),_0xca51c7=_0x1329a9['data'];if('formatBlock'!=_0x1329a9['type']||!_0xca51c7||'setTableColumnHeader'!=_0xca51c7['commandName'])return;const _0x4bdb2d=_0x16f7bf['mapper']['markerNameToElements'](_0x13a662['markerName']);if(_0x4bdb2d){for(const _0x323271 of _0x4bdb2d)_0x16f7bf['writer']['removeClass']('ck-suggestion-marker-'+_0xd49ec4,_0x323271),_0x16f7bf['writer']['removeClass']('ck-suggestion-marker--active',_0x323271),_0x16f7bf['writer']['removeAttribute']('data-suggestion',_0x323271),_0x16f7bf['mapper']['unbindElementFromMarkerName'](_0x323271,_0x13a662['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x496325=this['editor'],_0x1f1a44=_0x496325['locale'];function _0x25f0e7(_0x532c90){return{'type':'format','content':getTranslation$1(_0x1f1a44,'*Format:*\x20%0',_0x532c90)};}_0x496325['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f0aa4=>{if('formatBlock'!=_0x3f0aa4['type'])return;const {data:_0x526434}=_0x3f0aa4;if(_0x526434){if('setTableRowHeader'==_0x526434['commandName']){const _0x181871=_0x526434['commandParams'][0x0]['forceValue'];return _0x25f0e7(getTranslation$1(_0x1f1a44,_0x181871?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x526434['commandName']){const _0x3e603d=_0x526434['commandParams'][0x0]['forceValue'];return _0x25f0e7(getTranslation$1(_0x1f1a44,_0x3e603d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableLayout extends Plugin{['afterInit'](){const _0x8c9d2a=this['editor'],_0x57b63f=_0x8c9d2a['locale'],_0x9743b=_0x8c9d2a['plugins']['get']('TrackChangesEditing');function _0x347e57(_0x185607){return{'type':'format','content':''+getTranslation$1(_0x57b63f,'*Set\x20table\x20type:*\x20%0',_0x185607)};}_0x8c9d2a['plugins']['has']('TableLayout')&&(_0x9743b['enableCommand']('insertTableLayout'),_0x9743b['enableDefaultAttributesIntegration']('tableType'),_0x9743b['descriptionFactory']['registerElementLabel'](_0x23e26a=>_0x23e26a['is']('element','table')&&'layout'===_0x23e26a['getAttribute']('tableType'),_0xaa87a8=>getTranslation$1(_0x57b63f,'ELEMENT_LAYOUT_TABLE',_0xaa87a8)),_0x9743b['descriptionFactory']['registerDescriptionCallback'](_0x26919c=>{const {data:_0x2ed512}=_0x26919c;if(_0x2ed512&&'tableType'==_0x2ed512['key'])switch(_0x2ed512['newValue']){case'layout':return _0x347e57(getTranslation$1(_0x57b63f,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x347e57(getTranslation$1(_0x57b63f,'ELEMENT_CONTENT_TABLE'));}}));}}const tableCellStyleAttributeNames=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],tableCellStyleAttributesObject=/* #__PURE__ -- @preserve */
Object['fromEntries'](tableCellStyleAttributeNames['map'](_0x1076c1=>[_0x1076c1,null]));class TrackChangesTableClipboard extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x1172f4=this['editor'];if(!_0x1172f4['plugins']['has']('TableClipboard'))return;const _0x16dfb4=_0x1172f4['plugins']['get']('TrackChangesEditing'),_0x41068e=_0x1172f4['plugins']['get']('TableUtils'),_0x3d8154=_0x1172f4['plugins']['get'](TrackChangesTable),_0x3eb3e0=_0x1172f4['plugins']['get']('TableClipboard'),_0x6f4905=_0x1172f4['plugins']['get']('TableSelection'),_0x54bb41=_0x1172f4['plugins']['get'](ClipboardPipeline);_0x3d8154['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1172f4['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1172f4['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x118c71=null,_0x32401a=!0x1;_0x54bb41['on']('contentInsertion',(_0x1784a4,_0x19fcc7)=>{_0x32401a='paste'===_0x19fcc7['method'];}),_0x1172f4['model']['on']('insertContent',(_0x5e7a50,_0x1a8b0c)=>{if(!_0x32401a&&null===_0x6f4905['getSelectedTableCells']())return;const [_0x2e5c70,_0x38a48f]=_0x1a8b0c,_0x19f8d1=_0x1a8b0c[_0x1a8b0c['length']-0x1];_0x19f8d1&&_0x19f8d1['forceDefaultExecution']||_0x16dfb4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&isPasteTableIntoTable(_0x2e5c70,_0x38a48f,_0x1172f4['model'],_0x41068e,_0x3eb3e0)&&(_0x5e7a50['stop'](),_0x118c71={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1172f4['model']['change'](()=>{_0x1172f4['model']['insertContent'](_0x1a8b0c[0x0],_0x1a8b0c[0x1],_0x1a8b0c[0x2],{'forceDefaultExecution':!0x0});const _0x22983b=uid(),{rowInsertionRanges:_0x554193,columnInsertionRanges:_0x18584b,insertionRanges:_0x5bf86c,deletionRanges:_0x2aac7a,cells:_0x14f1b3}=_0x118c71;_0x554193['length']&&_0x16dfb4['markMultiRangeInsertion'](_0x554193,'tablePasteRow',{'tablePasteChainId':_0x22983b}),_0x18584b['length']&&_0x16dfb4['markMultiRangeInsertion'](_0x18584b,'tablePasteColumn',{'tablePasteChainId':_0x22983b}),_0x5bf86c['length']&&(_0x16dfb4['markMultiRangeInsertion'](_0x5bf86c,'tablePaste',{'tablePasteChainId':_0x22983b,'skipNestingCheck':!0x0}),_0x5bf86c['forEach'](_0x1abdd0=>_0x1abdd0['detach']?.())),_0x2aac7a['length']&&(_0x16dfb4['markMultiRangeDeletion'](_0x2aac7a,'tablePaste',{'tablePasteChainId':_0x22983b,'skipNestingCheck':!0x0}),_0x2aac7a['forEach'](_0x12ef4d=>_0x12ef4d['detach']?.()));const _0xe1be90=_0x16dfb4['markMultiRangeBlockFormat'](_0x14f1b3['map'](({element:_0x477e35})=>_0x477e35),{'formatGroupId':uid()},[],'tablePasteCell',{'tablePasteChainId':_0x22983b});if(_0xe1be90){const _0xf71811=_0xe1be90['getMarkers'](),_0x346b3a=[];for(const {element:_0xbf2506,attributes:_0x50b838}of _0x14f1b3){if(!_0x50b838)continue;const _0x465907=_0x1172f4['model']['createRangeOn'](_0xbf2506),_0x591948=_0xf71811['find'](_0x3a0246=>_0x3a0246['getRange']()['isEqual'](_0x465907));_0x591948&&_0x346b3a['push']([_0x591948['name'],_0x50b838]);}_0x346b3a['length']&&_0xe1be90['setAttribute']('markerAttributes',Object['fromEntries'](_0x346b3a));}_0x118c71=null;}));},{'priority':priorities['high']+0xa}),_0x54bb41['on']('contentInsertion',()=>{_0x32401a=!0x1;},{'priority':'lowest'}),_0x1172f4['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xf7d9e,_0x4347b8)=>{const [_0x530f82,_0x29b7a0,,_0x53be32]=_0x4347b8;if(!_0x118c71)return;_0xf7d9e['stop']();const _0xff5757=_0x530f82['cell'],_0x2a87cd=_0x29b7a0,_0x3f1b4c=isEmpty(_0xff5757),_0x55fc80=isEmpty(_0x2a87cd);_0xf7d9e['return']=_0xff5757;let _0x2cde32=null,_0x191707=null;if(_0x55fc80||_0x3f1b4c){if(_0x3f1b4c&&!_0x55fc80){_0x53be32['remove'](_0xff5757['getChild'](0x0));for(const _0xc67f35 of Array['from'](_0x2a87cd['getChildren']()))_0x53be32['insert'](_0xc67f35,_0xff5757,'end');const _0x3443c5=_0x118c71['rowInsertionIndexes']['includes'](_0x530f82['row']),_0x559a37=_0x118c71['columnInsertionIndexes']['includes'](_0x530f82['column']);_0x3443c5||_0x559a37||(_0x2cde32=ModelLiveRange['fromRange'](_0x53be32['createRangeIn'](_0xff5757)));}else _0x55fc80&&!_0x3f1b4c&&(_0x191707=_0x53be32['createRangeIn'](_0xff5757));}else{const _0x11f3b0=_0x53be32['createElement']('tableCellSuggestion'),_0x1d6128=_0x53be32['createElement']('tableCellSuggestion');_0x53be32['wrap'](_0x53be32['createRangeIn'](_0xff5757),_0x1d6128),_0x53be32['insert'](_0x11f3b0,_0xff5757,0x0);for(const _0x5a161f of Array['from'](_0x2a87cd['getChildren']()))_0x53be32['insert'](_0x5a161f,_0x11f3b0,'end');_0x2cde32=ModelLiveRange['fromRange'](_0x53be32['createRangeOn'](_0x11f3b0)),_0x191707=ModelLiveRange['fromRange'](_0x53be32['createRangeOn'](_0x1d6128));}const _0x4a8391=Array['from'](_0x2a87cd['getAttributes']())['filter'](([_0x576b8b])=>tableCellStyleAttributeNames['includes'](_0x576b8b));_0x118c71['cells']['push']({'element':_0xff5757,'attributes':_0x4a8391['length']?Object['fromEntries'](_0x4a8391):null}),_0x2cde32&&_0x118c71['insertionRanges']['push'](_0x2cde32),_0x191707&&_0x118c71['deletionRanges']['push'](_0x191707);},{'priority':'high'}),_0x41068e['on']('insertColumns',(_0x216ba0,_0x59beb0)=>{const [_0x23eb36,_0x44fe55={}]=_0x59beb0;if(!_0x118c71)return;const _0x39f481=_0x44fe55['at']||0x0,_0x1e75e5=_0x44fe55['columns']||0x1;_0x118c71['columnInsertionIndexes']=new Array(_0x1e75e5)['fill'](_0x39f481)['map']((_0x486fe6,_0x12e519)=>_0x486fe6+_0x12e519);for(const {cell:_0x2f0d2e}of _0x41068e['createTableWalker'](_0x23eb36,{'startColumn':_0x39f481,'endColumn':_0x39f481+_0x1e75e5-0x1}))_0x118c71['columnInsertionRanges']['push'](_0x1172f4['model']['createRangeOn'](_0x2f0d2e));},{'priority':'low'}),_0x41068e['on']('insertRows',(_0x299de7,_0x1eac7c)=>{const [_0x252a3b,_0x427943={}]=_0x1eac7c;if(!_0x118c71)return;const _0x50fd91=_0x427943['at']||0x0,_0x374369=_0x427943['rows']||0x1;_0x118c71['rowInsertionIndexes']=new Array(_0x374369)['fill'](_0x50fd91)['map']((_0x3cb49d,_0x4363c3)=>_0x3cb49d+_0x4363c3);for(const {cell:_0x4c8af2}of _0x41068e['createTableWalker'](_0x252a3b,{'startRow':_0x50fd91,'endRow':_0x50fd91+_0x374369-0x1}))_0x118c71['rowInsertionRanges']['push'](_0x1172f4['model']['createRangeOn'](_0x4c8af2));},{'priority':'low'}),_0x16dfb4['descriptionFactory']['registerDescriptionCallback'](_0x456d76=>{if(_0x456d76['subType']&&_0x456d76['subType']['startsWith']('tablePaste'))return _0x456d76['previous']?{}:{'type':'insertion','content':getTranslation$1(_0x1172f4['locale'],'*Replace\x20table\x20cells*')};});const _0x366594=()=>!0x1;for(const _0x1d5f6e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x16dfb4['_suggestionFactory']['registerCustomCallback']('insertion',_0x1d5f6e,'join',_0x366594),_0x16dfb4['_suggestionFactory']['registerCustomCallback']('deletion',_0x1d5f6e,'join',_0x366594),_0x16dfb4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1d5f6e,'join',_0x366594);_0x16dfb4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x366594),_0x16dfb4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2e7ed1,_0x4224a7,_0x5d2141)=>{const _0x3f82ee=_0x2e7ed1['map'](_0xfbe43c=>_0xfbe43c['getContainedElement']())['filter'](_0x4bece1=>_0x4bece1),_0x49f9df=new Map(_0x3f82ee['map'](_0x1f52fd=>[_0x1f52fd,null]));if(_0x118c71){for(const {element:_0xb6013b,attributes:_0x10dc18}of _0x118c71['cells'])_0x10dc18&&_0x49f9df['set'](_0xb6013b,_0x10dc18);}else{if(_0x5d2141&&_0x5d2141['markerAttributes'])for(const [_0x183518,_0x1331da]of Object['entries'](_0x5d2141['markerAttributes'])){const _0x27a284=_0x1172f4['model']['markers']['get'](_0x183518),_0x53c380=_0x27a284?_0x27a284['getRange']()['getContainedElement']():null;_0x53c380&&_0x49f9df['set'](_0x53c380,_0x1331da);}}_0x1172f4['model']['change'](_0x47b3e8=>{for(const [_0x3389a3,_0x5f37f6]of _0x49f9df)_0x47b3e8['setAttributes']({...tableCellStyleAttributesObject,..._0x5f37f6},_0x3389a3);});});const _0x20adfd=(_0x338514,_0xa20e86)=>{_0x16dfb4['_suggestionFactory']['registerCustomCallback'](_0x338514,'tablePaste',_0xa20e86,(_0x108900,_0x234437,_0x4eac5c)=>{_0x1172f4['model']['change'](_0xd3bd36=>{const _0x11c54b=[];for(const _0x1a7050 of _0x108900){const _0x17c8f8=_0x1a7050['start']['nodeAfter'];_0x17c8f8['is']('element','tableCellSuggestion')&&_0x11c54b['push'](_0x17c8f8);}_0x16dfb4['_suggestionFactory']['getSuggestionCallback'](_0x338514,null,_0xa20e86)(_0x108900,_0x234437,_0x4eac5c);for(const _0x5c21a1 of _0x11c54b)'$graveyard'!=_0x5c21a1['root']['rootName']&&_0xd3bd36['unwrap'](_0x5c21a1);});});};_0x20adfd('insertion','accept'),_0x20adfd('insertion','discard'),_0x20adfd('deletion','accept'),_0x20adfd('deletion','discard'),_0x16dfb4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xf3f1c2=>{const _0x5d4fcb=_0xf3f1c2['map'](_0x5f3c17=>_0x5f3c17['getContainedElement']()),_0x1f844f=_0x5d4fcb[0x0]['findAncestor']('table'),{minRow:_0x7a652b,maxRow:_0x1d883a}=_0x3d8154['_getCoordsForCells'](_0x5d4fcb);_0x41068e['removeRows'](_0x1f844f,{'at':_0x7a652b,'rows':_0x1d883a-_0x7a652b+0x1});}),_0x16dfb4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x37677a=>{const _0x588e6f=_0x37677a['map'](_0x556768=>_0x556768['getContainedElement']()),_0x5e362c=_0x588e6f[0x0]['findAncestor']('table'),{minColumn:_0xa5ff65,maxColumn:_0x52bc45}=_0x3d8154['_getCoordsForCells'](_0x588e6f);_0x41068e['removeColumns'](_0x5e362c,{'at':_0xa5ff65,'columns':_0x52bc45-_0xa5ff65+0x1});});const _0x1566a6=(_0x1af1c7,_0xb493f0)=>{if(!_0xb493f0['subType']||!_0xb493f0['subType']['startsWith']('tablePaste'))return;const _0x38b4ea=_0xb493f0['attributes']['tablePasteChainId'],_0x20ea5a=_0x16dfb4['getSuggestions']()['filter'](_0x16e9f0=>_0x16e9f0['isInContent']&&_0x16e9f0['attributes']&&_0x16e9f0['attributes']['tablePasteChainId']==_0x38b4ea);_0x20ea5a['length']&&_0xb493f0['getAllAdjacentSuggestions']()['length']!=_0x20ea5a['length']&&_0x20ea5a['reduce']((_0x3fce2f,_0x54bf44)=>(_0x3fce2f['next']=_0x54bf44,_0x54bf44['previous']=_0x3fce2f,_0x54bf44));};function _0x57b044(_0x2a02bb,_0x5155b0=!0x0){const {id:_0x36186f,authorId:_0x2e4b0d}=_0x16dfb4['_splitMarkerName'](_0x2a02bb['markerName']),_0x3a4b5b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1d0256=_0x16dfb4['activeMarkers']['includes'](_0x2a02bb['markerName']);return _0x1d0256&&_0x3a4b5b['push']('ck-suggestion-marker--active'),{'classes':_0x3a4b5b,'attributes':{'data-suggestion':_0x36186f,'data-author-id':_0x2e4b0d},'priority':_0x1d0256&&_0x5155b0?0xbc2:0xbb8};}_0x16dfb4['on']('suggestionLoaded',_0x1566a6,{'priority':'high'}),_0x16dfb4['on']('suggestionUnloaded',_0x1566a6,{'priority':'high'}),_0x1172f4['model']['document']['registerPostFixer'](()=>{let _0x28fbd1=!0x1;const _0x5bf7a2=Array['from'](_0x1172f4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15cf6e,data:_0x45e8c4}of _0x5bf7a2){const {group:_0x44dc75,type:_0x5cb04d,id:_0x3a3c17}=_0x16dfb4['_splitMarkerName'](_0x15cf6e);if('suggestion'!=_0x44dc75||'deletion'!=_0x5cb04d||_0x45e8c4['oldRange'])continue;if(!_0x16dfb4['hasSuggestion'](_0x3a3c17))continue;const _0x4cd7c5=_0x16dfb4['getSuggestion'](_0x3a3c17)['getRanges'](),_0x4e6d8e=_0x1172f4['plugins']['get']('Users')['me'];for(const _0x385476 of _0x16dfb4['getSuggestions']()){if(!_0x385476['isInContent']||_0x385476['author']!=_0x4e6d8e)continue;if('formatBlock'!=_0x385476['type']||'tablePasteCell'!=_0x385476['subType'])continue;if(_0x385476['getRanges']()['every'](_0xa495f6=>_0x4cd7c5['some'](_0x14899e=>_0x14899e['containsRange'](_0xa495f6,!0x0)))){for(const _0x26be7a of _0x385476['getAllAdjacentSuggestions']())_0x26be7a['isInContent']&&(_0x26be7a['discard'](),_0x28fbd1=!0x0);}}}return _0x28fbd1;}),_0x1172f4['model']['document']['registerPostFixer'](_0x1a4603=>{const _0x54b6e6=_0x1172f4['commands']['get']('redo');if(!_0x54b6e6||!_0x54b6e6['_createdBatches']['has'](_0x1a4603['batch']))return!0x1;let _0x545625=!0x1;const _0x279c75=_0x1172f4['plugins']['get']('Users')['me'],_0x28dfa1=_0x1172f4['model']['document']['differ']['getChanges'](),_0x55fb08=Array['from'](_0x1172f4['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3cf2bf,data:_0x9d0615})=>{const {group:_0x4d7d8a,subType:_0x4a3d2a,authorId:_0x52cfb1}=_0x16dfb4['_splitMarkerName'](_0x3cf2bf);return'suggestion'==_0x4d7d8a&&'tablePaste'==_0x4a3d2a&&_0x52cfb1==_0x279c75['id']&&!_0x9d0615['oldRange'];});for(const _0x27ae0e of _0x28dfa1){if('insert'!=_0x27ae0e['type']||'tableCellSuggestion'!=_0x27ae0e['name']||0x1!=_0x27ae0e['length'])continue;const _0x5bf424=_0x1a4603['createRange'](_0x27ae0e['position'],_0x27ae0e['position']['getShiftedBy'](0x1)),_0x165f3e=_0x55fb08['find'](({data:_0x5bdd16})=>_0x5bdd16['newRange']['isEqual'](_0x5bf424));if(!_0x165f3e){for(const {name:_0x2ba7d2,data:_0x424352}of _0x55fb08)if(_0x5bf424['containsRange'](_0x424352['newRange'])){_0x1a4603['updateMarker'](_0x2ba7d2,{'range':_0x5bf424}),_0x545625=!0x0;break;}}}return _0x545625;}),_0x1172f4['model']['document']['registerPostFixer'](_0x3e5e0c=>{let _0x5ecd11=!0x1;const _0x39cb0c=_0x1172f4['plugins']['get']('Users')['me'],_0x489cce=_0x16dfb4['getSuggestions']()['filter'](_0x5ae6ef=>_0x5ae6ef['isInContent']&&_0x5ae6ef['author']==_0x39cb0c),_0x32eefa=new Set(),_0x3e4b47=new Set();for(const _0x1e7e53 of _0x489cce)if('tablePaste'==_0x1e7e53['subType'])for(const _0x166f8d of _0x1e7e53['getMarkers']()){const _0x2b69c4=_0x166f8d['getRange']()['getContainedElement']();if(_0x2b69c4){if(_0x2b69c4['is']('element','tableCellSuggestion')&&isEmpty(_0x2b69c4)){_0x1e7e53['removeMarker'](_0x166f8d['name']),_0x32eefa['add'](_0x2b69c4),_0x5ecd11=!0x0;const _0x1371fa=_0x2b69c4['nextSibling'],_0x5dec34=_0x2b69c4['previousSibling'],_0x55dab5=_0x1371fa&&_0x1371fa['is']('element','tableCellSuggestion'),_0x4618dd=_0x5dec34&&_0x5dec34['is']('element','tableCellSuggestion');_0x55dab5&&!_0x32eefa['has'](_0x1371fa)&&_0x3e4b47['add'](_0x1371fa),_0x4618dd&&!_0x32eefa['has'](_0x5dec34)&&_0x3e4b47['add'](_0x5dec34);}else _0x2b69c4['is']('element','paragraph')&&_0x2b69c4['isEmpty']&&(_0x1e7e53['removeMarker'](_0x166f8d['name']),_0x5ecd11=!0x0);}}else{if('tablePasteCell'==_0x1e7e53['subType']){if(!_0x1e7e53['attributes']||!_0x1e7e53['attributes']['tablePasteChainId'])continue;const _0x545b74=_0x1e7e53['attributes']['markerAttributes'];if(_0x545b74&&Object['keys'](_0x545b74)['length'])continue;const _0x59a297=_0x1e7e53['attributes']['tablePasteChainId'];let _0x19579f=!0x0,_0x3a65d1=!0x0;for(const _0x2dd69c of _0x489cce)if(_0x2dd69c['subType']&&_0x2dd69c['subType']['startsWith']('tablePaste')){if(!_0x2dd69c['attributes']['tablePasteChainId']){_0x3a65d1=!0x1;break;}if(_0x2dd69c['id']!=_0x1e7e53['id']&&_0x2dd69c['attributes']['tablePasteChainId']==_0x59a297){_0x19579f=!0x1;break;}}_0x3a65d1&&_0x19579f&&(_0x1e7e53['removeMarkers'](),_0x5ecd11=!0x0);}}for(const _0xc85f4d of _0x32eefa)_0x3e5e0c['remove'](_0xc85f4d);for(const _0x41ae83 of _0x3e4b47)_0x3e5e0c['unwrap'](_0x41ae83);return _0x5ecd11;}),_0x1172f4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x10183e=>_0x57b044(_0x10183e),'converterPriority':'high'}),_0x1172f4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4dfdab,_0x58bde9)=>_0x58bde9['options']['showSuggestionHighlights']?_0x57b044(_0x4dfdab,!0x1):null,'converterPriority':'high'});const _0x58a9cb=_0x1172f4['editing']['view'];this['listenTo'](_0x58a9cb['document'],'clipboardOutput',(_0x28a939,_0x169f6a)=>{const _0x46afab=[];for(const _0x415982 of _0x58a9cb['createRangeIn'](_0x169f6a['content'])['getItems']())_0x415982['is']('element','suggestion-td')&&_0x46afab['push'](_0x415982);_0x58a9cb['change'](_0x35ea26=>{for(const _0x3d89b6 of _0x46afab)_0x35ea26['move'](_0x35ea26['createRangeIn'](_0x3d89b6),_0x35ea26['createPositionBefore'](_0x3d89b6)),_0x35ea26['remove'](_0x3d89b6);});});}}function isEmpty(_0x149971){if(_0x149971['isEmpty'])return!0x0;const _0xd530=_0x149971['getChild'](0x0);return _0xd530['is']('element','paragraph')&&_0xd530['isEmpty'];}function isPasteTableIntoTable(_0x2dcfec,_0x19fa66,_0x4e34bb,_0x223280,_0x8f614f){if(_0x19fa66&&!_0x19fa66['is']('documentSelection'))return!0x1;const _0x117001=_0x8f614f['getTableIfOnlyTableInContent'](_0x2dcfec,_0x4e34bb);if(!_0x117001||!isPlainTable(_0x117001,void 0x0,_0x223280))return!0x1;const _0x37926d=_0x223280['getSelectionAffectedTableCells'](_0x4e34bb['document']['selection']);if(!_0x37926d['length'])return!0x1;const _0x5a0e6b=_0x37926d[0x0]['findAncestor']('table'),_0x1c5633=_0x223280['getRowIndexes'](_0x37926d),_0x398946=_0x223280['getColumnIndexes'](_0x37926d),_0x24fad4={'startRow':_0x1c5633['first'],'endRow':_0x1c5633['last'],'startColumn':_0x398946['first'],'endColumn':_0x398946['last']};return 0x1==_0x37926d['length']&&(_0x24fad4['endRow']+=_0x223280['getRows'](_0x117001)-0x1,_0x24fad4['endColumn']+=_0x223280['getColumns'](_0x117001)-0x1),isPlainTable(_0x5a0e6b,_0x24fad4,_0x223280);}function isPlainTable(_0x27e773,_0xa8c55d={},_0x318de9){for(const {isAnchor:_0x3994da,cellHeight:_0x3259ba,cellWidth:_0x274e59}of _0x318de9['createTableWalker'](_0x27e773,{'includeAllSlots':!0x0,..._0xa8c55d}))if(!_0x3994da||0x1!=_0x3259ba||0x1!=_0x274e59)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x38af9b=this['editor']['plugins']['get']('TrackChangesEditing');_0x38af9b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x38af9b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x38af9b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x38af9b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x38af9b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x38af9b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2131e4,_0x431d00){const _0x1993c5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e0b10=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x6fb62=_0x431d00['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4d7136=_0x5e0b10['getColumnGroupElement'](_0x6fb62);let _0x1547c1=_0x4d7136?_0x5e0b10['getTableColumnsWidths'](_0x4d7136):null,_0x2387b=_0x6fb62['getAttribute']('tableWidth')||null;const _0xe909d4=_0x431d00['tableWidth']||_0x2387b,_0x1a9194=_0x431d00['columnWidths']||_0x1547c1,_0x2e512d=this['editor']['plugins']['get']('Users')['me'];for(const _0x59634a of _0x1993c5['getSuggestions']()){const _0x4305f6=_0x59634a['getContainedElement']();if('resizeTable'===_0x59634a['subType']&&_0x4305f6===_0x6fb62){_0x59634a['author']!==_0x2e512d&&_0x59634a['discard']();const _0xe51a4e=_0x59634a['data']['commandParams'];_0x2387b=_0xe51a4e[0x0]['tableWidth'],_0x1547c1=_0xe51a4e[0x0]['columnWidths'];break;}}_0x2131e4({'table':_0x6fb62,'tableWidth':_0xe909d4,'columnWidths':_0x1a9194}),_0x1993c5['markBlockFormat'](_0x6fb62,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2387b,'columnWidths':_0x1547c1}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3125a5){if('formatBlock'!=_0x3125a5['type']&&'formatInline'!=_0x3125a5['type'])return;const {data:_0x4258a7}=_0x3125a5;if(_0x4258a7&&'resizeTable'===_0x4258a7['formatGroupId']){const _0x15aaa5='*Format:*\x20resize\x20table';return{'type':'format','content':getTranslation$1(this['editor']['locale'],_0x15aaa5)};}}}class TrackChangesTemplate extends Plugin{['afterInit'](){const _0x2f43a5=this['editor'];_0x2f43a5['plugins']['has']('Template')&&_0x2f43a5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends Plugin{['afterInit'](){const _0x3fe567=this['editor'];if(!_0x3fe567['commands']['get']('insertTableOfContents'))return;_0x3fe567['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xd89034=_0x3fe567['plugins']['get']('TrackChangesEditing'),_0x374405=_0x3fe567['locale'];_0xd89034['descriptionFactory']['registerElementLabel']('tableOfContents',_0xef6ca7=>getTranslation$1(_0x374405,'ELEMENT_TABLE_OF_CONTENTS',_0xef6ca7));}}class TrackChangesTitle extends Plugin{['afterInit'](){const _0xfc0ddc=this['editor'];if(!_0xfc0ddc['plugins']['has']('Title'))return;const _0x2e1dc2=_0xfc0ddc['plugins']['get']('TrackChangesEditing');_0x2e1dc2['descriptionFactory']['registerElementLabel']('title-content',()=>getTranslation$1(_0xfc0ddc['locale'],'ELEMENT_TITLE')),_0xfc0ddc['model']['document']['registerPostFixer'](_0x36543c=>{let _0x2e4a77=!0x1;const _0x4df627=Array['from'](_0xfc0ddc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x207257,data:_0x4a302}of _0x4df627){const {group:_0x17550a}=_0x2e1dc2['_splitMarkerName'](_0x207257);if('suggestion'!==_0x17550a||!_0x4a302['newRange'])continue;const _0x42cea7=_0x4a302['newRange'],_0x43e9c7=_0x42cea7['end']['nodeBefore'];if(!_0x43e9c7||!_0x43e9c7['is']('element','title-content'))continue;if(!_0x42cea7['start']['isTouching'](_0x42cea7['end']))continue;const _0x6cf42b=_0xfc0ddc['model']['schema']['getNearestSelectionRange'](_0x42cea7['end'],'forward');if(_0x6cf42b&&_0x6cf42b['isCollapsed']){const _0x96e51b=_0x36543c['createRange'](_0x42cea7['start'],_0x6cf42b['start']);_0x96e51b['isEqual'](_0x42cea7)||(_0x36543c['updateMarker'](_0x207257,{'range':_0x96e51b}),_0x2e4a77=!0x0);}_0x2e4a77||(_0x36543c['removeMarker'](_0x207257),_0x2e4a77=!0x0);}return _0x2e4a77;});}}class TrackChangesUploadcare extends Plugin{['afterInit'](){const _0x5ec4ed=this['editor'],_0x55484e=_0x5ec4ed['plugins']['get']('TrackChangesEditing');_0x5ec4ed['plugins']['has']('Uploadcare')&&(_0x55484e['enableCommand']('uploadcare'),_0x5ec4ed['plugins']['has']('UploadcareImageEdit')&&(_0x55484e['enableCommand']('uploadcareImageEdit'),_0x55484e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x55484e['descriptionFactory']['registerDescriptionCallback'](_0x41d68b=>{if('attribute'!=_0x41d68b['type'])return;const {data:_0xe3a791}=_0x41d68b;return _0xe3a791&&'uploadcareImageId'==_0xe3a791['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends Plugin{['afterInit'](){const _0x19c3a8=this['editor'],_0x1a1f53=_0x19c3a8['plugins']['get']('TrackChangesEditing');_0x19c3a8['plugins']['has']('UndoEditing')&&(_0x1a1f53['enableCommand']('undo'),_0x1a1f53['enableCommand']('redo'));}}class TrackChangesTableCaption extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x2878c6=this['editor'];if(!_0x2878c6['plugins']['has']('TableCaptionEditing'))return;_0x2878c6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends Plugin{['tableProperties'];['tableCellProperties'];constructor(_0x4b60c4){super(_0x4b60c4),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x4b60c4['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1073d9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2c5a9e of this['tableProperties'])_0x1073d9['enableCommand'](_0x2c5a9e,(_0x430e47,_0x39ea02)=>{const _0x13b88f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2c5a9e,[_0x13b88f],this['tableProperties'],'tableProperties',_0x430e47,_0x39ea02);});_0x1073d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1073d9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1073d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x564d44,_0x35c580)=>this['handleDiscardAction'](this['tableProperties'],_0x564d44,_0x35c580)),_0x1073d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1b2e98 of this['tableCellProperties'])this['editor']['commands']['get'](_0x1b2e98)&&_0x1073d9['enableCommand'](_0x1b2e98,(_0x37ae18,_0x43f852)=>{const _0x156ac8=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1b2e98,_0x156ac8,this['tableCellProperties'],'tableCellProperties',_0x37ae18,_0x43f852);});_0x1073d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1073d9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1073d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5512e6,_0x3a7613)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5512e6,_0x3a7613)),_0x1073d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x1073d9['descriptionFactory']['registerAttributeLabel']('tableCellType',getTranslation$1(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x1073d9['descriptionFactory']['registerDescriptionCallback'](_0x336459=>this['handleSuggestionDescription'](_0x336459)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x478e3a,_0x115c26,_0x4bf146,_0xa0aa7,_0x46bdac,_0x6a3490){const _0x52fe57=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x6a3490['batch'],()=>{for(const _0xf7eefa of _0x115c26){if(this['_getSuggestion'](_0xf7eefa,_0xa0aa7))_0x46bdac(_0x6a3490);else{const _0x21f1ca={};for(const _0x1a0611 of _0x4bf146){const _0x2a3fb7=_0xf7eefa['getAttribute'](_0x1a0611);void 0x0!==_0x2a3fb7&&(_0x21f1ca[_0x1a0611]=_0x2a3fb7);}_0x46bdac(_0x6a3490),_0x52fe57['markBlockFormat'](_0xf7eefa,{'commandParams':[_0x21f1ca]},[],_0xa0aa7);}}});}['handleDiscardAction'](_0xd31ba6,_0x14f71c,_0x98a843){const _0x413ed7=_0x14f71c[0x0]['start']['nodeAfter'],_0x2ad994=_0x98a843['commandParams'][0x0];this['editor']['model']['change'](_0x104796=>{for(const _0x2e87a4 of _0xd31ba6)void 0x0!==_0x2ad994[_0x2e87a4]?_0x104796['setAttribute'](_0x2e87a4,_0x2ad994[_0x2e87a4],_0x413ed7):_0x104796['removeAttribute'](_0x2e87a4,_0x413ed7);});}['handleSuggestionDescription'](_0x11785a){if(_0x11785a['data'])switch(_0x11785a['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'](_0x4aeea9,_0x3eb964){const _0x4265ce=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5e7483 of _0x4265ce['getSuggestions']({'skipNotAttached':!0x0})){const _0x7ad2f1=_0x5e7483['getContainedElement']();if(_0x5e7483['subType']===_0x3eb964&&_0x7ad2f1===_0x4aeea9)return _0x5e7483;}return null;}['_registerTablePropertiesAttributes'](){const _0x44edc4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x755930=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x173b32 of _0x755930){const _0x16112b=_0x173b32['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x44edc4['descriptionFactory']['registerAttributeLabel'](_0x173b32,getTranslation$1(this['editor']['locale'],'FORMAT_'+_0x16112b));}}}class TrackChangesLineHeight extends Plugin{['afterInit'](){const _0x506439=this['editor'];if(!_0x506439['plugins']['has']('LineHeight'))return;const _0x2b3488=_0x506439['plugins']['get']('TrackChangesEditing'),_0x19da7c=_0x506439['locale'];_0x2b3488['enableDefaultAttributesIntegration']('lineHeight'),_0x2b3488['descriptionFactory']['registerAttributeLabel']('lineHeight',getTranslation$1(_0x19da7c,'FORMAT_LINE_HEIGHT'));}}const renameAttributeKey='$elementName';class TrackChangesEditing extends Plugin{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',SuggestionsConversion,Users,PendingActions,DocumentCompare,TrackChangesAIAssistant,TrackChangesAI,TrackChangesAIQuickActions,TrackChangesAlignment,TrackChangesBasicStyles,TrackChangesBlockQuote,TrackChangesBookmark,TrackChangesCKBox,TrackChangesCaseChange,TrackChangesCodeBlock,TrackChangesComments,TrackChangesDeleteCommand,TrackChangesEmoji,TrackChangesEnterCommand,TrackChangesFindAndReplace,TrackChangesFont,TrackChangesFootnotes,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(_0x259597){super(_0x259597),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5f5d28,_0x4d3da6,_0x1ca05a,_0x2ccdea)=>{this['_model']['change'](()=>{for(const _0x39d597 of[..._0x2ccdea,..._0x1ca05a])this['_model']['markers']['has'](_0x39d597)&&_0x259597['editing']['reconvertMarker'](_0x39d597);});}),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']=_0x259597['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x259597['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x259597['config']['get']('trackChanges.trackFormatChanges'),_0x259597['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x259597['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x259597,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2bd002=this['editor'];_0x2bd002['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x14a9e5,{writer:_0xe46e99})=>{let _0x5562fc='suggestion:'+_0x14a9e5['getAttribute']('suggestion-type')+':'+_0x14a9e5['getAttribute']('id');return _0x14a9e5['getAttribute']('marker-count')&&(_0x5562fc+=':'+_0x14a9e5['getAttribute']('marker-count')),_0xe46e99['createElement']('$marker',{'data-name':_0x5562fc});}}),_0x2bd002['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2bd002['model']['document']['registerPostFixer'](_0x168678=>{let _0x4eb67a=!0x1;const _0x1d4939=Array['from'](_0x2bd002['model']['document']['differ']['getChangedMarkers']()),_0x42b997=new Set();for(const {name:_0x4d888f,data:_0x4de4c4}of _0x1d4939){const {group:_0x5bc75b,type:_0x4b441f,subType:_0x5dd7c4,id:_0x2b6a08}=this['_splitMarkerName'](_0x4d888f);if('suggestion'!==_0x5bc75b)continue;const _0xd3a3c=_0x5dd7c4?'suggestion:'+_0x4b441f+':'+_0x5dd7c4+':'+_0x2b6a08:'suggestion:'+_0x4b441f+':'+_0x2b6a08,_0x58ef5d=_0x2bd002['model']['markers']['getMarkersGroup'](_0xd3a3c),_0xd958a=_0x2bd002['model']['markers']['get'](_0x4d888f),_0xbe7026=this['_suggestions']['get'](_0x2b6a08);if(null!=_0x4de4c4['newRange']){'formatInline'==_0x4b441f&&(_0x4eb67a=_0x4eb67a||trimFormatInlineSuggestionRange(_0x4de4c4['newRange'],_0x4d888f,_0x168678,_0x2bd002['model']['schema']));const _0x4ae3d0='attribute'==_0x4b441f&&this['_isBlockAttribute'](_0x5dd7c4['split']('|')[0x0]),_0xe1948f='attribute'==_0x4b441f&&this['_isInlineAttribute'](_0x5dd7c4['split']('|')[0x0]);if(_0x4de4c4['newRange']['isCollapsed']||'$graveyard'==_0x4de4c4['newRange']['root']['rootName']||'formatBlock'==_0x4b441f&&!isCorrectFormatBlockSuggestionRange(_0x4de4c4['newRange'])||_0x4ae3d0&&!isCorrectFormatBlockSuggestionRange(_0x4de4c4['newRange'])||_0xe1948f&&isEmptyRange(_0x4de4c4['newRange'])||'deletion'==_0x4b441f&&isEmptyRange(_0x4de4c4['newRange'])||_0xd958a&&isIntersectingWithOtherMarkers(_0xd958a,_0x58ef5d))_0x168678['removeMarker'](_0x4d888f),_0x4eb67a=!0x0;else{if(!_0xbe7026||!_0xbe7026['isInContent'])continue;if(_0x4de4c4['newRange']&&_0x4de4c4['oldRange']&&_0x4de4c4['newRange']['isEqual'](_0x4de4c4['oldRange']))continue;_0x42b997['add'](_0xbe7026);}}}return _0x42b997['size']>0x0&&(_0x4eb67a=!!this['_joinWithAdjacentSuggestions'](_0x42b997)||_0x4eb67a),_0x4eb67a;}),_0x2bd002['model']['document']['registerPostFixer'](_0x2d49bd=>{let _0x3de5e5=!0x1;for(const _0x226b78 of _0x2bd002['model']['document']['differ']['getChanges']())if('insert'==_0x226b78['type'])for(const _0x39221a of this['_suggestions']['values']()){if(_0x39221a['isMultiRange']||!_0x39221a['isInContent'])continue;const _0x457658='formatBlock'==_0x39221a['type'],_0x1eef7f=this['_getAttributeKey'](_0x39221a),_0x4aa435=_0x1eef7f&&this['_isBlockAttribute'](_0x1eef7f);if(!_0x457658&&!_0x4aa435)continue;const _0x31b449=_0x39221a['getFirstRange']();if(_0x31b449['start']['parent']!=_0x31b449['end']['parent']&&!_0x31b449['end']['isAtEnd']){const _0x485ba7=_0x2bd002['model']['createPositionAt'](_0x31b449['start']['nodeAfter'],'end'),_0x31a665=_0x2bd002['model']['createRange'](_0x31b449['start'],_0x485ba7);_0x2d49bd['updateMarker'](_0x39221a['getFirstMarker'](),{'range':_0x31a665}),_0x3de5e5=!0x0;}}return _0x3de5e5;}),_0x2bd002['model']['document']['registerPostFixer'](_0xe5eb45=>this['_processAttributeChanges'](_0xe5eb45)),_0x2bd002['model']['document']['registerPostFixer'](_0x279780=>!_0x279780['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x279780)),_0x2bd002['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2bd002['model']['document']['on']('change:data',(_0x13b408,_0x5839c6)=>{if(!_0x5839c6['isLocal']||_0x5839c6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x727b30=_0x2bd002['model']['document']['differ']['getChanges']();if(0x0==_0x727b30['length'])return;const _0x4fc9ee=[],_0x144c1d=_0x727b30['filter'](_0xff0e57=>'attribute'==_0xff0e57['type']),_0x420b75=_0x727b30['filter'](_0x2c67be=>'insert'==_0x2c67be['type']&&'$text'!=_0x2c67be['name']);for(const _0x36967e of _0x144c1d)this['_isRegisteredAttribute'](_0x36967e['attributeKey'])&&_0x4fc9ee['push']({'key':_0x36967e['attributeKey'],'newValue':_0x36967e['attributeNewValue'],'oldValue':_0x36967e['attributeOldValue'],'range':fixAttributeSuggestionRange(_0x36967e['range'],_0x2bd002['model'])});for(const _0x490b96 of _0x420b75){if('rename'!=_0x490b96['action']&&'refresh'!=_0x490b96['action'])continue;const _0x3535e3=createBlockFormatRangeForElement(_0x490b96['position']['nodeAfter'],_0x2bd002['model']),_0x1bf24b=_0x490b96['before'];'rename'==_0x490b96['action']&&_0x4fc9ee['push']({'key':renameAttributeKey,'newValue':_0x490b96['name'],'oldValue':_0x1bf24b['name'],'range':_0x3535e3});for(const [_0x40436d,_0x441e12]of _0x1bf24b['attributes']){if(!this['_isRegisteredAttribute'](_0x40436d))continue;const _0x30cc98=_0x490b96['attributes']['get'](_0x40436d);_0x441e12!==_0x30cc98&&_0x4fc9ee['push']({'key':_0x40436d,'newValue':_0x30cc98,'oldValue':_0x441e12,'range':_0x3535e3});}for(const [_0x53437b,_0x3af6a8]of _0x490b96['attributes'])this['_isRegisteredAttribute'](_0x53437b)&&(_0x1bf24b['attributes']['has'](_0x53437b)||_0x4fc9ee['push']({'key':_0x53437b,'newValue':_0x3af6a8,'oldValue':null,'range':_0x3535e3}));}0x0!=_0x4fc9ee['length']&&_0x2bd002['model']['enqueueChange'](_0x5839c6,_0x358151=>{const _0x52d9da=uid();for(const {range:_0x554b8e,key:_0x93f738,oldValue:_0x2594b6,newValue:_0xc92b94}of _0x4fc9ee)this['markAttributeChange'](_0x554b8e,_0x93f738,_0x2594b6,_0xc92b94,{'groupId':_0x52d9da});this['_reduceExistingSuggestions'](_0x358151,_0x4fc9ee);});},{'priority':'lowest'}),_0x2bd002['model']['markers']['on']('update:suggestion',(_0x44f5cb,_0xbf547b,_0x5db135)=>{if(null==_0x5db135){const {id:_0x266afe}=this['_splitMarkerName'](_0xbf547b['name']),_0x36286a=this['_suggestions']['get'](_0x266afe);_0x36286a&&_0x36286a['addMarkerName'](_0xbf547b['name']);}}),_0x2bd002['model']['document']['on']('change:data',()=>{const _0x1af9ec=Array['from'](_0x2bd002['model']['document']['differ']['getChangedMarkers']())['filter'](_0x21661a=>'suggestion'===this['_splitMarkerName'](_0x21661a['name'])['group']);if(0x0===_0x1af9ec['length'])return;_0x1af9ec['sort']((_0x582ddf,_0x2fc1da)=>{const _0x376d75=_0x582ddf['data']['oldRange'],_0x99038=_0x2fc1da['data']['oldRange'];return null===_0x376d75&&null===_0x99038?0x0:null===_0x376d75&&null!==_0x99038?-0x1:null!==_0x376d75&&null===_0x99038?0x1:_0x376d75['start']['isBefore'](_0x99038['start'])?-0x1:0x1;});const _0x39e1f3=new Set(),_0x5eafba=new Set();for(const {name:_0x272da3,data:_0x46f962}of _0x1af9ec){const {id:_0x47297d}=this['_splitMarkerName'](_0x272da3);if(null===_0x46f962['oldRange']){const _0x10f766=this['_handleNewSuggestionMarker'](_0x272da3);_0x5eafba['add'](_0x10f766);}else{const _0x12cc77=this['_suggestions']['get'](_0x47297d);null!==_0x46f962['newRange']||_0x12cc77['isInContent']?(_0x39e1f3['add'](_0x12cc77['head']),_0x5eafba['add'](_0x12cc77)):this['_removeSuggestion'](_0x12cc77);}}_0x5eafba['size']>0x0&&this['_refreshSuggestionsChain'](_0x5eafba);for(const _0x49316b of _0x39e1f3)this['fire']('suggestionChanged',_0x49316b);}),_0x2bd002['model']['on']('applyOperation',(_0x36e9d7,_0x557ba6)=>{const _0x2ff0ae=_0x557ba6[0x0];if(!this['_suggestions']['size'])return;if(!_0x2ff0ae['isDocumentOperation'])return;if(_0x2ff0ae['batch']['isUndo']||!_0x2ff0ae['batch']['isLocal'])return;let _0x350c3c,_0x401a8b;switch(_0x2ff0ae['type']){case'insert':_0x350c3c=_0x2bd002['model']['createPositionAt'](_0x2ff0ae['position']),_0x401a8b=_0x350c3c['getShiftedBy'](_0x2ff0ae['howMany']);break;case'split':_0x350c3c=_0x2bd002['model']['createPositionAt'](_0x2ff0ae['splitPosition']),_0x401a8b=_0x2bd002['model']['createPositionAt'](_0x2ff0ae['moveTargetPosition']);break;case'move':_0x350c3c=_0x2bd002['model']['createPositionAt'](_0x2ff0ae['targetPosition']),_0x401a8b=_0x350c3c['getShiftedBy'](_0x2ff0ae['howMany']);break;default:return;}const _0x4dc4f6=_0x2bd002['model']['createRange'](_0x350c3c,_0x401a8b);_0x2bd002['model']['change'](()=>{for(const {suggestion:_0x19b843,meta:_0x2ebc50}of this['_findSuggestions'](_0x4dc4f6)){if(_0x19b843['isMultiRange'])continue;if('formatInline'==_0x19b843['type'])continue;const _0x43c0c2=this['_getAttributeKey'](_0x19b843);if(_0x43c0c2&&this['_isBlockAttribute'](_0x43c0c2)&&'split'!=_0x2ff0ae['type'])continue;const _0x2a8230=_0x19b843['data']&&_0x19b843['data']['multipleBlocks'];('formatBlock'!=_0x19b843['type']||'split'==_0x2ff0ae['type']&&!_0x2a8230)&&(_0x2ebc50['containsRangeInObject']||'insertion'==_0x19b843['type']&&_0x2ebc50['isOwn']||_0x19b843['getFirstRange']()['containsRange'](_0x4dc4f6)&&this['_breakSuggestionMarker'](_0x19b843,_0x350c3c,_0x401a8b));}});},{'priority':'lowest'}),_0x2bd002['model']['on']('deleteContent',(_0x44de05,_0x53a678)=>{const _0x3c9fa5=_0x53a678[0x0],_0x515bab=_0x53a678[0x1];if(_0x515bab&&_0x515bab['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3c9fa5['isCollapsed'])return;const _0xa361=_0x2bd002['model']['schema'],{start:_0x2e1ba8,end:_0x293e32}=_0x3c9fa5['getFirstRange'](),_0x2d7ba2=_0x2e1ba8['nodeAfter']&&_0xa361['isLimit'](_0x2e1ba8['nodeAfter'])?null:_0xa361['getNearestSelectionRange'](_0x2e1ba8,'forward'),_0x8b5a76=_0x293e32['nodeBefore']&&_0xa361['isLimit'](_0x293e32['nodeBefore'])?null:_0xa361['getNearestSelectionRange'](_0x293e32,'backward'),_0x341614=_0x2bd002['model']['createRange'](_0x2d7ba2?_0x2d7ba2['start']:_0x2e1ba8,_0x8b5a76?_0x8b5a76['end']:_0x293e32);_0x2bd002['model']['change'](_0x9162e2=>{this['markDeletion'](_0x341614);const _0x547c6c=_0x2bd002['model']['schema']['getNearestSelectionRange'](_0x341614['start']);_0x3c9fa5['is']('documentSelection')?_0x9162e2['setSelection'](_0x547c6c):_0x3c9fa5['setTo'](_0x547c6c);}),_0x44de05['stop']();},{'priority':priorities['normal']+0xa}),_0x2bd002['model']['on']('insertContent',(_0x5312a3,_0x59cc44)=>{const _0x25a311=_0x59cc44[_0x59cc44['length']-0x1];_0x25a311&&_0x25a311['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2bd002['model']['change'](()=>{let _0x49a0f6=_0x2bd002['model']['insertContent'](_0x59cc44[0x0],_0x59cc44[0x1],_0x59cc44[0x2],{'forceDefaultExecution':!0x0});if(!_0x49a0f6)return;_0x5312a3['return']=_0x49a0f6['clone']();const _0x8b347c=_0x49a0f6['end']['nodeBefore'],_0x4e0509=_0x2bd002['model']['schema'];_0x8b347c&&_0x4e0509['isBlock'](_0x8b347c)&&!_0x4e0509['isObject'](_0x8b347c)&&(_0x49a0f6=_0x2bd002['model']['createRange'](_0x49a0f6['start'],_0x2bd002['model']['createPositionAt'](_0x8b347c,'end'))),this['markInsertion'](_0x49a0f6);}),_0x5312a3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x130475=new AcceptSuggestionCommand(_0x2bd002,this['_suggestions']);_0x2bd002['commands']['add']('acceptSuggestion',_0x130475),this['enableCommand']('acceptSuggestion');const _0x3318b3=new DiscardSuggestionCommand(_0x2bd002,this['_suggestions']);_0x2bd002['commands']['add']('discardSuggestion',_0x3318b3),this['enableCommand']('discardSuggestion'),_0x2bd002['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x2bd002,_0x130475,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2bd002['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x2bd002,_0x3318b3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2bd002['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x2bd002,_0x130475,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2bd002['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x2bd002,_0x3318b3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x507708=_0x2bd002['plugins']['get']('CommentsRepository');this['listenTo'](_0x507708,'addComment',(_0x150425,{threadId:_0x17aaec})=>{const _0x1f78da=this['_suggestions']['get'](_0x17aaec);_0x1f78da&&_0x1f78da['commentThread']&&0x1===_0x1f78da['commentThread']['length']&&this['_updateSuggestionData'](_0x17aaec,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x507708,'removeComment',(_0x421673,{threadId:_0x341fc1})=>{const _0x474a48=this['_suggestions']['get'](_0x341fc1);_0x474a48&&_0x474a48['commentThread']&&!_0x474a48['commentThread']['length']&&this['_updateSuggestionData'](_0x341fc1,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){checkLicense$1(this);}set['adapter'](_0x1efb91){if(this['_adapter'])throw new CKEditorError('track-changes-adapter-already-set',this);this['_adapter']=_0x1efb91;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2c4d62=!0x1,toJSON:_0x223e42=!0x1}={}){const _0x55c999=[];for(const _0x33ec3a of this['_suggestions']['values']())_0x2c4d62&&!_0x33ec3a['isInContent']||_0x55c999['push'](_0x33ec3a);return _0x223e42?_0x55c999['map'](_0x4365d1=>_0x4365d1['toJSON']()):_0x55c999;}['getSuggestion'](_0x4bf962){const _0x4463d5=this['_suggestions']['get'](_0x4bf962);if(!_0x4463d5)throw new CKEditorError('track-changes-suggestion-not-found',this);return _0x4463d5;}['hasSuggestion'](_0x2efe12){return this['_suggestions']['has'](_0x2efe12);}['addSuggestionData'](_0x529cda){const {authorId:_0x39c3ae,id:_0x580a46,originalSuggestionId:_0xa53323,attributes:_0x6df7ac}=_0x529cda,[_0x53e263,_0x5e534b]=_0x529cda['type']['split'](':'),_0x4e0f52=this['_suggestions']['get'](_0x580a46)||this['_createSuggestion'](_0x53e263,_0x5e534b,_0x580a46,_0x39c3ae,_0x6df7ac,_0xa53323);if(this['_addThreadToSuggestion'](_0x4e0f52),this['_checkSuggestionCorrectness'](_0x4e0f52,_0x53e263,_0x5e534b||null,_0x39c3ae),_0x4e0f52['createdAt']=_0x529cda['createdAt'],_0x4e0f52['_isDataLoaded']=!0x0,_0x6df7ac&&_0x6df7ac['@external']){const _0x2a6fad=_0x6df7ac['@external'],_0x56ef4b=this['_getExternalAuthor'](_0x2a6fad['authorName']);_0x4e0f52['authoredAt']=_0x2a6fad['createdAt'],_0x4e0f52['author']=_0x56ef4b,_0x4e0f52['isExternal']=!0x0;}else _0x4e0f52['authoredAt']=_0x529cda['createdAt'];switch(_0x529cda['data']&&(_0x4e0f52['data']=_0x529cda['data']),_0x529cda['attributes']&&(_0x4e0f52['attributes']=_0x529cda['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4e0f52['_saved']=!0x0),this['_suggestionState']['get'](_0x4e0f52)){case'notReady':this['_suggestionState']['set'](_0x4e0f52,'dataReady');break;case'markerReady':_0x4e0f52['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4e0f52])),this['_refreshSuggestionsChain'](new Set([_0x4e0f52])),this['_suggestionState']['set'](_0x4e0f52,'ready'),this['fire']('suggestionLoaded',_0x4e0f52)):this['_suggestionState']['set'](_0x4e0f52,'removed');}return _0x4e0f52;}['acceptSuggestion'](_0x5dc83c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x318d24 of _0x5dc83c['getAllAdjacentSuggestions']())_0x318d24['accept']();});});}['discardSuggestion'](_0x7fdf94){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3896c3 of _0x7fdf94['getAllAdjacentSuggestions']())_0x3896c3['discard']();});});}['enableCommand'](_0x5ceb7f,_0x29291c){const _0x24b0b4=this['editor']['commands']['get'](_0x5ceb7f);if(!_0x24b0b4)throw new CKEditorError('track-changes-command-not-found',this,{'commandName':_0x5ceb7f});if(this['_enabledCommands']['has'](_0x24b0b4))throw new CKEditorError('track-changes-enable-command-twice',this,{'commandName':_0x5ceb7f});this['_enabledCommands']['add'](_0x24b0b4),_0x29291c&&_0x24b0b4['on']('execute',(_0x1f36df,_0x464903)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x464903['length']>0x0&&_0x464903[_0x464903['length']-0x1]&&_0x464903[_0x464903['length']-0x1]['forceDefaultExecution']?_0x464903['pop']():(_0x1f36df['return']=_0x29291c((..._0x2bffe1)=>_0x24b0b4['execute'](..._0x2bffe1,{'forceDefaultExecution':!0x0}),..._0x464903),_0x1f36df['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xc5accd){let _0x2fa48f,_0xe2ba59;const _0x4bf83=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2fa48f=_0xc5accd();}catch(_0x4cfbb9){_0xe2ba59=_0x4cfbb9;}return _0x4bf83||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xe2ba59&&CKEditorError['rethrowUnexpectedError'](_0xe2ba59,this),_0x2fa48f;}['markInsertion'](_0x55bdd2,_0x5bda67=null,_0x1f019b={}){if(_0x55bdd2['isCollapsed'])return null;const _0x2d5ee5=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1f019b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x193442,meta:_0x243a2c}of this['_findSuggestions'](_0x55bdd2,'insertion'))if(_0x243a2c['isOwn']){if(!_0x243a2c['isNextTo']){if(_0x243a2c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!_areSimilarAttributes(_0x193442,_0x1f019b))continue;return _0x193442;}if(_areSimilarAttributes(_0x193442,_0x1f019b))return _0x193442;this['_breakSuggestionMarker'](_0x193442,_0x55bdd2['start'],_0x55bdd2['end']);break;}if(_0x5bda67==_0x193442['subType']&&_areSimilarAttributes(_0x193442,_0x1f019b)){const _0x214010=_0x193442['getFirstRange']();return _0x214010['start']['isEqual'](_0x55bdd2['end'])?this['_setSuggestionRange'](_0x193442,this['_model']['createRange'](_0x55bdd2['start'],_0x214010['end'])):this['_setSuggestionRange'](_0x193442,this['_model']['createRange'](_0x214010['start'],_0x55bdd2['end'])),_0x193442;}}const _0x4c2379=uid(),_0x31cf72=_0x2d5ee5['id'],_0x1c1363=_0x5bda67?'insertion:'+_0x5bda67:'insertion',_0x18bcc2=this['_setSuggestionData']({'id':_0x4c2379,'type':_0x1c1363,'createdAt':new Date(),'authorId':_0x31cf72,'attributes':_0x1f019b});return this['_addSuggestionMarker'](_0x1c1363,_0x4c2379,_0x31cf72,_0x55bdd2),_0x18bcc2;}['markMultiRangeInsertion'](_0x7a46ec,_0x26cdd8='multi',_0x59c726={}){const _0x253870=this['editor']['plugins']['get']('Users')['me'],_0x159a91=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x26cdd8,'join');this['_trackingSessionId']&&(_0x59c726['trackingSessionId']=this['_trackingSessionId']);for(const _0x51dab9 of this['getSuggestions']())if(_0x51dab9['author']['id']==_0x253870['id']&&'insertion'==_0x51dab9['type']&&_0x51dab9['subType']==_0x26cdd8&&_areSimilarAttributes(_0x51dab9,_0x59c726)&&(_0x159a91(_0x51dab9['getRanges'](),_0x7a46ec)||_0x159a91(_0x7a46ec,_0x51dab9['getRanges']()))){for(const _0xa6907c of _0x7a46ec)_0x51dab9['addRange'](_0xa6907c);return _0x51dab9;}for(const {suggestion:_0x451c7d,meta:_0x4f096b}of this['_findSuggestions'](_0x7a46ec,'insertion')){if(!_0x4f096b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4f096b['containsRangeInObject'])continue;if(!_areSimilarAttributes(_0x451c7d,_0x59c726))continue;let _0x5f3ffe=!0x0;for(const _0x25d4f4 of _0x451c7d['getRanges']())for(const _0x543d01 of _0x7a46ec)if(!_0x25d4f4['containsRange'](_0x543d01)){_0x5f3ffe=!0x1;break;}if(_0x5f3ffe)return _0x451c7d;}const _0x3f95d1=uid(),_0xf1c632=_0x253870['id'],_0x5e7925='insertion:'+_0x26cdd8,_0x3768a9=this['_setSuggestionData']({'id':_0x3f95d1,'type':_0x5e7925,'createdAt':new Date(),'authorId':_0xf1c632,'attributes':_0x59c726});for(const _0x27df0e of _0x7a46ec)this['_addSuggestionMarker'](_0x5e7925,_0x3f95d1,_0xf1c632,_0x27df0e,Suggestion['getMultiRangeId']());return _0x3768a9;}['markInlineFormat'](_0x2f0dae,_0x4f24a6,_0x4d5f26=null,_0x10ea4c={}){if(_0x4d5f26=_0x4d5f26||createFormatSubType(_0x4f24a6),_0x2f0dae['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x10ea4c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1c52ef=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d5f26,'accept');return this['forceDefaultExecution'](()=>_0x1c52ef([_0x2f0dae],_0x4f24a6,_0x10ea4c)),null;}const _0x1da8d1=this['editor']['plugins']['get']('Users')['me'],_0x559744=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x35d837,meta:_0x206640}of this['_findSuggestions'](_0x2f0dae,'insertion'))_0x206640['isOwn']&&!_0x206640['isInsideObject']&&_0x559744['push'](..._0x35d837['getRanges']());}const _0xff3fc3=getIntersectionsWithMultipleRanges(_0x2f0dae,_0x559744),_0x332d41=getDifferencesWithMultipleRanges(_0x2f0dae,_0x559744);_0xff3fc3['length']&&this['_model']['change'](()=>{for(const _0x8da475 of _0xff3fc3){const _0x5130f6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d5f26,'accept');this['forceDefaultExecution'](()=>_0x5130f6([_0x8da475],_0x4f24a6,_0x10ea4c));}});for(const _0x501b86 of _0x332d41){let _0x33edac=null,_0x2a6c0b=_0x501b86['start'],_0x20559e=_0x501b86['end'];for(const {suggestion:_0x28b622,meta:_0x25bd94}of this['_findSuggestions'](_0x501b86,'formatInline')){if(!_0x25bd94['isOwn'])continue;if(_0x28b622['subType']!=_0x4d5f26)continue;if(!_areSimilarAttributes(_0x28b622,_0x10ea4c))continue;const _0x3792b0=_0x28b622['getFirstRange']();if(_0x3792b0['containsRange'](_0x501b86,!0x0))return null;_0x2a6c0b=_0x2a6c0b['isBefore'](_0x3792b0['start'])?_0x2a6c0b:_0x3792b0['start'],_0x20559e=_0x20559e['isAfter'](_0x3792b0['end'])?_0x20559e:_0x3792b0['end'],_0x33edac?_0x3792b0['start']['isBefore'](_0x33edac['getFirstRange']()['start'])?(_0x33edac['removeMarkers'](),_0x33edac=_0x28b622):_0x28b622['removeMarkers']():_0x33edac=_0x28b622;}const _0x534748=this['_model']['createRange'](_0x2a6c0b,_0x20559e);if(_0x33edac)this['_setSuggestionRange'](_0x33edac,_0x534748);else{const _0x17f69b=uid(),_0xd23d9d=_0x1da8d1['id'];this['_setSuggestionData']({'id':_0x17f69b,'type':'formatInline:'+_0x4d5f26,'data':_0x4f24a6,'createdAt':new Date(),'authorId':_0xd23d9d,'attributes':_0x10ea4c}),this['_addSuggestionMarker']('formatInline:'+_0x4d5f26,_0x17f69b,_0xd23d9d,_0x534748);}}return null;}['markBlockFormat'](_0x5a4195,_0x1b858e,_0x1dfcad=[],_0x42eee3=null,_0x5454aa={}){_0x1b858e['formatGroupId']||(_0x1b858e['formatGroupId']=_0x1b858e['commandName']),_0x1b858e['multipleBlocks']=_0x5a4195['is']('range'),_0x42eee3=_0x42eee3||createFormatSubType(_0x1b858e);const _0x3fa67a=_0x1dfcad['map'](_0x1f98d0=>createBlockFormatRangeForElement(_0x1f98d0,this['_model'])),_0x32ef4e=_0x5a4195['is']('range')?_0x5a4195:createBlockFormatRangeForElement(_0x5a4195,this['_model']);if(this['_trackingSessionId']&&(_0x5454aa['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x441208=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x42eee3,'accept');return this['forceDefaultExecution'](()=>_0x441208([_0x32ef4e],_0x1b858e,_0x5454aa)),null;}_0x3fa67a['push'](_0x32ef4e);let _0x547862=!0x0;for(const _0x404b96 of _0x3fa67a)if(!this['_rangeIsInLocalUserInsertion'](_0x404b96)){_0x547862=!0x1;break;}if(_0x547862&&'always'!==this['_trackFormatChanges']){const _0x4bb8b7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x42eee3,'accept');return this['forceDefaultExecution'](()=>_0x4bb8b7([_0x32ef4e],_0x1b858e,_0x5454aa)),null;}let _0x3ab5e5=null,_0x575a81=_0x32ef4e['start'],_0x2add5a=_0x32ef4e['end'];for(const {suggestion:_0x4f8f55,meta:_0x529e05}of this['_findSuggestions'](_0x32ef4e,'formatBlock')){if(!_0x529e05['isOwn'])continue;if(_0x529e05['isNextTo']||_0x529e05['containsRangeInObject']||_0x529e05['isInsideObject'])continue;if(_0x4f8f55['data']['formatGroupId']!=_0x1b858e['formatGroupId'])continue;if(!_areSimilarAttributes(_0x4f8f55,_0x5454aa))continue;const _0x2f2cdb=_0x4f8f55['getFirstRange']();if(_0x4f8f55['subType']==_0x42eee3){if(_0x2f2cdb['containsRange'](_0x32ef4e,!0x0))return null;_0x575a81=_0x575a81['isBefore'](_0x2f2cdb['start'])?_0x575a81:_0x2f2cdb['start'],_0x2add5a=_0x2add5a['isAfter'](_0x2f2cdb['end'])?_0x2add5a:_0x2f2cdb['end'],_0x3ab5e5?_0x2f2cdb['start']['isBefore'](_0x3ab5e5['getFirstRange']()['start'])?(_0x3ab5e5['removeMarkers'](),_0x3ab5e5=_0x4f8f55):_0x4f8f55['removeMarkers']():_0x3ab5e5=_0x4f8f55;}else{const _0x44a78c=_0x32ef4e['getIntersection'](_0x2f2cdb);this['_cutOutSuggestionMarker'](_0x4f8f55,_0x44a78c);}}const _0x3a6ab9=this['editor']['plugins']['get']('Users')['me'],_0x3f260d=uid(),_0x394ac8=_0x3a6ab9['id'];if(_0x3ab5e5)return this['_setSuggestionRange'](_0x3ab5e5,this['_model']['createRange'](_0x575a81,_0x2add5a)),_0x3ab5e5;{const _0x38ffcc=this['_setSuggestionData']({'id':_0x3f260d,'type':'formatBlock:'+_0x42eee3,'data':_0x1b858e,'createdAt':new Date(),'authorId':_0x394ac8,'attributes':_0x5454aa});return this['_addSuggestionMarker']('formatBlock:'+_0x42eee3,_0x3f260d,_0x394ac8,this['_model']['createRange'](_0x575a81,_0x2add5a)),_0x38ffcc;}}['markMultiRangeBlockFormat'](_0x8ce08e,_0x15c461,_0xc2f37b=[],_0xe863c8=null,_0xbedf16={}){_0x15c461['formatGroupId']||(_0x15c461['formatGroupId']=_0x15c461['commandName']);const _0x3c5d81=_0x8ce08e[0x0];_0x15c461['multipleBlocks']=_0x3c5d81['is']('range'),_0xe863c8=_0xe863c8||createFormatSubType(_0x15c461);const _0x4145ab=_0xc2f37b['map'](_0x260f29=>createBlockFormatRangeForElement(_0x260f29,this['_model'])),_0x426338=_0x3c5d81['is']('range')?_0x8ce08e:_0x8ce08e['map'](_0x35e08b=>createBlockFormatRangeForElement(_0x35e08b,this['_model']));if(this['_trackingSessionId']&&(_0xbedf16['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x35daa5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe863c8,'accept');return this['forceDefaultExecution'](()=>_0x35daa5(_0x426338,_0x15c461,_0xbedf16)),null;}_0x4145ab['push'](..._0x426338);let _0x1b1b4f=!0x0;for(const _0x3a8393 of _0x4145ab)if(!this['_rangeIsInLocalUserInsertion'](_0x3a8393)){_0x1b1b4f=!0x1;break;}if(_0x1b1b4f&&'always'!==this['_trackFormatChanges']){const _0x457ea6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe863c8,'accept');return this['forceDefaultExecution'](()=>_0x457ea6(_0x426338,_0x15c461,_0xbedf16)),null;}const _0xbf7d3d=this['editor']['plugins']['get']('Users')['me'];for(const _0x2966a6 of this['getSuggestions']()){const _0x4eaba3=_0x2966a6['data'];if(_0x2966a6['author']['id']!=_0xbf7d3d['id'])continue;if('formatBlock'!=_0x2966a6['type']||_0x4eaba3['formatGroupId']!=_0x15c461['formatGroupId'])continue;if(!_areSimilarAttributes(_0x2966a6,_0xbedf16))continue;const _0x593eec=_0x2966a6['subType']==_0xe863c8;for(let _0x1a1c1a=0x0;_0x1a1c1a<_0x426338['length'];_0x1a1c1a++){const _0x465e0d=_0x426338[_0x1a1c1a];for(const _0x5d1aa0 of _0x2966a6['getMarkers']()){const _0x58528b=_0x5d1aa0['getRange']();if(_0x465e0d['isEqual'](_0x58528b)){_0x593eec?(_0x426338['splice'](_0x1a1c1a,0x1),_0x1a1c1a--):_0x2966a6['removeMarker'](_0x5d1aa0['name']);break;}}}}if(0x0==_0x426338['length'])return null;const _0x24cf63=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe863c8,'join');for(const _0x1550d4 of this['getSuggestions']()){const _0xcf6078=_0x1550d4['data'];if(_0x1550d4['author']['id']==_0xbf7d3d['id']&&('formatBlock'==_0x1550d4['type']&&_0xcf6078['formatGroupId']==_0x15c461['formatGroupId']&&_0x1550d4['subType']==_0xe863c8&&_areSimilarAttributes(_0x1550d4,_0xbedf16)&&(_0x24cf63(_0x1550d4['getRanges'](),_0x426338)||_0x24cf63(_0x426338,_0x1550d4['getRanges']())))){for(const _0x36ae82 of _0x426338)_0x1550d4['addRange'](_0x36ae82);return _0x1550d4;}}const _0xd36ae2=uid(),_0x3e3c68=_0xbf7d3d['id'],_0x414a7e='formatBlock:'+_0xe863c8,_0x53943a=this['_setSuggestionData']({'id':_0xd36ae2,'type':_0x414a7e,'data':_0x15c461,'createdAt':new Date(),'authorId':_0x3e3c68,'attributes':_0xbedf16});for(const _0x4dc39d of _0x426338)this['_addSuggestionMarker'](_0x414a7e,_0xd36ae2,_0x3e3c68,_0x4dc39d,Suggestion['getMultiRangeId']());return _0x53943a;}['markDeletion'](_0x11de5c,_0x5383a3=null,_0x450b3a={}){if(_0x11de5c['isCollapsed'])return null;const _0x47b394=this['editor']['plugins']['get']('Users')['me'],_0x52063e=new ModelLiveRange(_0x11de5c['start'],_0x11de5c['end']);this['_trackingSessionId']&&(_0x450b3a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x70b43d,meta:_0x561fc0}of this['_findSuggestions'](_0x52063e,'insertion'))if(_0x561fc0['isOwn']&&!_0x561fc0['isNextTo']){if(_0x70b43d['isMultiRange']){const _0x19872d=_0x70b43d['getRanges']()['filter'](_0x10a5a9=>'$graveyard'!=_0x10a5a9['root']['rootName']);_0x19872d['every'](_0x2c58f7=>_0x52063e['containsRange'](_0x2c58f7,!0x0))&&_0x70b43d['discard']();if(_0x19872d['some'](_0x37aa0d=>_0x37aa0d['containsRange'](_0x52063e,!0x0))){const _0x2dbef2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5383a3,'accept');return this['forceDefaultExecution'](()=>_0x2dbef2([_0x52063e],null,_0x450b3a)),null;}}else{const _0xaa1ac4=_0x52063e['getIntersection'](_0x70b43d['getFirstRange']());null!==_0xaa1ac4&&_0x70b43d['_onDiscard']([_0xaa1ac4],null,_0x450b3a);}}if(_0x52063e['detach'](),_0x52063e['isCollapsed']||'$graveyard'==_0x52063e['root']['rootName'])return null;let _0x1c29cf=null,_0x1b3dc1=_0x52063e['start'],_0x13fafa=_0x52063e['end'];const _0x1f33a3=this['_findSuggestions'](_0x52063e,'deletion');for(const {suggestion:_0x5c3093,meta:_0x3edd29}of _0x1f33a3){const _0x51b8a6=this['_model']['createRange'](_0x1b3dc1,_0x13fafa);if(_0x3edd29['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3edd29['containsRangeInObject']&&!_0x3edd29['isInsideObject'])){if(_0x5c3093['isMultiRange']){if(!_areSimilarAttributes(_0x5c3093,_0x450b3a))continue;let _0x3d52e1=!0x0;for(const _0x2c603d of _0x5c3093['getRanges']()){if(_0x2c603d['containsRange'](_0x51b8a6,!0x0))return _0x5c3093;_0x51b8a6['containsRange'](_0x2c603d)||(_0x3d52e1=!0x1);}_0x3d52e1&&_0x5c3093['discard']();}else{const _0x49a5e4=_0x5c3093['getFirstRange']();if(_0x49a5e4['containsRange'](_0x51b8a6,!0x0))return _0x5c3093;if(!_areSimilarAttributes(_0x5c3093,_0x450b3a)){_0x51b8a6['containsRange'](_0x49a5e4)?_0x5c3093['removeMarkers']():_0x49a5e4['containsPosition'](_0x1b3dc1)?_0x1b3dc1=_0x49a5e4['end']:_0x49a5e4['containsPosition'](_0x13fafa)&&(_0x13fafa=_0x49a5e4['start']);continue;}_0x1b3dc1=_0x1b3dc1['isBefore'](_0x49a5e4['start'])?_0x1b3dc1:_0x49a5e4['start'],_0x13fafa=_0x13fafa['isAfter'](_0x49a5e4['end'])?_0x13fafa:_0x49a5e4['end'],_0x450b3a=Object['assign']({},_0x5c3093['attributes']),_0x1c29cf?_0x49a5e4['start']['isBefore'](_0x1c29cf['getFirstRange']()['start'])?(_0x1c29cf['removeMarkers'](),_0x1c29cf=_0x5c3093):_0x5c3093['removeMarkers']():_0x1c29cf=_0x5c3093;}}}if(_0x1c29cf)return this['_setSuggestionRange'](_0x1c29cf,this['_model']['createRange'](_0x1b3dc1,_0x13fafa)),_0x1c29cf;{const _0x4f878b=uid(),_0x4dd283=this['_model']['createRange'](_0x1b3dc1,_0x13fafa),_0x13d034=_0x47b394['id'],_0x29b170=_0x5383a3?'deletion:'+_0x5383a3:'deletion',_0x13b963=this['_setSuggestionData']({'id':_0x4f878b,'type':_0x29b170,'createdAt':new Date(),'authorId':_0x13d034,'attributes':_0x450b3a});return this['_addSuggestionMarker'](_0x29b170,_0x4f878b,_0x13d034,_0x4dd283),_0x13b963;}}['markMultiRangeDeletion'](_0xd70e84,_0x5dad60='multi',_0x404fbc={}){const _0x3d342f=this['editor']['plugins']['get']('Users')['me'],_0x58c3b0=_0xd70e84['map'](_0x377be9=>new ModelLiveRange(_0x377be9['start'],_0x377be9['end'])),_0x2b2e5c=new Set();this['_trackingSessionId']&&(_0x404fbc['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x195e6e,meta:_0x505fc9}of this['_findSuggestions'](_0x58c3b0,'insertion'))_0x505fc9['isOwn']&&!_0x505fc9['isNextTo']&&_0x2b2e5c['add'](_0x195e6e);for(const _0x463dd4 of _0x2b2e5c)if(_0x463dd4['isMultiRange']){const _0x5ad932=_0x463dd4['getRanges']();(!_0x463dd4['attributes']||!_0x463dd4['attributes']['skipNestingCheck'])&&(_0x5ad932['every'](_0x56a1d5=>_0x58c3b0['some'](_0x1752c7=>_0x1752c7['containsRange'](_0x56a1d5,!0x0)))&&_0x463dd4['discard']());if(_0x58c3b0['every'](_0x41669e=>_0x5ad932['some'](_0x179bc9=>_0x179bc9['containsRange'](_0x41669e,!0x0)))){const _0x135c6d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5dad60,'accept');return this['forceDefaultExecution'](()=>_0x135c6d(_0xd70e84,null,_0x404fbc)),null;}}else{const _0x3a593c=_0x463dd4['getFirstRange']();_0x58c3b0['some'](_0x3bcf04=>_0x3bcf04['containsRange'](_0x3a593c,!0x0))&&_0x463dd4['discard']();if(_0x58c3b0['every'](_0x4a0f3a=>_0x3a593c['containsRange'](_0x4a0f3a,!0x0))){const _0x4d2442=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5dad60,'accept');return this['forceDefaultExecution'](()=>_0x4d2442(_0x58c3b0,null,_0x404fbc)),null;}}const _0x46696b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5dad60,'join');let _0x536529=null;for(const _0x26a17e of this['getSuggestions']())if(_0x26a17e['author']['id']==_0x3d342f['id']&&_0x26a17e['isInContent']&&'deletion'==_0x26a17e['type']&&_0x26a17e['subType']==_0x5dad60&&_areSimilarAttributes(_0x26a17e,_0x404fbc)&&(_0x46696b(_0x26a17e['getRanges'](),_0x58c3b0)||_0x46696b(_0x58c3b0,_0x26a17e['getRanges']()))){if(_0x536529){if(_0x26a17e['commentThread']&&_0x26a17e['commentThread']['length'])continue;for(const _0x222e3b of _0x26a17e['getRanges']())_0x536529['isIntersectingWithRange'](_0x222e3b)||_0x536529['addRange'](_0x222e3b);_0x26a17e['removeMarkers']();}else{_0x536529=_0x26a17e;for(const _0x51c021 of _0x58c3b0)_0x26a17e['isIntersectingWithRange'](_0x51c021)||_0x26a17e['addRange'](_0x51c021);}}if(_0x536529)return _0x536529;_0x2b2e5c['clear']();for(const {suggestion:_0x47319a,meta:_0x3caa6a}of this['_findSuggestions'](_0x58c3b0,'deletion'))_0x3caa6a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3caa6a['containsRangeInObject']&&!_0x3caa6a['isInsideObject'])&&_areSimilarAttributes(_0x47319a,_0x404fbc)&&_0x2b2e5c['add'](_0x47319a);for(const _0x34be20 of _0x2b2e5c){const _0x18173e=_0x34be20['getRanges']();if(!_0x404fbc||!_0x404fbc['skipNestingCheck']){if(_0x58c3b0['every'](_0x428009=>_0x18173e['some'](_0x10f9ca=>_0x10f9ca['containsRange'](_0x428009,!0x0))))return _0x34be20;}(!_0x34be20['attributes']||!_0x34be20['attributes']['skipNestingCheck'])&&(_0x18173e['every'](_0x1800cc=>_0x58c3b0['some'](_0x519c5f=>_0x519c5f['containsRange'](_0x1800cc,!0x0)))&&_0x34be20['discard']());}const _0x57185b=uid(),_0x5c50a3=_0x3d342f['id'],_0xfa44e4='deletion:'+_0x5dad60,_0x2621d5=this['_setSuggestionData']({'id':_0x57185b,'type':_0xfa44e4,'createdAt':new Date(),'authorId':_0x5c50a3,'attributes':_0x404fbc});for(const _0x15c4e7 of _0x58c3b0)_0x15c4e7['detach'](),_0x15c4e7['isCollapsed']||'$graveyard'==_0x15c4e7['root']['rootName']||this['_addSuggestionMarker'](_0xfa44e4,_0x57185b,_0x5c50a3,_0x15c4e7,Suggestion['getMultiRangeId']());return _0x2621d5;}['markAttributeChange'](_0x1080f2,_0x11bebd,_0x4ae890,_0x133750,_0xb53602){if(_0x1080f2['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1c5e51=this['editor']['plugins']['get']('Users')['me']['id'],_0x5942a8=Array['from'](this['_suggestions']['values']())['filter'](_0x8631a4=>'attribute'==_0x8631a4['type']&&_0x8631a4['data']['key']==_0x11bebd&&_0x8631a4['isIntersectingWithRange'](_0x1080f2));if(this['_trackingSessionId']&&(_0xb53602['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x17fd4e=this['_findSuggestions'](_0x1080f2,'insertion')['filter'](({meta:_0x157d09})=>_0x157d09['isOwn']&&!_0x157d09['isInsideObject']&&!_0x157d09['isNextTo'])['map'](({suggestion:_0xf7cb9d})=>_0xf7cb9d);_0x5942a8['unshift'](..._0x17fd4e);}const _0x4f133d=new Map([[_0x1080f2,_0x4ae890]]);for(const _0x55b49e of _0x5942a8){const _0x4299c7='attribute'==_0x55b49e['type']?_0x55b49e['data']['oldValue']:void 0x0,_0x32df10=_0x55b49e['getFirstRange'](),_0x23b81a=Array['from'](_0x4f133d['keys']())['find'](_0x4f56d6=>_0x4f56d6['isIntersecting'](_0x32df10));if(!_0x23b81a)continue;const _0x243edd=_0x23b81a['getDifference'](_0x32df10);this['_isBlockAttribute'](_0x11bebd)&&'insertion'==_0x55b49e['type']&&0x0!=_0x243edd['length']||(_0x4f133d['delete'](_0x23b81a),_0x243edd['forEach'](_0x5bdc8f=>{_0x4f133d['set'](_0x5bdc8f,_0x4ae890);}),'insertion'!=_0x55b49e['type']&&_0x4299c7!=_0x133750&&_0x4f133d['set'](_0x23b81a['getIntersection'](_0x32df10),_0x4299c7));}const _0x13715e=[];for(const [_0x5a6e1a,_0x3b0f42]of _0x4f133d){const _0x22a997=uid(),_0xdac801={'key':_0x11bebd,'oldValue':_0x3b0f42,'newValue':_0x133750};_0x11bebd['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':_0x11bebd});const _0x481eef=('attribute:'+(_0x11bebd+'|'+createFormatSubType({'newValue':_0x133750})))['substring'](0x0,0x3c),_0x132d95=this['_setSuggestionData']({'id':_0x22a997,'type':_0x481eef,'data':_0xdac801,'createdAt':new Date(),'authorId':_0x1c5e51,'attributes':_0xb53602});_0x13715e['push'](_0x132d95),this['_addSuggestionMarker'](_0x481eef,_0x22a997,_0x1c5e51,_0x5a6e1a);}return _0x13715e;}['enableDefaultAttributesIntegration'](_0xa5ba18){this['enableCommand'](_0xa5ba18,(_0x5dac9a,..._0x59fa60)=>{this['recordAttributeChanges'](()=>{_0x5dac9a(..._0x59fa60);});});}['registerBlockAttribute'](_0x451123){this['editor']['plugins']['get'](SuggestionsConversion)['registerBlockAttribute'](_0x451123);}['registerInlineAttribute'](_0x40490d){this['editor']['plugins']['get'](SuggestionsConversion)['registerInlineAttribute'](_0x40490d);}['startTrackingSession'](_0x59bbf0){return this['_trackingSessionId']=void 0x0!==_0x59bbf0?_0x59bbf0:uid(),this['_trackingSessionId'];}['_getAttributeKey'](_0x17965c){return'attribute'==_0x17965c['type']?_getAttributeKeyFromSubType(_0x17965c['subType']):null;}['_applyOperationsAsSuggestions'](_0x50d42f){if(0x0==_0x50d42f['length'])return;const _0x320745=this['editor'],_0x1bde25=_0x320745['plugins']['get'](DocumentCompare),_0x51cd3e=[];_0x320745['model']['change'](_0x2d9881=>{for(let _0x1cb89b=0x0;_0x1cb89b<_0x50d42f['length'];_0x1cb89b++){const _0x3508bf=_0x50d42f[_0x1cb89b];if(_0x3508bf['baseVersion']=_0x320745['model']['document']['version'],_0x3508bf['isDocumentOperation']=!0x0,_0x1bde25['isMarkedRemoveOperation'](_0x3508bf)){const _0x24cba1=fixElementSuggestionRange(_0x3508bf['newRange'],_0x320745['model']);_0x51cd3e['unshift'](ModelLiveRange['fromRange'](_0x24cba1));}else switch(_0x3508bf['type']){case'rename':{const _0x4f8403=_0x3508bf['oldName'],_0xaf080c=_0x3508bf['newName'];if(_0x4f8403==_0xaf080c)break;_0x2d9881['batch']['addOperation'](_0x3508bf),_0x320745['model']['applyOperation'](_0x3508bf);const _0x3a481f='$elementName',_0x381813=_0x3508bf['position'],_0x575cab=_0x320745['model']['createRange'](_0x381813,_0x320745['model']['createPositionAt'](_0x381813['nodeAfter'],'end'));this['markAttributeChange'](_0x575cab,_0x3a481f,_0x4f8403,_0xaf080c,{'groupId':uid()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x309e09=_0x3508bf['oldValue'],_0x1799f7=_0x3508bf['newValue'];if(_0x309e09==_0x1799f7)break;_0x2d9881['batch']['addOperation'](_0x3508bf),_0x320745['model']['applyOperation'](_0x3508bf);const _0x5bd894=_0x3508bf['key'];if(!this['_isRegisteredAttribute'](_0x5bd894))break;const _0x31caf6=fixElementSuggestionRange(_0x3508bf['range'],_0x320745['model']);this['markAttributeChange'](_0x31caf6,_0x5bd894,_0x309e09,_0x1799f7,{'groupId':uid()});break;}case'insert':{_0x2d9881['batch']['addOperation'](_0x3508bf),_0x320745['model']['applyOperation'](_0x3508bf);if(_0x50d42f[_0x1cb89b+0x1]&&'move'==_0x50d42f[_0x1cb89b+0x1]['type'])break;const _0x1dbd4c=_0x3508bf['position'],_0x2515ab=_0x3508bf['howMany'],_0x30d1ce=fixElementSuggestionRange(_0x320745['model']['createRange'](_0x1dbd4c,_0x1dbd4c['getShiftedBy'](_0x2515ab)),_0x320745['model']);this['markInsertion'](_0x30d1ce);break;}case'split':{_0x2d9881['batch']['addOperation'](_0x3508bf),_0x320745['model']['applyOperation'](_0x3508bf);const _0x54e5d6=_0x3508bf['splitPosition'],_0x15becb=_0x3508bf['moveTargetPosition'];this['markInsertion'](_0x320745['model']['createRange'](_0x54e5d6,_0x15becb));break;}case'move':case'remove':_0x2d9881['batch']['addOperation'](_0x3508bf),_0x320745['model']['applyOperation'](_0x3508bf);}}for(const _0x17631f of _0x51cd3e)_0x17631f['detach'](),this['markDeletion'](_0x17631f);});}['_setSuggestionRange'](_0x2e5499,_0x55b04e){const _0x11c0a9=_0x2e5499['getFirstMarker']();this['_model']['change'](_0x90892d=>{_0x90892d['updateMarker'](_0x11c0a9,{'range':_0x55b04e});});}['_addThreadToSuggestion'](_0x29bae9){const _0x24609b=_0x29bae9['id'],_0xf67466=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x24609b)||this['_commentsRepository']['addCommentThread']({'channelId':_0xf67466,'threadId':_0x24609b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x54df57=this['_commentsRepository']['getCommentThread'](_0x24609b);_0x54df57['unbind']('isRemovable'),_0x54df57['isRemovable']=!0x1,_0x29bae9['commentThread']=_0x54df57;}['_checkSuggestionCorrectness'](_0x426bfc,_0x51ee8d,_0x1acd85,_0xe08a4b){if(_0x426bfc['type']!=_0x51ee8d||_0x426bfc['subType']!=_0x1acd85||_0x426bfc['creator']['id']!=_0xe08a4b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new CKEditorError('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3f3453,_0x42f3d3){const _0x1982f7=_0x3f3453['getFirstRange']();if(_0x42f3d3['isEqual'](_0x1982f7))_0x3f3453['removeMarkers']();else{if(_0x1982f7['containsRange'](_0x42f3d3)){const _0x31f9c9=this['_model']['createPositionAt'](_0x42f3d3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f3453,this['_model']['createRange'](_0x1982f7['start'],_0x31f9c9));const _0x1babfd=uid(),_0x31caaf=_0x3f3453['creator']['id'],_0x3d61a3=_0x3f3453['type']+':'+_0x3f3453['subType'];this['_setSuggestionData']({'id':_0x1babfd,'type':_0x3d61a3,'createdAt':new Date(),'authorId':_0x31caaf,'data':_0x3f3453['data'],'attributes':_0x3f3453['attributes']});const _0x5522ce=this['_model']['createPositionAt'](_0x42f3d3['end']['parent'],'after'),_0x5c5bc3=this['_model']['createRange'](_0x5522ce,_0x1982f7['end']);this['_addSuggestionMarker'](_0x3d61a3,_0x1babfd,_0x31caaf,_0x5c5bc3);}else{if(_0x1982f7['containsPosition'](_0x42f3d3['start'])){const _0xce30d1=this['_model']['createPositionAt'](_0x42f3d3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f3453,this['_model']['createRange'](_0x1982f7['start'],_0xce30d1));}else{const _0x500eca=this['_model']['createPositionAt'](_0x42f3d3['end']['parent'],'after');this['_setSuggestionRange'](_0x3f3453,this['_model']['createRange'](_0x500eca,_0x1982f7['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1160a3){for(const {suggestion:_0x27662d,meta:_0xec71c4}of this['_findSuggestions'](_0x1160a3,'insertion')){if(!_0xec71c4['isOwn'])continue;const _0x22af6a=_0x27662d['getRanges']();for(const _0x436ee6 of _0x22af6a)if(!_0x1160a3['getDifference'](_0x436ee6)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x595d75){return this['editor']['plugins']['get']('Users')['getUser'](_0x595d75);}['_getExternalAuthor'](_0x4755b4){const _0x167a96=this['editor']['plugins']['get']('Users'),_0x5745a7=hashObject('external:'+_0x4755b4),_0x238f3d=_0x167a96['getUser'](_0x5745a7);return _0x238f3d||_0x167a96['addUser']({'id':_0x5745a7,'name':_0x4755b4});}['_createSuggestion'](_0x46660f,_0x30cd34,_0x122efb,_0x2e7a2b,_0x77e63f,_0xe7f499){const _0x23c406=this['_getAuthorFromId'](_0x2e7a2b);if(!_0x23c406)throw new CKEditorError('track-changes-user-not-found',this,{'authorId':_0x2e7a2b,'suggestionId':_0x122efb});const _0x110b1d=this['_suggestionFactory']['buildSuggestion'](_0x46660f,_0x30cd34,_0x122efb,_0x23c406,_0x77e63f,_0x4f290c=>{this['_updateSuggestionData'](_0x122efb,{'attributes':_0x4f290c});const _0x3a818a=this['getSuggestion'](_0x122efb);this['_joinWithAdjacentSuggestions'](new Set([_0x3a818a])),this['_refreshSuggestionsChain'](new Set([_0x3a818a]));},_0xe7f499);return this['listenTo'](_0x110b1d,'accept',()=>{this['_updateSuggestionData'](_0x122efb,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x110b1d,'discard',()=>{this['_updateSuggestionData'](_0x122efb,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x122efb,_0x110b1d),this['_suggestionState']['set'](_0x110b1d,'notReady'),_0x110b1d;}['_splitMarkerName'](_0x54637e){return splitSuggestionMarkerName(_0x54637e);}['_breakSuggestionMarker'](_0x30d642,_0x4487f2,_0x14e343){const _0x1fa9bc=_0x30d642['getFirstRange'](),_0x127312=_0x1fa9bc['start'],_0xa56c43=_0x1fa9bc['end'];this['_setSuggestionRange'](_0x30d642,this['_model']['createRange'](_0x127312,_0x4487f2));const _0xf08428=uid(),_0xa7cac6=_0x30d642['creator']['id'],_0x4a1389=_0x30d642['type']+(_0x30d642['subType']?':'+_0x30d642['subType']:'');this['_setSuggestionData']({'id':_0xf08428,'type':_0x4a1389,'createdAt':new Date(),'authorId':_0xa7cac6,'originalSuggestionId':_0x30d642['_originalSuggestionId']||_0x30d642['id'],'attributes':_0x30d642['attributes'],'data':_0x30d642['data']});const _0x2258d3=this['_getAttributeKey'](_0x30d642);('formatBlock'==_0x30d642['type']||_0x2258d3&&this['_isBlockAttribute'](_0x2258d3))&&(_0x14e343=this['_model']['createPositionBefore'](_0x14e343['parent'])),this['_addSuggestionMarker'](_0x4a1389,_0xf08428,_0xa7cac6,this['_model']['createRange'](_0x14e343,_0xa56c43));}['_findSuggestions'](_0x48147b,_0x2187d4=null){const _0x122fe6=[],_0x283a1a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x48147b)||(_0x48147b=[_0x48147b]);for(const _0x33e994 of this['getSuggestions']()){if(!_0x33e994['isInContent'])continue;if(_0x2187d4&&_0x33e994['type']!=_0x2187d4)continue;let _0x20710f=!0x1;for(const _0xda0b55 of _0x33e994['getRanges']()){for(const _0x312a4e of _0x48147b){const _0xf00f86=_0x312a4e['start']['isEqual'](_0xda0b55['end'])||_0x312a4e['end']['isEqual'](_0xda0b55['start']);if(_0xf00f86||_0x312a4e['getIntersection'](_0xda0b55)){const _0x582e47=_0x312a4e['containsRange'](_0xda0b55)&&_isInObject(this['_model']['schema'],_0xda0b55['start'],_0x312a4e),_0x37ca65=_0xda0b55['containsRange'](_0x312a4e)&&_isInObject(this['_model']['schema'],_0x312a4e['start'],_0xda0b55);_0x122fe6['push']({'suggestion':_0x33e994,'meta':{'isOwn':_0x283a1a==_0x33e994['author'],'isNextTo':_0xf00f86,'isInsideObject':_0x582e47,'containsRangeInObject':_0x37ca65}}),_0x20710f=!0x0;break;}}if(_0x20710f)break;}}return _0x122fe6;}['_addSuggestionMarker'](_0x36b293,_0x5dc34a,_0x2953d6,_0x552252,_0x35988f){this['_model']['change'](_0x19f8db=>{let _0x2bb543='suggestion:'+_0x36b293+':'+_0x5dc34a+':'+_0x2953d6;_0x35988f&&(_0x2bb543=_0x2bb543+':'+_0x35988f),_0x19f8db['addMarker'](_0x2bb543,{'range':_0x552252,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x398f23){const _0x45171f=_0x398f23['previous'],_0x2bb1a1=_0x398f23['next'];_0x398f23['previous']=null,_0x398f23['next']=null,null!=_0x45171f&&_0x45171f['next']==_0x398f23&&(_0x45171f['next']=_0x2bb1a1),null!=_0x2bb1a1&&_0x2bb1a1['previous']==_0x398f23&&(_0x2bb1a1['previous']=_0x45171f),'ready'==this['_suggestionState']['get'](_0x398f23)&&(this['_suggestionState']['set'](_0x398f23,'removed'),this['fire']('suggestionUnloaded',_0x398f23,_0x45171f,_0x2bb1a1));}['_setSuggestionData'](_0x195245){const _0x4c15c8=_0x195245['id'],_0x89647d=this['addSuggestionData'](_0x195245);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3e9215=this['editor']['plugins']['get']('PendingActions'),_0x1339f7=_0x89647d['hasComments'],_0x75359=_0x89647d['subType']?_0x89647d['type']+':'+_0x89647d['subType']:_0x89647d['type'],_0x4bfdf0=this['editor']['locale'],_0x5ab529=_0x3e9215['add'](getTranslation$1(_0x4bfdf0,'PENDING_ACTION_SUGGESTION')),_0x4440e5={'id':_0x4c15c8,'type':_0x75359,'hasComments':_0x1339f7,'data':_0x195245['data']||null,'originalSuggestionId':_0x195245['originalSuggestionId']||null,'attributes':_0x89647d['attributes']};this['_adapter']['addSuggestion'](_0x4440e5)['then'](_0x521917=>{_0x89647d['_saved']=!0x0,_0x3e9215['remove'](_0x5ab529),_0x521917&&_0x521917['createdAt']&&(this['_suggestions']['get'](_0x4c15c8)['createdAt']=_0x521917['createdAt']);})['catch'](_0x445db9=>{throw logWarning('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x89647d['discard']();}),_0x89647d['stopListening'](),this['_suggestions']['delete'](_0x89647d['id']),this['_suggestionState']['delete'](_0x89647d),_0x445db9;});}return _0x89647d;}['_isBlockAttribute'](_0x55c850){return this['editor']['plugins']['get'](SuggestionsConversion)['isBlockAttribute'](_0x55c850);}['_isInlineAttribute'](_0x2357fe){return this['editor']['plugins']['get'](SuggestionsConversion)['isInlineAttribute'](_0x2357fe);}['_updateSuggestionData'](_0x503084,_0xfb57d0){const _0xfe4631=this['editor']['plugins']['get']('PendingActions'),_0x254c2d=this['getSuggestion'](_0x503084);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x254c2d['_saved']){const _0x52b200=_0xfe4631['add'](getTranslation$1(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x503084,_0xfb57d0)['then'](()=>{_0xfe4631['remove'](_0x52b200);});}else _0x254c2d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x503084,_0xfb57d0);});}}['_getSuggestionData'](_0x52769b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new CKEditorError('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x52769b);}['_handleNewSuggestionMarker'](_0x329b66){const {id:_0x44aecc,type:_0x53e9a0,subType:_0x6c1575,authorId:_0x5d2b03}=this['_splitMarkerName'](_0x329b66),_0x912d3b=this['_suggestions']['get'](_0x44aecc)||this['_createSuggestion'](_0x53e9a0,_0x6c1575,_0x44aecc,_0x5d2b03,{});switch(this['_checkSuggestionCorrectness'](_0x912d3b,_0x53e9a0,_0x6c1575,_0x5d2b03),this['_suggestionState']['get'](_0x912d3b)){case'notReady':this['_getSuggestionData'](_0x44aecc)['then'](_0x2b80ad=>{let _0x5c598c=Promise['resolve']();_0x2b80ad['hasComments']&&(_0x5c598c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x44aecc})),_0x5c598c['then'](()=>{this['addSuggestionData'](_0x2b80ad)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x912d3b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x44aecc,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x912d3b,'ready'),this['fire']('suggestionLoaded',_0x912d3b);break;case'ready':this['fire']('suggestionChanged',_0x912d3b);}return _0x912d3b['addMarkerName'](_0x329b66),_0x912d3b;}['_refreshSuggestionsChain'](_0x51095a){const _0x3ee2fb=Array['from'](_0x51095a),_0x149d4d=_0x3ee2fb['filter'](_0x2849c9=>'attribute'==_0x2849c9['type']);this['_refreshAttributeSuggestionsChain'](_0x149d4d);const _0x3ea60d=_0x3ee2fb['filter'](_0x1ee6aa=>!_0x1ee6aa['isMultiRange']&&'attribute'!=_0x1ee6aa['type']),_0x55a774=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4aebde=>!_0x4aebde['isMultiRange']&&'attribute'!=_0x4aebde['type']),_0x4479fa=_0x55a774['filter'](_0x52d6d0=>!_0x51095a['has'](_0x52d6d0)),_0x44121c=new Map(_0x55a774['map'](_0x345535=>[_0x345535,this['_suggestionFactory']['getSuggestionCallback'](_0x345535['type'],_0x345535['subType'],'chain')])),_0x438138=new Map(_0x55a774['map'](_0x35b640=>[_0x35b640,_0x35b640['getFirstRange']()])),_0x9770ad=new Set(),_0x29e3d6=new Set();for(let _0x870a12=0x0;_0x870a12<_0x3ea60d['length'];_0x870a12++)_0x2f535a(_0x3ea60d[_0x870a12],_0x3ea60d,_0x870a12+0x1);for(let _0x5650ed=0x0;_0x5650ed<_0x3ea60d['length'];_0x5650ed++)_0x2f535a(_0x3ea60d[_0x5650ed],_0x4479fa,0x0);const _0xaa3e0b=new Set();for(let _0x1acaf6=0x0;_0x1acaf6<_0x3ea60d['length'];_0x1acaf6++){const _0x349889=_0x3ea60d[_0x1acaf6];!_0x29e3d6['has'](_0x349889)&&_0x349889['previous']&&(_0xaa3e0b['add'](_0x349889['previous']),_0x349889['previous']['next']===_0x349889&&(_0x349889['previous']['next']=null),_0x349889['previous']=null),!_0x9770ad['has'](_0x349889)&&_0x349889['next']&&(_0xaa3e0b['add'](_0x349889['next']),_0x349889['next']['previous']===_0x349889&&(_0x349889['next']['previous']=null),_0x349889['next']=null);}function _0x2f535a(_0x223aee,_0x2f5a82,_0x5b9592){for(let _0x368c88=_0x5b9592;_0x368c88<_0x2f5a82['length'];_0x368c88++){const _0x2a7091=_0x19bdb2(_0x223aee,_0x2f5a82[_0x368c88]);_0x2a7091&&(_0x2a7091[0x0]['next']=_0x2a7091[0x1],_0x2a7091[0x1]['previous']=_0x2a7091[0x0],_0x9770ad['add'](_0x2a7091[0x0]),_0x29e3d6['add'](_0x2a7091[0x1]));}}function _0x19bdb2(_0x34b7c4,_0x4da7d1){if(_0x34b7c4['author']['id']!==_0x4da7d1['author']['id'])return null;const _0x64947=_0x44121c['get'](_0x34b7c4)(_0x34b7c4,_0x4da7d1,_0x438138['get'](_0x34b7c4),_0x438138['get'](_0x4da7d1));if(!_0x64947)return null;return _0x44121c['get'](_0x4da7d1)(_0x34b7c4,_0x4da7d1,_0x438138['get'](_0x34b7c4),_0x438138['get'](_0x4da7d1))?_0x64947[0x1]['commentThread']&&_0x64947[0x1]['commentThread']['length']?null:_0x64947:null;}_0xaa3e0b['size']&&this['_refreshSuggestionsChain'](_0xaa3e0b);}['_refreshAttributeSuggestionsChain'](_0x592e25){if(0x0==_0x592e25['length'])return;const _0x91a4fd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x204908=>'attribute'==_0x204908['type']&&_0x204908['_isDataLoaded']),_0xd46de=[],_0x16c2cb=new Map();for(const _0x2aeb1c of _0x91a4fd){const _0x4ede07=hashObject(_0x2aeb1c['attributes']);_0x16c2cb['has'](_0x4ede07)||(_0x16c2cb['set'](_0x4ede07,_0xd46de['length']),_0xd46de['push']([]));const _0x7ce83e=_0x16c2cb['get'](_0x4ede07);_0xd46de[_0x7ce83e]['push'](_0x2aeb1c);}!(function(){_0xd46de['sort']((_0x8e6b15,_0x34a654)=>{const _0x52a1d3=_0x8e6b15[0x0]['createdAt'],_0x22c07a=_0x34a654[0x0]['createdAt'];return _0x52a1d3==_0x22c07a?_0x8e6b15[0x0]['attributes']['groupId']<_0x34a654[0x0]['attributes']['groupId']?-0x1:0x1:_0x52a1d3<_0x22c07a?-0x1:0x1;});for(const _0x42e956 of _0xd46de)_0x42e956['sort']((_0x133eab,_0x3f0719)=>_0x133eab['id']<_0x3f0719['id']?-0x1:0x1);}());for(let _0x1f2b53=0x0;_0x1f2b53<_0xd46de['length'];_0x1f2b53++){if(0x0==_0xd46de[_0x1f2b53]['length'])continue;const _0x2f2cb6=[];for(let _0x5759f3=_0x1f2b53+0x1;_0x5759f3<_0xd46de['length'];_0x5759f3++)0x0!=_0xd46de[_0x5759f3]['length']&&_0x4bffcc(_0xd46de[_0x1f2b53],_0xd46de[_0x5759f3])&&_0x2f2cb6['push'](_0x5759f3);for(const _0x104d45 of _0x2f2cb6)_0xd46de[_0x1f2b53]=_0xd46de[_0x1f2b53]['concat'](_0xd46de[_0x104d45]),_0xd46de[_0x104d45]=[];}for(const _0x399729 of _0xd46de)for(let _0x3bc2fb=0x0;_0x3bc2fb<_0x399729['length'];_0x3bc2fb++){const _0x33a191=_0x399729[_0x3bc2fb+0x1]||null;_0x399729[_0x3bc2fb]['next']!==_0x33a191&&(_0x399729[_0x3bc2fb]['next']=_0x33a191);}for(const _0x4ffcca of _0xd46de)for(let _0xaae0e=0x0;_0xaae0e<_0x4ffcca['length'];_0xaae0e++){const _0x4eee94=_0x4ffcca[_0xaae0e-0x1]||null;_0x4ffcca[_0xaae0e]['previous']!==_0x4eee94&&(_0x4ffcca[_0xaae0e]['previous']=_0x4eee94);}function _0x4bffcc(_0x4cb804,_0x2b2099){if(_0x4cb804[0x0]['attributes']['groupId']!==_0x2b2099[0x0]['attributes']['groupId']&&_0x4cb804[0x0]['author']!==_0x2b2099[0x0]['author'])return!0x1;if(!function(_0x287a5c,_0x23b8ef){if(!_0x287a5c['hasComments']&&!_0x23b8ef['hasComments'])return!0x0;if(_0x287a5c['hasComments']&&_0x23b8ef['hasComments'])return!0x1;if(_0x287a5c['hasComments']&&_0x23b8ef['createdAt']<_0x287a5c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x23b8ef['hasComments']&&_0x287a5c['createdAt']<_0x23b8ef['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4cb804[0x0],_0x2b2099[0x0]))return!0x1;if(!isEqual(omit(_0x4cb804[0x0]['attributes'],['groupId','trackingSessionId']),omit(_0x2b2099[0x0]['attributes'],['groupId','trackingSessionId'])))return!0x1;if(_0x4cb804[0x0]['attributes']['groupId']==_0x2b2099[0x0]['attributes']['groupId'])return!0x0;if(_0x4cb804[0x0]['attributes']['trackingSessionId']!==_0x2b2099[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4cb804['every'](_0x5e4785=>_0x2b2099['some'](_0x50750e=>_0x5e4785['getFirstRange']()['isEqual'](_0x50750e['getFirstRange']())))&&_0x2b2099['every'](_0x570fdd=>_0x4cb804['some'](_0x10ee4e=>_0x570fdd['getFirstRange']()['isEqual'](_0x10ee4e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x526dde){const _0x5ac21a=Array['from'](_0x526dde),_0xa6ab6a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4e545a=_0xa6ab6a['filter'](_0x3e5334=>!_0x526dde['has'](_0x3e5334)),_0x2c13b7=new Map(_0x5ac21a['map'](_0x3dca4b=>[_0x3dca4b,this['_suggestionFactory']['getSuggestionCallback'](_0x3dca4b['type'],_0x3dca4b['subType'],'join')])),_0x4fb576=new Map(_0xa6ab6a['map'](_0x4770b4=>[_0x4770b4,_0x4770b4['getRanges']()]));for(let _0x5697f4=0x0;_0x5697f4<_0x5ac21a['length'];_0x5697f4++){if(_0x21c54f(this,_0x5ac21a[_0x5697f4],_0x5ac21a,_0x5697f4+0x1))return!0x0;}for(let _0x720b76=0x0;_0x720b76<_0x5ac21a['length'];_0x720b76++){if(_0x21c54f(this,_0x5ac21a[_0x720b76],_0x4e545a,0x0))return!0x0;}return!0x1;function _0x21c54f(_0x5942db,_0x5c37e4,_0x1b0d20,_0x4dc500){for(let _0x4ae195=_0x4dc500;_0x4ae195<_0x1b0d20['length'];_0x4ae195++){const _0x5d92ac=_0x1b0d20[_0x4ae195];if(_0x5d92ac['type']!==_0x5c37e4['type']||_0x5d92ac['author']['id']!==_0x5c37e4['author']['id']||_0x5d92ac['subType']!==_0x5c37e4['subType'])continue;if(!_haveSameAttributes(_0x5c37e4,_0x5d92ac))continue;if('attribute'==_0x5c37e4['type']&&_0x5c37e4['data']['oldValue']!=_0x5d92ac['data']['oldValue'])continue;if('attribute'==_0x5c37e4['type']&&_0x5942db['_isBlockAttribute'](_0x5c37e4['data']['key']))continue;if('formatBlock'==_0x5c37e4['type']){const _0x36a71b=_0x5942db['editor']['model'],_0x634065=_0x5c37e4['getContainedElement']();if(_0x634065&&(_0x36a71b['schema']['isObject'](_0x634065)||_0x36a71b['schema']['isLimit'](_0x634065)))continue;}const _0x5ae454=_0x2c13b7['get'](_0x5c37e4),_0x2d817b=_0x4fb576['get'](_0x5c37e4),_0x82959b=_0x4fb576['get'](_0x5d92ac),_0x110be6=_0x5c37e4['commentThread']&&_0x5c37e4['commentThread']['length'],_0x21c2d3=_0x5d92ac['commentThread']&&_0x5d92ac['commentThread']['length'];if(!_0x110be6&&_0x5ae454(_0x82959b,_0x2d817b))return _0x5942db['_joinSuggestions'](_0x5d92ac,_0x5c37e4),_0x4fb576['delete'](_0x5c37e4),!0x0;if(!_0x21c2d3&&_0x5ae454(_0x2d817b,_0x82959b))return _0x5942db['_joinSuggestions'](_0x5c37e4,_0x5d92ac),_0x4fb576['delete'](_0x5d92ac),!0x0;}return!0x1;}}['_joinSuggestions'](_0x23242b,_0x3f92db){if(_0x23242b['isMultiRange']){for(const _0x277c31 of _0x3f92db['getRanges']())_0x23242b['addRange'](_0x277c31);}else{const _0x5dc93a=_0x3f92db['getFirstRange']()['end'];this['_setSuggestionRange'](_0x23242b,this['_model']['createRange'](_0x23242b['getFirstRange']()['start'],_0x5dc93a));}_0x3f92db['removeMarkers']();}['_getMarkerAnnouncementText'](_0x8dbe28,_0x2f4173,_0x90ce39){const _0x311036=_0x8dbe28['startsWith']('format')||_0x8dbe28['startsWith']('attribute')?'FORMATTING':_0x8dbe28['toUpperCase']();return getTranslation$1(this['editor']['locale'],_0x2f4173+'_'+_0x311036+'_SUGGESTION_ANNOUNCEMENT',_0x90ce39);}['_initAriaMarkerChangeAnnouncements'](){const _0x3b19cf=this['editor'];if(!_0x3b19cf['ui'])return;const {ariaLiveAnnouncer:_0x59219d}=_0x3b19cf['ui'];surroundingMarkersDetector(this['_model'],({left:_0x52b398,entered:_0x37bac8})=>{for(const _0x2801e5 of _0x52b398){const {group:_0x35718a,type:_0x5b12f6}=this['_splitMarkerName'](_0x2801e5['name']);if('suggestion'===_0x35718a){_0x59219d['announce'](this['_getMarkerAnnouncementText'](_0x5b12f6,'LEAVE'));break;}}for(const _0x32a7e0 of _0x37bac8){const {group:_0x222332,type:_0x520923}=this['_splitMarkerName'](_0x32a7e0['name']);if('suggestion'===_0x222332){_0x59219d['announce'](this['_getMarkerAnnouncementText'](_0x520923,'ENTER',getEnvKeystrokeText(FOCUS_ANNOTATION_KEYSTROKE)));break;}}});}['_processAttributeChanges'](_0x55e460){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1c82ec=this['editor'],_0x3d2077=_0x1c82ec['model']['document']['differ']['getChanges']();if(0x0==_0x3d2077['length'])return!0x1;const _0x5ce5d9=[],_0x333ddf=_0x3d2077['filter'](_0x3d784d=>'attribute'==_0x3d784d['type']),_0x2f8b47=_0x3d2077['filter'](_0xe29f48=>'insert'==_0xe29f48['type']&&'$text'!=_0xe29f48['name']),_0x1fe885=_0x3d2077['filter'](_0x51b267=>'remove'==_0x51b267['type']&&'$text'!=_0x51b267['name']);for(const _0x1e87dd of _0x333ddf)_0x5ce5d9['push']({'key':_0x1e87dd['attributeKey'],'newValue':_0x1e87dd['attributeNewValue'],'oldValue':_0x1e87dd['attributeOldValue'],'range':fixAttributeSuggestionRange(_0x1e87dd['range'],_0x1c82ec['model'])});for(const _0x2b4e05 of _0x2f8b47){const _0x441cf1=_0x1fe885['find'](_0x226966=>_0x226966['position']['isEqual'](_0x2b4e05['position']));_0x441cf1&&_0x5ce5d9['push']({'key':renameAttributeKey,'newValue':_0x2b4e05['name'],'oldValue':_0x441cf1['name'],'range':_0x1c82ec['model']['createRangeOn'](_0x2b4e05['position']['nodeAfter'])});}return 0x0!=_0x5ce5d9['length']&&this['_reduceExistingSuggestions'](_0x55e460,_0x5ce5d9);}['_processAttributeSuggestions'](_0x4e20c1){let _0x3cbc71=!0x1;const _0x1b7b4a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xe8d6f1=>_0xe8d6f1['data']['newRange']&&_0xe8d6f1['name']['startsWith']('suggestion:attribute:'));for(const _0x46ae38 of _0x1b7b4a){const {subType:_0x3e7dad,id:_0x16298f}=this['_splitMarkerName'](_0x46ae38['name']),_0x122ce1=_0x3e7dad['split']('|')[0x0];for(const _0x2a226d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2a226d['id']!=_0x16298f&&'attribute'==_0x2a226d['type']&&_0x2a226d['data']&&_0x2a226d['data']['key']==_0x122ce1&&_0x2a226d['getFirstRange']()['isIntersecting'](_0x46ae38['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2a226d,_0x46ae38['data']['newRange'],_0x4e20c1),_0x3cbc71=!0x0);}return _0x3cbc71;}['recordAttributeChanges'](_0x22a240){this['_recordAttributeSuggestions']=!0x0,_0x22a240();}['_isRegisteredAttribute'](_0x30998e){return this['editor']['plugins']['get'](SuggestionsConversion)['isRegisteredAttribute'](_0x30998e);}['_reduceExistingSuggestions'](_0x10d7dc,_0x337883){if(0x0==_0x337883['length'])return!0x1;let _0x2b02cf=!0x1;for(const _0x4a0c12 of _0x337883){const _0x2c30ab=this['_findSuggestions'](_0x4a0c12['range'],'attribute')['filter'](_0x288855=>!_0x288855['meta']['isNextTo'])['map'](_0x131153=>_0x131153['suggestion']),_0x195ecc=hashObject({'newValue':_0x4a0c12['newValue']});_0x2c30ab['filter'](_0x5021dc=>{const [_0x3e7819,_0x2f4950]=_0x5021dc['subType']['split']('|');return _0x3e7819==_0x4a0c12['key']&&_0x2f4950!=_0x195ecc;})['forEach'](_0xf2e880=>{this['_reduceSuggestionAttributeRange'](_0xf2e880,_0x4a0c12['range'],_0x10d7dc),_0x2b02cf=!0x0;});}return _0x2b02cf;}['_reduceSuggestionAttributeRange'](_0x292576,_0x405f5d,_0x382f82){const _0x37bf1b=_0x292576['getFirstRange']()['getDifference'](_0x405f5d);0x0!==_0x37bf1b['length']?0x1!==_0x37bf1b['length']?this['_breakSuggestionMarker'](_0x292576,_0x405f5d['start'],_0x405f5d['end']):this['_setSuggestionRange'](_0x292576,_0x37bf1b[0x0]):_0x382f82['removeMarker'](_0x292576['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x353bb2){this['_editor']=_0x353bb2,this['_model']=_0x353bb2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x284354,_0x28c398,_0x4ddd58,_0x52d111,_0x15737b,_0x35662f,_0x24503e){return new Suggestion(this['_model'],{'type':_0x284354,'subType':_0x28c398,'id':_0x4ddd58,'originalSuggestionId':_0x24503e,'author':_0x52d111,'creator':_0x52d111,'attributes':_0x15737b,'onAttributesChange':_0x35662f,'onAccept':(..._0x481171)=>this['getSuggestionCallback'](_0x284354,_0x28c398,'accept')(..._0x481171),'onDiscard':(..._0x4188c9)=>this['getSuggestionCallback'](_0x284354,_0x28c398,'discard')(..._0x4188c9)});}['registerCustomCallback'](_0x2675d4,_0x419fd6,_0x730f4,_0x5c52dc){const _0x178c6d=_0x2675d4+':'+_0x419fd6+':'+_0x730f4;this['_customCallbacks']['set'](_0x178c6d,_0x5c52dc);}['getSuggestionCallback'](_0x22e559,_0xf4aae,_0x333705){const _0x2cb25c=_0x22e559+':'+_0xf4aae+':'+_0x333705;return this['_customCallbacks']['get'](_0x2cb25c)||this['_defaultCallbacks']['get'](_0x22e559+':'+_0x333705);}['_registerDefaultCallbacks'](){const _0x5be188=()=>!0x1,_0x1fda7d=_0x15066f=>{_0x15066f['sort']((_0x89dee6,_0x5c8bd4)=>_0x89dee6['start']['isBefore'](_0x5c8bd4['start'])?0x1:-0x1),this['_model']['change'](_0x4b58db=>{for(const _0x433f07 of _0x15066f){let _0xcbaabc;_0xcbaabc=_0x433f07['end']['isAtEnd']&&_0x433f07['end']['parent']==_0x433f07['start']['nodeAfter']?_0x4b58db['createSelection'](_0x433f07['start']['nodeAfter'],'on'):_0x4b58db['createSelection'](_0x433f07),this['_model']['deleteContent'](_0xcbaabc,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x20d8b9=(_0x3cf11e,_0x2b3906)=>{_0x2b3906&&this['_model']['change'](_0x11b090=>{const {commandName:_0x47a88f,commandParams:_0x13668e=[]}=_0x2b3906,_0x1d5cb9=_0x3cf11e['map'](_0x2994ac=>(rangeOnOpeningTag(_0x2994ac)&&(_0x2994ac=this['_model']['createRange'](_0x2994ac['end'])),_0x2994ac))['filter'](_0x1d8e55=>'$graveyard'!==_0x1d8e55['root']['rootName']);if(_0x1d5cb9['length']<0x1)return;const _0x28bcd2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2fb69f=>ModelLiveRange['fromRange'](_0x2fb69f));_0x11b090['setSelection'](_0x1d5cb9);for(const _0x509001 of this['_editor']['commands']['commands']())_0x509001['refresh']();_0x13668e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x47a88f,..._0x13668e);const _0x30080f=_0x28bcd2['filter'](_0x3b58c6=>'$graveyard'!=_0x3b58c6['root']['rootName']);_0x30080f['length']>0x0&&_0x11b090['setSelection'](_0x30080f);for(const _0x4fbe03 of _0x28bcd2)_0x4fbe03['detach']();});},_0xf60d13=(_0x3536ff,_0x46fbbf)=>0x1==_0x3536ff['length']&&0x1==_0x46fbbf['length']&&_0x3536ff[0x0]['end']['isEqual'](_0x46fbbf[0x0]['start']),_0x5c8329=(_0xf35e5,_0x2020e4,_0x55a00c,_0x1c9712)=>canChainSuggestions(_0xf35e5,_0x2020e4,_0x55a00c,_0x1c9712)?[_0xf35e5,_0x2020e4]:canChainSuggestions(_0x2020e4,_0xf35e5,_0x1c9712,_0x55a00c)?[_0x2020e4,_0xf35e5]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5be188),this['_defaultCallbacks']['set']('insertion:discard',_0x1fda7d),this['_defaultCallbacks']['set']('insertion:join',_0xf60d13),this['_defaultCallbacks']['set']('insertion:chain',_0x5c8329),this['_defaultCallbacks']['set']('deletion:accept',_0x1fda7d),this['_defaultCallbacks']['set']('deletion:discard',_0x5be188),this['_defaultCallbacks']['set']('deletion:join',_0xf60d13),this['_defaultCallbacks']['set']('deletion:chain',_0x5c8329),this['_defaultCallbacks']['set']('formatInline:accept',_0x20d8b9),this['_defaultCallbacks']['set']('formatInline:discard',_0x5be188),this['_defaultCallbacks']['set']('formatInline:join',_0xf60d13),this['_defaultCallbacks']['set']('formatInline:chain',_0x5be188),this['_defaultCallbacks']['set']('formatBlock:accept',_0x20d8b9),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5be188),this['_defaultCallbacks']['set']('formatBlock:join',_0xf60d13),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5be188),this['_defaultCallbacks']['set']('attribute:accept',_0x5be188),this['_defaultCallbacks']['set']('attribute:discard',(_0x4d656b,_0xf88213)=>{if(!_0xf88213)return;const _0x2f5c6d=this['_editor']['plugins']['get'](TrackChangesEditing);this['_model']['change'](_0x2bb861=>{if(_0xf88213['key']==renameAttributeKey)for(const _0x45fab6 of _0x4d656b){const _0x4294b9=_0x45fab6['start']['nodeAfter'],_0x17b2f6=_0xf88213['oldValue'];_0x2bb861['rename'](_0x4294b9,_0x17b2f6);}else{if(_0x2f5c6d['_isBlockAttribute'](_0xf88213['key'])){for(const _0x511cba of _0x4d656b)void 0x0!==_0xf88213['oldValue']?_0x2bb861['setAttribute'](_0xf88213['key'],_0xf88213['oldValue'],_0x511cba['start']['nodeAfter']):_0x2bb861['removeAttribute'](_0xf88213['key'],_0x511cba['start']['nodeAfter']);}else{for(const _0x440591 of _0x4d656b)_0xf88213['oldValue']?_0x2bb861['setAttribute'](_0xf88213['key'],_0xf88213['oldValue'],_0x440591):_0x2bb861['removeAttribute'](_0xf88213['key'],_0x440591);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xf60d13);}}function getIntersectionsWithMultipleRanges(_0x302356,_0xbb04e5){const _0x3070c4=[];for(const _0x1d1d95 of _0xbb04e5){const _0x41f2da=_0x302356['getIntersection'](_0x1d1d95);_0x41f2da&&_0x3070c4['push'](_0x41f2da);}return _0x3070c4;}function getDifferencesWithMultipleRanges(_0x5e40f0,_0x2eabcd){const _0x2d65f8=[_0x5e40f0];for(const _0x24adb0 of _0x2eabcd){let _0x4bbca5=0x0;for(;_0x4bbca5<_0x2d65f8['length'];){const _0x5665a7=_0x2d65f8[_0x4bbca5]['getDifference'](_0x24adb0);_0x2d65f8['splice'](_0x4bbca5,0x1,..._0x5665a7),_0x4bbca5+=_0x5665a7['length'];}}return _0x2d65f8;}function _isInObject(_0x570c19,_0x3dd541,_0xe88a96){for(const _0x7dec81 of _0x3dd541['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x7dec81['root']==_0x7dec81)return!0x1;if(!_0xe88a96['containsItem'](_0x7dec81))return!0x1;if(_0x570c19['isObject'](_0x7dec81)||_0x570c19['isLimit'](_0x7dec81))return!0x0;}return!0x1;}function rangeOnOpeningTag(_0x1ca92e){return _0x1ca92e['end']['parent']==_0x1ca92e['start']['nodeAfter']&&_0x1ca92e['end']['isAtStart'];}function rangeOnClosingTag(_0x26e7da){return _0x26e7da['start']['parent']==_0x26e7da['end']['nodeBefore']&&_0x26e7da['start']['isAtEnd'];}function trimFormatInlineSuggestionRange(_0x22e927,_0x2b91f3,_0x25c77e,_0x327da3){const _0x4e45be=_0x17f09b=>!_0x17f09b['item']['is']('$textProxy')&&!_0x327da3['isObject'](_0x17f09b['item']),_0x544778=_0x22e927['start']['getLastMatchingPosition'](_0x4e45be),_0x3df4ab=_0x22e927['end']['getLastMatchingPosition'](_0x4e45be,{'direction':'backward'});return(!_0x22e927['start']['isEqual'](_0x544778)||!_0x22e927['end']['isEqual'](_0x3df4ab))&&(_0x544778['isBefore'](_0x3df4ab)?_0x25c77e['updateMarker'](_0x2b91f3,{'range':_0x25c77e['createRange'](_0x544778,_0x3df4ab)}):_0x25c77e['removeMarker'](_0x2b91f3),!0x0);}function createFormatSubType(_0x18e4ba){return hashObject(_0x18e4ba);}function isCorrectFormatBlockSuggestionRange(_0x245e41){const _0x2f1363=_0x245e41['start']['nodeAfter'];return _0x2f1363&&_0x2f1363['is']('element');}function isEmptyRange(_0x95f569){return rangeOnOpeningTag(_0x95f569)||rangeOnClosingTag(_0x95f569);}function isIntersectingWithOtherMarkers(_0x11a1d7,_0x2c4762){try{const _0x5ee019=_0x11a1d7['getRange']();for(const _0x568475 of _0x2c4762)if(_0x11a1d7!==_0x568475&&_0x5ee019&&_0x5ee019['isIntersecting'](_0x568475['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function fixAttributeSuggestionRange(_0x110427,_0x58a00d){return null==_0x110427['end']['nodeBefore']&&_0x110427['end']['parent']==_0x110427['start']['nodeAfter']?createBlockFormatRangeForElement(_0x110427['start']['nodeAfter'],_0x58a00d):_0x110427;}function createBlockFormatRangeForElement(_0x3c4cd7,_0x5aa8a0){const _0x175d5b=_0x5aa8a0['schema']['isObject'](_0x3c4cd7)||_0x5aa8a0['schema']['isSelectable'](_0x3c4cd7);return _0x5aa8a0['createRange'](_0x5aa8a0['createPositionAt'](_0x3c4cd7,'before'),_0x175d5b?_0x5aa8a0['createPositionAfter'](_0x3c4cd7):_0x5aa8a0['createPositionAt'](_0x3c4cd7,'end'));}function canChainSuggestions(_0x21afd1,_0x2ebb87,_0x3691e8,_0x46aa5f){return!!_haveSameAttributes(_0x21afd1,_0x2ebb87)&&_0x3691e8['end']['isEqual'](_0x46aa5f['start']);}function _haveSameAttributes(_0x2d0dd2,_0x1e3103){if(!_0x2d0dd2['_isDataLoaded']||!_0x1e3103['_isDataLoaded'])return!0x1;const _0x4773d2=new Set(Object['keys'](_0x2d0dd2['attributes'])),_0x47eba5=new Set(Object['keys'](_0x1e3103['attributes']));if(_0x4773d2['delete']('groupId'),_0x47eba5['delete']('groupId'),0x0==_0x4773d2['size']&&0x0==_0x47eba5['size'])return!0x0;if(_0x4773d2['size']!=_0x47eba5['size'])return!0x1;const _0x1ca0f9={..._0x2d0dd2['attributes']},_0x19eb65={..._0x1e3103['attributes']};return delete _0x1ca0f9['groupId'],delete _0x19eb65['groupId'],JSON['stringify'](_0x1ca0f9)==JSON['stringify'](_0x19eb65);}function _areSimilarAttributes(_0x396e37,_0x26d1a5){const _0xd7d27d=_cleanUpAttributes(_0x396e37['attributes']),_0x183d71=_cleanUpAttributes(_0x26d1a5);if(!_0x396e37['_isDataLoaded'])return!0x1;for(const _0x26a31c of Object['keys'](_0x183d71))if(!isEqual(_0xd7d27d[_0x26a31c],_0x183d71[_0x26a31c]))return!0x1;return!0x0;}function _cleanUpAttributes(_0x34b225){const _0x1f81a8=Object['assign']({},_0x34b225);return delete _0x1f81a8['skipNestingCheck'],delete _0x1f81a8['tablePasteChainId'],_0x1f81a8;}function _getAttributeKeyFromSubType(_0x316b41){return _0x316b41['split']('|')[0x0];}async function checkLicense$1(_0x525f5c){const _0x1b4de7=_0xe5df3b([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]),_0x84c8d=window[_0xe5df3b([0x44,0x61,0x74,0x65])][_0xe5df3b([0x6e,0x6f,0x77])](),_0x53b419=_0x525f5c[_0xe5df3b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x42a175=new window[(_0xe5df3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x289615=>{_0x53b419[_0xe5df3b([0x6f,0x6e,0x63,0x65])](_0xe5df3b([0x72,0x65,0x61,0x64,0x79]),_0x289615);}),_0x17aa1b={[_0xe5df3b([0x6b,0x74,0x79])]:_0xe5df3b([0x45,0x43]),[_0xe5df3b([0x75,0x73,0x65])]:_0xe5df3b([0x73,0x69,0x67]),[_0xe5df3b([0x63,0x72,0x76])]:_0xe5df3b([0x50,0x2d,0x32,0x35,0x36]),[_0xe5df3b([0x78])]:_0xe5df3b([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]),[_0xe5df3b([0x79])]:_0xe5df3b([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]),[_0xe5df3b([0x61,0x6c,0x67])]:_0xe5df3b([0x45,0x53,0x32,0x35,0x36])},_0x177116=_0x53b419[_0xe5df3b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe5df3b([0x67,0x65,0x74])](_0xe5df3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x12a9d9=await(async function(){let _0x559314,_0x565bf9=null,_0x1a77ef=null;try{if(_0x177116==_0xe5df3b([0x47,0x50,0x4c]))return _0xe5df3b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x559314=(function(){const _0x214c1f=_0x177116[_0xe5df3b([0x73,0x70,0x6c,0x69,0x74])](_0xe5df3b([0x2e]));if(0x3!=_0x214c1f[_0xe5df3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x139a74=_0x214c1f[0x1];return _0x251cdf(_0x139a74);function _0x251cdf(_0x318c0c){const _0x2f74a1=_0xf119d(_0x318c0c);return _0x2f74a1&&_0x3bc173()?_0x2f74a1:null;function _0x3bc173(){const _0x1161bc=_0x2f74a1[_0xe5df3b([0x6a,0x74,0x69])],_0x10ba91=window[_0xe5df3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1161bc[_0xe5df3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1161bc[_0xe5df3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1bdd54={..._0x2f74a1,[_0xe5df3b([0x6a,0x74,0x69])]:_0x1161bc[_0xe5df3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1161bc[_0xe5df3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1bdd54[_0xe5df3b([0x76,0x63])],_0x8f7082(_0x1bdd54)==_0x10ba91;}}}()),!_0x559314)return _0xe5df3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x559314[_0xe5df3b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a77ef=function(_0x495c0a,_0x17c0e0){return new window[(_0xe5df3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30ece2=>{if(_0x44062a())return _0x30ece2(_0xe5df3b([0x56,0x61,0x6c,0x69,0x64]));_0x42d4d7(),_0x53b419[_0xe5df3b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe5df3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a45f6=!0x1;const _0x219a21=uid();function _0x2467bd(_0x52d980){return!!_0x52d980&&(typeof _0x52d980===_0xe5df3b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x52d980===_0xe5df3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x52d980[_0xe5df3b([0x74,0x68,0x65,0x6e])]===_0xe5df3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x52d980[_0xe5df3b([0x63,0x61,0x74,0x63,0x68])]===_0xe5df3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e41ef(_0x55c566){_0x6dce56(_0x55c566)[_0xe5df3b([0x74,0x68,0x65,0x6e])](_0x3bff93=>{if(!_0x3bff93||_0x3bff93[_0xe5df3b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe5df3b([0x6f,0x6b]))return _0xe5df3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x17908e(_0x8f7082(_0x219a21+_0x17c0e0))!=_0x3bff93[_0xe5df3b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe5df3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe5df3b([0x56,0x61,0x6c,0x69,0x64]);})[_0xe5df3b([0x74,0x68,0x65,0x6e])](_0x5f0339=>(_0x131f6f(),_0x5f0339),()=>{const _0x5a537=_0x487393();return null==_0x5a537?(_0x131f6f(),_0xe5df3b([0x56,0x61,0x6c,0x69,0x64])):_0xe5df3b(_0x84c8d-_0x5a537>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe5df3b([0x74,0x68,0x65,0x6e])](_0x30ece2)[_0xe5df3b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x30ece2(_0xe5df3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x152269=0x36ee80;function _0x131f6f(){const _0x3c73fb=_0xe5df3b([0x6c,0x6c,0x63,0x74,0x2d])+_0x17908e(_0x8f7082(_0x495c0a)),_0x57fc8b=_0xae422a(_0x17908e(window[_0xe5df3b([0x4d,0x61,0x74,0x68])][_0xe5df3b([0x63,0x65,0x69,0x6c])](_0x84c8d/_0x152269)));window[_0xe5df3b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe5df3b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c73fb,_0x57fc8b);}function _0x487393(){const _0xe7f323=_0xe5df3b([0x6c,0x6c,0x63,0x74,0x2d])+_0x17908e(_0x8f7082(_0x495c0a)),_0x291928=window[_0xe5df3b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe5df3b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe7f323);return _0x291928?window[_0xe5df3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xae422a(_0x291928),0x10)*_0x152269:null;}function _0x6dce56(_0x9dc8e0){return new window[(_0xe5df3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d5d33,_0x15d3fc)=>{_0x9dc8e0[_0xe5df3b([0x74,0x68,0x65,0x6e])](_0x2d5d33,_0x15d3fc),window[_0xe5df3b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15d3fc,0x1d4c0);});}}_0x53b419[_0xe5df3b([0x6f,0x6e])](_0xe5df3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4722bf,_0xb5580a)=>{if(_0xb5580a[0x0]!=_0x495c0a)return _0x30ece2(_0xe5df3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb5580a[0x1]={..._0xb5580a[0x1],[_0xe5df3b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x219a21};},{[_0xe5df3b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe5df3b([0x68,0x69,0x67,0x68])}),_0x53b419[_0xe5df3b([0x6f,0x6e])](_0xe5df3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x396360=>{_0x2467bd(_0x396360[_0xe5df3b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a45f6=!0x0,_0x2e41ef(_0x396360[_0xe5df3b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe5df3b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe5df3b([0x6c,0x6f,0x77])}),_0x42a175[_0xe5df3b([0x74,0x68,0x65,0x6e])](()=>{_0x4a45f6||_0x30ece2(_0xe5df3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44062a(){return _0x53b419[_0xe5df3b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe5df3b([0x76,0x69,0x65,0x77])][_0xe5df3b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe5df3b([0x61,0x75,0x74,0x6f]);}function _0x42d4d7(){_0x53b419[_0xe5df3b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe5df3b([0x76,0x69,0x65,0x77])][_0xe5df3b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe5df3b([0x61,0x75,0x74,0x6f]);}}(_0x559314[_0xe5df3b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x559314[_0xe5df3b([0x6a,0x74,0x69])]));const _0x1d654=await(async function(){let _0x354e01=!0x0;try{const _0x33c9f5=_0x177116[_0xe5df3b([0x73,0x70,0x6c,0x69,0x74])](_0xe5df3b([0x2e])),[_0x2907e6,_0x2d052e,_0x4c85ac]=_0x33c9f5;return _0x178466(_0x2907e6),await _0x20ca34(_0x2907e6,_0x2d052e,_0x4c85ac),_0x354e01;}catch{return!0x1;}function _0x178466(_0x14e9be){const _0x2db8ba=_0xf119d(_0x14e9be);_0x2db8ba&&_0x2db8ba[_0xe5df3b([0x61,0x6c,0x67])]==_0xe5df3b([0x45,0x53,0x32,0x35,0x36])||(_0x354e01=!0x1);}async function _0x20ca34(_0x246ece,_0x1acedd,_0x39b737){const _0x1c84e3=window[_0xe5df3b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe5df3b([0x66,0x72,0x6f,0x6d])](_0x503a10(_0x39b737),_0x556af9=>_0x556af9[_0xe5df3b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c1eff=new window[(_0xe5df3b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe5df3b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x246ece+_0xe5df3b([0x2e])+_0x1acedd),_0x2eefe5=window[_0xe5df3b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe5df3b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2eefe5)return;const _0x351317=await _0x2eefe5[_0xe5df3b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe5df3b([0x6a,0x77,0x6b]),_0x17aa1b,{[_0xe5df3b([0x6e,0x61,0x6d,0x65])]:_0xe5df3b([0x45,0x43,0x44,0x53,0x41]),[_0xe5df3b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe5df3b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe5df3b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2eefe5[_0xe5df3b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe5df3b([0x6e,0x61,0x6d,0x65])]:_0xe5df3b([0x45,0x43,0x44,0x53,0x41]),[_0xe5df3b([0x68,0x61,0x73,0x68])]:{[_0xe5df3b([0x6e,0x61,0x6d,0x65])]:_0xe5df3b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x351317,_0x1c84e3,_0x4c1eff)||(_0x354e01=!0x1);}}());return _0x1d654?(function(){const _0x2da742=_0x559314[_0xe5df3b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2da742)return!0x1;if(_0x2da742[_0xe5df3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe5df3b([0x2a])))return!0x0;if(_0x2da742[_0xe5df3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe5df3b([0x54,0x43])))return!0x0;if(_0x2da742[_0xe5df3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe5df3b([0x52,0x54,0x43]))){if(_0x50bbe5(_0xe5df3b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&(_0xedd510=_0xe5df3b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]),_0x53b419[_0xe5df3b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xe5df3b([0x67,0x65,0x74])](_0xedd510))[_0xe5df3b([0x73,0x74,0x61,0x74,0x65])]==_0xe5df3b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0x50bbe5(_0xe5df3b([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]))||_0x50bbe5(_0xe5df3b([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 _0xedd510;return!0x1;}())?(function(){const _0x4fa036=[_0xe5df3b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe5df3b([0x74,0x72,0x69,0x61,0x6c])][_0xe5df3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x559314[_0xe5df3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x84c8d/0x3e8:0x69e96100;return _0x559314[_0xe5df3b([0x65,0x78,0x70])]<_0x4fa036;}())?_0xe5df3b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x359c09=_0x559314[_0xe5df3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x359c09||0x0==_0x359c09[_0xe5df3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d7b50}=new URL(window[_0xe5df3b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x359c09[_0xe5df3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d7b50))return!0x0;const _0xf79c=_0x2d7b50[_0xe5df3b([0x73,0x70,0x6c,0x69,0x74])](_0xe5df3b([0x2e]));return _0x359c09[_0xe5df3b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e164d=>_0x1e164d[_0xe5df3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe5df3b([0x2a])))[_0xe5df3b([0x6d,0x61,0x70])](_0xd2ba05=>_0xd2ba05[_0xe5df3b([0x73,0x70,0x6c,0x69,0x74])](_0xe5df3b([0x2e])))[_0xe5df3b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4abf64=>_0x4abf64[_0xe5df3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf79c[_0xe5df3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe5df3b([0x6d,0x61,0x70])](_0x387d42=>Array(_0xf79c[_0xe5df3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x387d42[_0xe5df3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe5df3b([0x66,0x69,0x6c,0x6c])](_0x387d42[0x0]===_0xe5df3b([0x2a])?_0xe5df3b([0x2a]):'')[_0xe5df3b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x387d42))[_0xe5df3b([0x73,0x6f,0x6d,0x65])](_0x500c82=>_0xf79c[_0xe5df3b([0x65,0x76,0x65,0x72,0x79])]((_0x5b7fec,_0x26a7be)=>_0x500c82[_0x26a7be]===_0x5b7fec||_0x500c82[_0x26a7be]===_0xe5df3b([0x2a])));}())?(_0x559314[_0xe5df3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe5df3b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x565bf9=function(_0x8e73c5){const _0x2f5816=new window[(_0xe5df3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bc829=>setTimeout(_0x4bc829,0x93ecc)),_0x1fc00a=_0x42a175[_0xe5df3b([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe5df3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30310e=>{let _0x55f978=0x0;_0x53b419[_0xe5df3b([0x6d,0x6f,0x64,0x65,0x6c])][_0xe5df3b([0x6f,0x6e])](_0xe5df3b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2698d7,_0x28e06e)=>{_0x28e06e[0x0][_0xe5df3b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55f978++,0x5e8==_0x55f978&&(_0x30310e(),_0x2698d7[_0xe5df3b([0x6f,0x66,0x66])]());});})),_0x189d8e=[_0x2f5816,_0x1fc00a];return window[_0xe5df3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe5df3b([0x72,0x61,0x63,0x65])](_0x189d8e)[_0xe5df3b([0x74,0x68,0x65,0x6e])](()=>_0x8e73c5);}(_0xe5df3b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x565bf9&&_0x1a77ef)return new window[(_0xe5df3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51ad6d,_0xca5da6)=>{_0x565bf9[_0xe5df3b([0x74,0x68,0x65,0x6e])](_0x51ad6d,_0xca5da6),_0x1a77ef[_0xe5df3b([0x74,0x68,0x65,0x6e])](_0x4ec92a=>{_0x4ec92a!=_0xe5df3b([0x56,0x61,0x6c,0x69,0x64])&&_0x51ad6d(_0x4ec92a);},_0xca5da6);});return _0x565bf9||_0x1a77ef||_0xe5df3b([0x56,0x61,0x6c,0x69,0x64]);}())):_0xe5df3b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe5df3b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe5df3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe5df3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0xf119d(_0x55daf0){return _0x55daf0[_0xe5df3b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe5df3b([0x65,0x79]))?JSON[_0xe5df3b([0x70,0x61,0x72,0x73,0x65])](_0x503a10(_0x55daf0)):null;}function _0x503a10(_0x47576c){return window[_0xe5df3b([0x61,0x74,0x6f,0x62])](_0x47576c[_0xe5df3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe5df3b([0x2b]))[_0xe5df3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe5df3b([0x2f])));}function _0x8f7082(_0x308034){let _0x1e0b21=0x1505;function _0x2216b5(_0x107f8a){for(let _0x55219c=0x0;_0x55219c<_0x107f8a[_0xe5df3b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55219c++){const _0x3133dd=_0x107f8a[_0xe5df3b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55219c);_0x1e0b21=(_0x1e0b21<<0x5)+_0x1e0b21+_0x3133dd,_0x1e0b21&=_0x1e0b21;}}return function _0x259094(_0x340188){Array[_0xe5df3b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x340188)?_0x340188[_0xe5df3b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x259094):_0x340188&&typeof _0x340188==_0xe5df3b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe5df3b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x340188)[_0xe5df3b([0x73,0x6f,0x72,0x74])]()[_0xe5df3b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x45a1b2,_0x1b7f35])=>{_0x2216b5(_0x45a1b2),_0x259094(_0x1b7f35);}):_0x2216b5(window[_0xe5df3b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x340188));}(_0x308034),_0x1e0b21>>>0x0;}function _0x17908e(_0x416b58){return _0x416b58[_0xe5df3b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe5df3b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe5df3b([0x30]));}function _0xae422a(_0x87fdd7){return _0x87fdd7[_0xe5df3b([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe5df3b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe5df3b([0x6a,0x6f,0x69,0x6e])]('');}function _0x50bbe5(_0x38a22c){return _0x53b419[_0xe5df3b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xe5df3b([0x68,0x61,0x73])](_0x38a22c);}function _0x5ef43f(){}function _0xe5df3b(_0x21c720){return _0x21c720['map'](_0x4df79f=>String['fromCharCode'](_0x4df79f))['join']('');}!function(_0x49e8bc){const _0x34b132=(function(){const _0x24574a=window[_0xe5df3b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe5df3b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe5df3b([0x6e,0x6f,0x77])]())[_0xe5df3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe5df3b([0x2e]),'');let _0x5e2790=_0xe5df3b([0x52]);for(let _0x575c1c=0x0;_0x575c1c<_0x24574a[_0xe5df3b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x575c1c+=0x2){let _0x4f9ceb=window[_0xe5df3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24574a[_0xe5df3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x575c1c,_0x575c1c+0x2));_0x4f9ceb>=_0x1b4de7[_0xe5df3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4f9ceb-=_0x1b4de7[_0xe5df3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5e2790+=_0x1b4de7[_0x4f9ceb];}return _0x5e2790;}());_0x53b419[_0x34b132]=_0xe5df3b([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x49e8bc,_0x49e8bc!=_0xe5df3b([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x42a175,_0x53b419[_0xe5df3b([0x6d,0x6f,0x64,0x65,0x6c])][_0xe5df3b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5ef43f,_0x53b419[_0xe5df3b([0x6d,0x6f,0x64,0x65,0x6c])][_0xe5df3b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5ef43f,_0x53b419[_0xe5df3b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe5df3b([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x12a9d9);}class SuggestionController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3ff368,_0x4c79da,_0x4f28f9,_0x348fc9){super(),this['model']=_0x4c79da,this['view']=_0x4f28f9,this['commentThreadController']=_0x348fc9,this['_editor']=_0x3ff368,this['_acceptCommand']=_0x3ff368['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3ff368['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x154e4c,_0x2d3946)=>_0x154e4c||_0x2d3946),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1c4ef3=>_0x1c4ef3&&this['_editor']['model']['canEditAt'](_0x4c79da['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3b4b6d=>_0x3b4b6d&&this['_editor']['model']['canEditAt'](_0x4c79da['getRanges']())),this['_pendingAction']=null,_0x4f28f9['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4f28f9,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4f28f9,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4f28f9,'change:isDirty',()=>{_0x4f28f9['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 _0x1f08e8=getTranslation$1(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1f08e8);}['_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(_0x4ddc53,_0x16e13e,_0x5baaa9,_0x35da93){super(_0x4ddc53),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new AriaDescriptionView(_0x4ddc53,getTranslation$1(_0x4ddc53,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x16e13e['authoredAt']),this['bind']('authoredAt')['to'](_0x16e13e),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',_0x16e13e,'authoredAt',this,'descriptionParts',(_0x56f9af,_0x5ef13c,_0x183e06)=>{const _0x5ef2d6=_0x183e06['map'](_0x4084d4=>renderDescription(_0x4084d4['content']))['join']('.\x20')+'.';return getTranslation$1(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x56f9af-0x1,_0x16e13e['author']['name'],_0x5ef13c?_0x35da93['formatDateTime'](_0x5ef13c):'',new DOMParser()['parseFromString'](_0x5ef2d6,'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':_0x20bb73=>_0x20bb73['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x16e13e,this['_localUser']=_0x5baaa9,this['_config']=_0x35da93,_0x35da93['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:_0x9d928a}=this['_config'];this['commentsListView']=new _0x9d928a(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',_0x4f14e6=>_0x4f14e6+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5a304f,_0x2ed3b4)=>_0x5a304f||!!_0x2ed3b4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5809f7}=this['_config'],_0x7f80d3=new _0x5809f7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2d9ea9=_0x7f80d3['commentInputView'];return _0x7f80d3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2d9ea9,'value',(_0x21fa1d,_0x4279a6,_0x295abd)=>!!_0x295abd||_0x21fa1d&&!_0x4279a6),_0x2d9ea9['on']('submit',(_0x7163d,_0x3535d4)=>{this['fire']('addComment',_0x3535d4),_0x2d9ea9['editor']['setData']('');}),_0x2d9ea9['on']('cancel',()=>this['focus']()),_0x2d9ea9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x7f80d3;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x146423,_0xf3f6af,_0x3c8dc9,_0x3fa0d6){super(_0x146423,_0xf3f6af,_0x3c8dc9,_0x3fa0d6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xc0ae8c=>_0xc0ae8c&&_0xc0ae8c[0x0]?_0xc0ae8c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x18e8d7,_0x473d70)=>{let _0x4c5af0='';for(const _0x2f88c6 of _0x18e8d7)_0x4c5af0+='<p>'+renderDescription(_0x2f88c6['content'],_0x2f88c6['color'])+'</p>';return _0x473d70?_0x4c5af0:trimHtml(_0x4c5af0,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3fa0d6['SuggestionView'](_0x146423,_0xf3f6af,{'formatDateTime':_0x3fa0d6['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 _0x251266=this['bindTemplate'],_0x5c01c1=[this['suggestionView']];this['commentsListView']&&_0x5c01c1['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5c01c1['push'](this['commentThreadInputView']),_0x5c01c1['push'](this['ariaDescriptionView']);const _0x2344c5={'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x251266['if']('isActive','ck-suggestion-wrapper--active'),_0x251266['to']('type',_0x2e75de=>'ck-suggestion-'+_0x2e75de),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':_0x251266['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5c01c1};return _0x2344c5;}['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(_0x43a51f,_0x44dff5,_0x936eed){super(_0x43a51f),this['_model']=_0x44dff5,this['_config']=_0x936eed,this['set']('description',''),this['bind']('authoredAt')['to'](_0x44dff5),this['acceptButton']=this['_createButton'](getTranslation$1(_0x43a51f,'Accept\x20suggestion'),IconCheck,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](getTranslation$1(_0x43a51f,'Discard\x20suggestion'),IconCancel,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new UserView(_0x43a51f,_0x44dff5['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':_0x1bb810=>_0x1bb810['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1c571a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1c571a['innerHTML']=this['description'],this['on']('change:description',(_0x23d2b9,_0x260445,_0x527f8a)=>{_0x1c571a['innerHTML']=_0x527f8a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x108792=this['bindTemplate'],_0x1a0e60=[{'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':_0x108792['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x108792['to']('authoredAt',_0xa50e9e=>this['_config']['formatDateTime'](_0xa50e9e))}]}]},{'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']&&_0x1a0e60['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':_0x1a0e60}]};}['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'](_0xeddbf6,_0x1d3791,_0x593e83,_0x33d4b5,_0xd07b07){const _0x859fa0=new LateFocusButtonView(this['locale']);return _0x859fa0['set']({'label':_0xeddbf6,'icon':_0x1d3791,'tooltip':!0x0,'tooltipPosition':_0xd07b07}),_0x859fa0['extendTemplate']({'attributes':{'class':_0x593e83}}),_0x859fa0['on']('execute',()=>{this['fire'](_0x33d4b5,this['_model']['id']);}),_0x859fa0;}['_setupKeyboardNavigation'](){const _0x542e8c=this['element'];this['keystrokes']['listenTo'](_0x542e8c);for(const _0xf8f02b of this['focusables'])this['focusTracker']['add'](_0xf8f02b['element']),this['keystrokes']['listenTo'](_0xf8f02b['element']);this['keystrokes']['set']('enter',(_0x41d01b,_0x1fad55)=>{_0x542e8c===_0x41d01b['target']&&(this['focusCycler']['focusFirst'](),_0x1fad55());}),this['keystrokes']['set']('esc',(_0x3d223d,_0x44e199)=>{_0x542e8c!==_0x3d223d['target']&&(this['focus'](),_0x44e199());});}}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(_0x20c114){super(_0x20c114),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3a5371=this['editor']['config'];_0x3a5371['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x3a5371['define']('trackChanges.SuggestionView',SuggestionView),_0x3a5371['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3a5371['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4c4951,_0x331a4d){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x37fe60,_0x2fe440]of this['_handleControllerBuffer']){const _0x5cab77=this['_suggestionToController']['has'](_0x37fe60);_0x5cab77||_0x2fe440?_0x5cab77&&_0x2fe440&&this['_destroyController'](_0x37fe60):this['_initializeController'](_0x37fe60);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4c4951,_0x331a4d);}['init'](){const _0x2618c8=this['editor'],_0x3f099f=_0x2618c8['plugins']['get']('TrackChangesEditing'),_0x2385e7=_0x2618c8['plugins']['get']('Annotations'),_0x26a44a=_0x2618c8['plugins']['get']('EditorAnnotations'),_0x2e16fb=_0x2618c8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x26a44a['addSourceCollector'](()=>{const _0x5af9ac=[];for(const [_0x2039ec,_0xda4293]of Array['from'](this['_suggestionToController'])){const _0x2e684a=_0x2039ec['getAllAdjacentSuggestions'](),_0x6ea23e=[];for(const _0x12c18d of _0x2e684a){if(!_0x12c18d['isInContent'])continue;if(_0x12c18d['isMultiRange']){_0x6ea23e['push'](..._0x12c18d['getRanges']());continue;}const _0xe60d22=_0x12c18d['getFirstRange']();if(_0x6ea23e['length']>0x0){const _0x5467ee=_0x6ea23e[0x0]['getJoined'](_0xe60d22);if(_0x5467ee){_0x6ea23e[0x0]=_0x5467ee;continue;}}_0x6ea23e['push'](_0xe60d22);}_0x5af9ac['push']([_0xda4293['view'],_0x6ea23e]);}return _0x5af9ac;}),this['listenTo'](_0x3f099f,'suggestionLoaded',(_0x13c1b2,_0x48caac)=>{this['listenTo'](_0x48caac,'change:previous',(_0x50612e,_0x59c743,_0x106911,_0x128607)=>{_0x48caac['isInContent']&&(null==_0x106911?(this['_updateController'](_0x128607['head']),this['_handleSuggestionControllerDelayed'](_0x48caac,!0x1)):(this['_updateController'](_0x106911['head']),null==_0x128607&&this['_handleSuggestionControllerDelayed'](_0x48caac,!0x0)));}),null!==_0x48caac['previous']?this['_updateController'](_0x48caac['head']):this['_handleSuggestionControllerDelayed'](_0x48caac,!0x1);}),this['listenTo'](_0x3f099f,'suggestionUnloaded',(_0x349e36,_0x464360,_0x561dfe)=>{this['stopListening'](_0x464360,'change:previous'),this['_handleControllerBuffer']['delete'](_0x464360),this['_suggestionToController']['has'](_0x464360)&&this['_destroyController'](_0x464360),_0x561dfe&&this['_updateController'](_0x561dfe['head']);}),this['listenTo'](_0x3f099f,'suggestionChanged',(_0x35d7fb,_0x1a1f4e)=>{this['_updateController'](_0x1a1f4e);}),this['listenTo'](_0x2385e7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2e16fb,'addComment',(_0x2aced4,{threadId:_0x46a2b8,isFromAdapter:_0x2c8482})=>{if(_0x2c8482||!_0x3f099f['hasSuggestion'](_0x46a2b8))return;const _0x2be0f3=_0x3f099f['getSuggestion'](_0x46a2b8);this['_suggestionToController']['get'](_0x2be0f3)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2c2b9d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1136ca;for(const _0x2040fa in _0x2c2b9d){const _0x1f5fae=_0x2040fa,_0x4b567e=_0x2c2b9d[_0x1f5fae];if('trackChangesLicenseKeyValid'==_0x4b567e||'trackChangesLicenseKeyInvalid'==_0x4b567e||'trackChangesLicenseKeyExpired'==_0x4b567e||'trackChangesLicenseKeyDomainLimit'==_0x4b567e||'trackChangesLicenseKeyNotAllowed'==_0x4b567e||'trackChangesLicenseKeyEvaluationLimit'==_0x4b567e||'trackChangesLicenseKeyUsageLimit'==_0x4b567e){delete _0x2c2b9d[_0x1f5fae],_0x1136ca=_0x4b567e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1136ca&&_0x2c2b9d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1136ca&&_0x2c2b9d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1136ca&&_0x2c2b9d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1136ca&&_0x2c2b9d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1136ca&&_0x2c2b9d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1136ca&&_0x2c2b9d['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x13a3e0){const _0x2f8b08=this['_suggestionToController']['get'](_0x13a3e0);if(!_0x2f8b08)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x2f8b08['view'])||null;}['getSuggestionForAnnotation'](_0x537ae1){const _0x34029b=this['_viewToController']['get'](_0x537ae1['innerView']);return _0x34029b?_0x34029b['model']:null;}['_refreshActiveMarkers'](){const _0x57fb5a=this['editor']['plugins']['get']('Annotations'),_0x48192f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1958b7=Array['from'](_0x57fb5a['activeAnnotations'],_0x1c5bbf=>_0x1c5bbf['innerView'])['filter'](_0x153e09=>this['_viewToController']['has'](_0x153e09)),_0x23a5c7=[];for(const _0xb2d2e4 of _0x1958b7){const _0x1e543a=this['_viewToController']['get'](_0xb2d2e4)['model']['getAllAdjacentSuggestions']();_0x23a5c7['push'](..._0x1e543a['reduce']((_0x43a1d6,_0x29ef65)=>[..._0x43a1d6,..._0x29ef65['getMarkerNames']()],[]));}_0x48192f['activeMarkers']=_0x23a5c7;}['_addUIComponentsToFactory'](){const _0x9b1c16=this['editor'],_0x5ab974=_0x9b1c16['locale'],_0x21155e=getTranslation$1(_0x5ab974,'Track\x20changes'),_0x540695=new Collection([{'type':'switchbutton','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':_0x21155e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x5ab974,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x5ab974,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x5ab974,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x5ab974,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x9b1c16['plugins']['has']('TrackChangesPreview')&&_0x540695['addMany']([{'type':'separator'},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x5ab974,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1f95d7 of _0x540695)if(isListDropdownButtonDefinition(_0x1f95d7)){const _0x39a0c8=_0x9b1c16['commands']['get'](_0x1f95d7['model']['commandName']);_0x1f95d7['model']['bind']('isOn','isEnabled')['to'](_0x39a0c8,'value','isEnabled');}_0x9b1c16['ui']['componentFactory']['add']('trackChanges',_0x191faa=>this['_createToolbarButton'](_0x191faa,_0x540695,_0x21155e)),_0x9b1c16['ui']['componentFactory']['add']('menuBar:trackChanges',_0x11b088=>this['_createMenuBarMenu'](_0x11b088,_0x540695,_0x21155e));}['_createToolbarButton'](_0x150410,_0x5ed2b4,_0x3d5362){const _0x549c0d=createDropdown(_0x150410,SplitButtonView),_0x57d85a=this['editor']['commands']['get']('trackChanges');_0x549c0d['buttonView']['set']({'tooltip':_0x3d5362,'label':_0x3d5362,'icon':IconTrackChanges}),_0x549c0d['buttonView']['bind']('isOn')['to'](_0x57d85a,'value'),_0x549c0d['buttonView']['on']('execute',()=>{_0x57d85a['execute'](),this['editor']['editing']['view']['focus']();}),addListToDropdown(_0x549c0d,_0x5ed2b4,{'role':'menu'});const _0x5daf75=[];for(const _0x385b6b of _0x5ed2b4)isListDropdownButtonDefinition(_0x385b6b)&&_0x5daf75['push'](this['editor']['commands']['get'](_0x385b6b['model']['commandName']));const _0x9eb431=_0x549c0d['buttonView'];return _0x9eb431['actionView']['unbind']('isEnabled'),_0x9eb431['arrowView']['unbind']('isEnabled'),_0x9eb431['actionView']['bind']('isEnabled')['to'](_0x57d85a,'isEnabled'),_0x9eb431['arrowView']['bind']('isEnabled')['toMany'](_0x5daf75,'isEnabled',(..._0x231da5)=>_0x231da5['some'](_0x534ebd=>_0x534ebd)),_0x549c0d['on']('execute',_0x41465a=>{this['editor']['execute'](_0x41465a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x549c0d;}['_createMenuBarMenu'](_0x4c7d18,_0x44fa20,_0xfed4a1){const _0x36df76=new MenuBarMenuView(_0x4c7d18),_0x57ffd1=this['editor']['commands']['get']('trackChanges');_0x36df76['buttonView']['set']({'label':_0xfed4a1,'icon':IconTrackChanges});const _0x3f62d0=new MenuBarMenuListView(_0x4c7d18);for(const _0x4d7eca of _0x44fa20){if('separator'==_0x4d7eca['type']){_0x3f62d0['items']['add'](new ListSeparatorView(_0x4c7d18));continue;}const _0x586e16=new MenuBarMenuListItemView(_0x4c7d18,_0x36df76),_0x2d284c=new MenuBarMenuListItemButtonView(_0x4c7d18),_0x21a759=_0x4d7eca['model'];_0x2d284c['bind'](...Object['keys'](_0x21a759))['to'](_0x21a759),_0x2d284c['delegate']('execute')['to'](_0x36df76),_0x2d284c['on']('execute',()=>{this['editor']['execute'](_0x21a759['commandName']),this['editor']['editing']['view']['focus']();}),_0x586e16['children']['add'](_0x2d284c),_0x3f62d0['items']['add'](_0x586e16);}return _0x36df76['bind']('isEnabled')['to'](_0x57ffd1,'isEnabled'),_0x36df76['panelView']['children']['add'](_0x3f62d0),_0x36df76;}['_initializeController'](_0x430434){const _0x578974=this['editor'],_0x3b3f42=_0x578974['config'],_0x2dab45=_0x578974['plugins']['get']('Annotations'),_0x48ea07=_0x578974['plugins']['get']('CommentsRepository'),_0x2b04bd=_0x578974['plugins']['get']('EditorAnnotations'),_0x3c12d4=_0x578974['plugins']['get'](Users)['me'],_0x235ecb=_0x3b3f42['get']('trackChanges')['SuggestionThreadView'],_0x560eed=_0x3b3f42['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3c1d4c,CommentThreadInputView:_0x30d825}=_0x578974['plugins']['get']('CommentsUI');let _0x273965,_0x2ccbdf,_0x176813;this['_annotationViews']['has'](_0x430434['id'])?(_0x2ccbdf=this['_annotationViews']['get'](_0x430434['id']),_0x273965=_0x2ccbdf['mainView']):(_0x273965=new _0x235ecb(_0x578974['locale'],_0x430434,_0x3c12d4,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3b3f42['get']('comments.editorConfig'),'licenseKey':_0x3b3f42['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3b3f42['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3b3f42['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3b3f42['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':getDateTimeFormatter(_0x3b3f42['get']('locale'),_0x578974['locale']),'CommentView':_0x3b3f42['get']('comments')['CommentView'],'CommentsListView':_0x3c1d4c,'CommentThreadInputView':_0x30d825,'SuggestionView':_0x560eed}),_0x273965['suggestionView']['acceptButton']['on']('execute',()=>{_0x578974['editing']['view']['focus']();}),_0x273965['suggestionView']['discardButton']['on']('execute',()=>{_0x578974['editing']['view']['focus']();}),_0x2ccbdf=_0x2dab45['createAnnotationView'](this['editor']['locale'],_0x273965),_0x2ccbdf['bind']('isDirty')['to'](_0x273965,'isDirty'),_0x2ccbdf['bind']('length')['to'](_0x273965),_0x2ccbdf['bind']('type')['to'](_0x273965,'type',_0x336abb=>'suggestion-'+_0x336abb),_0x273965['on']('escape',()=>{_0x176813['fire']('escape');}),this['_annotationViews']['set'](_0x430434['id'],_0x2ccbdf));const _0x11584f=_0x48ea07['createCommentThreadController'](_0x430434['commentThread'],_0x273965),_0x5c4131=new SuggestionController(_0x578974,_0x430434,_0x273965,_0x11584f),_0x800711=_0x430434['getAllAdjacentSuggestions']()['filter'](_0x4db942=>_0x4db942['isInContent']);_0x273965['descriptionParts']=_0x578974['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x800711),this['_suggestionToController']['set'](_0x430434,_0x5c4131),this['_viewToController']['set'](_0x273965,_0x5c4131);const _0x369b9b=()=>{const _0x1b31e2=[],_0x50ba3d=_0x430434['getAllAdjacentSuggestions']()['filter'](_0x10bfc4=>_0x10bfc4['isInContent']);for(const _0x55961f of _0x50ba3d)_0x1b31e2['push'](..._0x55961f['getMarkers']());return getAllMarkersDomElementsSorted(_0x578974['editing'],_0x1b31e2);};_0x176813=_0x2dab45['createAnnotation']({'view':_0x2ccbdf,'target':_0x369b9b,'type':()=>'suggestion-'+_0x5c4131['view']['type'],'isVisible':!!_0x369b9b()}),_0x48ea07['_bindAnnotationToEditors'](_0x273965,_0x176813),_0x2dab45['add'](_0x176813),_0x2b04bd['registerAnnotation'](_0x176813);}['_destroyController'](_0x1926ee){const _0xeaac43=this['editor']['plugins']['get']('CommentsRepository'),_0x3ee611=this['editor']['plugins']['get']('Annotations'),_0x41ea85=this['_suggestionToController']['get'](_0x1926ee),_0xe5112e=_0x41ea85['view'],_0x594534=_0x3ee611['getByInnerView'](_0xe5112e);_0xeaac43['_unbindEditors'](_0xe5112e),_0x594534&&_0x3ee611['remove'](_0x594534),this['_suggestionToController']['delete'](_0x1926ee),this['_viewToController']['delete'](_0xe5112e),_0x41ea85['destroy']();}['_updateController'](_0x4ce894){if(!_0x4ce894['isInContent']||!this['_suggestionToController']['has'](_0x4ce894))return;const _0x5288ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f0d16=this['_suggestionToController']['get'](_0x4ce894),_0x2cd85c=_0x4ce894['getAllAdjacentSuggestions']();_0x3f0d16['view']['descriptionParts']=_0x5288ea['descriptionFactory']['getDescriptions'](_0x2cd85c);}['destroy'](){for(const _0x50d20c of this['_suggestionToController']['keys']())this['_destroyController'](_0x50d20c);for(const _0xe5a0f7 of this['_annotationViews']['values']())_0xe5a0f7['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function isListDropdownButtonDefinition(_0x334201){return'model'in _0x334201;}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'](_0x3b046b){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0x3b046b;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0x1b3c81){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0x1b3c81);}['getSuggestions']({skipNotAttached:_0x4db945=!0x1,toJSON:_0x3373a0=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x4db945,'toJSON':_0x3373a0});}['getSuggestion'](_0x362354){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0x362354);}}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 _0xa9184e=this['editor'];if(_0xa9184e['config']['define']('trackChangesData.editorCreator',_0x239b72=>{const _0x53be6c=_0xa9184e['model']['document']['getRootNames']()['reduce']((_0x532678,_0x4e04f5)=>(_0x532678[_0x4e04f5]='',_0x532678),{});return _0xa9184e['constructor']['create'](_0x53be6c,_0x239b72);}),'function'!=typeof _0xa9184e['config']['get']('trackChangesData')['editorCreator'])throw new CKEditorError('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x24bc23){return getTrackChangesData(this['editor'],!0x0,_0x24bc23);}['getDataWithDiscardedSuggestions'](_0x53f809){return getTrackChangesData(this['editor'],!0x1,_0x53f809);}}class TrackChangesDataGetter extends Plugin{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x338c2f){function _0x1f59dd(_0x2fd048){return _0x2fd048['map'](_0x21d94b=>String['fromCharCode'](_0x21d94b))['join']('');}super(_0x338c2f),this['result']='end',_0x338c2f[_0x1f59dd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f59dd([0x76,0x69,0x65,0x77])][_0x1f59dd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f59dd([0x61,0x75,0x74,0x6f]),_0x338c2f[_0x1f59dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1f59dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f59dd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1f59dd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1f59dd([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(_0x2bbf50){return void 0x0!==_0x2bbf50['getRootsAttributes'];}async function getTrackChangesData(_0x5bfeb4,_0x18a6c7,_0x30e980){const _0x1da2b3=sanitizeEditorConfig(_0x5bfeb4,blackListedPlugins);_0x1da2b3['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),_0x1da2b3['rootsAttributes']=isMultiRootEditor$1(_0x5bfeb4)?_0x5bfeb4['getRootsAttributes']():void 0x0;const _0x296721=document['createDocumentFragment'](),_0x225011=_0x5bfeb4['config']['get']('trackChangesData')['editorCreator'],_0x379221=await _0x225011(_0x1da2b3,()=>createAttachedElement(_0x296721));copyEditorData(_0x5bfeb4,_0x379221),_0x379221['execute'](_0x18a6c7?'acceptAllSuggestions':'discardAllSuggestions');const _0x1c1c84=isMultiRootEditor$1(_0x379221)?_0x379221['getFullData'](_0x30e980):_0x379221['data']['get'](_0x30e980);return await _0x379221['destroy'](),_0x1c1c84;}function copyEditorData(_0x39008f,_0x2160db){const _0x518679=_0x39008f['model']['document']['getRootNames']()['reduce']((_0x2503db,_0x183118)=>(_0x2503db[_0x183118]=_0x39008f['data']['get']({'rootName':_0x183118}),_0x2503db),{}),_0x175b70=_0x39008f['plugins']['get']('Users')['users']['map'](_0x3be78a=>({'id':_0x3be78a['id'],'name':_0x3be78a['name']})),_0x407da7=_0x39008f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3c48e7=_0x39008f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4ebfba=_0x2160db['plugins']['get']('Users'),_0x24847e=_0x2160db['plugins']['get']('TrackChangesEditing'),_0x135872=_0x2160db['plugins']['get']('CommentsRepository');for(const _0x1834ca of _0x135872['getCommentThreads']())_0x1834ca['remove']();for(const _0x109aa2 of _0x175b70)_0x4ebfba['getUser'](_0x109aa2['id'])||_0x4ebfba['addUser'](_0x109aa2);_0x4ebfba['me']||_0x4ebfba['useAnonymousUser']();for(const _0x28b608 of _0x3c48e7)_0x135872['addCommentThread'](_0x28b608);for(const _0x5b7b84 of _0x407da7)_0x24847e['addSuggestionData'](_0x5b7b84);_0x2160db['data']['set'](_0x518679);}function createAttachedElement(_0x5a550a){const _0x38d774=document['createElement']('div');return _0x5a550a['appendChild'](_0x38d774),_0x38d774;}class TrackChangesPreviewView extends View{['options'];constructor(_0x5d457e,_0x2840a1){super(_0x5d457e),this['options']=_0x2840a1,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'](_0x2ecff5,_0xab2cb2){if(!this['element'])return;const _0x255a61=[];for(const [_0x44754d,_0x5b2aa0]of _0x2ecff5){const _0x20683f=document['createElement']('div');_0x20683f['setAttribute']('data-ck-root-name',_0x44754d),_0x20683f['className']=_0x5b2aa0['classes']+'\x20ck-track-changes-preview__root-container',_0x20683f['innerHTML']=_0x5b2aa0['content'],_0x255a61['push'](_0x20683f);}_0xab2cb2(this['element'],_0x255a61),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends Command{constructor(_0x31c9bf){super(_0x31c9bf),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x325658=this['editor'],_0x28d1ee=_0x325658['locale'],_0x227709=_0x325658['plugins']['get']('Dialog');let _0x5a1db1;const _0x413b44=getEditables(_0x325658),_0x1624a4=calculateDialogRects(_0x413b44);_0x227709['show']({'id':'finalContentPreview','title':getTranslation$1(_0x28d1ee,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x28d1ee,{'dialogRects':_0x1624a4}),'onHide':()=>{_0x5a1db1['detachFromDom']();},'onShow':()=>{_0x325658['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3c6514=>{const _0x28f468=this['_standarizeRootsData'](_0x3c6514,_0x325658,_0x413b44);_0x227709['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x28f468,_0x325658['config']['get']('trackChanges.preview.renderFunction'));}),_0x5a1db1=new BodyCollection(_0x28d1ee,[_0x227709['view']]),_0x5a1db1['attachToDom'](),_0x5a1db1['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x325658['once']('destroy',()=>{_0x5a1db1['detachFromDom']();});const _0x3d26da=_0x227709['view']['headerView']['class'];_0x227709['view']['headerView']['class']=_0x3d26da?_0x3d26da+'\x20ck-reset_all':'ck-reset_all',_0x227709['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x227709['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1fc879=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x903dc=_0x1fc879['previewMode'],_0x32d2bc={};if('$labels'===_0x903dc){for(const _0x2e6944 of _0x1fc879['getMergeFieldsIds']())_0x32d2bc[_0x2e6944]=_0x1fc879['getLabel'](_0x2e6944)||_0x2e6944;}else{const _0x20463b='$defaultValues'===_0x903dc?_0x1fc879['getDefaultValues']():_0x1fc879['getDataSetValues'](_0x903dc,!0x0);for(const _0x1856ce of Object['entries'](_0x20463b)){const [_0x54e3ab,_0x5eddac]=_0x1856ce;_0x32d2bc[_0x54e3ab]=null!==_0x5eddac?_0x5eddac:_0x1fc879['getLabel'](_0x54e3ab)||_0x54e3ab;}}return{'mergeFieldsData':_0x32d2bc};}['_standarizeRootsData'](_0x543aa5,_0x24e6ad,_0xda9a8f){let _0x5616e3;if('string'==typeof _0x543aa5){const _0x4d103a=_0x24e6ad['model']['document']['getRootNames']()[0x0];_0x5616e3={[_0x4d103a]:_0x543aa5};}else _0x5616e3=_0x543aa5;const _0x2c0195=this['_fixMediaEmbeds'](_0x5616e3,_0x24e6ad);return addEditableClasses(this['_sortRoots'](_0x24e6ad)['reduce']((_0x4ce327,_0x492889)=>(_0x4ce327['push']([_0x492889,{'content':_0x2c0195[_0x492889],'classes':''}]),_0x4ce327),[]),_0xda9a8f);}['_fixMediaEmbeds'](_0x3eae1d,_0x284138){if(!_0x284138['plugins']['has']('MediaEmbedEditing'))return _0x3eae1d;const _0x5acd3f=_0x284138['plugins']['get']('MediaEmbedEditing');for(const [_0x42774a,_0x2452fc]of Object['entries'](_0x3eae1d)){const _0x55aded=document['createElement']('div');_0x55aded['innerHTML']=_0x2452fc,(_0x55aded['querySelectorAll']('figure.media')['forEach'](_0x5e4e37=>{const _0x12087c=_0x5e4e37['querySelector']('oembed');if(_0x12087c){const _0x270c36=_0x12087c['getAttribute']('url');if(_0x270c36){const _0x5f2785=_0x5acd3f['registry']['getMediaViewElement'](new ViewDowncastWriter(_0x284138['editing']['view']['document']),_0x270c36,{'elementName':'','renderForEditingView':!0x0}),_0x43c5f9=document['createElement']('div');_0x43c5f9['classList']['add']('ck-media__wrapper'),_0x5f2785['render'](_0x43c5f9,_0x284138['editing']['view']['domConverter']),_0x12087c['replaceWith'](_0x43c5f9);}}}),_0x3eae1d[_0x42774a]=_0x55aded['innerHTML']);}return _0x3eae1d;}['_sortRoots'](_0x31bbc1){if(!isMultiRootEditor(_0x31bbc1))return _0x31bbc1['model']['document']['getRootNames']();const _0x4c2580=[],_0x3252a5=new Map();for(const _0x278032 of _0x31bbc1['model']['document']['getRootNames']()){const _0x1fc22b=_0x31bbc1['editing']['view']['getDomRoot'](_0x278032)['getClientRects']()['item'](0x0);_0x4c2580['push'](_0x278032),_0x3252a5['set'](_0x278032,_0x1fc22b);}return _0x4c2580['sort']((_0x2a776e,_0x5d3ce6)=>{const _0xcfd836=_0x3252a5['get'](_0x2a776e),_0x787175=_0x3252a5['get'](_0x5d3ce6);return _0xcfd836['y']-_0x787175['y']||_0xcfd836['x']-_0x787175['x'];}),_0x4c2580;}}function getEditables(_0x1fcdbb){const _0x151021={};if('editables'in _0x1fcdbb['ui']['view']){for(const [_0x298530,_0x227804]of Object['entries'](_0x1fcdbb['ui']['view']['editables']))_0x151021[_0x298530]=_0x227804['element'];}else _0x151021[_0x1fcdbb['model']['document']['getRootNames']()[0x0]]=_0x1fcdbb['ui']['view']['editable']['element'];return _0x151021;}function calculateDialogRects(_0x132ca3){let _0x19fdd8=0x0;for(const _0x7ccde4 of Object['values'](_0x132ca3))_0x19fdd8=Math['max'](_0x19fdd8,_0x7ccde4['getBoundingClientRect']()['width']);let _0x279205=0x0;for(const _0x4336a0 of Object['values'](_0x132ca3))_0x279205+=_0x4336a0['getBoundingClientRect']()['height'];const _0xcae72b=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x19fdd8,'height':Math['min'](_0x279205,_0xcae72b)};}function addEditableClasses(_0x5c1f25,_0x5b70e5){for(const [_0x3c7cbb,_0x4926f5]of _0x5c1f25)_0x4926f5['classes']=_0x5b70e5[_0x3c7cbb]['classList']['value']['replace']('ck-focused','');return _0x5c1f25;}function isMultiRootEditor(_0x770a7e){return void 0x0!==_0x770a7e['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(_0xcebd38){super(_0xcebd38),_0xcebd38['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0xcebd38['config']['define']('trackChanges.preview.renderFunction',(_0x43cacc,_0x95d1ed)=>{for(const _0x3143f3 of _0x95d1ed)_0x43cacc['appendChild'](_0x3143f3);});}}var UploadcareSource=function(_0x48c599){return _0x48c599['Local']='local',_0x48c599['URL']='url',_0x48c599['Dropbox']='dropbox',_0x48c599['GDrive']='gdrive',_0x48c599['Facebook']='facebook',_0x48c599['GPhotos']='gphotos',_0x48c599['OneDrive']='onedrive',_0x48c599;}({});function getTranslation(_0x70e020,_0x3d8bd2,_0x253797){const t=_0x70e020['t'],_0x555fc9=_0x70e020['t'];switch(_0x3d8bd2){case UploadcareSource['Local']:return{'text':_0x555fc9('Insert'===_0x253797?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x555fc9('From\x20computer')};case UploadcareSource['URL']:return{'text':'Insert'===_0x253797?_0x555fc9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x555fc9('Via\x20URL')};case UploadcareSource['Dropbox']:return{'text':t('Insert'===_0x253797?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case UploadcareSource['Facebook']:return{'text':t('Insert'===_0x253797?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case UploadcareSource['GDrive']:return{'text':t('Insert'===_0x253797?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case UploadcareSource['GPhotos']:return{'text':t('Insert'===_0x253797?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case UploadcareSource['OneDrive']:return{'text':t('Insert'===_0x253797?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3d8bd2;}}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 _0x5841d8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x39ba28;for(const _0x5be761 in _0x5841d8){const _0x4086c3=_0x5be761,_0x4f9d6a=_0x5841d8[_0x4086c3];if('uploadcareLicenseKeyValid'==_0x4f9d6a||'uploadcareLicenseKeyInvalid'==_0x4f9d6a||'uploadcareLicenseKeyExpired'==_0x4f9d6a||'uploadcareLicenseKeyDomainLimit'==_0x4f9d6a||'uploadcareLicenseKeyNotAllowed'==_0x4f9d6a||'uploadcareLicenseKeyEvaluationLimit'==_0x4f9d6a||'uploadcareLicenseKeyUsageLimit'==_0x4f9d6a){delete _0x5841d8[_0x4086c3],_0x39ba28=_0x4f9d6a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x39ba28&&_0x5841d8['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x39ba28&&_0x5841d8['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x39ba28&&_0x5841d8['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x39ba28&&_0x5841d8['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x39ba28&&_0x5841d8['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x39ba28&&_0x5841d8['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2056dc}=this,_0x49f1de=_0x2056dc['commands']['get']('uploadcare');if(!_0x49f1de)return;const _0x5a4c94=this['_normalizeConfigSourceList'](_0x2056dc['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5a678f,_0x2230c3)=>{const _0x144aed=this['_getIntegrationKey'](_0x2230c3['type']);return _0x5a678f[_0x144aed]||(_0x5a678f[_0x144aed]=[]),_0x5a678f[_0x144aed]['push'](_0x2230c3),_0x5a678f;},{});_0x2056dc['plugins']['has']('ImageInsertUI')&&_0x2056dc['commands']['get']('uploadcare')&&Object['entries'](_0x5a4c94)['forEach'](([_0x5cb81d,_0x4b8e22])=>{_0x2056dc['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5cb81d,'observable':()=>_0x49f1de,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4b8e22),'formViewCreator':()=>this['_createDropdownButtons'](_0x4b8e22),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4b8e22),'override':'assetManager'!==_0x5cb81d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x56253f){const {locale:_0x3a3e42}=this['editor'];return _0x56253f['map'](_0x1c70b0=>{const _0x56da9b=getTranslation(_0x3a3e42,_0x1c70b0,'Insert');switch(_0x1c70b0){case UploadcareSource['Local']:return{'icon':IconUploadcareImageUpload,'type':UploadcareSource['Local'],..._0x56da9b};case UploadcareSource['URL']:return{'icon':IconUploadcareLink,'type':UploadcareSource['URL'],..._0x56da9b};case UploadcareSource['Dropbox']:return{'icon':IconDropbox,'type':UploadcareSource['Dropbox'],..._0x56da9b};case UploadcareSource['Facebook']:return{'icon':IconFacebook,'type':UploadcareSource['Facebook'],..._0x56da9b};case UploadcareSource['GDrive']:return{'icon':IconGoogleDrive,'type':UploadcareSource['GDrive'],..._0x56da9b};case UploadcareSource['GPhotos']:return{'icon':IconGooglePhotos,'type':UploadcareSource['GPhotos'],..._0x56da9b};case UploadcareSource['OneDrive']:return{'icon':IconOneDrive,'type':UploadcareSource['OneDrive'],..._0x56da9b};}});}['_getIntegrationKey'](_0x301dc7){switch(_0x301dc7){case UploadcareSource['Local']:return'upload';case UploadcareSource['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x279bfe,_0x288ae9){const _0x15e803=this['editor'],_0x5ef777=new _0x279bfe(_0x15e803['locale']),_0x8edd2c=_0x15e803['commands']['get']('uploadcare');return _0x5ef777['bind']('isEnabled')['to'](_0x8edd2c),_0x5ef777['on']('execute',()=>{_0x8edd2c['execute'](_0x288ae9);}),_0x5ef777;}['_createToolbarButton'](_0x34497){const {locale:_0x766db1}=this['editor'],_0x524396=this['editor']['plugins']['get']('ImageInsertUI'),_0x122a13=_0x34497[0x0],_0x2b7756=this['_createButton'](ButtonView,_0x122a13['type']);return _0x2b7756['icon']=_0x122a13['icon'],_0x2b7756['bind']('label')['to'](_0x524396,'isImageSelected',_0x3c4d65=>getTranslation(_0x766db1,_0x122a13['type'],_0x3c4d65?'Replace':'Insert')['text']),_0x2b7756['tooltip']=!0x0,_0x2b7756;}['_createDropdownButtons'](_0x7b418e){const {locale:_0x46a889}=this['editor'],_0xe3f6eb=this['editor']['plugins']['get']('ImageInsertUI');return _0x7b418e['map'](_0x338f49=>{const _0x2bdc5f=this['_createButton'](ButtonView,_0x338f49['type']);return _0x2bdc5f['withText']=!0x0,_0x2bdc5f['icon']=_0x338f49['icon'],_0x2bdc5f['bind']('label')['to'](_0xe3f6eb,'isImageSelected',_0x477028=>getTranslation(_0x46a889,_0x338f49['type'],_0x477028?'Replace':'Insert')['text']),_0x2bdc5f;});}['_createMenuBarButtons'](_0x320f8b){return _0x320f8b['map'](_0x5682c9=>{const _0x598c4a=this['_createButton'](MenuBarMenuListItemButtonView,_0x5682c9['type']);return _0x598c4a['icon']=_0x5682c9['icon'],_0x598c4a['label']=_0x5682c9['shortText'],_0x598c4a;});}}class DialogFocusManagerView extends View{['focusTracker'];['focusCycler'];constructor(_0x751dc9){super(_0x751dc9),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(_0xb850fe,_0x2d7f8d){super(_0xb850fe),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-'+_0x2d7f8d}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function createEditabilityChecker(_0x4a336a){const _0x50714d=createUrlChecker(_0x4a336a);return _0x2eef06=>!(!_0x2eef06||!_0x2eef06['is']('element','imageBlock')&&!_0x2eef06['is']('element','imageInline'))&&(!!_0x2eef06['hasAttribute']('uploadcareImageId')||!!_0x2eef06['hasAttribute']('src')&&_0x50714d(_0x2eef06['getAttribute']('src')));}function getImageUrls(_0x10d9e6,_0x2dbe03){const _0x1f5201=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1f9deb=>_0x1f9deb<=_0x2dbe03)['map'](_0xba6f1a=>_0x10d9e6['replace'](/\/$/,'')+'/-/resize/'+_0xba6f1a+'x/\x20'+_0xba6f1a+'w');return{'imageFallbackUrl':_0x10d9e6,'imageSources':[{'srcset':_0x1f5201['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2dbe03+'px)\x20100vw,\x20'+_0x2dbe03+'px','type':'image/webp'}]};}function getImageDimension(_0x20acc8,_0x32017b,_0x585329){const _0x58ae07=_0x20acc8['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x58ae07?parseInt(_0x58ae07[0x1],0xa):_0x32017b,'height':_0x58ae07?parseInt(_0x58ae07[0x2],0xa):_0x585329};}function showImageProcessingIndicator(_0x3ffa9b,_0x13c8dd){const _0x303677=new(DomEmitterMixin())(),_0x12888a=_0x3ffa9b['plugins']['get']('ImageUtils'),_0xc73365=_0x3ffa9b['editing']['mapper']['toViewElement'](_0x13c8dd),_0xa17211=_0x12888a['findViewImgElement'](_0xc73365),_0x52d668=_0x3ffa9b['editing']['view']['domConverter']['viewToDom'](_0xa17211),_0x37eb66=_0x13c8dd['getAttribute']('width'),_0x5e83dc=_0x13c8dd['getAttribute']('height'),_0x479f24='image-processing';_0x3ffa9b['editing']['view']['change'](_0x2e7d6c=>{_0x2e7d6c['addClass'](_0x479f24,_0xc73365),_0x2e7d6c['setStyle']('aspect-ratio',_0x37eb66+'/'+_0x5e83dc,_0xa17211);}),_0x303677['listenTo'](_0x52d668,'load',()=>{_0x303677['stopListening'](_0x52d668,'load'),_0x3ffa9b['editing']['view']['change'](_0x32a17f=>{_0x32a17f['removeClass'](_0x479f24,_0xc73365),_0x32a17f['removeStyle']('aspect-ratio',_0xa17211);});});}function createUrlChecker(_0x53199f){if(Array['isArray'](_0x53199f)){const _0x3e568f=_0x53199f['map'](createUrlChecker);return _0x3e19fc=>_0x3e568f['some'](_0x17e15c=>_0x17e15c(_0x3e19fc));}if('origin'==_0x53199f){const _0x471cc0=_0x347e1e['window']['location']['origin'];return _0x5cc2c0=>new URL(_0x5cc2c0,_0x347e1e['document']['baseURI'])['origin']==_0x471cc0;}return'function'==typeof _0x53199f?_0x53199f:_0x53199f instanceof RegExp?_0x48f1ef=>!(!_0x48f1ef['match'](_0x53199f)&&!_0x48f1ef['replace'](/^https?:\/\//,'')['match'](_0x53199f)):()=>!0x1;}function isAncestor(_0x3f8d1c,_0x565aa7){return getAncestors(_0x3f8d1c['target'])['includes'](_0x565aa7);}class UploadcareController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x262877,_0x3555ca,_0x3b729b){super(),this['_editor']=_0x262877,this['_editing']=_0x3555ca,this['_dialog']=_0x262877['plugins']['get'](Dialog),this['_api']=_0x3555ca['ctxElement']['getAPI'](),this['_type']=_0x3b729b,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:_0x309234,model:_0x5d4e32}=this['_editor'],_0x30efed=_0x5d4e32['document']['selection']['getSelectedElement'](),_0x20b82a=_0x30efed&&(_0x30efed['is']('element','imageBlock')||_0x30efed['is']('element','imageInline'));this['_formView']=new UploadcareFormView(_0x309234,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':IconUploadcareImageUpload,'title':getTranslation(_0x309234,this['_type'],_0x20b82a?'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':_0x51c59e=>!isAncestor(_0x51c59e,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x49f931}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1aa341=>{const _0x524733=_0x49f931['length'];for(const _0x52aacf of _0x49f931){const _0x26348c=_0x52aacf===_0x49f931[_0x524733-0x1],{cdnUrl:_0x3baf3a,fileInfo:_0x4b1abf}=_0x52aacf;if(!_0x3baf3a||!_0x4b1abf)continue;const {width:_0x1d0bb3,height:_0x1d902d}=_0x4b1abf['imageInfo'],_0x5190c0=getImageDimension(_0x3baf3a,_0x1d0bb3,_0x1d902d),_0x348cd6=getImageUrls(_0x3baf3a,_0x5190c0['width']),_0x5bb574={'id':_0x4b1abf['uuid'],'type':'image','attributes':{'imageDimension':_0x5190c0,..._0x348cd6}};this['_insertAsset'](_0x5bb574,_0x26348c,_0x1aa341);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2641d9=>{'idle'===_0x2641d9['detail']['status']&&!_0x2641d9['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===UploadcareSource['Local']?this['_api']['setCurrentActivity'](UploadcareSource['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5f1cc6,_0xeb7307,_0x417ac7){const _0x38da5f=this['_editor']['model']['document']['selection'],_0x29acc3=_0x38da5f['getSelectedElement'](),_0x5c15b3=!(!_0x29acc3||!_0x29acc3['is']('element','imageInline'));_0x417ac7['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5f1cc6,_0x5c15b3),_0xeb7307||_0x417ac7['setSelection'](_0x38da5f['getLastPosition']());}['_insertImage'](_0x3bb13a,_0x165454){const _0xc01791=this['_editor'],{imageDimension:_0x11c2b9,imageFallbackUrl:_0x1d0db3,imageSources:_0x51d7c7}=_0x3bb13a['attributes'];_0xc01791['execute']('insertImage',{'imageType':_0x165454?'imageInline':null,'source':{'uploadcareImageId':_0x3bb13a['id'],'src':_0x1d0db3,'sources':_0x51d7c7,..._0x11c2b9}});}}class UploadcareCommand extends Command{['_editing'];['_controller']=null;static get['requires'](){return[Dialog,UploadcareEditing];}constructor(_0x24053c){super(_0x24053c),this['_editing']=_0x24053c['plugins']['get'](UploadcareEditing);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x348f9c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new UploadcareController(this['editor'],this['_editing'],_0x348f9c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}function isObject$1(_0x33b4a3){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x33b4a3);}const SEPARATOR$1=/\W|_/g;function camelizeString$1(_0x1513eb){return _0x1513eb['split'](SEPARATOR$1)['map']((_0xf88786,_0x12bb6d)=>_0xf88786['charAt'](0x0)[_0x12bb6d>0x0?'toUpperCase':'toLowerCase']()+_0xf88786['slice'](0x1))['join']('');}function camelizeArrayItems$1(_0x26b6ca,{ignoreKeys:_0x17a79f}={'ignoreKeys':[]}){return Array['isArray'](_0x26b6ca)?_0x26b6ca['map'](_0x4fd8b7=>camelizeKeys$1(_0x4fd8b7,{'ignoreKeys':_0x17a79f})):_0x26b6ca;}function camelizeKeys$1(_0x3ba894,{ignoreKeys:_0x1d025f}={'ignoreKeys':[]}){if(Array['isArray'](_0x3ba894))return camelizeArrayItems$1(_0x3ba894,{'ignoreKeys':_0x1d025f});if(!isObject$1(_0x3ba894))return _0x3ba894;const _0x4aad83={};for(const _0x557a88 of Object['keys'](_0x3ba894)){let _0x6d640a=_0x3ba894[_0x557a88];_0x1d025f['includes'](_0x557a88)?_0x4aad83[_0x557a88]=_0x6d640a:(isObject$1(_0x6d640a)?_0x6d640a=camelizeKeys$1(_0x6d640a,{'ignoreKeys':_0x1d025f}):Array['isArray'](_0x6d640a)&&(_0x6d640a=camelizeArrayItems$1(_0x6d640a,{'ignoreKeys':_0x1d025f})),_0x4aad83[camelizeString$1(_0x557a88)]=_0x6d640a);}return _0x4aad83;}const delay$1=_0x264e8f=>new Promise(_0x1ab963=>setTimeout(_0x1ab963,_0x264e8f));function getUserAgent$1$1({libraryName:_0x516e48,libraryVersion:_0x56b02e,userAgent:_0x4f1527,publicKey:_0x277495='',integration:_0x2925b9=''}){const _0x6a491a='JavaScript';if('string'==typeof _0x4f1527)return _0x4f1527;if('function'==typeof _0x4f1527)return _0x4f1527({'publicKey':_0x277495,'libraryName':_0x516e48,'libraryVersion':_0x56b02e,'languageName':_0x6a491a,'integration':_0x2925b9});return[_0x516e48,_0x56b02e,_0x277495]['filter'](Boolean)['join']('/')+'\x20('+[_0x6a491a,_0x2925b9]['filter'](Boolean)['join'](';\x20')+')';}const defaultOptions$1={'factor':0x2,'time':0x64};function retrier$1(_0x586731,_0x4b722f=defaultOptions$1){let _0x31b3cf=0x0;return function _0x1fbc55(_0x424bbf){const _0x2f839b=Math['round'](_0x4b722f['time']*_0x4b722f['factor']**_0x31b3cf);return _0x424bbf({'attempt':_0x31b3cf,'retry':_0x21a9a3=>delay$1(_0x21a9a3??_0x2f839b)['then'](()=>(_0x31b3cf+=0x1,_0x1fbc55(_0x424bbf)))});}(_0x586731);}let UploadcareError$1=class extends Error{},NetworkError$1=class e extends UploadcareError$1{['originalProgressEvent'];constructor(_0x1cfb7e){super(),this['name']='NetworkError',this['message']='Network\x20error',Object['setPrototypeOf'](this,e['prototype']),this['originalProgressEvent']=_0x1cfb7e;}};const onCancel$1=(_0x27fbdc,_0x2a96fc)=>{_0x27fbdc&&(_0x27fbdc['aborted']?Promise['resolve']()['then'](_0x2a96fc):_0x27fbdc['addEventListener']('abort',()=>_0x2a96fc(),{'once':!0x0}));};let CancelError$1=class e extends UploadcareError$1{['isCancel']=!0x0;constructor(_0x4852f6='Request\x20canceled'){super(_0x4852f6),this['name']='CancelError',Object['setPrototypeOf'](this,e['prototype']);}};const DEFAULT_INTERVAL$1=0x1f4,poll$1=({check:_0x27c5b9,interval:_0x48dee3=DEFAULT_INTERVAL$1,timeout:_0x17c5b5,signal:_0x1f3d2a})=>new Promise((_0x29e658,_0x2fcc7d)=>{let _0x598cad,_0x509d8e;onCancel$1(_0x1f3d2a,()=>{_0x598cad&&clearTimeout(_0x598cad),_0x2fcc7d(new CancelError$1('Poll\x20cancelled'));}),_0x17c5b5&&(_0x509d8e=setTimeout(()=>{_0x598cad&&clearTimeout(_0x598cad),_0x2fcc7d(new CancelError$1('Timed\x20out'));},_0x17c5b5));const _0x553d7a=()=>{try{Promise['resolve'](_0x27c5b9(_0x1f3d2a))['then'](_0x2c0a69=>{_0x2c0a69?(_0x509d8e&&clearTimeout(_0x509d8e),_0x29e658(_0x2c0a69)):_0x598cad=setTimeout(_0x553d7a,_0x48dee3);})['catch'](_0x4fa28a=>{_0x509d8e&&clearTimeout(_0x509d8e),_0x2fcc7d(_0x4fa28a);});}catch(_0x52dd03){_0x509d8e&&clearTimeout(_0x509d8e),_0x2fcc7d(_0x52dd03);}};_0x598cad=setTimeout(_0x553d7a,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:_0x329d2e,url:_0x1817fe,data:_0x1d960c,headers:_0xdcbd74={},signal:_0x4b3f17,onProgress:_0x29e121})=>new Promise((_0x17c94a,_0x16d717)=>{const _0x1a8379=new XMLHttpRequest(),_0x1cc4f7=_0x329d2e?.['toUpperCase']()||'GET';let _0x350a20=!0x1;_0x1a8379['open'](_0x1cc4f7,_0x1817fe,!0x0),_0xdcbd74&&Object['entries'](_0xdcbd74)['forEach'](_0x3cf82f=>{const [_0x57f4b6,_0x4a280]=_0x3cf82f;void 0x0!==_0x4a280&&!Array['isArray'](_0x4a280)&&_0x1a8379['setRequestHeader'](_0x57f4b6,_0x4a280);}),_0x1a8379['responseType']='text',onCancel$1(_0x4b3f17,()=>{_0x350a20=!0x0,_0x1a8379['abort'](),_0x16d717(new CancelError$1());}),_0x1a8379['onload']=()=>{if(0xc8!=_0x1a8379['status'])_0x16d717(new Error('Error\x20'+_0x1a8379['status']+':\x20'+_0x1a8379['statusText']));else{const _0xc2b8aa={'method':_0x1cc4f7,'url':_0x1817fe,'data':_0x1d960c,'headers':_0xdcbd74||void 0x0,'signal':_0x4b3f17,'onProgress':_0x29e121},_0x344c78=_0x1a8379['getAllResponseHeaders']()['trim']()['split'](/[\r\n]+/),_0x454ea6={};_0x344c78['forEach'](function(_0x4b045d){const _0x59f308=_0x4b045d['split'](':\x20'),_0x25a649=_0x59f308['shift'](),_0x2c2201=_0x59f308['join'](':\x20');_0x25a649&&void 0x0!==_0x25a649&&(_0x454ea6[_0x25a649]=_0x2c2201);});const _0x57a2fa=_0x1a8379['response'],_0x1bc020=_0x1a8379['status'];_0x17c94a({'request':_0xc2b8aa,'data':_0x57a2fa,'headers':_0x454ea6,'status':_0x1bc020});}},_0x1a8379['onerror']=_0x242766=>{_0x350a20||_0x16d717(new NetworkError$1(_0x242766));},_0x29e121&&'function'==typeof _0x29e121&&(_0x1a8379['upload']['onprogress']=_0x39e46f=>{_0x39e46f['lengthComputable']?_0x29e121({'isComputable':!0x0,'value':_0x39e46f['loaded']/_0x39e46f['total']}):_0x29e121({'isComputable':!0x1});}),_0x1d960c?_0x1a8379['send'](_0x1d960c):_0x1a8379['send']();});function identity$1(_0x2078a0,..._0x5af939){return _0x2078a0;}const getFileOptions$1=({name:_0x39312f})=>_0x39312f?[_0x39312f]:[],transformFile$1=identity$1;var getFormData$1=()=>new FormData();const isBuffer$1=_0x263107=>!0x1,isBlob$1=_0x3e5c19=>'undefined'!=typeof Blob&&_0x3e5c19 instanceof Blob,isFile$1=_0x30a79c=>'undefined'!=typeof File&&_0x30a79c instanceof File,isReactNativeAsset$1=_0x5ca57a=>!!_0x5ca57a&&'object'==typeof _0x5ca57a&&!Array['isArray'](_0x5ca57a)&&'uri'in _0x5ca57a&&'string'==typeof _0x5ca57a['uri'],isFileData$1=_0x43fdf0=>isBlob$1(_0x43fdf0)||isFile$1(_0x43fdf0)||isBuffer$1()||isReactNativeAsset$1(_0x43fdf0),isSimpleValue$1=_0xaebe70=>'string'==typeof _0xaebe70||'number'==typeof _0xaebe70||void 0x0===_0xaebe70,isObjectValue$1=_0x15899b=>!!_0x15899b&&'object'==typeof _0x15899b&&!Array['isArray'](_0x15899b),isFileValue$1=_0x45542b=>!!_0x45542b&&'object'==typeof _0x45542b&&'data'in _0x45542b&&isFileData$1(_0x45542b['data']);function collectParams$1(_0x11de2b,_0x24b937,_0x9495d9){if(Array['isArray'](_0x9495d9)){for(const _0x549718 of _0x9495d9)collectParams$1(_0x11de2b,_0x24b937+'[]',_0x549718);}else{if(isFileValue$1(_0x9495d9)){const {name:_0x254d3e,contentType:_0x47bd82}=_0x9495d9,_0x15b18f=transformFile$1(_0x9495d9['data'],_0x254d3e,_0x47bd82??defaultContentType$1),_0x2c562d=getFileOptions$1({'name':_0x254d3e});_0x11de2b['push']([_0x24b937,_0x15b18f,..._0x2c562d]);}else{if(isObjectValue$1(_0x9495d9)){for(const [_0x75b704,_0x486c70]of Object['entries'](_0x9495d9))void 0x0!==_0x486c70&&_0x11de2b['push']([_0x24b937+'['+_0x75b704+']',String(_0x486c70)]);}else isSimpleValue$1(_0x9495d9)&&_0x9495d9&&_0x11de2b['push']([_0x24b937,_0x9495d9['toString']()]);}}}function getFormDataParams$1(_0x2ba037){const _0x1defa4=[];for(const [_0x2fe13d,_0x1e5831]of Object['entries'](_0x2ba037))collectParams$1(_0x1defa4,_0x2fe13d,_0x1e5831);return _0x1defa4;}function buildFormData$1(_0x4c6eb0){const _0x102a4b=getFormData$1(),_0x48e7f2=getFormDataParams$1(_0x4c6eb0);for(const _0x239531 of _0x48e7f2){const [_0x2f078b,_0x42f267,..._0x1d1ea4]=_0x239531;_0x102a4b['append'](_0x2f078b,_0x42f267,..._0x1d1ea4);}return _0x102a4b;}let UploadError$1=class e extends UploadcareError$1{['code'];['request'];['response'];['headers'];constructor(_0x5c1fe2,_0x1b69a1,_0xb2bebf,_0x33440f,_0x27f523){super(),this['name']='UploadError',this['message']=_0x5c1fe2,this['code']=_0x1b69a1,this['request']=_0xb2bebf,this['response']=_0x33440f,this['headers']=_0x27f523,Object['setPrototypeOf'](this,e['prototype']);}};const buildSearchParams$1=_0x434f35=>{const _0x3c94f3=new URLSearchParams();for(const [_0x47e63d,_0x58f58b]of Object['entries'](_0x434f35))_0x58f58b&&'object'==typeof _0x58f58b&&!Array['isArray'](_0x58f58b)?Object['entries'](_0x58f58b)['filter'](_0x437896=>_0x437896[0x1]??!0x1)['forEach'](_0x441ea5=>_0x3c94f3['set'](_0x47e63d+'['+_0x441ea5[0x0]+']',String(_0x441ea5[0x1]))):Array['isArray'](_0x58f58b)?_0x58f58b['forEach'](_0x245af6=>{_0x3c94f3['append'](_0x47e63d+'[]',_0x245af6);}):'string'==typeof _0x58f58b&&_0x58f58b?_0x3c94f3['set'](_0x47e63d,_0x58f58b):'number'==typeof _0x58f58b&&_0x3c94f3['set'](_0x47e63d,_0x58f58b['toString']());return _0x3c94f3['toString']();},getUrl$1=(_0x5cd289,_0x12a3af,_0x3cabbd)=>{const _0x15c4f7=new URL(_0x5cd289);return _0x15c4f7['pathname']=(_0x15c4f7['pathname']+_0x12a3af)['replace']('//','/'),_0x3cabbd&&(_0x15c4f7['search']=buildSearchParams$1(_0x3cabbd)),_0x15c4f7['toString']();};var version$2='6.14.3';const LIBRARY_NAME$1='UploadcareUploadClient',LIBRARY_VERSION$1=version$2;function getUserAgent$2(_0x556ec9){return getUserAgent$1$1({'libraryName':LIBRARY_NAME$1,'libraryVersion':LIBRARY_VERSION$1,..._0x556ec9});}const REQUEST_WAS_THROTTLED_CODE$1='RequestThrottledError',DEFAULT_RETRY_AFTER_TIMEOUT$1=0x3a98,DEFAULT_NETWORK_ERROR_TIMEOUT$1=0x3e8;function getTimeoutFromThrottledRequest$1(_0x48b957){const {headers:_0x256ff6}=_0x48b957||{};if(!_0x256ff6||'string'!=typeof _0x256ff6['retry-after'])return DEFAULT_RETRY_AFTER_TIMEOUT$1;const _0x57553d=parseInt(_0x256ff6['retry-after'],0xa);return Number['isFinite'](_0x57553d)?0x3e8*_0x57553d:DEFAULT_RETRY_AFTER_TIMEOUT$1;}function retryIfFailed$1(_0x55addb,_0x51cd12){const {retryThrottledRequestMaxTimes:_0x190966,retryNetworkErrorMaxTimes:_0x30484c}=_0x51cd12;return retrier$1(({attempt:_0x366be9,retry:_0x3899b2})=>_0x55addb()['catch'](_0x4c5d91=>{if('response'in _0x4c5d91&&_0x4c5d91?.['code']===REQUEST_WAS_THROTTLED_CODE$1&&_0x366be9<_0x190966)return _0x3899b2(getTimeoutFromThrottledRequest$1(_0x4c5d91));if(_0x4c5d91 instanceof NetworkError$1&&_0x366be9<_0x30484c)return _0x3899b2((_0x366be9+0x1)*DEFAULT_NETWORK_ERROR_TIMEOUT$1);throw _0x4c5d91;}));}const getContentType$1=_0x154937=>{let _0x301ea5='';return(isBlob$1(_0x154937)||isFile$1(_0x154937)||isReactNativeAsset$1(_0x154937))&&(_0x301ea5=_0x154937['type']),_0x301ea5||defaultContentType$1;},getFileName$1=_0x2b183a=>{let _0x415c58='';return isFile$1(_0x2b183a)&&_0x2b183a['name']?_0x415c58=_0x2b183a['name']:isBlob$1(_0x2b183a)||isBuffer$1()?_0x415c58='':isReactNativeAsset$1(_0x2b183a)&&_0x2b183a['name']&&(_0x415c58=_0x2b183a['name']),_0x415c58||defaultFilename$1;};function getStoreValue$1(_0x268ee5){return void 0x0===_0x268ee5||'auto'===_0x268ee5?'auto':_0x268ee5?'1':'0';}function base$1(_0x6fb780,{publicKey:_0x238132,fileName:_0x184e5b,contentType:_0x34b7de,baseURL:_0x2dc01e=defaultSettings$1['baseURL'],secureSignature:_0x750b6d,secureExpire:_0x43d911,store:_0x549abe,signal:_0x3dbb5c,onProgress:_0x2421a3,source:_0x1c3017='local',integration:_0xb89e62,userAgent:_0x56fac3,retryThrottledRequestMaxTimes:_0x1a64bf=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x58a4c6=defaultSettings$1['retryNetworkErrorMaxTimes'],metadata:_0x1df899}){return retryIfFailed$1(()=>request$1({'method':'POST','url':getUrl$1(_0x2dc01e,'/base/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x238132,'integration':_0xb89e62,'userAgent':_0x56fac3})},'data':buildFormData$1({'file':{'data':_0x6fb780,'name':_0x184e5b||getFileName$1(_0x6fb780),'contentType':_0x34b7de||getContentType$1(_0x6fb780)},'UPLOADCARE_PUB_KEY':_0x238132,'UPLOADCARE_STORE':getStoreValue$1(_0x549abe),'signature':_0x750b6d,'expire':_0x43d911,'source':_0x1c3017,'metadata':_0x1df899}),'signal':_0x3dbb5c,'onProgress':_0x2421a3})['then'](({data:_0x204edc,headers:_0x3adbe7,request:_0x56088c})=>{const _0x9a6a3c=camelizeKeys$1(JSON['parse'](_0x204edc));if('error'in _0x9a6a3c)throw new UploadError$1(_0x9a6a3c['error']['content'],_0x9a6a3c['error']['errorCode'],_0x56088c,_0x9a6a3c,_0x3adbe7);return _0x9a6a3c;}),{'retryNetworkErrorMaxTimes':_0x58a4c6,'retryThrottledRequestMaxTimes':_0x1a64bf});}var TypeEnum$1,Status$1;function fromUrl$1(_0x4267db,{publicKey:_0x419db4,baseURL:_0x2f70e0=defaultSettings$1['baseURL'],store:_0x3382ac,fileName:_0x225d5d,checkForUrlDuplicates:_0x3c2107,saveUrlForRecurrentUploads:_0x230b44,secureSignature:_0x6cb8b8,secureExpire:_0xabccd4,source:_0x55129d='url',signal:_0x197345,integration:_0x282a7f,userAgent:_0x5377cc,retryThrottledRequestMaxTimes:_0x34553c=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x2806d3=defaultSettings$1['retryNetworkErrorMaxTimes'],metadata:_0x56f065}){return retryIfFailed$1(()=>request$1({'method':'POST','headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x419db4,'integration':_0x282a7f,'userAgent':_0x5377cc})},'url':getUrl$1(_0x2f70e0,'/from_url/',{'jsonerrors':0x1,'pub_key':_0x419db4,'source_url':_0x4267db,'store':getStoreValue$1(_0x3382ac),'filename':_0x225d5d,'check_URL_duplicates':_0x3c2107?0x1:void 0x0,'save_URL_duplicates':_0x230b44?0x1:void 0x0,'signature':_0x6cb8b8,'expire':_0xabccd4,'source':_0x55129d,'metadata':_0x56f065}),'signal':_0x197345})['then'](({data:_0x3facc8,headers:_0x1ad0af,request:_0x59bba6})=>{const _0x49bc31=camelizeKeys$1(JSON['parse'](_0x3facc8));if('error'in _0x49bc31)throw new UploadError$1(_0x49bc31['error']['content'],_0x49bc31['error']['errorCode'],_0x59bba6,_0x49bc31,_0x1ad0af);return _0x49bc31;}),{'retryNetworkErrorMaxTimes':_0x2806d3,'retryThrottledRequestMaxTimes':_0x34553c});}!function(_0x2720b9){_0x2720b9['Token']='token',_0x2720b9['FileInfo']='file_info';}(TypeEnum$1||(TypeEnum$1={})),function(_0xdc1327){_0xdc1327['Unknown']='unknown',_0xdc1327['Waiting']='waiting',_0xdc1327['Progress']='progress',_0xdc1327['Error']='error',_0xdc1327['Success']='success';}(Status$1||(Status$1={}));const isErrorResponse$1=_0x5b4630=>'status'in _0x5b4630&&_0x5b4630['status']===Status$1['Error'];function fromUrlStatus$1(_0x4f6992,{publicKey:_0x2250ea,baseURL:_0x3aab17=defaultSettings$1['baseURL'],signal:_0x20ab70,integration:_0x169d9b,userAgent:_0x2fd69e,retryThrottledRequestMaxTimes:_0xcc4294=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x19c9c2=defaultSettings$1['retryNetworkErrorMaxTimes']}={}){return retryIfFailed$1(()=>request$1({'method':'GET','headers':_0x2250ea?{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x2250ea,'integration':_0x169d9b,'userAgent':_0x2fd69e})}:void 0x0,'url':getUrl$1(_0x3aab17,'/from_url/status/',{'jsonerrors':0x1,'token':_0x4f6992}),'signal':_0x20ab70})['then'](({data:_0x477867,headers:_0xb80fdc,request:_0x24f863})=>{const _0x4da837=camelizeKeys$1(JSON['parse'](_0x477867));if('error'in _0x4da837&&!isErrorResponse$1(_0x4da837))throw new UploadError$1(_0x4da837['error']['content'],_0x4da837['error']['errorCode'],_0x24f863,_0x4da837,_0xb80fdc);return _0x4da837;}),{'retryNetworkErrorMaxTimes':_0x19c9c2,'retryThrottledRequestMaxTimes':_0xcc4294});}function info$1(_0x5964a7,{publicKey:_0x20a09a,baseURL:_0x3f4d44=defaultSettings$1['baseURL'],signal:_0x2ac69e,source:_0x41ee57,integration:_0x133e0e,userAgent:_0x495350,retryThrottledRequestMaxTimes:_0x227fc2=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x2dea7f=defaultSettings$1['retryNetworkErrorMaxTimes']}){return retryIfFailed$1(()=>request$1({'method':'GET','headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x20a09a,'integration':_0x133e0e,'userAgent':_0x495350})},'url':getUrl$1(_0x3f4d44,'/info/',{'jsonerrors':0x1,'pub_key':_0x20a09a,'file_id':_0x5964a7,'source':_0x41ee57}),'signal':_0x2ac69e})['then'](({data:_0x1e179c,headers:_0x361126,request:_0x3f190d})=>{const _0x4f6cd0=camelizeKeys$1(JSON['parse'](_0x1e179c));if('error'in _0x4f6cd0)throw new UploadError$1(_0x4f6cd0['error']['content'],_0x4f6cd0['error']['errorCode'],_0x3f190d,_0x4f6cd0,_0x361126);return _0x4f6cd0;}),{'retryThrottledRequestMaxTimes':_0x227fc2,'retryNetworkErrorMaxTimes':_0x2dea7f});}function multipartStart$1(_0x2d29a3,{publicKey:_0x10df8a,contentType:_0x1784c6,fileName:_0x19ce97,multipartChunkSize:_0xfdfd9a=defaultSettings$1['multipartChunkSize'],baseURL:_0xee981c='',secureSignature:_0x1a8086,secureExpire:_0x29514a,store:_0x496544,signal:_0x5f589d,source:_0x3f51c0='local',integration:_0x16bf34,userAgent:_0x30d33b,retryThrottledRequestMaxTimes:_0xd9e132=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0xa57aa5=defaultSettings$1['retryNetworkErrorMaxTimes'],metadata:_0x429f62}){return retryIfFailed$1(()=>request$1({'method':'POST','url':getUrl$1(_0xee981c,'/multipart/start/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x10df8a,'integration':_0x16bf34,'userAgent':_0x30d33b})},'data':buildFormData$1({'filename':_0x19ce97||defaultFilename$1,'size':_0x2d29a3,'content_type':_0x1784c6||defaultContentType$1,'part_size':_0xfdfd9a,'UPLOADCARE_STORE':getStoreValue$1(_0x496544),'UPLOADCARE_PUB_KEY':_0x10df8a,'signature':_0x1a8086,'expire':_0x29514a,'source':_0x3f51c0,'metadata':_0x429f62}),'signal':_0x5f589d})['then'](({data:_0x32e86c,headers:_0x20dea5,request:_0x46b7c5})=>{const _0x58c8b2=camelizeKeys$1(JSON['parse'](_0x32e86c));if('error'in _0x58c8b2)throw new UploadError$1(_0x58c8b2['error']['content'],_0x58c8b2['error']['errorCode'],_0x46b7c5,_0x58c8b2,_0x20dea5);return _0x58c8b2['parts']=Object['keys'](_0x58c8b2['parts'])['map'](_0x15edc6=>_0x58c8b2['parts'][Number(_0x15edc6)]),_0x58c8b2;}),{'retryThrottledRequestMaxTimes':_0xd9e132,'retryNetworkErrorMaxTimes':_0xa57aa5});}function multipartUpload$1(_0x41418e,_0x1a10bd,{contentType:_0x571a5f,signal:_0x38f50d,onProgress:_0x2fad95,retryThrottledRequestMaxTimes:_0x5d6fae=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x54d560=defaultSettings$1['retryNetworkErrorMaxTimes']}){return retryIfFailed$1(()=>request$1({'method':'PUT','url':_0x1a10bd,'data':_0x41418e,'onProgress':_0x2fad95,'signal':_0x38f50d,'headers':{'Content-Type':_0x571a5f||defaultContentType$1}})['then'](_0x4f5f95=>(_0x2fad95&&_0x2fad95({'isComputable':!0x0,'value':0x1}),_0x4f5f95))['then'](({status:_0x2805e4})=>({'code':_0x2805e4})),{'retryThrottledRequestMaxTimes':_0x5d6fae,'retryNetworkErrorMaxTimes':_0x54d560});}function multipartComplete$1(_0x33f8d1,{publicKey:_0x20911b,baseURL:_0x688486=defaultSettings$1['baseURL'],source:_0x50e9c0='local',signal:_0x406cd4,integration:_0x11b413,userAgent:_0x326331,retryThrottledRequestMaxTimes:_0x3e0a38=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x4560c7=defaultSettings$1['retryNetworkErrorMaxTimes']}){return retryIfFailed$1(()=>request$1({'method':'POST','url':getUrl$1(_0x688486,'/multipart/complete/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x20911b,'integration':_0x11b413,'userAgent':_0x326331})},'data':buildFormData$1({'uuid':_0x33f8d1,'UPLOADCARE_PUB_KEY':_0x20911b,'source':_0x50e9c0}),'signal':_0x406cd4})['then'](({data:_0x41c5d3,headers:_0x4c0f9d,request:_0x1b417c})=>{const _0x631dc3=camelizeKeys$1(JSON['parse'](_0x41c5d3));if('error'in _0x631dc3)throw new UploadError$1(_0x631dc3['error']['content'],_0x631dc3['error']['errorCode'],_0x1b417c,_0x631dc3,_0x4c0f9d);return _0x631dc3;}),{'retryThrottledRequestMaxTimes':_0x3e0a38,'retryNetworkErrorMaxTimes':_0x4560c7});}function isReadyPoll$1(_0x1db649,{publicKey:_0x567815,baseURL:_0x1bf6be,source:_0xfcbeef,integration:_0x4f39bf,userAgent:_0x411b91,retryThrottledRequestMaxTimes:_0x4d1acd,retryNetworkErrorMaxTimes:_0x377f97,signal:_0x590455,onProgress:_0x1ae03b}){return poll$1({'check':_0x15ebfe=>info$1(_0x1db649,{'publicKey':_0x567815,'baseURL':_0x1bf6be,'signal':_0x15ebfe,'source':_0xfcbeef,'integration':_0x4f39bf,'userAgent':_0x411b91,'retryThrottledRequestMaxTimes':_0x4d1acd,'retryNetworkErrorMaxTimes':_0x377f97})['then'](_0xdf17f8=>_0xdf17f8['isReady']?_0xdf17f8:(_0x1ae03b&&_0x1ae03b({'isComputable':!0x0,'value':0x1}),!0x1)),'signal':_0x590455});}function isGroupFileInfo$1(_0x5ca55e){return'defaultEffects'in _0x5ca55e;}let UploadcareFile$1=class{['uuid'];['name'];['size'];['isStored'];['isImage'];['mimeType'];['cdnUrl'];['s3Url'];['originalFilename'];['imageInfo'];['videoInfo'];['contentInfo'];['metadata'];['s3Bucket'];['defaultEffects']=null;constructor(_0x27c1ee,{baseCDN:_0x3de69a=defaultSettings$1['baseCDN'],fileName:_0x1f3379}={}){const {uuid:_0x38a0d2,s3Bucket:_0x1db1be}=_0x27c1ee,_0x1c37fa=getUrl$1(_0x3de69a,_0x38a0d2+'/'),_0x3a6bd6=_0x1db1be?getUrl$1('https://'+_0x1db1be+'.s3.amazonaws.com/',_0x38a0d2+'/'+_0x27c1ee['filename']):null;this['uuid']=_0x38a0d2,this['name']=_0x1f3379||_0x27c1ee['filename'],this['size']=_0x27c1ee['size'],this['isStored']=_0x27c1ee['isStored'],this['isImage']=_0x27c1ee['isImage'],this['mimeType']=_0x27c1ee['mimeType'],this['cdnUrl']=_0x1c37fa,this['originalFilename']=_0x27c1ee['originalFilename'],this['imageInfo']=_0x27c1ee['imageInfo'],this['videoInfo']=_0x27c1ee['videoInfo'],this['contentInfo']=_0x27c1ee['contentInfo'],this['metadata']=_0x27c1ee['metadata']||null,this['s3Bucket']=_0x1db1be||null,this['s3Url']=_0x3a6bd6,isGroupFileInfo$1(_0x27c1ee)&&(this['defaultEffects']=_0x27c1ee['defaultEffects']);}};const uploadDirect$1=(_0x4d9a7d,{publicKey:_0x4dc449,fileName:_0x1ebdda,baseURL:_0x140f25,secureSignature:_0x132a4c,secureExpire:_0x19ab0b,store:_0x4b0dd4,contentType:_0x231f46,signal:_0x28bd8b,onProgress:_0x43ead0,source:_0x3f8c93,integration:_0x2596dc,userAgent:_0x5a2979,retryThrottledRequestMaxTimes:_0x486f01,retryNetworkErrorMaxTimes:_0x7b4dc3,baseCDN:_0x2e1e97,metadata:_0x3d1b04})=>base$1(_0x4d9a7d,{'publicKey':_0x4dc449,'fileName':_0x1ebdda,'contentType':_0x231f46,'baseURL':_0x140f25,'secureSignature':_0x132a4c,'secureExpire':_0x19ab0b,'store':_0x4b0dd4,'signal':_0x28bd8b,'onProgress':_0x43ead0,'source':_0x3f8c93,'integration':_0x2596dc,'userAgent':_0x5a2979,'retryThrottledRequestMaxTimes':_0x486f01,'retryNetworkErrorMaxTimes':_0x7b4dc3,'metadata':_0x3d1b04})['then'](({file:_0x291f96})=>isReadyPoll$1(_0x291f96,{'publicKey':_0x4dc449,'baseURL':_0x140f25,'source':_0x3f8c93,'integration':_0x2596dc,'userAgent':_0x5a2979,'retryThrottledRequestMaxTimes':_0x486f01,'retryNetworkErrorMaxTimes':_0x7b4dc3,'onProgress':_0x43ead0,'signal':_0x28bd8b}))['then'](_0x8fc4ff=>new UploadcareFile$1(_0x8fc4ff,{'baseCDN':_0x2e1e97})),uploadFromUploaded$1=(_0x58317d,{publicKey:_0x4ae9d5,fileName:_0x53307f,baseURL:_0x570e93,signal:_0x2a4a13,onProgress:_0x576de9,source:_0x3f1140,integration:_0x1a2bfa,userAgent:_0x297a04,retryThrottledRequestMaxTimes:_0x148b1b,retryNetworkErrorMaxTimes:_0x341b77,baseCDN:_0x57eec0})=>info$1(_0x58317d,{'publicKey':_0x4ae9d5,'baseURL':_0x570e93,'signal':_0x2a4a13,'source':_0x3f1140,'integration':_0x1a2bfa,'userAgent':_0x297a04,'retryThrottledRequestMaxTimes':_0x148b1b,'retryNetworkErrorMaxTimes':_0x341b77})['then'](_0x4d9db2=>new UploadcareFile$1(_0x4d9db2,{'baseCDN':_0x57eec0,'fileName':_0x53307f}))['then'](_0x20fe85=>(_0x576de9&&_0x576de9({'isComputable':!0x0,'value':0x1}),_0x20fe85)),race$1=(_0x2eae37,{signal:_0x5232c1}={})=>{let _0x3e0ec4=null,_0x401920=null;const _0xfc3a8a=_0x2eae37['map'](()=>new AbortController());return onCancel$1(_0x5232c1,()=>{_0xfc3a8a['forEach'](_0x399138=>_0x399138['abort']());}),Promise['all'](_0x2eae37['map']((_0x3bf523,_0x49ee3c)=>{const _0x37190e=(_0xc940f4=>()=>{_0x401920=_0xc940f4,_0xfc3a8a['forEach']((_0x78ad62,_0x2c43b0)=>_0x2c43b0!==_0xc940f4&&_0x78ad62['abort']());})(_0x49ee3c);return Promise['resolve']()['then'](()=>_0x3bf523({'stopRace':_0x37190e,'signal':_0xfc3a8a[_0x49ee3c]['signal']}))['then'](_0x3edea5=>(_0x37190e(),_0x3edea5))['catch'](_0x21d1fe=>(_0x3e0ec4=_0x21d1fe,null));}))['then'](_0x30c83e=>{if(null===_0x401920)throw _0x3e0ec4;return _0x30c83e[_0x401920];});};var WebSocket$1=window['WebSocket'];let Events$1=class{['events']=Object['create']({});['emit'](_0x5d1de5,_0x5b2a90){this['events'][_0x5d1de5]?.['forEach'](_0x5437d8=>_0x5437d8(_0x5b2a90));}['on'](_0x21bc00,_0x14a03d){this['events'][_0x21bc00]=this['events'][_0x21bc00]||[],this['events'][_0x21bc00]['push'](_0x14a03d);}['off'](_0xb33173,_0x2b5812){this['events'][_0xb33173]=_0x2b5812?this['events'][_0xb33173]['filter'](_0x55c73c=>_0x55c73c!==_0x2b5812):[];}};const response$1=(_0x55f66f,_0xd1ff7b)=>'success'===_0x55f66f?{'status':Status$1['Success'],..._0xd1ff7b}:'progress'===_0x55f66f?{'status':Status$1['Progress'],..._0xd1ff7b}:{'status':Status$1['Error'],..._0xd1ff7b};let Pusher$1=class{['key'];['disconnectTime'];['ws']=void 0x0;['queue']=[];['isConnected']=!0x1;['subscribers']=0x0;['emmitter']=new Events$1();['disconnectTimeoutId']=null;constructor(_0x25e15c,_0x3f3480=0x7530){this['key']=_0x25e15c,this['disconnectTime']=_0x3f3480;}['connect'](){if(this['disconnectTimeoutId']&&clearTimeout(this['disconnectTimeoutId']),!this['isConnected']&&!this['ws']){const _0x4cd6fb='wss://ws.pusherapp.com/app/'+this['key']+'?protocol=5&client=js&version=1.12.2';this['ws']=new WebSocket$1(_0x4cd6fb),this['ws']['addEventListener']('error',_0x4f3ab1=>{this['emmitter']['emit']('error',new Error(_0x4f3ab1['message']));}),this['emmitter']['on']('connected',()=>{this['isConnected']=!0x0,this['queue']['forEach'](_0x2e80c0=>this['send'](_0x2e80c0['event'],_0x2e80c0['data'])),this['queue']=[];}),this['ws']['addEventListener']('message',_0x1b575b=>{const _0xdc9c08=JSON['parse'](_0x1b575b['data']['toString']());switch(_0xdc9c08['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'](_0xdc9c08['channel'],response$1(_0xdc9c08['event'],JSON['parse'](_0xdc9c08['data'])));}});}}['disconnect'](){const _0x3fa4ec=()=>{this['ws']?.['close'](),this['ws']=void 0x0,this['isConnected']=!0x1;};this['disconnectTime']?this['disconnectTimeoutId']=setTimeout(()=>{_0x3fa4ec();},this['disconnectTime']):_0x3fa4ec();}['send'](_0x104acc,_0x4adf8f){const _0x5f273b=JSON['stringify']({'event':_0x104acc,'data':_0x4adf8f});this['ws']?.['send'](_0x5f273b);}['subscribe'](_0x40d9f1,_0x2728aa){this['subscribers']+=0x1,this['connect']();const _0x275bf9='task-status-'+_0x40d9f1,_0x41ff5f={'event':'pusher:subscribe','data':{'channel':_0x275bf9}};this['emmitter']['on'](_0x275bf9,_0x2728aa),this['isConnected']?this['send'](_0x41ff5f['event'],_0x41ff5f['data']):this['queue']['push'](_0x41ff5f);}['unsubscribe'](_0x35e6ae){this['subscribers']-=0x1;const _0x1e0453='task-status-'+_0x35e6ae,_0x4ba0dc={'event':'pusher:unsubscribe','data':{'channel':_0x1e0453}};this['emmitter']['off'](_0x1e0453),this['isConnected']?this['send'](_0x4ba0dc['event'],_0x4ba0dc['data']):this['queue']=this['queue']['filter'](_0x1a500d=>_0x1a500d['data']['channel']!==_0x1e0453),0x0===this['subscribers']&&this['disconnect']();}['onError'](_0xfbce58){return this['emmitter']['on']('error',_0xfbce58),()=>this['emmitter']['off']('error',_0xfbce58);}},pusher$1=null;const getPusher$1=_0x50f0dc=>{if(!pusher$1){const _0x341dfa='undefined'==typeof window?0x0:0x7530;pusher$1=new Pusher$1(_0x50f0dc,_0x341dfa);}return pusher$1;},preconnect$1=_0x363831=>{getPusher$1(_0x363831)['connect']();};function pollStrategy$1({token:_0x4ac4da,publicKey:_0x5cf7ae,baseURL:_0xf852ce,integration:_0x3a7bd4,userAgent:_0x397a86,retryThrottledRequestMaxTimes:_0x2189e0,retryNetworkErrorMaxTimes:_0x1150d2,onProgress:_0x4e488a,signal:_0x11c03b}){return poll$1({'check':_0x40a016=>fromUrlStatus$1(_0x4ac4da,{'publicKey':_0x5cf7ae,'baseURL':_0xf852ce,'integration':_0x3a7bd4,'userAgent':_0x397a86,'retryThrottledRequestMaxTimes':_0x2189e0,'retryNetworkErrorMaxTimes':_0x1150d2,'signal':_0x40a016})['then'](_0x566747=>{switch(_0x566747['status']){case Status$1['Error']:return new UploadError$1(_0x566747['error'],_0x566747['errorCode']);case Status$1['Waiting']:return!0x1;case Status$1['Unknown']:return new UploadError$1('Token\x20\x22'+_0x4ac4da+'\x22\x20was\x20not\x20found.');case Status$1['Progress']:return _0x4e488a&&('unknown'===_0x566747['total']?_0x4e488a({'isComputable':!0x1}):_0x4e488a({'isComputable':!0x0,'value':_0x566747['done']/_0x566747['total']})),!0x1;case Status$1['Success']:return _0x4e488a&&_0x4e488a({'isComputable':!0x0,'value':_0x566747['done']/_0x566747['total']}),_0x566747;default:throw new Error('Unknown\x20status');}}),'signal':_0x11c03b});}const pushStrategy$1=({token:_0x509882,pusherKey:_0x5db782,signal:_0x21fc73,onProgress:_0x2e4bb6})=>new Promise((_0x504da6,_0xf4853a)=>{const _0x584cae=getPusher$1(_0x5db782),_0x248340=_0x584cae['onError'](_0xf4853a),_0x1804a8=()=>{_0x248340(),_0x584cae['unsubscribe'](_0x509882);};onCancel$1(_0x21fc73,()=>{_0x1804a8(),_0xf4853a(new CancelError$1('pusher\x20cancelled'));}),_0x584cae['subscribe'](_0x509882,_0x14cef8=>{switch(_0x14cef8['status']){case Status$1['Progress']:_0x2e4bb6&&('unknown'===_0x14cef8['total']?_0x2e4bb6({'isComputable':!0x1}):_0x2e4bb6({'isComputable':!0x0,'value':_0x14cef8['done']/_0x14cef8['total']}));break;case Status$1['Success']:_0x1804a8(),_0x2e4bb6&&_0x2e4bb6({'isComputable':!0x0,'value':_0x14cef8['done']/_0x14cef8['total']}),_0x504da6(_0x14cef8);break;case Status$1['Error']:_0x1804a8(),_0xf4853a(new UploadError$1(_0x14cef8['msg'],_0x14cef8['error_code']));}});}),uploadFromUrl$1=(_0x5cd96c,{publicKey:_0x5f50a2,fileName:_0x5e1260,baseURL:_0x2cd0cd,baseCDN:_0x1cbfce,checkForUrlDuplicates:_0x25f14a,saveUrlForRecurrentUploads:_0x2d94bb,secureSignature:_0x6969f1,secureExpire:_0x3bf276,store:_0x2307ca,signal:_0x539953,onProgress:_0x28528e,source:_0x5a1694,integration:_0x3539ac,userAgent:_0x2c1fbf,retryThrottledRequestMaxTimes:_0x3cad3a,pusherKey:_0xda1083=defaultSettings$1['pusherKey'],metadata:_0xcd72d2})=>Promise['resolve'](preconnect$1(_0xda1083))['then'](()=>fromUrl$1(_0x5cd96c,{'publicKey':_0x5f50a2,'fileName':_0x5e1260,'baseURL':_0x2cd0cd,'checkForUrlDuplicates':_0x25f14a,'saveUrlForRecurrentUploads':_0x2d94bb,'secureSignature':_0x6969f1,'secureExpire':_0x3bf276,'store':_0x2307ca,'signal':_0x539953,'source':_0x5a1694,'integration':_0x3539ac,'userAgent':_0x2c1fbf,'retryThrottledRequestMaxTimes':_0x3cad3a,'metadata':_0xcd72d2}))['catch'](_0x22bf5b=>{const _0x5ddaef=getPusher$1(_0xda1083);return _0x5ddaef?.['disconnect'](),Promise['reject'](_0x22bf5b);})['then'](_0x34f821=>_0x34f821['type']===TypeEnum$1['FileInfo']?_0x34f821:race$1([({signal:_0xa1a038})=>pollStrategy$1({'token':_0x34f821['token'],'publicKey':_0x5f50a2,'baseURL':_0x2cd0cd,'integration':_0x3539ac,'userAgent':_0x2c1fbf,'retryThrottledRequestMaxTimes':_0x3cad3a,'onProgress':_0x28528e,'signal':_0xa1a038}),({signal:_0x59284e})=>pushStrategy$1({'token':_0x34f821['token'],'pusherKey':_0xda1083,'signal':_0x59284e,'onProgress':_0x28528e})],{'signal':_0x539953}))['then'](_0x8d63c=>{if(_0x8d63c instanceof UploadError$1)throw _0x8d63c;return _0x8d63c;})['then'](_0x53d3b4=>isReadyPoll$1(_0x53d3b4['uuid'],{'publicKey':_0x5f50a2,'baseURL':_0x2cd0cd,'integration':_0x3539ac,'userAgent':_0x2c1fbf,'retryThrottledRequestMaxTimes':_0x3cad3a,'onProgress':_0x28528e,'signal':_0x539953}))['then'](_0x451092=>new UploadcareFile$1(_0x451092,{'baseCDN':_0x1cbfce})),memo$1=new WeakMap(),getBlobFromReactNativeAsset$1=async _0x46ac57=>{if(memo$1['has'](_0x46ac57))return memo$1['get'](_0x46ac57);const _0x6069b7=await fetch(_0x46ac57['uri'])['then'](_0x50516e=>_0x50516e['blob']());return memo$1['set'](_0x46ac57,_0x6069b7),_0x6069b7;},getFileSize$1=async _0x2e8527=>{if(isFile$1(_0x2e8527)||isBlob$1(_0x2e8527))return _0x2e8527['size'];if(isReactNativeAsset$1(_0x2e8527))return(await getBlobFromReactNativeAsset$1(_0x2e8527))['size'];throw new Error('Unknown\x20file\x20type.\x20Cannot\x20determine\x20file\x20size.');},isMultipart$1=(_0xb50e13,_0x14fce1=defaultSettings$1['multipartMinFileSize'])=>_0xb50e13>=_0x14fce1,isUuid$1=_0x15bfe7=>{const _0x39b6b4=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(_0x15bfe7)&&_0x39b6b4['test'](_0x15bfe7);},isUrl$1=_0x394b51=>{const _0xfa72c8=new RegExp('^(?:\x5cw+:)?\x5c/\x5c/([^\x5cs\x5c.]+\x5c.\x5cS{2}|localhost[\x5c:?\x5cd]*)\x5cS*$');return!isFileData$1(_0x394b51)&&_0xfa72c8['test'](_0x394b51);},runWithConcurrency$1=(_0x364a01,_0x712869)=>new Promise((_0x54614f,_0x973aeb)=>{const _0x1ddd27=[];let _0x5456d3=!0x1,_0x2c4bc4=_0x712869['length'];const _0x1bdf0b=[..._0x712869],_0x328940=()=>{const _0x3dae34=_0x712869['length']-_0x1bdf0b['length'],_0x1b73e6=_0x1bdf0b['shift']();_0x1b73e6&&_0x1b73e6()['then'](_0x3a65d0=>{_0x5456d3||(_0x1ddd27[_0x3dae34]=_0x3a65d0,_0x2c4bc4-=0x1,_0x2c4bc4?_0x328940():_0x54614f(_0x1ddd27));})['catch'](_0x2f892a=>{_0x5456d3=!0x0,_0x973aeb(_0x2f892a);});};for(let _0x37e0b1=0x0;_0x37e0b1<_0x364a01;_0x37e0b1++)_0x328940();}),sliceChunk$1=(_0x13f142,_0x3072b5,_0x2f0111,_0x1553de)=>{const _0x2235b6=_0x1553de*_0x3072b5,_0x387463=Math['min'](_0x2235b6+_0x1553de,_0x2f0111);return _0x13f142['slice'](_0x2235b6,_0x387463);},prepareChunks$1=async(_0x43e03d,_0x10d678,_0x22da08)=>_0x4597f=>sliceChunk$1(_0x43e03d,_0x4597f,_0x10d678,_0x22da08),uploadPart$1=(_0x53bcbd,_0x4d0305,{publicKey:_0x2b5485,contentType:_0x26bc92,onProgress:_0x58b8f6,signal:_0x17dde4,integration:_0x8d7a95,retryThrottledRequestMaxTimes:_0x388c5f,retryNetworkErrorMaxTimes:_0x824a2e})=>multipartUpload$1(_0x53bcbd,_0x4d0305,{'contentType':_0x26bc92,'onProgress':_0x58b8f6,'signal':_0x17dde4,'retryThrottledRequestMaxTimes':_0x388c5f,'retryNetworkErrorMaxTimes':_0x824a2e}),uploadMultipart$1=async(_0x4e9e91,{publicKey:_0x12be4b,fileName:_0x29f12c,fileSize:_0x1bef3b,baseURL:_0x6551bc,secureSignature:_0x3b5d70,secureExpire:_0x2f1f97,store:_0x4c7ba7,signal:_0x422a59,onProgress:_0x19d759,source:_0x40b4c6,integration:_0x28d759,userAgent:_0x1fad9b,retryThrottledRequestMaxTimes:_0x353b4a,retryNetworkErrorMaxTimes:_0x597a98,contentType:_0x35b2d9,multipartChunkSize:_0x3b4063=defaultSettings$1['multipartChunkSize'],maxConcurrentRequests:_0x3c2be1=defaultSettings$1['maxConcurrentRequests'],baseCDN:_0x598788,metadata:_0x1c5342})=>{const _0x4ccc6a=_0x1bef3b??await getFileSize$1(_0x4e9e91);let _0x2af1fe;const _0x2cbbda=(_0x75c666,_0x294570)=>{if(!_0x19d759)return;_0x2af1fe||(_0x2af1fe=Array(_0x75c666)['fill'](0x0));const _0x147f84=_0x3a8483=>_0x3a8483['reduce']((_0x60ecd8,_0xc2fe48)=>_0x60ecd8+_0xc2fe48,0x0);return _0x292eb2=>{_0x292eb2['isComputable']&&(_0x2af1fe[_0x294570]=_0x292eb2['value'],_0x19d759({'isComputable':!0x0,'value':_0x147f84(_0x2af1fe)/_0x75c666}));};};return _0x35b2d9||=getContentType$1(_0x4e9e91),multipartStart$1(_0x4ccc6a,{'publicKey':_0x12be4b,'contentType':_0x35b2d9,'fileName':_0x29f12c||getFileName$1(_0x4e9e91),'baseURL':_0x6551bc,'secureSignature':_0x3b5d70,'secureExpire':_0x2f1f97,'store':_0x4c7ba7,'signal':_0x422a59,'source':_0x40b4c6,'integration':_0x28d759,'userAgent':_0x1fad9b,'retryThrottledRequestMaxTimes':_0x353b4a,'retryNetworkErrorMaxTimes':_0x597a98,'metadata':_0x1c5342,'multipartChunkSize':_0x3b4063})['then'](async({uuid:_0x570dbc,parts:_0x306042})=>{const _0x3cecbb=await prepareChunks$1(_0x4e9e91,_0x4ccc6a,_0x3b4063);return Promise['all']([_0x570dbc,runWithConcurrency$1(_0x3c2be1,_0x306042['map']((_0xe8e521,_0x3032c7)=>()=>uploadPart$1(_0x3cecbb(_0x3032c7),_0xe8e521,{'publicKey':_0x12be4b,'contentType':_0x35b2d9,'onProgress':_0x2cbbda(_0x306042['length'],_0x3032c7),'signal':_0x422a59,'integration':_0x28d759,'retryThrottledRequestMaxTimes':_0x353b4a,'retryNetworkErrorMaxTimes':_0x597a98})))]);})['then'](([_0x5d0c11])=>multipartComplete$1(_0x5d0c11,{'publicKey':_0x12be4b,'baseURL':_0x6551bc,'source':_0x40b4c6,'integration':_0x28d759,'userAgent':_0x1fad9b,'retryThrottledRequestMaxTimes':_0x353b4a,'retryNetworkErrorMaxTimes':_0x597a98}))['then'](_0x4831b3=>_0x4831b3['isReady']?_0x4831b3:isReadyPoll$1(_0x4831b3['uuid'],{'publicKey':_0x12be4b,'baseURL':_0x6551bc,'source':_0x40b4c6,'integration':_0x28d759,'userAgent':_0x1fad9b,'retryThrottledRequestMaxTimes':_0x353b4a,'retryNetworkErrorMaxTimes':_0x597a98,'onProgress':_0x19d759,'signal':_0x422a59}))['then'](_0x224273=>new UploadcareFile$1(_0x224273,{'baseCDN':_0x598788}));};async function uploadFile$1(_0x3a2be3,{publicKey:_0x34f4a3,fileName:_0x1b1126,baseURL:_0x53a2d5=defaultSettings$1['baseURL'],secureSignature:_0x2f4e6,secureExpire:_0x10f868,store:_0x16a097,signal:_0x3c78fe,onProgress:_0x1a8d4f,source:_0x17af3d,integration:_0x433114,userAgent:_0x1d97ab,retryThrottledRequestMaxTimes:_0x452c6d,retryNetworkErrorMaxTimes:_0x145017,contentType:_0xf76634,multipartMinFileSize:_0x1c04af,multipartChunkSize:_0xd60b12,maxConcurrentRequests:_0x28331b,baseCDN:_0x518cf2=defaultSettings$1['baseCDN'],checkForUrlDuplicates:_0x37ff02,saveUrlForRecurrentUploads:_0xc84cb,pusherKey:_0x302b3b,metadata:_0x496c50}){if(isFileData$1(_0x3a2be3)){const _0x509629=await getFileSize$1(_0x3a2be3);return isMultipart$1(_0x509629,_0x1c04af)?uploadMultipart$1(_0x3a2be3,{'publicKey':_0x34f4a3,'contentType':_0xf76634,'multipartChunkSize':_0xd60b12,'fileSize':_0x509629,'fileName':_0x1b1126,'baseURL':_0x53a2d5,'secureSignature':_0x2f4e6,'secureExpire':_0x10f868,'store':_0x16a097,'signal':_0x3c78fe,'onProgress':_0x1a8d4f,'source':_0x17af3d,'integration':_0x433114,'userAgent':_0x1d97ab,'maxConcurrentRequests':_0x28331b,'retryThrottledRequestMaxTimes':_0x452c6d,'retryNetworkErrorMaxTimes':_0x145017,'baseCDN':_0x518cf2,'metadata':_0x496c50}):uploadDirect$1(_0x3a2be3,{'publicKey':_0x34f4a3,'fileName':_0x1b1126,'contentType':_0xf76634,'baseURL':_0x53a2d5,'secureSignature':_0x2f4e6,'secureExpire':_0x10f868,'store':_0x16a097,'signal':_0x3c78fe,'onProgress':_0x1a8d4f,'source':_0x17af3d,'integration':_0x433114,'userAgent':_0x1d97ab,'retryThrottledRequestMaxTimes':_0x452c6d,'retryNetworkErrorMaxTimes':_0x145017,'baseCDN':_0x518cf2,'metadata':_0x496c50});}if(isUrl$1(_0x3a2be3))return uploadFromUrl$1(_0x3a2be3,{'publicKey':_0x34f4a3,'fileName':_0x1b1126,'baseURL':_0x53a2d5,'baseCDN':_0x518cf2,'checkForUrlDuplicates':_0x37ff02,'saveUrlForRecurrentUploads':_0xc84cb,'secureSignature':_0x2f4e6,'secureExpire':_0x10f868,'store':_0x16a097,'signal':_0x3c78fe,'onProgress':_0x1a8d4f,'source':_0x17af3d,'integration':_0x433114,'userAgent':_0x1d97ab,'retryThrottledRequestMaxTimes':_0x452c6d,'pusherKey':_0x302b3b,'metadata':_0x496c50});if(isUuid$1(_0x3a2be3))return uploadFromUploaded$1(_0x3a2be3,{'publicKey':_0x34f4a3,'fileName':_0x1b1126,'baseURL':_0x53a2d5,'signal':_0x3c78fe,'onProgress':_0x1a8d4f,'source':_0x17af3d,'integration':_0x433114,'userAgent':_0x1d97ab,'retryThrottledRequestMaxTimes':_0x452c6d,'retryNetworkErrorMaxTimes':_0x145017,'baseCDN':_0x518cf2});throw new TypeError('File\x20uploading\x20from\x20\x22'+_0x3a2be3+'\x22\x20is\x20not\x20supported');}class UploadUtils{static['upload']({file:_0x302405,..._0x39653e}){return uploadFile$1(_0x302405,_0x39653e);}static['getInfo'](_0x2d58c6,_0x229744){return info$1(_0x2d58c6,_0x229744);}}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 _0x51f808=this['editor'];if(!!!_0x51f808['config']['get']('uploadcare'))return;_0x51f808['plugins']['get'](FileRepository)['createUploadAdapter']=_0x4e73c1=>new Adapter(_0x4e73c1,_0x51f808),_0x51f808['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x45a0d2,{imageElement:_0x23dffa,data:_0x313cc7})=>{_0x51f808['model']['change'](_0x1b1f46=>{_0x1b1f46['setAttribute']('uploadcareImageId',_0x313cc7['uploadcareImageId'],_0x23dffa);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0x5c4305,_0x3cc749){this['loader']=_0x5c4305,this['editor']=_0x3cc749,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4cac47=await this['loader']['file'];return UploadUtils['upload']({'file':_0x4cac47,'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':_0x2bc91c=>{_0x2bc91c&&_0x2bc91c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2bc91c['value']);}})['then'](async _0x1d129d=>{const {imageFallbackUrl:_0x195fd5,imageSources:_0x4d31e6}=getImageUrls(_0x1d129d['cdnUrl'],_0x1d129d['imageInfo']['width']);return{'uploadcareImageId':_0x1d129d['uuid'],'default':_0x195fd5,'sources':_0x4d31e6};})['catch'](()=>{const _0x2b1a4a=t('Cannot\x20upload\x20file:')+('\x20'+_0x4cac47['name']+'.');return Promise['reject'](_0x2b1a4a);});}['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(_0x4aa36c){super(_0x4aa36c),this['ucContextId']=uid();}['init'](){const _0x4e0136=this['editor'];_0x4e0136['commands']['add']('uploadcare',new UploadcareCommand(_0x4e0136));}['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 _0x235bea=_0x347e1e['document']['querySelector']('input[uploadcare-file-input]');_0x235bea&&_0x235bea['remove']();}),checkLicense(this);}['_initSchema'](){const _0x7e3af7=this['editor']['model']['schema'];_0x7e3af7['isRegistered']('imageBlock')&&_0x7e3af7['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x7e3af7['isRegistered']('imageInline')&&_0x7e3af7['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x23c169=this['editor'];_0x23c169['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x23c169['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1cb931=>_0x1cb931['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xd35f1=_0x23c169['commands']['get']('replaceImageSource');_0xd35f1&&this['listenTo'](_0xd35f1,'cleanupImage',(_0x49a9c1,[_0x1b1dd9,_0x2a6204])=>{_0x1b1dd9['removeAttribute']('uploadcareImageId',_0x2a6204);});}['_initConfig'](){const _0x2f5e2b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4599d6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=createElement(_0x347e1e['document'],'uc-config',{..._0x2f5e2b,'pubkey':_0x4599d6,'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']=_0x418e99=>{if('closeMax'==_0x418e99)return'#uc-icon-arrow-down';},_0x347e1e['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=createElement(_0x347e1e['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x347e1e['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1f1eaa=this['editor']['commands']['get']('insertImage');_0x1f1eaa&&this['listenTo'](_0x1f1eaa,'execute',()=>{const _0x4a05e3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4a05e3&&_0x4a05e3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{showImageProcessingIndicator(this['editor'],_0x4a05e3);});});const _0x443c67=this['editor']['commands']['get']('uploadcareImageReplace');_0x443c67&&this['listenTo'](_0x443c67,'execute',()=>{const _0x386aaf=this['editor']['model']['document']['selection']['getSelectedElement']();_0x386aaf&&_0x386aaf['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{showImageProcessingIndicator(this['editor'],_0x386aaf);});});}}async function checkLicense(_0x42910d){const _0x5e63ea=_0x3ee7e7([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x39e1f6=window[_0x3ee7e7([0x44,0x61,0x74,0x65])][_0x3ee7e7([0x6e,0x6f,0x77])](),_0x3c8650=_0x42910d[_0x3ee7e7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x28a4dc=new window[(_0x3ee7e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48d89b=>{_0x3c8650[_0x3ee7e7([0x6f,0x6e,0x63,0x65])](_0x3ee7e7([0x72,0x65,0x61,0x64,0x79]),_0x48d89b);}),_0xbbe13c={[_0x3ee7e7([0x6b,0x74,0x79])]:_0x3ee7e7([0x45,0x43]),[_0x3ee7e7([0x75,0x73,0x65])]:_0x3ee7e7([0x73,0x69,0x67]),[_0x3ee7e7([0x63,0x72,0x76])]:_0x3ee7e7([0x50,0x2d,0x32,0x35,0x36]),[_0x3ee7e7([0x78])]:_0x3ee7e7([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]),[_0x3ee7e7([0x79])]:_0x3ee7e7([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]),[_0x3ee7e7([0x61,0x6c,0x67])]:_0x3ee7e7([0x45,0x53,0x32,0x35,0x36])},_0x4175b8=_0x3c8650[_0x3ee7e7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3ee7e7([0x67,0x65,0x74])](_0x3ee7e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x46c39f=await(async function(){let _0x23851e,_0x3a58ff=null,_0x460afa=null;try{if(_0x4175b8==_0x3ee7e7([0x47,0x50,0x4c]))return _0x3ee7e7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x23851e=(function(){const _0x1ad908=_0x4175b8[_0x3ee7e7([0x73,0x70,0x6c,0x69,0x74])](_0x3ee7e7([0x2e]));if(0x3!=_0x1ad908[_0x3ee7e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x2acbaa=_0x1ad908[0x1];return _0x35148f(_0x2acbaa);function _0x35148f(_0x1c9860){const _0x5b96c8=_0x536256(_0x1c9860);return _0x5b96c8&&_0x3e7132()?_0x5b96c8:null;function _0x3e7132(){const _0x435305=_0x5b96c8[_0x3ee7e7([0x6a,0x74,0x69])],_0x529541=window[_0x3ee7e7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x435305[_0x3ee7e7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x435305[_0x3ee7e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xcaf1d2={..._0x5b96c8,[_0x3ee7e7([0x6a,0x74,0x69])]:_0x435305[_0x3ee7e7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x435305[_0x3ee7e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xcaf1d2[_0x3ee7e7([0x76,0x63])],_0x2a19ab(_0xcaf1d2)==_0x529541;}}}()),!_0x23851e)return _0x3ee7e7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x23851e[_0x3ee7e7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x460afa=function(_0x12e45f,_0x3198fb){return new window[(_0x3ee7e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ae637=>{if(_0xd891a0())return _0x3ae637(_0x3ee7e7([0x56,0x61,0x6c,0x69,0x64]));_0x1913e4(),_0x3c8650[_0x3ee7e7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3ee7e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2cd135=!0x1;const _0x2a725b=uid();function _0x3d5aea(_0x5589fa){return!!_0x5589fa&&(typeof _0x5589fa===_0x3ee7e7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5589fa===_0x3ee7e7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5589fa[_0x3ee7e7([0x74,0x68,0x65,0x6e])]===_0x3ee7e7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5589fa[_0x3ee7e7([0x63,0x61,0x74,0x63,0x68])]===_0x3ee7e7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c8e24(_0x20c4d4){_0x2e131c(_0x20c4d4)[_0x3ee7e7([0x74,0x68,0x65,0x6e])](_0x4603fe=>{if(!_0x4603fe||_0x4603fe[_0x3ee7e7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3ee7e7([0x6f,0x6b]))return _0x3ee7e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5a67d5(_0x2a19ab(_0x2a725b+_0x3198fb))!=_0x4603fe[_0x3ee7e7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3ee7e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3ee7e7([0x56,0x61,0x6c,0x69,0x64]);})[_0x3ee7e7([0x74,0x68,0x65,0x6e])](_0x59f9af=>(_0x3f065b(),_0x59f9af),()=>{const _0x28de57=_0x4e1444();return null==_0x28de57?(_0x3f065b(),_0x3ee7e7([0x56,0x61,0x6c,0x69,0x64])):_0x3ee7e7(_0x39e1f6-_0x28de57>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3ee7e7([0x74,0x68,0x65,0x6e])](_0x3ae637)[_0x3ee7e7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ae637(_0x3ee7e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x465a2a=0x36ee80;function _0x3f065b(){const _0x29b8cc=_0x3ee7e7([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a67d5(_0x2a19ab(_0x12e45f)),_0x260c61=_0x45b906(_0x5a67d5(window[_0x3ee7e7([0x4d,0x61,0x74,0x68])][_0x3ee7e7([0x63,0x65,0x69,0x6c])](_0x39e1f6/_0x465a2a)));window[_0x3ee7e7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ee7e7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29b8cc,_0x260c61);}function _0x4e1444(){const _0xef53a6=_0x3ee7e7([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a67d5(_0x2a19ab(_0x12e45f)),_0x45961c=window[_0x3ee7e7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ee7e7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xef53a6);return _0x45961c?window[_0x3ee7e7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45b906(_0x45961c),0x10)*_0x465a2a:null;}function _0x2e131c(_0x1c014e){return new window[(_0x3ee7e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b2bb6,_0x398bbb)=>{_0x1c014e[_0x3ee7e7([0x74,0x68,0x65,0x6e])](_0x4b2bb6,_0x398bbb),window[_0x3ee7e7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x398bbb,0x1d4c0);});}}_0x3c8650[_0x3ee7e7([0x6f,0x6e])](_0x3ee7e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x223759,_0x300fa9)=>{if(_0x300fa9[0x0]!=_0x12e45f)return _0x3ae637(_0x3ee7e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x300fa9[0x1]={..._0x300fa9[0x1],[_0x3ee7e7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a725b};},{[_0x3ee7e7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ee7e7([0x68,0x69,0x67,0x68])}),_0x3c8650[_0x3ee7e7([0x6f,0x6e])](_0x3ee7e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1cf343=>{_0x3d5aea(_0x1cf343[_0x3ee7e7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2cd135=!0x0,_0x2c8e24(_0x1cf343[_0x3ee7e7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3ee7e7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ee7e7([0x6c,0x6f,0x77])}),_0x28a4dc[_0x3ee7e7([0x74,0x68,0x65,0x6e])](()=>{_0x2cd135||_0x3ae637(_0x3ee7e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd891a0(){return _0x3c8650[_0x3ee7e7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ee7e7([0x76,0x69,0x65,0x77])][_0x3ee7e7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3ee7e7([0x61,0x75,0x74,0x6f]);}function _0x1913e4(){_0x3c8650[_0x3ee7e7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ee7e7([0x76,0x69,0x65,0x77])][_0x3ee7e7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ee7e7([0x61,0x75,0x74,0x6f]);}}(_0x23851e[_0x3ee7e7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x23851e[_0x3ee7e7([0x6a,0x74,0x69])]));const _0xb84888=await(async function(){let _0x29cd2f=!0x0;try{const _0x50fb3b=_0x4175b8[_0x3ee7e7([0x73,0x70,0x6c,0x69,0x74])](_0x3ee7e7([0x2e])),[_0x4aaff9,_0x4e4389,_0x3ce0f9]=_0x50fb3b;return _0x263b21(_0x4aaff9),await _0x128ce7(_0x4aaff9,_0x4e4389,_0x3ce0f9),_0x29cd2f;}catch{return!0x1;}function _0x263b21(_0x3d302b){const _0x5e7445=_0x536256(_0x3d302b);_0x5e7445&&_0x5e7445[_0x3ee7e7([0x61,0x6c,0x67])]==_0x3ee7e7([0x45,0x53,0x32,0x35,0x36])||(_0x29cd2f=!0x1);}async function _0x128ce7(_0x526162,_0x2c92c6,_0x217413){const _0x33a743=window[_0x3ee7e7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3ee7e7([0x66,0x72,0x6f,0x6d])](_0x3478d9(_0x217413),_0x115adf=>_0x115adf[_0x3ee7e7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1d81be=new window[(_0x3ee7e7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3ee7e7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x526162+_0x3ee7e7([0x2e])+_0x2c92c6),_0x105e4c=window[_0x3ee7e7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3ee7e7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x105e4c)return;const _0x1423fd=await _0x105e4c[_0x3ee7e7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3ee7e7([0x6a,0x77,0x6b]),_0xbbe13c,{[_0x3ee7e7([0x6e,0x61,0x6d,0x65])]:_0x3ee7e7([0x45,0x43,0x44,0x53,0x41]),[_0x3ee7e7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3ee7e7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3ee7e7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x105e4c[_0x3ee7e7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3ee7e7([0x6e,0x61,0x6d,0x65])]:_0x3ee7e7([0x45,0x43,0x44,0x53,0x41]),[_0x3ee7e7([0x68,0x61,0x73,0x68])]:{[_0x3ee7e7([0x6e,0x61,0x6d,0x65])]:_0x3ee7e7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1423fd,_0x33a743,_0x1d81be)||(_0x29cd2f=!0x1);}}());return _0xb84888?(function(){const _0x4114b1=_0x23851e[_0x3ee7e7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4114b1)return!0x1;if(_0x4114b1[_0x3ee7e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ee7e7([0x2a])))return!0x0;if(_0x4114b1[_0x3ee7e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ee7e7([0x55,0x50,0x4c,0x43])))return!0x0;return!0x1;}())?(function(){const _0x1451a9=[_0x3ee7e7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3ee7e7([0x74,0x72,0x69,0x61,0x6c])][_0x3ee7e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23851e[_0x3ee7e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x39e1f6/0x3e8:0x69e96100;return _0x23851e[_0x3ee7e7([0x65,0x78,0x70])]<_0x1451a9;}())?_0x3ee7e7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x2fb319=_0x23851e[_0x3ee7e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2fb319||0x0==_0x2fb319[_0x3ee7e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x25898f}=new URL(window[_0x3ee7e7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2fb319[_0x3ee7e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25898f))return!0x0;const _0x263c48=_0x25898f[_0x3ee7e7([0x73,0x70,0x6c,0x69,0x74])](_0x3ee7e7([0x2e]));return _0x2fb319[_0x3ee7e7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d7586=>_0x1d7586[_0x3ee7e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ee7e7([0x2a])))[_0x3ee7e7([0x6d,0x61,0x70])](_0x510479=>_0x510479[_0x3ee7e7([0x73,0x70,0x6c,0x69,0x74])](_0x3ee7e7([0x2e])))[_0x3ee7e7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b72b6=>_0x5b72b6[_0x3ee7e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x263c48[_0x3ee7e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ee7e7([0x6d,0x61,0x70])](_0x2aea19=>Array(_0x263c48[_0x3ee7e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2aea19[_0x3ee7e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ee7e7([0x66,0x69,0x6c,0x6c])](_0x2aea19[0x0]===_0x3ee7e7([0x2a])?_0x3ee7e7([0x2a]):'')[_0x3ee7e7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2aea19))[_0x3ee7e7([0x73,0x6f,0x6d,0x65])](_0x274387=>_0x263c48[_0x3ee7e7([0x65,0x76,0x65,0x72,0x79])]((_0xc4eea2,_0x11a968)=>_0x274387[_0x11a968]===_0xc4eea2||_0x274387[_0x11a968]===_0x3ee7e7([0x2a])));}())?(_0x23851e[_0x3ee7e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ee7e7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a58ff=function(_0x5eae5f){const _0x2ded68=new window[(_0x3ee7e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfa6f61=>setTimeout(_0xfa6f61,0x93ecc)),_0x707b50=_0x28a4dc[_0x3ee7e7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3ee7e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x575425=>{let _0x1b091e=0x0;_0x3c8650[_0x3ee7e7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ee7e7([0x6f,0x6e])](_0x3ee7e7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x27665b,_0x859443)=>{_0x859443[0x0][_0x3ee7e7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1b091e++,0x5e8==_0x1b091e&&(_0x575425(),_0x27665b[_0x3ee7e7([0x6f,0x66,0x66])]());});})),_0x429f43=[_0x2ded68,_0x707b50];return window[_0x3ee7e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ee7e7([0x72,0x61,0x63,0x65])](_0x429f43)[_0x3ee7e7([0x74,0x68,0x65,0x6e])](()=>_0x5eae5f);}(_0x3ee7e7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x3a58ff&&_0x460afa)return new window[(_0x3ee7e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x521fbb,_0x33123c)=>{_0x3a58ff[_0x3ee7e7([0x74,0x68,0x65,0x6e])](_0x521fbb,_0x33123c),_0x460afa[_0x3ee7e7([0x74,0x68,0x65,0x6e])](_0xb751cf=>{_0xb751cf!=_0x3ee7e7([0x56,0x61,0x6c,0x69,0x64])&&_0x521fbb(_0xb751cf);},_0x33123c);});return _0x3a58ff||_0x460afa||_0x3ee7e7([0x56,0x61,0x6c,0x69,0x64]);}())):_0x3ee7e7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3ee7e7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3ee7e7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3ee7e7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x536256(_0x4b4d03){return _0x4b4d03[_0x3ee7e7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3ee7e7([0x65,0x79]))?JSON[_0x3ee7e7([0x70,0x61,0x72,0x73,0x65])](_0x3478d9(_0x4b4d03)):null;}function _0x3478d9(_0x1bfacf){return window[_0x3ee7e7([0x61,0x74,0x6f,0x62])](_0x1bfacf[_0x3ee7e7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3ee7e7([0x2b]))[_0x3ee7e7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3ee7e7([0x2f])));}function _0x2a19ab(_0x467fea){let _0x236da5=0x1505;function _0x2861a5(_0x3cbc48){for(let _0x251b41=0x0;_0x251b41<_0x3cbc48[_0x3ee7e7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x251b41++){const _0x337eb2=_0x3cbc48[_0x3ee7e7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x251b41);_0x236da5=(_0x236da5<<0x5)+_0x236da5+_0x337eb2,_0x236da5&=_0x236da5;}}return function _0xeef653(_0x524433){Array[_0x3ee7e7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x524433)?_0x524433[_0x3ee7e7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xeef653):_0x524433&&typeof _0x524433==_0x3ee7e7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3ee7e7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x524433)[_0x3ee7e7([0x73,0x6f,0x72,0x74])]()[_0x3ee7e7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29e439,_0x3a0e6f])=>{_0x2861a5(_0x29e439),_0xeef653(_0x3a0e6f);}):_0x2861a5(window[_0x3ee7e7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x524433));}(_0x467fea),_0x236da5>>>0x0;}function _0x5a67d5(_0xba6a39){return _0xba6a39[_0x3ee7e7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3ee7e7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3ee7e7([0x30]));}function _0x45b906(_0x3b3552){return _0x3b3552[_0x3ee7e7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3ee7e7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3ee7e7([0x6a,0x6f,0x69,0x6e])]('');}function _0x19bb54(){}function _0x3ee7e7(_0x9c0f52){return _0x9c0f52['map'](_0x3ac6cf=>String['fromCharCode'](_0x3ac6cf))['join']('');}!function(_0x4dbe53){const _0x146bd7=(function(){const _0x3adcac=window[_0x3ee7e7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3ee7e7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3ee7e7([0x6e,0x6f,0x77])]())[_0x3ee7e7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3ee7e7([0x2e]),'');let _0x373192=_0x3ee7e7([0x68]);for(let _0x3af517=0x0;_0x3af517<_0x3adcac[_0x3ee7e7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3af517+=0x2){let _0x5913a1=window[_0x3ee7e7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3adcac[_0x3ee7e7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3af517,_0x3af517+0x2));_0x5913a1>=_0x5e63ea[_0x3ee7e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5913a1-=_0x5e63ea[_0x3ee7e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x373192+=_0x5e63ea[_0x5913a1];}return _0x373192;}());_0x3c8650[_0x146bd7]=_0x3ee7e7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4dbe53,_0x4dbe53!=_0x3ee7e7([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x28a4dc,_0x3c8650[_0x3ee7e7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ee7e7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x19bb54,_0x3c8650[_0x3ee7e7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ee7e7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x19bb54,_0x3c8650[_0x3ee7e7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3ee7e7([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x46c39f);}var __defProp=Object['defineProperty'],__defNormalProp=(_0x2a8f99,_0x3d05a1,_0x2e4a52)=>_0x3d05a1 in _0x2a8f99?__defProp(_0x2a8f99,_0x3d05a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e4a52}):_0x2a8f99[_0x3d05a1]=_0x2e4a52,__publicField=(_0x3a12a8,_0x4fbf1c,_0x45532d)=>(__defNormalProp(_0x3a12a8,'symbol'!=typeof _0x4fbf1c?_0x4fbf1c+'':_0x4fbf1c,_0x45532d),_0x45532d);function cloneObj(_0x17ced4){let _0x217542=_0x2a4214=>{var _0x5451f0;for(let _0x308bdb in _0x2a4214)(null==(_0x5451f0=_0x2a4214[_0x308bdb])?void 0x0:_0x5451f0['constructor'])===Object&&(_0x2a4214[_0x308bdb]=_0x217542(_0x2a4214[_0x308bdb]));return{..._0x2a4214};};return _0x217542(_0x17ced4);}var Data=class{constructor(_0x2c383b){_0x2c383b['constructor']===Object?this['store']=cloneObj(_0x2c383b):(this['_storeIsProxy']=!0x0,this['store']=_0x2c383b),this['callbackMap']=Object['create'](null);}static['warn'](_0x3e112a,_0x1bc165){console['warn']('Symbiote\x20Data:\x20cannot\x20'+_0x3e112a+'.\x20Prop\x20name:\x20'+_0x1bc165);}['read'](_0x3f843f){return this['_storeIsProxy']||this['store']['hasOwnProperty'](_0x3f843f)?this['store'][_0x3f843f]:(Data['warn']('read',_0x3f843f),null);}['has'](_0x56596b){return this['_storeIsProxy']?void 0x0!==this['store'][_0x56596b]:this['store']['hasOwnProperty'](_0x56596b);}['add'](_0x19db27,_0x4ee3a4,_0xa230c3=!0x1){!_0xa230c3&&Object['keys'](this['store'])['includes'](_0x19db27)||(this['store'][_0x19db27]=_0x4ee3a4,this['notify'](_0x19db27));}['pub'](_0x5a9e12,_0x513ac6){this['_storeIsProxy']||this['store']['hasOwnProperty'](_0x5a9e12)?(this['store'][_0x5a9e12]=_0x513ac6,this['notify'](_0x5a9e12)):Data['warn']('publish',_0x5a9e12);}['multiPub'](_0xb309cd){for(let _0x3d1a2f in _0xb309cd)this['pub'](_0x3d1a2f,_0xb309cd[_0x3d1a2f]);}['notify'](_0x3c09a4){this['callbackMap'][_0x3c09a4]&&this['callbackMap'][_0x3c09a4]['forEach'](_0x2789d8=>{_0x2789d8(this['store'][_0x3c09a4]);});}['sub'](_0x4b5189,_0x2d24c1,_0x23c2de=!0x0){return this['_storeIsProxy']||this['store']['hasOwnProperty'](_0x4b5189)?(this['callbackMap'][_0x4b5189]||(this['callbackMap'][_0x4b5189]=new Set()),this['callbackMap'][_0x4b5189]['add'](_0x2d24c1),_0x23c2de&&_0x2d24c1(this['store'][_0x4b5189]),{'remove':()=>{this['callbackMap'][_0x4b5189]['delete'](_0x2d24c1),this['callbackMap'][_0x4b5189]['size']||delete this['callbackMap'][_0x4b5189];},'callback':_0x2d24c1}):(Data['warn']('subscribe',_0x4b5189),null);}static['registerCtx'](_0x3e9257,_0x122eab=Symbol()){let _0x1b130c=Data['globalStore']['get'](_0x122eab);return _0x1b130c?console['warn']('State:\x20context\x20UID\x20\x22'+_0x122eab+'\x22\x20already\x20in\x20use'):(_0x1b130c=new Data(_0x3e9257),Data['globalStore']['set'](_0x122eab,_0x1b130c)),_0x1b130c;}static['deleteCtx'](_0x7615b2){Data['globalStore']['delete'](_0x7615b2);}static['getCtx'](_0x5b69be,_0x4328af=!0x0){return Data['globalStore']['get'](_0x5b69be)||(_0x4328af&&console['warn']('State:\x20wrong\x20context\x20UID\x20-\x20\x22'+_0x5b69be+'\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'](_0x4279bc='XXXXXXXXX-XXX'){let _0x3d4a77='';for(let _0x239ec4=0x0;_0x239ec4<_0x4279bc['length'];_0x239ec4++)_0x3d4a77+='-'===_0x4279bc[_0x239ec4]?_0x4279bc[_0x239ec4]:CHARS['charAt'](Math['random']()*CHLENGTH);return _0x3d4a77;}};function setNestedProp(_0x2ff5c6,_0x5a3f66,_0x12cb2d){let _0x35036b,_0x48af0e=!0x0,_0x3717d5=_0x5a3f66['split']('.');return _0x3717d5['forEach']((_0xa16121,_0x1ec0f9)=>{_0x1ec0f9<_0x3717d5['length']-0x1?_0x2ff5c6=_0x2ff5c6[_0xa16121]:_0x35036b=_0xa16121;}),_0x2ff5c6?_0x2ff5c6[_0x35036b]=_0x12cb2d:_0x48af0e=!0x1,_0x48af0e;}function kebabToCamel(_0x38378c){return _0x38378c['split']('-')['map']((_0x383191,_0x3f38a7)=>_0x383191&&_0x3f38a7?_0x383191[0x0]['toUpperCase']()+_0x383191['slice'](0x1):_0x383191)['join']('')['split']('_')['map']((_0x38b8cb,_0x16e5f2)=>_0x38b8cb&&_0x16e5f2?_0x38b8cb['toUpperCase']():_0x38b8cb)['join']('');}function repeatProcessor(_0x39bf4d,_0x57413b){[..._0x39bf4d['querySelectorAll']('['+DICT['REPEAT_ATTR']+']')]['forEach'](_0x5f41b3=>{let _0x2dd958,_0x50ae34=_0x5f41b3['getAttribute'](DICT['REPEAT_ITEM_TAG_ATTR']);if(_0x50ae34&&(_0x2dd958=window['customElements']['get'](_0x50ae34)),!_0x2dd958){_0x2dd958=class extends _0x57413b['BaseComponent']{constructor(){super(),_0x50ae34||(this['style']['display']='contents');}};let _0x5dfd4d=_0x5f41b3['innerHTML'];_0x2dd958['template']=_0x5dfd4d,_0x2dd958['reg'](_0x50ae34);}for(;_0x5f41b3['firstChild'];)_0x5f41b3['firstChild']['remove']();let _0x3d66fc=_0x5f41b3['getAttribute'](DICT['REPEAT_ATTR']);_0x57413b['sub'](_0x3d66fc,_0x42bc6d=>{if(!_0x42bc6d){for(;_0x5f41b3['firstChild'];)_0x5f41b3['firstChild']['remove']();return;}let _0x270947,_0x5e50e3=[..._0x5f41b3['children']],_0x984596=_0x5c27a1=>{_0x5c27a1['forEach']((_0x15055e,_0x4ec356)=>{if(_0x5e50e3[_0x4ec356]){if(_0x5e50e3[_0x4ec356]['set$'])setTimeout(()=>{_0x5e50e3[_0x4ec356]['set$'](_0x15055e);});else{for(let _0x4ce6b5 in _0x15055e)_0x5e50e3[_0x4ec356][_0x4ce6b5]=_0x15055e[_0x4ce6b5];}}else{_0x270947||(_0x270947=new DocumentFragment());let _0x1bdc8a=new _0x2dd958();Object['assign'](_0x1bdc8a['init$'],_0x15055e),_0x270947['appendChild'](_0x1bdc8a);}}),_0x270947&&_0x5f41b3['appendChild'](_0x270947);let _0x2a59ec=_0x5e50e3['slice'](_0x5c27a1['length'],_0x5e50e3['length']);for(let _0x969167 of _0x2a59ec)_0x969167['remove']();};if(_0x42bc6d['constructor']===Array)_0x984596(_0x42bc6d);else{if(_0x42bc6d['constructor']===Object){let _0x574f91=[];for(let _0x470250 in _0x42bc6d){let _0x5429bd=_0x42bc6d[_0x470250];Object['defineProperty'](_0x5429bd,'_KEY_',{'value':_0x470250,'enumerable':!0x0}),_0x574f91['push'](_0x5429bd);}_0x984596(_0x574f91);}else console['warn']('Symbiote\x20repeat\x20data\x20type\x20error:'),console['log'](_0x42bc6d);}}),_0x5f41b3['removeAttribute'](DICT['REPEAT_ATTR']),_0x5f41b3['removeAttribute'](DICT['REPEAT_ITEM_TAG_ATTR']);});}var DEFAULT_SLOT_KEY='__default__';function slotProcessor(_0x145afd,_0x392503){if(_0x392503['shadowRoot'])return;let _0x29ea67=[..._0x145afd['querySelectorAll']('slot')];if(!_0x29ea67['length'])return;let _0x4d863d={};_0x29ea67['forEach'](_0x2b406b=>{let _0x3bb57f=_0x2b406b['getAttribute']('name')||DEFAULT_SLOT_KEY;_0x4d863d[_0x3bb57f]={'slot':_0x2b406b,'fr':document['createDocumentFragment']()};}),_0x392503['initChildren']['forEach'](_0x273985=>{var _0x261c90;let _0xcdb05f=DEFAULT_SLOT_KEY;_0x273985 instanceof Element&&_0x273985['hasAttribute']('slot')&&(_0xcdb05f=_0x273985['getAttribute']('slot'),_0x273985['removeAttribute']('slot')),null==(_0x261c90=_0x4d863d[_0xcdb05f])||_0x261c90['fr']['appendChild'](_0x273985);}),Object['values'](_0x4d863d)['forEach'](_0x41e420=>{if(_0x41e420['fr']['childNodes']['length'])_0x41e420['slot']['parentNode']['replaceChild'](_0x41e420['fr'],_0x41e420['slot']);else{if(_0x41e420['slot']['childNodes']['length']){let _0x5189d8=document['createDocumentFragment']();_0x5189d8['append'](..._0x41e420['slot']['childNodes']),_0x41e420['slot']['parentNode']['replaceChild'](_0x5189d8,_0x41e420['slot']);}else _0x41e420['slot']['remove']();}});}function refProcessor(_0x56c47a,_0x12b3b1){[..._0x56c47a['querySelectorAll']('['+DICT['EL_REF_ATTR']+']')]['forEach'](_0x48e436=>{let _0x3262ce=_0x48e436['getAttribute'](DICT['EL_REF_ATTR']);_0x12b3b1['ref'][_0x3262ce]=_0x48e436,_0x48e436['removeAttribute'](DICT['EL_REF_ATTR']);});}function domSetProcessor(_0x229b21,_0x2f02ae){[..._0x229b21['querySelectorAll']('['+DICT['BIND_ATTR']+']')]['forEach'](_0x240ed2=>{let _0x4f9852=_0x240ed2['getAttribute'](DICT['BIND_ATTR'])['split'](';');[..._0x240ed2['attributes']]['forEach'](_0x44dcee=>{if(_0x44dcee['name']['startsWith']('-')&&_0x44dcee['value']){let _0x1536c2=kebabToCamel(_0x44dcee['name']['replace']('-',''));_0x4f9852['push'](_0x1536c2+':'+_0x44dcee['value']),_0x240ed2['removeAttribute'](_0x44dcee['name']);}}),_0x4f9852['forEach'](_0x30581d=>{if(!_0x30581d)return;let _0x9377e4,_0x19f439=_0x30581d['split'](':')['map'](_0x27337f=>_0x27337f['trim']()),_0x2508bb=_0x19f439[0x0];0x0===_0x2508bb['indexOf'](DICT['ATTR_BIND_PRFX'])&&(_0x9377e4=!0x0,_0x2508bb=_0x2508bb['replace'](DICT['ATTR_BIND_PRFX'],''));let _0x383424=_0x19f439[0x1]['split'](',')['map'](_0x153944=>_0x153944['trim']());for(let _0x2e8ee3 of _0x383424){let _0x145436;_0x2e8ee3['startsWith']('!!')?(_0x145436='double',_0x2e8ee3=_0x2e8ee3['replace']('!!','')):_0x2e8ee3['startsWith']('!')&&(_0x145436='single',_0x2e8ee3=_0x2e8ee3['replace']('!','')),_0x2f02ae['sub'](_0x2e8ee3,_0x46fb45=>{'double'===_0x145436?_0x46fb45=!!_0x46fb45:'single'===_0x145436&&(_0x46fb45=!_0x46fb45),_0x9377e4?(null==_0x46fb45?void 0x0:_0x46fb45['constructor'])===Boolean?_0x46fb45?_0x240ed2['setAttribute'](_0x2508bb,''):_0x240ed2['removeAttribute'](_0x2508bb):_0x240ed2['setAttribute'](_0x2508bb,_0x46fb45):setNestedProp(_0x240ed2,_0x2508bb,_0x46fb45)||(_0x240ed2[DICT['SET_LATER_KEY']]||(_0x240ed2[DICT['SET_LATER_KEY']]=Object['create'](null)),_0x240ed2[DICT['SET_LATER_KEY']][_0x2508bb]=_0x46fb45);});}}),_0x240ed2['removeAttribute'](DICT['BIND_ATTR']);});}var OPEN_TOKEN$1='{{',CLOSE_TOKEN$1='}}',SKIP_ATTR='skip-text';function getTextNodesWithTokens(_0x51ef92){let _0x5110e3,_0x41cd2a=[],_0x1a9d11=document['createTreeWalker'](_0x51ef92,NodeFilter['SHOW_TEXT'],{'acceptNode':_0x5eac27=>{var _0x2be600;return!(null==(_0x2be600=_0x5eac27['parentElement'])?void 0x0:_0x2be600['hasAttribute'](SKIP_ATTR))&&_0x5eac27['textContent']['includes'](OPEN_TOKEN$1)&&_0x5eac27['textContent']['includes'](CLOSE_TOKEN$1)&&0x1;}});for(;_0x5110e3=_0x1a9d11['nextNode']();)_0x41cd2a['push'](_0x5110e3);return _0x41cd2a;}var txtNodesProcessor=function(_0x432f75,_0x4212c5){getTextNodesWithTokens(_0x432f75)['forEach'](_0x3159ae=>{let _0x39614a,_0xb78c2e=[];for(;_0x3159ae['textContent']['includes'](CLOSE_TOKEN$1);)_0x3159ae['textContent']['startsWith'](OPEN_TOKEN$1)?(_0x39614a=_0x3159ae['textContent']['indexOf'](CLOSE_TOKEN$1)+CLOSE_TOKEN$1['length'],_0x3159ae['splitText'](_0x39614a),_0xb78c2e['push'](_0x3159ae)):(_0x39614a=_0x3159ae['textContent']['indexOf'](OPEN_TOKEN$1),_0x3159ae['splitText'](_0x39614a)),_0x3159ae=_0x3159ae['nextSibling'];_0xb78c2e['forEach'](_0x2f0253=>{let _0x5967fe=_0x2f0253['textContent']['replace'](OPEN_TOKEN$1,'')['replace'](CLOSE_TOKEN$1,'');_0x2f0253['textContent']='',_0x4212c5['sub'](_0x5967fe,_0x2033d8=>{_0x2f0253['textContent']=_0x2033d8;});});});},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(_0x5dde09){return!(_0x5dde09[0x0]!==DOUBLE_QUOTE&&_0x5dde09[0x0]!==SINGLE_QUOTE||_0x5dde09[_0x5dde09['length']-0x1]!==DOUBLE_QUOTE&&_0x5dde09[_0x5dde09['length']-0x1]!==SINGLE_QUOTE);}function trimQuotes(_0x20dc4){return _0x20dc4[0x0]!==DOUBLE_QUOTE&&_0x20dc4[0x0]!==SINGLE_QUOTE||(_0x20dc4=_0x20dc4['slice'](0x1)),_0x20dc4[_0x20dc4['length']-0x1]!==DOUBLE_QUOTE&&_0x20dc4[_0x20dc4['length']-0x1]!==SINGLE_QUOTE||(_0x20dc4=_0x20dc4['slice'](0x0,-0x1)),_0x20dc4;}function escapeQuotes(_0x50dcb9){let _0x78dd05='',_0x56573a='';for(var _0x53294b=0x0;_0x53294b<_0x50dcb9['length'];_0x53294b++){const _0x544bd3=_0x50dcb9[_0x53294b+0x1];'\x5c'===_0x50dcb9[_0x53294b]&&'\x22'===_0x544bd3?(_0x78dd05+='\x5c\x22',_0x53294b++):'\x22'===_0x50dcb9[_0x53294b]&&'\x5c'!==_0x56573a?_0x78dd05+='\x5c\x22':_0x78dd05+=_0x50dcb9[_0x53294b],_0x56573a=_0x50dcb9[_0x53294b];}return _0x78dd05;}function parseCssPropertyValue(_0x57f33e){let _0x24f85d=_0x57f33e;hasLeadingTrailingQuotes(_0x57f33e)&&(_0x24f85d=trimQuotes(_0x24f85d),_0x24f85d=_0x24f85d['replace'](ESCAPED_PATTERN,(_0x1b14ca,_0x1e06cd)=>String['fromCodePoint'](parseInt(_0x1e06cd['trim'](),0x10))),_0x24f85d=_0x24f85d['replaceAll']('\x5c\x0a','\x5cn'),_0x24f85d=escapeQuotes(_0x24f85d),_0x24f85d=DOUBLE_QUOTE+_0x24f85d+DOUBLE_QUOTE);try{return JSON['parse'](_0x24f85d);}catch(_0x1ae9b4){throw new Error('Failed\x20to\x20parse\x20CSS\x20property\x20value:\x20'+_0x24f85d+'.\x20Original\x20input:\x20'+_0x57f33e);}}var autoTagsCount=0x0,styleMutationObserver=null,styleMutationObserverCbList=null,_BaseComponent=class extends HTMLElement{constructor(){super(),__publicField(this,'updateCssData',()=>{var _0x5f159c;this['dropCssDataCache'](),null==(_0x5f159c=this['__boundCssProps'])||_0x5f159c['forEach'](_0x2572bb=>{let _0x336b64=this['getCssData'](this['__extractCssName'](_0x2572bb),!0x0);null!==_0x336b64&&this['$'][_0x2572bb]!==_0x336b64&&(this['$'][_0x2572bb]=_0x336b64);});}),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 _0x2a69cc;this['__initialized']||(this['__initialized']=!0x0,null==(_0x2a69cc=this['initCallback'])||_0x2a69cc['call'](this));}['render'](_0x338c56,_0x59c9d9=this['renderShadow']){let _0x3400d2;if(!_0x59c9d9&&!this['constructor']['__shadowStylesUrl']||this['shadowRoot']||this['attachShadow']({'mode':'open'}),this['allowCustomTemplate']){let _0x4c05f3=this['getAttribute'](DICT['USE_TPL']);if(_0x4c05f3){let _0xf5a712=this['getRootNode'](),_0x2df8f3=(null==_0xf5a712?void 0x0:_0xf5a712['querySelector'](_0x4c05f3))||document['querySelector'](_0x4c05f3);_0x2df8f3?_0x338c56=_0x2df8f3['content']['cloneNode'](!0x0):console['warn']('Symbiote\x20template\x20\x22'+_0x4c05f3+'\x22\x20is\x20not\x20found...');}}if(this['processInnerHtml']){for(let _0x451fac of this['tplProcessors'])_0x451fac(this,this);}if(_0x338c56||this['constructor']['template']){if(this['constructor']['template']&&!this['constructor']['__tpl']&&(this['constructor']['__tpl']=document['createElement']('template'),this['constructor']['__tpl']['innerHTML']=this['constructor']['template']),(null==_0x338c56?void 0x0:_0x338c56['constructor'])===DocumentFragment)_0x3400d2=_0x338c56;else{if((null==_0x338c56?void 0x0:_0x338c56['constructor'])===String){let _0x3446a1=document['createElement']('template');_0x3446a1['innerHTML']=_0x338c56,_0x3400d2=_0x3446a1['content']['cloneNode'](!0x0);}else this['constructor']['__tpl']&&(_0x3400d2=this['constructor']['__tpl']['content']['cloneNode'](!0x0));}for(let _0x2c999d of this['tplProcessors'])_0x2c999d(_0x3400d2,this);}let _0x1ba4c7=()=>{_0x3400d2&&(_0x59c9d9&&this['shadowRoot']['appendChild'](_0x3400d2)||this['appendChild'](_0x3400d2)),this['__initCallback']();};if(this['constructor']['__shadowStylesUrl']){_0x59c9d9=!0x0;let _0x307df9=document['createElement']('link');_0x307df9['rel']='stylesheet',_0x307df9['href']=this['constructor']['__shadowStylesUrl'],_0x307df9['onload']=_0x1ba4c7,this['shadowRoot']['prepend'](_0x307df9);}else _0x1ba4c7();}['addTemplateProcessor'](_0x25a0fa){this['tplProcessors']['add'](_0x25a0fa);}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 _0x4fcf83;let _0x3d5064=(null==(_0x4fcf83=this['getAttribute'](DICT['CTX_NAME_ATTR']))?void 0x0:_0x4fcf83['trim']())||this['cssCtxName']||this['__cachedCtxName']||this['autoCtxName'];return this['__cachedCtxName']=_0x3d5064,_0x3d5064;}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'](_0x3ee8d8,_0x467e96){let _0x5b185e,_0x5ae9e4;if(_0x3ee8d8['startsWith'](DICT['EXT_DATA_CTX_PRFX']))_0x5b185e=_0x467e96['nodeCtx'],_0x5ae9e4=_0x3ee8d8['replace'](DICT['EXT_DATA_CTX_PRFX'],'');else{if(_0x3ee8d8['includes'](DICT['NAMED_DATA_CTX_SPLTR'])){let _0x37f0c2=_0x3ee8d8['split'](DICT['NAMED_DATA_CTX_SPLTR']);_0x5b185e=Data['getCtx'](_0x37f0c2[0x0]),_0x5ae9e4=_0x37f0c2[0x1];}else _0x5b185e=_0x467e96['localCtx'],_0x5ae9e4=_0x3ee8d8;}return{'ctx':_0x5b185e,'name':_0x5ae9e4};}['sub'](_0x89504e,_0x44d4d3,_0x51df50=!0x0){let _0x23dcb5=_0x8100e9=>{this['isConnected']&&_0x44d4d3(_0x8100e9);},_0x4be757=_BaseComponent['__parseProp'](_0x89504e,this);_0x4be757['ctx']['has'](_0x4be757['name'])?this['allSubs']['add'](_0x4be757['ctx']['sub'](_0x4be757['name'],_0x23dcb5,_0x51df50)):window['setTimeout'](()=>{this['allSubs']['add'](_0x4be757['ctx']['sub'](_0x4be757['name'],_0x23dcb5,_0x51df50));});}['notify'](_0x46512f){let _0x42e309=_BaseComponent['__parseProp'](_0x46512f,this);_0x42e309['ctx']['notify'](_0x42e309['name']);}['has'](_0x1ddb60){let _0x5134d1=_BaseComponent['__parseProp'](_0x1ddb60,this);return _0x5134d1['ctx']['has'](_0x5134d1['name']);}['add'](_0x416f79,_0x5f2f0b,_0x15a0cb=!0x1){let _0x572fa3=_BaseComponent['__parseProp'](_0x416f79,this);_0x572fa3['ctx']['add'](_0x572fa3['name'],_0x5f2f0b,_0x15a0cb);}['add$'](_0x50310b,_0x4c2c48=!0x1){for(let _0x4b282e in _0x50310b)this['add'](_0x4b282e,_0x50310b[_0x4b282e],_0x4c2c48);}get['$'](){if(!this['__stateProxy']){let _0x19da1f=Object['create'](null);this['__stateProxy']=new Proxy(_0x19da1f,{'set':(_0x1c4529,_0x10ba9a,_0x1f3eb2)=>{let _0x98d60e=_BaseComponent['__parseProp'](_0x10ba9a,this);return _0x98d60e['ctx']['pub'](_0x98d60e['name'],_0x1f3eb2),!0x0;},'get':(_0x52432d,_0x557c42)=>{let _0x50d27e=_BaseComponent['__parseProp'](_0x557c42,this);return _0x50d27e['ctx']['read'](_0x50d27e['name']);}});}return this['__stateProxy'];}['set$'](_0x4109f5,_0x2de1ff=!0x1){for(let _0x37fae3 in _0x4109f5){let _0x4862b4=_0x4109f5[_0x37fae3],_0x170e0b=[String,Number,Boolean];(_0x2de1ff||!_0x170e0b['includes'](null==_0x4862b4?void 0x0:_0x4862b4['constructor'])||this['$'][_0x37fae3]!==_0x4862b4)&&(this['$'][_0x37fae3]=_0x4862b4);}}get['__ctxOwner'](){return this['ctxOwner']||this['hasAttribute'](DICT['CTX_OWNER_ATTR'])&&'false'!==this['getAttribute'](DICT['CTX_OWNER_ATTR']);}['__initDataCtx'](){let _0x31b348=this['constructor']['__attrDesc'];if(_0x31b348){for(let _0x202ff7 of Object['values'](_0x31b348))Object['keys'](this['init$'])['includes'](_0x202ff7)||(this['init$'][_0x202ff7]='');}for(let _0x512aa4 in this['init$'])if(_0x512aa4['startsWith'](DICT['EXT_DATA_CTX_PRFX']))this['nodeCtx']['add'](_0x512aa4['replace'](DICT['EXT_DATA_CTX_PRFX'],''),this['init$'][_0x512aa4],this['__ctxOwner']);else{if(_0x512aa4['includes'](DICT['NAMED_DATA_CTX_SPLTR'])){let _0x4992d6=_0x512aa4['split'](DICT['NAMED_DATA_CTX_SPLTR']),_0x576dd6=_0x4992d6[0x0]['trim'](),_0x262aa8=_0x4992d6[0x1]['trim']();if(_0x576dd6&&_0x262aa8){let _0x405ca9=Data['getCtx'](_0x576dd6,!0x1);_0x405ca9||(_0x405ca9=Data['registerCtx']({},_0x576dd6)),_0x405ca9['add'](_0x262aa8,this['init$'][_0x512aa4]);}}else this['localCtx']['add'](_0x512aa4,this['init$'][_0x512aa4]);}for(let _0x1d23e8 in this['cssInit$'])this['bindCssData'](_0x1d23e8,this['cssInit$'][_0x1d23e8]);this['__dataCtxInitialized']=!0x0;}['connectedCallback'](){var _0x76b1c4;if(this['isConnected']){if(this['__disconnectTimeout']&&window['clearTimeout'](this['__disconnectTimeout']),!this['connectedOnce']){let _0xf937b=null==(_0x76b1c4=this['getAttribute'](DICT['CTX_NAME_ATTR']))?void 0x0:_0x76b1c4['trim']();if(_0xf937b&&this['style']['setProperty'](DICT['CSS_CTX_PROP'],'\x27'+_0xf937b+'\x27'),this['__initDataCtx'](),this[DICT['SET_LATER_KEY']]){for(let _0x559d1e in this[DICT['SET_LATER_KEY']])setNestedProp(this,_0x559d1e,this[DICT['SET_LATER_KEY']][_0x559d1e]);delete this[DICT['SET_LATER_KEY']];}this['initChildren']=[...this['childNodes']];for(let _0x247b24 of tpl_processors_default)this['addTemplateProcessor'](_0x247b24);if(this['pauseRender'])this['__initCallback']();else{if(this['constructor']['__rootStylesLink']){let _0x52443e=this['getRootNode']();if(!_0x52443e)return;if(null==_0x52443e?void 0x0:_0x52443e['querySelector']('link['+DICT['ROOT_STYLE_ATTR_NAME']+'=\x22'+this['constructor']['is']+'\x22]'))return void this['render']();let _0x4d436c=this['constructor']['__rootStylesLink']['cloneNode'](!0x0);_0x4d436c['setAttribute'](DICT['ROOT_STYLE_ATTR_NAME'],this['constructor']['is']),_0x4d436c['onload']=()=>{this['render']();},_0x52443e['nodeType']===Node['DOCUMENT_NODE']?_0x52443e['head']['appendChild'](_0x4d436c):_0x52443e['prepend'](_0x4d436c);}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 _0x595814 of this['allSubs'])_0x595814['remove'](),this['allSubs']['delete'](_0x595814);for(let _0x28715f of this['tplProcessors'])this['tplProcessors']['delete'](_0x28715f);null==styleMutationObserverCbList||styleMutationObserverCbList['delete'](this['updateCssData']),(null==styleMutationObserverCbList?void 0x0:styleMutationObserverCbList['size'])||(null==styleMutationObserver||styleMutationObserver['disconnect'](),styleMutationObserver=null,styleMutationObserverCbList=null);},0x64)));}static['reg'](_0x538165,_0xd1a4b=!0x1){_0x538165||(autoTagsCount++,_0x538165=DICT['AUTO_TAG_PRFX']+'-'+autoTagsCount),this['__tag']=_0x538165;let _0x5ca77f=window['customElements']['get'](_0x538165);_0x5ca77f?_0xd1a4b||_0x5ca77f===this||console['warn'](['Element\x20with\x20tag\x20name\x20\x22'+_0x538165+'\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'](_0x538165,_0xd1a4b?class extends this{}:this);}static get['is'](){return this['__tag']||this['reg'](),this['__tag'];}static['bindAttributes'](_0x28011f){this['observedAttributes']=Object['keys'](_0x28011f),this['__attrDesc']=_0x28011f;}['attributeChangedCallback'](_0x449de3,_0x3e204f,_0x32ac21){var _0x37895b;if(_0x3e204f===_0x32ac21)return;let _0x3e90a0=null==(_0x37895b=this['constructor']['__attrDesc'])?void 0x0:_0x37895b[_0x449de3];_0x3e90a0?this['__dataCtxInitialized']?this['$'][_0x3e90a0]=_0x32ac21:this['init$'][_0x3e90a0]=_0x32ac21:this[_0x449de3]=_0x32ac21;}['getCssData'](_0x38f56f,_0x21ee7a=!0x1){if(this['__cssDataCache']||(this['__cssDataCache']=Object['create'](null)),!Object['keys'](this['__cssDataCache'])['includes'](_0x38f56f)){this['__computedStyle']||(this['__computedStyle']=window['getComputedStyle'](this));let _0xdfd3ff=this['__computedStyle']['getPropertyValue'](_0x38f56f)['trim']();try{this['__cssDataCache'][_0x38f56f]=parseCssPropertyValue(_0xdfd3ff);}catch(_0x594d53){!_0x21ee7a&&console['warn']('CSS\x20Data\x20error:\x20'+_0x38f56f),this['__cssDataCache'][_0x38f56f]=null;}}return this['__cssDataCache'][_0x38f56f];}['__extractCssName'](_0x429cc8){return _0x429cc8['split']('--')['map']((_0x58cceb,_0x25bdca)=>0x0===_0x25bdca?'':_0x58cceb)['join']('--');}['__initStyleAttrObserver'](){styleMutationObserverCbList||(styleMutationObserverCbList=new Set()),styleMutationObserverCbList['add'](this['updateCssData']),styleMutationObserver||(styleMutationObserver=new MutationObserver(_0x4be481=>{'attributes'===_0x4be481[0x0]['type']&&styleMutationObserverCbList['forEach'](_0x3033e4=>{_0x3033e4();});}))['observe'](document,{'childList':!0x0,'subtree':!0x0,'attributes':!0x0,'attributeFilter':['style']});}['bindCssData'](_0x2edb8a,_0x26d92e=''){this['__boundCssProps']||(this['__boundCssProps']=new Set()),this['__boundCssProps']['add'](_0x2edb8a);let _0xec31e7=this['getCssData'](this['__extractCssName'](_0x2edb8a),!0x0);null===_0xec31e7&&(_0xec31e7=_0x26d92e),this['add'](_0x2edb8a,_0xec31e7),this['__initStyleAttrObserver']();}['dropCssDataCache'](){this['__cssDataCache']=null,this['__computedStyle']=null;}['defineAccessor'](_0x5626f0,_0xf4b7d2,_0x585e57){let _0x2f4794='__'+_0x5626f0;this[_0x2f4794]=this[_0x5626f0],Object['defineProperty'](this,_0x5626f0,{'set':_0x1f5d15=>{this[_0x2f4794]=_0x1f5d15,_0x585e57?window['setTimeout'](()=>{null==_0xf4b7d2||_0xf4b7d2(_0x1f5d15);}):null==_0xf4b7d2||_0xf4b7d2(_0x1f5d15);},'get':()=>this[_0x2f4794]}),this[_0x5626f0]=this[_0x2f4794];}static set['shadowStyles'](_0x214209){let _0x4a5672=new Blob([_0x214209],{'type':'text/css'});this['__shadowStylesUrl']=URL['createObjectURL'](_0x4a5672);}static set['rootStyles'](_0x173853){if(!this['__rootStylesLink']){let _0x593423=new Blob([_0x173853],{'type':'text/css'}),_0x3447e7=URL['createObjectURL'](_0x593423),_0x440d6e=document['createElement']('link');_0x440d6e['href']=_0x3447e7,_0x440d6e['rel']='stylesheet',this['__rootStylesLink']=_0x440d6e;}}},BaseComponent=_BaseComponent;function applyStyles(_0x5015c0,_0x4b364c){for(let _0xaead45 in _0x4b364c)_0xaead45['includes']('-')?_0x5015c0['style']['setProperty'](_0xaead45,_0x4b364c[_0xaead45]):_0x5015c0['style'][_0xaead45]=_0x4b364c[_0xaead45];}function applyAttributes(_0x139458,_0x30edc3){for(let _0x3c3799 in _0x30edc3)_0x30edc3[_0x3c3799]['constructor']===Boolean?_0x30edc3[_0x3c3799]?_0x139458['setAttribute'](_0x3c3799,''):_0x139458['removeAttribute'](_0x3c3799):_0x139458['setAttribute'](_0x3c3799,_0x30edc3[_0x3c3799]);}function create(_0x3faf2d={'tag':'div'}){let _0x29c2e4=document['createElement'](_0x3faf2d['tag']);if(_0x3faf2d['attributes']&&applyAttributes(_0x29c2e4,_0x3faf2d['attributes']),_0x3faf2d['styles']&&applyStyles(_0x29c2e4,_0x3faf2d['styles']),_0x3faf2d['properties']){for(let _0x542e24 in _0x3faf2d['properties'])_0x29c2e4[_0x542e24]=_0x3faf2d['properties'][_0x542e24];}return _0x3faf2d['processors']&&_0x3faf2d['processors']['forEach'](_0xcd4535=>{_0xcd4535(_0x29c2e4);}),_0x3faf2d['children']&&_0x3faf2d['children']['forEach'](_0x4a32fe=>{let _0xaf82fe=create(_0x4a32fe);_0x29c2e4['appendChild'](_0xaf82fe);}),_0x29c2e4;}__publicField(BaseComponent,'template');var READY_EVENT_NAME='idb-store-ready',DEFAULT_DB_NAME='symbiote-db',UPD_EVENT_PREFIX='symbiote-idb-update_',DbInstance=class{['_notifyWhenReady'](_0x2e271d=null){window['dispatchEvent'](new CustomEvent(READY_EVENT_NAME,{'detail':{'dbName':this['name'],'storeName':this['storeName'],'event':_0x2e271d}}));}get['_updEventName'](){return UPD_EVENT_PREFIX+this['name'];}['_getUpdateEvent'](_0x386e8d){return new CustomEvent(this['_updEventName'],{'detail':{'key':this['name'],'newValue':_0x386e8d}});}['_notifySubscribers'](_0x249190){window['localStorage']['removeItem'](this['name']),window['localStorage']['setItem'](this['name'],_0x249190),window['dispatchEvent'](this['_getUpdateEvent'](_0x249190));}constructor(_0x5d5a84,_0x2f0a1e){this['name']=_0x5d5a84,this['storeName']=_0x2f0a1e,this['version']=0x1,this['request']=window['indexedDB']['open'](this['name'],this['version']),this['request']['onupgradeneeded']=_0x34e9c8=>{this['db']=_0x34e9c8['target']['result'],this['objStore']=this['db']['createObjectStore'](_0x2f0a1e,{'keyPath':'_key'}),this['objStore']['transaction']['oncomplete']=_0x5a1c99=>{this['_notifyWhenReady'](_0x5a1c99);};},this['request']['onsuccess']=_0x5527bb=>{this['db']=_0x5527bb['target']['result'],this['_notifyWhenReady'](_0x5527bb);},this['request']['onerror']=_0x3ab41c=>{console['error'](_0x3ab41c);},this['_subscriptionsMap']={},this['_updateHandler']=_0x56ca2a=>{_0x56ca2a['key']===this['name']&&this['_subscriptionsMap'][_0x56ca2a['newValue']]&&this['_subscriptionsMap'][_0x56ca2a['newValue']]['forEach'](async _0x5d9e47=>{_0x5d9e47(await this['read'](_0x56ca2a['newValue']));});},this['_localUpdateHandler']=_0x304d00=>{this['_updateHandler'](_0x304d00['detail']);},window['addEventListener']('storage',this['_updateHandler']),window['addEventListener'](this['_updEventName'],this['_localUpdateHandler']);}['read'](_0x5137cc){let _0x3ec209=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['get'](_0x5137cc);return new Promise((_0x1f408b,_0x2a72db)=>{_0x3ec209['onsuccess']=_0x4ec9f3=>{var _0x980bd2;(null==(_0x980bd2=_0x4ec9f3['target']['result'])?void 0x0:_0x980bd2['_value'])?_0x1f408b(_0x4ec9f3['target']['result']['_value']):(_0x1f408b(null),console['warn']('IDB:\x20cannot\x20read\x20\x22'+_0x5137cc+'\x22'));},_0x3ec209['onerror']=_0x50f00d=>{_0x2a72db(_0x50f00d);};});}['write'](_0x589bbe,_0x7a6c06,_0x2e5431=!0x1){let _0x72c418={'_key':_0x589bbe,'_value':_0x7a6c06},_0x46e1f1=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['put'](_0x72c418);return new Promise((_0x9545b6,_0x18f681)=>{_0x46e1f1['onsuccess']=_0x3dd28f=>{_0x2e5431||this['_notifySubscribers'](_0x589bbe),_0x9545b6(_0x3dd28f['target']['result']);},_0x46e1f1['onerror']=_0x5b402d=>{_0x18f681(_0x5b402d);};});}['delete'](_0x2240bc,_0x3e145b=!0x1){let _0x338051=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['delete'](_0x2240bc);return new Promise((_0x2a86a7,_0x260395)=>{_0x338051['onsuccess']=_0x320410=>{_0x3e145b||this['_notifySubscribers'](_0x2240bc),_0x2a86a7(_0x320410);},_0x338051['onerror']=_0x1369d7=>{_0x260395(_0x1369d7);};});}['getAll'](){let _0x2066c1=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['getAll']();return new Promise((_0x3e9769,_0x3d2c40)=>{_0x2066c1['onsuccess']=_0x18c34f=>{let _0x2d3379=_0x18c34f['target']['result'];_0x3e9769(_0x2d3379['map'](_0x4ba33b=>_0x4ba33b['_value']));},_0x2066c1['onerror']=_0x36e635=>{_0x3d2c40(_0x36e635);};});}['subscribe'](_0x3c5ec1,_0x19b967){this['_subscriptionsMap'][_0x3c5ec1]||(this['_subscriptionsMap'][_0x3c5ec1]=new Set());let _0x8c3d27=this['_subscriptionsMap'][_0x3c5ec1];return _0x8c3d27['add'](_0x19b967),{'remove':()=>{_0x8c3d27['delete'](_0x19b967),_0x8c3d27['size']||delete this['_subscriptionsMap'][_0x3c5ec1];}};}['stop'](){window['removeEventListener']('storage',this['_updateHandler']),this['_subscriptionsMap']=null,IDB['clear'](this['name']);}},IDB=class{static get['readyEventName'](){return READY_EVENT_NAME;}static['open'](_0x1d3918=DEFAULT_DB_NAME,_0xaafb46='store'){let _0x32f72c=_0x1d3918+'/'+_0xaafb46;return this['_reg'][_0x32f72c]||(this['_reg'][_0x32f72c]=new DbInstance(_0x1d3918,_0xaafb46)),this['_reg'][_0x32f72c];}static['clear'](_0xaddfd6){window['indexedDB']['deleteDatabase'](_0xaddfd6);for(let _0x1e2761 in this['_reg'])_0x1e2761['split']('/')[0x0]===_0xaddfd6&&delete this['_reg'][_0x1e2761];}};function isObject(_0x4b0520){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x4b0520);}__publicField(IDB,'_reg',Object['create'](null));const SEPARATOR=/\W|_/g;function camelizeString(_0x446128){return _0x446128['split'](SEPARATOR)['map']((_0x5741db,_0x3a4a87)=>_0x5741db['charAt'](0x0)[_0x3a4a87>0x0?'toUpperCase':'toLowerCase']()+_0x5741db['slice'](0x1))['join']('');}function camelizeArrayItems(_0x2695f8,{ignoreKeys:_0x375dad}={'ignoreKeys':[]}){return Array['isArray'](_0x2695f8)?_0x2695f8['map'](_0x462ce3=>camelizeKeys(_0x462ce3,{'ignoreKeys':_0x375dad})):_0x2695f8;}function camelizeKeys(_0x1475ff,{ignoreKeys:_0xd0e160}={'ignoreKeys':[]}){if(Array['isArray'](_0x1475ff))return camelizeArrayItems(_0x1475ff,{'ignoreKeys':_0xd0e160});if(!isObject(_0x1475ff))return _0x1475ff;const _0x1817d7={};for(const _0x31ce2f of Object['keys'](_0x1475ff)){let _0x3f6295=_0x1475ff[_0x31ce2f];_0xd0e160['includes'](_0x31ce2f)?_0x1817d7[_0x31ce2f]=_0x3f6295:(isObject(_0x3f6295)?_0x3f6295=camelizeKeys(_0x3f6295,{'ignoreKeys':_0xd0e160}):Array['isArray'](_0x3f6295)&&(_0x3f6295=camelizeArrayItems(_0x3f6295,{'ignoreKeys':_0xd0e160})),_0x1817d7[camelizeString(_0x31ce2f)]=_0x3f6295);}return _0x1817d7;}const delay=_0x5e109c=>new Promise(_0x4e918f=>setTimeout(_0x4e918f,_0x5e109c));function getUserAgent$1({libraryName:_0x2941d4,libraryVersion:_0x13e8f3,userAgent:_0x2f8200,publicKey:_0x2ef876='',integration:_0x352e4c=''}){const _0x395647='JavaScript';if('string'==typeof _0x2f8200)return _0x2f8200;if('function'==typeof _0x2f8200)return _0x2f8200({'publicKey':_0x2ef876,'libraryName':_0x2941d4,'libraryVersion':_0x13e8f3,'languageName':_0x395647,'integration':_0x352e4c});return[_0x2941d4,_0x13e8f3,_0x2ef876]['filter'](Boolean)['join']('/')+'\x20('+[_0x395647,_0x352e4c]['filter'](Boolean)['join'](';\x20')+')';}const defaultOptions={'factor':0x2,'time':0x64};function retrier(_0x16c0ec,_0xcf725=defaultOptions){let _0x47c7ea=0x0;return function _0x3399e3(_0x295a40){const _0x25c737=Math['round'](_0xcf725['time']*_0xcf725['factor']**_0x47c7ea);return _0x295a40({'attempt':_0x47c7ea,'retry':_0x565201=>delay(_0x565201??_0x25c737)['then'](()=>(_0x47c7ea+=0x1,_0x3399e3(_0x295a40)))});}(_0x16c0ec);}class UploadcareError extends Error{}class NetworkError extends UploadcareError{['originalProgressEvent'];constructor(_0x423aa5){super(),this['name']='NetworkError',this['message']='Network\x20error',Object['setPrototypeOf'](this,NetworkError['prototype']),this['originalProgressEvent']=_0x423aa5;}}const onCancel=(_0x5a3f73,_0x138a20)=>{_0x5a3f73&&(_0x5a3f73['aborted']?Promise['resolve']()['then'](_0x138a20):_0x5a3f73['addEventListener']('abort',()=>_0x138a20(),{'once':!0x0}));};class CancelError extends UploadcareError{['isCancel']=!0x0;constructor(_0x234cd8='Request\x20canceled'){super(_0x234cd8),this['name']='CancelError',Object['setPrototypeOf'](this,CancelError['prototype']);}}const DEFAULT_INTERVAL=0x1f4,poll=({check:_0x2ee0fe,interval:_0xba4d8b=DEFAULT_INTERVAL,timeout:_0x2bc98e,signal:_0x42050a})=>new Promise((_0x424acd,_0x148229)=>{let _0xfd5e6d,_0x1d46ee;onCancel(_0x42050a,()=>{_0xfd5e6d&&clearTimeout(_0xfd5e6d),_0x148229(new CancelError('Poll\x20cancelled'));}),_0x2bc98e&&(_0x1d46ee=setTimeout(()=>{_0xfd5e6d&&clearTimeout(_0xfd5e6d),_0x148229(new CancelError('Timed\x20out'));},_0x2bc98e));const _0x56f6fc=()=>{try{Promise['resolve'](_0x2ee0fe(_0x42050a))['then'](_0x39f7a3=>{_0x39f7a3?(_0x1d46ee&&clearTimeout(_0x1d46ee),_0x424acd(_0x39f7a3)):_0xfd5e6d=setTimeout(_0x56f6fc,_0xba4d8b);})['catch'](_0x8c72b4=>{_0x1d46ee&&clearTimeout(_0x1d46ee),_0x148229(_0x8c72b4);});}catch(_0x2656a5){_0x1d46ee&&clearTimeout(_0x1d46ee),_0x148229(_0x2656a5);}};_0xfd5e6d=setTimeout(_0x56f6fc,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:_0x1f93ad,url:_0x5649b6,data:_0x37ab44,headers:_0x16895f={},signal:_0x14be83,onProgress:_0x3c9b2d})=>new Promise((_0x116524,_0x1c7ddf)=>{const _0x31fbb1=new XMLHttpRequest(),_0x21164c=_0x1f93ad?.['toUpperCase']()||'GET';let _0x5f803b=!0x1;_0x31fbb1['open'](_0x21164c,_0x5649b6,!0x0),_0x16895f&&Object['entries'](_0x16895f)['forEach'](_0x447f59=>{const [_0x38ba71,_0x541fa0]=_0x447f59;void 0x0!==_0x541fa0&&!Array['isArray'](_0x541fa0)&&_0x31fbb1['setRequestHeader'](_0x38ba71,_0x541fa0);}),_0x31fbb1['responseType']='text',onCancel(_0x14be83,()=>{_0x5f803b=!0x0,_0x31fbb1['abort'](),_0x1c7ddf(new CancelError());}),_0x31fbb1['onload']=()=>{if(0xc8!=_0x31fbb1['status'])_0x1c7ddf(new Error('Error\x20'+_0x31fbb1['status']+':\x20'+_0x31fbb1['statusText']));else{const _0x4059ba={'method':_0x21164c,'url':_0x5649b6,'data':_0x37ab44,'headers':_0x16895f||void 0x0,'signal':_0x14be83,'onProgress':_0x3c9b2d},_0x4a48d6=_0x31fbb1['getAllResponseHeaders']()['trim']()['split'](/[\r\n]+/),_0x56c68d={};_0x4a48d6['forEach'](function(_0x1f1ba4){const _0x439102=_0x1f1ba4['split'](':\x20'),_0x1e2505=_0x439102['shift'](),_0x2c7aa=_0x439102['join'](':\x20');_0x1e2505&&void 0x0!==_0x1e2505&&(_0x56c68d[_0x1e2505]=_0x2c7aa);});const _0x536b8f=_0x31fbb1['response'],_0xecd2d1=_0x31fbb1['status'];_0x116524({'request':_0x4059ba,'data':_0x536b8f,'headers':_0x56c68d,'status':_0xecd2d1});}},_0x31fbb1['onerror']=_0x35abf3=>{_0x5f803b||_0x1c7ddf(new NetworkError(_0x35abf3));},_0x3c9b2d&&'function'==typeof _0x3c9b2d&&(_0x31fbb1['upload']['onprogress']=_0x3eb37=>{_0x3eb37['lengthComputable']?_0x3c9b2d({'isComputable':!0x0,'value':_0x3eb37['loaded']/_0x3eb37['total']}):_0x3c9b2d({'isComputable':!0x1});}),_0x37ab44?_0x31fbb1['send'](_0x37ab44):_0x31fbb1['send']();});function identity(_0x260823,..._0x1fdfb0){return _0x260823;}const getFileOptions=({name:_0x565a45})=>_0x565a45?[_0x565a45]:[],transformFile=identity;var getFormData=()=>new FormData();const isBuffer=_0x3e21b2=>!0x1,isBlob=_0x4031f3=>'undefined'!=typeof Blob&&_0x4031f3 instanceof Blob,isFile=_0x2dded6=>'undefined'!=typeof File&&_0x2dded6 instanceof File,isReactNativeAsset=_0xc66b92=>!!_0xc66b92&&'object'==typeof _0xc66b92&&!Array['isArray'](_0xc66b92)&&'uri'in _0xc66b92&&'string'==typeof _0xc66b92['uri'],isFileData=_0x4fc06c=>isBlob(_0x4fc06c)||isFile(_0x4fc06c)||isBuffer()||isReactNativeAsset(_0x4fc06c),isSimpleValue=_0x5bbcfd=>'string'==typeof _0x5bbcfd||'number'==typeof _0x5bbcfd||void 0x0===_0x5bbcfd,isObjectValue=_0x26b82f=>!!_0x26b82f&&'object'==typeof _0x26b82f&&!Array['isArray'](_0x26b82f),isFileValue=_0x37ca14=>!!_0x37ca14&&'object'==typeof _0x37ca14&&'data'in _0x37ca14&&isFileData(_0x37ca14['data']);function collectParams(_0x30f3fc,_0x797e26,_0x45d308){if(Array['isArray'](_0x45d308)){for(const _0x4a27e7 of _0x45d308)collectParams(_0x30f3fc,_0x797e26+'[]',_0x4a27e7);}else{if(isFileValue(_0x45d308)){const {name:_0x9f20db,contentType:_0x2e54d2}=_0x45d308,_0x5cb257=transformFile(_0x45d308['data'],_0x9f20db,_0x2e54d2??defaultContentType),_0x19d4ac=getFileOptions({'name':_0x9f20db});_0x30f3fc['push']([_0x797e26,_0x5cb257,..._0x19d4ac]);}else{if(isObjectValue(_0x45d308)){for(const [_0x311037,_0x5b325a]of Object['entries'](_0x45d308))void 0x0!==_0x5b325a&&_0x30f3fc['push']([_0x797e26+'['+_0x311037+']',String(_0x5b325a)]);}else isSimpleValue(_0x45d308)&&_0x45d308&&_0x30f3fc['push']([_0x797e26,_0x45d308['toString']()]);}}}function getFormDataParams(_0x26e692){const _0x5a322f=[];for(const [_0x576856,_0x356265]of Object['entries'](_0x26e692))collectParams(_0x5a322f,_0x576856,_0x356265);return _0x5a322f;}function buildFormData(_0x273fc3){const _0x11dca3=getFormData(),_0x37e7a4=getFormDataParams(_0x273fc3);for(const _0x1c09d9 of _0x37e7a4){const [_0xc38510,_0x34e605,..._0x59dc3d]=_0x1c09d9;_0x11dca3['append'](_0xc38510,_0x34e605,..._0x59dc3d);}return _0x11dca3;}class UploadError extends UploadcareError{['code'];['request'];['response'];['headers'];constructor(_0x50c742,_0x55147e,_0x5a200d,_0x5045c5,_0x374035){super(),this['name']='UploadError',this['message']=_0x50c742,this['code']=_0x55147e,this['request']=_0x5a200d,this['response']=_0x5045c5,this['headers']=_0x374035,Object['setPrototypeOf'](this,UploadError['prototype']);}}const buildSearchParams=_0x4f1082=>{const _0x8162ab=new URLSearchParams();for(const [_0x27619c,_0x1db223]of Object['entries'](_0x4f1082))_0x1db223&&'object'==typeof _0x1db223&&!Array['isArray'](_0x1db223)?Object['entries'](_0x1db223)['filter'](_0x4ce99c=>_0x4ce99c[0x1]??!0x1)['forEach'](_0x54f66c=>_0x8162ab['set'](_0x27619c+'['+_0x54f66c[0x0]+']',String(_0x54f66c[0x1]))):Array['isArray'](_0x1db223)?_0x1db223['forEach'](_0x4f2523=>{_0x8162ab['append'](_0x27619c+'[]',_0x4f2523);}):'string'==typeof _0x1db223&&_0x1db223?_0x8162ab['set'](_0x27619c,_0x1db223):'number'==typeof _0x1db223&&_0x8162ab['set'](_0x27619c,_0x1db223['toString']());return _0x8162ab['toString']();},getUrl=(_0x5cbddd,_0x181d41,_0x22f3c3)=>{const _0x5e4a04=new URL(_0x5cbddd);return _0x5e4a04['pathname']=(_0x5e4a04['pathname']+_0x181d41)['replace']('//','/'),_0x22f3c3&&(_0x5e4a04['search']=buildSearchParams(_0x22f3c3)),_0x5e4a04['toString']();};var version$1='6.18.2';const LIBRARY_NAME='UploadcareUploadClient',LIBRARY_VERSION=version$1;function getUserAgent(_0xf1be96){return getUserAgent$1({'libraryName':LIBRARY_NAME,'libraryVersion':LIBRARY_VERSION,..._0xf1be96});}const REQUEST_WAS_THROTTLED_CODE='RequestThrottledError',DEFAULT_RETRY_AFTER_TIMEOUT=0x3a98,DEFAULT_NETWORK_ERROR_TIMEOUT=0x3e8;function getTimeoutFromThrottledRequest(_0xc9bfe2){const {headers:_0x16a0fb}=_0xc9bfe2||{};if(!_0x16a0fb||'string'!=typeof _0x16a0fb['retry-after'])return DEFAULT_RETRY_AFTER_TIMEOUT;const _0x9b95f1=parseInt(_0x16a0fb['retry-after'],0xa);return Number['isFinite'](_0x9b95f1)?0x3e8*_0x9b95f1:DEFAULT_RETRY_AFTER_TIMEOUT;}function retryIfFailed(_0x3daaec,_0x43d1dd){const {retryThrottledRequestMaxTimes:_0xa386c4,retryNetworkErrorMaxTimes:_0x14f5c4}=_0x43d1dd;return retrier(({attempt:_0x5111d6,retry:_0x1000d0})=>_0x3daaec()['catch'](_0x2b503f=>{if('response'in _0x2b503f&&_0x2b503f?.['code']===REQUEST_WAS_THROTTLED_CODE&&_0x5111d6<_0xa386c4)return _0x1000d0(getTimeoutFromThrottledRequest(_0x2b503f));if(_0x2b503f instanceof NetworkError&&_0x5111d6<_0x14f5c4)return _0x1000d0((_0x5111d6+0x1)*DEFAULT_NETWORK_ERROR_TIMEOUT);throw _0x2b503f;}));}const getContentType=_0x2b959e=>{let _0x1e6070='';return(isBlob(_0x2b959e)||isFile(_0x2b959e)||isReactNativeAsset(_0x2b959e))&&(_0x1e6070=_0x2b959e['type']),_0x1e6070||defaultContentType;},getFileName=_0x4bace5=>{let _0xf77841='';return isFile(_0x4bace5)&&_0x4bace5['name']?_0xf77841=_0x4bace5['name']:isBlob(_0x4bace5)||isBuffer()?_0xf77841='':isReactNativeAsset(_0x4bace5)&&_0x4bace5['name']&&(_0xf77841=_0x4bace5['name']),_0xf77841||defaultFilename;};function getStoreValue(_0x38843e){return void 0x0===_0x38843e||'auto'===_0x38843e?'auto':_0x38843e?'1':'0';}function base(_0x501b09,{publicKey:_0xb77923,fileName:_0x4171a2,contentType:_0x52d977,baseURL:_0x1a2f33=defaultSettings['baseURL'],secureSignature:_0x5497a6,secureExpire:_0x30b51c,store:_0x17eb0e,signal:_0x721beb,onProgress:_0x24413e,source:_0x1c097f='local',integration:_0x2c3065,userAgent:_0x4291c3,retryThrottledRequestMaxTimes:_0x8a6b46=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x4655ac=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0x4a4d3a}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0x1a2f33,'/base/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0xb77923,'integration':_0x2c3065,'userAgent':_0x4291c3})},'data':buildFormData({'file':{'data':_0x501b09,'name':_0x4171a2||getFileName(_0x501b09),'contentType':_0x52d977||getContentType(_0x501b09)},'UPLOADCARE_PUB_KEY':_0xb77923,'UPLOADCARE_STORE':getStoreValue(_0x17eb0e),'signature':_0x5497a6,'expire':_0x30b51c,'source':_0x1c097f,'metadata':_0x4a4d3a}),'signal':_0x721beb,'onProgress':_0x24413e})['then'](({data:_0x4fee6a,headers:_0x4744b0,request:_0x10b595})=>{const _0x370c22=camelizeKeys(JSON['parse'](_0x4fee6a));if('error'in _0x370c22)throw new UploadError(_0x370c22['error']['content'],_0x370c22['error']['errorCode'],_0x10b595,_0x370c22,_0x4744b0);return _0x370c22;}),{'retryNetworkErrorMaxTimes':_0x4655ac,'retryThrottledRequestMaxTimes':_0x8a6b46});}var TypeEnum,Status;function fromUrl(_0x13b1bf,{publicKey:_0x58d849,baseURL:_0x5be2a4=defaultSettings['baseURL'],store:_0x30d25c,fileName:_0x6abf7d,checkForUrlDuplicates:_0x5ecc20,saveUrlForRecurrentUploads:_0x2050ec,secureSignature:_0x4b7890,secureExpire:_0xe402e,source:_0x395430='url',signal:_0x372b99,integration:_0x4f2652,userAgent:_0x26f8b9,retryThrottledRequestMaxTimes:_0x15b677=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x1da0db=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0xc0b3e}){return retryIfFailed(()=>request({'method':'POST','headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x58d849,'integration':_0x4f2652,'userAgent':_0x26f8b9})},'url':getUrl(_0x5be2a4,'/from_url/',{'jsonerrors':0x1,'pub_key':_0x58d849,'source_url':_0x13b1bf,'store':getStoreValue(_0x30d25c),'filename':_0x6abf7d,'check_URL_duplicates':_0x5ecc20?0x1:void 0x0,'save_URL_duplicates':_0x2050ec?0x1:void 0x0,'signature':_0x4b7890,'expire':_0xe402e,'source':_0x395430,'metadata':_0xc0b3e}),'signal':_0x372b99})['then'](({data:_0x58db95,headers:_0x34c6ef,request:_0x3f56fe})=>{const _0x5a259a=camelizeKeys(JSON['parse'](_0x58db95));if('error'in _0x5a259a)throw new UploadError(_0x5a259a['error']['content'],_0x5a259a['error']['errorCode'],_0x3f56fe,_0x5a259a,_0x34c6ef);return _0x5a259a;}),{'retryNetworkErrorMaxTimes':_0x1da0db,'retryThrottledRequestMaxTimes':_0x15b677});}!function(_0x444c0f){_0x444c0f['Token']='token',_0x444c0f['FileInfo']='file_info';}(TypeEnum||(TypeEnum={})),function(_0x494701){_0x494701['Unknown']='unknown',_0x494701['Waiting']='waiting',_0x494701['Progress']='progress',_0x494701['Error']='error',_0x494701['Success']='success';}(Status||(Status={}));const isErrorResponse=_0x24d369=>'status'in _0x24d369&&_0x24d369['status']===Status['Error'];function fromUrlStatus(_0x49df99,{publicKey:_0x10618a,baseURL:_0x1c8a46=defaultSettings['baseURL'],signal:_0x4584a2,integration:_0x3d8bcc,userAgent:_0x33d3db,retryThrottledRequestMaxTimes:_0x1c2a6a=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x17eb03=defaultSettings['retryNetworkErrorMaxTimes']}={}){return retryIfFailed(()=>request({'method':'GET','headers':_0x10618a?{'X-UC-User-Agent':getUserAgent({'publicKey':_0x10618a,'integration':_0x3d8bcc,'userAgent':_0x33d3db})}:void 0x0,'url':getUrl(_0x1c8a46,'/from_url/status/',{'jsonerrors':0x1,'token':_0x49df99}),'signal':_0x4584a2})['then'](({data:_0x17d56f,headers:_0x21d1d1,request:_0x5b8c08})=>{const _0x1c50a2=camelizeKeys(JSON['parse'](_0x17d56f));if('error'in _0x1c50a2&&!isErrorResponse(_0x1c50a2))throw new UploadError(_0x1c50a2['error']['content'],_0x1c50a2['error']['errorCode'],_0x5b8c08,_0x1c50a2,_0x21d1d1);return _0x1c50a2;}),{'retryNetworkErrorMaxTimes':_0x17eb03,'retryThrottledRequestMaxTimes':_0x1c2a6a});}function group(_0x564d1b,{publicKey:_0x21f0c5,baseURL:_0x2198e7=defaultSettings['baseURL'],jsonpCallback:_0x1dc673,secureSignature:_0x52a7b7,secureExpire:_0x160336,signal:_0x26ec90,source:_0x2f4f4b,integration:_0x333f52,userAgent:_0x5e09c6,retryThrottledRequestMaxTimes:_0x17d19f=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x9e2bd0=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'POST','headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x21f0c5,'integration':_0x333f52,'userAgent':_0x5e09c6})},'url':getUrl(_0x2198e7,'/group/',{'jsonerrors':0x1}),'data':buildFormData({'files':_0x564d1b,'callback':_0x1dc673,'pub_key':_0x21f0c5,'signature':_0x52a7b7,'expire':_0x160336,'source':_0x2f4f4b}),'signal':_0x26ec90})['then'](({data:_0x424923,headers:_0x19e9dd,request:_0x8530d3})=>{const _0x58e789=camelizeKeys(JSON['parse'](_0x424923));if('error'in _0x58e789)throw new UploadError(_0x58e789['error']['content'],_0x58e789['error']['errorCode'],_0x8530d3,_0x58e789,_0x19e9dd);return _0x58e789;}),{'retryNetworkErrorMaxTimes':_0x9e2bd0,'retryThrottledRequestMaxTimes':_0x17d19f});}function info(_0x2a033d,{publicKey:_0x25d197,baseURL:_0xa7def0=defaultSettings['baseURL'],signal:_0x846e50,source:_0x1da275,integration:_0x2b7135,userAgent:_0x2deb19,retryThrottledRequestMaxTimes:_0x55d65e=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x5a6171=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'GET','headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x25d197,'integration':_0x2b7135,'userAgent':_0x2deb19})},'url':getUrl(_0xa7def0,'/info/',{'jsonerrors':0x1,'pub_key':_0x25d197,'file_id':_0x2a033d,'source':_0x1da275}),'signal':_0x846e50})['then'](({data:_0x381693,headers:_0x33afc0,request:_0x32991a})=>{const _0x41780d=camelizeKeys(JSON['parse'](_0x381693));if('error'in _0x41780d)throw new UploadError(_0x41780d['error']['content'],_0x41780d['error']['errorCode'],_0x32991a,_0x41780d,_0x33afc0);return _0x41780d;}),{'retryThrottledRequestMaxTimes':_0x55d65e,'retryNetworkErrorMaxTimes':_0x5a6171});}function multipartStart(_0x67c603,{publicKey:_0x29599,contentType:_0x433851,fileName:_0x35598f,multipartChunkSize:_0x3501a1=defaultSettings['multipartChunkSize'],baseURL:_0x5d0ec6='',secureSignature:_0x4f3bb3,secureExpire:_0x3c8341,store:_0x47a9a1,signal:_0x2e8495,source:_0x189361='local',integration:_0xc7e8e0,userAgent:_0x425047,retryThrottledRequestMaxTimes:_0x44ad14=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0xc71e09=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0x2496b6}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0x5d0ec6,'/multipart/start/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x29599,'integration':_0xc7e8e0,'userAgent':_0x425047})},'data':buildFormData({'filename':_0x35598f||defaultFilename,'size':_0x67c603,'content_type':_0x433851||defaultContentType,'part_size':_0x3501a1,'UPLOADCARE_STORE':getStoreValue(_0x47a9a1),'UPLOADCARE_PUB_KEY':_0x29599,'signature':_0x4f3bb3,'expire':_0x3c8341,'source':_0x189361,'metadata':_0x2496b6}),'signal':_0x2e8495})['then'](({data:_0x3095c6,headers:_0xb0174a,request:_0x4f51df})=>{const _0x1d89bd=camelizeKeys(JSON['parse'](_0x3095c6));if('error'in _0x1d89bd)throw new UploadError(_0x1d89bd['error']['content'],_0x1d89bd['error']['errorCode'],_0x4f51df,_0x1d89bd,_0xb0174a);return _0x1d89bd['parts']=Object['keys'](_0x1d89bd['parts'])['map'](_0x42bf36=>_0x1d89bd['parts'][Number(_0x42bf36)]),_0x1d89bd;}),{'retryThrottledRequestMaxTimes':_0x44ad14,'retryNetworkErrorMaxTimes':_0xc71e09});}function multipartUpload(_0x16380b,_0x18e1d3,{contentType:_0x5345df,signal:_0x19a41b,onProgress:_0x40431a,retryThrottledRequestMaxTimes:_0x4edd53=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x240655=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'PUT','url':_0x18e1d3,'data':_0x16380b,'onProgress':_0x40431a,'signal':_0x19a41b,'headers':{'Content-Type':_0x5345df||defaultContentType}})['then'](_0x2d60bf=>(_0x40431a&&_0x40431a({'isComputable':!0x0,'value':0x1}),_0x2d60bf))['then'](({status:_0x3b4859})=>({'code':_0x3b4859})),{'retryThrottledRequestMaxTimes':_0x4edd53,'retryNetworkErrorMaxTimes':_0x240655});}function multipartComplete(_0x3ae483,{publicKey:_0x4a6465,baseURL:_0x1c34af=defaultSettings['baseURL'],source:_0x4125b8='local',signal:_0x18b0de,integration:_0x8163d9,userAgent:_0x20ad0,retryThrottledRequestMaxTimes:_0x3384b3=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0xe1c680=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0x1c34af,'/multipart/complete/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x4a6465,'integration':_0x8163d9,'userAgent':_0x20ad0})},'data':buildFormData({'uuid':_0x3ae483,'UPLOADCARE_PUB_KEY':_0x4a6465,'source':_0x4125b8}),'signal':_0x18b0de})['then'](({data:_0x5a9048,headers:_0x45b706,request:_0x34e3c6})=>{const _0x4b8d7e=camelizeKeys(JSON['parse'](_0x5a9048));if('error'in _0x4b8d7e)throw new UploadError(_0x4b8d7e['error']['content'],_0x4b8d7e['error']['errorCode'],_0x34e3c6,_0x4b8d7e,_0x45b706);return _0x4b8d7e;}),{'retryThrottledRequestMaxTimes':_0x3384b3,'retryNetworkErrorMaxTimes':_0xe1c680});}function isReadyPoll(_0x15d55c,{publicKey:_0x5b4f72,baseURL:_0x32a2a8,source:_0x5ed98a,integration:_0x8fc184,userAgent:_0x142db3,retryThrottledRequestMaxTimes:_0x300441,retryNetworkErrorMaxTimes:_0x16b075,signal:_0x172bc0,onProgress:_0x355f59}){return poll({'check':_0x3c84fd=>info(_0x15d55c,{'publicKey':_0x5b4f72,'baseURL':_0x32a2a8,'signal':_0x3c84fd,'source':_0x5ed98a,'integration':_0x8fc184,'userAgent':_0x142db3,'retryThrottledRequestMaxTimes':_0x300441,'retryNetworkErrorMaxTimes':_0x16b075})['then'](_0x2fdd80=>_0x2fdd80['isReady']?_0x2fdd80:(_0x355f59&&_0x355f59({'isComputable':!0x0,'value':0x1}),!0x1)),'signal':_0x172bc0});}function isGroupFileInfo(_0x280d91){return'defaultEffects'in _0x280d91;}class UploadcareFile{['uuid'];['name'];['size'];['isStored'];['isImage'];['mimeType'];['cdnUrl'];['s3Url'];['originalFilename'];['imageInfo'];['videoInfo'];['contentInfo'];['metadata'];['s3Bucket'];['defaultEffects']=null;constructor(_0x249f92,{baseCDN:_0x3ee3c3=defaultSettings['baseCDN'],fileName:_0x4fbd85}={}){const {uuid:_0x4eb911,s3Bucket:_0x4af03a}=_0x249f92,_0x243345=getUrl(_0x3ee3c3,_0x4eb911+'/'),_0x2f968c=_0x4af03a?getUrl('https://'+_0x4af03a+'.s3.amazonaws.com/',_0x4eb911+'/'+_0x249f92['filename']):null;this['uuid']=_0x4eb911,this['name']=_0x4fbd85||_0x249f92['filename'],this['size']=_0x249f92['size'],this['isStored']=_0x249f92['isStored'],this['isImage']=_0x249f92['isImage'],this['mimeType']=_0x249f92['mimeType'],this['cdnUrl']=_0x243345,this['originalFilename']=_0x249f92['originalFilename'],this['imageInfo']=_0x249f92['imageInfo'],this['videoInfo']=_0x249f92['videoInfo'],this['contentInfo']=_0x249f92['contentInfo'],this['metadata']=_0x249f92['metadata']||null,this['s3Bucket']=_0x4af03a||null,this['s3Url']=_0x2f968c,isGroupFileInfo(_0x249f92)&&(this['defaultEffects']=_0x249f92['defaultEffects']);}}const uploadDirect=(_0x18281c,{publicKey:_0xbc1689,fileName:_0x207db7,baseURL:_0x34f1f7,secureSignature:_0x49ff82,secureExpire:_0x585ccb,store:_0x5f34b6,contentType:_0x4a502d,signal:_0x126e2c,onProgress:_0x6a8333,source:_0x277ba5,integration:_0x3ea043,userAgent:_0x287386,retryThrottledRequestMaxTimes:_0x2d9f7c,retryNetworkErrorMaxTimes:_0x2c541f,baseCDN:_0xd5262a,metadata:_0x395cf7})=>base(_0x18281c,{'publicKey':_0xbc1689,'fileName':_0x207db7,'contentType':_0x4a502d,'baseURL':_0x34f1f7,'secureSignature':_0x49ff82,'secureExpire':_0x585ccb,'store':_0x5f34b6,'signal':_0x126e2c,'onProgress':_0x6a8333,'source':_0x277ba5,'integration':_0x3ea043,'userAgent':_0x287386,'retryThrottledRequestMaxTimes':_0x2d9f7c,'retryNetworkErrorMaxTimes':_0x2c541f,'metadata':_0x395cf7})['then'](({file:_0x1fb270})=>isReadyPoll(_0x1fb270,{'publicKey':_0xbc1689,'baseURL':_0x34f1f7,'source':_0x277ba5,'integration':_0x3ea043,'userAgent':_0x287386,'retryThrottledRequestMaxTimes':_0x2d9f7c,'retryNetworkErrorMaxTimes':_0x2c541f,'onProgress':_0x6a8333,'signal':_0x126e2c}))['then'](_0x3ae611=>new UploadcareFile(_0x3ae611,{'baseCDN':_0xd5262a})),uploadFromUploaded=(_0x23f00e,{publicKey:_0x5aa70b,fileName:_0xb4f56f,baseURL:_0x5eaabb,signal:_0x4b6dbb,onProgress:_0x515ebb,source:_0x3ed239,integration:_0x3b8248,userAgent:_0x3368b0,retryThrottledRequestMaxTimes:_0x26acf4,retryNetworkErrorMaxTimes:_0x44494b,baseCDN:_0x1f2c39})=>info(_0x23f00e,{'publicKey':_0x5aa70b,'baseURL':_0x5eaabb,'signal':_0x4b6dbb,'source':_0x3ed239,'integration':_0x3b8248,'userAgent':_0x3368b0,'retryThrottledRequestMaxTimes':_0x26acf4,'retryNetworkErrorMaxTimes':_0x44494b})['then'](_0x389040=>new UploadcareFile(_0x389040,{'baseCDN':_0x1f2c39,'fileName':_0xb4f56f}))['then'](_0x5ccf5f=>(_0x515ebb&&_0x515ebb({'isComputable':!0x0,'value':0x1}),_0x5ccf5f)),race=(_0xcebc45,{signal:_0x5b241c}={})=>{let _0x402715=null,_0x3f0be3=null;const _0x528fd1=_0xcebc45['map'](()=>new AbortController());return onCancel(_0x5b241c,()=>{_0x528fd1['forEach'](_0xed2780=>_0xed2780['abort']());}),Promise['all'](_0xcebc45['map']((_0x2e6d2c,_0x3e9102)=>{const _0x53cad2=(_0x126fdf=>()=>{_0x3f0be3=_0x126fdf,_0x528fd1['forEach']((_0x406ce7,_0x2b5137)=>_0x2b5137!==_0x126fdf&&_0x406ce7['abort']());})(_0x3e9102);return Promise['resolve']()['then'](()=>_0x2e6d2c({'stopRace':_0x53cad2,'signal':_0x528fd1[_0x3e9102]['signal']}))['then'](_0x33ca26=>(_0x53cad2(),_0x33ca26))['catch'](_0x19dc97=>(_0x402715=_0x19dc97,null));}))['then'](_0x202bb8=>{if(null===_0x3f0be3)throw _0x402715;return _0x202bb8[_0x3f0be3];});};var WebSocket=window['WebSocket'];class Events{['events']=Object['create']({});['emit'](_0x8076ca,_0x46e1e8){this['events'][_0x8076ca]?.['forEach'](_0x32ebf1=>_0x32ebf1(_0x46e1e8));}['on'](_0x4037c1,_0x37c1da){this['events'][_0x4037c1]=this['events'][_0x4037c1]||[],this['events'][_0x4037c1]['push'](_0x37c1da);}['off'](_0x47cae3,_0x311eea){this['events'][_0x47cae3]=_0x311eea?this['events'][_0x47cae3]['filter'](_0x4886a2=>_0x4886a2!==_0x311eea):[];}}const response=(_0xbbf2be,_0x3a544d)=>'success'===_0xbbf2be?{'status':Status['Success'],..._0x3a544d}:'progress'===_0xbbf2be?{'status':Status['Progress'],..._0x3a544d}:{'status':Status['Error'],..._0x3a544d};class Pusher{['key'];['disconnectTime'];['ws']=void 0x0;['queue']=[];['isConnected']=!0x1;['subscribers']=0x0;['emmitter']=new Events();['disconnectTimeoutId']=null;constructor(_0x540796,_0x583dc3=0x7530){this['key']=_0x540796,this['disconnectTime']=_0x583dc3;}['connect'](){if(this['disconnectTimeoutId']&&clearTimeout(this['disconnectTimeoutId']),!this['isConnected']&&!this['ws']){const _0x320ef7='wss://ws.pusherapp.com/app/'+this['key']+'?protocol=5&client=js&version=1.12.2';this['ws']=new WebSocket(_0x320ef7),this['ws']['addEventListener']('error',_0x3655f4=>{this['emmitter']['emit']('error',new Error(_0x3655f4['message']));}),this['emmitter']['on']('connected',()=>{this['isConnected']=!0x0,this['queue']['forEach'](_0x3af658=>this['send'](_0x3af658['event'],_0x3af658['data'])),this['queue']=[];}),this['ws']['addEventListener']('message',_0x439c4a=>{const _0x387530=JSON['parse'](_0x439c4a['data']['toString']());switch(_0x387530['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'](_0x387530['channel'],response(_0x387530['event'],JSON['parse'](_0x387530['data'])));}});}}['disconnect'](){const _0x12fad3=()=>{this['ws']?.['close'](),this['ws']=void 0x0,this['isConnected']=!0x1;};this['disconnectTime']?this['disconnectTimeoutId']=setTimeout(()=>{_0x12fad3();},this['disconnectTime']):_0x12fad3();}['send'](_0x2a699d,_0x17592e){const _0x543efd=JSON['stringify']({'event':_0x2a699d,'data':_0x17592e});this['ws']?.['send'](_0x543efd);}['subscribe'](_0x2af40f,_0x33726a){this['subscribers']+=0x1,this['connect']();const _0x48dc64='task-status-'+_0x2af40f,_0x168779={'event':'pusher:subscribe','data':{'channel':_0x48dc64}};this['emmitter']['on'](_0x48dc64,_0x33726a),this['isConnected']?this['send'](_0x168779['event'],_0x168779['data']):this['queue']['push'](_0x168779);}['unsubscribe'](_0x33f210){this['subscribers']-=0x1;const _0x181ba9='task-status-'+_0x33f210,_0x16cd6b={'event':'pusher:unsubscribe','data':{'channel':_0x181ba9}};this['emmitter']['off'](_0x181ba9),this['isConnected']?this['send'](_0x16cd6b['event'],_0x16cd6b['data']):this['queue']=this['queue']['filter'](_0x1a9227=>_0x1a9227['data']['channel']!==_0x181ba9),0x0===this['subscribers']&&this['disconnect']();}['onError'](_0x33966c){return this['emmitter']['on']('error',_0x33966c),()=>this['emmitter']['off']('error',_0x33966c);}}let pusher=null;const getPusher=_0x29fb3d=>{if(!pusher){const _0x1fb6d0='undefined'==typeof window?0x0:0x7530;pusher=new Pusher(_0x29fb3d,_0x1fb6d0);}return pusher;},preconnect=_0x4e1338=>{getPusher(_0x4e1338)['connect']();};function pollStrategy({token:_0x56752b,publicKey:_0xdba34c,baseURL:_0x37a34d,integration:_0x4aa83b,userAgent:_0x2b5be4,retryThrottledRequestMaxTimes:_0x7ff777,retryNetworkErrorMaxTimes:_0x4212bf,onProgress:_0x1e9693,signal:_0x4c8ca0}){return poll({'check':_0x52f161=>fromUrlStatus(_0x56752b,{'publicKey':_0xdba34c,'baseURL':_0x37a34d,'integration':_0x4aa83b,'userAgent':_0x2b5be4,'retryThrottledRequestMaxTimes':_0x7ff777,'retryNetworkErrorMaxTimes':_0x4212bf,'signal':_0x52f161})['then'](_0x2ea619=>{switch(_0x2ea619['status']){case Status['Error']:return new UploadError(_0x2ea619['error'],_0x2ea619['errorCode']);case Status['Waiting']:return!0x1;case Status['Unknown']:return new UploadError('Token\x20\x22'+_0x56752b+'\x22\x20was\x20not\x20found.');case Status['Progress']:return _0x1e9693&&('unknown'===_0x2ea619['total']?_0x1e9693({'isComputable':!0x1}):_0x1e9693({'isComputable':!0x0,'value':_0x2ea619['done']/_0x2ea619['total']})),!0x1;case Status['Success']:return _0x1e9693&&_0x1e9693({'isComputable':!0x0,'value':_0x2ea619['done']/_0x2ea619['total']}),_0x2ea619;default:throw new Error('Unknown\x20status');}}),'signal':_0x4c8ca0});}const pushStrategy=({token:_0x1d7db1,pusherKey:_0x26cd0a,signal:_0x1d54b5,onProgress:_0x115a8d})=>new Promise((_0x2df00f,_0x4bba7f)=>{const _0x5b79ed=getPusher(_0x26cd0a),_0x48d472=_0x5b79ed['onError'](_0x4bba7f),_0x406c02=()=>{_0x48d472(),_0x5b79ed['unsubscribe'](_0x1d7db1);};onCancel(_0x1d54b5,()=>{_0x406c02(),_0x4bba7f(new CancelError('pusher\x20cancelled'));}),_0x5b79ed['subscribe'](_0x1d7db1,_0x5aa259=>{switch(_0x5aa259['status']){case Status['Progress']:_0x115a8d&&('unknown'===_0x5aa259['total']?_0x115a8d({'isComputable':!0x1}):_0x115a8d({'isComputable':!0x0,'value':_0x5aa259['done']/_0x5aa259['total']}));break;case Status['Success']:_0x406c02(),_0x115a8d&&_0x115a8d({'isComputable':!0x0,'value':_0x5aa259['done']/_0x5aa259['total']}),_0x2df00f(_0x5aa259);break;case Status['Error']:_0x406c02(),_0x4bba7f(new UploadError(_0x5aa259['msg'],_0x5aa259['error_code']));}});}),uploadFromUrl=(_0x4eb41c,{publicKey:_0x29f137,fileName:_0x240886,baseURL:_0xdbd403,baseCDN:_0x11830e,checkForUrlDuplicates:_0x4c0b3e,saveUrlForRecurrentUploads:_0x228990,secureSignature:_0x5dbcbf,secureExpire:_0x2a0c67,store:_0x13c85b,signal:_0x241510,onProgress:_0x4a06e4,source:_0x39c80b,integration:_0xf1ded9,userAgent:_0x8327ea,retryThrottledRequestMaxTimes:_0x43beed,pusherKey:_0x2beb18=defaultSettings['pusherKey'],metadata:_0x57bec1})=>Promise['resolve'](preconnect(_0x2beb18))['then'](()=>fromUrl(_0x4eb41c,{'publicKey':_0x29f137,'fileName':_0x240886,'baseURL':_0xdbd403,'checkForUrlDuplicates':_0x4c0b3e,'saveUrlForRecurrentUploads':_0x228990,'secureSignature':_0x5dbcbf,'secureExpire':_0x2a0c67,'store':_0x13c85b,'signal':_0x241510,'source':_0x39c80b,'integration':_0xf1ded9,'userAgent':_0x8327ea,'retryThrottledRequestMaxTimes':_0x43beed,'metadata':_0x57bec1}))['catch'](_0x289a46=>{const _0x5c400d=getPusher(_0x2beb18);return _0x5c400d?.['disconnect'](),Promise['reject'](_0x289a46);})['then'](_0x479b0e=>_0x479b0e['type']===TypeEnum['FileInfo']?_0x479b0e:race([({signal:_0x40fad0})=>pollStrategy({'token':_0x479b0e['token'],'publicKey':_0x29f137,'baseURL':_0xdbd403,'integration':_0xf1ded9,'userAgent':_0x8327ea,'retryThrottledRequestMaxTimes':_0x43beed,'onProgress':_0x4a06e4,'signal':_0x40fad0}),({signal:_0x60b51c})=>pushStrategy({'token':_0x479b0e['token'],'pusherKey':_0x2beb18,'signal':_0x60b51c,'onProgress':_0x4a06e4})],{'signal':_0x241510}))['then'](_0x16ada8=>{if(_0x16ada8 instanceof UploadError)throw _0x16ada8;return _0x16ada8;})['then'](_0x1545de=>isReadyPoll(_0x1545de['uuid'],{'publicKey':_0x29f137,'baseURL':_0xdbd403,'integration':_0xf1ded9,'userAgent':_0x8327ea,'retryThrottledRequestMaxTimes':_0x43beed,'onProgress':_0x4a06e4,'signal':_0x241510}))['then'](_0x183476=>new UploadcareFile(_0x183476,{'baseCDN':_0x11830e})),memo=new WeakMap(),getBlobFromReactNativeAsset=async _0xbf1bbc=>{if(memo['has'](_0xbf1bbc))return memo['get'](_0xbf1bbc);const _0x147bd0=await fetch(_0xbf1bbc['uri'])['then'](_0x44778a=>_0x44778a['blob']());return memo['set'](_0xbf1bbc,_0x147bd0),_0x147bd0;},getFileSize=async _0xa6c1f6=>{if(isFile(_0xa6c1f6)||isBlob(_0xa6c1f6))return _0xa6c1f6['size'];if(isReactNativeAsset(_0xa6c1f6))return(await getBlobFromReactNativeAsset(_0xa6c1f6))['size'];throw new Error('Unknown\x20file\x20type.\x20Cannot\x20determine\x20file\x20size.');},isMultipart=(_0x12dbc0,_0x223b3e=defaultSettings['multipartMinFileSize'])=>_0x12dbc0>=_0x223b3e,isUuid=_0x2859eb=>{const _0x483bab=new RegExp('[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}');return!isFileData(_0x2859eb)&&_0x483bab['test'](_0x2859eb);},isUrl=_0x2324b1=>{const _0x12ed65=new RegExp('^(?:\x5cw+:)?\x5c/\x5c/([^\x5cs\x5c.]+\x5c.\x5cS{2}|localhost[\x5c:?\x5cd]*)\x5cS*$');return!isFileData(_0x2324b1)&&_0x12ed65['test'](_0x2324b1);},runWithConcurrency=(_0x355563,_0xea2f81)=>new Promise((_0x4575d7,_0xae1db3)=>{const _0x2d8902=[];let _0x5eebfd=!0x1,_0x58ac38=_0xea2f81['length'];const _0x1ceb15=[..._0xea2f81],_0x129b61=()=>{const _0x4516a6=_0xea2f81['length']-_0x1ceb15['length'],_0x317d70=_0x1ceb15['shift']();_0x317d70&&_0x317d70()['then'](_0x251aa4=>{_0x5eebfd||(_0x2d8902[_0x4516a6]=_0x251aa4,_0x58ac38-=0x1,_0x58ac38?_0x129b61():_0x4575d7(_0x2d8902));})['catch'](_0xfe429b=>{_0x5eebfd=!0x0,_0xae1db3(_0xfe429b);});};for(let _0x1359f8=0x0;_0x1359f8<_0x355563;_0x1359f8++)_0x129b61();}),sliceChunk=(_0x35d04b,_0x32365f,_0x4864e8,_0x5f1ffb)=>{const _0x2ff828=_0x5f1ffb*_0x32365f,_0x418fb3=Math['min'](_0x2ff828+_0x5f1ffb,_0x4864e8);return _0x35d04b['slice'](_0x2ff828,_0x418fb3);},prepareChunks=async(_0x2e50a0,_0xa126e9,_0x3e2af3)=>_0x607d23=>sliceChunk(_0x2e50a0,_0x607d23,_0xa126e9,_0x3e2af3),uploadPart=(_0x4999b4,_0x158aaf,{publicKey:_0x537700,contentType:_0x27ee5e,onProgress:_0x4c6c06,signal:_0x22a77e,integration:_0xd0c4cf,retryThrottledRequestMaxTimes:_0x1eb40e,retryNetworkErrorMaxTimes:_0x23f64b})=>multipartUpload(_0x4999b4,_0x158aaf,{'contentType':_0x27ee5e,'onProgress':_0x4c6c06,'signal':_0x22a77e,'retryThrottledRequestMaxTimes':_0x1eb40e,'retryNetworkErrorMaxTimes':_0x23f64b}),uploadMultipart=async(_0x345751,{publicKey:_0x450f07,fileName:_0x1a3285,fileSize:_0xb6990a,baseURL:_0x114782,secureSignature:_0x380f36,secureExpire:_0x5cbca2,store:_0x2d1de7,signal:_0x243bae,onProgress:_0x432d02,source:_0x28eb31,integration:_0x40cbb2,userAgent:_0x169ece,retryThrottledRequestMaxTimes:_0xc2342e,retryNetworkErrorMaxTimes:_0x494d48,contentType:_0x23dc76,multipartChunkSize:_0x1a9bee=defaultSettings['multipartChunkSize'],maxConcurrentRequests:_0x1bcac6=defaultSettings['maxConcurrentRequests'],baseCDN:_0x59959f,metadata:_0x2ad2fc})=>{const _0x503762=_0xb6990a??await getFileSize(_0x345751);let _0x780865;const _0x56273e=(_0x1ee4ab,_0x258bc2)=>{if(!_0x432d02)return;_0x780865||(_0x780865=Array(_0x1ee4ab)['fill'](0x0));const _0xb9a240=_0x260839=>_0x260839['reduce']((_0x18ba6,_0x104e67)=>_0x18ba6+_0x104e67,0x0);return _0x1c648f=>{_0x1c648f['isComputable']&&(_0x780865[_0x258bc2]=_0x1c648f['value'],_0x432d02({'isComputable':!0x0,'value':_0xb9a240(_0x780865)/_0x1ee4ab}));};};return _0x23dc76||=getContentType(_0x345751),multipartStart(_0x503762,{'publicKey':_0x450f07,'contentType':_0x23dc76,'fileName':_0x1a3285||getFileName(_0x345751),'baseURL':_0x114782,'secureSignature':_0x380f36,'secureExpire':_0x5cbca2,'store':_0x2d1de7,'signal':_0x243bae,'source':_0x28eb31,'integration':_0x40cbb2,'userAgent':_0x169ece,'retryThrottledRequestMaxTimes':_0xc2342e,'retryNetworkErrorMaxTimes':_0x494d48,'metadata':_0x2ad2fc,'multipartChunkSize':_0x1a9bee})['then'](async({uuid:_0x589529,parts:_0x52687f})=>{const _0x436469=await prepareChunks(_0x345751,_0x503762,_0x1a9bee);return Promise['all']([_0x589529,runWithConcurrency(_0x1bcac6,_0x52687f['map']((_0xad610,_0x2c1a53)=>()=>uploadPart(_0x436469(_0x2c1a53),_0xad610,{'publicKey':_0x450f07,'contentType':_0x23dc76,'onProgress':_0x56273e(_0x52687f['length'],_0x2c1a53),'signal':_0x243bae,'integration':_0x40cbb2,'retryThrottledRequestMaxTimes':_0xc2342e,'retryNetworkErrorMaxTimes':_0x494d48})))]);})['then'](([_0x112803])=>multipartComplete(_0x112803,{'publicKey':_0x450f07,'baseURL':_0x114782,'source':_0x28eb31,'integration':_0x40cbb2,'userAgent':_0x169ece,'retryThrottledRequestMaxTimes':_0xc2342e,'retryNetworkErrorMaxTimes':_0x494d48}))['then'](_0x186033=>_0x186033['isReady']?_0x186033:isReadyPoll(_0x186033['uuid'],{'publicKey':_0x450f07,'baseURL':_0x114782,'source':_0x28eb31,'integration':_0x40cbb2,'userAgent':_0x169ece,'retryThrottledRequestMaxTimes':_0xc2342e,'retryNetworkErrorMaxTimes':_0x494d48,'onProgress':_0x432d02,'signal':_0x243bae}))['then'](_0x56dce4=>new UploadcareFile(_0x56dce4,{'baseCDN':_0x59959f}));};async function uploadFile(_0x4a0157,{publicKey:_0x10b974,fileName:_0x5ce808,baseURL:_0x5a7483=defaultSettings['baseURL'],secureSignature:_0x5efe99,secureExpire:_0x33ef88,store:_0x1fbdc2,signal:_0x11e801,onProgress:_0x4570ba,source:_0x4be132,integration:_0x4a1793,userAgent:_0x10e09a,retryThrottledRequestMaxTimes:_0x41b563,retryNetworkErrorMaxTimes:_0x5f2a14,contentType:_0x477014,multipartMinFileSize:_0x3ec881,multipartChunkSize:_0x2bce18,maxConcurrentRequests:_0x501d03,baseCDN:_0x3d1213=defaultSettings['baseCDN'],checkForUrlDuplicates:_0xda4702,saveUrlForRecurrentUploads:_0x3a3676,pusherKey:_0x2b95bf,metadata:_0x38823e}){if(isFileData(_0x4a0157)){const _0x2143c9=await getFileSize(_0x4a0157);return isMultipart(_0x2143c9,_0x3ec881)?uploadMultipart(_0x4a0157,{'publicKey':_0x10b974,'contentType':_0x477014,'multipartChunkSize':_0x2bce18,'fileSize':_0x2143c9,'fileName':_0x5ce808,'baseURL':_0x5a7483,'secureSignature':_0x5efe99,'secureExpire':_0x33ef88,'store':_0x1fbdc2,'signal':_0x11e801,'onProgress':_0x4570ba,'source':_0x4be132,'integration':_0x4a1793,'userAgent':_0x10e09a,'maxConcurrentRequests':_0x501d03,'retryThrottledRequestMaxTimes':_0x41b563,'retryNetworkErrorMaxTimes':_0x5f2a14,'baseCDN':_0x3d1213,'metadata':_0x38823e}):uploadDirect(_0x4a0157,{'publicKey':_0x10b974,'fileName':_0x5ce808,'contentType':_0x477014,'baseURL':_0x5a7483,'secureSignature':_0x5efe99,'secureExpire':_0x33ef88,'store':_0x1fbdc2,'signal':_0x11e801,'onProgress':_0x4570ba,'source':_0x4be132,'integration':_0x4a1793,'userAgent':_0x10e09a,'retryThrottledRequestMaxTimes':_0x41b563,'retryNetworkErrorMaxTimes':_0x5f2a14,'baseCDN':_0x3d1213,'metadata':_0x38823e});}if(isUrl(_0x4a0157))return uploadFromUrl(_0x4a0157,{'publicKey':_0x10b974,'fileName':_0x5ce808,'baseURL':_0x5a7483,'baseCDN':_0x3d1213,'checkForUrlDuplicates':_0xda4702,'saveUrlForRecurrentUploads':_0x3a3676,'secureSignature':_0x5efe99,'secureExpire':_0x33ef88,'store':_0x1fbdc2,'signal':_0x11e801,'onProgress':_0x4570ba,'source':_0x4be132,'integration':_0x4a1793,'userAgent':_0x10e09a,'retryThrottledRequestMaxTimes':_0x41b563,'pusherKey':_0x2b95bf,'metadata':_0x38823e});if(isUuid(_0x4a0157))return uploadFromUploaded(_0x4a0157,{'publicKey':_0x10b974,'fileName':_0x5ce808,'baseURL':_0x5a7483,'signal':_0x11e801,'onProgress':_0x4570ba,'source':_0x4be132,'integration':_0x4a1793,'userAgent':_0x10e09a,'retryThrottledRequestMaxTimes':_0x41b563,'retryNetworkErrorMaxTimes':_0x5f2a14,'baseCDN':_0x3d1213});throw new TypeError('File\x20uploading\x20from\x20\x22'+_0x4a0157+'\x22\x20is\x20not\x20supported');}class UploadcareGroup{['uuid'];['filesCount'];['totalSize'];['isStored'];['isImage'];['cdnUrl'];['files'];['createdAt'];['storedAt']=null;constructor(_0x4bbd4e,{baseCDN:_0x2a41a9=defaultSettings['baseCDN']}={}){this['uuid']=_0x4bbd4e['id'],this['filesCount']=_0x4bbd4e['filesCount'];const _0x42691b=_0x4bbd4e['files']['filter'](Boolean);this['totalSize']=Object['values'](_0x42691b)['reduce']((_0x2e8695,_0x680bd3)=>_0x2e8695+_0x680bd3['size'],0x0),this['isStored']=!!_0x4bbd4e['datetimeStored'],this['isImage']=!!Object['values'](_0x42691b)['filter'](_0x11ee94=>_0x11ee94['isImage'])['length'],this['cdnUrl']=_0x4bbd4e['cdnUrl'],this['files']=_0x42691b['map'](_0x1fce6d=>new UploadcareFile(_0x1fce6d,{'baseCDN':_0x2a41a9})),this['createdAt']=_0x4bbd4e['datetimeCreated'],this['storedAt']=_0x4bbd4e['datetimeStored'];}}const isFileDataArray=_0x154a42=>{for(const _0x24137f of _0x154a42)if(!isFileData(_0x24137f))return!0x1;return!0x0;},isUuidArray=_0x4bac9d=>{for(const _0x53d7f9 of _0x4bac9d)if(!isUuid(_0x53d7f9))return!0x1;return!0x0;},isUrlArray=_0x5033f9=>{for(const _0x46bfcd of _0x5033f9)if(!isUrl(_0x46bfcd))return!0x1;return!0x0;};function uploadFileGroup(_0x2d8988,{publicKey:_0x765d8e,fileName:_0xb697c6,baseURL:_0x442229=defaultSettings['baseURL'],secureSignature:_0x23d14c,secureExpire:_0x4d9c65,store:_0x4a1292,signal:_0x45fba2,onProgress:_0x3dbc34,source:_0x2ffd9d,integration:_0x445e6e,userAgent:_0x580cfb,retryThrottledRequestMaxTimes:_0xc4810f,retryNetworkErrorMaxTimes:_0x159e70,contentType:_0x52ab25,multipartChunkSize:_0x2480f2=defaultSettings['multipartChunkSize'],baseCDN:_0x5b474f=defaultSettings['baseCDN'],checkForUrlDuplicates:_0x39abc8,saveUrlForRecurrentUploads:_0x426c53,jsonpCallback:_0xdf77cf}){if(!isFileDataArray(_0x2d8988)&&!isUrlArray(_0x2d8988)&&!isUuidArray(_0x2d8988))throw new TypeError('Group\x20uploading\x20from\x20\x22'+_0x2d8988+'\x22\x20is\x20not\x20supported');let _0x35c10d,_0x2d205d=!0x0;const _0x2e822e=_0x2d8988['length'],_0x54ec24=(_0x12ff03,_0x892f3f)=>{if(!_0x3dbc34)return;_0x35c10d||(_0x35c10d=Array(_0x12ff03)['fill'](0x0));const _0x1b3d01=_0x18d29b=>_0x18d29b['reduce']((_0x4307ee,_0x5e56a2)=>_0x4307ee+_0x5e56a2)/_0x12ff03;return _0x578557=>{if(!_0x578557['isComputable']||!_0x2d205d)return _0x2d205d=!0x1,void _0x3dbc34({'isComputable':!0x1});_0x35c10d[_0x892f3f]=_0x578557['value'],_0x3dbc34({'isComputable':!0x0,'value':_0x1b3d01(_0x35c10d)});};};return Promise['all'](_0x2d8988['map']((_0x29ae09,_0x5cc737)=>isFileData(_0x29ae09)||isUrl(_0x29ae09)?uploadFile(_0x29ae09,{'publicKey':_0x765d8e,'fileName':_0xb697c6,'baseURL':_0x442229,'secureSignature':_0x23d14c,'secureExpire':_0x4d9c65,'store':_0x4a1292,'signal':_0x45fba2,'onProgress':_0x54ec24(_0x2e822e,_0x5cc737),'source':_0x2ffd9d,'integration':_0x445e6e,'userAgent':_0x580cfb,'retryThrottledRequestMaxTimes':_0xc4810f,'retryNetworkErrorMaxTimes':_0x159e70,'contentType':_0x52ab25,'multipartChunkSize':_0x2480f2,'baseCDN':_0x5b474f,'checkForUrlDuplicates':_0x39abc8,'saveUrlForRecurrentUploads':_0x426c53})['then'](_0x46dde6=>_0x46dde6['uuid']):_0x29ae09))['then'](_0x4994f8=>group(_0x4994f8,{'publicKey':_0x765d8e,'baseURL':_0x442229,'jsonpCallback':_0xdf77cf,'secureSignature':_0x23d14c,'secureExpire':_0x4d9c65,'signal':_0x45fba2,'source':_0x2ffd9d,'integration':_0x445e6e,'userAgent':_0x580cfb,'retryThrottledRequestMaxTimes':_0xc4810f,'retryNetworkErrorMaxTimes':_0x159e70})['then'](_0x3af26d=>new UploadcareGroup(_0x3af26d,{'baseCDN':_0x5b474f}))['then'](_0x564f6a=>(_0x3dbc34&&_0x3dbc34({'isComputable':!0x0,'value':0x1}),_0x564f6a)));}class Queue{['_concurrency']=0x1;['_pending']=[];['_running']=0x0;['_resolvers']=new Map();['_rejectors']=new Map();constructor(_0xe5be3b){this['_concurrency']=_0xe5be3b;}['run'](){const _0x313af4=this['_concurrency']-this['_running'];for(let _0x368263=0x0;_0x368263<_0x313af4;_0x368263++){const _0xc6ca6b=this['_pending']['shift']();if(!_0xc6ca6b)return;const _0x30f841=this['_resolvers']['get'](_0xc6ca6b),_0x37eae4=this['_rejectors']['get'](_0xc6ca6b);if(!_0x30f841||!_0x37eae4)throw new Error('Unexpected\x20behavior:\x20resolver\x20or\x20rejector\x20is\x20undefined');this['_running']+=0x1,_0xc6ca6b()['finally'](()=>{this['_resolvers']['delete'](_0xc6ca6b),this['_rejectors']['delete'](_0xc6ca6b),this['_running']-=0x1,this['run']();})['then'](_0x2d26a8=>_0x30f841(_0x2d26a8))['catch'](_0x2d1b59=>_0x37eae4(_0x2d1b59));}}['add'](_0x34a40c,{autoRun:_0x3f1003}={'autoRun':!0x0}){return new Promise((_0x145ba7,_0x43635f)=>{this['_resolvers']['set'](_0x34a40c,_0x145ba7),this['_rejectors']['set'](_0x34a40c,_0x43635f),this['_pending']['push'](_0x34a40c),_0x3f1003&&this['run']();});}get['pending'](){return this['_pending']['length'];}get['running'](){return this['_running'];}set['concurrency'](_0x4b0408){this['_concurrency']=_0x4b0408,this['run']();}get['concurrency'](){return this['_concurrency'];}}const ROLES={'button':['toolbar'],'checkbox':['toolbar'],'menuitem':['menu','menubar'],'option':['listbox'],'tab':['tablist']};function focus(_0xf8fc2e,_0x354bbd){_0x354bbd['tabIndex']=0x0,_0x354bbd['focus'](),_0xf8fc2e['tabIndex']=-0x1;}function findGroupNodeByEventTarget(_0x5837c6){let _0x1dc541=_0x5837c6['role']||_0x5837c6['type']||_0x5837c6['tagName'];if(!_0x1dc541)return null;let _0x2442a3=ROLES[_0x1dc541['toLowerCase']()];if(!_0x2442a3)return null;for(let _0x377889 of _0x2442a3){let _0x3d3503=_0x5837c6['closest']('[role='+_0x377889+']');if(_0x3d3503)return _0x3d3503;}}function getItems(_0x44a701,_0x1a6c83){return'toolbar'===_0x1a6c83['role']?getToolbarItems(_0x1a6c83):_0x1a6c83['querySelectorAll']('[role='+_0x44a701['role']+']');}function getToolbarItems(_0x1d727b){return[..._0x1d727b['querySelectorAll']('*')]['filter'](_0x53cdf0=>'button'===_0x53cdf0['role']||'button'===_0x53cdf0['type']||'checkbox'===_0x53cdf0['role']||'checkbox'===_0x53cdf0['type']);}function isHorizontalOrientation(_0x3c9860){let _0x2e3bc0=_0x3c9860['getAttribute']('aria-orientation');if('vertical'===_0x2e3bc0)return!0x1;if('horizontal'===_0x2e3bc0)return!0x0;let _0x525926=_0x3c9860['role'];return'menubar'===_0x525926||'tablist'===_0x525926||'toolbar'===_0x525926;}function focusGroupKeyUX(_0x141d34){return _0x36c1cb=>{let _0x690f22=!0x1,_0x3c4e32=0x0,_0xa16902='';function _0x5bc2e3(_0x346529){let _0x949379=findGroupNodeByEventTarget(_0x346529['target']);if(!_0x949379)return void _0x20a250();let _0x5b33c1=getItems(_0x346529['target'],_0x949379),_0x4dbe90=Array['from'](_0x5b33c1)['indexOf'](_0x346529['target']),_0x4d35fa='ArrowDown',_0x14e42c='ArrowUp';if(isHorizontalOrientation(_0x949379)&&('rtl'===_0x36c1cb['document']['dir']?(_0x4d35fa='ArrowLeft',_0x14e42c='ArrowRight'):(_0x4d35fa='ArrowRight',_0x14e42c='ArrowLeft')),_0x346529['key']===_0x4d35fa)_0x346529['preventDefault'](),focus(_0x346529['target'],_0x5b33c1[_0x4dbe90+0x1]||_0x5b33c1[0x0]);else{if(_0x346529['key']===_0x14e42c)_0x346529['preventDefault'](),focus(_0x346529['target'],_0x5b33c1[_0x4dbe90-0x1]||_0x5b33c1[_0x5b33c1['length']-0x1]);else{if('Home'===_0x346529['key'])_0x346529['preventDefault'](),focus(_0x346529['target'],_0x5b33c1[0x0]);else{if('End'===_0x346529['key'])_0x346529['preventDefault'](),focus(_0x346529['target'],_0x5b33c1[_0x5b33c1['length']-0x1]);else{if(0x1===_0x346529['key']['length']&&'tablist'!==_0x949379['role']){let _0x359d64=Date['now']();_0x359d64-_0x3c4e32<=0x12c?_0xa16902+=_0x346529['key']['toLowerCase']():_0xa16902=_0x346529['key']['toLowerCase'](),_0x3c4e32=_0x359d64;let _0x6429c0=Array['from'](_0x5b33c1)['find'](_0x4fcdac=>_0x4fcdac['textContent']?.['trim']()?.['toLowerCase']()?.['startsWith'](_0xa16902));_0x6429c0&&(_0x346529['preventDefault'](),focus(_0x346529['target'],_0x6429c0));}}}}}}function _0x20a250(){_0x690f22=!0x1,_0x36c1cb['removeEventListener']('keydown',_0x5bc2e3);}function _0xaa83fe(_0x5a68aa){let _0x18f6f8=findGroupNodeByEventTarget(_0x5a68aa['target']);if(_0x18f6f8){_0x690f22||(_0x690f22=!0x0,_0x36c1cb['addEventListener']('keydown',_0x5bc2e3));let _0x1b91f6=getItems(_0x5a68aa['target'],_0x18f6f8);for(let _0x1ff79c of _0x1b91f6)_0x1ff79c!==_0x5a68aa['target']&&_0x1ff79c['setAttribute']('tabindex',-0x1);}else _0x690f22&&_0x20a250();}function _0xe779e6(_0x71906e){_0x71906e['relatedTarget']&&_0x71906e['relatedTarget']!==_0x36c1cb['document']||_0x20a250();}function _0x28623f(_0x4c59d8){let _0x23f775=findGroupNodeByEventTarget(_0x4c59d8['target']);if(_0x23f775){let _0x26d64f=getItems(_0x4c59d8['target'],_0x23f775);for(let _0x5bc98d of _0x26d64f)_0x5bc98d!==_0x4c59d8['target']&&_0x5bc98d['setAttribute']('tabindex',-0x1);_0x4c59d8['target']['setAttribute']('tabindex',0x0);}}return _0x36c1cb['addEventListener']('click',_0x28623f),_0x36c1cb['addEventListener']('focusin',_0xaa83fe),_0x36c1cb['addEventListener']('focusout',_0xe779e6),()=>{_0x20a250(),_0x36c1cb['removeEventListener']('click',_0x28623f),_0x36c1cb['removeEventListener']('focusin',_0xaa83fe),_0x36c1cb['removeEventListener']('focusout',_0xe779e6);};};}function hiddenKeyUX(){return _0x12fe56=>{let _0x2e3a9e,_0x2e1502;function _0x4ef4d7(_0x10343d){if('true'===_0x10343d['target']['getAttribute']('aria-hidden')){_0x2e3a9e=_0x10343d['target'],_0x2e3a9e['setAttribute']('aria-hidden','false'),_0x2e1502=_0x2e3a9e['hidden'],_0x2e1502&&(_0x2e3a9e['hidden']=!0x1);let _0x49dc96=_0x10343d['target']['querySelector']('a,\x20button,\x20select,\x20textarea,\x20input:not([type=radio]),\x20[type=radio]:checked,\x20[tabindex]:not([tabindex=\x22-1\x22])');_0x49dc96&&(_0x49dc96['tabIndex']=0x0);}}function _0x22ac11(_0x2019a2){!_0x2e3a9e||!_0x2e3a9e['contains'](_0x2019a2['target'])||_0x2019a2['relatedTarget']&&_0x2e3a9e['contains'](_0x2019a2['relatedTarget'])||(_0x2019a2['target']['tabIndex']=-0x1,_0x2e3a9e['setAttribute']('aria-hidden','true'),_0x2e1502&&(_0x2e3a9e['hidden']=!0x0),_0x2e3a9e=null);}return _0x12fe56['addEventListener']('keyuxJump',_0x4ef4d7),_0x12fe56['addEventListener']('focusout',_0x22ac11),()=>{_0x12fe56['removeEventListener']('keyuxJump',_0x4ef4d7),_0x12fe56['removeEventListener']('focusout',_0x22ac11);};};}function jumpKeyUX(){return _0x4b7295=>{let _0x272914=[];function _0x5cfe22(){let _0x35e19a=_0x272914['pop']();if(!_0x35e19a)return void _0x4b7295['document']['activeElement']['blur']();let _0x6440a0=_0x35e19a['deref']();_0x6440a0&&_0x6440a0['isConnected']?_0x6440a0['focus']():_0x5cfe22();}let _0x463c65,_0x56ee23=0x0;function _0x491a2f(_0x2d36ca){clearInterval(_0x463c65);let _0x4c8fd1=_0x2d36ca['getAttribute']('aria-controls');_0x463c65=setInterval(()=>{if(_0x56ee23++>0x32)return void clearInterval(_0x463c65);let _0x47633a=_0x4b7295['document']['getElementById'](_0x4c8fd1);if(_0x47633a){let _0x5d73e0=_0x47633a['querySelector']('a,\x20button,\x20select,\x20textarea,\x20input:not([type=radio]),\x20[type=radio]:checked,\x20[tabindex]:not([tabindex=\x22-1\x22])');_0x5d73e0&&(clearInterval(_0x463c65),_0x47633a['dispatchEvent'](new _0x4b7295['CustomEvent']('keyuxJump',{'bubbles':!0x0})),function(_0x332aa5){let _0x48cd47=_0x4b7295['document']['activeElement'];_0x48cd47&&_0x48cd47!==_0x4b7295['document']['body']&&_0x272914['push'](new WeakRef(_0x48cd47)),_0x332aa5['focus']({'focusVisible':!0x0});}(_0x5d73e0));}},0x32);}function _0x1db0fe(_0x4da6d1){_0x4da6d1['target']['getAttribute']('aria-controls')&&'Enter'===_0x4da6d1['key']&&_0x491a2f(_0x4da6d1['target']),'Escape'===_0x4da6d1['key']&&_0x5cfe22();}return _0x4b7295['addEventListener']('keydown',_0x1db0fe),()=>{_0x4b7295['removeEventListener']('keydown',_0x1db0fe);};};}function pressKeyUX(_0x325b64){let _0xa42c5a,_0x664bcd,_0x15c9d9=_0x325b64['split']('\x20');function _0x4eafbd(_0x4e40ad){'Enter'!==_0x4e40ad['key']||'BUTTON'!==_0x4e40ad['target']['tagName']&&'A'!==_0x4e40ad['target']['tagName']||(_0x79af17(),_0x4e40ad['target']['classList']['add'](..._0x15c9d9),_0xa42c5a=_0x4e40ad['target'],_0x664bcd=_0x4e40ad['target']);}function _0x79af17(){_0xa42c5a&&_0xa42c5a['classList']['remove'](..._0x15c9d9),_0x664bcd=null;}function _0x297e5e(_0x26b4cd){0x0===_0x26b4cd['clientX']&&0x0===_0x26b4cd['clientY']&&_0x664bcd!==_0x26b4cd['target']&&(_0x79af17(),_0x26b4cd['target']['classList']['add'](..._0x15c9d9),_0xa42c5a=_0x26b4cd['target']);}return _0x3167ed=>(_0x3167ed['addEventListener']('click',_0x297e5e),_0x3167ed['addEventListener']('keydown',_0x4eafbd),_0x3167ed['addEventListener']('keyup',_0x79af17),()=>{_0x3167ed['removeEventListener']('click',_0x297e5e),_0x3167ed['removeEventListener']('keydown',_0x4eafbd),_0x3167ed['removeEventListener']('keyup',_0x79af17);});}function startKeyUX(_0x15da8c,_0x5e9b2c){let _0x32866e=_0x5e9b2c['map'](_0x369d28=>_0x369d28(_0x15da8c));return()=>{_0x32866e['forEach'](_0x6e12da=>_0x6e12da());};}function i$1(_0x8de25){return _0x8de25['replace'](/[A-Z]/g,_0x39f63c=>'_'+_0x39f63c['toLowerCase']())['replace'](/__/g,'_');}function c$2(_0x4d07dc){return Array['isArray'](_0x4d07dc)?_0x4d07dc['map'](_0x6291=>'object'==typeof _0x6291&&null!==_0x6291?c$2(_0x6291):_0x6291):'object'!=typeof _0x4d07dc||null===_0x4d07dc?_0x4d07dc:Object['fromEntries'](Object['entries'](_0x4d07dc)['map'](([_0x2048f3,_0x322794])=>{const t=i$1(_0x2048f3);return'object'==typeof _0x322794&&null!==_0x322794?[t,c$2(_0x322794)]:[t,_0x322794];}));}function u(_0x41628d){return{'ok':!0x0,'value':_0x41628d};}function a$1(_0x188c43){return{'ok':!0x1,'error':_0x188c43};}const l='https://tlm.uploadcare.com/api/';class y{constructor(_0x4d57a2=l){this['baseUrl']=_0x4d57a2;}async['base'](_0x1a4bdb,_0x2c9cc3={}){const t=''+this['baseUrl']+_0x1a4bdb;try{const _0x27d04f=await fetch(t,_0x2c9cc3);if(!_0x27d04f['ok'])return a$1(new Error('Got\x20non-200\x20response\x20from\x20\x22'+t+'\x22.\x20Status:\x20'+_0x27d04f['status']['toString']()));try{return u(await _0x27d04f['json']());}catch(_0x5a0310){return a$1(new Error('Error\x20parsing\x20JSON\x20from\x20\x22'+t+'\x22.\x20Error:\x20'+_0x5a0310));}}catch(_0x3ea126){return a$1(new Error('Error\x20fetching\x20data\x20from\x20\x22'+t+'\x22.\x20Error:\x20'+_0x3ea126));}}async['post'](_0x2e854d,_0x57fd12,t={}){return await this['base'](_0x2e854d,{...t,'method':'POST','body':JSON['stringify'](c$2(_0x57fd12)),'headers':{'Content-Type':'application/json',...t['headers']||{}}});}async['get'](_0x645051,_0x23f294={}){return await this['base'](_0x645051,{'method':'GET',..._0x23f294});}}const f$1=async(_0x3da83f,_0x5c7baa)=>({'success':!0x0,'data':_0x5c7baa});class p extends y{constructor(){super();}async['sendEvent'](_0x1d9e2e,_0x1ec6e8){const t=await f$1(void 0x0,_0x1d9e2e);if(!t['success'])throw console['error']('TelemetryAPIService:\x20events:\x20body\x20is\x20invalid',t['error']),new Error('TelemetryAPIService:\x20events:\x20body\x20is\x20invalid');return this['post']('v1/events',_0x1d9e2e,_0x1ec6e8);}}const o=(_0x529d4b,_0x194838)=>{const _0x4e0c64=new URL(_0x194838);return _0x4e0c64['hostname']=_0x529d4b+'.'+_0x4e0c64['hostname'],_0x4e0c64['toString']()['replace'](/\/$/,'');},s='0123456789abcdefghijklmnopqrstuvwxyz',a=_0x432771=>{if(_0x432771<=0x0n)return'0';let _0x4c7878='';for(;_0x432771>0x0n;){_0x4c7878=s[Number(_0x432771%0x24n)]+_0x4c7878,_0x432771/=0x24n;}return _0x4c7878;},c$1=(_0x56ba14,_0x5f5aa5)=>{try{const _0x4aaef9=new URL(_0x56ba14),t=new URL(_0x5f5aa5);return _0x4aaef9['hostname']['endsWith'](t['hostname']);}catch{return!0x1;}},c=async _0x429313=>{const _0x24b08c=new TextEncoder()['encode'](_0x429313),t=await window['crypto']['subtle']['digest']('SHA-256',_0x24b08c),_0x4cbf0f=Array['from'](new Uint8Array(t))['map'](_0x55d0b0=>_0x55d0b0['toString'](0x10)['padStart'](0x2,'0'))['join']('');return BigInt('0x'+_0x4cbf0f);},i=0xa,d=async _0x299654=>{const _0x248faf=await c(_0x299654);return a(_0x248faf)['slice'](0x0,i);},f=async(_0x3a5ee6,_0x5005e6)=>{const t=await d(_0x3a5ee6);return o(t,_0x5005e6);},readJpegChunks=()=>{const _0x49b424=[];return{'stack':_0x49b424,'promiseReadJpegChunks':_0x13753e=>new Promise((_0x16215d,_0x5ad457)=>{let _0x36ca08=0x2;const _0x32d1b8=(_0x309d44,_0x1e2067)=>{const _0x39b83e=new FileReader();_0x39b83e['addEventListener']('load',()=>{_0x1e2067(new DataView(_0x39b83e['result']));}),_0x39b83e['addEventListener']('error',_0x53ee2e=>{_0x5ad457('Reader\x20error:\x20'+_0x53ee2e);}),_0x39b83e['readAsArrayBuffer'](_0x309d44);},_0x4ff922=()=>_0x32d1b8(_0x13753e['slice'](_0x36ca08,_0x36ca08+0x80),_0x4f2524=>{let _0x168c56,_0x4a3028,_0x4e0054;for(_0x168c56=_0x4a3028=0x0,_0x4e0054=_0x4f2524['byteLength'];_0x4e0054>=0x0?_0x4a3028<_0x4e0054:_0x4a3028>_0x4e0054;_0x168c56=_0x4e0054>=0x0?++_0x4a3028:--_0x4a3028)if(0xff===_0x4f2524['getUint8'](_0x168c56)){_0x36ca08+=_0x168c56;break;}_0x3aa04();}),_0x3aa04=()=>{const _0x404d4c=_0x36ca08;return _0x32d1b8(_0x13753e['slice'](_0x36ca08,_0x36ca08+=0x4),_0x4b23c6=>{if(0x4!==_0x4b23c6['byteLength']||0xff!==_0x4b23c6['getUint8'](0x0))return void _0x5ad457('Corrupted');const _0x280135=_0x4b23c6['getUint8'](0x1);if(0xda===_0x280135)return void _0x16215d(!0x0);const _0x3e78ca=_0x4b23c6['getUint16'](0x2)-0x2;return _0x32d1b8(_0x13753e['slice'](_0x36ca08,_0x36ca08+=_0x3e78ca),_0x1a456d=>{_0x1a456d['byteLength']===_0x3e78ca?(_0x49b424['push']({'startPos':_0x404d4c,'length':_0x3e78ca,'marker':_0x280135,'view':_0x1a456d}),_0x4ff922()):_0x5ad457('Corrupted');});});};FileReader&&DataView||_0x5ad457('Not\x20Support'),_0x32d1b8(_0x13753e['slice'](0x0,0x2),_0xc1fccd=>{0xffd8!==_0xc1fccd['getUint16'](0x0)&&_0x5ad457('Not\x20jpeg'),_0x4ff922();});})};},getIccProfile=async _0x4b757b=>{const _0x54e6f0=[],{promiseReadJpegChunks:_0x3eaebb,stack:_0x312911}=readJpegChunks();return await _0x3eaebb(_0x4b757b),_0x312911['forEach'](({marker:_0x1c0531,view:_0x54f74b})=>{0xe2===_0x1c0531&&0x4943435f===_0x54f74b['getUint32'](0x0)&&0x50524f46===_0x54f74b['getUint32'](0x4)&&0x494c4500===_0x54f74b['getUint32'](0x8)&&_0x54e6f0['push'](_0x54f74b);}),_0x54e6f0;},replaceJpegChunk=async(_0x56b414,_0x34635b,_0x2d69fd)=>{{const _0x35b94d=[],_0x578ab1=[],{promiseReadJpegChunks:_0x3ad61a,stack:_0x9ee1b7}=readJpegChunks();await _0x3ad61a(_0x56b414),_0x9ee1b7['forEach'](_0x471a79=>{if(_0x471a79['marker']===_0x34635b)return _0x35b94d['push'](_0x471a79['startPos']),_0x578ab1['push'](_0x471a79['length']);});const _0x5303b7=[_0x56b414['slice'](0x0,0x2)];for(const _0x3fa1c1 of _0x2d69fd){const _0x41ef91=new DataView(new ArrayBuffer(0x4));_0x41ef91['setUint16'](0x0,0xff00+_0x34635b),_0x41ef91['setUint16'](0x2,_0x3fa1c1['byteLength']+0x2),_0x5303b7['push'](_0x41ef91['buffer']),_0x5303b7['push'](_0x3fa1c1);}let _0x1c2590=0x2;for(let _0x18257b=0x0;_0x18257b<_0x35b94d['length'];_0x18257b++)_0x35b94d[_0x18257b]>_0x1c2590&&_0x5303b7['push'](_0x56b414['slice'](_0x1c2590,_0x35b94d[_0x18257b])),_0x1c2590=_0x35b94d[_0x18257b]+_0x578ab1[_0x18257b]+0x4;return _0x5303b7['push'](_0x56b414['slice'](_0x1c2590,_0x56b414['size'])),new Blob(_0x5303b7,{'type':_0x56b414['type']});}},MARKER=0xe2,replaceIccProfile=(_0xc29390,_0x192b56)=>replaceJpegChunk(_0xc29390,MARKER,_0x192b56['map'](_0x12647f=>_0x12647f['buffer'])),stripIccProfile=async _0x105bc6=>{try{return await replaceIccProfile(_0x105bc6,[]);}catch(_0x2bb039){throw new Error('Failed\x20to\x20strip\x20ICC\x20profile:\x20'+_0x2bb039);}},canvasToBlob=(_0x1e7ef1,_0x10cfcc,_0x1f5f79)=>new Promise((_0x55bd8d,_0x36dae3)=>{_0x1e7ef1['toBlob'](_0x5ed9b3=>{_0x5ed9b3?_0x55bd8d(_0x5ed9b3):_0x36dae3('Failed\x20to\x20convert\x20canvas\x20to\x20blob');},_0x10cfcc,_0x1f5f79),_0x1e7ef1['width']=_0x1e7ef1['height']=0x1;}),createCanvas=()=>{const _0x5ee7ab=document['createElement']('canvas'),_0x14e0e4=_0x5ee7ab['getContext']('2d');return{'canvas':_0x5ee7ab,'ctx':_0x14e0e4};},hasTransparency=_0x2f2881=>{const {ctx:_0x471c07,canvas:_0x2789ff}=createCanvas();_0x2789ff['width']=_0x2789ff['height']=0x32,_0x471c07['drawImage'](_0x2f2881,0x0,0x0,0x32,0x32);const _0x4f8b01=_0x471c07['getImageData'](0x0,0x0,0x32,0x32)['data'];_0x2789ff['width']=_0x2789ff['height']=0x1;for(let _0x44d8d3=0x3;_0x44d8d3<_0x4f8b01['length'];_0x44d8d3+=0x4)if(_0x4f8b01[_0x44d8d3]<0xfe)return!0x0;return!0x1;},getExif=async _0xa89aa9=>{let _0x217575=null;const {promiseReadJpegChunks:_0x18d2fa,stack:_0x5eddba}=readJpegChunks();return await _0x18d2fa(_0xa89aa9),_0x5eddba['forEach'](({marker:_0x58a294,view:_0x5cdea2})=>{!_0x217575&&0xe1===_0x58a294&&_0x5cdea2['byteLength']>=0xe&&0x45786966===_0x5cdea2['getUint32'](0x0)&&0x0===_0x5cdea2['getUint16'](0x4)&&(_0x217575=_0x5cdea2);}),_0x217575;},base64ImageSrc='data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k=';let isApplied;const isBrowserApplyExifOrientation=()=>new Promise(_0x71887=>{if(void 0x0!==isApplied)_0x71887(isApplied);else{const _0x488877=new Image();_0x488877['addEventListener']('load',()=>{isApplied=_0x488877['naturalWidth']<_0x488877['naturalHeight'],_0x488877['src']='//:0',_0x71887(isApplied);}),_0x488877['src']=base64ImageSrc;}}),findExifOrientation=(_0x54aaa1,_0x425738)=>{let _0xb0ce8d,_0x425744,_0x362d54,_0x230f63;if(!_0x54aaa1||_0x54aaa1['byteLength']<0xe||0x45786966!==_0x54aaa1['getUint32'](0x0)||0x0!==_0x54aaa1['getUint16'](0x4))return;if(0x4949===_0x54aaa1['getUint16'](0x6))_0x425744=!0x0;else{if(0x4d4d!==_0x54aaa1['getUint16'](0x6))return;_0x425744=!0x1;}if(0x2a!==_0x54aaa1['getUint16'](0x8,_0x425744))return;_0x362d54=0x8+_0x54aaa1['getUint32'](0xa,_0x425744);for(_0xb0ce8d=0x0,_0x230f63=_0x54aaa1['getUint16'](_0x362d54-0x2,_0x425744);_0x230f63>=0x0?_0xb0ce8d<_0x230f63:_0xb0ce8d>_0x230f63;_0x230f63>=0x0?++_0xb0ce8d:--_0xb0ce8d){if(_0x54aaa1['byteLength']<_0x362d54+0xa)return;0x112===_0x54aaa1['getUint16'](_0x362d54,_0x425744)&&_0x425738(_0x362d54+0x8,_0x425744),_0x362d54+=0xc;}},setExifOrientation=(_0x39c8b3,_0x2e9dad)=>{findExifOrientation(_0x39c8b3,(_0x57e46a,_0x1404d6)=>_0x39c8b3['setUint16'](_0x57e46a,_0x2e9dad,_0x1404d6));},replaceExif=async(_0x11571a,_0x2d4cbe,_0x202f8b)=>(_0x202f8b&&setExifOrientation(_0x2d4cbe,0x1),replaceJpegChunk(_0x11571a,0xe1,[_0x2d4cbe['buffer']])),processImage=(_0x192c5d,_0x286115)=>new Promise((_0xc9bc66,_0xa99033)=>{_0x286115&&(_0x192c5d['src']=_0x286115),_0x192c5d['complete']?_0xc9bc66(_0x192c5d):(_0x192c5d['addEventListener']('load',()=>{_0xc9bc66(_0x192c5d);}),_0x192c5d['addEventListener']('error',()=>{_0xa99033(new Error('Failed\x20to\x20load\x20image.\x20Probably\x20not\x20an\x20image.'));}));}),imageLoader=_0x126e66=>processImage(new Image(),_0x126e66),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 _0x38070d=>{let _0x592019=!0x1;const {promiseReadJpegChunks:_0x58001a,stack:_0x573cb2}=readJpegChunks();return await _0x58001a(_0x38070d)['then'](()=>(_0x573cb2['forEach'](({marker:_0x519c31,view:_0x33a64b})=>{if(!_0x592019&&markers['indexOf'](_0x519c31)>=0x0){const _0x4daefb=_0x33a64b['getUint8'](0x5);allowLayers['indexOf'](_0x4daefb)<0x0&&(_0x592019=!0x0);}}),_0x592019))['catch'](()=>_0x592019);},memoize$1=(_0x46333c,_0x5621dd)=>{const _0x101d94={};return(..._0x34eee6)=>{const _0x53913b=_0x5621dd(_0x34eee6,_0x101d94);return _0x53913b in _0x101d94?_0x101d94[_0x53913b]:_0x101d94[_0x53913b]=_0x46333c(..._0x34eee6);};},memoKeySerializer=(_0x591fb3,_0x22245a)=>{const [_0x527882]=_0x591fb3,_0x58c915=Object['keys'](_0x22245a)['map'](_0x422f1c=>parseInt(_0x422f1c,0xa))['sort']((_0x17fabf,_0xd158e7)=>_0x17fabf-_0xd158e7);for(let _0x2ab956=0x0;_0x2ab956<_0x58c915['length'];_0x2ab956++){const _0x84d5f8=_0x58c915[_0x2ab956],_0x55bd44=!!_0x22245a[_0x84d5f8];if(_0x84d5f8>_0x527882&&_0x55bd44)return _0x84d5f8;if(_0x84d5f8<_0x527882&&!_0x55bd44)return _0x84d5f8;}return _0x527882;},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=(_0x3279e1,_0x2617b7)=>{try{const _0x1ab262=[_0x3279e1-0x1,_0x2617b7-0x1,0x1,0x1],{canvas:_0x17e5cb,ctx:_0x37eebd}=createCanvas();_0x17e5cb['width']=0x1,_0x17e5cb['height']=0x1;const {canvas:_0x3a3fa7,ctx:_0x5e5884}=createCanvas();_0x3a3fa7['width']=_0x3279e1,_0x3a3fa7['height']=_0x2617b7,_0x5e5884&&(_0x5e5884['fillStyle']=FILL_STYLE,_0x5e5884['fillRect'](..._0x1ab262),_0x37eebd['drawImage'](_0x3a3fa7,_0x3279e1-0x1,_0x2617b7-0x1,0x1,0x1,0x0,0x0,0x1,0x1));const _0x5ab4a7=_0x37eebd&&_0x37eebd['getImageData'](0x0,0x0,0x1,0x1)['data'];let _0x4f011f=!0x1;return _0x5ab4a7&&(_0x4f011f=_0x5ab4a7[0x0]===TestPixel['R']&&_0x5ab4a7[0x1]===TestPixel['G']&&_0x5ab4a7[0x2]===TestPixel['B']&&_0x5ab4a7[0x3]===TestPixel['A']),_0x3a3fa7['width']=_0x3a3fa7['height']=0x1,_0x4f011f;}catch(_0x4cb1d7){return console['error']('Failed\x20to\x20test\x20for\x20max\x20canvas\x20size\x20of\x20'+_0x3279e1+'x'+_0x2617b7+'.'),!0x1;}};function wrapAsync(_0x173732){return(..._0x21c9c3)=>new Promise(_0x5926a6=>{setTimeout(()=>{const _0x3228a0=_0x173732(..._0x21c9c3);_0x5926a6(_0x3228a0);},0x0);});}const squareTest=wrapAsync(memoize$1(canvasTest,memoKeySerializer)),dimensionTest=wrapAsync(memoize$1(canvasTest,memoKeySerializer)),testCanvasSize=async(_0x2b56e1,_0x542483)=>{const _0x1aaa48=sizes['squareSide']['find'](_0x2568a2=>_0x2568a2*_0x2568a2>=_0x2b56e1*_0x542483),_0x201304=sizes['dimension']['find'](_0x4e78b6=>_0x4e78b6>=_0x2b56e1&&_0x4e78b6>=_0x542483);if(!_0x1aaa48||!_0x201304)throw new Error('Not\x20supported');const [_0x4697cc,_0x2bbe6b]=await Promise['all']([squareTest(_0x1aaa48,_0x1aaa48),dimensionTest(_0x201304,0x1)]);if(_0x4697cc&&_0x2bbe6b)return!0x0;throw new Error('Not\x20supported');},canvasResize=async(_0x49a5f3,_0x12f807,_0x2ac9e7)=>{try{const {ctx:_0x480289,canvas:_0x36db2d}=createCanvas();return _0x36db2d['width']=_0x12f807,_0x36db2d['height']=_0x2ac9e7,_0x480289['imageSmoothingQuality']='high',_0x480289['drawImage'](_0x49a5f3,0x0,0x0,_0x12f807,_0x2ac9e7),_0x49a5f3 instanceof HTMLImageElement&&(_0x49a5f3['src']='//:0'),_0x49a5f3 instanceof HTMLCanvasElement&&(_0x49a5f3['width']=_0x49a5f3['height']=0x1),_0x36db2d;}catch(_0x1e74a3){throw new Error('Canvas\x20resize\x20error',{'cause':_0x1e74a3});}},native=({img:_0x76d0d8,targetW:_0x454490,targetH:_0x1c4b20})=>canvasResize(_0x76d0d8,_0x454490,_0x1c4b20),calcShrinkSteps=function({sourceW:_0x3d022b,targetW:_0x26e41b,targetH:_0x2a3d72,step:_0x564b4e}){const _0x385916=[];let _0x38f6af=_0x26e41b,_0x32bfc7=_0x2a3d72;do{_0x385916['push']([_0x38f6af,_0x32bfc7]),_0x38f6af=Math['round'](_0x38f6af/_0x564b4e),_0x32bfc7=Math['round'](_0x32bfc7/_0x564b4e);}while(_0x38f6af<_0x3d022b*_0x564b4e);return _0x385916['reverse']();},fallback=({img:_0x3b0621,sourceW:_0x2b5697,targetW:_0x4f4c0b,targetH:_0x3a5af3,step:_0x2205d9})=>{const _0x207811=calcShrinkSteps({'sourceW':_0x2b5697,'targetW':_0x4f4c0b,'targetH':_0x3a5af3,'step':_0x2205d9});return _0x207811['reduce']((_0x1f9ccb,[_0x28c00f,_0x3fa224],_0x185fc2)=>_0x1f9ccb['then'](_0xcc7b7e=>testCanvasSize(_0x28c00f,_0x3fa224)['then'](()=>canvasResize(_0xcc7b7e,_0x28c00f,_0x3fa224))['catch'](()=>{if(_0x185fc2===_0x207811['length']-0x1)throw new Error('Not\x20supported');return _0xcc7b7e;})),Promise['resolve'](_0x3b0621));},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=(_0x19523b,_0x2fa9ca)=>{if(_0x19523b['width']*STEP*_0x19523b['height']*STEP<_0x2fa9ca['size'])throw new Error('Not\x20required');const _0x232ebf=_0x19523b['width'],_0x44af48=_0x19523b['height'],_0x36b8b1=_0x232ebf/_0x44af48,_0x1f3a09=Math['floor'](Math['sqrt'](_0x2fa9ca['size']*_0x36b8b1)),_0x560da9=Math['floor'](_0x2fa9ca['size']/Math['sqrt'](_0x2fa9ca['size']*_0x36b8b1));return testCanvasSize(_0x1f3a09,_0x560da9)['then'](()=>{const {ctx:_0x266a5e}=createCanvas();return'imageSmoothingQuality'in _0x266a5e&&!isIOS()&&!isIpadOS?native({'img':_0x19523b,'targetW':_0x1f3a09,'targetH':_0x560da9}):fallback({'img':_0x19523b,'sourceW':_0x232ebf,'targetW':_0x1f3a09,'targetH':_0x560da9,'step':STEP});})['catch'](()=>Promise['reject']('Not\x20supported'));},shrinkFile=async(_0x39d21e,_0x5e8410)=>{try{if(await shouldSkipShrink(_0x39d21e))throw new Error('Should\x20skipped');const _0x2df8a8=await Promise['allSettled']([getExif(_0x39d21e),isBrowserApplyExifOrientation(),getIccProfile(_0x39d21e)]),_0x433de5=!_0x2df8a8['some'](_0x56d2aa=>'rejected'===_0x56d2aa['status']),[_0x3db70c,_0x1f4042,_0x38ca3b]=_0x2df8a8,_0x11a94c=await stripIccProfile(_0x39d21e)['catch'](()=>_0x39d21e),_0x3b5ea3=await imageLoader(URL['createObjectURL'](_0x11a94c));URL['revokeObjectURL'](_0x3b5ea3['src']);const _0x202467=await shrinkImage(_0x3b5ea3,_0x5e8410);let _0x424f17='image/jpeg',_0x64a51c=_0x5e8410?.['quality']||0.8;!_0x433de5&&hasTransparency(_0x202467)&&(_0x424f17='image/png',_0x64a51c=void 0x0);let _0x5e4a77=await canvasToBlob(_0x202467,_0x424f17,_0x64a51c);if(_0x433de5&&'fulfilled'===_0x3db70c['status']&&_0x3db70c['value']){const _0xc0898a=_0x3db70c['value'],_0x5f439c='fulfilled'===_0x1f4042['status']&&_0x1f4042['value'];_0x5e4a77=await replaceExif(_0x5e4a77,_0xc0898a,_0x5f439c);}return _0x433de5&&'fulfilled'===_0x38ca3b['status']&&_0x38ca3b['value']['length']>0x0&&(_0x5e4a77=await replaceIccProfile(_0x5e4a77,_0x38ca3b['value'])),_0x5e4a77;}catch(_0x37faf7){let _0x6bd6c3;throw _0x37faf7 instanceof Error&&(_0x6bd6c3=_0x37faf7['message']),'string'==typeof _0x37faf7&&(_0x6bd6c3=_0x37faf7),new Error('Failed\x20to\x20shrink\x20image.\x20'+(_0x6bd6c3?'Message:\x20\x22'+_0x6bd6c3+'\x22.':''),{'cause':_0x37faf7});}};var DEFAULT_DEBOUNCE_TIMEOUT=0x14,InternalEventType=Object['freeze']({'INIT_SOLUTION':'init-solution','CHANGE_CONFIG':'change-config','ACTION_EVENT':'action-event','ERROR_EVENT':'error-event'}),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'}),EventEmitter=class{['_timeoutStore']=new Map();['_targets']=new Set();['_debugPrint']=null;constructor(_0x14caa7){this['_debugPrint']=_0x14caa7;}['bindTarget'](_0x2db325){this['_targets']['add'](_0x2db325);}['unbindTarget'](_0x18148a){this['_targets']['delete'](_0x18148a);}['_dispatch'](_0x1c6eee,_0x145949){for(const _0x5673f2 of this['_targets'])_0x5673f2['dispatchEvent'](new CustomEvent(_0x1c6eee,{'detail':_0x145949}));this['_debugPrint']?.(()=>{const _0x117014=_0x145949&&'object'==typeof _0x145949?{..._0x145949}:_0x145949;return['event\x20\x22'+_0x1c6eee+'\x22',_0x117014];});}['emit'](_0xd5e565,_0x445b6d,_0x34c1c8={}){const {debounce:_0x3bfd3d}=_0x34c1c8;if('number'!=typeof _0x3bfd3d&&!_0x3bfd3d)return void this['_dispatch'](_0xd5e565,'function'==typeof _0x445b6d?_0x445b6d():_0x445b6d);this['_timeoutStore']['has'](_0xd5e565)&&window['clearTimeout'](this['_timeoutStore']['get'](_0xd5e565));const _0x2b4899='number'==typeof _0x3bfd3d?_0x3bfd3d:DEFAULT_DEBOUNCE_TIMEOUT,_0x211f28=window['setTimeout'](()=>{this['_dispatch'](_0xd5e565,'function'==typeof _0x445b6d?_0x445b6d():_0x445b6d),this['_timeoutStore']['delete'](_0xd5e565);},_0x2b4899);this['_timeoutStore']['set'](_0xd5e565,_0x211f28);}};function debounce(_0x289b09,_0x13949a){let _0x177409;const _0x529179=(..._0x3526b6)=>{_0x177409&&clearTimeout(_0x177409),_0x177409=setTimeout(()=>_0x289b09(..._0x3526b6),_0x13949a);};return _0x529179['cancel']=()=>{_0x177409&&clearTimeout(_0x177409);},_0x529179;}var deserializeCsv=_0x372f7f=>_0x372f7f?_0x372f7f['split'](',')['map'](_0x36acc8=>_0x36acc8['trim']())['filter'](Boolean):[],serializeCsv=_0x16cf32=>_0x16cf32['join'](','),normalizeCdnOperation=_0x5b0257=>{if('string'!=typeof _0x5b0257||!_0x5b0257)return'';let _0x4ea439=_0x5b0257['trim']();return _0x4ea439['startsWith']('-/')?_0x4ea439=_0x4ea439['slice'](0x2):_0x4ea439['startsWith']('/')&&(_0x4ea439=_0x4ea439['slice'](0x1)),_0x4ea439['endsWith']('/')&&(_0x4ea439=_0x4ea439['slice'](0x0,_0x4ea439['length']-0x1)),_0x4ea439;},joinCdnOperations=(..._0x2dcd77)=>_0x2dcd77['filter'](_0x105fc5=>'string'==typeof _0x105fc5&&!!_0x105fc5)['map'](_0x2c6225=>normalizeCdnOperation(_0x2c6225))['join']('/-/'),createCdnUrlModifiers=(..._0x1a295f)=>{const _0x17a86a=joinCdnOperations(..._0x1a295f);return _0x17a86a?'-/'+_0x17a86a+'/':'';};function extractFilename(_0x30df0f){const _0x4a16cb=new URL(_0x30df0f),_0x8b8548=_0x4a16cb['pathname']+_0x4a16cb['search']+_0x4a16cb['hash'],_0x2c249a=_0x8b8548['lastIndexOf']('http'),_0x2d00a3=_0x8b8548['lastIndexOf']('/');let _0x1a02ec='';return _0x2c249a>=0x0?_0x1a02ec=_0x8b8548['slice'](_0x2c249a):_0x2d00a3>=0x0&&(_0x1a02ec=_0x8b8548['slice'](_0x2d00a3+0x1)),_0x1a02ec;}function extractUuid(_0x4a5367){const _0x24bc17=new URL(_0x4a5367),{pathname:_0x37192d}=_0x24bc17,_0x1e0bd7=_0x37192d['indexOf']('/'),_0x391c4c=_0x37192d['indexOf']('/',_0x1e0bd7+0x1);return _0x37192d['substring'](_0x1e0bd7+0x1,_0x391c4c);}function extractCdnUrlModifiers(_0x300146){const _0x3fbe35=trimFilename(_0x300146),_0x33bd37=new URL(_0x3fbe35),_0xf68360=_0x33bd37['pathname']['indexOf']('/-/');if(-0x1===_0xf68360)return'';return _0x33bd37['pathname']['substring'](_0xf68360)['slice'](0x1);}function extractOperations(_0x3fa83c){return extractCdnUrlModifiers(_0x3fa83c)['split']('/-/')['filter'](Boolean)['map'](_0x1cc1b7=>normalizeCdnOperation(_0x1cc1b7));}function trimFilename(_0x923da5){const _0x1ad9b3=new URL(_0x923da5),_0x44ddb8=extractFilename(_0x923da5),_0x422177=isFileUrl(_0x44ddb8)?splitFileUrl(_0x44ddb8)['pathname']:_0x44ddb8;return _0x1ad9b3['pathname']=_0x1ad9b3['pathname']['replace'](_0x422177,''),_0x1ad9b3['search']='',_0x1ad9b3['hash']='',_0x1ad9b3['toString']();}function isFileUrl(_0xdc16b){return _0xdc16b['startsWith']('http');}function splitFileUrl(_0x2e9777){const _0x4be7e3=new URL(_0x2e9777);return{'pathname':''+_0x4be7e3['origin']+(_0x4be7e3['pathname']??''),'search':_0x4be7e3['search']??'','hash':_0x4be7e3['hash']??''};}var createCdnUrl=(_0x110a76,_0x433328,_0x1de2a5)=>{const _0x4a05b6=new URL(trimFilename(_0x110a76)),_0x45ab2e=_0x1de2a5??extractFilename(_0x110a76),_0x17bd5a=_0x433328??'';if(_0x4a05b6['pathname']['startsWith']('//')&&(_0x4a05b6['pathname']=_0x4a05b6['pathname']['replace']('//','/')),_0x45ab2e&&isFileUrl(_0x45ab2e)){const _0x4435df=splitFileUrl(_0x45ab2e);_0x4a05b6['pathname']=''+_0x4a05b6['pathname']+_0x17bd5a+(_0x4435df['pathname']||''),_0x4a05b6['search']=_0x4435df['search'],_0x4a05b6['hash']=_0x4435df['hash'];}else _0x4a05b6['pathname']=''+_0x4a05b6['pathname']+_0x17bd5a+(_0x45ab2e||'');return _0x4a05b6['toString']();},createOriginalUrl=(_0x4e1f05,_0x5c8776)=>{const _0x39d445=new URL(_0x4e1f05);return _0x39d445['pathname']=_0x5c8776+'/',_0x39d445['toString']();},stringToArray=(_0x2998a7,_0x19b9eb=',')=>_0x2998a7['trim']()['split'](_0x19b9eb)['map'](_0x586bfb=>_0x586bfb['trim']())['filter'](_0x19f53b=>_0x19f53b['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(_0x133612,_0x1f04d5){if('number'==typeof _0x1f04d5){const _0x517ed9=_0x1f04d5;return OPERATIONS_DEFAULTS[_0x133612]!==_0x517ed9?_0x133612+'/'+_0x517ed9:'';}if('boolean'==typeof _0x1f04d5){const _0x179a5f=_0x1f04d5;return OPERATIONS_DEFAULTS[_0x133612]!==_0x179a5f?''+_0x133612:'';}if('filter'===_0x133612&&_0x1f04d5){const {name:_0x83b3ae,amount:_0x21567d}=_0x1f04d5;return OPERATIONS_DEFAULTS['filter']===_0x21567d?'':_0x133612+'/'+_0x83b3ae+'/'+_0x21567d;}if('crop'===_0x133612&&_0x1f04d5){const {dimensions:_0x168a5b,coords:_0x6f6321}=_0x1f04d5;return _0x133612+'/'+_0x168a5b['join']('x')+'/'+_0x6f6321['join'](',');}return'';}function transformationsToOperations(_0x515d27){return joinCdnOperations(...SUPPORTED_OPERATIONS_ORDERED['filter'](_0x47a9c2=>void 0x0!==_0x515d27[_0x47a9c2]&&null!==_0x515d27[_0x47a9c2])['map'](_0x181267=>transformationToStr(_0x181267,_0x515d27[_0x181267]))['filter'](_0x5ba177=>!!_0x5ba177));}var COMMON_OPERATIONS=joinCdnOperations('format/auto','progressive/yes'),asNumber=([_0x2f12ff])=>void 0x0!==_0x2f12ff?Number(_0x2f12ff):void 0x0,asBoolean=()=>!0x0,asFilter=([_0x33374c,_0x5277a8])=>({'name':_0x33374c,'amount':void 0x0!==_0x5277a8?Number(_0x5277a8):0x64}),asCrop=([_0x23cf3e,_0x4ccf62])=>{if(!/\d+x\d+/['test'](_0x23cf3e)||!/\d+,\d+/['test'](_0x4ccf62))throw new Error('Crop\x20by\x20aspect\x20ratio,\x20percentage\x20or\x20alignment\x20shortcuts\x20is\x20not\x20supported.');return{'dimensions':stringToArray(_0x23cf3e,'x')['map'](Number),'coords':stringToArray(_0x4ccf62)['map'](Number)};},OPERATION_PROCESSORS=Object['freeze']({'enhance':asNumber,'brightness':asNumber,'exposure':asNumber,'gamma':asNumber,'contrast':asNumber,'saturation':asNumber,'vibrance':asNumber,'warmth':asNumber,'filter':asFilter,'mirror':asBoolean,'flip':asBoolean,'rotate':asNumber,'crop':_0x1fc0e1=>{const [_0x5930d3,_0x4fe4e6]=_0x1fc0e1,{dimensions:_0x14792f,coords:_0x2f00e9}=asCrop([_0x5930d3,_0x4fe4e6]);return{'dimensions':_0x14792f,'coords':_0x2f00e9};}});function operationsToTransformations(_0x475e9c){const _0x41e069={};for(const _0x17268d of _0x475e9c){const [_0x5456d7,..._0x20bf3a]=_0x17268d['split']('/');if(!_0x5456d7||!SUPPORTED_OPERATIONS_ORDERED['includes'](_0x5456d7))continue;const _0x3e8e56=_0x5456d7,_0x4ad1f6=OPERATION_PROCESSORS[_0x3e8e56];try{const _0x232eb0=_0x4ad1f6(_0x20bf3a);_0x41e069[_0x3e8e56]=_0x232eb0;}catch(_0x5be42d){console['warn'](['Failed\x20to\x20parse\x20URL\x20operation\x20\x22'+_0x17268d+'\x22.\x20It\x20will\x20be\x20ignored.',_0x5be42d instanceof Error?'Error\x20message:\x20\x22'+_0x5be42d['message']+'\x22':_0x5be42d,'If\x20you\x20need\x20this\x20functionality,\x20please\x20feel\x20free\x20to\x20open\x20an\x20issue\x20at\x20https://github.com/uploadcare/blocks/issues/new']['join']('\x0a'));}}return _0x41e069;}var TabId=Object['freeze']({'CROP':'crop','TUNING':'tuning','FILTERS':'filters'}),ALL_TABS=Object['freeze']([TabId['CROP'],TabId['TUNING'],TabId['FILTERS']]),ALL_COLOR_OPERATIONS=Object['freeze'](['brightness','exposure','gamma','contrast','saturation','vibrance','warmth','enhance']),ALL_FILTERS=Object['freeze'](['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=Object['freeze'](['rotate','mirror','flip']),NUMERIC_OPERATION_DEFAULTS=OPERATIONS_DEFAULTS,COLOR_OPERATIONS_CONFIG=Object['freeze']({'brightness':{'zero':NUMERIC_OPERATION_DEFAULTS['brightness'],'range':[-0x64,0x64],'keypointsNumber':0x2},'exposure':{'zero':NUMERIC_OPERATION_DEFAULTS['exposure'],'range':[-0x1f4,0x1f4],'keypointsNumber':0x2},'gamma':{'zero':NUMERIC_OPERATION_DEFAULTS['gamma'],'range':[0x0,0x3e8],'keypointsNumber':0x2},'contrast':{'zero':NUMERIC_OPERATION_DEFAULTS['contrast'],'range':[-0x64,0x1f4],'keypointsNumber':0x2},'saturation':{'zero':NUMERIC_OPERATION_DEFAULTS['saturation'],'range':[-0x64,0x1f4],'keypointsNumber':0x1},'vibrance':{'zero':NUMERIC_OPERATION_DEFAULTS['vibrance'],'range':[-0x64,0x1f4],'keypointsNumber':0x1},'warmth':{'zero':NUMERIC_OPERATION_DEFAULTS['warmth'],'range':[-0x64,0x64],'keypointsNumber':0x1},'enhance':{'zero':NUMERIC_OPERATION_DEFAULTS['enhance'],'range':[0x0,0x64],'keypointsNumber':0x1},'filter':{'zero':NUMERIC_OPERATION_DEFAULTS['filter'],'range':[0x0,0x64],'keypointsNumber':0x1}}),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',config={'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':[],'validationTimeout':0x3a98,'validationConcurrency':0x64,'cameraModes':'photo,\x20video','defaultCameraMode':null,'enableAudioRecording':!0x0,'enableVideoRecording':null,'maxVideoRecordingDuration':null,'mediaRecorderOptions':null,'filesViewMode':'list','gridShowFileNames':!0x1,'cloudImageEditorAutoOpen':!0x1,'cloudImageEditorMaskHref':null,'testMode':!0x1,'qualityInsights':!0x0},initialConfig=Object['freeze'](config),getLocaleDirection=_0x4961ce=>{const _0x5c49be=new Intl['Locale'](_0x4961ce);let _0x29d535='ltr';const _0x348373=_0x5c49be['getTextInfo']?.()['direction'];return _0x348373?_0x29d535=_0x348373:_0x5c49be['textInfo']?.['direction']&&(_0x29d535=_0x5c49be['textInfo']['direction']),_0x29d535;},getPluralForm=(_0x35deaa,_0x21cd13)=>new Intl['PluralRules'](_0x35deaa)['select'](_0x21cd13),DEFAULT_TRANSFORMER=_0x5c7b58=>_0x5c7b58,OPEN_TOKEN='{{',CLOSE_TOKEN='}}',PLURAL_PREFIX='plural:';function applyTemplateData(_0x5651a2,_0x139b7e={},_0x526c68={}){const {openToken:_0x33060a=OPEN_TOKEN,closeToken:_0x210f7b=CLOSE_TOKEN,transform:_0x36b6a8=DEFAULT_TRANSFORMER}=_0x526c68;for(const _0x32a0fb in _0x139b7e){const _0xcea1ca=_0x139b7e[_0x32a0fb],_0x4c4c7b=null!=_0xcea1ca?_0xcea1ca['toString']():void 0x0,_0x2ff5e5='string'==typeof _0x4c4c7b?_0x36b6a8(_0x4c4c7b):String(_0x4c4c7b);_0x5651a2=_0x5651a2['replaceAll'](_0x33060a+_0x32a0fb+_0x210f7b,_0x2ff5e5);}return _0x5651a2;}function getPluralObjects(_0x3281af){const _0x13ef5e=[];let _0x5ea824=_0x3281af['indexOf'](OPEN_TOKEN);for(;-0x1!==_0x5ea824;){const _0x385c62=_0x3281af['indexOf'](CLOSE_TOKEN,_0x5ea824);if(-0x1===_0x385c62)break;const _0x31c9d4=_0x3281af['substring'](_0x5ea824+0x2,_0x385c62);if(_0x31c9d4['startsWith'](PLURAL_PREFIX)){const _0x412c87=_0x3281af['substring'](_0x5ea824+0x2,_0x385c62)['replace'](PLURAL_PREFIX,''),_0x2dd0be=_0x412c87['substring'](0x0,_0x412c87['indexOf']('(')),_0x475a67=_0x412c87['substring'](_0x412c87['indexOf']('(')+0x1,_0x412c87['indexOf'](')'));_0x13ef5e['push']({'variable':_0x31c9d4,'pluralKey':_0x2dd0be,'countVariable':_0x475a67});}_0x5ea824=_0x3281af['indexOf'](OPEN_TOKEN,_0x385c62);}return _0x13ef5e;}var WINDOW_HEIGHT_TRACKER_PROPERTY='--uploadcare-blocks-window-height',WindowHeightTracker=class e{static ['clientsRegistry']=new Set();static ['flush']=debounce(()=>{document['documentElement']['style']['setProperty'](WINDOW_HEIGHT_TRACKER_PROPERTY,window['innerHeight']+'px');},0x64);static['registerClient'](_0xfad67a){0x0===e['clientsRegistry']['size']&&e['attachTracker'](),e['clientsRegistry']['add'](_0xfad67a);}static['unregisterClient'](_0x53cbc8){e['clientsRegistry']['delete'](_0x53cbc8),0x0===e['clientsRegistry']['size']&&e['detachTracker']();}static['attachTracker'](){window['addEventListener']('resize',e['flush'],{'passive':!0x0,'capture':!0x0}),e['flush']();}static['detachTracker'](){window['removeEventListener']('resize',e['flush'],{'capture':!0x0}),document['documentElement']['style']['removeProperty'](WINDOW_HEIGHT_TRACKER_PROPERTY);}},waitForAttribute=({element:_0x52fd8f,attribute:_0x1272e8,onSuccess:_0x564915,onTimeout:_0x2d1ab9,timeout:_0x4b3774=0x12c})=>{const _0x472a73=_0x52fd8f['getAttribute'](_0x1272e8);if(null!==_0x472a73)return void _0x564915(_0x472a73);const _0xa70fab=new MutationObserver(_0x44a73e=>{const _0xdf14f2=_0x44a73e[_0x44a73e['length']-0x1];_0xdf14f2&&_0x18e477(_0xdf14f2);});_0xa70fab['observe'](_0x52fd8f,{'attributes':!0x0,'attributeFilter':[_0x1272e8]});const _0x3ed4b3=window['setTimeout'](()=>{_0xa70fab['disconnect'](),_0x2d1ab9();},_0x4b3774),_0x18e477=_0x659983=>{const _0x1b2435=_0x52fd8f['getAttribute'](_0x1272e8);'attributes'===_0x659983['type']&&_0x659983['attributeName']===_0x1272e8&&null!==_0x1b2435&&(window['clearTimeout'](_0x3ed4b3),_0xa70fab['disconnect'](),_0x564915(_0x1b2435));};},blockCtx=()=>({}),activityBlockCtx=_0x2711c3=>({...blockCtx(),'*currentActivity':null,'*currentActivityParams':{},'*history':[],'*historyBack':null,'*closeModal':()=>{_0x2711c3['modalManager']?.['close'](_0x2711c3['$']['*currentActivity']),_0x2711c3['set$']({'*currentActivity':null});}}),uploaderBlockCtx=_0x319393=>({...activityBlockCtx(_0x319393),'*commonProgress':0x0,'*uploadList':[],'*uploadQueue':new Queue(0x1),'*collectionErrors':[],'*collectionState':null,'*groupInfo':null,'*uploadTrigger':new Set(),'*secureUploadsManager':null}),solutionBlockCtx=_0x234fab=>({...uploaderBlockCtx(_0x234fab),'*solution':null}),en_default={'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','a11y-cloud-editor-apply-aspect-ratio':'Apply\x20operation\x20{{name}}\x20{{value}}','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-uploading':'Queued\x20for\x20upload','queued-validation':'Queued\x20for\x20validation','validation':'Validating','crop-to-shape':'Crop\x20to\x20{{value}}','custom':'Freeform','freeform-crop':'Freeform\x20crop'},localeRegistry=new Map(),localeResolvers=new Map(),defineLocaleSync=(_0x2bd54a,_0x4f1635)=>{localeRegistry['has'](_0x2bd54a)&&console['log']('Locale\x20'+_0x2bd54a+'\x20is\x20already\x20defined.\x20Overwriting...'),localeRegistry['set'](_0x2bd54a,{...en_default,..._0x4f1635});},defineLocaleAsync=(_0x320aa9,_0x5c3f43)=>{localeResolvers['set'](_0x320aa9,_0x5c3f43);},defineLocale=(_0x589923,_0x2d4357)=>{'function'==typeof _0x2d4357?defineLocaleAsync(_0x589923,_0x2d4357):defineLocaleSync(_0x589923,_0x2d4357);},resolveLocaleDefinition=async _0x5b9dc7=>{if(!localeRegistry['has'](_0x5b9dc7)){if(!localeResolvers['has'](_0x5b9dc7))throw new Error('Locale\x20'+_0x5b9dc7+'\x20is\x20not\x20defined');const _0x5177a5=localeResolvers['get'](_0x5b9dc7),_0x109b1b=await _0x5177a5();defineLocaleSync(_0x5b9dc7,_0x109b1b);}return localeRegistry['get'](_0x5b9dc7);};defineLocale('en',en_default);var localeStateKey=_0x4afd95=>'*l10n/'+_0x4afd95,DEFAULT_LOCALE='en',LocaleManager=class{['_blockInstance']=null;['_localeName']='';['_callbacks']=new Set();['_boundBlocks']=new Map();constructor(_0x9dcb48){this['_blockInstance']=_0x9dcb48;for(const [_0x4466f7,_0x4bef96]of Object['entries'](en_default)){const _0x450005=!this['_blockInstance']['has'](localeStateKey(_0x4466f7))||!this['_blockInstance']['$'][localeStateKey(_0x4466f7)];this['_blockInstance']['add'](localeStateKey(_0x4466f7),_0x4bef96,_0x450005);}setTimeout(()=>{_0x9dcb48['subConfigValue']('localeName',async _0x5eab70=>{if(!this['_blockInstance']||!_0x5eab70)return;this['_localeName']=_0x5eab70;const _0x51216b=await resolveLocaleDefinition(_0x5eab70);if(_0x5eab70!==DEFAULT_LOCALE&&this['_localeName']!==_0x5eab70)return;const _0x26ac9c=this['_blockInstance']['cfg']['localeDefinitionOverride']?.[_0x5eab70];for(const [_0x3b7adb,_0x2b7cd7]of Object['entries'](_0x51216b)){const _0x57efdd=_0x26ac9c?.[_0x3b7adb];this['_blockInstance']['add'](localeStateKey(_0x3b7adb),_0x57efdd??_0x2b7cd7,!0x0);for(const _0x222c2d of this['_callbacks'])_0x222c2d();}}),_0x9dcb48['subConfigValue']('localeDefinitionOverride',_0x1570fe=>{if(!_0x1570fe)return;const _0x4dec54=_0x1570fe[this['_localeName']];if(_0x4dec54)for(const [_0x53371c,_0x320c8d]of Object['entries'](_0x4dec54)){this['_blockInstance']?.['add'](localeStateKey(_0x53371c),_0x320c8d,!0x0);for(const _0xa34ad3 of this['_callbacks'])_0xa34ad3();}});});}['onLocaleChange'](_0x533b08){const _0x5bfaed=debounce(_0x533b08,0x0);return this['_callbacks']['add'](_0x5bfaed),()=>{this['_callbacks']['delete'](_0x5bfaed);};}['bindL10n'](_0x41f671,_0xa3beb3,_0x7cd1e){_0x41f671['$'][_0xa3beb3]=_0x7cd1e(),this['_boundBlocks']['has'](_0x41f671)||this['_boundBlocks']['set'](_0x41f671,new Map()),this['_boundBlocks']['get'](_0x41f671)?.['get'](_0xa3beb3)?.();const _0x331a33=this['onLocaleChange'](()=>{_0x41f671['$'][_0xa3beb3]=_0x7cd1e();});this['_boundBlocks']['get'](_0x41f671)?.['set'](_0xa3beb3,_0x331a33);}['destroyL10nBindings'](_0x26d9cc){const _0x34163c=this['_boundBlocks']['get'](_0x26d9cc);if(_0x34163c){for(const _0x18fd1a of _0x34163c['values']())_0x18fd1a();this['_boundBlocks']['delete'](_0x26d9cc);}}['destroy'](){this['_callbacks']['clear']();}};function l10nProcessor(_0x55ad9a,_0x12b3d5){[..._0x55ad9a['querySelectorAll']('[l10n]')]['forEach'](_0x19b82b=>{const _0x55d821=_0x19b82b['getAttribute']('l10n');if(!_0x55d821)return;const _0x3affcb=_0x55d821['split'](';');for(const _0x2abf95 of _0x3affcb)_0x2abf95&&locale(_0x19b82b,_0x2abf95,_0x12b3d5);});}var locale=(_0x53ec26,_0x28641b,_0x236d1d)=>{let _0x239ba5='textContent',_0x222065=!0x1;if(_0x28641b['includes'](':')){const _0x340c55=_0x28641b['split'](':');if(0x2!==_0x340c55['length'])return void console['warn']('l10n\x20attribute\x20value\x20should\x20be\x20in\x20format\x20\x22property:key\x22\x20or\x20\x22key\x22.\x20Found:\x20'+_0x28641b);const _0x542b21=_0x340c55;_0x239ba5=_0x542b21[0x0],_0x28641b=_0x542b21[0x1],_0x239ba5['startsWith']('@')&&(_0x239ba5=_0x239ba5['slice'](0x1),_0x222065=!0x0);}const _0x1d7342=_0x28641b;_0x236d1d['has'](_0x1d7342)&&_0x236d1d['sub'](_0x1d7342,_0x15c4cb=>{if(!_0x15c4cb)return;_0x236d1d['l10nProcessorSubs']['has'](_0x1d7342)||_0x236d1d['l10nProcessorSubs']['set'](_0x1d7342,new Set());const _0x2d5676=_0x236d1d['l10nProcessorSubs']['get'](_0x1d7342);_0x2d5676?.['forEach'](_0x252122=>{_0x252122['remove'](),_0x2d5676['delete'](_0x252122),_0x236d1d['allSubs']['delete'](_0x252122);});const _0x560741=localeStateKey(_0x15c4cb)['replace']('*','');_0x236d1d['nodeCtx']['has'](_0x560741)||_0x236d1d['nodeCtx']['add'](_0x560741,_0x15c4cb);const _0x25fba8=_0x236d1d['nodeCtx']['sub'](_0x560741,()=>{_0x53ec26[_0x239ba5]=_0x236d1d['l10n'](_0x15c4cb);});_0x2d5676?.['add'](_0x25fba8),_0x236d1d['allSubs']['add'](_0x25fba8),_0x53ec26['removeAttribute']('l10n');});const _0x4fa420=localeStateKey(_0x28641b);_0x236d1d['has'](_0x4fa420)||_0x236d1d['add'](_0x4fa420,''),_0x236d1d['sub'](_0x4fa420,()=>{_0x222065?_0x53ec26['setAttribute'](_0x239ba5,_0x236d1d['l10n'](_0x28641b)):_0x53ec26[_0x239ba5]=_0x236d1d['l10n'](_0x28641b);}),_0x53ec26['removeAttribute']('l10n');},ScopedMinimalWindow=class{['_listeners']=new Map();['_scope']=[];['addEventListener'](_0x2146e6,_0x406d68){const _0x2d15d4=_0x572884=>{const _0x3c884f=_0x572884['target'];_0x3c884f instanceof Node&&this['_scope']['some'](_0x5a86dd=>_0x5a86dd===_0x3c884f||_0x5a86dd['contains'](_0x3c884f))&&_0x406d68(_0x572884);};this['_listeners']['set'](_0x406d68,_0x2d15d4),window['addEventListener'](_0x2146e6,_0x2d15d4);}['removeEventListener'](_0x5eb8e2,_0x47cc1a){const _0x5371cd=this['_listeners']['get'](_0x47cc1a);_0x5371cd&&window['removeEventListener'](_0x5eb8e2,_0x5371cd),this['_listeners']['delete'](_0x47cc1a);}get['CustomEvent'](){return window['CustomEvent'];}get['document'](){return window['document'];}get['navigator'](){return window['navigator'];}['registerScope'](_0x539674){this['_scope']['push'](_0x539674);}['destroy'](){this['_scope']=[];for(const _0x6ff9b of this['_listeners']['values']())window['removeEventListener']('keydown',_0x6ff9b),window['removeEventListener']('keyup',_0x6ff9b);this['_listeners']['clear']();}},A11y=class{['_destroyKeyUX'];['_scopedWindow'];constructor(){this['_scopedWindow']=new ScopedMinimalWindow(),this['_destroyKeyUX']=startKeyUX(this['_scopedWindow'],[focusGroupKeyUX(),pressKeyUX('is-pressed'),jumpKeyUX(),hiddenKeyUX()]);}['registerBlock'](_0x1652c7){this['_scopedWindow']['registerScope'](_0x1652c7);}['destroy'](){this['_destroyKeyUX']?.(),this['_scopedWindow']['destroy']();}},ModalEvents=Object['freeze']({'ADD':'modal:add','DELETE':'modal:delete','OPEN':'modal:open','CLOSE':'modal:close','CLOSE_ALL':'modal:closeAll','DESTROY':'modal:destroy'}),ModalManager=class{['_modals']=new Map();['_activeModals']=new Set();['_subscribers']=new Map();['_block'];constructor(_0x41d6b5){this['_block']=_0x41d6b5;}['_debugPrint'](..._0x587fd8){this['_block']['debugPrint']('[modal-manager]',..._0x587fd8);}['registerModal'](_0x2fe9af,_0x326d25){this['_modals']['set'](_0x2fe9af,_0x326d25),this['_notify'](ModalEvents['ADD'],{'id':_0x2fe9af,'modal':_0x326d25});}['deleteModal'](_0x521e3b){if(!this['_modals']['has'](_0x521e3b))return!0x1;const _0x4cc161=this['_modals']['get'](_0x521e3b);return this['_modals']['delete'](_0x521e3b),this['_activeModals']['delete'](_0x521e3b),this['_notify'](ModalEvents['DELETE'],{'id':_0x521e3b,'modal':_0x4cc161}),!0x0;}['open'](_0x83427d){if(!this['_modals']['has'](_0x83427d))return this['_debugPrint']('Modal\x20with\x20ID\x20\x22'+_0x83427d+'\x22\x20not\x20found'),!0x1;const _0x3a2dae=this['_modals']['get'](_0x83427d);return this['_activeModals']['add'](_0x83427d),this['_notify'](ModalEvents['OPEN'],{'modal':_0x3a2dae,'id':_0x83427d}),!0x0;}['close'](_0x32e1e2){if(!this['_modals']['has'](_0x32e1e2)||!this['_activeModals']['has'](_0x32e1e2))return this['_debugPrint']('Modal\x20with\x20ID\x20\x22'+_0x32e1e2+'\x22\x20not\x20found\x20or\x20not\x20active'),!0x1;const _0x275ba3=this['_modals']['get'](_0x32e1e2);return this['_activeModals']['delete'](_0x32e1e2),this['_notify'](ModalEvents['CLOSE'],{'id':_0x32e1e2,'modal':_0x275ba3}),!0x0;}['toggle'](_0x520e6e){return this['_modals']['has'](_0x520e6e)?this['_activeModals']['has'](_0x520e6e)?this['close'](_0x520e6e):this['open'](_0x520e6e):(this['_debugPrint']('Modal\x20with\x20ID\x20\x22'+_0x520e6e+'\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 _0x8fce6d=Array['from'](this['_activeModals'])['pop']();return!!_0x8fce6d&&this['close'](_0x8fce6d);}['closeAll'](){const _0xdc97e9=this['_activeModals']['size'];return this['_activeModals']['clear'](),this['_notify'](ModalEvents['CLOSE_ALL'],{}),_0xdc97e9;}['subscribe'](_0x4e41a3,_0x4464bb){return this['_subscribers']['has'](_0x4e41a3)||this['_subscribers']['set'](_0x4e41a3,new Set()),this['_subscribers']['get'](_0x4e41a3)?.['add'](_0x4464bb),()=>this['unsubscribe'](_0x4e41a3,_0x4464bb);}['unsubscribe'](_0x14a52b,_0x82f0eb){this['_subscribers']['has'](_0x14a52b)&&this['_subscribers']['get'](_0x14a52b)?.['delete'](_0x82f0eb);}['_notify'](_0x4b6cdc,_0x47a1a6){if(this['_subscribers']['has'](_0x4b6cdc)){for(const _0x551ddb of this['_subscribers']['get'](_0x4b6cdc)??new Set())try{_0x551ddb(_0x47a1a6);}catch(_0x52a01b){this['_block']['telemetryManager']['sendEventError'](_0x52a01b,'modal\x20subscriber'),this['_debugPrint']('Error\x20in\x20modal\x20subscriber:',_0x52a01b);}}}['destroy'](){this['closeAll'](),this['_modals']['clear'](),this['_subscribers']['clear'](),this['_notify'](ModalEvents['DESTROY'],{});}},version='1.24.5',PACKAGE_NAME='blocks',PACKAGE_VERSION=version,TelemetryManager=class{['_sessionId']=crypto['randomUUID']();['_telemetryInstance'];['_block'];['_config']=structuredClone(initialConfig);['_initialized']=!0x1;['_lastPayload']=null;['_queue'];constructor(_0x40a84e){this['_block']=_0x40a84e,this['_telemetryInstance']=new p(),this['_queue']=new Queue(0xa);for(const _0x52b405 of Object['keys'](this['_config']))this['_block']['subConfigValue'](_0x52b405,_0x2b6371=>{this['_initialized']&&this['_config'][_0x52b405]!==_0x2b6371&&this['sendEvent']({'eventType':InternalEventType['CHANGE_CONFIG']}),this['_setConfig'](_0x52b405,_0x2b6371);});}['_init'](_0x45eb65){_0x45eb65!==InternalEventType['INIT_SOLUTION']||this['_initialized']||(this['_initialized']=!0x0);}['_setConfig'](_0x4b8250,_0x4ed56f){this['_config'][_0x4b8250]!==_0x4ed56f&&(this['_config'][_0x4b8250]=_0x4ed56f);}['_formattingPayload'](_0x467c20){const _0x4143e3=_0x467c20['payload']?{..._0x467c20['payload']}:{};_0x4143e3['activity']&&(_0x4143e3['activity']=void 0x0);const _0x4fed4f={..._0x467c20};return _0x467c20['eventType']!==InternalEventType['INIT_SOLUTION']&&_0x467c20['eventType']!==InternalEventType['CHANGE_CONFIG']||(_0x4fed4f['config']=this['_config']),{..._0x4fed4f,'appVersion':PACKAGE_VERSION,'appName':PACKAGE_NAME,'sessionId':this['_sessionId'],'component':this['_solution'],'activity':this['_activity'],'projectPubkey':this['_config']['pubkey'],'userAgent':navigator['userAgent'],'eventType':_0x4fed4f['eventType']??'','eventTimestamp':this['_timestamp'],'payload':{'location':this['_location'],..._0x4143e3}};}['_excludedEvents'](_0x1edd3d){return!(!_0x1edd3d||![EventType['CHANGE'],EventType['COMMON_UPLOAD_PROGRESS'],EventType['FILE_ADDED'],EventType['FILE_REMOVED'],EventType['FILE_UPLOAD_START'],EventType['FILE_UPLOAD_PROGRESS'],EventType['FILE_UPLOAD_SUCCESS'],EventType['FILE_UPLOAD_FAILED']]['includes'](_0x1edd3d));}['sendEvent'](_0x288901){const _0x2ffcd8=this['_formattingPayload']({'eventType':_0x288901['eventType'],'payload':_0x288901['payload'],'config':_0x288901['config']});this['_init'](_0x288901['eventType']);if(this['_excludedEvents'](_0x288901['eventType']))return;this['_lastPayload']&&this['_checkObj'](this['_lastPayload'],_0x2ffcd8)||this['_queue']['add'](async()=>{this['_lastPayload']=_0x2ffcd8,await this['_telemetryInstance']['sendEvent'](_0x2ffcd8);});}['sendEventError'](_0x11df61,_0x4284d0='unknown'){this['sendEvent']({'eventType':InternalEventType['ERROR_EVENT'],'payload':{'metadata':{'event':'error','text':'Error\x20in\x20'+_0x4284d0,'error':_0x11df61['message']}}});}['sendEventCloudImageEditor'](_0x2f7703,_0x138691,_0x39310d={}){this['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'tabId':_0x138691,'node':_0x2f7703['currentTarget']?.['tagName'],'event':_0x2f7703['type'],..._0x39310d}}});}['_checkObj'](_0x520e04,_0x10f02a){if(JSON['stringify'](_0x520e04)===JSON['stringify'](_0x10f02a))return!0x0;if('object'!=typeof _0x520e04||'object'!=typeof _0x10f02a||null==_0x520e04||null==_0x10f02a)return!0x1;const _0x26c11b=Object['keys'](_0x520e04),_0x42a159=Object['keys'](_0x10f02a);if(_0x26c11b['length']!==_0x42a159['length'])return!0x1;for(const _0x3144cb of _0x26c11b){if(!Object['hasOwn'](_0x10f02a,_0x3144cb))return!0x1;if(!this['_checkObj'](_0x520e04[_0x3144cb],_0x10f02a[_0x3144cb]))return!0x1;}return!0x0;}get['_timestamp'](){return Date['now']();}get['_solution'](){if(!this['_block']['has']('*solution'))return null;const _0x1e2564=this['_block']['$']['*solution'];return _0x1e2564?_0x1e2564['toLowerCase']():null;}get['_activity'](){return this['_block']['has']('*currentActivity')?this['_block']['$']['*currentActivity']??null:null;}get['_location'](){return location['origin'];}},sharedConfigKey=_0x9c31dc=>'*cfg/'+_0x9c31dc;function testModeProcessor(_0x36d4af,_0x3ab971){const _0x52f2dd=_0x36d4af['querySelectorAll']('[data-testid]');if(0x0===_0x52f2dd['length'])return;const _0x3eba79=new WeakMap();for(const _0x47c15d of _0x52f2dd){const _0x1dd947=_0x47c15d['getAttribute']('data-testid');_0x1dd947&&_0x3eba79['set'](_0x47c15d,_0x1dd947);}_0x3ab971['subConfigValue']('testMode',_0x14cb6b=>{if(!_0x14cb6b){for(const _0x375698 of _0x52f2dd)_0x375698['removeAttribute']('data-testid');return;}const _0x1cd7ae=_0x3ab971['testId'];for(const _0x22b244 of _0x52f2dd){const _0x215964=_0x3eba79['get'](_0x22b244);_0x215964&&_0x22b244['setAttribute']('data-testid',_0x1cd7ae+'--'+_0x215964);}});}var TAG_PREFIX='uc-',Block=class extends BaseComponent{['__cfgProxy'];['l10nProcessorSubs']=new Map();static ['StateConsumerScope']=null;static ['styleAttrs']=[];['requireCtxName']=!0x1;['activityType']=null;['init$']=blockCtx();['l10n'](_0x3950e8,_0x279f5f={}){if(!_0x3950e8)return'';const _0x22a915=this['$'][localeStateKey(_0x3950e8)]||_0x3950e8,_0x4c114e=getPluralObjects(_0x22a915);for(const _0x488a6a of _0x4c114e)_0x279f5f[_0x488a6a['variable']]=this['pluralize'](_0x488a6a['pluralKey'],Number(_0x279f5f[_0x488a6a['countVariable']]));return applyTemplateData(_0x22a915,_0x279f5f);}['pluralize'](_0x2b525d,_0x5eef12){const _0x54a012=this['l10n']('locale-id')||'en',_0xb1e181=getPluralForm(_0x54a012,_0x5eef12);return this['l10n'](_0x2b525d+'__'+_0xb1e181);}['bindL10n'](_0x2f0595,_0x4ae99d){this['localeManager']?.['bindL10n'](this,_0x2f0595,_0x4ae99d);}constructor(){super(),this['addTemplateProcessor'](l10nProcessor),this['addTemplateProcessor'](testModeProcessor);}['emit'](_0x5a4842,_0x41dfd7,_0x315a80){const _0x4cee79=this['has']('*eventEmitter')?this['$']['*eventEmitter']:void 0x0;_0x4cee79&&(_0x4cee79['emit'](_0x5a4842,_0x41dfd7,_0x315a80),this['telemetryManager']['sendEvent']({'eventType':_0x5a4842,'payload':'function'==typeof _0x41dfd7?_0x41dfd7():_0x41dfd7}));}['hasBlockInCtx'](_0x55e79c){for(const _0x31124f of this['blocksRegistry'])if(_0x55e79c(_0x31124f))return!0x0;return!0x1;}['setOrAddState'](_0x3cc6d6,_0x291432){this['add$']({[_0x3cc6d6]:_0x291432},!0x0);}['connectedCallback'](){this['constructor']['styleAttrs']['forEach'](_0x38646b=>{this['setAttribute'](_0x38646b,'');}),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['cfg']['qualityInsights']&&!this['has']('*telemetryManager')&&this['add']('*telemetryManager',new TelemetryManager(this)),this['has']('*a11y')||this['add']('*a11y',new A11y()),this['has']('*modalManager')||this['add']('*modalManager',new ModalManager(this)),this['sub'](localeStateKey('locale-id'),_0x325865=>{const _0x5f215d=getLocaleDirection(_0x325865);this['style']['direction']='ltr'===_0x5f215d?'':_0x5f215d;}),this['subConfigValue']('testMode',_0x6d129f=>{_0x6d129f&&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']:void 0x0;}get['telemetryManager'](){return this['cfg']['qualityInsights']?this['has']('*telemetryManager')&&this['$']['*telemetryManager']:{'sendEvent':()=>{},'sendEventCloudImageEditor':()=>{},'sendEventError':()=>{}};}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']();const _0x45da96=this['blocksRegistry'];_0x45da96?.['delete'](this),this['localeManager']?.['destroyL10nBindings'](this),this['l10nProcessorSubs']=new Map(),Data['deleteCtx'](this),0x0===_0x45da96?.['size']&&setTimeout(()=>{this['destroyCtxCallback']();},0x0);}['destroyCtxCallback'](){Data['deleteCtx'](this['ctxName']),this['localeManager']?.['destroy'](),this['modalManager']?.['destroy']();}async['proxyUrl'](_0x58f68e){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'](_0x58f68e,{'uuid':extractUuid(_0x58f68e),'cdnUrlModifiers':extractCdnUrlModifiers(_0x58f68e),'fileName':extractFilename(_0x58f68e)});}catch(_0x4ccd05){return console['error']('Failed\x20to\x20resolve\x20secure\x20delivery\x20proxy\x20URL.\x20Falling\x20back\x20to\x20the\x20default\x20URL.',_0x4ccd05),this['telemetryManager']['sendEventError'](_0x4ccd05,'secureDeliveryProxyUrlResolver.\x20Failed\x20to\x20resolve\x20secure\x20delivery\x20proxy\x20URL.\x20Falling\x20back\x20to\x20the\x20default\x20URL.'),_0x58f68e;}return this['cfg']['secureDeliveryProxy']?applyTemplateData(this['cfg']['secureDeliveryProxy'],{'previewUrl':_0x58f68e},{'transform':_0x526ab2=>window['encodeURIComponent'](_0x526ab2)}):_0x58f68e;}get['cfg'](){if(!this['__cfgProxy']){const _0x12e32a=Object['create'](null);this['__cfgProxy']=new Proxy(_0x12e32a,{'set':(_0xaad699,_0x2b9844,_0x12e60c)=>{if('string'!=typeof _0x2b9844)return!0x1;const _0x34df60=sharedConfigKey(_0x2b9844);return this['has'](_0x34df60)||this['add'](_0x34df60,initialConfig[_0x2b9844]),this['$'][_0x34df60]=_0x12e60c,!0x0;},'get':(_0x12db21,_0x670996)=>{const _0x9eb8e8=sharedConfigKey(_0x670996);return this['has'](_0x9eb8e8)||this['add'](_0x9eb8e8,initialConfig[_0x670996]),this['$'][sharedConfigKey(_0x670996)];}});}return this['__cfgProxy'];}['subConfigValue'](_0x12703c,_0x52b2da){const _0xddb359=sharedConfigKey(_0x12703c);this['has'](_0xddb359)||this['add'](_0xddb359,initialConfig[_0x12703c]),this['sub'](_0xddb359,_0x52b2da);}['debugPrint'](..._0x208d67){if(!this['cfg']['debug'])return;let _0x3db81e=_0x208d67;'function'==typeof _0x208d67?.[0x0]&&(_0x3db81e=(0x0,_0x208d67[0x0])()),console['log']('['+this['ctxName']+']',..._0x3db81e);}static['reg'](_0x57233c){_0x57233c?_0x57233c['startsWith'](TAG_PREFIX)&&super['reg'](_0x57233c):super['reg']();}},ACTIVE_ATTR='active',ACTIVE_PROP='___ACTIVITY_IS_ACTIVE___',ActivityBlock=class e extends Block{['historyTracked']=!0x1;[ACTIVE_PROP];['init$']=activityBlockCtx(this);['_debouncedHistoryFlush']=debounce(this['_historyFlush']['bind'](this),0xa);['_deactivate'](){const _0x29a19d=e['_activityCallbacks']['get'](this);this[ACTIVE_PROP]=!0x1,this['removeAttribute'](ACTIVE_ATTR),_0x29a19d?.['deactivateCallback']?.();}['_activate'](){const _0x21c206=e['_activityCallbacks']['get'](this);this['$']['*historyBack']=this['historyBack']['bind'](this),this[ACTIVE_PROP]=!0x0,this['setAttribute'](ACTIVE_ATTR,''),_0x21c206?.['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',_0x102b17=>{try{this['activityType']!==_0x102b17&&this[ACTIVE_PROP]?this['_deactivate']():this['activityType']!==_0x102b17||this[ACTIVE_PROP]||this['_activate']();}catch(_0x4e519a){this['telemetryManager']['sendEventError'](_0x4e519a,'activity\x20\x22'+this['activityType']+'\x22'),console['error']('Error\x20in\x20activity\x20\x22'+this['activityType']+'\x22.\x20',_0x4e519a),this['$']['*currentActivity']=this['$']['*history'][this['$']['*history']['length']-0x1]??null;}_0x102b17||(this['$']['*history']=[]);}));}['_historyFlush'](){let _0x552bca=this['$']['*history'];_0x552bca&&(_0x552bca['length']>0xa&&(_0x552bca=_0x552bca['slice'](_0x552bca['length']-0xb,_0x552bca['length']-0x1)),this['historyTracked']&&_0x552bca[_0x552bca['length']-0x1]!==this['activityType']&&_0x552bca['push'](this['activityType']),this['$']['*history']=_0x552bca);}['_isActivityRegistered'](){return!!this['activityType']&&e['_activityCallbacks']['has'](this);}static ['_activityCallbacks']=new Map();static ['activities'];get['isActivityActive'](){return!!this[ACTIVE_PROP];}get['couldOpenActivity'](){return!0x0;}['registerActivity'](_0x2042bc,_0x1a50e3={}){const {onActivate:_0x378493,onDeactivate:_0x22d597}=_0x1a50e3;e['_activityCallbacks']['set'](this,{'activateCallback':_0x378493,'deactivateCallback':_0x22d597});}['unregisterActivity'](){this['isActivityActive']&&this['_deactivate'](),e['_activityCallbacks']['delete'](this);}['destroyCallback'](){super['destroyCallback'](),this['_isActivityRegistered']()&&this['unregisterActivity']();const _0x4af0e4=this['$']['*currentActivity'];!![...this['blocksRegistry']]['find'](_0x417e73=>_0x417e73 instanceof e&&_0x417e73['activityType']===_0x4af0e4)||(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'](){const _0x23d27d=this['$']['*history'];if(_0x23d27d){let _0x1b5072=_0x23d27d['pop']();for(;_0x1b5072===this['activityType'];)_0x1b5072=_0x23d27d['pop']();let _0x727ff8=!!_0x1b5072;if(_0x1b5072){const _0x340c31=[...this['blocksRegistry']]['find'](_0x45fdb3=>_0x45fdb3['activityType']===_0x1b5072);_0x727ff8=_0x340c31?.['couldOpenActivity']??!0x1;}_0x1b5072=_0x727ff8?_0x1b5072:void 0x0,_0x1b5072&&this['modalManager']?.['open'](_0x1b5072),this['$']['*currentActivity']=_0x1b5072,this['$']['*history']=_0x23d27d,_0x1b5072||this['modalManager']?.['closeAll']();}}};function defineComponents(_0x551162){for(const _0x189876 in _0x551162){let _0x4160c0=[..._0x189876]['reduce']((_0x238437,_0x4418eb)=>(_0x4418eb['toUpperCase']()===_0x4418eb&&(_0x4418eb='-'+_0x4418eb['toLowerCase']()),_0x238437+=_0x4418eb),'');_0x4160c0['startsWith']('-')&&(_0x4160c0=_0x4160c0['replace']('-','')),_0x4160c0['startsWith']('uc-')||(_0x4160c0='uc-'+_0x4160c0),_0x551162[_0x189876]['reg']&&_0x551162[_0x189876]['reg'](_0x4160c0);}}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'});var UC_WINDOW_KEY='UC';function loadFileUploaderFrom(_0x2611ce,_0x432eef=!0x1){return new Promise((_0x3772ed,_0x311373)=>{if('object'!=typeof document)return void _0x3772ed(null);if('object'==typeof window&&window[UC_WINDOW_KEY])return void _0x3772ed(window[UC_WINDOW_KEY]);const _0x469bdf=document['createElement']('script');_0x469bdf['async']=!0x0,_0x469bdf['src']=_0x2611ce,_0x469bdf['onerror']=()=>{_0x311373();},_0x469bdf['onload']=()=>{const _0x3a2e43=window[UC_WINDOW_KEY];_0x432eef&&defineComponents(_0x3a2e43),_0x3772ed(_0x3a2e43);},document['head']['appendChild'](_0x469bdf);});}var svg_sprite_default='<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\x20fill=\x27none\x27\x20viewBox=\x270\x200\x209\x206\x27\x20id=\x27uc-icon-arrow-dropdown\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke=\x27currentColor\x27\x20d=\x27m1.5\x201.667\x203\x202.666\x203-2.666\x27\x20opacity=\x27.5\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-aspect-ratio\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke=\x27currentColor\x27\x20d=\x27M7.395\x2022.5H2.454v-5.25m14.824\x205.25h4.94v-5.25m0-10.5V1.5h-4.94m-9.883\x200H2.454v5.25\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>',SolutionBlock=class extends Block{static ['styleAttrs']=['uc-wgt-common'];['requireCtxName']=!0x0;['init$']=solutionBlockCtx(this);static ['_template']='';['initCallback'](){super['initCallback'](),this['a11y']?.['registerBlock'](this);}static set['template'](_0x5c7d63){this['_template']=svg_sprite_default+_0x5c7d63+'<slot></slot>';}static get['template'](){return this['_template'];}},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(_0x572ffb,_0x341c76){for(const [_0x52cad9,_0x4484c9]of Object['entries'](_0x341c76))_0x572ffb['setAttributeNS'](null,_0x52cad9,_0x4484c9['toString']());}function createSvgNode(_0x4093da,_0x10132f={}){const _0x429ac1=document['createElementNS']('http://www.w3.org/2000/svg',_0x4093da);return setSvgNodeAttrs(_0x429ac1,_0x10132f),_0x429ac1;}function cornerPath(_0x2380cb,_0x4c96fe,_0x3861ed){const {x:_0x46cee4,y:_0x1dc42d,width:_0x2df6d6,height:_0x5d3eac}=_0x2380cb,_0x1303df=_0x4c96fe['includes']('w')?0x0:0x1,_0x3ac394=_0x4c96fe['includes']('n')?0x0:0x1,_0x37183f=0x0===_0x1303df?-0x1:0x1,_0x25a932=0x0===_0x3ac394?-0x1:0x1,_0x4647e4=[_0x46cee4+_0x1303df*_0x2df6d6+THUMB_OFFSET*_0x37183f,_0x1dc42d+_0x3ac394*_0x5d3eac+THUMB_OFFSET*_0x25a932-THUMB_CORNER_SIZE*_0x3861ed*_0x25a932],_0x3f5f7c=[_0x46cee4+_0x1303df*_0x2df6d6+THUMB_OFFSET*_0x37183f,_0x1dc42d+_0x3ac394*_0x5d3eac+THUMB_OFFSET*_0x25a932],_0x184e56=[_0x46cee4+_0x1303df*_0x2df6d6-THUMB_CORNER_SIZE*_0x3861ed*_0x37183f+THUMB_OFFSET*_0x37183f,_0x1dc42d+_0x3ac394*_0x5d3eac+THUMB_OFFSET*_0x25a932];return{'d':'M\x20'+_0x4647e4[0x0]+'\x20'+_0x4647e4[0x1]+'\x20L\x20'+_0x3f5f7c[0x0]+'\x20'+_0x3f5f7c[0x1]+'\x20L\x20'+_0x184e56[0x0]+'\x20'+_0x184e56[0x1],'center':[_0x3f5f7c[0x0],_0x3f5f7c[0x1]]};}function sidePath(_0x1977fe,_0x5f0d74,_0x2e91e4){const {x:_0x40f581,y:_0x413437,width:_0x3efd89,height:_0xe1cf64}=_0x1977fe,_0x48a5d7='n'===_0x5f0d74||'s'===_0x5f0d74,_0x4e8226=_0x48a5d7?0.5:'w'===_0x5f0d74?0x0:0x1,_0x4dfaed='w'===_0x5f0d74||'e'===_0x5f0d74?0.5:'n'===_0x5f0d74?0x0:0x1,_0x258669='w'===_0x5f0d74?-0x1:'e'===_0x5f0d74?0x1:0x0,_0x4f54bf='n'===_0x5f0d74?-0x1:'s'===_0x5f0d74?0x1:0x0;let _0x41fab2,_0x1ed7a7;return _0x48a5d7?(_0x41fab2=[_0x40f581+_0x4e8226*_0x3efd89-THUMB_SIDE_SIZE*_0x2e91e4/0x2,_0x413437+_0x4dfaed*_0xe1cf64+THUMB_OFFSET*_0x4f54bf],_0x1ed7a7=[_0x40f581+_0x4e8226*_0x3efd89+THUMB_SIDE_SIZE*_0x2e91e4/0x2,_0x413437+_0x4dfaed*_0xe1cf64+THUMB_OFFSET*_0x4f54bf]):(_0x41fab2=[_0x40f581+_0x4e8226*_0x3efd89+THUMB_OFFSET*_0x258669,_0x413437+_0x4dfaed*_0xe1cf64-THUMB_SIDE_SIZE*_0x2e91e4/0x2],_0x1ed7a7=[_0x40f581+_0x4e8226*_0x3efd89+THUMB_OFFSET*_0x258669,_0x413437+_0x4dfaed*_0xe1cf64+THUMB_SIDE_SIZE*_0x2e91e4/0x2]),{'d':'M\x20'+_0x41fab2[0x0]+'\x20'+_0x41fab2[0x1]+'\x20L\x20'+_0x1ed7a7[0x0]+'\x20'+_0x1ed7a7[0x1],'center':[(_0x41fab2[0x0]+_0x1ed7a7[0x0])/0x2,(_0x41fab2[0x1]+_0x1ed7a7[0x1])/0x2]};}function thumbCursor(_0x21aca5){return''===_0x21aca5?'move':['e','w']['includes'](_0x21aca5)?'ew-resize':['n','s']['includes'](_0x21aca5)?'ns-resize':['nw','se']['includes'](_0x21aca5)?'nwse-resize':'nesw-resize';}function moveRect({rect:_0x3c5fd9,delta:[_0x3a0878,_0x250e4d],imageBox:_0x2313ca}){return constraintRect({..._0x3c5fd9,'x':_0x3c5fd9['x']+_0x3a0878,'y':_0x3c5fd9['y']+_0x250e4d},_0x2313ca);}function constraintRect(_0x4de8f8,_0xf7f781){let {x:_0x212e51}=_0x4de8f8,{y:_0x81e52e}=_0x4de8f8;return _0x4de8f8['x']<_0xf7f781['x']?_0x212e51=_0xf7f781['x']:_0x4de8f8['x']+_0x4de8f8['width']>_0xf7f781['x']+_0xf7f781['width']&&(_0x212e51=_0xf7f781['x']+_0xf7f781['width']-_0x4de8f8['width']),_0x4de8f8['y']<_0xf7f781['y']?_0x81e52e=_0xf7f781['y']:_0x4de8f8['y']+_0x4de8f8['height']>_0xf7f781['y']+_0xf7f781['height']&&(_0x81e52e=_0xf7f781['y']+_0xf7f781['height']-_0x4de8f8['height']),{..._0x4de8f8,'x':_0x212e51,'y':_0x81e52e};}function resizeNorth({rect:_0x4fe338,delta:_0x54fc7c,aspectRatio:_0x2972a4,imageBox:_0x15c3c9}){const [,_0x162845]=_0x54fc7c;let {y:_0x1d5289,width:_0x578d3c,height:_0xccfc93}=_0x4fe338;_0x1d5289+=_0x162845,_0xccfc93-=_0x162845,_0x2972a4&&(_0x578d3c=_0xccfc93*_0x2972a4);let _0xec1e83=_0x4fe338['x']+_0x4fe338['width']/0x2-_0x578d3c/0x2;return _0x1d5289<=_0x15c3c9['y']&&(_0x1d5289=_0x15c3c9['y'],_0xccfc93=_0x4fe338['y']+_0x4fe338['height']-_0x1d5289,_0x2972a4&&(_0x578d3c=_0xccfc93*_0x2972a4,_0xec1e83=_0x4fe338['x']+_0x4fe338['width']/0x2-_0x578d3c/0x2)),_0xec1e83<=_0x15c3c9['x']&&(_0xec1e83=_0x15c3c9['x'],_0x1d5289=_0x4fe338['y']+_0x4fe338['height']-_0xccfc93),_0xec1e83+_0x578d3c>=_0x15c3c9['x']+_0x15c3c9['width']&&(_0xec1e83=Math['max'](_0x15c3c9['x'],_0x15c3c9['x']+_0x15c3c9['width']-_0x578d3c),_0x578d3c=_0x15c3c9['x']+_0x15c3c9['width']-_0xec1e83,_0x2972a4&&(_0xccfc93=_0x578d3c/_0x2972a4),_0x1d5289=_0x4fe338['y']+_0x4fe338['height']-_0xccfc93),_0xccfc93<MIN_CROP_SIZE&&(_0xccfc93=MIN_CROP_SIZE,_0x2972a4&&(_0x578d3c=_0xccfc93*_0x2972a4,_0xec1e83=_0x4fe338['x']+_0x4fe338['width']/0x2-_0x578d3c/0x2),_0x1d5289=_0x4fe338['y']+_0x4fe338['height']-_0xccfc93),_0x578d3c<MIN_CROP_SIZE&&(_0x578d3c=MIN_CROP_SIZE,_0x2972a4&&(_0xccfc93=_0x578d3c/_0x2972a4,_0xec1e83=_0x4fe338['x']+_0x4fe338['width']/0x2-_0x578d3c/0x2),_0x1d5289=_0x4fe338['y']+_0x4fe338['height']-_0xccfc93),{'x':_0xec1e83,'y':_0x1d5289,'width':_0x578d3c,'height':_0xccfc93};}function resizeWest({rect:_0x4af25e,delta:_0xb4d085,aspectRatio:_0x4d3dae,imageBox:_0x4d1d54}){const [_0x12dee1]=_0xb4d085;let {x:_0x243857,width:_0x4424ff,height:_0x29e6b5}=_0x4af25e;_0x243857+=_0x12dee1,_0x4424ff-=_0x12dee1,_0x4d3dae&&(_0x29e6b5=_0x4424ff/_0x4d3dae);let _0x95f8bb=_0x4af25e['y']+_0x4af25e['height']/0x2-_0x29e6b5/0x2;return _0x243857<=_0x4d1d54['x']&&(_0x243857=_0x4d1d54['x'],_0x4424ff=_0x4af25e['x']+_0x4af25e['width']-_0x243857,_0x4d3dae&&(_0x29e6b5=_0x4424ff/_0x4d3dae,_0x95f8bb=_0x4af25e['y']+_0x4af25e['height']/0x2-_0x29e6b5/0x2)),_0x95f8bb<=_0x4d1d54['y']&&(_0x95f8bb=_0x4d1d54['y'],_0x243857=_0x4af25e['x']+_0x4af25e['width']-_0x4424ff),_0x95f8bb+_0x29e6b5>=_0x4d1d54['y']+_0x4d1d54['height']&&(_0x95f8bb=Math['max'](_0x4d1d54['y'],_0x4d1d54['y']+_0x4d1d54['height']-_0x29e6b5),_0x29e6b5=_0x4d1d54['y']+_0x4d1d54['height']-_0x95f8bb,_0x4d3dae&&(_0x4424ff=_0x29e6b5*_0x4d3dae),_0x243857=_0x4af25e['x']+_0x4af25e['width']-_0x4424ff),_0x29e6b5<MIN_CROP_SIZE&&(_0x29e6b5=MIN_CROP_SIZE,_0x4d3dae&&(_0x4424ff=_0x29e6b5*_0x4d3dae),_0x95f8bb=_0x4af25e['y']+_0x4af25e['height']/0x2-_0x29e6b5/0x2,_0x243857=_0x4af25e['x']+_0x4af25e['width']-_0x4424ff),_0x4424ff<MIN_CROP_SIZE&&(_0x4424ff=MIN_CROP_SIZE,_0x4d3dae&&(_0x29e6b5=_0x4424ff/_0x4d3dae),_0x95f8bb=_0x4af25e['y']+_0x4af25e['height']/0x2-_0x29e6b5/0x2,_0x243857=_0x4af25e['x']+_0x4af25e['width']-_0x4424ff),{'x':_0x243857,'y':_0x95f8bb,'width':_0x4424ff,'height':_0x29e6b5};}function resizeSouth({rect:_0x4d9495,delta:_0x42de32,aspectRatio:_0x46629a,imageBox:_0x5c932f}){const [,_0x41cbaa]=_0x42de32;let {y:_0x29beb0,width:_0x4ac706,height:_0x2b8082}=_0x4d9495;_0x2b8082+=_0x41cbaa,_0x46629a&&(_0x4ac706=_0x2b8082*_0x46629a);let _0x3d5540=_0x4d9495['x']+_0x4d9495['width']/0x2-_0x4ac706/0x2;return _0x29beb0+_0x2b8082>=_0x5c932f['y']+_0x5c932f['height']&&(_0x2b8082=_0x5c932f['y']+_0x5c932f['height']-_0x29beb0,_0x46629a&&(_0x4ac706=_0x2b8082*_0x46629a),_0x3d5540=_0x4d9495['x']+_0x4d9495['width']/0x2-_0x4ac706/0x2),_0x3d5540<=_0x5c932f['x']&&(_0x3d5540=_0x5c932f['x'],_0x29beb0=_0x4d9495['y']),_0x3d5540+_0x4ac706>=_0x5c932f['x']+_0x5c932f['width']&&(_0x3d5540=Math['max'](_0x5c932f['x'],_0x5c932f['x']+_0x5c932f['width']-_0x4ac706),_0x4ac706=_0x5c932f['x']+_0x5c932f['width']-_0x3d5540,_0x46629a&&(_0x2b8082=_0x4ac706/_0x46629a),_0x29beb0=_0x4d9495['y']),_0x2b8082<MIN_CROP_SIZE&&(_0x2b8082=MIN_CROP_SIZE,_0x46629a&&(_0x4ac706=_0x2b8082*_0x46629a),_0x3d5540=_0x4d9495['x']+_0x4d9495['width']/0x2-_0x4ac706/0x2),_0x4ac706<MIN_CROP_SIZE&&(_0x4ac706=MIN_CROP_SIZE,_0x46629a&&(_0x2b8082=_0x4ac706/_0x46629a),_0x3d5540=_0x4d9495['x']+_0x4d9495['width']/0x2-_0x4ac706/0x2),{'x':_0x3d5540,'y':_0x29beb0,'width':_0x4ac706,'height':_0x2b8082};}function resizeEast({rect:_0x4d1397,delta:_0xd63a91,aspectRatio:_0x4a2794,imageBox:_0x3a0999}){const [_0x4c706f]=_0xd63a91;let {x:_0x5621bc,width:_0x1fd120,height:_0x1ddea7}=_0x4d1397;_0x1fd120+=_0x4c706f,_0x4a2794&&(_0x1ddea7=_0x1fd120/_0x4a2794);let _0x22f135=_0x4d1397['y']+_0x4d1397['height']/0x2-_0x1ddea7/0x2;return _0x5621bc+_0x1fd120>=_0x3a0999['x']+_0x3a0999['width']&&(_0x1fd120=_0x3a0999['x']+_0x3a0999['width']-_0x5621bc,_0x4a2794&&(_0x1ddea7=_0x1fd120/_0x4a2794),_0x22f135=_0x4d1397['y']+_0x4d1397['height']/0x2-_0x1ddea7/0x2),_0x22f135<=_0x3a0999['y']&&(_0x22f135=_0x3a0999['y'],_0x5621bc=_0x4d1397['x']),_0x22f135+_0x1ddea7>=_0x3a0999['y']+_0x3a0999['height']&&(_0x22f135=Math['max'](_0x3a0999['y'],_0x3a0999['y']+_0x3a0999['height']-_0x1ddea7),_0x1ddea7=_0x3a0999['y']+_0x3a0999['height']-_0x22f135,_0x4a2794&&(_0x1fd120=_0x1ddea7*_0x4a2794),_0x5621bc=_0x4d1397['x']),_0x1ddea7<MIN_CROP_SIZE&&(_0x1ddea7=MIN_CROP_SIZE,_0x4a2794&&(_0x1fd120=_0x1ddea7*_0x4a2794),_0x22f135=_0x4d1397['y']+_0x4d1397['height']/0x2-_0x1ddea7/0x2),_0x1fd120<MIN_CROP_SIZE&&(_0x1fd120=MIN_CROP_SIZE,_0x4a2794&&(_0x1ddea7=_0x1fd120/_0x4a2794),_0x22f135=_0x4d1397['y']+_0x4d1397['height']/0x2-_0x1ddea7/0x2),{'x':_0x5621bc,'y':_0x22f135,'width':_0x1fd120,'height':_0x1ddea7};}function resizeNorthWest({rect:_0x31ac23,delta:_0x45708,aspectRatio:_0x4d483e,imageBox:_0x5ccf81}){let [_0x5823d2,_0xee4b82]=_0x45708,{x:_0x3c5f50,y:_0x5c3b38,width:_0x2ae540,height:_0x27911a}=_0x31ac23;return _0x3c5f50+_0x5823d2<_0x5ccf81['x']&&(_0x5823d2=_0x5ccf81['x']-_0x3c5f50),_0x5c3b38+_0xee4b82<_0x5ccf81['y']&&(_0xee4b82=_0x5ccf81['y']-_0x5c3b38),_0x3c5f50+=_0x5823d2,_0x2ae540-=_0x5823d2,_0x5c3b38+=_0xee4b82,_0x27911a-=_0xee4b82,_0x4d483e&&Math['abs'](_0x2ae540/_0x27911a)>_0x4d483e?(_0xee4b82=_0x2ae540/_0x4d483e-_0x27911a,_0x27911a+=_0xee4b82,_0x5c3b38-=_0xee4b82,_0x5c3b38<=_0x5ccf81['y']&&(_0x27911a-=_0x5ccf81['y']-_0x5c3b38,_0x2ae540=_0x27911a*_0x4d483e,_0x3c5f50=_0x31ac23['x']+_0x31ac23['width']-_0x2ae540,_0x5c3b38=_0x5ccf81['y'])):_0x4d483e&&(_0x5823d2=_0x27911a*_0x4d483e-_0x2ae540,_0x2ae540+=_0x5823d2,_0x3c5f50-=_0x5823d2,_0x3c5f50<=_0x5ccf81['x']&&(_0x2ae540-=_0x5ccf81['x']-_0x3c5f50,_0x27911a=_0x2ae540/_0x4d483e,_0x3c5f50=_0x5ccf81['x'],_0x5c3b38=_0x31ac23['y']+_0x31ac23['height']-_0x27911a)),_0x27911a<MIN_CROP_SIZE&&(_0x27911a=MIN_CROP_SIZE,_0x4d483e&&(_0x2ae540=_0x27911a*_0x4d483e),_0x3c5f50=_0x31ac23['x']+_0x31ac23['width']-_0x2ae540,_0x5c3b38=_0x31ac23['y']+_0x31ac23['height']-_0x27911a),_0x2ae540<MIN_CROP_SIZE&&(_0x2ae540=MIN_CROP_SIZE,_0x4d483e&&(_0x27911a=_0x2ae540/_0x4d483e),_0x3c5f50=_0x31ac23['x']+_0x31ac23['width']-_0x2ae540,_0x5c3b38=_0x31ac23['y']+_0x31ac23['height']-_0x27911a),{'x':_0x3c5f50,'y':_0x5c3b38,'width':_0x2ae540,'height':_0x27911a};}function resizeNorthEast({rect:_0x4d0173,delta:_0x4a1ba3,aspectRatio:_0x32ee91,imageBox:_0x41339d}){let [_0x2b7d24,_0x43b054]=_0x4a1ba3,{x:_0x5ee954,y:_0x474f9e,width:_0x50840c,height:_0x3a0f95}=_0x4d0173;return _0x5ee954+_0x50840c+_0x2b7d24>_0x41339d['x']+_0x41339d['width']&&(_0x2b7d24=_0x41339d['x']+_0x41339d['width']-_0x5ee954-_0x50840c),_0x474f9e+_0x43b054<_0x41339d['y']&&(_0x43b054=_0x41339d['y']-_0x474f9e),_0x50840c+=_0x2b7d24,_0x474f9e+=_0x43b054,_0x3a0f95-=_0x43b054,_0x32ee91&&Math['abs'](_0x50840c/_0x3a0f95)>_0x32ee91?(_0x43b054=_0x50840c/_0x32ee91-_0x3a0f95,_0x3a0f95+=_0x43b054,_0x474f9e-=_0x43b054,_0x474f9e<=_0x41339d['y']&&(_0x3a0f95-=_0x41339d['y']-_0x474f9e,_0x50840c=_0x3a0f95*_0x32ee91,_0x5ee954=_0x4d0173['x'],_0x474f9e=_0x41339d['y'])):_0x32ee91&&(_0x2b7d24=_0x3a0f95*_0x32ee91-_0x50840c,_0x50840c+=_0x2b7d24,_0x5ee954+_0x50840c>=_0x41339d['x']+_0x41339d['width']&&(_0x50840c=_0x41339d['x']+_0x41339d['width']-_0x5ee954,_0x3a0f95=_0x50840c/_0x32ee91,_0x5ee954=_0x41339d['x']+_0x41339d['width']-_0x50840c,_0x474f9e=_0x4d0173['y']+_0x4d0173['height']-_0x3a0f95)),_0x3a0f95<MIN_CROP_SIZE&&(_0x3a0f95=MIN_CROP_SIZE,_0x32ee91&&(_0x50840c=_0x3a0f95*_0x32ee91),_0x474f9e=_0x4d0173['y']+_0x4d0173['height']-_0x3a0f95),_0x50840c<MIN_CROP_SIZE&&(_0x50840c=MIN_CROP_SIZE,_0x32ee91&&(_0x3a0f95=_0x50840c/_0x32ee91),_0x474f9e=_0x4d0173['y']+_0x4d0173['height']-_0x3a0f95),{'x':_0x5ee954,'y':_0x474f9e,'width':_0x50840c,'height':_0x3a0f95};}function resizeSouthWest({rect:_0x302020,delta:_0x243f76,aspectRatio:_0x4b09d5,imageBox:_0x3900a0}){let [_0x46966d,_0x4e598b]=_0x243f76,{x:_0x38c11a,y:_0x4df542,width:_0x4de3ff,height:_0x3c85e2}=_0x302020;return _0x38c11a+_0x46966d<_0x3900a0['x']&&(_0x46966d=_0x3900a0['x']-_0x38c11a),_0x4df542+_0x3c85e2+_0x4e598b>_0x3900a0['y']+_0x3900a0['height']&&(_0x4e598b=_0x3900a0['y']+_0x3900a0['height']-_0x4df542-_0x3c85e2),_0x38c11a+=_0x46966d,_0x4de3ff-=_0x46966d,_0x3c85e2+=_0x4e598b,_0x4b09d5&&Math['abs'](_0x4de3ff/_0x3c85e2)>_0x4b09d5?(_0x4e598b=_0x4de3ff/_0x4b09d5-_0x3c85e2,_0x3c85e2+=_0x4e598b,_0x4df542+_0x3c85e2>=_0x3900a0['y']+_0x3900a0['height']&&(_0x3c85e2=_0x3900a0['y']+_0x3900a0['height']-_0x4df542,_0x4de3ff=_0x3c85e2*_0x4b09d5,_0x38c11a=_0x302020['x']+_0x302020['width']-_0x4de3ff,_0x4df542=_0x3900a0['y']+_0x3900a0['height']-_0x3c85e2)):_0x4b09d5&&(_0x46966d=_0x3c85e2*_0x4b09d5-_0x4de3ff,_0x4de3ff+=_0x46966d,_0x38c11a-=_0x46966d,_0x38c11a<=_0x3900a0['x']&&(_0x4de3ff-=_0x3900a0['x']-_0x38c11a,_0x3c85e2=_0x4de3ff/_0x4b09d5,_0x38c11a=_0x3900a0['x'],_0x4df542=_0x302020['y'])),_0x3c85e2<MIN_CROP_SIZE&&(_0x3c85e2=MIN_CROP_SIZE,_0x4b09d5&&(_0x4de3ff=_0x3c85e2*_0x4b09d5),_0x38c11a=_0x302020['x']+_0x302020['width']-_0x4de3ff),_0x4de3ff<MIN_CROP_SIZE&&(_0x4de3ff=MIN_CROP_SIZE,_0x4b09d5&&(_0x3c85e2=_0x4de3ff/_0x4b09d5),_0x38c11a=_0x302020['x']+_0x302020['width']-_0x4de3ff),{'x':_0x38c11a,'y':_0x4df542,'width':_0x4de3ff,'height':_0x3c85e2};}function resizeSouthEast({rect:_0x426906,delta:_0x34132d,aspectRatio:_0x19c388,imageBox:_0x56303d}){let [_0x43d723,_0x2c32a9]=_0x34132d,{x:_0x5c5939,y:_0x5340d0,width:_0x548ff,height:_0x453be2}=_0x426906;return _0x5c5939+_0x548ff+_0x43d723>_0x56303d['x']+_0x56303d['width']&&(_0x43d723=_0x56303d['x']+_0x56303d['width']-_0x5c5939-_0x548ff),_0x5340d0+_0x453be2+_0x2c32a9>_0x56303d['y']+_0x56303d['height']&&(_0x2c32a9=_0x56303d['y']+_0x56303d['height']-_0x5340d0-_0x453be2),_0x548ff+=_0x43d723,_0x453be2+=_0x2c32a9,_0x19c388&&Math['abs'](_0x548ff/_0x453be2)>_0x19c388?(_0x2c32a9=_0x548ff/_0x19c388-_0x453be2,_0x453be2+=_0x2c32a9,_0x5340d0+_0x453be2>=_0x56303d['y']+_0x56303d['height']&&(_0x453be2=_0x56303d['y']+_0x56303d['height']-_0x5340d0,_0x548ff=_0x453be2*_0x19c388,_0x5c5939=_0x426906['x'],_0x5340d0=_0x56303d['y']+_0x56303d['height']-_0x453be2)):_0x19c388&&(_0x43d723=_0x453be2*_0x19c388-_0x548ff,_0x548ff+=_0x43d723,_0x5c5939+_0x548ff>=_0x56303d['x']+_0x56303d['width']&&(_0x548ff=_0x56303d['x']+_0x56303d['width']-_0x5c5939,_0x453be2=_0x548ff/_0x19c388,_0x5c5939=_0x56303d['x']+_0x56303d['width']-_0x548ff,_0x5340d0=_0x426906['y'])),_0x453be2<MIN_CROP_SIZE&&(_0x453be2=MIN_CROP_SIZE,_0x19c388&&(_0x548ff=_0x453be2*_0x19c388)),_0x548ff<MIN_CROP_SIZE&&(_0x548ff=MIN_CROP_SIZE,_0x19c388&&(_0x453be2=_0x548ff/_0x19c388)),{'x':_0x5c5939,'y':_0x5340d0,'width':_0x548ff,'height':_0x453be2};}function resizeRect({direction:_0x3ca9cc,..._0x26c215}){switch(_0x3ca9cc){case'n':return resizeNorth(_0x26c215);case'w':return resizeWest(_0x26c215);case's':return resizeSouth(_0x26c215);case'e':return resizeEast(_0x26c215);case'nw':return resizeNorthWest(_0x26c215);case'ne':return resizeNorthEast(_0x26c215);case'sw':return resizeSouthWest(_0x26c215);case'se':return resizeSouthEast(_0x26c215);default:return _0x26c215['rect'];}}function rectContainsPoint(_0x1ae55e,[_0x444c4a,_0x4e40cc]){return _0x1ae55e['x']<=_0x444c4a&&_0x444c4a<=_0x1ae55e['x']+_0x1ae55e['width']&&_0x1ae55e['y']<=_0x4e40cc&&_0x4e40cc<=_0x1ae55e['y']+_0x1ae55e['height'];}function isRectInsideRect(_0x5e178f,_0x34b85e){return _0x5e178f['x']>=_0x34b85e['x']&&_0x5e178f['y']>=_0x34b85e['y']&&_0x5e178f['x']+_0x5e178f['width']<=_0x34b85e['x']+_0x34b85e['width']&&_0x5e178f['y']+_0x5e178f['height']<=_0x34b85e['y']+_0x34b85e['height'];}function isRectMatchesAspectRatio(_0x5750eb,_0x20c90a){return Math['abs'](_0x5750eb['width']/_0x5750eb['height']-_0x20c90a)<0.1;}function rotateSize({width:_0x4688b1,height:_0x454c98},_0x3d49db){const _0x28fb56=_0x3d49db/0x5a%0x2!=0x0;return{'width':_0x28fb56?_0x454c98:_0x4688b1,'height':_0x28fb56?_0x4688b1:_0x454c98};}function calculateMaxCenteredCropFrame(_0x1184e6,_0x304e47,_0x283a99){let _0x11cf42,_0x1e4359;_0x1184e6/_0x304e47>_0x283a99?(_0x11cf42=Math['round'](_0x304e47*_0x283a99),_0x1e4359=_0x304e47):(_0x11cf42=_0x1184e6,_0x1e4359=Math['round'](_0x1184e6/_0x283a99));const _0x58d955=Math['round']((_0x1184e6-_0x11cf42)/0x2),_0x5f137d=Math['round']((_0x304e47-_0x1e4359)/0x2);return _0x58d955+_0x11cf42>_0x1184e6&&(_0x11cf42=_0x1184e6-_0x58d955),_0x5f137d+_0x1e4359>_0x304e47&&(_0x1e4359=_0x304e47-_0x5f137d),{'x':_0x58d955,'y':_0x5f137d,'width':_0x11cf42,'height':_0x1e4359};}function roundRect(_0x2941af){return{'x':Math['round'](_0x2941af['x']),'y':Math['round'](_0x2941af['y']),'width':Math['round'](_0x2941af['width']),'height':Math['round'](_0x2941af['height'])};}function clamp(_0x4d75b5,_0x2e6579,_0xc370cc){return Math['min'](Math['max'](_0x4d75b5,_0x2e6579),_0xc370cc);}var EXCLUDED_TYPES=['free'],parseCropPreset=_0x51472f=>{const _0x2acfbe=stringToArray(_0x51472f);if(!_0x2acfbe||0x0===_0x2acfbe['length'])return[];const _0x386a18=[];for(const _0x8beaa2 of _0x2acfbe){const _0x406043=_0x8beaa2['trim']();if(!_0x406043)continue;const _0x5bc672=_0x406043['indexOf'](':');if(-0x1===_0x5bc672&&!EXCLUDED_TYPES['includes'](_0x406043)){console['warn']('Invalid\x20crop\x20preset:\x20'+_0x406043);continue;}const _0x2e0158=Number(_0x406043['slice'](0x0,_0x5bc672)),_0x234cf9=Number(_0x406043['slice'](_0x5bc672+0x1));!(!Number['isFinite'](_0x2e0158)||!Number['isFinite'](_0x234cf9)||_0x2e0158<=0x0||_0x234cf9<=0x0)||EXCLUDED_TYPES['includes'](_0x406043)?_0x386a18['push']({'id':UID['generate'](),'type':'aspect-ratio','width':EXCLUDED_TYPES['includes'](_0x406043)?0x0:_0x2e0158,'height':EXCLUDED_TYPES['includes'](_0x406043)?0x0:_0x234cf9,'hasFreeform':EXCLUDED_TYPES['includes'](_0x406043)}):console['warn']('Invalid\x20crop\x20preset:\x20'+_0x406043);}return _0x386a18;},getClosestAspectRatio=(_0x227ebc,_0x1cd0ad,_0x5f23a5,_0x54c9dc=0.1)=>{const _0x3fcd09=_0x227ebc/_0x1cd0ad;let _0xd0a875=null,_0x2ddb36=0x1/0x0;for(const _0x37bbb2 of _0x5f23a5){const [_0x130317,_0x446012]=[_0x37bbb2['width'],_0x37bbb2['height']],_0x2830d1=_0x130317/_0x446012,_0x15c41b=Math['abs'](_0x3fcd09-_0x2830d1);_0x15c41b<_0x2ddb36&&(_0x2ddb36=_0x15c41b,_0xd0a875=_0x37bbb2);}if(_0xd0a875){const [_0x31cf47,_0x21bda4]=[_0xd0a875['width'],_0xd0a875['height']],_0x36ea4e=_0x31cf47/_0x21bda4;if(Math['abs'](_0x3fcd09-_0x36ea4e)/_0x36ea4e>_0x54c9dc)return null;}return _0xd0a875;},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});function customUserAgent(_0x10935f){return getUserAgent$1({..._0x10935f,'libraryName':PACKAGE_NAME,'libraryVersion':PACKAGE_VERSION});}var msToUnixTimestamp=_0x3e6583=>'number'!=typeof _0x3e6583?0x0:Math['floor'](_0x3e6583/0x3e8),isSecureTokenExpired=(_0x5aca3a,{threshold:_0x9a0a7})=>{const {secureExpire:_0x11d6c3}=_0x5aca3a,_0x5662dd=msToUnixTimestamp(Date['now']()),_0x4eea78=Number(_0x11d6c3);return _0x5662dd+msToUnixTimestamp(_0x9a0a7)>=_0x4eea78;},SecureUploadsManager=class{['_block'];['_secureToken']=null;constructor(_0x2b944c){this['_block']=_0x2b944c;}['_debugPrint'](..._0x2ef03e){this['_block']['debugPrint']('[secure-uploads]',..._0x2ef03e);}async['getSecureToken'](){const {secureSignature:_0x2273a4,secureExpire:_0x377c7b,secureUploadsSignatureResolver:_0x3d08e1}=this['_block']['cfg'];if((_0x2273a4||_0x377c7b)&&_0x3d08e1&&console['warn']('Both\x20secureSignature/secureExpire\x20and\x20secureUploadsSignatureResolver\x20are\x20set.\x20secureUploadsSignatureResolver\x20will\x20be\x20used.'),_0x3d08e1){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 _0xd161b5=await _0x3d08e1();_0xd161b5?_0xd161b5['secureSignature']&&_0xd161b5['secureExpire']?(this['_debugPrint']('Secure\x20signature\x20resolved:',_0xd161b5),this['_debugPrint']('Secure\x20signature\x20will\x20expire\x20in',new Date(0x3e8*Number(_0xd161b5['secureExpire']))['toISOString']()),this['_secureToken']=_0xd161b5):console['error']('Secure\x20signature\x20resolver\x20returned\x20an\x20invalid\x20result:',_0xd161b5):(this['_debugPrint']('Secure\x20signature\x20resolver\x20returned\x20nothing.'),this['_secureToken']=null);}catch(_0x6d6183){console['error']('Secure\x20signature\x20resolving\x20failed.\x20Falling\x20back\x20to\x20the\x20previous\x20one.',_0x6d6183),this['_block']['telemetryManager']['sendEventError'](_0x6d6183,'secureUploadsSignatureResolver.\x20Secure\x20signature\x20resolving\x20failed.\x20Falling\x20back\x20to\x20the\x20previous\x20one.');}}return this['_secureToken'];}return _0x2273a4&&_0x377c7b?(this['_debugPrint']('Secure\x20signature\x20and\x20expire\x20are\x20set.\x20Using\x20them...',{'secureSignature':_0x2273a4,'secureExpire':_0x377c7b}),{'secureSignature':_0x2273a4,'secureExpire':_0x377c7b}):null;}},validateCollectionUploadError=(_0x5e2ea2,_0x2ade50)=>{if(_0x5e2ea2['failedCount']>0x0)return{'type':'SOME_FILES_HAS_ERRORS','message':_0x2ade50['l10n']('some-files-were-not-uploaded')};},validateMultiple=(_0x119510,_0x566fb9)=>{const _0x1f5bbc=_0x119510['totalCount'],_0x138806=_0x566fb9['cfg']['multiple']?_0x566fb9['cfg']['multipleMin']:0x0,_0x202a6b=_0x566fb9['cfg']['multiple']?_0x566fb9['cfg']['multipleMax']:0x1;if(_0x138806&&_0x1f5bbc<_0x138806)return{'type':'TOO_FEW_FILES','message':_0x566fb9['l10n']('files-count-limit-error-too-few',{'min':_0x138806,'max':_0x202a6b,'total':_0x1f5bbc}),'payload':{'total':_0x1f5bbc,'min':_0x138806,'max':_0x202a6b}};if(_0x202a6b&&_0x1f5bbc>_0x202a6b)return{'type':'TOO_MANY_FILES','message':_0x566fb9['l10n']('files-count-limit-error-too-many',{'min':_0x138806,'max':_0x202a6b,'total':_0x1f5bbc}),'payload':{'total':_0x1f5bbc,'min':_0x138806,'max':_0x202a6b}};},calcIsDesktopSafari=()=>{const _0x414059=navigator['userAgent'];return/Macintosh|Windows/['test'](_0x414059)&&/Version\/[\d.]+.*Safari/['test'](_0x414059)&&!/Chrome|Chromium|Edg|OPR/['test'](_0x414059);},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=_0x2f46ac=>_0x2f46ac?_0x2f46ac['filter'](_0x52fa0c=>'string'==typeof _0x52fa0c)['flatMap'](_0x3f0155=>stringToArray(_0x3f0155)):[],matchMimeType=(_0x44542a,_0x1cf977)=>_0x1cf977['some'](_0x1262a9=>{if(_0x1262a9['endsWith']('*')){const _0x4e00f0=_0x1262a9['replace']('*','');return _0x44542a['startsWith'](_0x4e00f0);}return _0x44542a===_0x1262a9;}),matchExtension=(_0x3f5cd5,_0x4826e7)=>_0x4826e7['some'](_0x2f2a28=>!!_0x2f2a28['startsWith']('.')&&_0x3f5cd5['toLowerCase']()['endsWith'](_0x2f2a28['toLowerCase']())),fileIsImage=_0x22fbe3=>{const _0x1a4f8e=_0x22fbe3?.['type'];return!!_0x1a4f8e&&matchMimeType(_0x1a4f8e,IMAGE_ACCEPT_LIST);},validateFileType=(_0x54ccd9,_0x413898)=>{const _0x30104a=_0x413898['cfg']['imgOnly'],_0x231ed0=_0x413898['cfg']['accept'],_0x3a93d9=mergeFileTypes([..._0x30104a?IMAGE_ACCEPT_LIST:[],_0x231ed0]);if(!_0x3a93d9['length'])return;const _0x25d7d7=_0x54ccd9['mimeType'],_0x58e987=_0x54ccd9['name'];if(!_0x25d7d7||!_0x58e987)return;const _0x3c4b2a=matchMimeType(_0x25d7d7,_0x3a93d9),_0x5aa0b3=matchExtension(_0x58e987,_0x3a93d9);return _0x3c4b2a||_0x5aa0b3?void 0x0:{'type':'FORBIDDEN_FILE_TYPE','message':_0x413898['l10n']('file-type-not-allowed'),'payload':{'entry':_0x54ccd9}};},validateIsImage=(_0x3ad429,_0x2dc6ab)=>{const _0x4ee770=_0x2dc6ab['cfg']['imgOnly'],_0x784f2a=_0x3ad429['isImage'];if(_0x4ee770&&!_0x784f2a&&(_0x3ad429['fileInfo']||!_0x3ad429['externalUrl'])&&(_0x3ad429['fileInfo']||_0x3ad429['mimeType']))return{'type':'NOT_AN_IMAGE','message':_0x2dc6ab['l10n']('images-only-accepted'),'payload':{'entry':_0x3ad429}};},BASE=0x3e8,ByteUnitEnum=Object['freeze']({'AUTO':'auto','BYTE':'byte','KB':'kb','MB':'mb','GB':'gb','TB':'tb','PB':'pb'}),round=_0x7d54b5=>Math['ceil'](0x64*_0x7d54b5)/0x64,prettyBytes=(_0x4332ae,_0x283abc=ByteUnitEnum['AUTO'])=>{const _0x1ba3cc=_0x283abc===ByteUnitEnum['AUTO'];if(_0x283abc===ByteUnitEnum['BYTE']||_0x1ba3cc&&_0x4332ae<BASE**0x1)return _0x4332ae+'\x20'+('one'===getPluralForm('en-US',_0x4332ae)?'byte':'bytes');return _0x283abc===ByteUnitEnum['KB']||_0x1ba3cc&&_0x4332ae<BASE**0x2?round(_0x4332ae/BASE**0x1)+'\x20KB':_0x283abc===ByteUnitEnum['MB']||_0x1ba3cc&&_0x4332ae<BASE**0x3?round(_0x4332ae/BASE**0x2)+'\x20MB':_0x283abc===ByteUnitEnum['GB']||_0x1ba3cc&&_0x4332ae<BASE**0x4?round(_0x4332ae/BASE**0x3)+'\x20GB':_0x283abc===ByteUnitEnum['TB']||_0x1ba3cc&&_0x4332ae<BASE**0x5?round(_0x4332ae/BASE**0x4)+'\x20TB':round(_0x4332ae/BASE**0x5)+'\x20PB';},validateMaxSizeLimit=(_0xf78686,_0xce10cf)=>{const _0x513021=_0xce10cf['cfg']['maxLocalFileSizeBytes'],_0x36f516=_0xf78686['size'];if(_0x513021&&_0x36f516&&_0x36f516>_0x513021)return{'type':'FILE_SIZE_EXCEEDED','message':_0xce10cf['l10n']('files-max-size-limit-error',{'maxFileSize':prettyBytes(_0x513021)}),'payload':{'entry':_0xf78686}};},validateUploadError=(_0x53bbd4,_0x121f23)=>{const {internalId:_0x21705a}=_0x53bbd4,_0x123906=_0x121f23['_uploadCollection']['read'](_0x21705a),_0x1cc555=_0x123906?.['getValue']('uploadError');if(!_0x1cc555)return;if(_0x1cc555 instanceof UploadError)return{'type':'UPLOAD_ERROR','message':_0x1cc555['message'],'payload':{'entry':_0x53bbd4,'error':_0x1cc555}};if(_0x1cc555 instanceof NetworkError)return{'type':'NETWORK_ERROR','message':_0x1cc555['message'],'payload':{'entry':_0x53bbd4,'error':_0x1cc555}};const _0x545e69=_0x1cc555 instanceof Error?_0x1cc555:new Error('Unknown\x20error',{'cause':_0x1cc555});return{'type':'UNKNOWN_ERROR','message':_0x545e69['message'],'payload':{'entry':_0x53bbd4,'error':_0x545e69}};},withResolvers=()=>{let _0x5a5888=()=>{},_0x276279=()=>{};return{'promise':new Promise((_0xe1e2,_0x201eb7)=>{_0x5a5888=_0xe1e2,_0x276279=_0x201eb7;}),'resolve':_0x5a5888,'reject':_0x276279};},LOG_TEXT={'FILE_VALIDATION_FAILED':'File\x20validator\x20execution\x20has\x20failed','FILE_VALIDATION_TIMEOUT':'File\x20validator\x20execution\x20has\x20timed\x20out','COLLECTION_VALIDATION_FAILED':'Collection\x20validator\x20execution\x20has\x20failed','MISSING_ERROR_MESSAGE':'Missing\x20message.\x20We\x20recommend\x20adding\x20message:\x20value.'},getValidatorDescriptor=_0xccc14d=>'function'==typeof _0xccc14d?{'runOn':'change','validator':_0xccc14d}:_0xccc14d,ValidationManager=class{['_blockInstance'];['_uploadCollection'];['_commonFileValidators']=[validateIsImage,validateFileType,validateMaxSizeLimit,validateUploadError];['_commonCollectionValidators']=[validateMultiple,validateCollectionUploadError];['_queue']=new Queue(0x14);['_runQueueDebounced']=debounce(()=>{this['_queue']['run']();},0x1f4);['_entryValidationState']=new Map();constructor(_0x1fc89d){this['_blockInstance']=_0x1fc89d,this['_uploadCollection']=this['_blockInstance']['uploadCollection'];const _0xd12cc=()=>{this['runFileValidators']('change'),this['runCollectionValidators']();};this['_blockInstance']['subConfigValue']('maxLocalFileSizeBytes',_0xd12cc),this['_blockInstance']['subConfigValue']('multipleMin',_0xd12cc),this['_blockInstance']['subConfigValue']('multipleMax',_0xd12cc),this['_blockInstance']['subConfigValue']('multiple',_0xd12cc),this['_blockInstance']['subConfigValue']('imgOnly',_0xd12cc),this['_blockInstance']['subConfigValue']('accept',_0xd12cc),this['_blockInstance']['subConfigValue']('validationConcurrency',_0x354725=>{this['_queue']['concurrency']=_0x354725;});}['runFileValidators'](_0x234d42,_0x5ef241){const _0x11502a=_0x5ef241??this['_uploadCollection']['items']();for(const _0x3610a7 of _0x11502a){const _0x2f385f=this['_uploadCollection']['read'](_0x3610a7);_0x2f385f&&this['_runFileValidatorsForEntry'](_0x2f385f,_0x234d42);}}['runCollectionValidators'](){const _0x6de23d=this['_blockInstance']['api']['getOutputCollectionState'](),_0x5f01a2=[];for(const _0x3deaa8 of[...this['_commonCollectionValidators'],...this['_blockInstance']['cfg']['collectionValidators']])try{const _0x4551dc=_0x3deaa8(_0x6de23d,this['_blockInstance']['api']);if(!_0x4551dc)continue;_0x4551dc&&(_0x5f01a2['push'](this['_addCustomTypeToValidationError'](_0x4551dc)),_0x4551dc['message']||console['warn'](LOG_TEXT['MISSING_ERROR_MESSAGE']));}catch(_0x13bead){console['warn'](LOG_TEXT['COLLECTION_VALIDATION_FAILED'],_0x13bead);}this['_blockInstance']['$']['*collectionErrors']=_0x5f01a2,_0x5f01a2['length']>0x0&&this['_blockInstance']['emit'](EventType['COMMON_UPLOAD_FAILED'],()=>this['_blockInstance']['api']['getOutputCollectionState'](),{'debounce':!0x0});}['cleanupValidationForEntry'](_0x4fb6e4){const _0x1c6a0e=this['_entryValidationState']['get'](_0x4fb6e4['uid']);_0x1c6a0e&&(_0x1c6a0e['abortController']?.['abort'](),this['_entryValidationState']['delete'](_0x4fb6e4['uid']));}async['_runFileValidatorsForEntry'](_0x12adef,_0x4b29fb){const _0x217285=this['_getValidatorDescriptorsForEntry'](_0x12adef,_0x4b29fb);if(0x0===_0x217285['length'])return;_0x12adef['setMultipleValues']({'isQueuedForValidation':!0x0,'isValidationPending':!0x0});const _0x156991=this['_blockInstance']['api']['getOutputItem'](_0x12adef['uid']),_0x2b8ae2=this['_getEntryValidationState'](_0x12adef);_0x2b8ae2['promise']&&await _0x2b8ae2['promise'];const {promise:_0x42cb26,resolve:_0x587a83}=withResolvers();_0x2b8ae2['promise']=_0x42cb26;const _0x98d23b=new AbortController();_0x2b8ae2['abortController']=_0x98d23b;const _0x546be4=this['_blockInstance']['cfg']['validationTimeout'],_0x259f11=this['_getValidatorDescriptors'](),_0x3e1f76=new Set(_0x217285['map'](_0x1b4979=>_0x1b4979['validator'])),_0x3b03d5=[];for(const _0xc1a60 of _0x259f11)if(!_0x3e1f76['has'](_0xc1a60['validator'])){const _0x482244=_0x2b8ae2['lastErrorThrownByValidator']['get'](_0xc1a60['validator']);_0x482244&&_0x3b03d5['push'](_0x482244);}const _0x11b65d=_0x217285['map'](_0x6b86b1=>async()=>{if(!this['_blockInstance']['isConnected'])return;const _0xab4e44=setTimeout(()=>{_0x2b8ae2['skippedValidators']['add'](_0x6b86b1['validator']),_0x98d23b['abort'](),console['warn'](LOG_TEXT['FILE_VALIDATION_TIMEOUT']);},_0x546be4);try{const _0x50f2f7=await _0x6b86b1['validator'](_0x156991,this['_blockInstance']['api'],{'signal':_0x98d23b['signal']});if(!_0x50f2f7||_0x98d23b['signal']['aborted'])return void _0x2b8ae2['lastErrorThrownByValidator']['set'](_0x6b86b1['validator'],void 0x0);const _0x3dd8c7=this['_addCustomTypeToValidationError'](_0x50f2f7);_0x2b8ae2['lastErrorThrownByValidator']['set'](_0x6b86b1['validator'],_0x3dd8c7),_0x3b03d5['push'](_0x3dd8c7),_0x50f2f7['message']||console['warn'](LOG_TEXT['MISSING_ERROR_MESSAGE']);}catch(_0x52514c){_0x98d23b['signal']['aborted']||(_0x2b8ae2['skippedValidators']['add'](_0x6b86b1['validator']),console['warn'](LOG_TEXT['FILE_VALIDATION_FAILED'],_0x52514c),this['_blockInstance']['telemetryManager']['sendEventError'](_0x52514c,'file\x20validator.\x20'+LOG_TEXT['FILE_VALIDATION_FAILED']));}finally{clearTimeout(_0xab4e44),'change'!==_0x6b86b1['runOn']&&_0x2b8ae2['skippedValidators']['add'](_0x6b86b1['validator']);}});if(this['_runQueueDebounced'](),await this['_queue']['add'](async()=>{_0x12adef['setValue']('isQueuedForValidation',!0x1),await Promise['all'](_0x11b65d['map'](_0x109cb0=>_0x109cb0()))['catch'](()=>{});},{'autoRun':!0x1}),_0x98d23b['signal']['aborted'])return _0x12adef['setMultipleValues']({'isQueuedForValidation':!0x1,'isValidationPending':!0x1}),void _0x587a83();_0x12adef['setMultipleValues']({'isValidationPending':!0x1,'isQueuedForValidation':!0x1,'errors':_0x3b03d5}),_0x587a83();}['_addCustomTypeToValidationError'](_0x3bc97a){return{..._0x3bc97a,'type':_0x3bc97a['type']??'CUSTOM_ERROR'};}['_getEntryValidationState'](_0x1d5640){const _0x360ae1=this['_entryValidationState']['get'](_0x1d5640['uid']);if(_0x360ae1)return _0x360ae1;const _0x4cceb9={'abortController':void 0x0,'skippedValidators':new WeakSet(),'promise':void 0x0,'lastErrorThrownByValidator':new WeakMap()};return this['_entryValidationState']['set'](_0x1d5640['uid'],_0x4cceb9),_0x4cceb9;}['_getValidatorDescriptors'](){return[...this['_commonFileValidators'],...this['_blockInstance']['cfg']['fileValidators']]['map'](getValidatorDescriptor);}['_getValidatorDescriptorsForEntry'](_0x12a94b,_0x5e28fa){const _0x2cb2d4=this['_getEntryValidationState'](_0x12a94b);return this['_getValidatorDescriptors']()['filter'](_0x3dbbd4=>!_0x2cb2d4['skippedValidators']['has'](_0x3dbbd4['validator']))['filter'](_0x4851b9=>_0x4851b9['runOn']===_0x5e28fa);}},MSG_NAME='[Typed\x20State]\x20Wrong\x20property\x20name:\x20',MSG_TYPE='[Typed\x20State]\x20Wrong\x20property\x20type:\x20',TypedData=class{['__typedSchema'];['__ctxId'];['__schema'];['__data'];constructor(_0x47ab90,_0x47f2e9){this['__typedSchema']=_0x47ab90,this['__ctxId']=_0x47f2e9||UID['generate'](),this['__schema']=Object['keys'](_0x47ab90)['reduce']((_0x3fe118,_0x1cccfe)=>(_0x47ab90[_0x1cccfe]&&(_0x3fe118[_0x1cccfe]=_0x47ab90[_0x1cccfe]['value']),_0x3fe118),{}),this['__data']=Data['registerCtx'](this['__schema'],this['__ctxId']);}get['uid'](){return this['__ctxId'];}['setValue'](_0x5c6483,_0x3ddbae){if(!Object['hasOwn'](this['__typedSchema'],_0x5c6483)||!this['__typedSchema'][_0x5c6483])return void console['warn'](MSG_NAME+_0x5c6483);const _0x5bc21e=this['__typedSchema'][_0x5c6483],_0x3ed2fc=_0x3ddbae?.['constructor']===_0x5bc21e['type'],_0xd7c51=_0x3ddbae instanceof _0x5bc21e['type'],_0x499783=_0x5bc21e['nullable']&&null===_0x3ddbae;_0x3ed2fc||_0xd7c51||_0x499783?this['__data']['pub'](_0x5c6483,_0x3ddbae):console['warn'](MSG_TYPE+_0x5c6483);}['setMultipleValues'](_0x14490d){for(const [_0xc0715d,_0x558925]of Object['entries'](_0x14490d))this['setValue'](_0xc0715d,_0x558925);}['getValue'](_0x5e9770){return Object['hasOwn'](this['__typedSchema'],_0x5e9770)||console['warn'](MSG_NAME+_0x5e9770),this['__data']['read'](_0x5e9770);}['subscribe'](_0x5cba89,_0x4d52ab){return this['__data']['sub'](_0x5cba89,_0x4d52ab);}['remove'](){Data['deleteCtx'](this['__ctxId']);}},TypedCollection=class{['__typedSchema'];['__ctxId'];['__data'];['__watchList'];['__subsMap']=Object['create'](null);['__propertyObservers']=new Set();['__collectionObservers']=new Set();['__items']=new Set();['__removed']=new Set();['__added']=new Set();['__observeTimeout'];['__notifyTimeout'];['__notifyObservers'];constructor(_0x3ff204){this['__typedSchema']=_0x3ff204['typedSchema'],this['__ctxId']=_0x3ff204['ctxName']||UID['generate'](),this['__data']=Data['registerCtx']({},this['__ctxId']),this['__watchList']=_0x3ff204['watchList']||[];let _0x54cd7b=Object['create'](null);this['__notifyObservers']=(_0x265315,_0x2c307e)=>{this['__observeTimeout']&&window['clearTimeout'](this['__observeTimeout']),_0x54cd7b[_0x265315]||(_0x54cd7b[_0x265315]=new Set()),_0x54cd7b[_0x265315]['add'](_0x2c307e),this['__observeTimeout']=window['setTimeout'](()=>{0x0!==Object['keys'](_0x54cd7b)['length']&&(this['__propertyObservers']['forEach'](_0x1eb841=>{_0x1eb841({..._0x54cd7b});}),_0x54cd7b=Object['create'](null));});},_0x3ff204['handler']&&this['observeCollection'](_0x3ff204['handler']);}['notify'](){this['__notifyTimeout']&&window['clearTimeout'](this['__notifyTimeout']),this['__notifyTimeout']=window['setTimeout'](()=>{const _0x492430=new Set(this['__added']),_0x5a3ea1=new Set(this['__removed']);this['__added']['clear'](),this['__removed']['clear']();for(const _0x23736c of this['__collectionObservers'])_0x23736c?.([...this['__items']],_0x492430,_0x5a3ea1);});}['observeCollection'](_0x58c0b6){return this['__collectionObservers']['add'](_0x58c0b6),this['__items']['size']>0x0&&this['notify'](),()=>{this['unobserveCollection'](_0x58c0b6);};}['unobserveCollection'](_0x4e82aa){this['__collectionObservers']['delete'](_0x4e82aa);}['add'](_0x402e51){const _0x402b1e=new TypedData(this['__typedSchema']);for(const [_0x3e82f0,_0x80f19]of Object['entries'](_0x402e51))void 0x0!==_0x80f19&&_0x402b1e['setValue'](_0x3e82f0,_0x80f19);return this['__items']['add'](_0x402b1e['uid']),this['notify'](),this['__data']['add'](_0x402b1e['uid'],_0x402b1e),this['__added']['add'](_0x402b1e),this['__watchList']['forEach'](_0x6ccb=>{this['__subsMap'][_0x402b1e['uid']]||(this['__subsMap'][_0x402b1e['uid']]=[]),this['__subsMap'][_0x402b1e['uid']]?.['push'](_0x402b1e['subscribe'](_0x6ccb,()=>{this['__notifyObservers'](_0x6ccb,_0x402b1e['uid']);}));}),_0x402b1e['uid'];}['read'](_0x310f2b){return this['__data']['read'](_0x310f2b);}['readProp'](_0x5b8cb6,_0x44a91d){const _0x573b07=this['read'](_0x5b8cb6);return _0x573b07?_0x573b07['getValue'](_0x44a91d):(console['warn']('Item\x20with\x20id\x20'+_0x5b8cb6+'\x20not\x20found'),null);}['publishProp'](_0x372007,_0x5d6aa2,_0x1fc461){const _0x3cd718=this['read'](_0x372007);_0x3cd718?_0x3cd718['setValue'](_0x5d6aa2,_0x1fc461):console['warn']('Item\x20with\x20id\x20'+_0x372007+'\x20not\x20found');}['remove'](_0x26e9c0){const _0x8d9e33=this['read'](_0x26e9c0);_0x8d9e33&&this['__removed']['add'](_0x8d9e33),this['__items']['delete'](_0x26e9c0),this['notify'](),this['__data']['pub'](_0x26e9c0,null),delete this['__subsMap'][_0x26e9c0];}['clearAll'](){this['__items']['forEach'](_0x1d5fbb=>{this['remove'](_0x1d5fbb);});}['observeProperties'](_0x3c2b82){return this['__propertyObservers']['add'](_0x3c2b82),()=>{this['unobserveProperties'](_0x3c2b82);};}['unobserveProperties'](_0x58eba9){this['__propertyObservers']['delete'](_0x58eba9);}['findItems'](_0x2446e5){const _0x145876=[];return this['__items']['forEach'](_0xe52575=>{const _0x25c534=this['read'](_0xe52575);_0x25c534&&_0x2446e5(_0x25c534)&&_0x145876['push'](_0xe52575);}),_0x145876;}['items'](){return[...this['__items']];}get['size'](){return this['__items']['size'];}['destroy'](){Data['deleteCtx'](this['__ctxId']),this['__propertyObservers']=new Set(),this['__collectionObservers']=new Set();for(const _0x4edf44 in this['__subsMap'])this['__subsMap'][_0x4edf44]?.['forEach'](_0x500942=>{_0x500942['remove']();}),delete this['__subsMap'][_0x4edf44];}},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=_0x599637=>({'isVideoRecordingEnabled':deserializeCsv(_0x599637['cameraModes'])['includes'](CameraSourceTypes['VIDEO']),'isPhotoEnabled':deserializeCsv(_0x599637['cameraModes'])['includes'](CameraSourceTypes['PHOTO'])}),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:_0x11e797,cdnBase:_0x683bc9})=>{const _0xbb9730=new URL(_0x683bc9),_0x40cae1=new URL(DEFAULT_CDN_CNAME),_0x4d95f8=new URL(_0x11e797);if(_0xbb9730['host']!==_0x4d95f8['host']&&_0x40cae1['host']!==_0x4d95f8['host'])return null;const _0x4ae58d=cdnUrlRegex['exec'](_0x4d95f8['pathname']);if(!_0x4ae58d)return null;const [,_0x395841,_0x5e0fbc,_0x4b872b]=_0x4ae58d;return _0x395841?{'uuid':_0x395841,'cdnUrlModifiers':_0x5e0fbc||'','filename':_0x4b872b||null}:null;};function memoize(_0x56761b){const _0x1a07e2=new Map();return(..._0x188151)=>{const _0x324172=JSON['stringify'](_0x188151);if(_0x1a07e2['has'](_0x324172))return _0x1a07e2['get'](_0x324172);const _0x72bbdc=_0x56761b(..._0x188151);return _0x1a07e2['set'](_0x324172,_0x72bbdc),_0x72bbdc;};}var warnings=new Set();function warnOnce(_0x162970){warnings['has'](_0x162970)||(warnings['add'](_0x162970),console['warn'](_0x162970));}function createAsyncAssertWrapper(_0x527ebc){let _0x37a805=!0x1;return setTimeout(()=>{_0x37a805=!0x0;},0x0),_0x2f6e23=>(..._0x28d285)=>(_0x37a805&&warnOnce(_0x527ebc),_0x2f6e23(..._0x28d285));}function buildOutputCollectionState(_0x36ddd8){const _0x5b80d9={},_0x1638ec={'progress':()=>_0x36ddd8['$']['*commonProgress'],'errors':()=>_0x36ddd8['$']['*collectionErrors'],'group':()=>_0x36ddd8['$']['*groupInfo'],'totalCount':()=>_0x36ddd8['uploadCollection']['size'],'failedCount':()=>_0x5b80d9['failedEntries']['length'],'successCount':()=>_0x5b80d9['successEntries']['length'],'uploadingCount':()=>_0x5b80d9['uploadingEntries']['length'],'status':()=>_0x5b80d9['isFailed']?'failed':_0x5b80d9['isUploading']?'uploading':_0x5b80d9['isSuccess']?'success':'idle','isSuccess':()=>_0x5b80d9['allEntries']['length']>0x0&&0x0===_0x5b80d9['errors']['length']&&_0x5b80d9['successEntries']['length']===_0x5b80d9['allEntries']['length'],'isUploading':()=>_0x5b80d9['allEntries']['some'](_0x507af1=>'uploading'===_0x507af1['status']),'isFailed':()=>_0x5b80d9['errors']['length']>0x0||_0x5b80d9['failedEntries']['length']>0x0,'allEntries':()=>_0x36ddd8['getOutputData'](),'successEntries':()=>_0x5b80d9['allEntries']['filter'](_0x50a46e=>'success'===_0x50a46e['status']),'failedEntries':()=>_0x5b80d9['allEntries']['filter'](_0x340d87=>'failed'===_0x340d87['status']),'uploadingEntries':()=>_0x5b80d9['allEntries']['filter'](_0x1795c7=>'uploading'===_0x1795c7['status']),'idleEntries':()=>_0x5b80d9['allEntries']['filter'](_0xa980ed=>'idle'===_0xa980ed['status'])},_0x54069b=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 [_0x221433,_0xde9ea3]of Object['entries'](_0x1638ec)){const _0x1ddd01=_0x221433,_0x4dea37=memoize(_0x54069b(_0xde9ea3));Object['defineProperty'](_0x5b80d9,_0x1ddd01,{'get':_0x4dea37,'enumerable':!0x0});}return _0x5b80d9;}var UploaderPublicApi=class{['_ctx'];constructor(_0x19d51d){this['_ctx']=_0x19d51d;}get['_uploadCollection'](){return this['_ctx']['uploadCollection'];}get['cfg'](){return this['_ctx']['cfg'];}get['l10n'](){return this['_ctx']['l10n']['bind'](this['_ctx']);}['addFileFromUrl']=(_0x38280e,{silent:_0x4bb4ab,fileName:_0x2cb7d4,source:_0x5e259}={})=>{const _0x3b98b4=this['_uploadCollection']['add']({'externalUrl':_0x38280e,'fileName':_0x2cb7d4??null,'silent':_0x4bb4ab??!0x1,'source':_0x5e259??UploadSource['API']});return this['getOutputItem'](_0x3b98b4);};['addFileFromUuid']=(_0x582c18,{silent:_0x3d5456,fileName:_0x1be0a1,source:_0x14da35}={})=>{const _0x4b92a6=this['_uploadCollection']['add']({'uuid':_0x582c18,'fileName':_0x1be0a1??null,'silent':_0x3d5456??!0x1,'source':_0x14da35??UploadSource['API']});return this['getOutputItem'](_0x4b92a6);};['addFileFromCdnUrl']=(_0x3a6aed,{silent:_0x29d782,fileName:_0x31601a,source:_0x4189fb}={})=>{const _0x56e0b3=parseCdnUrl({'url':_0x3a6aed,'cdnBase':this['cfg']['cdnCname']});if(!_0x56e0b3)throw new Error('Invalid\x20CDN\x20URL');const _0x5e15ce=this['_uploadCollection']['add']({'uuid':_0x56e0b3['uuid'],'cdnUrl':_0x3a6aed,'cdnUrlModifiers':_0x56e0b3['cdnUrlModifiers'],'fileName':_0x31601a??_0x56e0b3['filename']??null,'silent':_0x29d782??!0x1,'source':_0x4189fb??UploadSource['API']});return this['getOutputItem'](_0x5e15ce);};['addFileFromObject']=(_0x230034,{silent:_0x6188c3,fileName:_0x53c55e,source:_0x586d07,fullPath:_0x2c61ac}={})=>{const _0x1f625=this['_uploadCollection']['add']({'file':_0x230034,'isImage':fileIsImage(_0x230034),'mimeType':_0x230034['type'],'fileName':_0x53c55e??_0x230034['name'],'fileSize':_0x230034['size'],'silent':_0x6188c3??!0x1,'source':_0x586d07??UploadSource['API'],'fullPath':_0x2c61ac??null});return this['getOutputItem'](_0x1f625);};['removeFileByInternalId']=_0x4fdc1b=>{if(!this['_uploadCollection']['read'](_0x4fdc1b))throw new Error('File\x20with\x20internalId\x20'+_0x4fdc1b+'\x20not\x20found');this['_uploadCollection']['remove'](_0x4fdc1b);};['removeAllFiles'](){this['_uploadCollection']['clearAll']();}['uploadAll']=()=>{const _0x31cc15=this['_uploadCollection']['items']()['filter'](_0x39eb80=>{const _0x567f96=this['_uploadCollection']['read'](_0x39eb80);return!!_0x567f96&&!(_0x567f96['getValue']('isRemoved')||_0x567f96['getValue']('isUploading')||_0x567f96['getValue']('fileInfo')||0x0!==_0x567f96['getValue']('errors')['length']||_0x567f96['getValue']('isValidationPending')||_0x567f96['getValue']('isQueuedForValidation'));});0x0!==_0x31cc15['length']&&(this['_ctx']['$']['*uploadTrigger']=new Set(_0x31cc15),this['_ctx']['emit'](EventType['COMMON_UPLOAD_START'],this['getOutputCollectionState']()));};['openSystemDialog']=(_0x1bfb44={})=>{const _0x176e7f=serializeCsv(mergeFileTypes([this['cfg']['accept']??'',...this['cfg']['imgOnly']?IMAGE_ACCEPT_LIST:[]])),_0xcd7be9='uploadcare-file-input',_0x5d8244=document['createElement']('input');if(_0x5d8244['setAttribute'](_0xcd7be9,''),applyStyles(_0x5d8244,{'opacity':0x0,'height':0x0,'width':0x0,'visibility':'hidden','position':'absolute','top':0x0,'left':0x0}),_0x5d8244['type']='file',_0x5d8244['multiple']=this['cfg']['multiple'],_0x1bfb44['captureCamera']){_0x5d8244['capture']=this['cfg']['cameraCapture'];const {isPhotoEnabled:_0x3efb69,isVideoRecordingEnabled:_0x3cc74f}=calcCameraModes(this['cfg']);_0x1bfb44['modeCamera']===CameraSourceTypes['PHOTO']&&_0x3efb69?_0x5d8244['accept']=BASIC_IMAGE_WILDCARD:_0x1bfb44['modeCamera']===CameraSourceTypes['VIDEO']&&_0x3cc74f?_0x5d8244['accept']=BASIC_VIDEO_WILDCARD:_0x5d8244['accept']=[BASIC_IMAGE_WILDCARD,_0x3cc74f&&BASIC_VIDEO_WILDCARD]['filter'](Boolean)['join'](',');}else _0x5d8244['accept']=_0x176e7f;_0x5d8244['addEventListener']('change',()=>{_0x5d8244['files']&&([..._0x5d8244['files']]['forEach'](_0x5353b1=>{this['addFileFromObject'](_0x5353b1,{'source':_0x1bfb44['captureCamera']?UploadSource['CAMERA']:UploadSource['LOCAL']});}),this['_ctx']['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['_ctx']['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],_0x5d8244['remove']());},{'once':!0x0}),document['querySelectorAll']('['+_0xcd7be9+']')['forEach'](_0x4b6c76=>{_0x4b6c76['remove']();}),document['body']['appendChild'](_0x5d8244),_0x5d8244['dispatchEvent'](new MouseEvent('click'));};['getOutputItem'](_0x43e3fb){const _0x971373=Data['getCtx'](_0x43e3fb)['store'],_0x90b6b6=_0x971373['fileInfo'],_0x4efea6=_0x971373['isRemoved']?'removed':_0x971373['errors']['length']>0x0?'failed':_0x971373['fileInfo']?'success':_0x971373['isUploading']?'uploading':'idle';return{'uuid':_0x90b6b6?.['uuid']??_0x971373['uuid']??null,'internalId':_0x43e3fb,'name':_0x90b6b6?.['originalFilename']??_0x971373['fileName'],'size':_0x90b6b6?.['size']??_0x971373['fileSize'],'isImage':_0x90b6b6?.['isImage']??_0x971373['isImage'],'mimeType':_0x90b6b6?.['mimeType']??_0x971373['mimeType'],'file':_0x971373['file'],'externalUrl':_0x971373['externalUrl'],'cdnUrlModifiers':_0x971373['cdnUrlModifiers'],'cdnUrl':_0x971373['cdnUrl']??_0x90b6b6?.['cdnUrl']??null,'fullPath':_0x971373['fullPath'],'uploadProgress':_0x971373['uploadProgress'],'fileInfo':_0x90b6b6??null,'metadata':_0x971373['metadata']??_0x90b6b6?.['metadata']??null,'isSuccess':'success'===_0x4efea6,'isUploading':'uploading'===_0x4efea6,'isFailed':'failed'===_0x4efea6,'isRemoved':'removed'===_0x4efea6,'isValidationPending':_0x971373['isValidationPending'],'errors':_0x971373['errors'],'status':_0x4efea6,'source':_0x971373?.['source']};}['getOutputCollectionState'](){return buildOutputCollectionState(this['_ctx']);}['initFlow']=(_0x4cfdeb=!0x1)=>{if(this['_uploadCollection']['size']>0x0&&!_0x4cfdeb)this['_ctx']['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['_ctx']['set$']({'*currentActivity':ActivityBlock['activities']['UPLOAD_LIST']});else{if(0x1===this['_sourceList']?.['length']){const _0x204681=this['_sourceList'][0x0];if('local'===_0x204681)return this['_ctx']['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],void this['openSystemDialog']();if('camera'===_0x204681&&browserFeatures['htmlMediaCapture']){const {isPhotoEnabled:_0x3d5b06,isVideoRecordingEnabled:_0x182d98}=calcCameraModes(this['cfg']);if(_0x3d5b06&&_0x182d98)return void this['_ctx']['set$']({'*currentActivity':ActivityBlock['activities']['START_FROM']});if(_0x3d5b06||_0x182d98)return void this['openSystemDialog']({'captureCamera':!0x0,'modeCamera':_0x3d5b06?CameraSourceTypes['PHOTO']:CameraSourceTypes['VIDEO']});this['openSystemDialog']({'captureCamera':!0x0,'modeCamera':CameraSourceTypes['PHOTO']});}const _0x5320de=[...this['_ctx']['$']['*blocksRegistry']]['find'](_0x4c0940=>'type'in _0x4c0940&&_0x4c0940['type']===_0x204681);_0x5320de?.['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']=(_0x484674,..._0x55b7e3)=>{this['_ctx']['hasBlockInCtx'](_0x3848fc=>_0x3848fc['activityType']===_0x484674)?this['_ctx']['set$']({'*currentActivityParams':_0x55b7e3??{},'*currentActivity':_0x484674}):console['warn']('Activity\x20type\x20\x22'+_0x484674+'\x22\x20not\x20found\x20in\x20the\x20context');};['getCurrentActivity']=()=>this['_ctx']['$']['*currentActivity'];['setModalState']=_0x351851=>{!_0x351851||this['_ctx']['$']['*currentActivity']?_0x351851?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 _0xbd50d6=[];return this['cfg']['sourceList']&&(_0xbd50d6=stringToArray(this['cfg']['sourceList'])),_0xbd50d6;}},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}),'isQueuedForUploading':Object['freeze']({'type':Boolean,'value':!0x1}),'isValidationPending':Object['freeze']({'type':Boolean,'value':!0x1}),'isQueuedForValidation':Object['freeze']({'type':Boolean,'value':!0x1})}),UploaderBlock=class e extends ActivityBlock{static ['extSrcList'];static ['sourceTypes'];['couldBeCtxOwner']=!0x1;['isCtxOwner']=!0x1;['_unobserveCollection'];['_unobserveCollectionProperties'];['init$']=uploaderBlockCtx(this);get['hasCtxOwner'](){return this['hasBlockInCtx'](_0x3499a6=>_0x3499a6 instanceof e&&(_0x3499a6['isCtxOwner']&&_0x3499a6['isConnected']&&_0x3499a6!==this));}['initCallback'](){if(super['initCallback'](),!this['has']('*uploadCollection')){const _0x186b02=new TypedCollection({'typedSchema':uploadEntrySchema,'watchList':['uploadProgress','uploadError','fileInfo','errors','cdnUrl','isUploading','isValidationPending']});this['add']('*uploadCollection',_0x186b02);}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['uploadCollection']['destroy'](),this['$']['*uploadCollection']=null,super['destroyCtxCallback']();}['disconnectedCallback'](){super['disconnectedCallback'](),this['isCtxOwner']&&this['_unobserveUploadCollection']();}['connectedCallback'](){super['connectedCallback'](),this['isCtxOwner']&&this['_observeUploadCollection']();}['destroyCallback'](){super['destroyCallback'](),this['_flushOutputItems']['cancel']();}['_initCtxOwner'](){this['isCtxOwner']=!0x0,this['_observeUploadCollection'](),this['subConfigValue']('maxConcurrentRequests',_0x4d068e=>{this['$']['*uploadQueue']['concurrency']=Number(_0x4d068e)||0x1;}),this['$']['*secureUploadsManager']||(this['$']['*secureUploadsManager']=new SecureUploadsManager(this));}['_observeUploadCollection'](){this['_unobserveUploadCollection'](),this['_unobserveCollection']=this['uploadCollection']['observeCollection'](this['_handleCollectionUpdate']),this['_unobserveCollectionProperties']=this['uploadCollection']['observeProperties'](this['_handleCollectionPropertiesUpdate']);}['_unobserveUploadCollection'](){this['_unobserveCollectionProperties']?.(),this['_unobserveCollection']?.(),this['_unobserveCollectionProperties']=void 0x0,this['_unobserveCollection']=void 0x0;}async['_createGroup'](_0x286482){const _0x3305f3=await this['getUploadClientOptions'](),_0x2a7e88=_0x286482['allEntries']['map'](_0x53724f=>_0x53724f['uuid']+(_0x53724f['cdnUrlModifiers']?'/'+_0x53724f['cdnUrlModifiers']:'')),_0x3e3be7=new AbortController(),_0xc37a8d=await uploadFileGroup(_0x2a7e88,{..._0x3305f3,'signal':_0x3e3be7['signal']});if(this['$']['*collectionState']!==_0x286482)return void _0x3e3be7['abort']();this['$']['*groupInfo']=_0xc37a8d;const _0x2686c4=this['api']['getOutputCollectionState']();this['emit'](EventType['GROUP_CREATED'],_0x2686c4),this['emit'](EventType['CHANGE'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}),this['$']['*collectionState']=_0x2686c4;}['_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']=(_0x29772b,_0x27d981,_0x296174)=>{(_0x27d981['size']||_0x296174['size'])&&(this['$']['*groupInfo']=null),this['validationManager']['runFileValidators']('add',[..._0x27d981]['map'](_0x5ddcbd=>_0x5ddcbd['uid']));for(const _0x29cfa0 of _0x27d981)_0x29cfa0['getValue']('silent')||this['emit'](EventType['FILE_ADDED'],this['api']['getOutputItem'](_0x29cfa0['uid']));this['validationManager']['runCollectionValidators']();for(const _0x5a19f5 of _0x296174){this['$']['*uploadTrigger']['delete'](_0x5a19f5['uid']),this['validationManager']['cleanupValidationForEntry'](_0x5a19f5),_0x5a19f5['getValue']('abortController')?.['abort'](),_0x5a19f5['setMultipleValues']({'isRemoved':!0x0,'abortController':null,'isUploading':!0x1,'uploadProgress':0x0});const _0xb75f2b=_0x5a19f5?.['getValue']('thumbUrl');_0xb75f2b&&URL['revokeObjectURL'](_0xb75f2b),this['emit'](EventType['FILE_REMOVED'],this['api']['getOutputItem'](_0x5a19f5['uid']));}this['$']['*uploadList']=_0x29772b['map'](_0x362bd3=>({'uid':_0x362bd3})),this['_flushCommonUploadProgress'](),this['_flushOutputItems']();};['_handleCollectionPropertiesUpdate']=_0x4dd95d=>{this['_flushOutputItems']();const _0x3919e8=this['uploadCollection'],_0x171caa=[...new Set(Object['entries'](_0x4dd95d)['filter'](([_0x52bce4])=>['uploadError','fileInfo','cdnUrl','cdnUrlModifiers']['includes'](_0x52bce4))['flatMap'](([,_0x488648])=>[..._0x488648]))];if(_0x171caa['length']>0x0&&setTimeout(()=>{const _0x3f3191=_0x171caa['filter'](_0x52c476=>_0x4dd95d['fileInfo']?.['has'](_0x52c476)&&!!Data['getCtx'](_0x52c476)['store']['fileInfo']);_0x3f3191['length']>0x0&&this['validationManager']['runFileValidators']('upload',_0x3f3191),this['validationManager']['runFileValidators']('change',_0x171caa);}),_0x4dd95d['uploadProgress']){for(const _0x5028df of _0x4dd95d['uploadProgress']){const {isUploading:_0x31c64e,silent:_0x4e8429}=Data['getCtx'](_0x5028df)['store'];_0x31c64e&&!_0x4e8429&&this['emit'](EventType['FILE_UPLOAD_PROGRESS'],this['api']['getOutputItem'](_0x5028df));}this['_flushCommonUploadProgress']();}if(_0x4dd95d['isUploading'])for(const _0x33777a of _0x4dd95d['isUploading']){const {isUploading:_0x41313e,silent:_0x2c9770}=Data['getCtx'](_0x33777a)['store'];_0x41313e&&!_0x2c9770&&this['emit'](EventType['FILE_UPLOAD_START'],this['api']['getOutputItem'](_0x33777a));}if(_0x4dd95d['fileInfo']){for(const _0x3e7fe5 of _0x4dd95d['fileInfo']){const {fileInfo:_0xa2996c,silent:_0x263fdd}=Data['getCtx'](_0x3e7fe5)['store'];_0xa2996c&&!_0x263fdd&&this['emit'](EventType['FILE_UPLOAD_SUCCESS'],this['api']['getOutputItem'](_0x3e7fe5));}this['cfg']['cropPreset']&&this['setInitialCrop'](),this['cfg']['cloudImageEditorAutoOpen']&&this['openCloudImageEditor']();}if(_0x4dd95d['errors']){this['validationManager']['runCollectionValidators']();for(const _0x40832d of _0x4dd95d['errors']){const {errors:_0xba42c9}=Data['getCtx'](_0x40832d)['store'];_0xba42c9['length']>0x0&&(this['emit'](EventType['FILE_UPLOAD_FAILED'],this['api']['getOutputItem'](_0x40832d)),this['emit'](EventType['COMMON_UPLOAD_FAILED'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}));}const _0x4a01ec=_0x3919e8['findItems'](_0x4bc7d9=>!!_0x4bc7d9['getValue']('fileInfo')),_0x1adcc2=_0x3919e8['findItems'](_0x15961e=>_0x15961e['getValue']('errors')['length']>0x0);_0x3919e8['size']>0x0&&0x0===_0x1adcc2['length']&&_0x3919e8['size']===_0x4a01ec['length']&&0x0===this['$']['*collectionErrors']['length']&&this['emit'](EventType['COMMON_UPLOAD_SUCCESS'],this['api']['getOutputCollectionState']());}if(_0x4dd95d['cdnUrl']){const _0x4944ec=[..._0x4dd95d['cdnUrl']]['filter'](_0x13c8fb=>!!this['uploadCollection']['read'](_0x13c8fb)?.['getValue']('cdnUrl'));_0x4944ec['forEach'](_0x4a37ae=>{this['emit'](EventType['FILE_URL_CHANGED'],this['api']['getOutputItem'](_0x4a37ae));}),this['$']['*groupInfo']=null;}};['_flushCommonUploadProgress']=()=>{let _0x5f42c0=0x0;const _0x1cb39e=[...this['$']['*uploadTrigger']]['filter'](_0x223a37=>!!this['uploadCollection']['read'](_0x223a37));_0x1cb39e['forEach'](_0x3a1ab9=>{const _0x4aeeed=this['uploadCollection']['readProp'](_0x3a1ab9,'uploadProgress');'number'==typeof _0x4aeeed&&(_0x5f42c0+=_0x4aeeed);});const _0x455f12=_0x1cb39e['length']?Math['round'](_0x5f42c0/_0x1cb39e['length']):0x0;this['$']['*commonProgress']!==_0x455f12&&(this['$']['*commonProgress']=_0x455f12,this['emit'](EventType['COMMON_UPLOAD_PROGRESS'],this['api']['getOutputCollectionState']()));};['openCloudImageEditor'](){const [_0x5dc481]=this['uploadCollection']['findItems'](_0x517ba1=>!!_0x517ba1['getValue']('fileInfo')&&_0x517ba1['getValue']('isImage'))['map'](_0x37d102=>this['uploadCollection']['read'](_0x37d102));_0x5dc481&&0x1===this['uploadCollection']['size']&&this['cfg']['useCloudImageEditor']&&this['hasBlockInCtx'](_0x12bdb2=>_0x12bdb2['activityType']===ActivityBlock['activities']['CLOUD_IMG_EDIT'])&&(this['$']['*currentActivityParams']={'internalId':_0x5dc481['uid']},this['$']['*currentActivity']=ActivityBlock['activities']['CLOUD_IMG_EDIT'],this['modalManager']?.['open'](ActivityBlock['activities']['CLOUD_IMG_EDIT']));}['setInitialCrop'](){const _0x2c4b2b=parseCropPreset(this['cfg']['cropPreset']);if(_0x2c4b2b){const [_0x4769a9]=_0x2c4b2b,_0x4319b5=this['uploadCollection']['findItems'](_0xa70ca5=>!!_0xa70ca5['getValue']('fileInfo')&&_0xa70ca5['getValue']('isImage')&&!_0xa70ca5['getValue']('cdnUrlModifiers')?.['includes']('/crop/'))['map'](_0x182b81=>this['uploadCollection']['read'](_0x182b81))['filter'](Boolean);for(const _0x2c59b2 of _0x4319b5){const _0x56e029=_0x2c59b2['getValue']('fileInfo');if(!_0x56e029||!_0x56e029['imageInfo']){console['warn']('Failed\x20to\x20get\x20image\x20info\x20for\x20entry',_0x2c59b2['uid']);continue;}const {width:_0x4c04ae,height:_0x5a3880}=_0x56e029['imageInfo'],_0x2110d7=calculateMaxCenteredCropFrame(_0x4c04ae,_0x5a3880,'number'==typeof _0x4769a9?.['width']&&'number'==typeof _0x4769a9?.['height']&&_0x4769a9['width']>0x0&&_0x4769a9['height']>0x0?_0x4769a9['width']/_0x4769a9['height']:0x1),_0x5f8764=createCdnUrlModifiers('crop/'+_0x2110d7['width']+'x'+_0x2110d7['height']+'/'+_0x2110d7['x']+','+_0x2110d7['y'],'preview'),_0x1109bb=_0x2c59b2['getValue']('cdnUrl');_0x1109bb?(_0x2c59b2['setMultipleValues']({'cdnUrlModifiers':_0x5f8764,'cdnUrl':createCdnUrl(_0x1109bb,_0x5f8764)}),0x1===this['uploadCollection']['size']&&this['cfg']['useCloudImageEditor']&&this['hasBlockInCtx'](_0x50b359=>_0x50b359['activityType']===ActivityBlock['activities']['CLOUD_IMG_EDIT'])&&(this['$']['*currentActivityParams']={'internalId':_0x2c59b2['uid']},this['$']['*currentActivity']=ActivityBlock['activities']['CLOUD_IMG_EDIT'],this['modalManager']?.['open'](ActivityBlock['activities']['CLOUD_IMG_EDIT']))):console['warn']('Failed\x20to\x20get\x20cdnUrl\x20for\x20entry',_0x2c59b2['uid']);}}}async['getMetadataFor'](_0x4be8f3){const _0x432f29=this['cfg']['metadata']||void 0x0;if('function'==typeof _0x432f29){const _0x4efe7e=this['api']['getOutputItem'](_0x4be8f3);return await _0x432f29(_0x4efe7e);}return _0x432f29;}async['getUploadClientOptions'](){const _0x3e635c=this['$']['*secureUploadsManager'],_0x139177=await _0x3e635c['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':_0x139177?.['secureSignature'],'secureExpire':_0x139177?.['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'](_0x589467=>this['api']['getOutputItem'](_0x589467));}};UploaderBlock['extSrcList']=Object['freeze']({...ExternalUploadSource}),UploaderBlock['sourceTypes']=Object['freeze']({...UploadSource});var ActivityHeader=class extends ActivityBlock{},canUsePermissionsApi=()=>void 0x0!==navigator['permissions'],DEFAULT_VIDEO_CONFIG={'width':{'ideal':0x780},'height':{'ideal':0x438},'frameRate':{'ideal':0x1e}},DEFAULT_PERMISSIONS=['camera','microphone'];function formatTime(_0x2a969c){return Math['floor'](_0x2a969c/0x3c)['toString']()['padStart'](0x2,'0')+':'+Math['floor'](_0x2a969c%0x3c)['toString']()['padStart'](0x2,'0');}var DEFAULT_PICTURE_FORMAT='image/jpeg',DEFAULT_VIDEO_FORMAT='video/webm',CameraSource=class extends UploaderBlock{['couldBeCtxOwner']=!0x0;['activityType']=ActivityBlock['activities']['CAMERA'];['_unsubPermissions']=null;['_capturing']=!0x1;['_chunks']=[];['_mediaRecorder']=null;['_stream']=null;['_selectedAudioId']=null;['_selectedCameraId']=null;['_activeTab']=null;['_options']={};['_canvas']=null;['_ctx']=null;['_cameraDevices']=[];['_audioDevices']=[];['_permissionResponses']={};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':_0x51527b=>{const _0x230f84=_0x51527b['target'];_0x230f84&&(this['_selectedCameraId']=_0x230f84['value'],this['_capture']());},'onAudioSelectChange':_0x195c44=>{const _0x632916=_0x195c44['target'];_0x632916&&(this['_selectedAudioId']=_0x632916['value'],this['_capture']());},'onCancel':()=>{this['historyBack']();},'onShot':()=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'shot-camera','node':this['tagName'],'tabId':this['_activeTab']}}}),this['_shot']();},'onRequestPermissions':()=>this['_capture'](),'onStartCamera':()=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'start-camera','node':this['tagName'],'tabId':this['_activeTab']}}}),this['_chooseActionWithCamera']();},'onStartRecording':()=>this['_startRecording'](),'onStopRecording':()=>this['_stopRecording'](),'onToggleRecording':()=>this['_toggleRecording'](),'onToggleAudio':()=>this['_toggleEnableAudio'](),'onRetake':()=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'retake-camera','node':this['tagName'],'tabId':this['_activeTab']}}}),this['_retake']();},'onAccept':()=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'accept-camera','node':this['tagName'],'tabId':this['_activeTab']}}}),this['_accept']();},'onClickTab':_0x162b39=>{const _0x9dbed2=_0x162b39['currentTarget'],_0x32f23d=_0x9dbed2?.['getAttribute']('data-id');_0x32f23d&&this['_handleActiveTab'](_0x32f23d);}};}['_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 _0x337bb4=Math['floor']((performance['now']()-this['$']['_startTime']+this['$']['_elapsedTime'])/0x3e8);if('number'==typeof this['cfg']['maxVideoRecordingDuration']&&this['cfg']['maxVideoRecordingDuration']>0x0){const _0x19b45d=this['cfg']['maxVideoRecordingDuration']-_0x337bb4;if(_0x19b45d<=0x0){const _0x1890da=this['ref']['timer'];return _0x1890da&&(_0x1890da['textContent']=formatTime(_0x19b45d)),void this['_stopRecording']();}const _0x439a14=this['ref']['timer'];_0x439a14&&(_0x439a14['textContent']=formatTime(_0x19b45d));}else{const _0x40ba7e=this['ref']['timer'];_0x40ba7e&&(_0x40ba7e['textContent']=formatTime(_0x337bb4));}this['_animationFrameId']=requestAnimationFrame(this['_updateTimer']);};['_startTimer']=()=>{this['$']['_startTime']=performance['now'](),this['$']['_elapsedTime']=0x0,this['_updateTimer']();};['_stopTimer']=()=>{this['_animationFrameId']&&cancelAnimationFrame(this['_animationFrameId']);};['_startTimeline']=()=>{const _0xa2379=this['ref']['video'];if(!_0xa2379)return;const _0x36bd2c=_0xa2379['currentTime'],_0x58cb30=_0xa2379['duration']||0x1,_0x2ca7ef=this['ref']['line'];_0x2ca7ef&&(_0x2ca7ef['style']['transform']='scaleX('+_0x36bd2c/_0x58cb30+')');const _0x114fd4=this['ref']['timer'];_0x114fd4&&(_0x114fd4['textContent']=formatTime(_0x36bd2c)),this['_animationFrameId']=requestAnimationFrame(this['_startTimeline']);};['_stopTimeline']=()=>{this['_animationFrameId']&&cancelAnimationFrame(this['_animationFrameId']);};['_animationFrameId']=null;['_startRecording']=()=>{try{this['_chunks']=[],this['_options']={...this['cfg']['mediaRecorderOptions']};const {mimeType:_0x4cfcdf}=this['cfg']['mediaRecorderOptions']||{};_0x4cfcdf&&MediaRecorder['isTypeSupported'](_0x4cfcdf)?this['_options']['mimeType']=_0x4cfcdf: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',_0x3c3753=>{this['_chunks']['push'](_0x3c3753['data']);}),this['_startTimer'](),this['classList']['add']('uc-recording'),this['_setCameraState'](CameraSourceEvents['PLAY']));}catch(_0x3333bc){console['error']('Failed\x20to\x20start\x20recording',_0x3333bc),this['telemetryManager']['sendEventError'](_0x3333bc,'camera\x20recording.\x20Failed\x20to\x20start\x20recording');}};['_stopRecording']=()=>{this['_mediaRecorder']?.['addEventListener']('stop',()=>{this['_previewVideo'](),this['_stopTimer'](),this['_setCameraState'](CameraSourceEvents['STOP']);}),this['_mediaRecorder']?.['stop'](),this['classList']['remove']('uc-recording'),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'stop-camera','node':this['tagName'],'tabId':this['_activeTab']}}});};['_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'](_0x37401f=>{_0x37401f['enabled']=!_0x37401f['enabled'],this['$']['toggleMicrophoneIcon']=_0x37401f['enabled']?'microphone':'microphone-mute',this['$']['audioSelectDisabled']=!_0x37401f['enabled'];});};['_previewVideo']=()=>{try{const _0x3f1494=new Blob(this['_chunks'],{'type':this['_mediaRecorder']?.['mimeType']}),_0x4a74f1=URL['createObjectURL'](_0x3f1494),_0x1bfaa8=this['ref']['video'];if(!_0x1bfaa8)return;_0x1bfaa8['muted']=!0x1,_0x1bfaa8['volume']=0x1,this['$']['video']=null,_0x1bfaa8['src']=_0x4a74f1,_0x1bfaa8['addEventListener']('play',()=>{this['_startTimeline'](),this['set$']({'currentTimelineIcon':'pause'});}),_0x1bfaa8['addEventListener']('pause',()=>{this['set$']({'currentTimelineIcon':'play'}),this['_stopTimeline']();});}catch(_0x1f823d){console['error']('Failed\x20to\x20preview\x20video',_0x1f823d),this['telemetryManager']['sendEventError'](_0x1f823d,'camera\x20previewing.\x20Failed\x20to\x20preview\x20video');}};['_retake']=()=>{if(this['_setCameraState'](CameraSourceEvents['RETAKE']),this['_activeTab']===CameraSourceTypes['VIDEO']){this['$']['video']=this['_stream'];const _0x3d8ad3=this['ref']['video'];_0x3d8ad3&&(_0x3d8ad3['muted']=!0x0);}this['ref']['video']?.['play']?.();};['_accept']=()=>{if(this['_setCameraState'](CameraSourceEvents['ACCEPT']),this['_activeTab']===CameraSourceTypes['PHOTO'])return void this['_canvas']?.['toBlob'](_0x587197=>{if(!_0x587197)return;const _0xf990ed=this['_createFile']('camera','jpeg',DEFAULT_PICTURE_FORMAT,_0x587197);this['_toSend'](_0xf990ed);},DEFAULT_PICTURE_FORMAT);const _0x1a8a7c=new Blob(this['_chunks'],{'type':this['_mediaRecorder']?.['mimeType']}),_0x9aa5f9=this['_guessExtensionByMime'](this['_mediaRecorder']?.['mimeType']),_0x47b98b=this['_createFile']('video',_0x9aa5f9,'video/'+_0x9aa5f9,_0x1a8a7c);this['_toSend'](_0x47b98b),this['_chunks']=[];};['_handlePhoto']=_0x46c470=>{_0x46c470===CameraSourceEvents['SHOT']&&this['set$']({'tabVideoHidden':!0x0,'cameraHidden':!0x0,'tabCameraHidden':!0x0,'cameraActionsHidden':!0x1,'cameraSelectHidden':!0x0}),_0x46c470!==CameraSourceEvents['RETAKE']&&_0x46c470!==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']=_0x31ab0a=>{_0x31ab0a===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'}),_0x31ab0a===CameraSourceEvents['STOP']&&this['set$']({'timerHidden':!0x1,'cameraHidden':!0x0,'audioToggleMicrophoneHidden':!0x0,'cameraActionsHidden':!0x1}),_0x31ab0a!==CameraSourceEvents['RETAKE']&&_0x31ab0a!==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']=_0x143812=>{this['_activeTab']!==CameraSourceTypes['PHOTO']||'shot'!==_0x143812&&'retake'!==_0x143812&&'accept'!==_0x143812||this['_handlePhoto'](_0x143812),this['_activeTab']!==CameraSourceTypes['VIDEO']||'play'!==_0x143812&&'stop'!==_0x143812&&'retake'!==_0x143812&&'accept'!==_0x143812&&'pause'!==_0x143812&&'resume'!==_0x143812||this['_handleVideo'](_0x143812);};['_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']=_0x31b367=>{const _0x3326a7=this['ref']['switcher'];_0x3326a7?.['querySelectorAll']('button')['forEach'](_0x10149a=>{_0x10149a['classList']['toggle']('uc-active',_0x10149a['getAttribute']('data-id')===_0x31b367);}),_0x31b367===CameraSourceTypes['PHOTO']&&this['set$']({'currentIcon':'camera-full','audioSelectHidden':!0x0,'audioToggleMicrophoneHidden':!0x0}),_0x31b367===CameraSourceTypes['VIDEO']&&this['set$']({'currentTimelineIcon':'play','currentIcon':'video-camera-full','audioSelectHidden':!this['cfg']['enableAudioRecording']||this['_audioDevices']['length']<=0x1,'audioToggleMicrophoneHidden':!this['cfg']['enableAudioRecording']}),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'camera-tab-switch','node':this['tagName'],'tabId':_0x31b367}}}),this['_activeTab']=_0x31b367;};['_createFile']=(_0x14bdd,_0x2f86d1,_0x3cef66,_0x4ca4b9)=>{const _0x495374=Date['now']();return new File([_0x4ca4b9],_0x14bdd+'-'+_0x495374+'.'+_0x2f86d1,{'lastModified':_0x495374,'type':_0x3cef66});};['_guessExtensionByMime'](_0x22b0c5){const _0x46ee34={'mp4':'mp4','ogg':'ogg','webm':'webm','quicktime':'mov','x-matroska':'mkv'};if(''===_0x22b0c5)return'webm';if(_0x22b0c5){const _0x46075c=_0x22b0c5['split']('/');if('video'===_0x46075c?.[0x0]){const _0x89d6d1=_0x46075c['slice'](0x1)['join']('/'),_0x51cfe5=_0x89d6d1?.['split'](';')[0x0];if(_0x51cfe5&&_0x46ee34[_0x51cfe5])return _0x46ee34[_0x51cfe5];}}return'avi';}['_toSend']=_0x4cd41f=>{this['api']['addFileFromObject'](_0x4cd41f,{'source':UploadSource['CAMERA']}),this['set$']({'*currentActivity':ActivityBlock['activities']['UPLOAD_LIST']}),this['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']);};get['_cameraModes'](){return stringToArray(this['cfg']['cameraModes'])['filter'](_0x56e3e2=>_0x56e3e2===CameraSourceTypes['PHOTO']||_0x56e3e2===CameraSourceTypes['VIDEO']);}['_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 _0x1ee01f=this['_stream']?.['getAudioTracks'](),_0x4ea0ab=this['_stream']?.['getVideoTracks']();return _0x1ee01f['forEach'](_0x141493=>{_0x141493['stop']();}),_0x4ea0ab['forEach'](_0x2f29d9=>{_0x2f29d9['stop']();}),!0x0;};['_stopCapture']=()=>{if(this['_capturing']){this['ref']['video']['volume']=0x0;const _0xcbeb6b=this['$']['video']?.['getTracks']?.();_0xcbeb6b?.[0x0]?.['stop'](),this['$']['video']=null,this['_makeStreamInactive'](),this['_stopTimer'](),this['_capturing']=!0x1;}};['_capture']=async()=>{const _0x48ba78={'video':{...DEFAULT_VIDEO_CONFIG},'audio':!!this['cfg']['enableAudioRecording']&&{}};this['_selectedCameraId']&&(_0x48ba78['video']={'deviceId':{'exact':this['_selectedCameraId']}}),this['_selectedAudioId']&&this['cfg']['enableAudioRecording']&&(_0x48ba78['audio']={'deviceId':{'exact':this['_selectedAudioId']}}),this['ref']['video']&&(this['ref']['video']['volume']=0x0);try{this['_setPermissionsState']('prompt'),this['_stream']=await navigator['mediaDevices']['getUserMedia'](_0x48ba78),this['_stream']['addEventListener']('inactive',()=>{this['_setPermissionsState']('denied');}),this['$']['video']=this['_stream'],this['_capturing']=!0x0,this['_setPermissionsState']('granted');}catch(_0x2b3a7b){this['_setPermissionsState']('denied'),console['log']('Failed\x20to\x20capture\x20camera',_0x2b3a7b),this['telemetryManager']['sendEventError'](_0x2b3a7b,'camera\x20capturing.\x20Failed\x20to\x20capture\x20camera');}};['_handlePermissionsChange']=()=>{this['_capture']();};['_permissionAccess']=async()=>{try{for(const _0x36f864 of DEFAULT_PERMISSIONS){const _0x2e70f3=await navigator['permissions']['query']({'name':_0x36f864});this['_permissionResponses'][_0x36f864]=_0x2e70f3,_0x2e70f3['addEventListener']('change',this['_handlePermissionsChange']);}}catch(_0x1c8c85){console['log']('Failed\x20to\x20use\x20permissions\x20API.\x20Fallback\x20to\x20manual\x20request\x20mode.',_0x1c8c85),this['telemetryManager']['sendEventError'](_0x1c8c85,'camera\x20permissions.\x20Failed\x20to\x20use\x20permissions\x20API'),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(_0x33fde2){this['telemetryManager']['sendEventError'](_0x33fde2,'camera\x20devices.\x20Failed\x20to\x20get\x20user\x20media'),console['log']('Failed\x20to\x20get\x20user\x20media',_0x33fde2);}};['_getDevices']=async()=>{try{const _0xf7a0c5=await navigator['mediaDevices']['enumerateDevices']();this['_cameraDevices']=_0xf7a0c5['filter'](_0x2d9622=>'videoinput'===_0x2d9622['kind'])['map']((_0x39a1e8,_0x4958b3)=>({'text':_0x39a1e8['label']['trim']()||this['l10n']('caption-camera')+'\x20'+(_0x4958b3+0x1),'value':_0x39a1e8['deviceId']})),this['_audioDevices']=this['cfg']['enableAudioRecording']?_0xf7a0c5['filter'](_0x40ea38=>'audioinput'===_0x40ea38['kind'])['map'](_0x33e7c7=>({'text':_0x33e7c7['label']['trim'](),'value':_0x33e7c7['deviceId']})):[],this['_cameraDevices']['length']>0x1&&this['set$']({'cameraSelectOptions':this['_cameraDevices'],'cameraSelectHidden':!0x1}),this['_selectedCameraId']=this['_cameraDevices'][0x0]?.['value']??null,this['_audioDevices']['length']>0x1&&this['set$']({'audioSelectOptions':this['_audioDevices'],'audioSelectHidden':!0x1}),this['_selectedAudioId']=this['_audioDevices'][0x0]?.['value']??null;}catch(_0x466b56){this['telemetryManager']['sendEventError'](_0x466b56,'camera\x20devices.\x20Failed\x20to\x20get\x20devices'),console['log']('Failed\x20to\x20get\x20devices',_0x466b56);}};['_onActivate']=async()=>{await this['_permissionAccess'](),await this['_requestDeviceAccess'](),await this['_capture'](),this['_handleCameraModes'](this['_cameraModes']);};['_onDeactivate']=async()=>{this['_unsubPermissions']&&this['_unsubPermissions'](),(Boolean(window['chrome'])||this['_setPermissionsState']('denied'),this['_stopCapture']());};['_handleCameraModes']=_0x122079=>{this['$']['tabVideoHidden']=!_0x122079['includes'](CameraSourceTypes['VIDEO']),this['$']['tabCameraHidden']=!_0x122079['includes'](CameraSourceTypes['PHOTO']);const _0x5c719f=_0x122079[0x0];!_0x5c719f||this['_activeTab']&&_0x122079['includes'](this['_activeTab'])||this['_handleActiveTab'](_0x5c719f);};['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType'],{'onActivate':this['_onActivate'],'onDeactivate':this['_onDeactivate']}),this['subConfigValue']('cameraMirror',_0x5f25bf=>{this['$']['videoTransformCss']=_0x5f25bf?'scaleX(-1)':null;}),this['subConfigValue']('enableAudioRecording',_0x2a4a60=>{this['$']['audioToggleMicrophoneHidden']=!_0x2a4a60,this['$']['audioSelectDisabled']=!_0x2a4a60;}),this['subConfigValue']('cameraModes',_0x38f53b=>{if(!this['isActivityActive'])return;const _0x2bb854=deserializeCsv(_0x38f53b);this['_handleCameraModes'](_0x2bb854['filter'](_0x5aaced=>_0x5aaced===CameraSourceTypes['PHOTO']||_0x5aaced===CameraSourceTypes['VIDEO']));});}['_destroy'](){for(const _0x43c88c of DEFAULT_PERMISSIONS)this['_permissionResponses'][_0x43c88c]?.['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\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-mini-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20*historyBack\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22@title:back\x22\x0a\x20\x20\x20\x20>\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\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-secondary-btn\x20uc-recording-timer\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22@hidden:timerHidden;\x20onclick:\x20onToggleRecording\x22\x0a\x20\x20\x20\x20>\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\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-camera-actions\x20uc-camera-action\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22@hidden:\x20cameraActionsHidden\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22uc-secondary-btn\x22\x20set=\x22onclick:\x20onRetake\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20Retake\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\x20class=\x22uc-primary-btn\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onAccept\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20data-testid=\x22accept\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20Accept\x0a\x20\x20\x20\x20\x20\x20</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\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-mini-btn\x20uc-btn-microphone\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onToggleAudio;\x20@hidden:\x20audioToggleMicrophoneHidden;\x22\x0a\x20\x20\x20\x20\x20\x20>\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';var TRANSPARENT_PIXEL_SRC='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=';function normalize(..._0x3b461c){return _0x3b461c['reduce']((_0x1b0528,_0x3e54c8)=>{if('string'==typeof _0x3e54c8)return _0x1b0528[_0x3e54c8]=!0x0,_0x1b0528;for(const _0x5380ec of Object['keys'](_0x3e54c8))_0x1b0528[_0x5380ec]=_0x3e54c8[_0x5380ec];return _0x1b0528;},{});}function classNames(..._0x42b960){const _0x1d682f=normalize(..._0x42b960);return Object['keys'](_0x1d682f)['reduce']((_0x8646d2,_0x3fb1c5)=>(_0x1d682f[_0x3fb1c5]&&_0x8646d2['push'](_0x3fb1c5),_0x8646d2),[])['join']('\x20');}function applyClassNames(_0x53b53d,..._0x51f7b3){const _0x3a71c9=normalize(..._0x51f7b3);for(const _0x58e35a of Object['keys'](_0x3a71c9))_0x53b53d['classList']['toggle'](_0x58e35a,Boolean(_0x3a71c9[_0x58e35a]));}var isTabIdValue=_0x4ec02a=>ALL_TABS['includes'](_0x4ec02a),parseTabs=_0x39f216=>{if(!_0x39f216)return ALL_TABS;const _0x4359f0=deserializeCsv(_0x39f216)['filter'](isTabIdValue);return 0x0===_0x4359f0['length']?ALL_TABS:_0x4359f0;};function initState(_0x11f00b){return{'*originalUrl':null,'*faderEl':null,'*cropperEl':null,'*imgEl':null,'*imgContainerEl':null,'*networkProblems':!0x1,'*imageSize':null,'*editorTransformations':{},'*cropPresetList':[],'*currentAspectRatio':null,'*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':()=>{const _0x57f56a=_0x11f00b['querySelectorAll']('img');for(const _0x355a83 of _0x57f56a){const _0x3a40d4=_0x355a83['src'];_0x355a83['src']=TRANSPARENT_PIXEL_SRC,_0x355a83['src']=_0x3a40d4;}_0x11f00b['$']['*networkProblems']=!0x1;},'*on.apply':_0x1e23ac=>{if(!_0x1e23ac)return;const _0x38a736=_0x11f00b['$']['*originalUrl'],_0x3733ff=createCdnUrlModifiers(transformationsToOperations(_0x1e23ac),'preview'),_0x25cdc9={'originalUrl':_0x38a736,'cdnUrlModifiers':_0x3733ff,'cdnUrl':createCdnUrl(_0x38a736,_0x3733ff),'transformations':_0x1e23ac};_0x11f00b['dispatchEvent'](new CustomEvent('apply',{'detail':_0x25cdc9,'bubbles':!0x0,'composed':!0x0})),_0x11f00b['remove']();},'*on.cancel':()=>{_0x11f00b['remove'](),_0x11f00b['dispatchEvent'](new CustomEvent('cancel',{'bubbles':!0x0,'composed':!0x0}));}};}var svg_sprite_default2='<svg\x20width=\x270\x27\x20height=\x270\x27\x20style=\x27position:absolute\x27><symbol\x20fill=\x27none\x27\x20viewBox=\x270\x200\x209\x206\x27\x20id=\x27uc-icon-arrow-dropdown\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke=\x27currentColor\x27\x20d=\x27m1.5\x201.667\x203\x202.666\x203-2.666\x27\x20opacity=\x27.5\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-aspect-ratio\x27\x20xmlns=\x27http://www.w3.org/2000/svg\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=\x27ruc-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(#ruc-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(#uuc-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(#uuc-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(#uuc-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(#uuc-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(#uuc-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(#uuc-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(#uuc-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(#uuc-icon-id__h)\x27/><defs><linearGradient\x20id=\x27uuc-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=\x27uuc-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=\x27uuc-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=\x27uuc-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=\x27uuc-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=\x27uuc-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=\x27uuc-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=\x27uuc-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>',TEMPLATE='\x0a\x20\x20'+svg_sprite_default2+'\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',CloudImageEditorBlock=class extends Block{['ctxOwner']=!0x0;static ['styleAttrs']=['uc-cloud-image-editor'];['_debouncedShowLoader']=debounce(this['_showLoader']['bind'](this),0x12c);constructor(){super(),this['init$']={...this['init$'],...initState(this)};}['_showLoader'](_0xe76748){this['$']['showLoader']=_0xe76748;}['_waitForSize'](){return new Promise((_0x360085,_0x48330f)=>{const _0xd5b243=window['setTimeout'](()=>{_0x48330f(new Error('[cloud-image-editor]\x20timeout\x20waiting\x20for\x20non-zero\x20container\x20size'));},0xbb8),_0x4acdcd=new ResizeObserver(_0x3af16a=>{const [_0x402b84]=_0x3af16a;_0x402b84&&_0x402b84['contentRect']['width']>0x0&&_0x402b84['contentRect']['height']>0x0&&(window['clearTimeout'](_0xd5b243),_0x4acdcd['disconnect'](),window['setTimeout'](()=>_0x360085(),0x0));});_0x4acdcd['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 _0x5393ba=this['$']['cdnUrl'],_0x95d4bf=extractUuid(_0x5393ba),_0x19c8ae=createOriginalUrl(_0x5393ba,_0x95d4bf);if(_0x19c8ae===this['$']['*originalUrl'])return;this['$']['*originalUrl']=_0x19c8ae;const _0x5816e1=operationsToTransformations(extractOperations(_0x5393ba));this['$']['*editorTransformations']=_0x5816e1;}else{if(!this['$']['uuid'])throw new Error('No\x20UUID\x20nor\x20CDN\x20URL\x20provided');{const _0x4a9c40=createOriginalUrl(this['cfg']['cdnCname'],this['$']['uuid']);if(_0x4a9c40===this['$']['*originalUrl'])return;this['$']['*originalUrl']=_0x4a9c40,this['$']['*editorTransformations']={};}}this['$']['*tabId']===TabId['CROP']?this['$']['*cropperEl']?.['deactivate']({'reset':!0x0}):this['$']['*faderEl']?.['deactivate']();try{const _0x4cf8b9=this['$']['*originalUrl'],_0x2207c3=await this['proxyUrl'](createCdnUrl(_0x4cf8b9,createCdnUrlModifiers('json'))),_0x204073=await fetch(_0x2207c3)['then'](_0xf73086=>_0xf73086['json']()),{width:_0x4f9b3a,height:_0x16ace7}=_0x204073;this['$']['*imageSize']={'width':_0x4f9b3a,'height':_0x16ace7},this['$']['*tabId']===TabId['CROP']?this['$']['*cropperEl']?.['activate'](this['$']['*imageSize']):this['$']['*faderEl']?.['activate']({'url':_0x4cf8b9});}catch(_0xc709b8){_0xc709b8&&(this['telemetryManager']['sendEventError'](_0xc709b8,'cloud\x20editor\x20image.\x20Failed\x20to\x20load\x20image\x20info'),console['error']('Failed\x20to\x20load\x20image\x20info',_0xc709b8));}}}async['initEditor'](){try{await this['_waitForSize']();}catch(_0x35e8ca){return void(this['isConnected']&&console['error'](_0x35e8ca['message']));}this['ref']['img-el']['addEventListener']('load',()=>{this['_debouncedShowLoader'](!0x1),this['$']['src']!==TRANSPARENT_PIXEL_SRC&&(this['$']['*networkProblems']=!0x1);}),this['ref']['img-el']['addEventListener']('error',()=>{this['_debouncedShowLoader'](!0x1),this['$']['*networkProblems']=!0x0;}),this['sub']('src',_0x48daf7=>{const _0x404dcc=this['ref']['img-el'];_0x404dcc['src']!==_0x48daf7&&(_0x404dcc['src']=_0x48daf7||TRANSPARENT_PIXEL_SRC);}),this['sub']('tabs',_0x36bc09=>{this['$']['*tabList']=parseTabs(_0x36bc09);}),this['sub']('*tabId',_0x29945f=>{this['ref']['img-el']['className']=classNames('uc-image',{'uc-image_hidden_to_cropper':_0x29945f===TabId['CROP'],'uc-image_hidden_effects':_0x29945f!==TabId['CROP']});}),this['classList']['add']('uc-editor_ON'),this['sub']('*networkProblems',_0xd97d0e=>{this['$']['presence.networkProblems']=_0xd97d0e,this['$']['presence.modalCaption']=!_0xd97d0e;}),this['sub']('*editorTransformations',_0x3bdd39=>{if(0x0===Object['keys'](_0x3bdd39)['length'])return;const _0x375b75=this['$']['*originalUrl'],_0x6f1fe6=createCdnUrlModifiers(transformationsToOperations(_0x3bdd39),'preview'),_0x80c481={'originalUrl':_0x375b75,'cdnUrlModifiers':_0x6f1fe6,'cdnUrl':createCdnUrl(_0x375b75,_0x6f1fe6),'transformations':_0x3bdd39};this['dispatchEvent'](new CustomEvent('change',{'detail':_0x80c481,'bubbles':!0x0,'composed':!0x0}));},!0x1),this['sub']('uuid',_0x1a1386=>_0x1a1386&&this['updateImage']()),this['sub']('cdnUrl',_0x4d0f40=>_0x4d0f40&&this['updateImage']()),this['sub']('cropPreset',_0x3c13b2=>{const _0x505517=parseCropPreset(_0x3c13b2);let _0x6d3cf7=null;if(this['$']['cdnUrl']){const _0x425b45=operationsToTransformations(extractOperations(this['$']['cdnUrl']));if(Array['isArray'](_0x425b45?.['crop']?.['dimensions'])){const [_0x36b203,_0x4ac6d1]=_0x425b45['crop']['dimensions'];_0x6d3cf7=getClosestAspectRatio(_0x36b203,_0x4ac6d1,_0x505517,0.1);}}this['$']['*cropPresetList']=_0x505517,this['$']['*currentAspectRatio']=_0x6d3cf7??_0x505517?.[0x0]??null;});}};CloudImageEditorBlock['template']=TEMPLATE,CloudImageEditorBlock['bindAttributes']({'uuid':'uuid','cdn-url':'cdnUrl','crop-preset':'cropPreset','tabs':'tabs'});var CropFrame=class extends Block{['_handlePointerUp'];['_handlePointerMove'];['_handleSvgPointerMove'];['_backdropMaskId']='backdrop-mask-'+UID['generate']();['_backdropMask'];['_backdropMaskInner'];['_frameThumbs'];['_frameGuides'];['_draggingThumb'];['_hoverThumb'];['_dragStartPoint'];['_dragStartCrop'];['_frameImage'];['_guidesHidden']=!0x1;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'](_0x4c8ec3){const _0x1a08ed=this['$']['*imageBox'];if(!_0x1a08ed)return!0x1;if(''===_0x4c8ec3&&_0x1a08ed['height']<=MIN_CROP_SIZE&&_0x1a08ed['width']<=MIN_CROP_SIZE)return!0x0;const _0x74fae5=_0x1a08ed['height']<=MIN_CROP_SIZE&&(_0x4c8ec3['includes']('n')||_0x4c8ec3['includes']('s')),_0x3d49d9=_0x1a08ed['width']<=MIN_CROP_SIZE&&(_0x4c8ec3['includes']('e')||_0x4c8ec3['includes']('w'));return _0x74fae5||_0x3d49d9;}['_createBackdrop'](){const _0x5577f6=this['$']['*cropBox'];if(!_0x5577f6)return;const {x:_0x4c5400,y:_0x49b519,width:_0x42a709,height:_0x440885}=_0x5577f6,_0x149eab=this['ref']['svg-el'],_0x54267d=createSvgNode('mask',{'id':this['_backdropMaskId']}),_0x3794db=createSvgNode('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'white'}),_0x3a4969=createSvgNode('rect',{'x':_0x4c5400,'y':_0x49b519,'width':_0x42a709,'height':_0x440885,'fill':'black'});_0x54267d['appendChild'](_0x3794db),_0x54267d['appendChild'](_0x3a4969);const _0x50db61=createSvgNode('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'var(--color-image-background)','fill-opacity':0.85,'mask':'url(#'+this['_backdropMaskId']+')'});_0x149eab['appendChild'](_0x50db61),_0x149eab['appendChild'](_0x54267d),this['_backdropMask']=_0x54267d,this['_backdropMaskInner']=_0x3a4969;}['_resizeBackdrop'](){this['_backdropMask']&&(this['_backdropMask']['style']['display']='none',window['requestAnimationFrame'](()=>{this['_backdropMask']&&(this['_backdropMask']['style']['display']='block');}));}['_updateBackdrop'](){const _0x790ef6=this['$']['*cropBox'];if(!_0x790ef6)return;const {x:_0x3d9c23,y:_0x465f0b,width:_0x5b2a06,height:_0x344301}=_0x790ef6;this['_backdropMaskInner']&&setSvgNodeAttrs(this['_backdropMaskInner'],{'x':_0x3d9c23,'y':_0x465f0b,'width':_0x5b2a06,'height':_0x344301});}['_updateFrame'](){const _0x796864=this['$']['*cropBox'];if(_0x796864&&this['_frameGuides']&&this['_frameThumbs']){for(const _0x3a520f of Object['values'](this['_frameThumbs'])){if(!_0x3a520f)continue;const {direction:_0x13017c,pathNode:_0x53abc1,interactionNode:_0x42980f,groupNode:_0x1a81f3}=_0x3a520f,_0x3d8301=''===_0x13017c,_0x13d01c=0x2===_0x13017c['length'],{x:_0x423d87,y:_0x239647,width:_0x15a928,height:_0x261505}=_0x796864;if(_0x3d8301)setSvgNodeAttrs(_0x42980f,{'x':_0x423d87,'y':_0x239647,'width':_0x15a928,'height':_0x261505});else{const _0x57f80a=clamp(Math['min'](_0x15a928,_0x261505)/(0x2*THUMB_CORNER_SIZE+THUMB_SIDE_SIZE)/0x2,0x0,0x1),_0x331c29=_0x13d01c?cornerPath(_0x796864,_0x13017c,_0x57f80a):sidePath(_0x796864,_0x13017c,_0x57f80a),_0x303329=_0x331c29['center'];if(!_0x303329)continue;const _0x895637=Math['max'](MAX_INTERACTION_SIZE*clamp(Math['min'](_0x15a928,_0x261505)/MAX_INTERACTION_SIZE/0x3,0x0,0x1),MIN_INTERACTION_SIZE);setSvgNodeAttrs(_0x42980f,{'x':_0x303329[0x0]-_0x895637,'y':_0x303329[0x1]-_0x895637,'width':0x2*_0x895637,'height':0x2*_0x895637}),setSvgNodeAttrs(_0x53abc1,{'d':_0x331c29['d']});}const _0x24eb3c=this['_shouldThumbBeDisabled'](_0x13017c);_0x1a81f3['setAttribute']('class',classNames('uc-thumb',{'uc-thumb--hidden':_0x24eb3c,'uc-thumb--visible':!_0x24eb3c}));}setSvgNodeAttrs(this['_frameGuides'],{'x':_0x796864['x']-0.5*GUIDE_STROKE_WIDTH,'y':_0x796864['y']-0.5*GUIDE_STROKE_WIDTH,'width':_0x796864['width']+GUIDE_STROKE_WIDTH,'height':_0x796864['height']+GUIDE_STROKE_WIDTH});}}['_createThumb'](_0x47b0ab,_0x15adb1){const _0x5421ac=createSvgNode('g');_0x5421ac['classList']['add']('uc-thumb'),_0x5421ac['setAttribute']('with-effects','');const _0x2fed08=createSvgNode('rect',{'fill':'transparent'}),_0x4f3bb4=createSvgNode('path',{'stroke':'currentColor','fill':'none','stroke-width':THUMB_STROKE_WIDTH});_0x5421ac['appendChild'](_0x4f3bb4),_0x5421ac['appendChild'](_0x2fed08),_0x47b0ab[_0x15adb1]={'direction':_0x15adb1,'pathNode':_0x4f3bb4,'interactionNode':_0x2fed08,'groupNode':_0x5421ac},''===_0x15adb1&&(_0x5421ac['style']['cursor']='move'),_0x2fed08['addEventListener']('pointerdown',this['_handlePointerDown']['bind'](this,_0x15adb1));}['_createThumbs'](){const _0x74a42d={};for(let _0x1b5668=0x0;_0x1b5668<0x3;_0x1b5668++)for(let _0x53c267=0x0;_0x53c267<0x3;_0x53c267++){const _0x133e91=''+['n','','s'][_0x1b5668]+['w','','e'][_0x53c267];''!==_0x133e91&&this['_createThumb'](_0x74a42d,_0x133e91);}return this['_createThumb'](_0x74a42d,''),_0x74a42d;}['_createGuides'](){const _0xe7d7d7=createSvgNode('svg'),_0x574752=createSvgNode('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'none','stroke':'currentColor','stroke-width':GUIDE_STROKE_WIDTH,'stroke-opacity':0.5});_0xe7d7d7['appendChild'](_0x574752);for(let _0x181958=0x1;_0x181958<=0x2;_0x181958++){const _0x3fd9eb=createSvgNode('line',{'x1':GUIDE_THIRD*_0x181958+'%','y1':'0%','x2':GUIDE_THIRD*_0x181958+'%','y2':'100%','stroke':'currentColor','stroke-width':GUIDE_STROKE_WIDTH,'stroke-opacity':0.3});_0xe7d7d7['appendChild'](_0x3fd9eb);}for(let _0xf086d6=0x1;_0xf086d6<=0x2;_0xf086d6++){const _0x10c831=createSvgNode('line',{'x1':'0%','y1':GUIDE_THIRD*_0xf086d6+'%','x2':'100%','y2':GUIDE_THIRD*_0xf086d6+'%','stroke':'currentColor','stroke-width':GUIDE_STROKE_WIDTH,'stroke-opacity':0.3});_0xe7d7d7['appendChild'](_0x10c831);}return _0xe7d7d7['classList']['add']('uc-guides','uc-guides--semi-hidden'),_0xe7d7d7;}['_createFrame'](){const _0x5df18b=this['ref']['svg-el'],_0x4975a5=document['createDocumentFragment'](),_0xe06051=this['_createGuides']();_0x4975a5['appendChild'](_0xe06051);const _0x2e221a=this['_createThumbs']();for(const {groupNode:_0x419d1b}of Object['values'](_0x2e221a))_0x4975a5['appendChild'](_0x419d1b);_0x5df18b['appendChild'](_0x4975a5),this['_frameThumbs']=_0x2e221a,this['_frameGuides']=_0xe06051;}['_handlePointerDown'](_0x4f5643,_0x4ff8d3){if(!this['_frameThumbs'])return;const _0x2d0525=this['_frameThumbs'][_0x4f5643];if(!_0x2d0525)return;if(this['_shouldThumbBeDisabled'](_0x4f5643))return;const _0x476699=this['$']['*cropBox'],_0x535f53=this['ref']['svg-el'],{x:_0x320c04,y:_0x225c87}=_0x535f53['getBoundingClientRect'](),_0x16e5e6=_0x4ff8d3['x']-_0x320c04,_0x23f85a=_0x4ff8d3['y']-_0x225c87;this['$']['dragging']=!0x0,this['_draggingThumb']=_0x2d0525,this['_dragStartPoint']=[_0x16e5e6,_0x23f85a],this['_dragStartCrop']={..._0x476699};}['_handlePointerUp_'](_0x438d00){this['_updateCursor'](),this['$']['dragging']&&(_0x438d00['stopPropagation'](),_0x438d00['preventDefault'](),this['$']['dragging']=!0x1);}['_handlePointerMove_'](_0x23582a){if(!this['$']['dragging']||!this['_dragStartPoint']||!this['_draggingThumb'])return;_0x23582a['stopPropagation'](),_0x23582a['preventDefault']();const _0x4e783a=this['ref']['svg-el'],{x:_0x18c573,y:_0x571347}=_0x4e783a['getBoundingClientRect'](),_0x2a9d77=_0x23582a['x']-_0x18c573,_0x5311d8=_0x23582a['y']-_0x571347,_0x3c64ad=_0x2a9d77-this['_dragStartPoint'][0x0],_0x5c1121=_0x5311d8-this['_dragStartPoint'][0x1],{direction:_0x24831a}=this['_draggingThumb'],_0x28effa=this['_calcCropBox'](_0x24831a,[_0x3c64ad,_0x5c1121]);_0x28effa&&(this['$']['*cropBox']=_0x28effa);}['_calcCropBox'](_0x3053e5,_0xd327e9){const [_0xc67083,_0xea5a46]=_0xd327e9,_0x546e02=this['$']['*imageBox'];let _0x62a11a=this['_dragStartCrop']??this['$']['*cropBox'];const _0x27dbfb=this['$']['*currentAspectRatio'],_0x5a8bd4=_0x27dbfb?_0x27dbfb['width']/_0x27dbfb['height']:void 0x0;if(_0x62a11a=''===_0x3053e5?moveRect({'rect':_0x62a11a,'delta':[_0xc67083,_0xea5a46],'imageBox':_0x546e02}):resizeRect({'rect':_0x62a11a,'delta':[_0xc67083,_0xea5a46],'direction':_0x3053e5,'aspectRatio':_0x5a8bd4,'imageBox':_0x546e02}),Object['values'](_0x62a11a)['every'](_0x2d0725=>Number['isFinite'](_0x2d0725)&&_0x2d0725>=0x0))return constraintRect(roundRect(_0x62a11a),_0x546e02);console['error']('CropFrame\x20is\x20trying\x20to\x20create\x20invalid\x20rectangle',{'payload':_0x62a11a});}['_handleSvgPointerMove_'](_0x4279fe){if(!this['_frameThumbs'])return;const _0x3baef7=Object['values'](this['_frameThumbs'])['find'](_0x1d6d1e=>{if(!_0x1d6d1e)return!0x1;if(this['_shouldThumbBeDisabled'](_0x1d6d1e['direction']))return!0x1;const _0x2ea533=_0x1d6d1e['interactionNode']['getBoundingClientRect']();return rectContainsPoint({'x':_0x2ea533['x'],'y':_0x2ea533['y'],'width':_0x2ea533['width'],'height':_0x2ea533['height']},[_0x4279fe['x'],_0x4279fe['y']]);});this['_hoverThumb']=_0x3baef7,this['_updateCursor']();}['_updateCursor'](){const _0x4ff0ca=this['_hoverThumb'];this['ref']['svg-el']['style']['cursor']=_0x4ff0ca?thumbCursor(_0x4ff0ca['direction']):'initial';}['_createMask'](_0x26696c){if(this['_frameImage'])return void this['_frameImage']['setAttribute']('href',_0x26696c);const _0x4f3b43=this['ref']['svg-el'],_0x41ee35=document['createDocumentFragment'](),_0x961d8=createSvgNode('image',{'href':_0x26696c});_0x961d8['setAttribute']('class','uc-cloud-mask'),_0x41ee35['appendChild'](_0x961d8),_0x4f3b43['appendChild'](_0x41ee35),this['_frameImage']=_0x961d8;}['_updateMask'](){const _0x2f634d=this['$']['*cropBox'];if(!_0x2f634d||!this['_frameImage'])return;const {x:_0xa9849f,y:_0xeb5743,width:_0x5aa360,height:_0x3f58ff}=_0x2f634d;setSvgNodeAttrs(this['_frameImage'],{'x':_0xa9849f,'y':_0xeb5743,'height':_0x3f58ff,'width':_0x5aa360});}['_render'](){this['_updateBackdrop'](),this['_updateFrame'](),this['_updateMask']();}['toggleThumbs'](_0x5ab71e){if(this['_frameThumbs'])for(const _0x3c13b7 of Object['values'](this['_frameThumbs'])){if(!_0x3c13b7)continue;const {groupNode:_0x4a2db2}=_0x3c13b7;_0x4a2db2['setAttribute']('class',classNames('uc-thumb',{'uc-thumb--hidden':!_0x5ab71e,'uc-thumb--visible':_0x5ab71e}));}}['initCallback'](){super['initCallback'](),this['_createBackdrop'](),this['_createFrame'](),this['sub']('*imageBox',()=>{this['_resizeBackdrop'](),window['requestAnimationFrame'](()=>{this['_render']();});}),this['sub']('*cropBox',_0x3a9593=>{_0x3a9593&&(this['_guidesHidden']=_0x3a9593['height']<=MIN_CROP_SIZE||_0x3a9593['width']<=MIN_CROP_SIZE,window['requestAnimationFrame'](()=>{this['_render']();}));}),this['subConfigValue']('cloudImageEditorMaskHref',_0x14cb42=>{_0x14cb42&&this['_createMask'](_0x14cb42);}),this['sub']('dragging',_0x2493f8=>{this['_frameGuides']&&this['_frameGuides']['setAttribute']('class',classNames({'uc-guides--hidden':this['_guidesHidden'],'uc-guides--visible':!this['_guidesHidden']&&_0x2493f8,'uc-guides--semi-hidden':!this['_guidesHidden']&&!_0x2493f8}));}),(this['ref']['svg-el']['addEventListener']('pointermove',this['_handleSvgPointerMove'],!0x0),document['addEventListener']('pointermove',this['_handlePointerMove'],!0x0),document['addEventListener']('pointerup',this['_handlePointerUp'],!0x0));}['destroyCallback'](){super['destroyCallback'](),(this['ref']['svg-el']['removeEventListener']('pointermove',this['_handleSvgPointerMove'],!0x0),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';var EditorButtonControl=class extends Block{['_titleEl'];constructor(){super(),this['init$']={...this['init$'],'active':!0x1,'title':'','icon':'','on.click':null,'title-prop':''};}['initCallback'](){super['initCallback'](),this['_titleEl']=this['ref']['title-el'],this['sub']('title',_0x2cdc89=>{const _0x54e060=this['_titleEl'];_0x54e060&&(_0x54e060['style']['display']=_0x2cdc89?'block':'none');}),this['sub']('active',_0x356876=>{this['className']=classNames({'uc-active':_0x356876,'uc-not_active':!_0x356876});}),this['sub']('on.click',_0x4614d2=>{this['onclick']=_0x4614d2??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\x20ref=\x22icon-el\x22\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';var SIZE_RECT_FIXED=0xc,SIZE_SVG_WRAPPER=0x10,getAdjustResolutions=_0x34ffe1=>{let _0x509bfa=0xc,_0x38b8c4=0xc;return _0x34ffe1['width']/_0x34ffe1['height']>=0x1?(_0x509bfa=SIZE_RECT_FIXED,_0x38b8c4=Math['round'](SIZE_RECT_FIXED*_0x34ffe1['height']/_0x34ffe1['width'])):(_0x38b8c4=SIZE_RECT_FIXED,_0x509bfa=Math['round'](SIZE_RECT_FIXED*_0x34ffe1['width']/_0x34ffe1['height'])),{'width':_0x509bfa,'height':_0x38b8c4};},EditorFreeformButtonControl=class extends EditorButtonControl{['initCallback'](){super['initCallback'](),this['$']['icon']='arrow-dropdown',this['$']['on.click']=this['handleClick']['bind'](this),this['sub']('*currentAspectRatio',_0x221478=>{this['$']['title']=_0x221478['hasFreeform']?this['l10n']('freeform-crop'):this['l10n']('crop-to-shape',{'value':_0x221478['width']+':'+_0x221478['height']}),this['bindL10n']('title-prop',()=>this['$']['title']);});}['handleClick'](){this['$']['*showListAspectRatio']=!0x0;}};EditorFreeformButtonControl['template']='\x20\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<div\x20class=\x22uc-title\x22\x20ref=\x22title-el\x22>{{title}}</div>\x0a\x20\x20\x20\x20<uc-icon\x20ref=\x22icon-el\x22\x20set=\x22@name:\x20icon;\x22></uc-icon>\x0a\x20\x20</button>\x20\x0a';var EditorAspectRatioButtonControl=class extends EditorButtonControl{constructor(){super(),this['init$']={...this['init$'],'active':!0x1,'once':!0x1};}['initCallback'](){super['initCallback'](),this['defineAccessor']('aspectRatio',_0x5a03d=>{if(!_0x5a03d)return;const _0x47f7fb=!!_0x5a03d['hasFreeform'];this['$']['title']=_0x47f7fb?this['l10n']('custom'):_0x5a03d['width']+':'+_0x5a03d['height'],_0x47f7fb||this['_renderRectBasedOnAspectRatio'](_0x5a03d),_0x47f7fb&&this['setAttribute']('uc-aspect-ratio-freeform',''),this['_aspectRatio']=_0x5a03d,this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-aspect-ratio',{'name':_0x47f7fb?this['l10n']('custom')['toLowerCase']():this['l10n']('crop-to-shape',{'value':_0x5a03d['width']+':'+_0x5a03d['height']})['toLowerCase'](),'value':''}));}),this['sub']('*currentAspectRatio',_0x5595f9=>{this['$']['active']=_0x5595f9&&_0x5595f9['id']===this['_aspectRatio']?.['id']||_0x5595f9?.['width']===this['_aspectRatio']?.['width']&&_0x5595f9?.['height']===this['_aspectRatio']?.['height'];}),this['$']['on.click']=this['handleClick']['bind'](this);}['handleClick'](){const _0x4ce30e=this['$']['*currentAspectRatio'];_0x4ce30e?.['id']!==this['_aspectRatio']?.['id']&&(this['$']['*currentAspectRatio']=this['_aspectRatio']);}['_renderRectBasedOnAspectRatio'](_0x26b4f3){const {width:_0x552f32,height:_0x483db7}=getAdjustResolutions(_0x26b4f3),_0x35c8b8=createSvgNode('rect',{'stroke-linejoin':'round','fill':'none','stroke':'currentColor','stroke-width':1.2,'fill-rule':'evenodd','x':(SIZE_SVG_WRAPPER-_0x552f32)/0x2,'y':(SIZE_SVG_WRAPPER-_0x483db7)/0x2,'rx':0x2,'width':_0x552f32,'height':_0x483db7}),_0x44c21e=this['ref']['icon-el']?.['ref']?.['svg'];_0x44c21e&&(_0x44c21e['innerHTML']='',_0x44c21e['appendChild'](_0x35c8b8));}['_aspectRatio'];};function nextAngle(_0x38c752){let _0xd0cca2=_0x38c752+0x5a;return _0xd0cca2=_0xd0cca2>=0x168?0x0:_0xd0cca2,_0xd0cca2;}function nextValue(_0x34ddd7,_0x15f6ad){if('rotate'===_0x34ddd7)return nextAngle('number'==typeof _0x15f6ad?_0x15f6ad:0x0);if('mirror'===_0x34ddd7||'flip'===_0x34ddd7)return!_0x15f6ad;throw new Error('Unsupported\x20operation:\x20'+_0x34ddd7);}var EditorCropButtonControl=class extends EditorButtonControl{['_operation']=void 0x0;['initCallback'](){super['initCallback'](),this['defineAccessor']('operation',_0x54a828=>{_0x54a828&&(this['_operation']=_0x54a828,this['$']['icon']=_0x54a828,this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-crop',{'name':this['l10n'](_0x54a828)['toLowerCase']()})));}),this['$']['on.click']=_0x4b4b61=>{if(!this['_operation'])return;const _0x39a934=this['$']['*cropperEl'],_0x39584b=_0x39a934['getValue'](this['_operation']),_0x4d1810=nextValue(this['_operation'],_0x39584b);this['telemetryManager']['sendEventCloudImageEditor'](_0x4b4b61,this['$']['*tabId'],{'operation':this['_operation'],'next':_0x4d1810,'prev':_0x39584b}),_0x39a934['setValue'](this['_operation'],_0x4d1810);};}};function preloadImage(_0x52369a){const _0x4cd76e=new Image();return{'promise':new Promise((_0x216cf7,_0x4359ea)=>{_0x4cd76e['src']=_0x52369a,_0x4cd76e['onload']=()=>_0x216cf7(),_0x4cd76e['onerror']=_0x5276ff=>_0x4359ea(_0x5276ff);}),'image':_0x4cd76e,'cancel':()=>{0x0===_0x4cd76e['naturalWidth']&&(_0x4cd76e['src']=TRANSPARENT_PIXEL_SRC);}};}function batchPreloadImages(_0x34a4a5){const _0x1fd6cd=[];for(const _0x4e8862 of _0x34a4a5){const _0x46dca9=preloadImage(_0x4e8862);_0x1fd6cd['push'](_0x46dca9);}const _0x101de5=_0x1fd6cd['map'](_0x113831=>_0x113831['image']);return{'promise':Promise['allSettled'](_0x1fd6cd['map'](_0x449760=>_0x449760['promise'])),'images':_0x101de5,'cancel':()=>{_0x1fd6cd['forEach'](_0x135b6d=>{_0x135b6d['cancel']();});}};}var FAKE_ORIGINAL_FILTER='original',EditorSlider=class extends Block{['_operation']='filter';['_filter'];['_originalUrl']='';constructor(){super(),this['init$']={...this['init$'],'disabled':!0x1,'min':0x0,'max':0x64,'value':0x0,'defaultValue':0x0,'zero':0x0,'on.input':_0x33e41f=>{const _0x17d3cb=this['$']['*faderEl'];_0x17d3cb?.['set'](_0x33e41f),this['$']['value']=_0x33e41f;}};}['setOperation'](_0x15b392,_0x1efee1){this['_operation']=_0x15b392,this['_filter']=_0x1efee1,this['_initializeValues']();const _0x5f3b3b=this['$']['*faderEl'],_0x5b8a86=this['_originalUrl']||this['$']['*originalUrl'];_0x5f3b3b&&_0x5b8a86&&_0x5f3b3b['activate']({'url':_0x5b8a86,'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'](){const _0x1b1db3=this['_operation'],{range:_0x39cd20,zero:_0x1eb134}=COLOR_OPERATIONS_CONFIG[_0x1b1db3],[_0x3f1561,_0x39b759]=_0x39cd20;this['$']['min']=_0x3f1561,this['$']['max']=_0x39b759,this['$']['zero']=_0x1eb134;const _0x92f067=this['$']['*editorTransformations'][_0x1b1db3];if('filter'===_0x1b1db3){let _0x9bc75=Number(_0x39b759);const _0x49c283=_0x92f067;if(_0x49c283){const {name:_0x472350,amount:_0xfd4ab2}=_0x49c283;_0x9bc75=_0x472350===this['_filter']?_0xfd4ab2:_0x39b759;}return this['$']['value']=_0x9bc75,void(this['$']['defaultValue']=_0x9bc75);}const _0x374a88=void 0x0!==_0x92f067?_0x92f067:_0x1eb134;this['$']['value']=_0x374a88,this['$']['defaultValue']=_0x374a88;}['apply'](){const _0x4f5a8a={...this['$']['*editorTransformations']};'filter'===this['_operation']?this['_filter']&&this['_filter']!==FAKE_ORIGINAL_FILTER?_0x4f5a8a['filter']={'name':this['_filter'],'amount':this['$']['value']}:delete _0x4f5a8a['filter']:_0x4f5a8a[this['_operation']]=this['$']['value'],this['$']['*editorTransformations']=_0x4f5a8a;}['cancel'](){const _0x4a8948=this['$']['*faderEl'];_0x4a8948?.['deactivate']({'hide':!0x1});}['initCallback'](){super['initCallback'](),this['sub']('*originalUrl',_0x500838=>{this['_originalUrl']=_0x500838;}),this['sub']('value',_0x4b21a9=>{const _0x32c4db=(this['_filter']??this['_operation'])+'\x20'+_0x4b21a9;this['$']['*operationTooltip']=_0x32c4db;});}};function parseFilterValue(_0x15d9f6){const _0x3e69ea=_0x15d9f6['match'](/^([A-Za-z]+)\s+(\d+)$/);if(!_0x3e69ea)return null;const [,_0x2775f2,_0xfb355a]=_0x3e69ea;return _0x2775f2&&void 0x0!==_0xfb355a?{'filter':_0x2775f2,'value':Number(_0xfb355a)}:null;}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';var EditorFilterControl=class extends EditorButtonControl{['_operation']='';['_filter']='';['_originalUrl']='';['_observer'];['_cancelPreload'];constructor(){super(),this['init$']={...this['init$'],'active':!0x1,'title':'','icon':'','isOriginal':!0x1,'iconSize':'20','on.click':null};}['_previewSrc'](){const _0x467731=parseInt(window['getComputedStyle'](this)['getPropertyValue']('--l-base-min-width'),0xa),_0x245cfe=window['devicePixelRatio'],_0x30c6c1=Math['ceil'](_0x245cfe*_0x467731),_0x5291ac=_0x245cfe>=0x2?'lightest':'normal',_0x810775={...this['$']['*editorTransformations']};return _0x810775[this['_operation']]=this['_filter']!==FAKE_ORIGINAL_FILTER?{'name':this['_filter'],'amount':0x64}:void 0x0,createCdnUrl(this['_originalUrl'],createCdnUrlModifiers(COMMON_OPERATIONS,transformationsToOperations(_0x810775),'quality/'+_0x5291ac,'scale_crop/'+_0x30c6c1+'x'+_0x30c6c1+'/center'));}async['_observerCallback'](_0xc6c8fc,_0x13df34){const _0x2e55c7=_0xc6c8fc[0x0];if(_0x2e55c7?.['isIntersecting']){const _0x5398eb=await this['proxyUrl'](this['_previewSrc']()),_0x34019b=this['ref']['preview-el'],{promise:_0x51aef1,cancel:_0x30aa78}=preloadImage(_0x5398eb);this['_cancelPreload']=_0x30aa78,_0x51aef1['catch'](_0xec1e5d=>{this['$']['*networkProblems']=!0x0,console['error']('Failed\x20to\x20load\x20image',{'error':_0xec1e5d});})['finally'](()=>{_0x34019b['style']['backgroundImage']='url('+_0x5398eb+')',_0x34019b['setAttribute']('loaded',''),_0x13df34['unobserve'](this);});}else this['_cancelPreload']?.();}['initCallback'](){super['initCallback'](),this['$']['on.click']=_0x27d019=>{if(this['$']['active'])!this['$']['isOriginal']&&(this['$']['*sliderEl']['setOperation'](this['_operation'],this['_filter']),this['$']['*showSlider']=!0x0);else{const _0x2e8a72=this['$']['*sliderEl'];_0x2e8a72['setOperation'](this['_operation'],this['_filter']),_0x2e8a72['apply']();}this['telemetryManager']['sendEventCloudImageEditor'](_0x27d019,this['$']['*tabId'],{'operation':parseFilterValue(this['$']['*operationTooltip'])}),this['$']['*currentFilter']=this['_filter'];},this['defineAccessor']('filter',_0x5ea2c4=>{this['_operation']='filter',this['_filter']=_0x5ea2c4,this['$']['isOriginal']=_0x5ea2c4===FAKE_ORIGINAL_FILTER,this['$']['icon']=this['$']['isOriginal']?'original':'slider',this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-filter',{'name':_0x5ea2c4['toLowerCase']()}));}),this['_observer']=new window['IntersectionObserver'](this['_observerCallback']['bind'](this),{'threshold':[0x0,0x1]});const _0x3bbd2f=this['$']['*originalUrl'];if(this['_originalUrl']=_0x3bbd2f,this['$']['isOriginal'])this['ref']['icon-el']['classList']['add']('uc-original-icon');else this['_observer']['observe'](this);this['sub']('*currentFilter',_0x5aa13a=>{this['$']['active']=_0x5aa13a&&_0x5aa13a===this['_filter'];}),this['sub']('isOriginal',_0x9e390f=>{this['$']['iconSize']=_0x9e390f?0x28:0x14;}),this['sub']('active',_0x453bc4=>{if(this['$']['isOriginal'])return;this['ref']['icon-el']['style']['opacity']=_0x453bc4?'1':'0';const _0x540c79=this['ref']['preview-el'];_0x453bc4?_0x540c79['style']['opacity']='0':_0x540c79['style']['backgroundImage']&&(_0x540c79['style']['opacity']='1');}),this['sub']('*networkProblems',async _0x21a529=>{if(!_0x21a529){const _0x4ba05b=await this['proxyUrl'](this['_previewSrc']()),_0x5e591b=this['ref']['preview-el'];_0x5e591b['style']['backgroundImage']&&(_0x5e591b['style']['backgroundImage']='none',_0x5e591b['style']['backgroundImage']='url('+_0x4ba05b+')');}});}['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';var throttle=(_0x1644dc,_0x1e510c)=>{let _0x857199,_0x5a2205=!0x1,_0x1b5f48=0x0;const _0x55ef6f=(..._0x13f193)=>{_0x5a2205?(_0x857199&&clearTimeout(_0x857199),_0x857199=setTimeout(()=>{Date['now']()-_0x1b5f48>=_0x1e510c&&(_0x1644dc(..._0x13f193),_0x1b5f48=Date['now']());},Math['max'](_0x1e510c-(Date['now']()-_0x1b5f48),0x0))):(_0x1644dc(..._0x13f193),_0x1b5f48=Date['now'](),_0x5a2205=!0x0);};return Object['defineProperty'](_0x55ef6f,'cancel',{'configurable':!0x1,'writable':!0x1,'enumerable':!0x1,'value':()=>{_0x857199&&clearTimeout(_0x857199);}}),_0x55ef6f;};function pick(_0x5e66a0,_0x149686){const _0x398974={};for(const _0x36d867 of _0x149686){const _0x204115=_0x5e66a0[_0x36d867];(Object['hasOwn'](_0x5e66a0,_0x36d867)||void 0x0!==_0x204115)&&(_0x398974[_0x36d867]=_0x204115);}return _0x398974;}function viewerImageSrc(_0xb413a7,_0x4da313,_0x3953b7){const _0x2843a6=window['devicePixelRatio'],_0x2ca058=Math['min'](Math['ceil'](_0x4da313*_0x2843a6),0xbb8),_0x5d61f1=_0x2843a6>=0x2?'lightest':'normal';return createCdnUrl(_0xb413a7,createCdnUrlModifiers(COMMON_OPERATIONS,transformationsToOperations(_0x3953b7),'quality/'+_0x5d61f1,'stretch/off/-/resize/'+_0x2ca058+'x','@clib/'+PACKAGE_NAME+'/'+PACKAGE_VERSION+'/uc-cloud-image-editor/'));}function validateCrop(_0x5b021d){if(!_0x5b021d)return!0x0;const _0x82e24a=[({dimensions:_0x161cff,coords:_0x36b35c})=>[..._0x161cff,..._0x36b35c]['every'](_0x5256c6=>Number['isInteger'](_0x5256c6)&&Number['isFinite'](_0x5256c6)),({dimensions:_0x370817,coords:_0x44f636})=>_0x370817['every'](_0xab0527=>_0xab0527>0x0)&&_0x44f636['every'](_0xd29760=>_0xd29760>=0x0)];return _0x82e24a['every'](_0x539cd2=>_0x539cd2(_0x5b021d));}var EditorImageCropper=class extends Block{['ctxOwner']=!0x0;['_commitDebounced'];['_handleResizeThrottled'];['_imageSize']={'width':0x0,'height':0x0};['_canvas'];['_ctx']=null;['_isActive']=!0x1;['_observer'];['_cancelPreload'];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);}['_handleResize'](){this['isConnected']&&this['_isActive']&&(this['_initCanvas'](),this['_syncTransformations'](),this['_alignImage'](),this['_alignCrop'](),this['_draw']());}['_syncTransformations'](){const _0x217e4c=pick(this['$']['*editorTransformations'],Object['keys'](this['$']['*operations'])),_0x3e78a8={...this['$']['*operations'],..._0x217e4c};this['$']['*operations']=_0x3e78a8;}['_initCanvas'](){const _0x2bc59e=this['ref']['canvas-el'],_0x1b9db7=_0x2bc59e['getContext']('2d'),_0x68e24a=this['offsetWidth'],_0x48d96c=this['offsetHeight'],_0x5c3393=window['devicePixelRatio'];_0x2bc59e['style']['width']=_0x68e24a+'px',_0x2bc59e['style']['height']=_0x48d96c+'px',_0x2bc59e['width']=_0x68e24a*_0x5c3393,_0x2bc59e['height']=_0x48d96c*_0x5c3393,_0x1b9db7?.['scale'](_0x5c3393,_0x5c3393),this['_canvas']=_0x2bc59e,this['_ctx']=_0x1b9db7;}['_alignImage'](){if(!this['_isActive']||!this['$']['image'])return;const _0x1b6da0=this['$']['image'],_0x40c9b4=this['$']['*padding'],_0x96b41d=this['$']['*operations'],{rotate:_0x42995f}=_0x96b41d,_0x33eb75=this['offsetWidth'],_0x23bcab=this['offsetHeight'],_0x2c349f=rotateSize({'width':_0x1b6da0['naturalWidth'],'height':_0x1b6da0['naturalHeight']},_0x42995f);let _0x201894;if(_0x2c349f['width']>_0x33eb75-0x2*_0x40c9b4||_0x2c349f['height']>_0x23bcab-0x2*_0x40c9b4){const _0x453614=_0x2c349f['width']/_0x2c349f['height'];if(_0x453614>_0x33eb75/_0x23bcab){const _0x555bf3=_0x33eb75-0x2*_0x40c9b4,_0x55037c=_0x555bf3/_0x453614;_0x201894={'x':0x0+_0x40c9b4,'y':_0x40c9b4+(_0x23bcab-0x2*_0x40c9b4)/0x2-_0x55037c/0x2,'width':_0x555bf3,'height':_0x55037c};}else{const _0x45fb05=_0x23bcab-0x2*_0x40c9b4,_0x1db61a=_0x45fb05*_0x453614;_0x201894={'x':_0x40c9b4+(_0x33eb75-0x2*_0x40c9b4)/0x2-_0x1db61a/0x2,'y':0x0+_0x40c9b4,'width':_0x1db61a,'height':_0x45fb05};}}else{const {width:_0x15c1e2,height:_0xcce25e}=_0x2c349f;_0x201894={'x':_0x40c9b4+(_0x33eb75-0x2*_0x40c9b4)/0x2-_0x15c1e2/0x2,'y':_0x40c9b4+(_0x23bcab-0x2*_0x40c9b4)/0x2-_0xcce25e/0x2,'width':_0x15c1e2,'height':_0xcce25e};}this['$']['*imageBox']=roundRect(_0x201894);}['_alignCrop'](){let _0x128e1e=this['$']['*cropBox'];const _0x250872=this['$']['*imageBox'],_0x31ebed=this['$']['*operations'],{rotate:_0x2a22d2}=_0x31ebed,_0x363936=this['$']['*editorTransformations']['crop'],{width:_0x10ac22,x:_0x1514f3,y:_0x34d652}=_0x250872;if(_0x363936){const {dimensions:[_0x36d246,_0x2f0ffe],coords:[_0x582c3f,_0x5ba5d2]}=_0x363936,{width:_0x456909}=rotateSize(this['_imageSize'],_0x2a22d2),_0x19d088=_0x10ac22/_0x456909;_0x128e1e=constraintRect(roundRect({'x':_0x1514f3+_0x582c3f*_0x19d088,'y':_0x34d652+_0x5ba5d2*_0x19d088,'width':_0x36d246*_0x19d088,'height':_0x2f0ffe*_0x19d088}),_0x250872);}const _0x134d5e=this['$']['*currentAspectRatio'],_0x505809=_0x134d5e?_0x134d5e['width']/_0x134d5e['height']:void 0x0;if(!isRectInsideRect(_0x128e1e,_0x250872)||_0x505809&&!isRectMatchesAspectRatio(_0x128e1e,_0x505809)){const _0xabe43e=_0x250872['width']/_0x250872['height'];let _0x14ff58=_0x250872['width'],_0x3adae4=_0x250872['height'];_0x505809&&(_0xabe43e>_0x505809?_0x14ff58=Math['min'](_0x250872['height']*_0x505809,_0x250872['width']):_0x3adae4=Math['min'](_0x250872['width']/_0x505809,_0x250872['height'])),_0x128e1e={'x':_0x250872['x']+_0x250872['width']/0x2-_0x14ff58/0x2,'y':_0x250872['y']+_0x250872['height']/0x2-_0x3adae4/0x2,'width':_0x14ff58,'height':_0x3adae4};}this['$']['*cropBox']=constraintRect(roundRect(_0x128e1e),_0x250872);}['_drawImage'](){const _0x2570d3=this['_ctx'];if(!_0x2570d3)return;const _0x5b9f6e=this['$']['image'],_0x4f2e72=this['$']['*imageBox'],_0x181d90=this['$']['*operations'],{mirror:_0x585e05,flip:_0x508edd,rotate:_0x1f657f}=_0x181d90,_0x36b734=rotateSize({'width':_0x4f2e72['width'],'height':_0x4f2e72['height']},_0x1f657f);_0x2570d3['save'](),_0x2570d3['translate'](_0x4f2e72['x']+_0x4f2e72['width']/0x2,_0x4f2e72['y']+_0x4f2e72['height']/0x2),_0x2570d3['rotate'](_0x1f657f*Math['PI']*-0x1/0xb4),_0x2570d3['scale'](_0x585e05?-0x1:0x1,_0x508edd?-0x1:0x1),_0x2570d3['drawImage'](_0x5b9f6e,-_0x36b734['width']/0x2,-_0x36b734['height']/0x2,_0x36b734['width'],_0x36b734['height']),_0x2570d3['restore']();}['_draw'](){if(!(this['_isActive']&&this['$']['image']&&this['_canvas']&&this['_ctx']))return;const _0x1cb1cc=this['_canvas'];this['_ctx']['clearRect'](0x0,0x0,_0x1cb1cc['width'],_0x1cb1cc['height']),this['_drawImage']();}['_animateIn']({fromViewer:_0x1f0352}){this['$']['image']&&(this['ref']['frame-el']['toggleThumbs'](!0x0),this['_transitionToImage'](),setTimeout(()=>{this['className']=classNames({'uc-active_from_viewer':_0x1f0352,'uc-active_from_editor':!_0x1f0352,'uc-inactive_to_editor':!0x1});}));}['_getCropDimensions'](){const _0x647b3=this['$']['*cropBox'],_0x457b5f=this['$']['*imageBox'],_0x3d8ec4=this['$']['*operations'],{rotate:_0x285b36}=_0x3d8ec4,{width:_0x4df311,height:_0x28759b}=_0x457b5f,{width:_0x2cea63,height:_0x4934fd}=rotateSize(this['_imageSize'],_0x285b36),{width:_0x345a5e,height:_0x4e9104}=_0x647b3,_0x2935db=_0x4df311/_0x2cea63,_0x4e94cc=_0x28759b/_0x4934fd;return[clamp(Math['round'](_0x345a5e/_0x2935db),0x1,_0x2cea63),clamp(Math['round'](_0x4e9104/_0x4e94cc),0x1,_0x4934fd)];}['_getCropTransformation'](){const _0x407455=this['$']['*cropBox'],_0x24b47a=this['$']['*imageBox'],_0x2c84a1=this['$']['*operations'],{rotate:_0x258ce1}=_0x2c84a1,{width:_0x6359d0,height:_0x19e808,x:_0x510ccf,y:_0x104a68}=_0x24b47a,{width:_0x37536b,height:_0x59601f}=rotateSize(this['_imageSize'],_0x258ce1),{x:_0x102d13,y:_0x4c6753}=_0x407455,_0x3d5858=_0x6359d0/_0x37536b,_0x510974=_0x19e808/_0x59601f,_0xf77440=this['_getCropDimensions'](),_0x336ea4={'dimensions':_0xf77440,'coords':[clamp(Math['round']((_0x102d13-_0x510ccf)/_0x3d5858),0x0,_0x37536b-_0xf77440[0x0]),clamp(Math['round']((_0x4c6753-_0x104a68)/_0x510974),0x0,_0x59601f-_0xf77440[0x1])]};if(validateCrop(_0x336ea4)){if(_0xf77440[0x0]!==_0x37536b||_0xf77440[0x1]!==_0x59601f)return _0x336ea4;}else console['error']('Cropper\x20is\x20trying\x20to\x20create\x20invalid\x20crop\x20object',{'payload':_0x336ea4});}['_commit'](){if(!this['isConnected']||!this['_imageSize'])return;const _0x32c153=this['$']['*operations'],{rotate:_0x23a559,mirror:_0x27098d,flip:_0x1ed3ac}=_0x32c153,_0x1e2724=this['_getCropTransformation'](),_0x199e49={...this['$']['*editorTransformations'],'crop':_0x1e2724,'rotate':_0x23a559,'mirror':_0x27098d,'flip':_0x1ed3ac};this['$']['*editorTransformations']=_0x199e49;}['setValue'](_0x2319e0,_0x227afc){this['$']['*operations']={...this['$']['*operations'],[_0x2319e0]:_0x227afc},this['_isActive']&&(this['_alignImage'](),this['_alignCrop'](),this['_draw']());}['getValue'](_0x4130a4){return this['$']['*operations'][_0x4130a4];}async['activate'](_0x5e7184,{fromViewer:_0x4f38c0}={}){if(!this['_isActive']){this['_isActive']=!0x0,this['_imageSize']=_0x5e7184,this['removeEventListener']('transitionend',this['_reset']);try{const _0x36f247=this['$']['*originalUrl'],_0x1c68dd=this['$']['*editorTransformations'];this['$']['image']=await this['_waitForImage'](_0x36f247,_0x1c68dd),this['_syncTransformations'](),this['_animateIn']({'fromViewer':_0x4f38c0});}catch(_0x584601){console['error']('Failed\x20to\x20activate\x20cropper',{'error':_0x584601}),this['telemetryManager']['sendEventError'](_0x584601,'cloud\x20editor\x20image.\x20Failed\x20to\x20activate\x20cropper');}this['_observer']=new ResizeObserver(_0x1e763f=>{const [_0x3ef73c]=_0x1e763f;if(!_0x3ef73c)return;_0x3ef73c['contentRect']['width']>0x0&&_0x3ef73c['contentRect']['height']>0x0&&this['_isActive']&&this['$']['image']&&this['_handleResizeThrottled']();}),this['_observer']['observe'](this);}}['deactivate']({reset:_0x3e6adf=!0x1}={}){this['_isActive']&&(!_0x3e6adf&&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'](){const _0x2d8a4e=this['_getCropDimensions'](),_0x4ac2f7=this['$']['*cropBox'],_0x2cca60=Math['min'](this['offsetWidth'],_0x2d8a4e[0x0])/_0x4ac2f7['width'],_0x31249d=Math['min'](this['offsetHeight'],_0x2d8a4e[0x1])/_0x4ac2f7['height'],_0x59c850=Math['min'](_0x2cca60,_0x31249d),_0x5076c3=_0x4ac2f7['x']+_0x4ac2f7['width']/0x2,_0x21961d=_0x4ac2f7['y']+_0x4ac2f7['height']/0x2;this['style']['transform']='scale('+_0x59c850+')\x20translate('+(this['offsetWidth']/0x2-_0x5076c3)/_0x59c850+'px,\x20'+(this['offsetHeight']/0x2-_0x21961d)/_0x59c850+'px)',this['style']['transformOrigin']=_0x5076c3+'px\x20'+_0x21961d+'px';}['_transitionToImage'](){const _0x430afc=this['$']['*cropBox'],_0x2b8035=_0x430afc['x']+_0x430afc['width']/0x2,_0x1a9101=_0x430afc['y']+_0x430afc['height']/0x2;this['style']['transform']='scale(1)',this['style']['transformOrigin']=_0x2b8035+'px\x20'+_0x1a9101+'px';}['_reset'](){this['_isActive']||(this['$']['image']=null);}async['_waitForImage'](_0x4cc114,_0x3d4dfd){const _0x581011=this['offsetWidth'];_0x3d4dfd={..._0x3d4dfd,'crop':void 0x0,'rotate':void 0x0,'flip':void 0x0,'mirror':void 0x0};const _0x2039e5=await this['proxyUrl'](viewerImageSrc(_0x4cc114,_0x581011,_0x3d4dfd)),{promise:_0x5b13a3,cancel:_0x5170b0,image:_0x5ebb73}=preloadImage(_0x2039e5),_0x531a9e=this['_handleImageLoading'](_0x2039e5);return _0x5ebb73['addEventListener']('load',_0x531a9e,{'once':!0x0}),_0x5ebb73['addEventListener']('error',_0x531a9e,{'once':!0x0}),this['_cancelPreload']?.(),this['_cancelPreload']=_0x5170b0,_0x5b13a3['then'](()=>_0x5ebb73)['catch'](_0x175ee6=>(console['error']('Failed\x20to\x20load\x20image',{'error':_0x175ee6}),this['$']['*networkProblems']=!0x0,_0x5ebb73));}['_handleImageLoading'](_0x5d1e4a){const _0x5bba19='crop',_0x448db2=this['$']['*loadingOperations'];let _0x2ca6d4=_0x448db2['get'](_0x5bba19);return _0x2ca6d4||(_0x2ca6d4=new Map(),_0x448db2['set'](_0x5bba19,_0x2ca6d4)),_0x2ca6d4['get'](_0x5d1e4a)||(_0x2ca6d4['set'](_0x5d1e4a,!0x0),this['$']['*loadingOperations']=_0x448db2),()=>{const _0x3c47c3=_0x448db2['get'](_0x5bba19);_0x3c47c3?.['has'](_0x5d1e4a)&&(_0x3c47c3['delete'](_0x5d1e4a),this['$']['*loadingOperations']=_0x448db2);};}['initCallback'](){super['initCallback'](),this['sub']('*imageBox',()=>{this['_draw']();}),this['sub']('*cropBox',()=>{this['$']['image']&&this['_commitDebounced']();}),this['sub']('*currentAspectRatio',()=>{this['_alignCrop']();}),setTimeout(()=>{this['sub']('*networkProblems',_0x4bf833=>{_0x4bf833||this['_isActive']&&this['activate'](this['_imageSize'],{'fromViewer':!0x1});});},0x0);}['destroyCallback'](){super['destroyCallback'](),this['_observer']?.['disconnect']();}};function linspace(_0x5ec5df,_0x55457a,_0xcfffff){const _0x1c7fbe=_0xcfffff-0x1,_0x304ee8=new Array(_0xcfffff);for(let _0x3ba582=_0x1c7fbe;_0x3ba582>=0x0;_0x3ba582-=0x1)_0x304ee8[_0x3ba582]=Math['ceil']((_0x3ba582*_0x55457a+(_0x1c7fbe-_0x3ba582)*_0x5ec5df)/_0x1c7fbe);return _0x304ee8;}function isOperationKey(_0x2cf156){return'string'==typeof _0x2cf156&&_0x2cf156 in COLOR_OPERATIONS_CONFIG;}function splitBySections(_0x1d2a82){const _0x2d3ff9=[];for(let _0x1ca2a5=0x0;_0x1ca2a5<_0x1d2a82['length']-0x1;_0x1ca2a5+=0x1){const _0x2746af=_0x1d2a82[_0x1ca2a5],_0x4778a0=_0x1d2a82[_0x1ca2a5+0x1];'number'==typeof _0x2746af&&'number'==typeof _0x4778a0&&_0x2d3ff9['push']([_0x2746af,_0x4778a0]);}return _0x2d3ff9;}function calculateOpacities(_0xb99200,_0x230f87,_0x1d2a95){const _0x1e5d0e=splitBySections(_0xb99200)['find'](([_0x2c71da,_0x411262])=>_0x2c71da<=_0x230f87&&_0x230f87<=_0x411262);if(!_0x1e5d0e)return _0xb99200['map'](()=>0x0);const [_0x143871,_0x9f646d]=_0x1e5d0e;return _0xb99200['map'](_0xf16a00=>{const _0x3c5248=Math['abs'](_0x143871-_0x9f646d)||0x1,_0x3009c7=Math['abs'](_0x230f87-_0x143871)/_0x3c5248;return _0x143871===_0xf16a00?_0x230f87>_0x1d2a95?0x1:0x1-_0x3009c7:_0x9f646d===_0xf16a00?_0x230f87>=_0x1d2a95?_0x3009c7:0x1:0x0;});}function calculateZIndices(_0xbc9468,_0x229a65){return _0xbc9468['map']((_0x446cac,_0x468fc4)=>_0x446cac<_0x229a65?_0xbc9468['length']-_0x468fc4:_0x468fc4);}function keypointsRange(_0x44cb9e,_0x4486e8){const _0x2ee680=COLOR_OPERATIONS_CONFIG[_0x44cb9e]['keypointsNumber'],{range:_0x489ad0,zero:_0x56a186}=COLOR_OPERATIONS_CONFIG[_0x44cb9e];return[...new Set([...linspace(_0x489ad0[0x0],_0x56a186,_0x2ee680+0x1),...linspace(_0x56a186,_0x489ad0[0x1],_0x2ee680+0x1),_0x56a186,_0x4486e8])]['sort']((_0x48adf1,_0x189070)=>_0x48adf1-_0x189070);}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';var EditorImageFader=class extends Block{['_isActive']=!0x1;['_hidden']=!0x0;['_operation']='initial';['_filter'];['_value'];['_transformations']={};['_keypoints']=[];['_container'];['_previewImage'];['_cancelLastImages'];['_cancelBatchPreload'];['_url'];['_fromViewer'];['_raf']=0x0;['_addKeypointDebounced']=debounce(this['_addKeypoint']['bind'](this),0x258);constructor(){super(),this['classList']['add']('uc-inactive_to_cropper');}['_handleImageLoading'](_0x4a5805){const _0x16f892=this['_operation'],_0x54b704=this['$']['*loadingOperations'];_0x54b704['has'](_0x16f892)||_0x54b704['set'](_0x16f892,new Map());const _0x1fd1a8=_0x54b704['get'](_0x16f892);return _0x1fd1a8&&!_0x1fd1a8['get'](_0x4a5805)&&(_0x1fd1a8['set'](_0x4a5805,!0x0),this['$']['*loadingOperations']=_0x54b704),()=>{const _0x25da3a=_0x54b704['get'](_0x16f892);_0x25da3a?.['has'](_0x4a5805)&&(_0x25da3a['delete'](_0x4a5805),this['$']['*loadingOperations']=_0x54b704);};}['_flush'](){window['cancelAnimationFrame'](this['_raf']),this['_raf']=window['requestAnimationFrame'](()=>{for(const _0x32128d of this['_keypoints']){const {image:_0x50f079}=_0x32128d;_0x50f079&&(_0x50f079['style']['opacity']=_0x32128d['opacity']['toString'](),_0x50f079['style']['zIndex']=_0x32128d['zIndex']['toString']());}});}['_imageSrc']({url:_0x2fdaa8=this['_url'],filter:_0x28318c=this['_filter']??void 0x0,operation:_0x2c1c94,value:_0x2438a6}={}){if(!_0x2fdaa8)throw new Error('URL\x20is\x20not\x20defined');const _0x180544={...this['_transformations']};_0x2c1c94&&('filter'===_0x2c1c94?_0x28318c&&'number'==typeof _0x2438a6&&(_0x180544['filter']={'name':_0x28318c,'amount':_0x2438a6}):'number'==typeof _0x2438a6&&(_0x180544[_0x2c1c94]=_0x2438a6));const _0x62f464=this['offsetWidth'];return this['proxyUrl'](viewerImageSrc(_0x2fdaa8,_0x62f464,_0x180544));}async['_constructKeypoint'](_0x56f71f,_0x3f9a6a){return{'src':await this['_imageSrc']({'operation':_0x56f71f,'value':_0x3f9a6a}),'image':void 0x0,'opacity':0x0,'zIndex':0x0,'value':_0x3f9a6a};}['_isSame'](_0x48e025,_0x4ecb18){return this['_operation']===_0x48e025&&this['_filter']===_0x4ecb18;}async['_addKeypoint'](_0x22d594,_0x4cf474,_0x45893d){const _0x245b50=()=>!this['_isSame'](_0x22d594,_0x4cf474)||this['_value']!==_0x45893d||!!this['_keypoints']['find'](_0x5624b4=>_0x5624b4['value']===_0x45893d);if(_0x245b50())return;const _0x443bd3=await this['_constructKeypoint'](_0x22d594,_0x45893d),_0x518552=new Image();_0x518552['src']=_0x443bd3['src'];const _0x42bbaa=this['_handleImageLoading'](_0x443bd3['src']);_0x518552['addEventListener']('load',_0x42bbaa,{'once':!0x0}),_0x518552['addEventListener']('error',_0x42bbaa,{'once':!0x0}),_0x443bd3['image']=_0x518552,_0x518552['classList']['add']('uc-fader-image'),_0x518552['addEventListener']('load',()=>{if(_0x245b50())return;const _0x5694fe=this['_keypoints'];let _0xdeff10=_0x5694fe['findIndex'](_0x372319=>_0x372319['value']>_0x45893d);-0x1===_0xdeff10&&(_0xdeff10=_0x5694fe['length']);const _0xcc12ad=_0x5694fe[_0xdeff10],_0x25f675=_0xcc12ad?.['image'],_0x29cb47=this['_container'];!_0x29cb47||_0x25f675&&!_0x29cb47['contains'](_0x25f675)||(_0x5694fe['splice'](_0xdeff10,0x0,_0x443bd3),_0x25f675&&_0x29cb47['insertBefore'](_0x518552,_0x25f675),this['_update'](_0x22d594,_0x45893d));},{'once':!0x0}),_0x518552['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}['set'](_0x28a944){const _0x36cf30='string'==typeof _0x28a944?parseInt(_0x28a944,0xa):_0x28a944;isOperationKey(this['_operation'])&&Number['isFinite'](_0x36cf30)&&(this['_update'](this['_operation'],_0x36cf30),this['_addKeypointDebounced'](this['_operation'],this['_filter'],_0x36cf30));}['_update'](_0x3ab340,_0x228507){this['_operation']=_0x3ab340,this['_value']=_0x228507;const {zero:_0x46c35e}=COLOR_OPERATIONS_CONFIG[_0x3ab340],_0x502030=this['_keypoints']['map'](_0x332670=>_0x332670['value']),_0x59775e=calculateOpacities(_0x502030,_0x228507,_0x46c35e),_0x2c5da7=calculateZIndices(_0x502030,_0x46c35e);this['_keypoints']['forEach']((_0x297f26,_0x2e587)=>{const _0x446b12=_0x59775e[_0x2e587],_0x3d29eb=_0x2c5da7[_0x2e587];'number'==typeof _0x446b12&&(_0x297f26['opacity']=_0x446b12),'number'==typeof _0x3d29eb&&(_0x297f26['zIndex']=_0x3d29eb);}),this['_flush']();}['_createPreviewImage'](){const _0x25ec2=new Image();return _0x25ec2['classList']['add']('uc-fader-image','uc-fader-image--preview'),_0x25ec2['style']['opacity']='0',_0x25ec2;}async['_initNodes'](){const _0x22120f=document['createDocumentFragment']();this['_previewImage']=this['_previewImage']||this['_createPreviewImage']();const _0x606360=this['_previewImage'];this['contains'](_0x606360)||_0x22120f['appendChild'](_0x606360);const _0x35e0d1=document['createElement']('div');_0x22120f['appendChild'](_0x35e0d1);const _0x5da8b3=this['_keypoints']['map'](_0x210af7=>_0x210af7['src']),{images:_0x40bde2,promise:_0x4c7d2e,cancel:_0x1292b7}=batchPreloadImages(_0x5da8b3);_0x40bde2['forEach'](_0x245d46=>{const _0x1eedf0=this['_handleImageLoading'](_0x245d46['src']);_0x245d46['addEventListener']('load',_0x1eedf0),_0x245d46['addEventListener']('error',_0x1eedf0);}),this['_cancelLastImages']=()=>{_0x1292b7(),this['_cancelLastImages']=void 0x0;};const _0x3befbb=this['_operation'],_0x3c307f=this['_filter'];await _0x4c7d2e,this['_isActive']&&this['_isSame'](_0x3befbb,_0x3c307f)&&(this['_container']?.['remove'](),this['_container']=_0x35e0d1,this['_keypoints']['forEach']((_0x4703cb,_0x53cd5c)=>{const _0xdcf27b=_0x40bde2[_0x53cd5c];_0xdcf27b&&(_0xdcf27b['classList']['add']('uc-fader-image'),_0x4703cb['image']=_0xdcf27b,this['_container']?.['appendChild'](_0xdcf27b));}),this['appendChild'](_0x22120f),this['_flush']());}async['setTransformations'](_0x44a143){if(this['_transformations']=_0x44a143,this['_previewImage']){const _0x2c72ce=await this['_imageSrc'](),_0x2aa9cd=this['_handleImageLoading'](_0x2c72ce);this['_previewImage']['src']=_0x2c72ce,this['_previewImage']['addEventListener']('load',_0x2aa9cd,{'once':!0x0}),this['_previewImage']['addEventListener']('error',_0x2aa9cd,{'once':!0x0}),this['_previewImage']['style']['opacity']='1',this['_previewImage']['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}}async['preload']({url:_0x2740f9,filter:_0x332bc2,operation:_0x4c5b33,value:_0xbe6d39}){if(!_0x4c5b33||'number'!=typeof _0xbe6d39)return;this['_cancelBatchPreload']?.();const _0x3c5e94=keypointsRange(_0x4c5b33,_0xbe6d39),_0x19f3d8=await Promise['all'](_0x3c5e94['map'](_0x3f4985=>this['_imageSrc']({'url':_0x2740f9,'filter':_0x332bc2,'operation':_0x4c5b33,'value':_0x3f4985}))),{cancel:_0x64700a}=batchPreloadImages(_0x19f3d8);this['_cancelBatchPreload']=_0x64700a;}['_setOriginalSrc'](_0x1cdfea){const _0xb58f65=this['_previewImage']||this['_createPreviewImage']();if(this['contains'](_0xb58f65)||this['appendChild'](_0xb58f65),this['_previewImage']=_0xb58f65,_0xb58f65['src']===_0x1cdfea)return _0xb58f65['style']['opacity']='1',_0xb58f65['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}));_0xb58f65['style']['opacity']='0';const _0x556bee=this['_handleImageLoading'](_0x1cdfea);_0xb58f65['addEventListener']('error',_0x556bee,{'once':!0x0}),_0xb58f65['src']=_0x1cdfea,_0xb58f65['addEventListener']('load',()=>{_0x556bee(),_0xb58f65&&(_0xb58f65['style']['opacity']='1',_0xb58f65['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}),_0xb58f65['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}async['activate']({url:_0x373d8c,operation:_0x49526a,value:_0x41d5af,filter:_0x398709,fromViewer:_0x3799cf}){this['_isActive']=!0x0,this['_hidden']=!0x1,this['_url']=_0x373d8c,this['_operation']=_0x49526a??'initial',this['_value']=_0x41d5af,this['_filter']=_0x398709,this['_fromViewer']=_0x3799cf;if('number'!=typeof _0x41d5af&&!_0x398709){const _0x12c231=await this['_imageSrc']({'operation':_0x49526a,'value':_0x41d5af});return this['_setOriginalSrc'](_0x12c231),void this['_container']?.['remove']();}_0x49526a&&'number'==typeof _0x41d5af&&(this['_keypoints']=await Promise['all'](keypointsRange(_0x49526a,_0x41d5af)['map'](_0x5afbac=>this['_constructKeypoint'](_0x49526a,_0x5afbac))),this['_update'](_0x49526a,_0x41d5af),this['_initNodes']());}['deactivate']({hide:_0x487588=!0x0}={}){this['_isActive']=!0x1,this['_cancelLastImages']?.(),this['_cancelBatchPreload']?.(),_0x487588&&!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']?.['remove']();},{'once':!0x0})):this['_container']?.['remove']();}},EditorOperationControl=class extends EditorButtonControl{['_operation']='';['initCallback'](){super['initCallback'](),this['$']['on.click']=_0x45677c=>{this['$']['*sliderEl']['setOperation'](this['_operation']),this['$']['*showSlider']=!0x0,this['$']['*currentOperation']=this['_operation'],this['telemetryManager']['sendEventCloudImageEditor'](_0x45677c,this['$']['*tabId'],{'operation':parseFilterValue(this['$']['*operationTooltip'])});},this['defineAccessor']('operation',_0x79995c=>{_0x79995c&&(this['_operation']=_0x79995c,this['$']['icon']=_0x79995c,this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-tuning',{'name':this['l10n'](_0x79995c)['toLowerCase']()})),this['bindL10n']('title',()=>this['l10n'](_0x79995c)));}),this['sub']('*editorTransformations',_0x50fd28=>{if(!this['_operation'])return;const {zero:_0x20849a}=COLOR_OPERATIONS_CONFIG[this['_operation']],_0xa9a497=_0x50fd28[this['_operation']],_0x854db4=void 0x0!==_0xa9a497&&_0xa9a497!==_0x20849a;this['$']['active']=_0x854db4;});}},X_THRESHOLD=0x1,EditorScroller=class extends Block{['initCallback'](){super['initCallback'](),this['addEventListener']('wheel',_0xbbf77f=>{_0xbbf77f['preventDefault']();const {deltaY:_0x1a1311,deltaX:_0x5955c2}=_0xbbf77f;Math['abs'](_0x5955c2)>X_THRESHOLD?this['scrollLeft']+=_0x5955c2:this['scrollLeft']+=_0x1a1311;},{'passive':!0x1}),this['addEventListener']('scroll',()=>{},{'passive':!0x0});}};function renderTabToggle(_0x5e020d){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.'+_0x5e020d+';\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-'+_0x5e020d+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20data-id=\x22'+_0x5e020d+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20icon=\x22'+_0x5e020d+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20on.clickTab;\x20aria-role:tab_role;\x20aria-controls:tab_'+_0x5e020d+';\x20title-prop:\x20a11y-editor-tab-'+_0x5e020d+'\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(_0xf89fb7){return'\x0a\x20\x20\x20\x20<uc-presence-toggle\x0a\x20\x20\x20\x20\x20\x20id=\x22tab_'+_0xf89fb7+'\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-tab-content\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22visible:\x20presence.tabContent.'+_0xf89fb7+';\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-'+_0xf89fb7+'\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';var EditorToolbar=class extends Block{['_debouncedShowLoader'];['_cancelPreload'];['_updateInfoTooltip'];constructor(){super(),this['init$']={...this['init$'],'*sliderEl':null,'*listAspectRatioEl':null,'*loadingOperations':new Map(),'*showSlider':!0x1,'*showListAspectRatio':!0x1,'hideSliderOrList':!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':_0x3710e0=>{this['telemetryManager']['sendEventCloudImageEditor'](_0x3710e0,this['$']['*tabId'],{'action':'cancel'}),this['_cancelPreload']?.(),(0x0,this['$']['*on.cancel'])();},'on.apply':_0x16e05d=>{this['telemetryManager']['sendEventCloudImageEditor'](_0x16e05d,this['$']['*tabId'],{'action':'apply'}),(0x0,this['$']['*on.apply'])(this['$']['*editorTransformations']);},'on.applySlider':_0x46fc65=>{this['telemetryManager']['sendEventCloudImageEditor'](_0x46fc65,this['$']['*tabId'],{'action':'apply-slider','operation':parseFilterValue(this['$']['*operationTooltip'])}),(this['ref']['slider-el']['apply'](),this['_onSliderClose']());},'on.cancelSlider':_0x499d2b=>{this['telemetryManager']['sendEventCloudImageEditor'](_0x499d2b,this['$']['*tabId'],{'action':'cancel-slider'}),(this['ref']['slider-el']['cancel'](),this['_onSliderClose']());},'on.clickTab':_0x2c6a20=>{const _0x37104d=_0x2c6a20['currentTarget'],_0x22e89e=_0x37104d?.['getAttribute']('data-id');_0x22e89e&&(this['telemetryManager']['sendEventCloudImageEditor'](_0x2c6a20,_0x22e89e),this['_activateTab'](_0x22e89e,{'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),this['_updateInfoTooltip']=debounce(this['_updateInfoTooltipHandler']['bind'](this),0x0);}['_onSliderClose'](){(this['$']['*showSlider']=!0x1,this['$']['*tabId']===TabId['CROP']&&(this['$']['*showListAspectRatio']=!0x1),this['$']['*tabId']===TabId['TUNING'])&&this['ref']['tooltip-el']['classList']['toggle']('uc-info-tooltip_visible',!0x1);}['_createOperationControl'](_0x5140ab){const _0x438c7d=new EditorOperationControl();return _0x438c7d['operation']=_0x5140ab,_0x438c7d;}['_createFilterControl'](_0x32f4bd){const _0x2d8a2a=new EditorFilterControl();return _0x2d8a2a['filter']=_0x32f4bd,_0x2d8a2a;}['_createToggleControl'](_0x188831){const _0x2c338e=new EditorCropButtonControl();return _0x2c338e['operation']=_0x188831,_0x2c338e;}['_createAspectRatioControl'](_0x51e324){const _0x2cbff8=new EditorAspectRatioButtonControl();return _0x2cbff8['aspectRatio']=_0x51e324,_0x2cbff8;}['_createFreeformControl'](){return new EditorFreeformButtonControl();}['_clearListAspectRatio'](){const _0x9dfa7e=this['$']['*listAspectRatioEl'];_0x9dfa7e&&(_0x9dfa7e['innerHTML']='');}['_renderControlsList'](_0x195a2d){const _0x332266=this['ref']['controls-list-'+_0x195a2d],_0x4a53f3=document['createDocumentFragment']();if(this['_clearListAspectRatio'](),_0x195a2d===TabId['CROP']){const _0xa8e9f1=this['$']['*cropPresetList'],_0x4f797e=_0xa8e9f1['length']>=0x3;if(_0x4f797e){const _0x4e0f7f=this['_createFreeformControl']();_0x4a53f3['appendChild'](_0x4e0f7f);}for(const _0xe4ca49 of _0xa8e9f1){const _0x3d4ba7=this['_createAspectRatioControl'](_0xe4ca49);if(_0x4a53f3['appendChild'](_0x3d4ba7),_0x4f797e){const _0x25fcb0=this['$']['*listAspectRatioEl'];_0x25fcb0?.['appendChild'](_0x3d4ba7);}}for(const _0x4efad5 of this['$']['cropOperations']){const _0x144ddd=this['_createToggleControl'](_0x4efad5);_0x4a53f3['appendChild'](_0x144ddd);}}else{if(_0x195a2d===TabId['FILTERS']){const _0x373bc8=this['$']['filters'];[FAKE_ORIGINAL_FILTER,..._0x373bc8]['forEach'](_0x2fa844=>{const _0x4389a7=this['_createFilterControl'](_0x2fa844);_0x4a53f3['appendChild'](_0x4389a7);});}else{if(_0x195a2d===TabId['TUNING'])for(const _0x1eb7d0 of this['$']['colorOperations']){const _0x5bf065=this['_createOperationControl'](_0x1eb7d0);_0x4a53f3['appendChild'](_0x5bf065);}}}[..._0x4a53f3['children']]['forEach']((_0x132c79,_0x2886c7)=>{_0x2886c7===_0x4a53f3['childNodes']['length']-0x1&&_0x132c79['classList']['add']('uc-controls-list_last-item');}),_0x332266['innerHTML']='',_0x332266['appendChild'](_0x4a53f3);}['_activateTab'](_0x261704,{fromViewer:_0x1a37bf}={}){this['$']['*tabId']=_0x261704;const _0x50f897=this['$']['*faderEl'],_0x4557b6=this['$']['*cropperEl'];_0x261704===TabId['CROP']?(_0x50f897?.['deactivate'](),_0x4557b6?.['activate'](this['$']['*imageSize'],{'fromViewer':_0x1a37bf})):(_0x50f897?.['activate']({'url':this['$']['*originalUrl'],'fromViewer':_0x1a37bf}),_0x4557b6?.['deactivate']());for(const _0x53b589 of ALL_TABS){const _0x4f83a2=_0x53b589===_0x261704;this['ref']['tab-toggle-'+_0x53b589]['active']=_0x4f83a2,_0x4f83a2?(this['_renderControlsList'](_0x261704),this['_syncTabIndicator']()):this['_unmountTabControls'](_0x53b589),this['$']['presence.tabContent.'+_0x53b589]=_0x4f83a2;}}['_unmountTabControls'](_0xf28ddf){const _0x5a30a3=this['ref']['controls-list-'+_0xf28ddf];_0x5a30a3&&(_0x5a30a3['innerHTML']='');}['_syncTabIndicator'](){const _0x4a512d=this['ref']['tab-toggle-'+this['$']['*tabId']];this['ref']['tabs-indicator']['style']['transform']='translateX('+_0x4a512d['offsetLeft']+'px)';}async['_preloadEditedImage'](){if(this['$']['*imgContainerEl']&&this['$']['*originalUrl']){const _0x3212b=this['$']['*imgContainerEl']['offsetWidth'],_0x22362d=await this['proxyUrl'](viewerImageSrc(this['$']['*originalUrl'],_0x3212b,this['$']['*editorTransformations']));this['_cancelPreload']?.();const {cancel:_0x44f7f8}=batchPreloadImages([_0x22362d]);this['_cancelPreload']=()=>{_0x44f7f8(),this['_cancelPreload']=void 0x0;};}}['_showLoader'](_0x8339ce){this['$']['showLoader']=_0x8339ce;}['_updateInfoTooltipHandler'](){const _0x444294=this['$']['*editorTransformations'],_0x20748b=this['$']['*currentOperation'];let _0x28b86a='',_0x193573=!0x1;if(this['$']['*tabId']===TabId['FILTERS']){if(_0x193573=!0x0,this['$']['*currentFilter']&&_0x444294?.['filter']?.['name']===this['$']['*currentFilter']){const _0x363e97=_0x444294?.['filter']?.['amount']||0x64;_0x28b86a=this['$']['*currentFilter']+'\x20'+_0x363e97;}else _0x28b86a=this['l10n'](FAKE_ORIGINAL_FILTER);}else{if(this['$']['*tabId']===TabId['TUNING']&&_0x20748b){_0x193573=!0x0;const _0x2a9092=_0x444294?.[_0x20748b]||COLOR_OPERATIONS_CONFIG[_0x20748b]['zero'];_0x28b86a=this['l10n'](_0x20748b)+'\x20'+_0x2a9092;}}_0x193573&&(this['$']['*operationTooltip']=_0x28b86a),this['ref']['tooltip-el']['classList']['toggle']('uc-info-tooltip_visible',_0x193573);}['initCallback'](){super['initCallback'](),this['$']['*sliderEl']=this['ref']['slider-el'],this['$']['*listAspectRatioEl']=this['ref']['list-el'],this['sub']('*imageSize',_0x20a26d=>{_0x20a26d&&setTimeout(()=>{this['_activateTab'](this['$']['*tabId'],{'fromViewer':!0x0});},0x0);}),this['sub']('*editorTransformations',_0x47b84f=>{const _0x3cbf6a=_0x47b84f?.['filter']?.['name'];this['$']['*currentFilter']!==_0x3cbf6a&&(this['$']['*currentFilter']=_0x3cbf6a);}),this['sub']('*currentFilter',()=>{this['_updateInfoTooltip']();}),this['sub']('*currentOperation',()=>{this['_updateInfoTooltip']();}),this['sub']('*tabId',()=>{this['_updateInfoTooltip']();}),this['sub']('*originalUrl',()=>{this['$']['*faderEl']?.['deactivate']();}),this['sub']('*editorTransformations',_0x4d5b88=>{this['_preloadEditedImage'](),this['$']['*faderEl']?.['setTransformations'](_0x4d5b88);}),this['sub']('*loadingOperations',_0x4ee6aa=>{let _0x1be015=!0x1;for(const [,_0x14ba66]of _0x4ee6aa['entries']()){if(_0x1be015)break;for(const [,_0x359035]of _0x14ba66['entries']())if(_0x359035){_0x1be015=!0x0;break;}}this['_debouncedShowLoader'](_0x1be015);}),this['sub']('*showSlider',_0x2a1e61=>{this['$']['presence.subToolbar']=_0x2a1e61,this['$']['presence.mainToolbar']=!_0x2a1e61,this['$']['hideSliderOrList']=!0x0;}),this['sub']('*showListAspectRatio',_0x43130a=>{this['$']['presence.subToolbar']=_0x43130a,this['$']['presence.mainToolbar']=!_0x43130a,this['$']['hideSliderOrList']=!0x1;}),this['sub']('*tabList',_0x455c53=>{this['$']['presence.tabToggles']=_0x455c53['length']>0x1;for(const _0x2f21f8 of ALL_TABS){this['$']['presence.tabToggle.'+_0x2f21f8]=_0x455c53['includes'](_0x2f21f8),this['ref']['tab-toggle-'+_0x2f21f8]['style']['gridColumn']=''+(_0x455c53['indexOf'](_0x2f21f8)+0x1);}if(!_0x455c53['includes'](this['$']['*tabId'])&&_0x455c53['length']>0x0){const [_0x5ebc2e]=_0x455c53;_0x5ebc2e&&this['_activateTab'](_0x5ebc2e,{'fromViewer':!0x1});}}),this['_updateInfoTooltip']();}['destroyCallback'](){this['$']['*showSlider']=!0x1,this['$']['*showListAspectRatio']=!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\x20set=\x22@hidden:!hideSliderOrList\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\x0a\x20\x20\x20\x20\x20\x20<div\x20set=\x22@hidden:hideSliderOrList\x22\x20class=\x22uc-list-aspect-ratio-container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-list-aspect-ratio\x22\x20ref=\x22list-el\x22></div>\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';var BtnUi=class extends Block{['_iconReversed']=!0x1;['_iconSingle']=!0x1;['_iconHidden']=!0x1;constructor(){super(),this['init$']={...this['init$'],'text':'','icon':'','iconCss':this['_iconCss'](),'theme':null,'aria-role':'','aria-controls':'','title-prop':''},this['defineAccessor']('active',_0x3fb9e4=>{_0x3fb9e4?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',_0x16d388=>{this['_iconSingle']=!this['$']['text'],this['_iconHidden']=!_0x16d388,this['$']['iconCss']=this['_iconCss']();}),this['sub']('theme',_0x84362c=>{_0x84362c&&'custom'!==_0x84362c&&(this['className']='uc-'+_0x84362c);}),this['sub']('text',()=>{this['_iconSingle']=!0x1;}),this['hasAttribute']('theme')||this['setAttribute']('theme','default'),this['defineAccessor']('aria-role',_0x722400=>{this['$']['aria-role']=_0x722400||'';}),this['defineAccessor']('aria-controls',_0x557063=>{this['$']['aria-controls']=_0x557063||'';}),this['defineAccessor']('title-prop',_0x2dbda2=>{this['$']['title-prop']=_0x2dbda2||'';});}set['reverse'](_0x418793){this['hasAttribute']('reverse')?(this['style']['flexDirection']='row-reverse',this['_iconReversed']=!0x0):(this['_iconReversed']=!0x1,this['style']['flexDirection']='');}};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';var LineLoaderUi=class extends Block{['_active']=!0x1;['_handleTransitionEndRight']=()=>{const _0x48c441=this['ref']['line-el'];_0x48c441['style']['transition']='initial',_0x48c441['style']['opacity']='0',_0x48c441['style']['transform']='translateX(-101%)',this['_active']&&this['_start']();};['initCallback'](){super['initCallback'](),this['defineAccessor']('active',_0x542568=>{'boolean'==typeof _0x542568&&(_0x542568?this['_start']():this['_stop']());});}['_start'](){this['_active']=!0x0;const {width:_0x50061b}=this['getBoundingClientRect'](),_0x546c14=this['ref']['line-el'];_0x546c14['style']['transition']='transform\x201s',_0x546c14['style']['opacity']='1',_0x546c14['style']['transform']='translateX('+_0x50061b+'px)',_0x546c14['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';var DEFAULT_STYLE={'transition':'uc-transition','visible':'uc-visible','hidden':'uc-hidden'},PresenceToggle=class extends Block{['_visible']=!0x1;['_visibleStyle']=DEFAULT_STYLE['visible'];['_hiddenStyle']=DEFAULT_STYLE['hidden'];['_externalTransitions']=!0x1;constructor(){super(),this['defineAccessor']('styles',_0x1205b6=>{_0x1205b6&&(this['_externalTransitions']=!0x0,this['_visibleStyle']=_0x1205b6['visible']??DEFAULT_STYLE['visible'],this['_hiddenStyle']=_0x1205b6['hidden']??DEFAULT_STYLE['hidden']);}),this['defineAccessor']('visible',_0x3f826c=>{'boolean'==typeof _0x3f826c&&(this['_visible']=_0x3f826c,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';var SliderUi=class extends Block{['_observer'];['_thumbSize']=0x0;['_zero']=0x0;['_zeroDotEl'];['_stepsCount'];constructor(){super(),this['init$']={...this['init$'],'disabled':!0x1,'min':0x0,'max':0x64,'onInput':null,'onChange':null,'defaultValue':0x0,'on.sliderInput':()=>{const _0x530bf3=Number['parseInt'](this['_inputEl']()['value'],0xa);this['_updateValue'](_0x530bf3),this['$']['onInput']?.(_0x530bf3);},'on.sliderChange':()=>{const _0x4fe266=Number['parseInt'](this['_inputEl']()['value'],0xa);this['$']['onChange']?.(_0x4fe266);}},this['setAttribute']('with-effects','');}['initCallback'](){super['initCallback'](),this['defineAccessor']('disabled',_0x2d6ca5=>{this['$']['disabled']=_0x2d6ca5;}),this['defineAccessor']('min',_0x3707c0=>{this['$']['min']=_0x3707c0;}),this['defineAccessor']('max',_0x8a1fcd=>{this['$']['max']=_0x8a1fcd;}),this['defineAccessor']('defaultValue',_0x3c1a6d=>{this['$']['defaultValue']=_0x3c1a6d,(this['_inputEl']()['value']=String(_0x3c1a6d),this['_updateValue'](_0x3c1a6d));}),this['defineAccessor']('zero',_0x214c6c=>{this['_zero']=_0x214c6c;}),this['defineAccessor']('onInput',_0x9994bf=>{_0x9994bf&&(this['$']['onInput']=_0x9994bf);}),this['defineAccessor']('onChange',_0x43a09d=>{_0x43a09d&&(this['$']['onChange']=_0x43a09d);}),this['_updateSteps'](),this['_observer']=new ResizeObserver(()=>{this['_updateSteps']();const _0x3ef86f=Number['parseInt'](this['_inputEl']()['value'],0xa);this['_updateValue'](_0x3ef86f);}),this['_observer']['observe'](this),this['_thumbSize']=Number['parseInt'](window['getComputedStyle'](this)['getPropertyValue']('--l-thumb-size'),0xa),setTimeout(()=>{const _0x12f978=Number['parseInt'](this['_inputEl']()['value'],0xa);this['_updateValue'](_0x12f978);},0x0),this['sub']('disabled',_0x392cd9=>{const _0x322181=this['_inputEl']();_0x392cd9?_0x322181['setAttribute']('disabled','disabled'):_0x322181['removeAttribute']('disabled');});const _0x4a1fa1=this['_inputEl']();_0x4a1fa1['addEventListener']('focus',()=>{this['style']['setProperty']('--color-effect','var(--hover-color-rgb)');}),_0x4a1fa1['addEventListener']('blur',()=>{this['style']['setProperty']('--color-effect','var(--idle-color-rgb)');});}['_inputEl'](){return this['ref']['input-el'];}['_thumbEl'](){return this['ref']['thumb-el'];}['_stepsEl'](){return this['ref']['steps-el'];}['_updateValue'](_0x5281c0){this['_updateZeroDot'](_0x5281c0);const {width:_0x24c25c}=this['getBoundingClientRect'](),_0x40d3bd=0x64/(this['$']['max']-this['$']['min'])*(_0x5281c0-this['$']['min'])*(_0x24c25c-this['_thumbSize'])/0x64;window['requestAnimationFrame'](()=>{this['_thumbEl']()['style']['transform']='translateX('+_0x40d3bd+'px)';});}['_updateZeroDot'](_0x11d16f){if(!this['_zeroDotEl'])return;this['_zeroDotEl']['style']['opacity']=_0x11d16f===this['_zero']?'0':'1';const {width:_0x3f783a}=this['getBoundingClientRect'](),_0x1530ee=0x64/(this['$']['max']-this['$']['min'])*(this['_zero']-this['$']['min'])*(_0x3f783a-this['_thumbSize'])/0x64;window['requestAnimationFrame'](()=>{this['_zeroDotEl']&&(this['_zeroDotEl']['style']['transform']='translateX('+_0x1530ee+'px)');});}['_updateSteps'](){const _0x5cce79=this['_stepsEl'](),{width:_0x429c50}=_0x5cce79['getBoundingClientRect'](),_0xcdec88=Math['ceil'](_0x429c50/0x2),_0x1fc48b=Math['ceil'](_0xcdec88/0xf)-0x2;if(this['_stepsCount']===_0x1fc48b)return;const _0x586b71=document['createDocumentFragment'](),_0x4ba12e=document['createElement']('div'),_0x2202b6=document['createElement']('div');_0x4ba12e['className']='uc-minor-step',_0x2202b6['className']='uc-border-step',_0x586b71['appendChild'](_0x2202b6);for(let _0x1c4fc0=0x0;_0x1c4fc0<_0x1fc48b;_0x1c4fc0+=0x1)_0x586b71['appendChild'](_0x4ba12e['cloneNode']());_0x586b71['appendChild'](_0x2202b6['cloneNode']());for(let _0x593486=0x0;_0x593486<_0x1fc48b;_0x593486+=0x1)_0x586b71['appendChild'](_0x4ba12e['cloneNode']());_0x586b71['appendChild'](_0x2202b6['cloneNode']());const _0x16fd72=document['createElement']('div');_0x16fd72['className']='uc-zero-dot',_0x586b71['appendChild'](_0x16fd72),this['_zeroDotEl']=_0x16fd72,_0x5cce79['innerHTML']='',_0x5cce79['appendChild'](_0x586b71),this['_stepsCount']=_0x1fc48b;}['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';var CloudImageEditorActivity=class extends UploaderBlock{['couldBeCtxOwner']=!0x0;['activityType']=ActivityBlock['activities']['CLOUD_IMG_EDIT'];['_entry'];['_instance'];get['activityParams'](){const _0x33660d=super['activityParams'];if('internalId'in _0x33660d)return _0x33660d;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',_0x5a4e80=>{this['_instance']&&this['_instance']['getAttribute']('crop-preset')!==_0x5a4e80&&this['_instance']['setAttribute']('crop-preset',_0x5a4e80);}),this['subConfigValue']('cloudImageEditorTabs',_0x41dca5=>{this['_instance']&&this['_instance']['getAttribute']('tabs')!==_0x41dca5&&this['_instance']['setAttribute']('tabs',_0x41dca5);});}['handleApply'](_0x3f8ca7){if(!this['_entry'])return;const _0x5e5923=_0x3f8ca7['detail'];this['_entry']['setMultipleValues']({'cdnUrl':_0x5e5923['cdnUrl'],'cdnUrlModifiers':_0x5e5923['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:_0x587830}=this['activityParams'],_0x6bd4b7=this['uploadCollection']['read'](_0x587830);if(!_0x6bd4b7)throw new Error('Entry\x20with\x20internalId\x20\x22'+_0x587830+'\x22\x20not\x20found');this['_entry']=_0x6bd4b7;const _0x511f63=this['_entry']['getValue']('cdnUrl');if(!_0x511f63)throw new Error('Entry\x20with\x20internalId\x20\x22'+_0x587830+'\x22\x20hasn\x27t\x20uploaded\x20yet');const _0x142309=new CloudImageEditorBlock(),_0x3354c6=this['cfg']['cropPreset'],_0x4e9911=this['cfg']['cloudImageEditorTabs'];_0x142309['setAttribute']('ctx-name',this['ctxName']),_0x142309['setAttribute']('cdn-url',_0x511f63),_0x3354c6&&_0x142309['setAttribute']('crop-preset',_0x3354c6),_0x4e9911&&_0x142309['setAttribute']('tabs',_0x4e9911),_0x142309['addEventListener']('apply',_0x14f6f5=>{const _0x2fceb7=_0x14f6f5;this['handleApply'](_0x2fceb7),this['debugPrint']('editor\x20event\x20\x22apply\x22',_0x2fceb7['detail']);}),_0x142309['addEventListener']('cancel',_0x1afc22=>{const _0x467e4e=_0x1afc22;this['handleCancel'](),this['debugPrint']('editor\x20event\x20\x22cancel\x22',_0x467e4e['detail']);}),_0x142309['addEventListener']('change',_0x11d6e8=>{const _0x5e7284=_0x11d6e8;this['debugPrint']('editor\x20event\x20\x22change\x22',_0x5e7284['detail']);}),this['innerHTML']='',this['appendChild'](_0x142309),this['_instance']=_0x142309;}['unmountEditor'](){this['_instance']=void 0x0,this['_entry']=void 0x0,this['innerHTML']='';}},toKebabCase=_0x2249bb=>_0x2249bb['match'](/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)?.['map'](_0x11bc76=>_0x11bc76['toLowerCase']())['join']('-'),ASSERTIONS=[{'test':_0x52bbcb=>!!_0x52bbcb['accept']&&!!_0x52bbcb['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':_0x44d422=>null!==_0x44d422['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':_0x7c80cd=>null!==_0x7c80cd['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(_0x479976=>{for(const {test:_0x46351e,message:_0x179bf9}of ASSERTIONS)_0x46351e(_0x479976)&&warnOnce(_0x179bf9);},0x0),isPromiseLike=_0x2bd4c2=>_0x2bd4c2 instanceof Promise||Boolean(_0x2bd4c2&&'object'==typeof _0x2bd4c2&&'then'in _0x2bd4c2&&'function'==typeof _0x2bd4c2['then']),defineComputedProperty=_0x15d926=>_0x15d926,COMPUTED_PROPERTIES=[defineComputedProperty({'key':'cameraModes','deps':['enableVideoRecording'],'fn':({cameraModes:_0x37ed08,enableVideoRecording:_0x447e9a})=>{if(null===_0x447e9a)return _0x37ed08;let _0xbd4090=deserializeCsv(_0x37ed08);return _0x447e9a&&!_0xbd4090['includes']('video')?_0xbd4090=_0xbd4090['concat']('video'):_0x447e9a||(_0xbd4090=_0xbd4090['filter'](_0x3b3f3a=>'video'!==_0x3b3f3a)),serializeCsv(_0xbd4090);}}),defineComputedProperty({'key':'cameraModes','deps':['defaultCameraMode'],'fn':({cameraModes:_0x3e021a,defaultCameraMode:_0x2edd67})=>{if(null===_0x2edd67)return _0x3e021a;let _0x5a1de2=deserializeCsv(_0x3e021a);return _0x5a1de2=_0x5a1de2['sort']((_0x1ea4ce,_0x467bea)=>_0x1ea4ce===_0x2edd67?-0x1:_0x467bea===_0x2edd67?0x1:0x0),serializeCsv(_0x5a1de2);}}),defineComputedProperty({'key':'cdnCname','deps':['pubkey','cdnCnamePrefixed'],'fn':({pubkey:_0xae4dbe,cdnCname:_0x3ba3a7,cdnCnamePrefixed:_0x3a76fa})=>_0xae4dbe&&(_0x3ba3a7===DEFAULT_CDN_CNAME||c$1(_0x3ba3a7,_0x3a76fa))?f(_0xae4dbe,_0x3a76fa):_0x3ba3a7})],computeProperty=({key:_0x21a5ac,setValue:_0x421001,getValue:_0x1d744b,computationControllers:_0x352b66})=>{for(const _0x22615d of COMPUTED_PROPERTIES)if(_0x22615d['deps']['includes'](_0x21a5ac)){const _0x335ca3={[_0x22615d['key']]:_0x1d744b(_0x22615d['key'])};for(const _0x1c33fb of _0x22615d['deps'])_0x335ca3[_0x1c33fb]=_0x1d744b(_0x1c33fb);const _0xd65594=new AbortController();let _0x5d7f33;_0x352b66['get'](_0x22615d['key'])?.['abort'](),_0x352b66['set'](_0x22615d['key'],_0xd65594);try{_0x5d7f33=_0x22615d['fn'](_0x335ca3,{'signal':_0xd65594['signal']});}catch(_0x51557b){return _0x352b66['get'](_0x22615d['key'])===_0xd65594&&_0x352b66['delete'](_0x22615d['key']),void console['error']('Failed\x20to\x20compute\x20value\x20for\x20\x22'+_0x22615d['key']+'\x22',_0x51557b);}isPromiseLike(_0x5d7f33)?_0x5d7f33['then'](_0x32db4d=>{_0xd65594['signal']['aborted']||_0x421001(_0x22615d['key'],_0x32db4d);})['catch'](_0x1147d4=>{_0xd65594['signal']['aborted']||console['error']('Failed\x20to\x20compute\x20value\x20for\x20\x22'+_0x22615d['key']+'\x22',_0x1147d4);})['finally'](()=>{_0x352b66['get'](_0x22615d['key'])===_0xd65594&&_0x352b66['delete'](_0x22615d['key']);}):_0x421001(_0x22615d['key'],_0x5d7f33);}},asString=_0x50603c=>String(_0x50603c),asNumber2=_0x441824=>{const _0x1d35f4=Number(_0x441824);if(Number['isNaN'](_0x1d35f4))throw new Error('Invalid\x20number:\x20\x22'+_0x441824+'\x22');return _0x1d35f4;},asBoolean2=_0x32ed04=>{if(null==_0x32ed04)return!0x1;if('boolean'==typeof _0x32ed04)return _0x32ed04;if('true'===_0x32ed04)return!0x0;if(''===_0x32ed04)return!0x0;if('false'===_0x32ed04)return!0x1;throw new Error('Invalid\x20boolean:\x20\x22'+_0x32ed04+'\x22');},asStore=_0x1e7ace=>'auto'===_0x1e7ace?_0x1e7ace:asBoolean2(_0x1e7ace),asCameraCapture=_0x5980f7=>{const _0x3a3790=asString(_0x5980f7);if('user'!==_0x3a3790&&'environment'!==_0x3a3790&&''!==_0x3a3790)throw new Error('Invalid\x20value:\x20\x22'+_0x3a3790+'\x22');return _0x3a3790;},asCameraMode=_0x483744=>{const _0x5afa36=asString(_0x483744);if(!Object['values'](CameraSourceTypes)['includes'](_0x5afa36))throw new Error('Invalid\x20value:\x20\x22'+_0x5afa36+'\x22');return _0x5afa36;},asCameraModes=_0x4577f5=>{const _0xa6821d=asString(_0x4577f5),_0x6b92d=deserializeCsv(_0xa6821d);if(_0x6b92d['some'](_0x2b62a4=>!Object['values'](CameraSourceTypes)['includes'](_0x2b62a4)))throw new Error('Invalid\x20value:\x20\x22'+JSON['stringify'](_0x6b92d)+'\x22');return _0xa6821d;},asMetadata=_0x47de45=>{if('object'==typeof _0x47de45&&!Array['isArray'](_0x47de45))return _0x47de45;if('function'==typeof _0x47de45)return _0x47de45;throw new Error('Invalid\x20metadata\x20value.\x20Must\x20be\x20an\x20object\x20or\x20function.');},asObject=_0x404ed2=>{if('object'==typeof _0x404ed2)return _0x404ed2;throw new Error('Invalid\x20value.\x20Must\x20be\x20an\x20object.');},asFunction=_0x2cadb4=>{if('function'==typeof _0x2cadb4)return _0x2cadb4;throw new Error('Invalid\x20value.\x20Must\x20be\x20a\x20function.');},asArray=_0x29aedd=>{if(Array['isArray'](_0x29aedd))return _0x29aedd;throw new Error('Must\x20be\x20an\x20array.');},asFilesViewMode=_0x2d5b6d=>{const _0x687764=asString(_0x2d5b6d);if(['grid','list']['includes'](_0x687764))return _0x687764;throw new Error('Invalid\x20value:\x20\x22'+_0x687764+'\x22');},mapping={'pubkey':asString,'multiple':asBoolean2,'multipleMin':asNumber2,'multipleMax':asNumber2,'confirmUpload':asBoolean2,'imgOnly':asBoolean2,'accept':asString,'externalSourcesPreferredTypes':asString,'externalSourcesEmbedCss':asString,'store':asStore,'cameraMirror':asBoolean2,'cameraCapture':asCameraCapture,'sourceList':asString,'topLevelOrigin':asString,'maxLocalFileSizeBytes':asNumber2,'thumbSize':asNumber2,'showEmptyList':asBoolean2,'useLocalImageEditor':asBoolean2,'useCloudImageEditor':asBoolean2,'cloudImageEditorTabs':asString,'removeCopyright':asBoolean2,'cropPreset':asString,'imageShrink':asString,'modalScrollLock':asBoolean2,'modalBackdropStrokes':asBoolean2,'sourceListWrap':asBoolean2,'remoteTabSessionKey':asString,'cdnCname':asString,'cdnCnamePrefixed':asString,'baseUrl':asString,'socialBaseUrl':asString,'secureSignature':asString,'secureExpire':asString,'secureDeliveryProxy':asString,'retryThrottledRequestMaxTimes':asNumber2,'retryNetworkErrorMaxTimes':asNumber2,'multipartMinFileSize':asNumber2,'multipartChunkSize':asNumber2,'maxConcurrentRequests':asNumber2,'multipartMaxConcurrentRequests':asNumber2,'multipartMaxAttempts':asNumber2,'checkForUrlDuplicates':asBoolean2,'saveUrlForRecurrentUploads':asBoolean2,'groupOutput':asBoolean2,'userAgentIntegration':asString,'debug':asBoolean2,'localeName':asString,'metadata':asMetadata,'secureUploadsExpireThreshold':asNumber2,'localeDefinitionOverride':_0x5878c0=>asObject(_0x5878c0),'secureUploadsSignatureResolver':_0x25ec79=>asFunction(_0x25ec79),'secureDeliveryProxyUrlResolver':_0x2aa09b=>asFunction(_0x2aa09b),'iconHrefResolver':_0x39511a=>asFunction(_0x39511a),'fileValidators':asArray,'collectionValidators':asArray,'validationTimeout':asNumber2,'validationConcurrency':asNumber2,'cameraModes':asCameraModes,'defaultCameraMode':asCameraMode,'enableAudioRecording':asBoolean2,'enableVideoRecording':asBoolean2,'mediaRecorderOptions':asObject,'maxVideoRecordingDuration':asNumber2,'filesViewMode':asFilesViewMode,'gridShowFileNames':asBoolean2,'cloudImageEditorAutoOpen':asBoolean2,'cloudImageEditorMaskHref':asString,'testMode':asBoolean2,'qualityInsights':asBoolean2},normalizeConfigValue=(_0x5e57ed,_0x1f0ed3)=>{if(null!=_0x1f0ed3)try{return mapping[_0x5e57ed](_0x1f0ed3);}catch(_0x429755){return console['error']('Invalid\x20value\x20for\x20config\x20key\x20\x22'+_0x5e57ed+'\x22.',_0x429755),initialConfig[_0x5e57ed];}},allConfigKeys=[...new Set(['debug',...Object['keys'](initialConfig)])],complexConfigKeys=['metadata','localeDefinitionOverride','secureUploadsSignatureResolver','secureDeliveryProxyUrlResolver','iconHrefResolver','fileValidators','collectionValidators','mediaRecorderOptions'],isComplexKey=_0x454dc9=>complexConfigKeys['includes'](_0x454dc9),plainConfigKeys=allConfigKeys['filter'](_0xf200ea=>!isComplexKey(_0xf200ea)),attrKeyMapping={...Object['fromEntries'](plainConfigKeys['map'](_0x6c6fae=>[toKebabCase(_0x6c6fae),_0x6c6fae])),...Object['fromEntries'](plainConfigKeys['map'](_0x3fb222=>[_0x3fb222['toLowerCase'](),_0x3fb222]))},attrStateMapping={...Object['fromEntries'](plainConfigKeys['map'](_0x530f97=>[toKebabCase(_0x530f97),sharedConfigKey(_0x530f97)])),...Object['fromEntries'](plainConfigKeys['map'](_0x3d95ec=>[_0x3d95ec['toLowerCase'](),sharedConfigKey(_0x3d95ec)]))},getLocalPropName=_0x59e4dc=>'__'+_0x59e4dc,Config=class extends Block{['requireCtxName']=!0x0;constructor(){super(),this['init$']={...this['init$'],...Object['fromEntries'](Object['entries'](initialConfig)['map'](([_0x20beca,_0xb4412f])=>[sharedConfigKey(_0x20beca),_0xb4412f])),'computationControllers':new Map()};}['_flushValueToAttribute'](_0x55a74a,_0x47b7e6){if(!isComplexKey(_0x55a74a)){const _0x7c06c=[...new Set([toKebabCase(_0x55a74a),_0x55a74a['toLowerCase']()])];for(const _0xaf460c of _0x7c06c)null==_0x47b7e6?this['removeAttribute'](_0xaf460c):this['getAttribute'](_0xaf460c)!==_0x47b7e6['toString']()&&this['setAttribute'](_0xaf460c,_0x47b7e6['toString']());}}['_flushValueToState'](_0x2ef339,_0x245f48){this['$'][sharedConfigKey(_0x2ef339)]!==_0x245f48&&(this['$'][sharedConfigKey(_0x2ef339)]=null==_0x245f48?initialConfig[_0x2ef339]:_0x245f48);}['_setValue'](_0x3d4d64,_0x4aa162){const _0x5aba82=this,_0x46aa41=normalizeConfigValue(_0x3d4d64,_0x4aa162),_0xc15771=getLocalPropName(_0x3d4d64);_0x5aba82[_0xc15771]!==_0x46aa41&&(this['_assertSameValueDifferentReference'](_0x3d4d64,_0x5aba82[_0xc15771],_0x46aa41),_0x5aba82[_0xc15771]=_0x46aa41,this['_flushValueToAttribute'](_0x3d4d64,_0x46aa41),this['_flushValueToState'](_0x3d4d64,_0x46aa41),this['debugPrint']('[uc-config]\x20\x22'+_0x3d4d64+'\x22',_0x46aa41),runAssertions(this['cfg']));}['_getValue'](_0x51eab0){return this[getLocalPropName(_0x51eab0)]??this['$'][sharedConfigKey(_0x51eab0)];}['_assertSameValueDifferentReference'](_0x23a16a,_0x402d22,_0x16d401){this['cfg']['debug']&&_0x16d401!==_0x402d22&&'object'==typeof _0x16d401&&'object'==typeof _0x402d22&&JSON['stringify'](_0x16d401)===JSON['stringify'](_0x402d22)&&(console['warn']('[uc-config]\x20Option\x20\x22'+_0x23a16a+'\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'+_0x23a16a+'\x22\x20previous\x20value:',_0x402d22),console['warn']('[uc-config]\x20\x22'+_0x23a16a+'\x22\x20new\x20value:',_0x16d401));}['initCallback'](){super['initCallback']();const _0x5e3142=this;for(const _0x31661d of plainConfigKeys)this['sub'](sharedConfigKey(_0x31661d),_0x3fe94=>{this['_setValue'](_0x31661d,_0x3fe94);},!0x1);for(const _0x40ccb1 of allConfigKeys){const _0x3c6dfe=_0x5e3142[_0x40ccb1]??this['$'][sharedConfigKey(_0x40ccb1)];_0x3c6dfe!==initialConfig[_0x40ccb1]&&this['_setValue'](_0x40ccb1,_0x3c6dfe),Object['defineProperty'](this,_0x40ccb1,{'set':_0x2e34fd=>{this['_setValue'](_0x40ccb1,_0x2e34fd);},'get':()=>this['_getValue'](_0x40ccb1)});}for(const _0x1ef08a of allConfigKeys)this['sub'](sharedConfigKey(_0x1ef08a),()=>{computeProperty({'key':_0x1ef08a,'setValue':this['_setValue']['bind'](this),'getValue':this['_getValue']['bind'](this),'computationControllers':this['computationControllers']});});}['attributeChangedCallback'](_0x482791,_0x970d63,_0x4381e8){if(_0x970d63===_0x4381e8)return;const _0x3980ed=this,_0x5dfed7=attrKeyMapping[_0x482791];_0x5dfed7&&(_0x3980ed[_0x5dfed7]=_0x4381e8);}get['computationControllers'](){return this['$']['computationControllers'];}};Config['bindAttributes'](attrStateMapping);for(const e of allConfigKeys)Config['prototype'][e]=void 0x0;var Copyright=class extends Block{['initCallback'](){super['initCallback'](),this['subConfigValue']('removeCopyright',_0x1e1dc3=>{this['toggleAttribute']('hidden',!!_0x1e1dc3);});}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';};function checkIsDirectory(_0x10cc28){return new Promise(_0x4480b1=>{'function'!=typeof window['FileReader']&&_0x4480b1(!0x1);try{const _0x2d3ed8=new FileReader();_0x2d3ed8['onerror']=()=>{_0x4480b1(!0x0);};const _0x4cb56f=_0x26b95e=>{'loadend'!==_0x26b95e['type']&&_0x2d3ed8['abort'](),_0x4480b1(!0x1);};_0x2d3ed8['onloadend']=_0x4cb56f,_0x2d3ed8['onprogress']=_0x4cb56f,_0x2d3ed8['readAsDataURL'](_0x10cc28);}catch{_0x4480b1(!0x1);}});}function readEntryContentAsync(_0x4aa3ee,_0x2764be){return new Promise(_0xa1b02=>{let _0x403f43=0x0;const _0x32927b=[],_0x305e3d=_0x5daefb=>{if(!_0x5daefb)return console['warn']('Unexpectedly\x20received\x20empty\x20content\x20entry',{'scope':'drag-and-drop'}),void _0xa1b02(null);_0x5daefb['isFile']?(_0x403f43++,_0x5daefb['file'](_0x15d189=>{_0x403f43--;const _0x296820=new File([_0x15d189],_0x15d189['name'],{'type':_0x15d189['type']||_0x2764be});_0x32927b['push']({'type':'file','file':_0x296820,'fullPath':_0x5daefb['fullPath']}),0x0===_0x403f43&&_0xa1b02(_0x32927b);})):_0x5daefb['isDirectory']&&_0xcfbe31(_0x5daefb['createReader']());},_0xcfbe31=_0x26fd1f=>{_0x403f43++,_0x26fd1f['readEntries'](_0x5ad1ac=>{_0x403f43--;for(const _0x57c4ad of _0x5ad1ac)_0x305e3d(_0x57c4ad);0x0===_0x403f43&&_0xa1b02(_0x32927b);});};_0x305e3d(_0x4aa3ee);});}function getDropItems(_0x5c76ea){const _0x18b197=[],_0xfc5cc2=[];for(let _0x3c350e=0x0;_0x3c350e<_0x5c76ea['items']['length'];_0x3c350e++){const _0x542660=_0x5c76ea['items'][_0x3c350e];if(_0x542660){if('file'===_0x542660['kind']){const _0x24afaf=_0x542660['type'],_0x460514=_0x542660;if('function'==typeof _0x460514['webkitGetAsEntry']||'function'==typeof _0x460514['getAsEntry']){const _0x235fd6='function'==typeof _0x460514['webkitGetAsEntry']?_0x460514['webkitGetAsEntry']():_0x460514['getAsEntry']?.();_0x235fd6&&_0xfc5cc2['push'](readEntryContentAsync(_0x235fd6,_0x24afaf)['then'](_0x4fe947=>{_0x4fe947&&_0x18b197['push'](..._0x4fe947);}));continue;}const _0x220770=_0x542660['getAsFile']();_0x220770&&_0xfc5cc2['push'](checkIsDirectory(_0x220770)['then'](_0x375136=>{_0x375136||_0x18b197['push']({'type':'file','file':_0x220770});}));}else'string'===_0x542660['kind']&&/^text\/uri-list/['test'](_0x542660['type'])&&_0xfc5cc2['push'](new Promise(_0xbcea5=>{_0x542660['getAsString'](_0x3d3cb5=>{_0x18b197['push']({'type':'url','url':_0x3d3cb5}),_0xbcea5();});}));}}return Promise['all'](_0xfc5cc2)['then'](()=>_0x18b197);}var DropzoneState=Object['freeze']({'ACTIVE':0x0,'INACTIVE':0x1,'NEAR':0x2,'OVER':0x3}),RESET_EVENTS=['focus'],NEAR_OFFSET=0x64,nearnessRegistry=new Map();function distance(_0x4cb3d6,_0x506636){const _0x5402aa=Math['max'](Math['min'](_0x4cb3d6[0x0],_0x506636['x']+_0x506636['width']),_0x506636['x']),_0x6c25e2=Math['max'](Math['min'](_0x4cb3d6[0x1],_0x506636['y']+_0x506636['height']),_0x506636['y']);return Math['sqrt']((_0x4cb3d6[0x0]-_0x5402aa)*(_0x4cb3d6[0x0]-_0x5402aa)+(_0x4cb3d6[0x1]-_0x6c25e2)*(_0x4cb3d6[0x1]-_0x6c25e2));}function addDropzone(_0x45596f){let _0x4ba65c=0x0;const _0x5e0ef1=document['body'],_0x3e7c06=new Set();let _0x449d23=DropzoneState['INACTIVE'];const _0x3f9d19=_0x1dc132=>{_0x45596f['shouldIgnore']()&&_0x1dc132!==DropzoneState['INACTIVE']||(_0x449d23!==_0x1dc132&&_0x3e7c06['forEach'](_0x4bc3c6=>{_0x4bc3c6(_0x1dc132);}),_0x449d23=_0x1dc132);},_0x1ef77d=()=>_0x4ba65c>0x0;var _0x278493;_0x278493=_0x4ac99e=>_0x45596f['onChange'](_0x4ac99e),_0x3e7c06['add'](_0x278493);const _0x49f40b=()=>{_0x4ba65c=0x0,_0x3f9d19(DropzoneState['INACTIVE']);},_0x51aead=()=>{_0x4ba65c+=0x1,_0x449d23===DropzoneState['INACTIVE']&&_0x3f9d19(DropzoneState['ACTIVE']);},_0x440722=()=>{_0x4ba65c-=0x1,_0x1ef77d()||_0x3f9d19(DropzoneState['INACTIVE']);},_0x289499=_0x2eaccb=>{_0x2eaccb['preventDefault'](),_0x4ba65c=0x0,_0x3f9d19(DropzoneState['INACTIVE']);},_0x4a863f=_0x22c234=>{if(_0x45596f['shouldIgnore']())return;_0x1ef77d()||(_0x4ba65c+=0x1);const _0x1bfae9=[_0x22c234['x'],_0x22c234['y']],_0x2eeaa1=_0x45596f['element']['getBoundingClientRect'](),_0x355bff=Math['floor'](distance(_0x1bfae9,_0x2eeaa1)),_0x5152df=_0x355bff<NEAR_OFFSET,_0x2b8b83=_0x22c234['composedPath']()['includes'](_0x45596f['element']);nearnessRegistry['set'](_0x45596f['element'],_0x355bff);const _0x129faf=Math['min'](...nearnessRegistry['values']())===_0x355bff;_0x2b8b83&&_0x129faf?(_0x22c234['preventDefault'](),_0x3f9d19(DropzoneState['OVER'])):_0x3f9d19(_0x5152df&&_0x129faf?DropzoneState['NEAR']:DropzoneState['ACTIVE']);},_0x13297d=async _0x20a561=>{if(_0x45596f['shouldIgnore']())return;_0x20a561['preventDefault']();const {dataTransfer:_0x109c3d}=_0x20a561;if(!_0x109c3d)return;const _0x55ef2a=await getDropItems(_0x109c3d);_0x45596f['onItems'](_0x55ef2a),_0x3f9d19(DropzoneState['INACTIVE']);};return _0x5e0ef1['addEventListener']('drop',_0x289499),_0x5e0ef1['addEventListener']('dragleave',_0x440722),_0x5e0ef1['addEventListener']('dragenter',_0x51aead),_0x5e0ef1['addEventListener']('dragover',_0x4a863f),_0x45596f['element']['addEventListener']('drop',_0x13297d),RESET_EVENTS['forEach'](_0x1e0f08=>{window['addEventListener'](_0x1e0f08,_0x49f40b);}),()=>{nearnessRegistry['delete'](_0x45596f['element']),_0x5e0ef1['removeEventListener']('drop',_0x289499),_0x5e0ef1['removeEventListener']('dragleave',_0x440722),_0x5e0ef1['removeEventListener']('dragenter',_0x51aead),_0x5e0ef1['removeEventListener']('dragover',_0x4a863f),_0x45596f['element']['removeEventListener']('drop',_0x13297d),RESET_EVENTS['forEach'](_0xe1c42=>{window['removeEventListener'](_0xe1c42,_0x49f40b);});};}var GLOBAL_CTX_NAME='uc-drop-area',REGISTRY_KEY=GLOBAL_CTX_NAME+'/registry',DropArea=class extends UploaderBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-drop-area'];['_destroyDropzone']=null;['_destroyContentWrapperDropzone']=null;['_onAreaClicked']=null;constructor(){super(),this['init$']={...this['init$'],'state':DropzoneState['INACTIVE'],'withIcon':!0x1,'isClickable':!0x1,'isFullscreen':!0x1,'isEnabled':!0x0,'isVisible':!0x0,'isInitFlow':!0x1,'text':'',[REGISTRY_KEY]:new Set()};}['isActive'](){if(!this['$']['isEnabled'])return!0x1;const _0x1402d6=this['getBoundingClientRect'](),_0x1c9507=_0x1402d6['width']>0x0&&_0x1402d6['height']>0x0,_0x53a722=_0x1402d6['top']>=0x0&&_0x1402d6['left']>=0x0&&_0x1402d6['bottom']<=(window['innerHeight']||document['documentElement']['clientHeight'])&&_0x1402d6['right']<=(window['innerWidth']||document['documentElement']['clientWidth']),_0x79d59d=window['getComputedStyle'](this),_0x4f58a8='hidden'!==_0x79d59d['visibility']&&'none'!==_0x79d59d['display'];return _0x1c9507&&_0x4f58a8&&_0x53a722;}['initCallback'](){super['initCallback'](),this['bindL10n']('text',()=>this['l10n']('drop-files-here')),(this['$'][REGISTRY_KEY]['add'](this),this['defineAccessor']('disabled',_0x3af9bd=>{this['set$']({'isEnabled':!asBoolean2(_0x3af9bd)});}),this['defineAccessor']('clickable',_0x519564=>{this['set$']({'isClickable':asBoolean2(_0x519564)});}),this['defineAccessor']('initflow',_0x1e5e34=>{this['set$']({'isInitFlow':asBoolean2(_0x1e5e34)});}),this['defineAccessor']('with-icon',_0x4c057a=>{this['set$']({'withIcon':asBoolean2(_0x4c057a)});}),this['defineAccessor']('fullscreen',_0xfb4cbe=>{this['set$']({'isFullscreen':asBoolean2(_0xfb4cbe)});}),this['defineAccessor']('text',_0x125987=>{'string'==typeof _0x125987?this['bindL10n']('text',()=>this['l10n'](_0x125987)||_0x125987):this['bindL10n']('text',()=>this['l10n']('drop-files-here'));}),this['_destroyDropzone']=addDropzone({'element':this,'shouldIgnore':()=>this['_shouldIgnore'](),'onChange':_0x3832f9=>{this['$']['state']=_0x3832f9;},'onItems':_0x35cee0=>{_0x35cee0['length']&&(_0x35cee0['forEach'](_0x34b35a=>{'url'===_0x34b35a['type']?this['api']['addFileFromUrl'](_0x34b35a['url'],{'source':UploadSource['DROP_AREA']}):'file'===_0x34b35a['type']&&this['api']['addFileFromObject'](_0x34b35a['file'],{'source':UploadSource['DROP_AREA'],'fullPath':_0x34b35a['fullPath']});}),this['uploadCollection']['size']&&(this['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['set$']({'*currentActivity':ActivityBlock['activities']['UPLOAD_LIST']})));}}));const _0x5e10ef=this['ref']['content-wrapper'];if(_0x5e10ef&&(this['_destroyContentWrapperDropzone']=addDropzone({'element':_0x5e10ef,'onChange':_0x553f78=>{const _0x3702f1=Object['entries'](DropzoneState)['find'](([,_0x2b3c53])=>_0x2b3c53===_0x553f78)?.[0x0]['toLowerCase']();_0x3702f1&&_0x5e10ef['setAttribute']('drag-state',_0x3702f1);},'onItems':()=>{},'shouldIgnore':()=>this['_shouldIgnore']()})),this['sub']('state',_0x4913fc=>{const _0x1ba36d=Object['entries'](DropzoneState)['find'](([,_0x2d1134])=>_0x2d1134===_0x4913fc)?.[0x0]['toLowerCase']();_0x1ba36d&&this['setAttribute']('drag-state',_0x1ba36d);}),this['subConfigValue']('sourceList',_0x5099b7=>{const _0xc915a6=stringToArray(_0x5099b7);this['$']['isEnabled']=_0xc915a6['includes'](UploadSource['LOCAL']),this['$']['isVisible']=this['$']['isEnabled']||!this['querySelector']('[data-default-slot]');}),this['sub']('isVisible',_0x5c12c6=>{this['toggleAttribute']('hidden',!_0x5c12c6);}),this['sub']('isClickable',_0xcba68d=>{this['toggleAttribute']('clickable',_0xcba68d);}),this['$']['isClickable']){const _0x13bb68=_0x25c552=>{if(_0x25c552 instanceof KeyboardEvent){if('Space'===_0x25c552['code']||'Enter'===_0x25c552['code']){if(this['$']['isInitFlow'])return void this['api']['initFlow']();this['api']['openSystemDialog']();}}else{if(_0x25c552 instanceof MouseEvent){if(this['$']['isInitFlow'])return void this['api']['initFlow']();this['api']['openSystemDialog']();}}};this['_onAreaClicked']=_0x13bb68,this['addEventListener']('keydown',_0x13bb68),this['addEventListener']('click',_0x13bb68);}}['_shouldIgnore'](){if(!this['$']['isEnabled'])return!0x0;if(!this['_couldHandleFiles']())return!0x0;if(!this['$']['isFullscreen'])return!0x1;const _0x512fd2=this['$'][REGISTRY_KEY];if(0x0===_0x512fd2['size'])return!0x1;return[..._0x512fd2]['filter'](_0x38d883=>_0x38d883!==this)['filter'](_0x83d641=>_0x83d641['isActive']())['length']>0x0;}['_couldHandleFiles'](){const _0x50fea1=this['cfg']['multiple'],_0x2cf07a=this['cfg']['multipleMax'],_0x144c50=this['uploadCollection']['size'];return!(_0x50fea1&&_0x2cf07a&&_0x144c50>=_0x2cf07a)&&!(!_0x50fea1&&_0x144c50>0x0);}['destroyCallback'](){super['destroyCallback']();const _0x3a4868=this['$'][REGISTRY_KEY];_0x3a4868['delete'](this),0x0===_0x3a4868['size']&&Data['deleteCtx'](GLOBAL_CTX_NAME),this['_destroyDropzone']?.(),this['_destroyContentWrapperDropzone']?.(),this['_onAreaClicked']&&(this['removeEventListener']('keydown',this['_onAreaClicked']),this['removeEventListener']('click',this['_onAreaClicked']),this['_onAreaClicked']=null);}};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});var getTopLevelOrigin=()=>{const _0x275fba=globalThis['top']??globalThis['parent']??globalThis['self'];try{return _0x275fba['location']['origin'];}catch(_0x336f76){return console['warn']('Unable\x20to\x20access\x20top-level\x20window\x20location:',_0x336f76),globalThis['location']['origin'];}},escapeRegExp=_0x534f01=>_0x534f01['replace'](/[\\-\\[]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,'\x5c$&'),wildcardRegexp=(_0x102cd5,_0x1f5745='i')=>{const _0x475a30=_0x102cd5['split']('*')['map'](escapeRegExp);return new RegExp('^'+_0x475a30['join']('.+')+'$',_0x1f5745);},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'],getCssValue=(_0x4839a9,_0x2e9415)=>window['getComputedStyle'](_0x4839a9)['getPropertyValue'](_0x2e9415)['trim'](),buildThemeDefinition=_0x3fe84f=>{const _0x3670d4={};for(const _0x22a89c of ucCustomProperties){const _0x2303b8=getCssValue(_0x3fe84f,_0x22a89c);_0x2303b8&&(_0x3670d4[_0x22a89c]=_0x2303b8);}return _0x3670d4;},MESSAGE_TYPE_WHITELIST=['selected-files-change','toolbar-state-change'],isWhitelistedMessage=_0x5f5cb1=>{if(!_0x5f5cb1)return!0x1;if('object'!=typeof _0x5f5cb1)return!0x1;if(!('type'in _0x5f5cb1))return!0x1;const _0x260e1e=_0x5f5cb1['type'];return'string'==typeof _0x260e1e&&!!MESSAGE_TYPE_WHITELIST['includes'](_0x260e1e);},MessageBridge=class{['_handlerMap']=new Map();['_context'];['_getTargetOrigin'];constructor(_0x4b1724,_0x332c51){this['_context']=_0x4b1724,this['_getTargetOrigin']=_0x332c51,window['addEventListener']('message',this['_handleMessage']);}['_handleMessage']=_0x4732e7=>{if(_0x4732e7['source']!==this['_context'])return;const _0x4175d6=_0x4732e7['data'];if(!isWhitelistedMessage(_0x4175d6))return;const _0x1ce894=this['_handlerMap']['get'](_0x4175d6['type']);if(_0x1ce894){for(const _0x3aed85 of _0x1ce894)_0x3aed85(_0x4175d6);}};['on'](_0x31af8a,_0x1b887a){const _0x1de6e6=this['_handlerMap']['get'](_0x31af8a)??new Set();this['_handlerMap']['has'](_0x31af8a)||this['_handlerMap']['set'](_0x31af8a,_0x1de6e6),_0x1de6e6['add'](_0x1b887a);}['send'](_0x1607af){const _0x174870=this['_getTargetOrigin']();this['_context']['postMessage'](_0x1607af,_0x174870);}['destroy'](){window['removeEventListener']('message',this['_handleMessage']);}};function queryString(_0x30f314){const _0x15413d=[];for(const [_0x1d4b36,_0x1ff2d4]of Object['entries'](_0x30f314))null==_0x1ff2d4||'string'==typeof _0x1ff2d4&&0x0===_0x1ff2d4['length']||_0x15413d['push'](_0x1d4b36+'='+encodeURIComponent(_0x1ff2d4));return _0x15413d['join']('&');}var SOCIAL_SOURCE_MAPPING={[ExternalUploadSource['GDRIVE']]:'ngdrive'},ExternalSource=class extends UploaderBlock{['couldBeCtxOwner']=!0x0;['activityType']=ActivityBlock['activities']['EXTERNAL'];['_messageBridge'];constructor(){super(),this['init$']={...this['init$'],'activityIcon':'','activityCaption':'','selectedList':[],'total':0x0,'isSelectionReady':!0x1,'isDoneBtnEnabled':!0x1,'couldSelectAll':!0x1,'couldDeselectAll':!0x1,'showSelectionStatus':!0x1,'showDoneBtn':!0x1,'counterText':'','doneBtnTextClass':'uc-hidden','toolbarVisible':!0x0,'onDone':()=>{for(const _0x19b64e of this['$']['selectedList']){const _0x2c8ac0=this['extractUrlFromSelectedFile'](_0x19b64e),{filename:_0x2e7d9b}=_0x19b64e,{externalSourceType:_0x1303b7}=this['activityParams'];this['api']['addFileFromUrl'](_0x2c8ac0,{'fileName':_0x2e7d9b,'source':_0x1303b7});}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 _0x51c864=super['activityParams'];if('externalSourceType'in _0x51c864)return _0x51c864;throw new Error('External\x20Source\x20activity\x20params\x20not\x20found');}['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType'],{'onActivate':()=>{const {externalSourceType:_0x52a3e6}=this['activityParams'];if(!_0x52a3e6)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':''+_0x52a3e6[0x0]?.['toUpperCase']()+_0x52a3e6?.['slice'](0x1),'activityIcon':_0x52a3e6}),this['mountIframe']();}}),this['sub']('*currentActivityParams',_0xbc5eb=>{this['isActivityActive']&&(this['unmountIframe'](),this['mountIframe']());}),this['sub']('*currentActivity',_0x4fff34=>{_0x4fff34!==this['activityType']&&this['unmountIframe']();}),this['subConfigValue']('multiple',_0x57b7a2=>{this['$']['showSelectionStatus']=_0x57b7a2;}),this['subConfigValue']('localeName',_0x4ac7aa=>{this['setupL10n']();}),this['subConfigValue']('externalSourcesEmbedCss',_0x42db5a=>{this['applyEmbedCss'](_0x42db5a);});}['extractUrlFromSelectedFile'](_0x4c28f3){if(_0x4c28f3['alternatives']){const _0x3dce29=stringToArray(this['cfg']['externalSourcesPreferredTypes']);for(const _0x46ca2d of _0x3dce29){const _0x5dafdc=wildcardRegexp(_0x46ca2d);for(const [_0x2f363a,_0x13ff77]of Object['entries'](_0x4c28f3['alternatives']))if(_0x5dafdc['test'](_0x2f363a))return _0x13ff77;}}return _0x4c28f3['url'];}['handleToolbarStateChange'](_0x5bbd17){this['set$']({'toolbarVisible':_0x5bbd17['isVisible']});}async['handleSelectedFilesChange'](_0x33125b){this['cfg']['multiple']===_0x33125b['isMultipleMode']?(this['bindL10n']('counterText',()=>this['l10n']('selected-count',{'count':_0x33125b['selectedCount'],'total':_0x33125b['total']})),this['set$']({'doneBtnTextClass':_0x33125b['isReady']?'':'uc-hidden','isSelectionReady':_0x33125b['isReady'],'isDoneBtnEnabled':_0x33125b['isReady']&&_0x33125b['selectedFiles']['length']>0x0,'showSelectionStatus':_0x33125b['isMultipleMode']&&_0x33125b['total']>0x0,'couldSelectAll':_0x33125b['selectedCount']<_0x33125b['total'],'couldDeselectAll':_0x33125b['selectedCount']===_0x33125b['total'],'selectedList':_0x33125b['selectedFiles'],'showDoneBtn':_0x33125b['total']>0x0})):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'](_0x309dc0){this['_messageBridge']?.['send']({'type':'set-embed-css','css':_0x309dc0});}['setupL10n'](){this['_messageBridge']?.['send']({'type':'set-locale-definition','localeDefinition':this['cfg']['localeName']});}['remoteUrl'](){const {pubkey:_0x1cb747,remoteTabSessionKey:_0x1dcc0d,socialBaseUrl:_0x128676,multiple:_0x285dc4}=this['cfg'],{externalSourceType:_0x539dcd}=this['activityParams'],_0x49deba=SOCIAL_SOURCE_MAPPING[_0x539dcd]??_0x539dcd,_0x200423={'lang':this['l10n']('social-source-lang')?.['split']('-')?.[0x0]||'en','public_key':_0x1cb747,'images_only':(!0x1)['toString'](),'session_key':_0x1dcc0d,'wait_for_theme':!0x0,'multiple':_0x285dc4['toString'](),'origin':this['cfg']['topLevelOrigin']||getTopLevelOrigin(),'debug':this['cfg']['debug']},_0x500347=new URL('/window4/'+_0x49deba,_0x128676);return _0x500347['search']=queryString(_0x200423),_0x500347['toString']();}['mountIframe'](){const _0x5c8a5d=create({'tag':'iframe','attributes':{'src':this['remoteUrl'](),'marginheight':0x0,'marginwidth':0x0,'frameborder':0x0,'allowTransparency':!0x0}});_0x5c8a5d['addEventListener']('load',this['handleIframeLoad']['bind'](this)),this['ref']['iframeWrapper']['innerHTML']='',this['ref']['iframeWrapper']['appendChild'](_0x5c8a5d),_0x5c8a5d['contentWindow']&&(this['_messageBridge']?.['destroy'](),this['_messageBridge']=new MessageBridge(_0x5c8a5d['contentWindow'],()=>this['cfg']['socialBaseUrl']),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,'showDoneBtn':!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\x0a\x20\x20\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-done-btn\x20uc-primary-btn\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onDone;\x20@disabled:\x20!isDoneBtnEnabled;\x20@hidden:\x20!showDoneBtn\x22\x0a\x20\x20\x20\x20\x20\x20>\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';var MAX_SQUARE_SIDE=0x4000,regExpShrink=/^([0-9]+)x([0-9]+)(?:\s+(\d{1,2}|100)%)?$/i,parseShrink=_0x577dd0=>{if('string'!=typeof _0x577dd0)return!0x1;const _0x155b51=regExpShrink['exec'](_0x577dd0['toLocaleLowerCase']())??[];if(0x0===_0x155b51['length'])return!0x1;const _0x16adbd=Number(_0x155b51[0x1])*Number(_0x155b51[0x2]),_0x4d921f=MAX_SQUARE_SIDE*MAX_SQUARE_SIDE;return _0x16adbd>_0x4d921f?(console['warn']('Shrinked\x20size\x20can\x20not\x20be\x20larger\x20than\x20'+Math['floor'](_0x4d921f/0x3e8/0x3e8)+'MP.\x20You\x20have\x20set\x20'+_0x155b51[0x1]+'x'+_0x155b51[0x2]+'\x20('+Math['ceil'](_0x16adbd/0x3e8/0x64)/0xa+'MP).'),!0x1):{'quality':_0x155b51[0x3]?Number(_0x155b51[0x3])/0x64:void 0x0,'size':_0x16adbd};},FileItemConfig=class extends UploaderBlock{['_entrySubs']=new Set();['_entry']=null;['_withEntry'](_0x2c9400){return(..._0x166121)=>{const _0x26f2b6=this['_entry'];if(_0x26f2b6)return _0x2c9400(_0x26f2b6,..._0x166121);console['warn']('No\x20entry\x20found');};}['_subEntry'](_0x433c78,_0x396b60){this['_withEntry']((_0x36e383,_0x4d981d,_0x8efe6)=>{const _0x3cb241=_0x36e383['subscribe'](_0x4d981d,_0xbf6f88=>{this['isConnected']&&_0x8efe6(_0xbf6f88);});this['_entrySubs']['add'](_0x3cb241);})(_0x433c78,_0x396b60);}['_reset'](){for(const _0x297d8f of this['_entrySubs'])_0x297d8f['remove']();this['_entrySubs']=new Set(),this['_entry']=null;}['disconnectedCallback'](){super['disconnectedCallback'](),this['_entrySubs']=new Set();}},FileItemState=Object['freeze']({'FINISHED':Symbol('FINISHED'),'FAILED':Symbol('FAILED'),'UPLOADING':Symbol('UPLOADING'),'VALIDATION':Symbol('VALIDATION'),'QUEUED_UPLOADING':Symbol('QUEUED-UPLOADING'),'QUEUED_VALIDATION':Symbol('QUEUED-VALIDATION'),'IDLE':Symbol('IDLE')}),FileItem=class e extends FileItemConfig{['couldBeCtxOwner']=!0x0;['pauseRender']=!0x0;['_renderedOnce']=!0x1;['_observer'];['_isIntersecting']=!0x1;['_thumbRect'];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'](_0x555a24=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'edit-file','node':this['tagName']}}}),this['$']['*currentActivityParams']={'internalId':_0x555a24['uid']},this['modalManager']?.['open'](ActivityBlock['activities']['CLOUD_IMG_EDIT']),this['$']['*currentActivity']=ActivityBlock['activities']['CLOUD_IMG_EDIT'];}),'onRemove':()=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'remove-file','node':this['tagName']}}}),this['uploadCollection']['remove'](this['$']['uid']);},'onUpload':()=>{this['upload']();}};}['_calculateState']=this['_withEntry'](e=>{let i=FileItemState['IDLE'];e['getValue']('errors')['length']>0x0?i=FileItemState['FAILED']:e['getValue']('isQueuedForUploading')?i=FileItemState['QUEUED_UPLOADING']:e['getValue']('isQueuedForValidation')?i=FileItemState['QUEUED_VALIDATION']:e['getValue']('isValidationPending')?i=FileItemState['VALIDATION']:e['getValue']('isUploading')?i=FileItemState['UPLOADING']:e['getValue']('fileInfo')&&(i=FileItemState['FINISHED']),this['$']['state']=i;});['_debouncedCalculateState']=debounce(this['_calculateState']['bind'](this),0x64);['_updateHintAndProgress']=this['_withEntry'](throttle((e,i)=>{const n=e['getValue']('errors')?.[0x0]?.['message'],s=e['getValue']('source'),r=e['getValue']('externalUrl'),o=i===FileItemState['FINISHED'],a=i===FileItemState['UPLOADING'],l=i===FileItemState['QUEUED_UPLOADING'],c=i===FileItemState['QUEUED_VALIDATION'],u=i===FileItemState['VALIDATION'],h=e['getValue']('fileName');let d='';n?d='':!o&&r&&s&&Object['values'](ExternalUploadSource)['includes'](s)&&(d=this['l10n']('waiting-for',{'source':this['l10n']('src-type-'+s)})),this['set$']({'hint':d,'errorText':n,'progressVisible':a||l||c||u,'progressValue':c||u?0x0:e['getValue']('uploadProgress'),'ariaLabelStatusFile':h&&this['l10n']('a11y-file-item-status',{'fileName':h,'status':this['l10n'](i?.['description']?.['toLocaleLowerCase']()??'')['toLocaleLowerCase']()})});},0x64));['_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),this['set$']({'isFailed':i===FileItemState['FAILED'],'isUploading':i===FileItemState['UPLOADING'],'isFinished':i===FileItemState['FINISHED'],'isEditable':this['cfg']['useCloudImageEditor']&&e['getValue']('isImage')&&e['getValue']('cdnUrl')}),this['_updateHintAndProgress'](i);});['_reset'](){super['_reset'](),this['_debouncedCalculateState']['cancel']();}['_observerCallback'](_0x229fb2){const [_0x9fca4b]=_0x229fb2;_0x9fca4b&&(this['_isIntersecting']=_0x9fca4b['isIntersecting'],this['_thumbRect']=_0x9fca4b['boundingClientRect'],_0x9fca4b['isIntersecting']&&!this['_renderedOnce']&&(this['render'](),this['_renderedOnce']=!0x0));}['_handleEntryId'](_0x37557e){this['_reset']();const _0x1b2b5b=this['uploadCollection']?.['read'](_0x37557e);this['_entry']=_0x1b2b5b,_0x1b2b5b&&(this['_subEntry']('isQueuedForValidation',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('isValidationPending',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('uploadProgress',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('isQueuedForUploading',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('fileName',_0x3a34ad=>{this['$']['itemName']=_0x3a34ad||_0x1b2b5b['getValue']('externalUrl')||this['l10n']('file-no-name'),this['_debouncedCalculateState']();}),this['_subEntry']('externalUrl',_0x3a4347=>{this['$']['itemName']=_0x1b2b5b['getValue']('fileName')||_0x3a4347||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'](_0x41fada){'list'===this['cfg']['filesViewMode']?this['$']['showFileNames']=!0x0:this['$']['showFileNames']=_0x41fada;}['initCallback'](){super['initCallback'](),this['sub']('uid',_0x12ad77=>{this['_handleEntryId'](_0x12ad77);}),this['sub']('state',_0x7d3930=>{this['_handleState'](_0x7d3930);}),this['subConfigValue']('useCloudImageEditor',()=>this['_debouncedCalculateState']()),this['subConfigValue']('filesViewMode',_0x2351d9=>{this['_updateShowFileNames'](this['cfg']['gridShowFileNames']),this['setAttribute']('mode',_0x2351d9);}),this['subConfigValue']('gridShowFileNames',_0x223649=>{this['_updateShowFileNames'](_0x223649);}),this['onclick']=()=>{e['activeInstances']['forEach'](_0x375494=>{_0x375494===this?_0x375494['setAttribute']('focused',''):_0x375494['removeAttribute']('focused');});},this['sub']('*uploadTrigger',_0x2b1c46=>{this['_entry']&&!_0x2b1c46['has'](this['_entry']['uid'])||setTimeout(()=>this['isConnected']&&this['upload']());}),e['activeInstances']['add'](this);}['destroyCallback'](){super['destroyCallback'](),e['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']);}async['_processShrink'](_0x20d713){const _0x9b24f9=this['_settingsOfShrink']();return _0x9b24f9?await shrinkFile(_0x20d713,_0x9b24f9):(console['warn']('Image\x20shrink\x20settings\x20are\x20invalid,\x20skipping\x20shrinking'),_0x20d713);}['upload']=this['_withEntry'](async e=>{if(!this['uploadCollection']['read'](e['uid']))return;if(e['getValue']('fileInfo')||e['getValue']('isUploading')||e['getValue']('errors')['length']>0x0||e['getValue']('isValidationPending'))return;const i=this['cfg']['multiple']?this['cfg']['multipleMax']:0x1;if(!(i&&this['uploadCollection']['size']>i)){e['setMultipleValues']({'isUploading':!0x0,'errors':[],'isQueuedForUploading':!0x0}),this['_debouncedCalculateState']();try{const i=new AbortController();e['setValue']('abortController',i);const n=async()=>{e['setValue']('isQueuedForUploading',!0x1);let n=e['getValue']('file');if(n instanceof File&&this['cfg']['imageShrink'])try{n=await this['_processShrink'](n);}catch{}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']){const 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);},s=await this['$']['*uploadQueue']['add'](n);e['setMultipleValues']({'fileInfo':s,'isQueuedForUploading':!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){this['telemetryManager']['sendEventError'](i,'file\x20upload.\x20Failed\x20to\x20upload\x20file'),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']();}}});static ['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';static ['activeInstances']=new Set();},FormInput=class extends UploaderBlock{['requireCtxName']=!0x0;['_validationInputElement']=null;['_dynamicInputsContainer']=null;['_createValidationInput'](){const _0x4c2163=document['createElement']('input');return _0x4c2163['type']='text',_0x4c2163['name']=this['ctxName'],_0x4c2163['required']=this['cfg']['multipleMin']>0x0,_0x4c2163['tabIndex']=-0x1,applyStyles(_0x4c2163,{'opacity':0x0,'height':0x0,'width':0x0}),_0x4c2163;}['initCallback'](){super['initCallback'](),this['_validationInputElement']=this['_createValidationInput'](),this['appendChild'](this['_validationInputElement']),this['sub']('*collectionState',_0x89d7e5=>{{if(!this['_dynamicInputsContainer']){const _0x212bed=document['createElement']('div');this['appendChild'](_0x212bed),this['_dynamicInputsContainer']=_0x212bed;}if(!this['_validationInputElement']){const _0x49975d=this['_createValidationInput']();this['appendChild'](_0x49975d),this['_validationInputElement']=_0x49975d;}if(this['_dynamicInputsContainer']['innerHTML']='','uploading'===_0x89d7e5['status']||'idle'===_0x89d7e5['status'])return this['_validationInputElement']['value']='',void this['_validationInputElement']['setCustomValidity']('');if('failed'===_0x89d7e5['status']){const _0x4a44b5=_0x89d7e5['errors'][0x0]?.['message'];return this['_validationInputElement']['value']='',void this['_validationInputElement']['setCustomValidity'](_0x4a44b5??'');}const _0x451e0d=_0x89d7e5['group']?_0x89d7e5['group']:null;if(_0x451e0d)return this['_validationInputElement']['value']=_0x451e0d['cdnUrl']??'',void this['_validationInputElement']['setCustomValidity']('');const _0x28777b=_0x89d7e5['allEntries']['map'](_0x3818ca=>_0x3818ca['cdnUrl'])['filter'](_0x24ccab=>'string'==typeof _0x24ccab);if(!this['cfg']['multiple']&&0x1===_0x28777b['length']&&_0x28777b[0x0])return this['_validationInputElement']['value']=_0x28777b[0x0],void this['_validationInputElement']['setCustomValidity']('');this['_validationInputElement']['remove'](),this['_validationInputElement']=null;const _0xec50a2=new DocumentFragment();for(const _0x3607e6 of _0x28777b){const _0x2adacd=document['createElement']('input');_0x2adacd['type']='hidden',_0x2adacd['name']=this['ctxName']+'[]',_0x2adacd['value']=_0x3607e6,_0xec50a2['appendChild'](_0x2adacd);}this['_dynamicInputsContainer']['replaceChildren'](_0xec50a2);}},!0x1);}},Icon=class extends Block{constructor(){super(),this['init$']={...this['init$'],'name':'','href':''};}['initCallback'](){super['initCallback'](),this['sub']('name',_0x1e2426=>{if(!_0x1e2426)return;let _0xf012ea='#uc-icon-'+_0x1e2426;this['subConfigValue']('iconHrefResolver',_0x1a0ff8=>{if(_0x1a0ff8){const _0x27e3f9=_0x1a0ff8(_0x1e2426);_0xf012ea=_0x27e3f9??_0xf012ea;}this['$']['href']=_0xf012ea;});}),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'});var uniqueArray=_0x931077=>[...new Set(_0x931077)],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'}),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_PROPS=Object['create'](null);for(const e in PROPS_MAP)CSS_PROPS[CSS_PREF+e]=PROPS_MAP[e]?.['default']||'';var ImgConfig=class extends BaseComponent{['cssInit$']=CSS_PROPS;['$$'](_0x3c16f8){return this['$'][CSS_PREF+_0x3c16f8];}['set$$'](_0x33a293){for(const _0x2c801b in _0x33a293)this['$'][CSS_PREF+_0x2c801b]=_0x33a293[_0x2c801b];}['sub$$'](_0x4f375d,_0x537eb9){this['sub'](CSS_PREF+_0x4f375d,_0x59780e=>{null!==_0x59780e&&''!==_0x59780e&&_0x537eb9(_0x59780e);});}['analyticsParams'](){return'-/@clib/'+PACKAGE_NAME+'/'+PACKAGE_VERSION+'/uc-img/';}['initAttributes'](_0x13f3b3){[...this['attributes']]['forEach'](_0x528243=>{PROPS_MAP[_0x528243['name']]||_0x13f3b3['setAttribute'](_0x528243['name'],_0x528243['value']);});}['initIntersection'](_0x53fc59,_0x2f9b17){this['_isnObserver']=new IntersectionObserver(_0x10ffa3=>{_0x10ffa3['forEach'](_0x4ba299=>{_0x4ba299['isIntersecting']&&(_0x2f9b17(),this['_isnObserver']['unobserve'](_0x53fc59));});},{'root':null,'rootMargin':'0px'}),this['_isnObserver']['observe'](_0x53fc59),this['_observed']||(this['_observed']=new Set()),this['_observed']['add'](_0x53fc59);}['destroyCallback'](){super['destroyCallback'](),this['_isnObserver']&&(this['_observed']['forEach'](_0x39d298=>{this['_isnObserver']['unobserve'](_0x39d298);}),this['_isnObserver']=null),Data['deleteCtx'](this);}static get['observedAttributes'](){return Object['keys'](PROPS_MAP);}['attributeChangedCallback'](_0x56e0c7,_0x212224,_0x4a1706){window['setTimeout'](()=>{this['$'][CSS_PREF+_0x56e0c7]=_0x4a1706;});}},parseObjectToString=_0x16daec=>Object['entries'](_0x16daec)['filter'](([_0x1c5a59,_0xe8db81])=>void 0x0!==_0xe8db81&&''!==_0xe8db81)['map'](([_0x2c1051,_0x318251])=>'cdn-operations'===_0x2c1051||'analytics'===_0x2c1051?_0x318251:_0x2c1051+'/'+_0x318251),ImgBase=class extends ImgConfig{['_img']=new Image();['_imgPreview']=new Image();['_fmtAbs'](_0x178c38){return!_0x178c38['includes']('//')&&!DEV_MODE&&(_0x178c38=new URL(_0x178c38,document['baseURI'])['href']),_0x178c38;}['_validateSize'](_0x2e7f98){if(''!==_0x2e7f98?.['trim']()){const _0x1ce670=_0x2e7f98['match'](/\d+/)[0x0],_0xf568b0=_0x2e7f98['match'](/[a-zA-Z]+/)[0x0],_0x287c75=parseInt(_0x1ce670,0xa);if(Number(_0x287c75)>MAX_WIDTH_JPG&&this['hasFormatJPG'])return MAX_WIDTH_JPG+_0xf568b0;if(Number(_0x287c75)>MAX_WIDTH&&!this['hasFormatJPG'])return MAX_WIDTH+_0xf568b0;}return _0x2e7f98;}['_getCdnModifiers'](_0x45b182,_0x51e2cd){const _0x23e514={'format':this['$$']('format'),'quality':this['$$']('quality'),'resize':this['_validateSize'](_0x45b182),'blur':_0x51e2cd,'cdn-operations':this['$$']('cdn-operations'),'analytics':this['analyticsParams']()};return createCdnUrlModifiers(...parseObjectToString(_0x23e514));}['_getUrlBase'](_0x51b4a5='',_0x43b542=''){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'));const _0x471e6e=this['_getCdnModifiers'](_0x51b4a5,_0x43b542);return this['$$']('src')['startsWith'](this['$$']('cdn-cname'))?createCdnUrl(this['$$']('src'),_0x471e6e):this['$$']('cdn-cname')&&this['$$']('uuid')||this['$$']('uuid')?this['_proxyUrl'](createCdnUrl(createOriginalUrl(this['$$']('cdn-cname'),this['$$']('uuid')),_0x471e6e)):this['$$']('proxy-cname')?this['_proxyUrl'](createCdnUrl(this['$$']('proxy-cname'),_0x471e6e,this['_fmtAbs'](this['$$']('src')))):this['$$']('pubkey')?this['_proxyUrl'](createCdnUrl('https://'+this['$$']('pubkey')+'.ucr.io/',_0x471e6e,this['_fmtAbs'](this['$$']('src')))):void 0x0;}['_proxyUrl'](_0x426feb){return this['$$']('secure-delivery-proxy')?applyTemplateData(this['$$']('secure-delivery-proxy'),{'previewUrl':_0x426feb},{'transform':_0x3bbf7a=>window['encodeURIComponent'](_0x3bbf7a)}):_0x426feb;}['_getElSize'](_0x538c59,_0x5aa730=0x1,_0x2016e9=!0x0){const _0x235842=_0x538c59['getBoundingClientRect'](),_0x37ca3a=_0x5aa730*Math['round'](_0x235842['width']),_0x35a6f4=_0x2016e9?'':_0x5aa730*Math['round'](_0x235842['height']);return _0x37ca3a||_0x35a6f4?(_0x37ca3a||'')+'x'+(_0x35a6f4||''):null;}['_setupEventProxy'](_0x2e6a2e){const _0x46b966=_0x3a03b6=>{_0x3a03b6['stopPropagation']();const _0x13a1da=new Event(_0x3a03b6['type'],_0x3a03b6);this['dispatchEvent'](_0x13a1da);},_0x2ca041=['load','error'];for(const _0x17b651 of _0x2ca041)_0x2e6a2e['addEventListener'](_0x17b651,_0x46b966);}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 _0x58efa1=stringToArray(this['$$']('breakpoints'));return uniqueArray(_0x58efa1['map'](_0x17d6ac=>parseInt(_0x17d6ac,0xa)));}return null;}get['hasFormatJPG'](){return'jpeg'===this['$$']('format')['toLowerCase']();}['renderBg'](_0x1d1dba){const _0x4e9de8=new Set();_0x4e9de8['add']('url(\x22'+this['_getUrlBase'](this['_getElSize'](_0x1d1dba))+'\x22)\x201x'),this['$$']('hi-res-support')&&_0x4e9de8['add']('url(\x22'+this['_getUrlBase'](this['_getElSize'](_0x1d1dba,HI_RES_K))+'\x22)\x20'+HI_RES_K+'x'),this['$$']('ultra-res-support')&&_0x4e9de8['add']('url(\x22'+this['_getUrlBase'](this['_getElSize'](_0x1d1dba,ULTRA_RES_K))+'\x22)\x20'+ULTRA_RES_K+'x');const _0x934b4b='image-set('+[..._0x4e9de8]['join'](',\x20')+')';_0x1d1dba['style']['setProperty']('background-image',_0x934b4b),_0x1d1dba['style']['setProperty']('background-image','-webkit-'+_0x934b4b);}['getSrcset'](){const _0x377595=new Set();return this['breakpoints']?this['breakpoints']['forEach'](_0x513918=>{_0x377595['add'](this['_getUrlBase'](_0x513918+'x')+('\x20'+this['_validateSize'](_0x513918+'w'))),this['$$']('hi-res-support')&&_0x377595['add'](this['_getUrlBase'](_0x513918*HI_RES_K+'x')+('\x20'+this['_validateSize'](_0x513918*HI_RES_K+'w'))),this['$$']('ultra-res-support')&&_0x377595['add'](this['_getUrlBase'](_0x513918*ULTRA_RES_K+'x')+('\x20'+this['_validateSize'](_0x513918*ULTRA_RES_K+'w')));}):(_0x377595['add'](this['_getUrlBase'](this['_getElSize'](this['currentImg']['img']))+'\x201x'),this['$$']('hi-res-support')&&_0x377595['add'](this['_getUrlBase'](this['_getElSize'](this['currentImg']['img'],0x2))+'\x202x'),this['$$']('ultra-res-support')&&_0x377595['add'](this['_getUrlBase'](this['_getElSize'](this['currentImg']['img'],0x3))+'\x203x')),[..._0x377595]['join']();}['getSrc'](){return this['_getUrlBase']();}get['srcUrlPreview'](){return this['_getUrlBase']('100x','100');}['renderBackground'](){[...document['querySelectorAll'](this['bgSelector'])]['forEach'](_0x37cd78=>{this['$$']('intersection')?this['initIntersection'](_0x37cd78,()=>{this['renderBg'](_0x37cd78);}):this['renderBg'](_0x37cd78);});}['_appendURL']({elNode:_0x418ebd,src:_0x3929cf,srcset:_0x4721af}){_0x3929cf&&(_0x418ebd['src']=_0x3929cf),_0x4721af&&(_0x418ebd['srcset']=_0x4721af);}['_setupConfigForImage']({elNode:_0x4c4a6d}){this['_setupEventProxy'](_0x4c4a6d),this['initAttributes'](_0x4c4a6d);}['loaderImage']({src:_0xdd107e,srcset:_0x318d46,elNode:_0x4801ba}){return new Promise((_0x5841e0,_0x372ecc)=>{this['_setupConfigForImage']({'elNode':_0x4801ba}),_0x4801ba['setAttribute'](UNRESOLVED_ATTR,''),_0x4801ba['addEventListener']('load',()=>{_0x4801ba['removeAttribute'](UNRESOLVED_ATTR),_0x5841e0(_0x4801ba);}),_0x4801ba['addEventListener']('error',()=>{_0x372ecc(!0x1);}),this['_appendURL']({'elNode':_0x4801ba,'src':_0xdd107e,'srcset':_0x318d46});});}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(_0x26c3c6){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(_0x4e6a2c){this['hasPreviewImage']&&await this['_imgPreview']?.['remove'](),this['appendChild'](this['_img']);}}['init'](){this['bgSelector']?this['renderBackground']():this['renderImage']();}},Img=class extends ImgBase{['initCallback'](){super['initCallback'](),this['sub$$']('src',()=>{this['init']();}),this['sub$$']('uuid',()=>{this['init']();}),this['sub$$']('lazy',_0x35c5d0=>{this['$$']('is-background-for')||this['$$']('is-preview-blur')||(this['img']['loading']=_0x35c5d0?'lazy':'eager');});}},LAST_ACTIVE_MODAL_ID=null,Modal=class extends Block{static ['styleAttrs']=[...super['styleAttrs'],'uc-modal'];static ['StateConsumerScope']='modal';['_mouseDownTarget'];['handleModalOpen'];['handleModalClose'];['handleModalCloseAll'];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']=_0x1fe5d0=>{this['_mouseDownTarget']=_0x1fe5d0['target'];};['_handleDialogMouseUp']=_0x5e3ed7=>{const _0x3afb97=_0x5e3ed7['target'];_0x3afb97===this['ref']['dialog']&&_0x3afb97===this['_mouseDownTarget']&&this['_closeDialog']();};['show'](){const _0x3c8ad2=this['ref']['dialog'];'function'==typeof _0x3c8ad2['showModal']?(this['setAttribute']('aria-modal','true'),_0x3c8ad2['showModal']()):_0x3c8ad2['setAttribute']('open',''),this['cfg']['modalScrollLock']&&(document['body']['style']['overflow']='hidden');}['hide'](){const _0x330045=this['ref']['dialog'];'function'==typeof _0x330045['close']?(this['setAttribute']('aria-modal','false'),_0x330045['close']()):_0x330045['removeAttribute']('open');}['_handleModalOpen']({id:_0x135865}){_0x135865===this['id']?(LAST_ACTIVE_MODAL_ID=_0x135865,this['show'](),this['emit'](EventType['MODAL_OPEN'],{'modalId':_0x135865},{'debounce':!0x0})):this['hide']();}['_handleModalClose']({id:_0x371952}){_0x371952===this['id']&&(this['hide'](),this['emit'](EventType['MODAL_CLOSE'],{'modalId':_0x371952,'hasActiveModals':this['modalManager']?.['hasActiveModals']},{'debounce':!0x0}));}['_handleModalCloseAll'](_0x17ab29){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);const _0x25361e=this['ref']['dialog'];_0x25361e['addEventListener']('close',this['_handleDialogClose']),_0x25361e['addEventListener']('mousedown',this['_handleDialogMouseDown']),_0x25361e['addEventListener']('mouseup',this['_handleDialogMouseUp']),this['subConfigValue']('modalBackdropStrokes',_0x30d97c=>{_0x30d97c?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;const _0x2d7442=this['ref']['dialog'];_0x2d7442['removeEventListener']('close',this['_handleDialogClose']),_0x2d7442['removeEventListener']('mousedown',this['_handleDialogMouseDown']),_0x2d7442['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';var ProgressBar=class extends Block{['_value']=0x0;['_visible']=!0x0;constructor(){super(),this['init$']={...this['init$'],'width':0x0,'opacity':0x0};}['initCallback'](){super['initCallback'](),(this['ref']['fakeProgressLine']['addEventListener']('animationiteration',()=>{const _0x5b9731=this['ref']['fakeProgressLine'];this['_visible']?this['_value']>0x0&&_0x5b9731['classList']['add']('uc-fake-progress--hidden'):_0x5b9731['classList']['add']('uc-fake-progress--hidden');}),this['defineAccessor']('value',_0x35c287=>{null!=_0x35c287&&(this['_value']=_0x35c287,this['_visible']&&this['style']['setProperty']('--l-progress-value',this['_value']['toString']()));}),this['defineAccessor']('visible',_0x3d099e=>{this['_visible']=_0x3d099e,this['classList']['toggle']('uc-progress-bar--hidden',!_0x3d099e);}));}};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';var ProgressBarCommon=class extends UploaderBlock{['_unobserveCollectionCb'];constructor(){super(),this['init$']={...this['init$'],'visible':!0x1,'value':0x0,'*commonProgress':0x0};}['initCallback'](){super['initCallback'](),this['_unobserveCollectionCb']=this['uploadCollection']['observeProperties'](()=>{const _0x3f156a=this['uploadCollection']['items']()['some'](_0xa12fb9=>{const _0xee94b=this['uploadCollection']['read'](_0xa12fb9);return _0xee94b?.['getValue']('isUploading')??!0x1;});this['$']['visible']=_0x3f156a;}),this['sub']('visible',_0x4d74db=>{_0x4d74db?this['setAttribute']('active',''):this['removeAttribute']('active');}),this['sub']('*commonProgress',_0x335bf0=>{this['$']['value']=_0x335bf0;});}['destroyCallback'](){super['destroyCallback'](),this['_unobserveCollectionCb']?.(),this['_unobserveCollectionCb']=void 0x0;}};ProgressBarCommon['template']='\x20<uc-progress-bar\x20set=\x22visible:\x20visible;\x20value:\x20value\x22></uc-progress-bar>\x20';var Select=class extends Block{constructor(){super(),this['init$']={...this['init$'],'currentText':'','options':[],'selectHtml':'','onSelect':_0x752a22=>{_0x752a22['preventDefault'](),_0x752a22['stopPropagation']();const _0x3031c8=this['ref']['select'];this['value']=_0x3031c8['value'],this['$']['currentText']=this['$']['options']['find'](_0xa879b5=>_0xa879b5['value']===this['value'])?.['text']||'',this['dispatchEvent'](new Event('change'));}};}['initCallback'](){super['initCallback'](),this['sub']('options',_0x52288d=>{this['$']['currentText']=_0x52288d?.[0x0]?.['text']||'';let _0x1a4bb9='';_0x52288d?.['forEach'](_0x5abba0=>{_0x1a4bb9+='<option\x20value=\x22'+_0x5abba0['value']+'\x22>'+_0x5abba0['text']+'</option>';}),this['$']['selectHtml']=_0x1a4bb9;});}};Select['template']='\x20<select\x20ref=\x22select\x22\x20set=\x22innerHTML:\x20selectHtml;\x20onchange:\x20onSelect\x22></select>\x20';var SimpleBtn=class 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',_0x5d265c=>{void 0x0!==_0x5d265c&&(this['$']['withDropZone']=asBoolean2(_0x5d265c));}),this['subConfigValue']('multiple',_0x29e383=>{this['$']['button-text']=_0x29e383?'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});var L10N_PREFIX='src-type-',SourceBtn=class 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 _0x5c275d=browserFeatures['htmlMediaCapture'];return _0x5c275d&&this['api']['openSystemDialog']({'captureCamera':!0x0}),!_0x5c275d;}}),this['registerType']({'type':'draw','activity':ActivityBlock['activities']['DRAW'],'icon':'edit-draw'});for(const _0x4e8a9d of Object['values'](UploadSourceMobile))this['registerType']({'type':_0x4e8a9d,'activity':ActivityBlock['activities']['CAMERA'],'activate':()=>{const _0x505f0f=browserFeatures['htmlMediaCapture'];return _0x505f0f&&this['api']['openSystemDialog']({'captureCamera':!0x0,'modeCamera':'mobile-photo-camera'===_0x4e8a9d?CameraSourceTypes['PHOTO']:CameraSourceTypes['VIDEO']}),!_0x505f0f;}});for(const _0x44dac4 of Object['values'](ExternalUploadSource))this['registerType']({'type':_0x44dac4,'activity':ActivityBlock['activities']['EXTERNAL'],'activityParams':{'externalSourceType':_0x44dac4}});}['initCallback'](){super['initCallback'](),this['initTypes'](),this['defineAccessor']('type',_0x2a5a39=>{_0x2a5a39&&this['applyType'](_0x2a5a39);});}['registerType'](_0x13348f){this['_registeredTypes'][_0x13348f['type']]=_0x13348f;}['getType'](_0x264a9d){return this['_registeredTypes'][_0x264a9d];}['activate'](){if(!this['type'])return;const _0x25219c=this['_registeredTypes'][this['type']];if(!_0x25219c)return;const {activity:_0x39a1eb,activate:_0x460edb,activityParams:_0xc21db5={}}=_0x25219c;(_0x460edb?_0x460edb():!!_0x39a1eb)&&_0x39a1eb&&(this['modalManager']?.['open'](_0x39a1eb),this['set$']({'*currentActivityParams':_0xc21db5,'*currentActivity':_0x39a1eb}));}['applyType'](_0x3cafdb){const _0x501e34=this['_registeredTypes'][_0x3cafdb];if(!_0x501e34)return void console['warn']('Unsupported\x20source\x20type:\x20'+_0x3cafdb);const {textKey:_0x218ddc=_0x3cafdb,icon:_0x463958=_0x3cafdb}=_0x501e34;this['$']['src-type']=''+L10N_PREFIX+_0x218ddc,this['$']['iconName']=_0x463958,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});var SourceList=class extends Block{['initCallback'](){super['initCallback'](),this['subConfigValue']('sourceList',_0x308311=>{const _0xee0fe2=stringToArray(_0x308311);let _0xf45793='';_0xee0fe2['forEach'](_0x194111=>{'instagram'!==_0x194111?'camera'===_0x194111&&browserFeatures['htmlMediaCapture']?this['subConfigValue']('cameraModes',_0x304064=>{const _0x3c26e1=deserializeCsv(_0x304064);_0x3c26e1['forEach'](_0x4eb028=>{_0xf45793+='<uc-source-btn\x20role=\x22listitem\x22\x20type=\x22mobile-'+_0x4eb028+'-camera\x22></uc-source-btn>';}),0x0===_0x3c26e1['length']&&(_0xf45793+='<uc-source-btn\x20role=\x22listitem\x22\x20type=\x22mobile-photo-camera\x22></uc-source-btn>');}):_0xf45793+='<uc-source-btn\x20role=\x22listitem\x22\x20type=\x22'+_0x194111+'\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']=_0xf45793:this['outerHTML']=_0xf45793;});}},Spinner=class extends BaseComponent{};Spinner['template']='\x20<div\x20class=\x22uc-spinner\x22></div>\x20';var StartFrom=class extends ActivityBlock{['historyTracked']=!0x0;['activityType']=ActivityBlock['activities']['START_FROM'];['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType']??'');}};function generateThumb(_0x4ec893,_0x37e85b=0x28){if('image/svg+xml'===_0x4ec893['type'])return URL['createObjectURL'](_0x4ec893);const _0x2be028=document['createElement']('canvas'),_0xfa1783=_0x2be028['getContext']('2d');if(!_0xfa1783)return Promise['reject'](new Error('Canvas\x20context\x20not\x20supported'));const _0xbd0412=new Image(),_0x348fe9=new Promise((_0x549687,_0xcb180e)=>{_0xbd0412['onload']=()=>{const _0x13c534=_0xbd0412['height']/_0xbd0412['width'];_0x13c534>0x1?(_0x2be028['width']=_0x37e85b,_0x2be028['height']=_0x37e85b*_0x13c534):(_0x2be028['height']=_0x37e85b,_0x2be028['width']=_0x37e85b/_0x13c534),_0xfa1783['fillStyle']='rgb(240,\x20240,\x20240)',_0xfa1783['fillRect'](0x0,0x0,_0x2be028['width'],_0x2be028['height']),_0xfa1783['drawImage'](_0xbd0412,0x0,0x0,_0x2be028['width'],_0x2be028['height']),_0x2be028['toBlob'](_0x498d14=>{if(!_0x498d14)return void _0xcb180e();const _0x309333=URL['createObjectURL'](_0x498d14);_0x549687(_0x309333);});},_0xbd0412['onerror']=_0x29fe11=>{_0xcb180e(_0x29fe11);};});return _0xbd0412['src']=URL['createObjectURL'](_0x4ec893),_0x348fe9;}function createSvgBlobUrl(_0x4afbae){const _0x42d07f=new Blob([_0x4afbae],{'type':'image/svg+xml'});return URL['createObjectURL'](_0x42d07f);}function fileCssBg(_0x34e4cd='hsl(209,\x2021%,\x2065%)',_0x341fca=0x20,_0x31c28c=0x20){return createSvgBlobUrl('\x0a\x20\x20<svg\x20width=\x22'+_0x341fca+'\x22\x20height=\x22'+_0x31c28c+'\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'+_0x34e4cd+'\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');}StartFrom['template']='\x20<div\x20class=\x22uc-content\x22><slot></slot></div>\x20';var CDN_MAX_OUTPUT_DIMENSION=0xbb8,Thumb=class extends FileItemConfig{['_renderedGridOnce']=!0x1;['_thumbRect']=null;['_isIntersecting']=!0x1;['_firstViewMode']=this['cfg']['filesViewMode'];['_observer'];constructor(){super(),this['init$']={...this['init$'],'thumbUrl':'','badgeIcon':'','uid':''};}['_calculateThumbSize'](_0x2fa1a2=!0x1){_0x2fa1a2&&(this['_thumbRect']=this['getBoundingClientRect']());let _0x4e310a=Math['max'](parseInt(String(this?.['_thumbRect']?.['height']||0x0),0xa),parseInt(String(this?.['_thumbRect']?.['width']||0x0),0xa),this['cfg']['thumbSize']);return window['devicePixelRatio']>0x1&&(_0x4e310a*=window['devicePixelRatio']),Math['min'](_0x4e310a,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'),a=this['_calculateThumbSize'](i);if(n&&s&&r){const 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){this['telemetryManager']['sendEventError'](i,'thumbnail\x20generation.\x20Failed\x20to\x20generate\x20thumb\x20from\x20file');const n=window['getComputedStyle'](this)['getPropertyValue']('--uc-muted-foreground');e['setValue']('thumbUrl',fileCssBg(n));}});}if(e['getValue']('thumbUrl'))return;const l=e['getValue']('file');if(l?.['type']['includes']('image'))try{const i=await generateThumb(l,a);e['setValue']('thumbUrl',i);}catch(i){this['telemetryManager']['sendEventError'](i,'thumbnail\x20generation.\x20Failed\x20to\x20generate\x20thumb\x20from\x20file');const n=window['getComputedStyle'](this)['getPropertyValue']('--uc-muted-foreground');e['setValue']('thumbUrl',fileCssBg(n));}else{const i=window['getComputedStyle'](this)['getPropertyValue']('--uc-muted-foreground');e['setValue']('thumbUrl',fileCssBg(i));}});['_debouncedGenerateThumb']=debounce(this['_generateThumbnail']['bind'](this),0x64);['_observerCallback'](_0x3d6cc4){const [_0x2d2c87]=_0x3d6cc4;_0x2d2c87&&(this['_isIntersecting']=_0x2d2c87['isIntersecting'],_0x2d2c87['isIntersecting']&&(this['_thumbRect']=_0x2d2c87['boundingClientRect'],this['_debouncedGenerateThumb'](),this['_observer']?.['disconnect']()),0x0===_0x2d2c87['intersectionRatio']&&this['_debouncedGenerateThumb']['cancel']());}['_reset'](){super['_reset'](),this['_debouncedGenerateThumb']['cancel']();}['_handleEntryId'](_0x631832){this['_reset']();const _0x172914=this['uploadCollection']?.['read'](_0x631832);this['_entry']=_0x172914,_0x172914&&(this['_subEntry']('fileInfo',_0x84ab09=>{_0x84ab09?.['isImage']&&this['_isIntersecting']&&this['_debouncedGenerateThumb']();}),this['_subEntry']('thumbUrl',_0x24fe06=>{this['$']['thumbUrl']=_0x24fe06?'url('+_0x24fe06+')':'';}),this['_subEntry']('cdnUrlModifiers',()=>{this['_isIntersecting']&&this['_debouncedGenerateThumb']();}),this['_isIntersecting']&&this['_debouncedGenerateThumb']());}['initCallback'](){super['initCallback'](),this['defineAccessor']('badgeIcon',_0x3c48eb=>{this['$']['badgeIcon']=_0x3c48eb;}),this['defineAccessor']('uid',_0x4674e1=>{this['set$']({'uid':_0x4674e1});}),this['sub']('uid',_0x13ee6c=>{this['_handleEntryId'](_0x13ee6c);}),this['subConfigValue']('filesViewMode',_0x23173b=>{'grid'!==_0x23173b||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});var UploadCtxProvider=class extends UploaderBlock{static ['styleAttrs']=['uc-wgt-common'];static ['EventType']=EventType;['requireCtxName']=!0x0;['initCallback'](){super['initCallback'](),this['$']['*eventEmitter']['bindTarget'](this);}['destroyCallback'](){super['destroyCallback'](),this['$']['*eventEmitter']['unbindTarget'](this);}},UploadList=class 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['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'add-more','node':this['tagName']}}}),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['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'clear-all','node':this['tagName']}}}),this['uploadCollection']['clearAll']();}};}['_throttledHandleCollectionUpdate']=throttle(()=>{this['isConnected']&&(this['_updateUploadsState'](),this['couldOpenActivity']||this['$']['*currentActivity']!==this['activityType']||this['historyBack'](),this['cfg']['confirmUpload']||this['api']['uploadAll']());},0x12c);['_updateUploadsState'](){const _0x4d7e7a=this['api']['getOutputCollectionState'](),_0xff7c43={'total':_0x4d7e7a['totalCount'],'succeed':_0x4d7e7a['successCount'],'uploading':_0x4d7e7a['uploadingCount'],'failed':_0x4d7e7a['failedCount'],'validatingBeforeUploading':_0x4d7e7a['idleEntries']['filter'](_0x4e115e=>_0x4e115e['isValidationPending'])['length']},_0xc3ef52=!_0x4d7e7a['errors']['some'](_0x1d0180=>'TOO_MANY_FILES'===_0x1d0180['type']||'TOO_FEW_FILES'===_0x1d0180['type']),_0x1a3f3e=_0x4d7e7a['errors']['some'](_0x3d9454=>'TOO_MANY_FILES'===_0x3d9454['type']),_0x277096=_0x4d7e7a['totalCount']===(this['cfg']['multiple']?this['cfg']['multipleMax']:0x1),_0x1a3b44=_0x4d7e7a['allEntries']['some'](_0x436335=>_0x436335['isValidationPending']),_0x91ff6d=0x0===_0xff7c43['failed']&&0x0===_0x4d7e7a['errors']['length']&&!_0x1a3b44;let _0x37b2e2=!0x1,_0x19a8cc=!0x1,_0x5b643a=!0x1;if(_0xff7c43['total']-_0xff7c43['succeed']-_0xff7c43['uploading']-_0xff7c43['failed']>0x0&&_0xc3ef52&&_0x91ff6d)_0x37b2e2=!0x0;else{_0x19a8cc=!0x0;const _0x80f091=!this['cfg']['groupOutput']||!!_0x4d7e7a['group'];_0x5b643a=_0xff7c43['total']===_0xff7c43['succeed']&&_0xc3ef52&&_0x91ff6d&&_0x80f091;}this['set$']({'doneBtnVisible':_0x19a8cc,'doneBtnEnabled':_0x5b643a,'uploadBtnVisible':_0x37b2e2,'addMoreBtnEnabled':0x0===_0xff7c43['total']||!_0x1a3f3e&&!_0x277096,'addMoreBtnVisible':!_0x277096||this['cfg']['multiple'],'hasFiles':_0xff7c43['total']>0x0}),this['bindL10n']('headerText',()=>this['_getHeaderText'](_0xff7c43));}['_getHeaderText'](_0x116c99){const _0x4f587f=_0x461bff=>{let _0x30001a=_0x116c99[_0x461bff];return'uploading'===_0x461bff&&(_0x30001a+=_0x116c99['validatingBeforeUploading']),this['l10n']('header-'+_0x461bff,{'count':_0x30001a});};return _0x116c99['uploading']>0x0||_0x116c99['validatingBeforeUploading']>0x0?_0x4f587f('uploading'):_0x116c99['failed']>0x0?_0x4f587f('failed'):_0x116c99['succeed']>0x0?_0x4f587f('succeed'):_0x4f587f('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',_0x5e0fdf=>{_0x5e0fdf&&this['_throttledHandleCollectionUpdate']();}),this['subConfigValue']('filesViewMode',_0x4d3dd3=>{this['setAttribute']('mode',_0x4d3dd3);}),this['sub']('*currentActivity',_0x2d7760=>{this['couldOpenActivity']||_0x2d7760!==this['activityType']||(this['$']['*currentActivity']=this['initActivity']);}),this['uploadCollection']['observeProperties'](this['_throttledHandleCollectionUpdate']),this['uploadCollection']['observeCollection'](this['_throttledHandleCollectionUpdate']),this['sub']('*collectionErrors',_0x1bb8b5=>{const _0x590ea0=_0x1bb8b5['filter'](_0x43a18e=>'SOME_FILES_HAS_ERRORS'!==_0x43a18e['type'])[0x0];_0x590ea0?this['set$']({'commonErrorMessage':_0x590ea0['message']}):this['set$']({'commonErrorMessage':null});});}['destroyCallback'](){super['destroyCallback'](),this['uploadCollection']['unobserveProperties'](this['_throttledHandleCollectionUpdate']),this['uploadCollection']['unobserveCollection'](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';var UrlSource=class extends UploaderBlock{['couldBeCtxOwner']=!0x0;['activityType']=ActivityBlock['activities']['URL'];constructor(){super(),this['init$']={...this['init$'],'importDisabled':!0x0,'onUpload':_0x4aba1c=>{_0x4aba1c['preventDefault'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'upload-from-url','node':this['tagName']}}});const _0x324d0c=this['ref']['input']['value'];this['api']['addFileFromUrl'](_0x324d0c,{'source':UploadSource['URL']}),this['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'];},'onCancel':()=>{this['historyBack']();},'onInput':_0x293804=>{const _0x25b6da=_0x293804['target']?.['value']??'';this['set$']({'importDisabled':!_0x25b6da});}};}['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType']??'',{'onActivate':()=>{const _0x1a9c3b=this['ref']['input'];_0x1a9c3b['value']='',_0x1a9c3b['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';var CloudImageEditor=class extends CloudImageEditorBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-wgt-common'];constructor(){super(),this['init$']={...this['init$'],'*solution':this['tagName']};}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['INIT_SOLUTION']}),this['a11y']?.['registerBlock'](this);}},FileUploaderInline=class extends SolutionBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-file-uploader-inline'];constructor(){super(),this['init$']={...this['init$'],'couldCancel':!0x1,'*solution':this['tagName'],'cancel':()=>{if(this['couldHistoryBack']){const _0x400f41=this['$']['*historyBack'];return void _0x400f41?.();}this['couldShowList']&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST']);}};}get['couldHistoryBack'](){const _0x37bf30=this['$']['*history'];return!(!_0x37bf30||_0x37bf30['length']<=0x1)&&_0x37bf30[_0x37bf30['length']-0x1]!==ActivityBlock['activities']['START_FROM'];}get['couldShowList'](){const _0x236fc3=this['$']['*uploadList'];return this['cfg']['showEmptyList']||Array['isArray'](_0x236fc3)&&_0x236fc3['length']>0x0;}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['INIT_SOLUTION']});const _0x332290=this['ref']['uBlock'];_0x332290&&(this['sub']('*currentActivity',_0x175f5e=>{_0x175f5e||(this['$']['*currentActivity']=_0x332290['initActivity']||ActivityBlock['activities']['START_FROM']);}),this['sub']('*uploadList',_0x2ca540=>{Array['isArray'](_0x2ca540)&&_0x2ca540['length']>0x0&&this['$']['*currentActivity']===(_0x332290['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';var ACTIVE_CLASS='active',EMPTY_CLASS='',FileUploaderMinimal=class extends SolutionBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-file-uploader-minimal'];['handleModalOpen'];['handleModalClose'];constructor(){super(),this['init$']={...this['init$'],'singleUpload':!0x1,'isHiddenStartFrom':!0x1,'classUploadList':EMPTY_CLASS,'classStartFrom':EMPTY_CLASS,'*solution':this['tagName']};}['_handleModalOpen'](_0x7a594c){_0x7a594c['id']===ActivityBlock['activities']['CLOUD_IMG_EDIT']&&this['set$']({'classUploadList':ACTIVE_CLASS}),this['$']['*currentActivity']===ActivityBlock['activities']['UPLOAD_LIST']&&this['set$']({'classUploadList':ACTIVE_CLASS,'isHiddenStartFrom':!0x0});const _0x2143e3=this['$']['*uploadList'];(!_0x2143e3||_0x2143e3['length']<=0x0)&&this['set$']({'classStartFrom':ACTIVE_CLASS});}['_handleModalClose'](_0x159b5c){_0x159b5c['id']===this['$']['*currentActivity']&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],this['set$']({'isHiddenStartFrom':!0x1})),_0x159b5c['id']===ActivityBlock['activities']['CLOUD_IMG_EDIT']&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST']);}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['INIT_SOLUTION']});const _0x187a43=this['ref']['uBlock'];_0x187a43&&(this['sub']('*currentActivity',_0x37b52b=>{_0x37b52b===ActivityBlock['activities']['UPLOAD_LIST']&&this['modalManager']?.['closeAll'](),_0x37b52b||(this['$']['*currentActivity']=_0x187a43['initActivity']||ActivityBlock['activities']['START_FROM']);}),this['sub']('*uploadList',_0xe25b67=>{Array['isArray'](_0xe25b67)&&_0xe25b67['length']>0x0?(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],this['set$']({'classStartFrom':EMPTY_CLASS})):(this['set$']({'classUploadList':EMPTY_CLASS,'isHiddenStartFrom':!0x1}),this['$']['*currentActivity']=_0x187a43['initActivity']||ActivityBlock['activities']['START_FROM']);}),this['subConfigValue']('confirmUpload',_0x1e5885=>{!0x1!==_0x1e5885&&(this['cfg']['confirmUpload']=!0x1);}),this['subConfigValue']('filesViewMode',_0x21ea6a=>{this['setAttribute']('mode',_0x21ea6a),this['subConfigValue']('multiple',_0x1d83af=>{'grid'===_0x21ea6a?(_0x1d83af?this['style']['removeProperty']('--uc-grid-col'):this['style']['setProperty']('--uc-grid-col','1'),this['$']['singleUpload']=!_0x1d83af):(this['style']['removeProperty']('--uc-grid-col'),this['$']['singleUpload']=!0x1);});}),this['handleModalOpen']=_0x5be2c3=>{this['_handleModalOpen'](_0x5be2c3);},this['handleModalClose']=_0x369e34=>{this['_handleModalClose'](_0x369e34);},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';var FileUploaderRegular=class extends SolutionBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-file-uploader-regular'];constructor(){super();const _0x2c8ea5={...this['init$'],'isHidden':!0x1,'*solution':this['tagName']};this['init$']=_0x2c8ea5;}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['INIT_SOLUTION']}),this['defineAccessor']('headless',_0xaa1d03=>{this['set$']({'isHidden':asBoolean2(_0xaa1d03)});});}};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});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,'EditorAspectRatioButtonControl':EditorAspectRatioButtonControl,'EditorCropButtonControl':EditorCropButtonControl,'EditorFilterControl':EditorFilterControl,'EditorFreeformButtonControl':EditorFreeformButtonControl,'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(_0x5c8496){super(_0x5c8496),_0x5c8496['config']['define']('uploadcare.uploader.sourceList',[UploadcareSource['Local'],UploadcareSource['URL']]),defineComponents(UC),this['_defineLocale']();}['_defineLocale'](){const _0x5ac877=this['editor']['config']['get']('uploadcare.locale'),_0x2354c5=this['editor']['locale']['contentLanguage'];_0x5ac877&&defineLocale(_0x2354c5,_0x5ac877);}}class UploadcareImageEditFormLoadingView extends View{constructor(_0x3d9e4e){super(_0x3d9e4e);const t=_0x3d9e4e['t'],_0x309f7e=this['bindTemplate'],_0x41c80d=new SpinnerView();_0x41c80d['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':[_0x41c80d,{'text':_0x309f7e['to']('imageUploadProgress',_0x1e3726=>t('Loading\x20image...')+'\x20('+(_0x1e3726||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(_0x3fd374){super(_0x3fd374);const t=_0x3fd374['t'];this['set']('errorType',null);const _0x218e8f=new ButtonView(_0x3fd374);_0x218e8f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x218e8f['withText']=!0x0,_0x218e8f['class']='ck-button-action',_0x218e8f['on']('execute',()=>{this['fire']('retry');}),_0x218e8f['bind']('isVisible')['to'](this,'errorType',_0x32ea9b=>'NotFound'!==_0x32ea9b);const _0x28df91=new IconView();_0x28df91['content']=IconError,_0x28df91['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x431524=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':[_0x28df91,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x431524['to']('errorType',_0x2ab120=>t('NotFound'!==_0x2ab120?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x218e8f]},{'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(_0x17c339,_0x3653ff){super(_0x17c339);const _0x2776dc=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3653ff,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2776dc['to']('imageSrc')}});}}class UploadcareImageEditFormView extends DialogFocusManagerView{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x28926b,_0x2518df,_0x18346b){super(_0x28926b),this['_items']=this['createCollection'](),this['_loadingView']=new UploadcareImageEditFormLoadingView(_0x28926b),this['_errorView']=new UploadcareImageEditFormErrorView(_0x28926b),this['_editingView']=new UploadcareImageEditFormEditingView(_0x28926b,_0x18346b),this['_focusableView']=new View(_0x28926b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2518df),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'],_0x4993f1=>{this['_addUploadcareImageEditorListeners'](_0x4993f1);});}),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'](_0x5d8a35,_0x3257b7){const _0x4b4865='uc-cloud-image-editor',_0x2e4996=_0x5d8a35['querySelector'](_0x4b4865);if(_0x2e4996)return _0x3257b7(_0x2e4996);const _0x46a3e0=new MutationObserver(_0x230792=>{const _0x44e6f1=_0x230792['filter'](_0x322c8c=>_0x322c8c['target']===_0x5d8a35&&_0x322c8c['addedNodes']['length']>0x0&&_0x322c8c['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4b4865);_0x44e6f1['length']&&(_0x46a3e0['disconnect'](),_0x3257b7(_0x44e6f1[0x0]['addedNodes'][0x0]));});_0x46a3e0['observe'](_0x5d8a35,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1fb276){_0x1fb276['addEventListener']('apply',_0x2d0560=>{this['fire']('apply',{'imageSrc':_0x2d0560['detail']['cdnUrl']});}),_0x1fb276['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(_0x5ab3f9,_0x5e1c97,_0x58958d){super(),this['_editor']=_0x5ab3f9,this['_dialog']=_0x5e1c97,this['_imageElement']=_0x58958d,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 _0x380bc2=this['_imageElement'],_0x2abfe2=_0x380bc2['getAttribute']('uploadcareImageId'),_0x13c1a6=_0x380bc2['getAttribute']('src');if(_0x2abfe2)await this['_loadImageInfo'](_0x2abfe2,_0x13c1a6);else{if(this['_imageCache']['has'](_0x13c1a6)){const _0x243cd9=this['_imageCache']['get'](_0x13c1a6);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x243cd9['url'],this['imageDimension']=_0x243cd9['dimension'],this['imageId']=_0x243cd9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2c8be9}=this['_editor'],t=_0x2c8be9['t'],_0x9a8035=new UploadcareImageEditFormView(_0x2c8be9,this['imageStatus'],this['_attributes']);_0x9a8035['bind']('status')['to'](this,'imageStatus'),_0x9a8035['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x9a8035['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x9a8035['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x9a8035,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':IconUploadcareImageEdit,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x9a8035,'position':DialogViewPosition['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x9a8035['focus']();},'onHide':()=>{_0x9a8035['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x279046=>!isAncestor(_0x279046,_0x9a8035['element'])}});}['_loadImageInfo'](_0x4170b0,_0x7f0a1e){return UploadUtils['getInfo'](_0x4170b0,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4eeb8e=>{const {width:_0x364c35,height:_0x367c07}=_0x4eeb8e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x7f0a1e,this['imageDimension']={'width':_0x364c35,'height':_0x367c07},this['imageId']=_0x4170b0;})['catch'](_0x38e052=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x38e052['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x25af2f,_0x53cbd0){return this['_getImageAsFile'](_0x25af2f)['then'](_0x1776df=>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':_0x53cbd0['signal'],'file':_0x1776df,'onProgress':_0x4f1990=>{_0x4f1990&&_0x4f1990['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4f1990['value']));}}))['then'](_0x24d6ab=>{const {width:_0xfefc53,height:_0x55ba4c}=_0x24d6ab['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x24d6ab['cdnUrl'],this['imageDimension']={'width':_0xfefc53,'height':_0x55ba4c},this['imageId']=_0x24d6ab['uuid'],this['imageUploadProgress']=null;const _0x655eb7=_0x25af2f['getAttribute']('src');this['_imageCache']['set'](_0x655eb7,{'id':_0x24d6ab['uuid'],'url':_0x24d6ab['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1137c2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1137c2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x420a7a,_0x3c1db0){_0x420a7a['on']('apply',(_0x38cbd1,_0x2c051b)=>{this['_replaceImage'](_0x3c1db0,_0x2c051b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x420a7a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x420a7a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x42b334,_0x4b864a,_0x372d35){const _0x6afa8d=this['_editor'],{width:_0x3bb196,height:_0x54f157}=getImageDimension(_0x4b864a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2e529c,imageSources:_0x1b28c3}=getImageUrls(_0x4b864a,_0x3bb196);_0x6afa8d['model']['change'](_0x5a4504=>{if('$graveyard'===_0x42b334['root']['rootName']){_0x6afa8d['execute']('insertImage',{'imageType':_0x42b334['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x42b334['getAttributes']()),'uploadcareImageId':_0x372d35,'src':_0x2e529c,'sources':_0x1b28c3,'width':_0x3bb196,'height':_0x54f157}});const _0x1b3eca=_0x42b334['getChildren']();_0x42b334=_0x6afa8d['model']['document']['selection']['getSelectedElement']();for(const _0x5edb69 of _0x1b3eca)_0x5a4504['append'](_0x5a4504['cloneElement'](_0x5edb69),_0x42b334);}else _0x5a4504['setSelection'](_0x42b334,'on'),_0x6afa8d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x42b334['getAttributes']()),'uploadcareImageId':_0x372d35,'src':_0x2e529c,'sources':_0x1b28c3,'width':_0x3bb196,'height':_0x54f157},_0x42b334);_0x5a4504['setSelection'](_0x42b334,'on');});}async['_getImageAsFile'](_0x5ad706){const _0xd29c14=_0x347e1e['window'],_0x4d334d=_0x347e1e['document']['location']['href'],_0x37f6ae=new _0xd29c14['URL'](_0x5ad706['getAttribute']('src'),_0x4d334d);if('data:'===_0x37f6ae['protocol']){const _0x3d3bd8=_0x37f6ae['href']['split'](','),_0x1a0ebf=_0x3d3bd8[0x0]['match'](/:(.*?);/)[0x1],_0x479a2d=_0x1a0ebf['split']('/')[0x1],_0x21df6e=_0xd29c14['atob'](_0x3d3bd8[_0x3d3bd8['length']-0x1]);let _0x4edeea=_0x21df6e['length'];const _0x2f40f1=new _0xd29c14['Uint8Array'](_0x4edeea);for(;_0x4edeea--;)_0x2f40f1[_0x4edeea]=_0x21df6e['charCodeAt'](_0x4edeea);return new _0xd29c14['File']([_0x2f40f1],'image.'+_0x479a2d,{'type':_0x1a0ebf});}const _0x4f34ea=_0x37f6ae['href']['split']('/'),_0x2709d9=_0x4f34ea[_0x4f34ea['length']-0x1],_0x104a6b=_0x2709d9['split']('.')[0x1];return _0xd29c14['fetch'](_0x37f6ae['href'])['then'](_0x34b4c2=>_0x34b4c2['clone']()['blob']())['then'](_0x3cf536=>new _0xd29c14['File']([_0x3cf536],_0x2709d9,{'type':'image/'+_0x104a6b}));}}class UploadcareImageEditCommand extends Command{['imageEditController'];static get['requires'](){return[Dialog];}['_isEditable'];constructor(_0x5dd26f){super(_0x5dd26f),this['imageEditController']=void 0x0,this['_isEditable']=createEditabilityChecker(_0x5dd26f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x169563=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x169563);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x550fc1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x550fc1&&(_0x550fc1['is']('element','imageBlock')||_0x550fc1['is']('element','imageInline'))&&(this['imageEditController']=new UploadcareImageEditController(this['editor'],this['editor']['plugins']['get'](Dialog),_0x550fc1),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class UploadcareImageReplaceCommand extends Command{['refresh'](){const _0x138000=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x138000&&(_0x138000['is']('element','imageBlock')||_0x138000['is']('element','imageInline')));}['execute'](_0x1b3783){const _0xa124d5=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5d8fed=>{_0x5d8fed['setAttributes'](_0x1b3783,_0xa124d5),_0x5d8fed['removeAttribute']('srcset',_0xa124d5),_0x5d8fed['removeAttribute']('sizes',_0xa124d5);});}}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:_0x150cfc}=this;_0x150cfc['commands']['add']('uploadcareImageEdit',new UploadcareImageEditCommand(_0x150cfc)),_0x150cfc['commands']['add']('uploadcareImageReplace',new UploadcareImageReplaceCommand(_0x150cfc));}}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 _0x5caff4=this['editor'];_0x5caff4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2cb380=>{const _0x5731d9=_0x5caff4['commands']['get']('uploadcareImageEdit'),_0x4570e1=new ButtonView(_0x2cb380),t=_0x2cb380['t'];return _0x4570e1['set']({'icon':IconUploadcareImageEdit,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4570e1['bind']('isEnabled')['to'](_0x5731d9),_0x4570e1['bind']('isOn')['to'](_0x5731d9,'isActive'),this['listenTo'](_0x4570e1,'execute',()=>{_0x5caff4['execute']('uploadcareImageEdit'),_0x5caff4['editing']['view']['focus']();}),_0x4570e1;}),this['_initConfig']();}['_initConfig'](){const _0x71a5d=createElement(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x71a5d),this['listenTo'](this['editor'],'destroy',()=>{_0x71a5d['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,AIChatShortcuts,AIChatUI,AIConnector,AIEditing,AIEditorIntegration,AIQuickActionType,AIQuickActions,AIQuickActionsUI,AIRequestError,AIReviewCheck,AIReviewCheckResult,AIReviewCheckRun,AIReviewMode,AIReviewCoreController as AIReviewModeController,AIReviewCoreEditing as AIReviewModeEditing,AIReviewModeUI,AITabs,AITextAdapter,AIToggleButtonUI,AITranslate,AITranslateController,AITranslateUI,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,Footnotes,FootnotesClipboard,FootnotesEditing,FootnotesProperties,FootnotesPropertiesEditing,FootnotesPropertiesUI,FootnotesStartCommand,FootnotesStyleCommand,FootnotesTracker,FootnotesUI,FormatPainter,FormatPainterEditing,FormatPainterUI,GeneralHtmlIntegrationSupport,HeadingId,HighlightEmailIntegration,ImageEmailIntegration,ImportWord,ImportWordCommand,ImportWordEditing,ImportWordUI,InlineAnnotations,InsertFootnoteCommand,InsertMergeFieldBlockCommand,InsertMergeFieldCommand,InsertMergeFieldImageCommand,LateFocusButtonView,LateFocusDropdownButtonView,LineHeight,LineHeightCommand,LineHeightEditing,LineHeightTodoListIntegration,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,SuggestionsConversion,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,fixElementSuggestionRange,getAllMarkersDomElementsSorted,getDateTimeFormatter,getDefaultAICommands,getEmailInlineStylesTransformations,getMarkerDomElement,hashObject,isUnsupportedEmailColorFormat,isUnsupportedEmailColorValue,sanitizeEditorConfig,setupThreadKeyboardNavigation,splitSuggestionMarkerName,surroundingMarkersDetector,transformEmailFigcaptionToDiv,transformEmailFigureToTable,transformEmailFloatToAlign,transformEmailImageWidthAttributes,transformEmailMarginToAlign,trimHtml};